monocart-coverage-reports 2.12.12 → 2.13.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,33 +1,41 @@
1
- var la=Object.create;var Bt=Object.defineProperty;var aa=Object.getOwnPropertyDescriptor;var fa=Object.getOwnPropertyNames;var ua=Object.getPrototypeOf,ca=Object.prototype.hasOwnProperty;var b=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),ha=(n,e)=>{for(var t in e)Bt(n,t,{get:e[t],enumerable:!0})},ni=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of fa(e))!ca.call(n,i)&&i!==t&&Bt(n,i,{get:()=>e[i],enumerable:!(r=aa(e,i))||r.enumerable});return n};var G=(n,e,t)=>(t=n!=null?la(ua(n)):{},ni(e||!n||!n.__esModule?Bt(t,"default",{value:n,enumerable:!0}):t,n)),da=n=>ni(Bt({},"__esModule",{value:!0}),n);var si=b(z=>{"use strict";Object.defineProperty(z,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg}});Object.defineProperty(z,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg}});var zt;typeof Buffer<"u"?typeof Buffer.from=="function"?zt=pa:zt=ma:zt=ga;function pa(n){return Buffer.from(n,"base64").toString()}function ma(n){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(n,"base64").toString()}function ga(n){return decodeURIComponent(escape(atob(n)))}function _a(n){return n.split(",").pop()}function ya(n,e){var t=z.mapFileCommentRegex.exec(n),r=t[1]||t[2];try{var n=e(r);return n!=null&&typeof n.catch=="function"?n.catch(i):n}catch(s){i(s)}function i(s){throw new Error("An error occurred while trying to read the map file at "+r+`
2
- `+s.stack)}}function X(n,e){e=e||{},e.hasComment&&(n=_a(n)),e.encoding==="base64"?n=zt(n):e.encoding==="uri"&&(n=decodeURIComponent(n)),(e.isJSON||e.encoding)&&(n=JSON.parse(n)),this.sourcemap=n}X.prototype.toJSON=function(n){return JSON.stringify(this.sourcemap,null,n)};typeof Buffer<"u"?typeof Buffer.from=="function"?X.prototype.toBase64=wa:X.prototype.toBase64=Ea:X.prototype.toBase64=Sa;function wa(){var n=this.toJSON();return Buffer.from(n,"utf8").toString("base64")}function Ea(){var n=this.toJSON();if(typeof n=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(n,"utf8").toString("base64")}function Sa(){var n=this.toJSON();return btoa(unescape(encodeURIComponent(n)))}X.prototype.toURI=function(){var n=this.toJSON();return encodeURIComponent(n)};X.prototype.toComment=function(n){var e,t,r;return n!=null&&n.encoding==="uri"?(e="",t=this.toURI()):(e=";base64",t=this.toBase64()),r="sourceMappingURL=data:application/json;charset=utf-8"+e+","+t,n!=null&&n.multiline?"/*# "+r+" */":"//# "+r};X.prototype.toObject=function(){return JSON.parse(this.toJSON())};X.prototype.addProperty=function(n,e){if(this.sourcemap.hasOwnProperty(n))throw new Error('property "'+n+'" already exists on the sourcemap, use set property instead');return this.setProperty(n,e)};X.prototype.setProperty=function(n,e){return this.sourcemap[n]=e,this};X.prototype.getProperty=function(n){return this.sourcemap[n]};z.fromObject=function(n){return new X(n)};z.fromJSON=function(n){return new X(n,{isJSON:!0})};z.fromURI=function(n){return new X(n,{encoding:"uri"})};z.fromBase64=function(n){return new X(n,{encoding:"base64"})};z.fromComment=function(n){var e,t;return n=n.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),e=z.commentRegex.exec(n),t=e&&e[4]||"uri",new X(n,{encoding:t,hasComment:!0})};function ii(n){return new X(n,{isJSON:!0})}z.fromMapFileComment=function(n,e){if(typeof e=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var t=ya(n,e);return t!=null&&typeof t.then=="function"?t.then(ii):ii(t)};z.fromSource=function(n){var e=n.match(z.commentRegex);return e?z.fromComment(e.pop()):null};z.fromMapFileSource=function(n,e){if(typeof e=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var t=n.match(z.mapFileCommentRegex);return t?z.fromMapFileComment(t.pop(),e):null};z.removeComments=function(n){return n.replace(z.commentRegex,"")};z.removeMapFileComments=function(n){return n.replace(z.mapFileCommentRegex,"")};z.generateMapFileComment=function(n,e){var t="sourceMappingURL="+n;return e&&e.multiline?"/*# "+t+" */":"//# "+t}});var Lr=b((Uh,Or)=>{var Wt=process||{},ui=Wt.argv||[],Gt=Wt.env||{},La=!(Gt.NO_COLOR||ui.includes("--no-color"))&&(!!Gt.FORCE_COLOR||ui.includes("--color")||Wt.platform==="win32"||(Wt.stdout||{}).isTTY&&Gt.TERM!=="dumb"||!!Gt.CI),Ta=(n,e,t=n)=>r=>{let i=""+r,s=i.indexOf(e,n.length);return~s?n+Ia(i,e,t,s)+e:n+i+e},Ia=(n,e,t,r)=>{let i="",s=0;do i+=n.substring(s,r)+t,s=r+e.length,r=n.indexOf(e,s);while(~r);return i+n.substring(s)},ci=(n=La)=>{let e=n?Ta:()=>String;return{isColorSupported:n,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Or.exports=ci();Or.exports.createColors=ci});var Tr=b((kh,di)=>{"use strict";var jt=/[\t\n\f\r "#'()/;[\\\]{}]/g,qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Na=/.[\r\n"'(/\\]/,hi=/[\da-f]/i;di.exports=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,s,o,a,l,f,u,h,c,d,m,p=r.length,g=0,S=[],w=[],O=-1;function L(){return g}function A(D){throw e.error("Unclosed "+D,g)}function I(){return w.length===0&&g>=p}function R(D){if(w.length)return w.pop();if(g>=p)return;let M=D?D.ignoreUnclosed:!1;switch(s=r.charCodeAt(g),s){case 10:case 32:case 9:case 13:case 12:{l=g;do l+=1,s=r.charCodeAt(l);while(s===32||s===10||s===9||s===13||s===12);u=["space",r.slice(g,l)],g=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Y=String.fromCharCode(s);u=[Y,Y,g];break}case 40:{if(m=S.length?S.pop()[1]:"",d=r.charCodeAt(g+1),m==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){l=g;do{if(h=!1,l=r.indexOf(")",l+1),l===-1)if(i||M){l=g;break}else A("bracket");for(c=l;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);u=["brackets",r.slice(g,l+1),g,l],g=l}else g<=O?u=["(","(",g]:(l=r.indexOf(")",g+1),o=r.slice(g,l+1),l===-1||Na.test(o)?(O=l===-1?p:l,u=["(","(",g]):(u=["brackets",o,g,l],g=l));break}case 39:case 34:{f=s===39?"'":'"',l=g;do{if(h=!1,l=r.indexOf(f,l+1),l===-1)if(i||M){l=g+1;break}else A("string");for(c=l;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);u=["string",r.slice(g,l+1),g,l],g=l;break}case 64:{jt.lastIndex=g+1,jt.test(r),jt.lastIndex===0?l=r.length-1:l=jt.lastIndex-2,u=["at-word",r.slice(g,l+1),g,l],g=l;break}case 92:{for(l=g,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(s=r.charCodeAt(l+1),a&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(l+=1,hi.test(r.charAt(l)))){for(;hi.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}u=["word",r.slice(g,l+1),g,l],g=l;break}default:{s===47&&r.charCodeAt(g+1)===42?(l=r.indexOf("*/",g+2)+1,l===0&&(i||M?l=r.length:A("comment")),u=["comment",r.slice(g,l+1),g,l],g=l):(qt.lastIndex=g+1,qt.test(r),qt.lastIndex===0?l=r.length-1:l=qt.lastIndex-2,u=["word",r.slice(g,l+1),g,l],S.push(u),g=l);break}}return g++,u}function q(D){w.push(D)}return{back:q,endOfFile:I,nextToken:R,position:L}}});var Ir=b((Bh,gi)=>{"use strict";var Q=Lr(),Ra=Tr(),pi;function Aa(n){pi=n}var Da={";":Q.yellow,":":Q.yellow,"(":Q.cyan,")":Q.cyan,"[":Q.yellow,"]":Q.yellow,"{":Q.yellow,"}":Q.yellow,"at-word":Q.cyan,brackets:Q.cyan,call:Q.cyan,class:Q.yellow,comment:Q.gray,hash:Q.magenta,string:Q.green};function Ma([n,e],t){if(n==="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 n}function mi(n){let e=Ra(new pi(n),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let r=e.nextToken(),i=Da[Ma(r,e)];i?t+=r[1].split(/\r?\n/).map(s=>i(s)).join(`
3
- `):t+=r[1]}return t}mi.registerInput=Aa;gi.exports=mi});var Nr=b((zh,wi)=>{"use strict";var _i=Lr(),yi=Ir(),ht=class n extends Error{constructor(e,t,r,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),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,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=_i.isColorSupported);let r=u=>u,i=u=>u,s=u=>u;if(e){let{bold:u,gray:h,red:c}=_i.createColors(!0);i=d=>u(c(d)),r=d=>h(d),yi&&(s=d=>yi(d))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),f=String(l).length;return o.slice(a,l).map((u,h)=>{let c=a+1+h,d=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(u.length>160){let p=20,g=Math.max(0,this.column-p),S=Math.max(this.column+p,this.endColumn+p),w=u.slice(g,S),O=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,p-1)).replace(/[^\t]/g," ");return i(">")+r(d)+s(w)+`
1
+ var ia=Object.create;var Bt=Object.defineProperty;var sa=Object.getOwnPropertyDescriptor;var oa=Object.getOwnPropertyNames;var la=Object.getPrototypeOf,aa=Object.prototype.hasOwnProperty;var b=(n,e)=>()=>{try{return e||n((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},fa=(n,e)=>{for(var t in e)Bt(n,t,{get:e[t],enumerable:!0})},ii=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of oa(e))!aa.call(n,i)&&i!==t&&Bt(n,i,{get:()=>e[i],enumerable:!(r=sa(e,i))||r.enumerable});return n};var q=(n,e,t)=>(t=n!=null?ia(la(n)):{},ii(e||!n||!n.__esModule?Bt(t,"default",{value:n,enumerable:!0}):t,n)),ua=n=>ii(Bt({},"__esModule",{value:!0}),n);var oi=b(U=>{"use strict";Object.defineProperty(U,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg}});Object.defineProperty(U,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg}});var zt;typeof Buffer<"u"?typeof Buffer.from=="function"?zt=ca:zt=ha:zt=da;function ca(n){return Buffer.from(n,"base64").toString()}function ha(n){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(n,"base64").toString()}function da(n){return decodeURIComponent(escape(atob(n)))}function pa(n){return n.split(",").pop()}function ma(n,e){var t=U.mapFileCommentRegex.exec(n),r=t[1]||t[2];try{var n=e(r);return n!=null&&typeof n.catch=="function"?n.catch(i):n}catch(s){i(s)}function i(s){throw new Error("An error occurred while trying to read the map file at "+r+`
2
+ `+s.stack)}}function Y(n,e){e=e||{},e.hasComment&&(n=pa(n)),e.encoding==="base64"?n=zt(n):e.encoding==="uri"&&(n=decodeURIComponent(n)),(e.isJSON||e.encoding)&&(n=JSON.parse(n)),this.sourcemap=n}Y.prototype.toJSON=function(n){return JSON.stringify(this.sourcemap,null,n)};typeof Buffer<"u"?typeof Buffer.from=="function"?Y.prototype.toBase64=ga:Y.prototype.toBase64=_a:Y.prototype.toBase64=ya;function ga(){var n=this.toJSON();return Buffer.from(n,"utf8").toString("base64")}function _a(){var n=this.toJSON();if(typeof n=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(n,"utf8").toString("base64")}function ya(){var n=this.toJSON();return btoa(unescape(encodeURIComponent(n)))}Y.prototype.toURI=function(){var n=this.toJSON();return encodeURIComponent(n)};Y.prototype.toComment=function(n){var e,t,r;return n!=null&&n.encoding==="uri"?(e="",t=this.toURI()):(e=";base64",t=this.toBase64()),r="sourceMappingURL=data:application/json;charset=utf-8"+e+","+t,n!=null&&n.multiline?"/*# "+r+" */":"//# "+r};Y.prototype.toObject=function(){return JSON.parse(this.toJSON())};Y.prototype.addProperty=function(n,e){if(this.sourcemap.hasOwnProperty(n))throw new Error('property "'+n+'" already exists on the sourcemap, use set property instead');return this.setProperty(n,e)};Y.prototype.setProperty=function(n,e){return this.sourcemap[n]=e,this};Y.prototype.getProperty=function(n){return this.sourcemap[n]};U.fromObject=function(n){return new Y(n)};U.fromJSON=function(n){return new Y(n,{isJSON:!0})};U.fromURI=function(n){return new Y(n,{encoding:"uri"})};U.fromBase64=function(n){return new Y(n,{encoding:"base64"})};U.fromComment=function(n){var e,t;return n=n.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),e=U.commentRegex.exec(n),t=e&&e[4]||"uri",new Y(n,{encoding:t,hasComment:!0})};function si(n){return new Y(n,{isJSON:!0})}U.fromMapFileComment=function(n,e){if(typeof e=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var t=ma(n,e);return t!=null&&typeof t.then=="function"?t.then(si):si(t)};U.fromSource=function(n){var e=n.match(U.commentRegex);return e?U.fromComment(e.pop()):null};U.fromMapFileSource=function(n,e){if(typeof e=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var t=n.match(U.mapFileCommentRegex);return t?U.fromMapFileComment(t.pop(),e):null};U.removeComments=function(n){return n.replace(U.commentRegex,"")};U.removeMapFileComments=function(n){return n.replace(U.mapFileCommentRegex,"")};U.generateMapFileComment=function(n,e){var t="sourceMappingURL="+n;return e&&e.multiline?"/*# "+t+" */":"//# "+t}});var Tr=b((td,Lr)=>{var Wt=process||{},ci=Wt.argv||[],Gt=Wt.env||{},Ca=!(Gt.NO_COLOR||ci.includes("--no-color"))&&(!!Gt.FORCE_COLOR||ci.includes("--color")||Wt.platform==="win32"||(Wt.stdout||{}).isTTY&&Gt.TERM!=="dumb"||!!Gt.CI),ba=(n,e,t=n)=>r=>{let i=""+r,s=i.indexOf(e,n.length);return~s?n+Oa(i,e,t,s)+e:n+i+e},Oa=(n,e,t,r)=>{let i="",s=0;do i+=n.substring(s,r)+t,s=r+e.length,r=n.indexOf(e,s);while(~r);return i+n.substring(s)},hi=(n=Ca)=>{let e=n?ba:()=>String;return{isColorSupported:n,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Lr.exports=hi();Lr.exports.createColors=hi});var Nr=b((rd,pi)=>{"use strict";var qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,jt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,La=/.[\r\n"'(/\\]/,di=/[\da-f]/i;pi.exports=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,s,o,a,l,f,u,h,c,d,m,p=r.length,g=0,w=[],S=[],O=-1;function L(){return g}function R(D){throw e.error("Unclosed "+D,g)}function I(){return S.length===0&&g>=p}function z(D){if(S.length)return S.pop();if(g>=p)return;let G=D?D.ignoreUnclosed:!1;switch(s=r.charCodeAt(g),s){case 10:case 32:case 9:case 13:case 12:{l=g;do l+=1,s=r.charCodeAt(l);while(s===32||s===10||s===9||s===13||s===12);u=["space",r.slice(g,l)],g=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let ee=String.fromCharCode(s);u=[ee,ee,g];break}case 40:{if(m=w.length?w.pop()[1]:"",d=r.charCodeAt(g+1),m==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){l=g;do{if(h=!1,l=r.indexOf(")",l+1),l===-1)if(i||G){l=g;break}else R("bracket");for(c=l;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);u=["brackets",r.slice(g,l+1),g,l],g=l}else g<=O?u=["(","(",g]:(l=r.indexOf(")",g+1),o=r.slice(g,l+1),l===-1||La.test(o)?(O=l===-1?p:l,u=["(","(",g]):(u=["brackets",o,g,l],g=l));break}case 39:case 34:{f=s===39?"'":'"',l=g;do{if(h=!1,l=r.indexOf(f,l+1),l===-1)if(i||G){l=g+1;break}else R("string");for(c=l;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);u=["string",r.slice(g,l+1),g,l],g=l;break}case 64:{qt.lastIndex=g+1,qt.test(r),qt.lastIndex===0?l=r.length-1:l=qt.lastIndex-2,u=["at-word",r.slice(g,l+1),g,l],g=l;break}case 92:{for(l=g,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(s=r.charCodeAt(l+1),a&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(l+=1,di.test(r.charAt(l)))){for(;di.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}u=["word",r.slice(g,l+1),g,l],g=l;break}default:{s===47&&r.charCodeAt(g+1)===42?(l=r.indexOf("*/",g+2)+1,l===0&&(i||G?l=r.length:R("comment")),u=["comment",r.slice(g,l+1),g,l],g=l):(jt.lastIndex=g+1,jt.test(r),jt.lastIndex===0?l=r.length-1:l=jt.lastIndex-2,u=["word",r.slice(g,l+1),g,l],w.push(u),g=l);break}}return g++,u}function Z(D){S.push(D)}return{back:Z,endOfFile:I,nextToken:z,position:L}}});var Ir=b((nd,_i)=>{"use strict";var K=Tr(),Ta=Nr(),mi;function Na(n){mi=n}var Ia={";":K.yellow,":":K.yellow,"(":K.cyan,")":K.cyan,"[":K.yellow,"]":K.yellow,"{":K.yellow,"}":K.yellow,"at-word":K.cyan,brackets:K.cyan,call:K.cyan,class:K.yellow,comment:K.gray,hash:K.magenta,string:K.green};function Ra([n,e],t){if(n==="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 n}function gi(n){let e=Ta(new mi(n),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let r=e.nextToken(),i=Ia[Ra(r,e)];i?t+=r[1].split(/\r?\n/).map(s=>i(s)).join(`
3
+ `):t+=r[1]}return t}gi.registerInput=Na;_i.exports=gi});var Rr=b((id,Ei)=>{"use strict";var yi=Tr(),wi=Ir(),ht=class n extends Error{constructor(e,t,r,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),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,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=yi.isColorSupported);let r=u=>u,i=u=>u,s=u=>u;if(e){let{bold:u,gray:h,red:c}=yi.createColors(!0);i=d=>u(c(d)),r=d=>h(d),wi&&(s=d=>wi(d))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),f=String(l).length;return o.slice(a,l).map((u,h)=>{let c=a+1+h,d=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(u.length>160){let p=20,g=Math.max(0,this.column-p),w=Math.max(this.column+p,this.endColumn+p),S=u.slice(g,w),O=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,p-1)).replace(/[^\t]/g," ");return i(">")+r(d)+s(S)+`
4
4
  `+O+i("^")}let m=r(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+s(u)+`
5
5
  `+m+i("^")}return" "+r(d)+s(u)}).join(`
6
6
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
7
7
 
8
8
  `+e+`
9
- `),this.name+": "+this.message+e}};wi.exports=ht;ht.default=ht});var Rr=b((Gh,Si)=>{"use strict";var Fa=/(<)(\/?style\b)/gi,Pa=/(<)(!--)/g;function be(n){return typeof n!="string"||!n.includes("<")?n:n.replace(Fa,"\\3c $2").replace(Pa,"\\3c $2")}var Ei={after:`
9
+ `),this.name+": "+this.message+e}};Ei.exports=ht;ht.default=ht});var Ar=b((sd,bi)=>{"use strict";var Aa=/(<)(\/?style\b)/gi,Da=/(<)(!--)/g,Ma=/[\t\n\f\r "#'()/;[\\\]{}]/;function he(n){return typeof n!="string"||!n.includes("<")?n:n.replace(Aa,"\\3c $2").replace(Da,"\\3c $2")}var Si={after:`
10
10
  `,beforeClose:`
11
11
  `,beforeComment:`
12
12
  `,beforeDecl:`
13
13
  `,beforeOpen:" ",beforeRule:`
14
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ua(n){return n[0].toUpperCase()+n.slice(1)}var dt=class{constructor(e){this.builder=e}atrule(e,t){let r=e.raws,i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof r.afterName<"u"?i+=r.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{let o=(r.between||"")+(t?";":"");this.builder(be(i+s+o),e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(r.includes(`
15
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(be(t+r)+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(be(i)),this.builder("}",e,"end")}body(e){let t=e.nodes,r=t.length-1;for(;r>0&&t[r].type==="comment";)r-=1;let i=this.raw(e,"semicolon"),s=e.type==="document";for(let o=0;o<t.length;o++){let a=t[o],l=this.raw(a,"before");l&&this.builder(s?l:be(l)),this.stringify(a,r!==o||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(be("/*"+t+e.text+r+"*/"),e)}decl(e,t){let r=e.raws,i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=r.important||" !important"),t&&(s+=";"),this.builder(be(s),e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i<"u"))return i;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return Ei[r];let o=e.root(),a=o.rawCache||(o.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Ua(r);this[l]?i=this[l](o,e):o.walk(f=>{if(i=f.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Ei[r]),a[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
14
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Pa(n){return n[0].toUpperCase()+n.slice(1)}function xi(n,e){let t="@"+e.name,r=e.params?n.rawValue(e,"params"):"",i=e.raws.afterName;return typeof i>"u"?i=r?" ":"":i===""&&r&&!Ma.test(r[0])&&(i=" "),t+i+r}function Ci(n,e,t){let r=t.nodes,i=r.length-1;for(;i>0&&r[i].type==="comment";)i-=1;let s=n.raw(t,"semicolon"),o=t.type==="document";for(let a=r.length-1;a>=0;a--){let l=r[a],f=i!==a||s;!f&&a<r.length-1&&(l.type==="atrule"&&!l.nodes||l.type==="decl"&&l.prop.startsWith("--"))&&(f=!0),e.push({document:o,node:l,semicolon:f})}}function vi(n,e,t,r){let i=n.raw(t,"between","beforeOpen");n.builder(he(r+i)+"{",t,"start");let s=t.nodes&&t.nodes.length,o=()=>{let a=s?n.raw(t,"after"):n.raw(t,"after","emptyBody");a&&n.builder(he(a)),n.builder("}",t,"end"),t.type==="rule"&&t.raws.ownSemicolon&&n.builder(he(t.raws.ownSemicolon),t,"end")};s?(e.push(o),Ci(n,e,t)):o()}var dt=class n{constructor(e){this.builder=e}atrule(e,t){let r=xi(this,e);if(e.nodes)this.block(e,r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(he(r+i),e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(r.includes(`
15
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(he(t+r)+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(he(i)),this.builder("}",e,"end")}body(e){let t=n.prototype,r=["atrule","block","body","rule","stringify"].every(s=>this[s]===t[s]),i=[];for(Ci(this,i,e);i.length>0;){let s=i.pop();if(typeof s=="function"){s();continue}let o=s.node,a=this.raw(o,"before");a&&this.builder(s.document?a:he(a)),r&&o.type==="rule"?vi(this,i,o,this.rawValue(o,"selector")):r&&o.type==="atrule"&&o.nodes?vi(this,i,o,xi(this,o)):this.stringify(o,s.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(he("/*"+t+e.text+r+"*/"),e)}decl(e,t){let r=e.raws,i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=r.important||" !important"),t&&(s+=";"),this.builder(he(s),e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i<"u"))return i;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return Si[r];let o=e.root(),a=o.rawCache||(o.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Pa(r);this[l]?i=this[l](o,e):o.walk(f=>{if(i=f.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Si[r]),a[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
16
16
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
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(i=>{if(typeof i.raws.before<"u")return r=i.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 i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
20
- `);return t=s[s.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],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&e.parent.type==="document";this.builder(r?t:be(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(be(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)}};Si.exports=dt;dt.default=dt});var xi=b((Wh,vi)=>{"use strict";var ka=Rr();function Ar(n,e){new ka(e).stringify(n)}vi.exports=Ar;Ar.default=Ar});var Mr=b((jh,Dr)=>{"use strict";Dr.exports.isClean=Symbol("isClean");Dr.exports.my=Symbol("my")});var $t=b((qh,Ci)=>{"use strict";var Ba=Nr(),za=Rr(),Ga=xi(),{isClean:pt,my:Wa}=Mr();function Fr(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let i=n[r],s=typeof i;r==="parent"&&s==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>Fr(o,t)):(s==="object"&&i!==null&&(i=Fr(i)),t[r]=i)}return t}function _e(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,i=0;for(let s=0;s<n.length;s++){if(r===e.line&&t===e.column){i=s;break}n[s]===`
21
- `?(t=1,r+=1):t+=1}return i}var mt=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[pt]=!1,this[Wa]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?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=Fr(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:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ba(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[pt]=!0}markDirty(){if(this[pt]){this[pt]=!1;let e=this;for(;e=e.parent;)e[pt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(_e(r,this.source.start),_e(r,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=_e(i,this.source.start),o=s+e;for(let a=s;a<o;a++)i[a]===`
22
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}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:_e(t,this.source.start)},i=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:_e(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(_e(t,this.source.start),_e(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:_e(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:_e(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new za().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 i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);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={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){if(a==null)continue;let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ga){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(t,i)}};Ci.exports=mt;mt.default=mt});var Pr=b(($h,bi)=>{"use strict";var ja=$t(),gt=class extends ja{constructor(e){super(e),this.type="comment"}};bi.exports=gt;gt.default=gt});var Ur=b((Vh,Oi)=>{"use strict";var qa=$t(),_t=class extends qa{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"}};Oi.exports=_t;_t.default=_t});var yt=b((Hh,Fi)=>{"use strict";var Li=Pr(),Ti=Ur(),$a=$t(),{isClean:Ii,my:Ni}=Mr(),kr,Ri,Ai,Br;function Di(n){return n.map(e=>(e.nodes&&(e.nodes=Di(e.nodes)),delete e.source,e))}function Mi(n){if(n[Ii]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Mi(e)}var he=class n extends $a{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 i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}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(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...s)=>r(i.toProxy(),...s)):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),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Di(Ri(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"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 Ti(e)]}else if(e.selector||e.selectors)e=[new Br(e)];else if(e.name)e=[new kr(e)];else if(e.text)e=[new Li(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Ni]||n.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Ii]&&Mi(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+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(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}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,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};he.registerParse=n=>{Ri=n};he.registerRule=n=>{Br=n};he.registerAtRule=n=>{kr=n};he.registerRoot=n=>{Ai=n};Fi.exports=he;he.default=he;he.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,kr.prototype):n.type==="rule"?Object.setPrototypeOf(n,Br.prototype):n.type==="decl"?Object.setPrototypeOf(n,Ti.prototype):n.type==="comment"?Object.setPrototypeOf(n,Li.prototype):n.type==="root"&&Object.setPrototypeOf(n,Ai.prototype),n[Ni]=!0,n.nodes&&n.nodes.forEach(e=>{he.rebuild(e)})}});var Ui=b((Zh,Pi)=>{var Va="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ha=(n,e=21)=>(t=e)=>{let r="",i=t|0;for(;i--;)r+=n[Math.random()*n.length|0];return r},Za=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Va[Math.random()*64|0];return e};Pi.exports={nanoid:Za,customAlphabet:Ha}});var Bi=b(zr=>{var ki="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");zr.encode=function(n){if(0<=n&&n<ki.length)return ki[n];throw new TypeError("Must be between 0 and 63: "+n)};zr.decode=function(n){var e=65,t=90,r=97,i=122,s=48,o=57,a=43,l=47,f=26,u=52;return e<=n&&n<=t?n-e:r<=n&&n<=i?n-r+f:s<=n&&n<=o?n-s+u:n==a?62:n==l?63:-1}});var jr=b(Wr=>{var zi=Bi(),Gr=5,Gi=1<<Gr,Wi=Gi-1,ji=Gi;function Ya(n){return n<0?(-n<<1)+1:(n<<1)+0}function Xa(n){var e=(n&1)===1,t=n>>1;return e?-t:t}Wr.encode=function(e){var t="",r,i=Ya(e);do r=i&Wi,i>>>=Gr,i>0&&(r|=ji),t+=zi.encode(r);while(i>0);return t};Wr.decode=function(e,t,r){var i=e.length,s=0,o=0,a,l;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=zi.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&ji),l&=Wi,s=s+(l<<o),o+=Gr}while(a);r.value=Xa(s),r.rest=t}});var He=b($=>{function Ka(n,e,t){if(e in n)return n[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}$.getArg=Ka;var qi=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ja=/^data:.+\,.+$/;function wt(n){var e=n.match(qi);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}$.urlParse=wt;function Ve(n){var e="";return n.scheme&&(e+=n.scheme+":"),e+="//",n.auth&&(e+=n.auth+"@"),n.host&&(e+=n.host),n.port&&(e+=":"+n.port),n.path&&(e+=n.path),e}$.urlGenerate=Ve;var Qa=32;function ef(n){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var i=e[0];return e[0]=e[r],e[r]=i,e[0].result}var s=n(t);return e.unshift({input:t,result:s}),e.length>Qa&&e.pop(),s}}var qr=ef(function(e){var t=e,r=wt(e);if(r){if(!r.path)return e;t=r.path}for(var i=$.isAbsolute(t),s=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){s.push(t.slice(o));break}else for(s.push(t.slice(o,a));a<t.length&&t[a]==="/";)a++;for(var l,f=0,a=s.length-1;a>=0;a--)l=s[a],l==="."?s.splice(a,1):l===".."?f++:f>0&&(l===""?(s.splice(a+1,f),f=0):(s.splice(a,2),f--));return t=s.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,Ve(r)):t});$.normalize=qr;function $i(n,e){n===""&&(n="."),e===""&&(e=".");var t=wt(e),r=wt(n);if(r&&(n=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),Ve(t);if(t||e.match(Ja))return e;if(r&&!r.host&&!r.path)return r.host=e,Ve(r);var i=e.charAt(0)==="/"?e:qr(n.replace(/\/+$/,"")+"/"+e);return r?(r.path=i,Ve(r)):i}$.join=$i;$.isAbsolute=function(n){return n.charAt(0)==="/"||qi.test(n)};function tf(n,e){n===""&&(n="."),n=n.replace(/\/$/,"");for(var t=0;e.indexOf(n+"/")!==0;){var r=n.lastIndexOf("/");if(r<0||(n=n.slice(0,r),n.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(n.length+1)}$.relative=tf;var Vi=(function(){var n=Object.create(null);return!("__proto__"in n)})();function Hi(n){return n}function rf(n){return Zi(n)?"$"+n:n}$.toSetString=Vi?Hi:rf;function nf(n){return Zi(n)?n.slice(1):n}$.fromSetString=Vi?Hi:nf;function Zi(n){if(!n)return!1;var e=n.length;if(e<9||n.charCodeAt(e-1)!==95||n.charCodeAt(e-2)!==95||n.charCodeAt(e-3)!==111||n.charCodeAt(e-4)!==116||n.charCodeAt(e-5)!==111||n.charCodeAt(e-6)!==114||n.charCodeAt(e-7)!==112||n.charCodeAt(e-8)!==95||n.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(n.charCodeAt(t)!==36)return!1;return!0}function sf(n,e,t){var r=ye(n.source,e.source);return r!==0||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:ye(n.name,e.name)}$.compareByOriginalPositions=sf;function of(n,e,t){var r;return r=n.originalLine-e.originalLine,r!==0||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:ye(n.name,e.name)}$.compareByOriginalPositionsNoSource=of;function lf(n,e,t){var r=n.generatedLine-e.generatedLine;return r!==0||(r=n.generatedColumn-e.generatedColumn,r!==0||t)||(r=ye(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:ye(n.name,e.name)}$.compareByGeneratedPositionsDeflated=lf;function af(n,e,t){var r=n.generatedColumn-e.generatedColumn;return r!==0||t||(r=ye(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:ye(n.name,e.name)}$.compareByGeneratedPositionsDeflatedNoLine=af;function ye(n,e){return n===e?0:n===null?1:e===null?-1:n>e?1:-1}function ff(n,e){var t=n.generatedLine-e.generatedLine;return t!==0||(t=n.generatedColumn-e.generatedColumn,t!==0)||(t=ye(n.source,e.source),t!==0)||(t=n.originalLine-e.originalLine,t!==0)||(t=n.originalColumn-e.originalColumn,t!==0)?t:ye(n.name,e.name)}$.compareByGeneratedPositionsInflated=ff;function uf(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}$.parseSourceMapInput=uf;function cf(n,e,t){if(e=e||"",n&&(n[n.length-1]!=="/"&&e[0]!=="/"&&(n+="/"),e=n+e),t){var r=wt(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}e=$i(Ve(r),e)}return qr(e)}$.computeSourceURL=cf});var Hr=b(Yi=>{var $r=He(),Vr=Object.prototype.hasOwnProperty,Ue=typeof Map<"u";function we(){this._array=[],this._set=Ue?new Map:Object.create(null)}we.fromArray=function(e,t){for(var r=new we,i=0,s=e.length;i<s;i++)r.add(e[i],t);return r};we.prototype.size=function(){return Ue?this._set.size:Object.getOwnPropertyNames(this._set).length};we.prototype.add=function(e,t){var r=Ue?e:$r.toSetString(e),i=Ue?this.has(e):Vr.call(this._set,r),s=this._array.length;(!i||t)&&this._array.push(e),i||(Ue?this._set.set(e,s):this._set[r]=s)};we.prototype.has=function(e){if(Ue)return this._set.has(e);var t=$r.toSetString(e);return Vr.call(this._set,t)};we.prototype.indexOf=function(e){if(Ue){var t=this._set.get(e);if(t>=0)return t}else{var r=$r.toSetString(e);if(Vr.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};we.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};we.prototype.toArray=function(){return this._array.slice()};Yi.ArraySet=we});var Ji=b(Ki=>{var Xi=He();function hf(n,e){var t=n.generatedLine,r=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn;return r>t||r==t&&s>=i||Xi.compareByGeneratedPositionsInflated(n,e)<=0}function Vt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Vt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Vt.prototype.add=function(e){hf(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Vt.prototype.toArray=function(){return this._sorted||(this._array.sort(Xi.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Ki.MappingList=Vt});var Zr=b(Qi=>{var Et=jr(),W=He(),Ht=Hr().ArraySet,df=Ji().MappingList;function se(n){n||(n={}),this._file=W.getArg(n,"file",null),this._sourceRoot=W.getArg(n,"sourceRoot",null),this._skipValidation=W.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=W.getArg(n,"ignoreInvalidMapping",!1),this._sources=new Ht,this._names=new Ht,this._mappings=new df,this._sourcesContents=null}se.prototype._version=3;se.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new se(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=W.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=W.relative(r,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};se.prototype.addMapping=function(e){var t=W.getArg(e,"generated"),r=W.getArg(e,"original",null),i=W.getArg(e,"source",null),s=W.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))};se.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=W.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};se.prototype.applySourceMap=function(e,t,r){var i=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.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=W.relative(s,i));var o=new Ht,a=new Ht;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=W.join(r,l.source)),s!=null&&(l.source=W.relative(s,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var u=l.source;u!=null&&!o.has(u)&&o.add(u);var h=l.name;h!=null&&!a.has(h)&&a.add(h)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=W.join(r,l)),s!=null&&(l=W.relative(s,l)),this.setSourceContent(l,f))},this)};se.prototype._validateMapping=function(e,t,r,i){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var s="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(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!i)){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 s="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};se.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,i=0,s=0,o=0,a="",l,f,u,h,c=this._mappings.toArray(),d=0,m=c.length;d<m;d++){if(f=c[d],l="",f.generatedLine!==t)for(e=0;f.generatedLine!==t;)l+=";",t++;else if(d>0){if(!W.compareByGeneratedPositionsInflated(f,c[d-1]))continue;l+=","}l+=Et.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(h=this._sources.indexOf(f.source),l+=Et.encode(h-o),o=h,l+=Et.encode(f.originalLine-1-i),i=f.originalLine-1,l+=Et.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(u=this._names.indexOf(f.name),l+=Et.encode(u-s),s=u)),a+=l}return a};se.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=W.relative(t,r));var i=W.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};se.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};se.prototype.toString=function(){return JSON.stringify(this.toJSON())};Qi.SourceMapGenerator=se});var es=b(ke=>{ke.GREATEST_LOWER_BOUND=1;ke.LEAST_UPPER_BOUND=2;function Yr(n,e,t,r,i,s){var o=Math.floor((e-n)/2)+n,a=i(t,r[o],!0);return a===0?o:a>0?e-o>1?Yr(o,e,t,r,i,s):s==ke.LEAST_UPPER_BOUND?e<r.length?e:-1:o:o-n>1?Yr(n,o,t,r,i,s):s==ke.LEAST_UPPER_BOUND?o:n<0?-1:n}ke.search=function(e,t,r,i){if(t.length===0)return-1;var s=Yr(-1,t.length,e,t,r,i||ke.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(t[s],t[s-1],!0)===0;)--s;return s}});var ns=b(rs=>{function pf(n){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,o,a){if(o<a){var l=t(o,a),f=o-1;e(i,l,a);for(var u=i[a],h=o;h<a;h++)s(i[h],u,!1)<=0&&(f+=1,e(i,f,h));e(i,f+1,h);var c=f+1;r(i,s,o,c-1),r(i,s,c+1,a)}}return r}function mf(n){let e=pf.toString();return new Function(`return ${e}`)()(n)}var ts=new WeakMap;rs.quickSort=function(n,e,t=0){let r=ts.get(e);r===void 0&&(r=mf(e),ts.set(e,r)),r(n,e,t,n.length-1)}});var os=b(Zt=>{var x=He(),Kr=es(),Ze=Hr().ArraySet,gf=jr(),St=ns().quickSort;function P(n,e){var t=n;return typeof n=="string"&&(t=x.parseSourceMapInput(n)),t.sections!=null?new de(t,e):new H(t,e)}P.fromSourceMap=function(n,e){return H.fromSourceMap(n,e)};P.prototype._version=3;P.prototype.__generatedMappings=null;Object.defineProperty(P.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});P.prototype.__originalMappings=null;Object.defineProperty(P.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});P.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};P.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};P.GENERATED_ORDER=1;P.ORIGINAL_ORDER=2;P.GREATEST_LOWER_BOUND=1;P.LEAST_UPPER_BOUND=2;P.prototype.eachMapping=function(e,t,r){var i=t||null,s=r||P.GENERATED_ORDER,o;switch(s){case P.GENERATED_ORDER:o=this._generatedMappings;break;case P.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),f=this._names,u=this._sources,h=this._sourceMapURL,c=0,d=o.length;c<d;c++){var m=o[c],p=m.source===null?null:u.at(m.source);p!==null&&(p=x.computeSourceURL(a,p,h)),l({source:p,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:f.at(m.name)})}};P.prototype.allGeneratedPositionsFor=function(e){var t=x.getArg(e,"line"),r={source:x.getArg(e,"source"),originalLine:t,originalColumn:x.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,Kr.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:x.getArg(o,"generatedLine",null),column:x.getArg(o,"generatedColumn",null),lastColumn:x.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)i.push({line:x.getArg(o,"generatedLine",null),column:x.getArg(o,"generatedColumn",null),lastColumn:x.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Zt.SourceMapConsumer=P;function H(n,e){var t=n;typeof n=="string"&&(t=x.parseSourceMapInput(n));var r=x.getArg(t,"version"),i=x.getArg(t,"sources"),s=x.getArg(t,"names",[]),o=x.getArg(t,"sourceRoot",null),a=x.getArg(t,"sourcesContent",null),l=x.getArg(t,"mappings"),f=x.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=x.normalize(o)),i=i.map(String).map(x.normalize).map(function(u){return o&&x.isAbsolute(o)&&x.isAbsolute(u)?x.relative(o,u):u}),this._names=Ze.fromArray(s.map(String),!0),this._sources=Ze.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return x.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=f}H.prototype=Object.create(P.prototype);H.prototype.consumer=P;H.prototype._findSourceIndex=function(n){var e=n;if(this.sourceRoot!=null&&(e=x.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==n)return t;return-1};H.fromSourceMap=function(e,t){var r=Object.create(H.prototype),i=r._names=Ze.fromArray(e._names.toArray(),!0),s=r._sources=Ze.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(d){return x.computeSourceURL(r.sourceRoot,d,t)});for(var o=e._mappings.toArray().slice(),a=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,u=o.length;f<u;f++){var h=o[f],c=new ss;c.generatedLine=h.generatedLine,c.generatedColumn=h.generatedColumn,h.source&&(c.source=s.indexOf(h.source),c.originalLine=h.originalLine,c.originalColumn=h.originalColumn,h.name&&(c.name=i.indexOf(h.name)),l.push(c)),a.push(c)}return St(r.__originalMappings,x.compareByOriginalPositions),r};H.prototype._version=3;Object.defineProperty(H.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function ss(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Xr=x.compareByGeneratedPositionsDeflatedNoLine;function is(n,e){let t=n.length,r=n.length-e;if(!(r<=1))if(r==2){let i=n[e],s=n[e+1];Xr(i,s)>0&&(n[e]=s,n[e+1]=i)}else if(r<20)for(let i=e;i<t;i++)for(let s=i;s>e;s--){let o=n[s-1],a=n[s];if(Xr(o,a)<=0)break;n[s-1]=a,n[s]=o}else St(n,Xr,e)}H.prototype._parseMappings=function(e,t){var r=1,i=0,s=0,o=0,a=0,l=0,f=e.length,u=0,h={},c={},d=[],m=[],p,g,S,w,O;let L=0;for(;u<f;)if(e.charAt(u)===";")r++,u++,i=0,is(m,L),L=m.length;else if(e.charAt(u)===",")u++;else{for(p=new ss,p.generatedLine=r,w=u;w<f&&!this._charIsMappingSeparator(e,w);w++);for(g=e.slice(u,w),S=[];u<w;)gf.decode(e,u,c),O=c.value,u=c.rest,S.push(O);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");if(p.generatedColumn=i+S[0],i=p.generatedColumn,S.length>1&&(p.source=a+S[1],a+=S[1],p.originalLine=s+S[2],s=p.originalLine,p.originalLine+=1,p.originalColumn=o+S[3],o=p.originalColumn,S.length>4&&(p.name=l+S[4],l+=S[4])),m.push(p),typeof p.originalLine=="number"){let I=p.source;for(;d.length<=I;)d.push(null);d[I]===null&&(d[I]=[]),d[I].push(p)}}is(m,L),this.__generatedMappings=m;for(var A=0;A<d.length;A++)d[A]!=null&&St(d[A],x.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};H.prototype._findMapping=function(e,t,r,i,s,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Kr.search(e,t,s,o)};H.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}};H.prototype.originalPositionFor=function(e){var t={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",x.compareByGeneratedPositionsDeflated,x.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var s=x.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=x.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=x.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:x.getArg(i,"originalLine",null),column:x.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};H.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};H.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=x.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=x.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')};H.prototype.generatedPositionFor=function(e){var t=x.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:x.getArg(e,"line"),originalColumn:x.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,x.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:x.getArg(s,"generatedLine",null),column:x.getArg(s,"generatedColumn",null),lastColumn:x.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Zt.BasicSourceMapConsumer=H;function de(n,e){var t=n;typeof n=="string"&&(t=x.parseSourceMapInput(n));var r=x.getArg(t,"version"),i=x.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Ze,this._names=new Ze;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=x.getArg(o,"offset"),l=x.getArg(a,"line"),f=x.getArg(a,"column");if(l<s.line||l===s.line&&f<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:l+1,generatedColumn:f+1},consumer:new P(x.getArg(o,"map"),e)}})}de.prototype=Object.create(P.prototype);de.prototype.constructor=P;de.prototype._version=3;Object.defineProperty(de.prototype,"sources",{get:function(){for(var n=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)n.push(this._sections[e].consumer.sources[t]);return n}});de.prototype.originalPositionFor=function(e){var t={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},r=Kr.search(t,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};de.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};de.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};de.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(x.getArg(e,"source"))!==-1){var i=r.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};de.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=i.consumer._sources.at(a.source);l!==null&&(l=x.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;a.name&&(f=i.consumer._names.at(a.name),this._names.add(f),f=this._names.indexOf(f));var u={source:l,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:f};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}St(this.__generatedMappings,x.compareByGeneratedPositionsDeflated),St(this.__originalMappings,x.compareByOriginalPositions)};Zt.IndexedSourceMapConsumer=de});var as=b(ls=>{var _f=Zr().SourceMapGenerator,Yt=He(),yf=/(\r?\n)/,wf=10,Ye="$$$isSourceNode$$$";function re(n,e,t,r,i){this.children=[],this.sourceContents={},this.line=n??null,this.column=e??null,this.source=t??null,this.name=i??null,this[Ye]=!0,r!=null&&this.add(r)}re.fromStringWithSourceMap=function(e,t,r){var i=new re,s=e.split(yf),o=0,a=function(){var c=m(),d=m()||"";return c+d;function m(){return o<s.length?s[o++]:void 0}},l=1,f=0,u=null;return t.eachMapping(function(c){if(u!==null)if(l<c.generatedLine)h(u,a()),l++,f=0;else{var d=s[o]||"",m=d.substr(0,c.generatedColumn-f);s[o]=d.substr(c.generatedColumn-f),f=c.generatedColumn,h(u,m),u=c;return}for(;l<c.generatedLine;)i.add(a()),l++;if(f<c.generatedColumn){var d=s[o]||"";i.add(d.substr(0,c.generatedColumn)),s[o]=d.substr(c.generatedColumn),f=c.generatedColumn}u=c},this),o<s.length&&(u&&h(u,a()),i.add(s.splice(o).join(""))),t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(r!=null&&(c=Yt.join(r,c)),i.setSourceContent(c,d))}),i;function h(c,d){if(c===null||c.source===void 0)i.add(d);else{var m=r?Yt.join(r,c.source):c.source;i.add(new re(c.originalLine,c.originalColumn,m,d,c.name))}}};re.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Ye]||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};re.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Ye]||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};re.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)t=this.children[r],t[Ye]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};re.prototype.join=function(e){var t,r,i=this.children.length;if(i>0){for(t=[],r=0;r<i-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};re.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Ye]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};re.prototype.setSourceContent=function(e,t){this.sourceContents[Yt.toSetString(e)]=t};re.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Ye]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(Yt.fromSetString(i[t]),this.sourceContents[i[t]])};re.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};re.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new _f(e),i=!1,s=null,o=null,a=null,l=null;return this.walk(function(f,u){t.code+=f,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||l!==u.name)&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,o=u.line,a=u.column,l=u.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var h=0,c=f.length;h<c;h++)f.charCodeAt(h)===wf?(t.line++,t.column=0,h+1===c?(s=null,i=!1):i&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(f,u){r.setSourceContent(f,u)}),{code:t.code,map:r}};ls.SourceNode=re});var Jr=b(Xt=>{Xt.SourceMapGenerator=Zr().SourceMapGenerator;Xt.SourceMapConsumer=os().SourceMapConsumer;Xt.SourceNode=as().SourceNode});var hs=b((od,cs)=>{"use strict";var{existsSync:Ef,readFileSync:Sf}=require("fs"),{dirname:Qr,join:vf}=require("path"),{SourceMapConsumer:fs,SourceMapGenerator:us}=Jr();function xf(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var vt=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,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Qr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new fs(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return xf(e.substr(a[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()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e,t,r){if(!(!r&&!this.unsafeMap&&!/\.map$/i.test(e))&&(this.root=Qr(e),Ef(e)))return this.mapFile=e,Sf(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 i=this.loadFile(r,e,!0);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof fs)return us.fromSourceMap(t).toString();if(t instanceof us)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=vf(Qr(e),r));let i=this.loadFile(r,e,!1);if(i)try{this.json=JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return i}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};cs.exports=vt;vt.default=vt});var ys=b((ld,_s)=>{"use strict";var{nanoid:Cf}=Ui(),{isAbsolute:rn,resolve:nn}=require("path"),{SourceMapConsumer:bf,SourceMapGenerator:Of}=Jr(),{fileURLToPath:ds,pathToFileURL:Kt}=require("url"),ps=Nr(),Lf=hs(),en=Ir(),tn=Symbol("lineToIndexCache"),Tf=!!(bf&&Of),ms=!!(nn&&rn);function gs(n){if(n[tn])return n[tn];let e=n.css.split(`
23
- `),t=new Array(e.length),r=0;for(let i=0,s=e.length;i<s;i++)t[i]=r,r+=e[i].length+1;return n[tn]=t,t}var Xe=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&&(!ms||/^\w+:\/\//.test(t.from)||rn(t.from)?this.file=t.from:this.file=nn(t.from)),ms&&Tf){let r=new Lf(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Cf(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let s,o,a,l,f;if(t&&typeof t=="object"){let h=t,c=r;if(typeof h.offset=="number"){l=h.offset;let d=this.fromOffset(l);t=d.line,r=d.col}else t=h.line,r=h.column,l=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){a=c.offset;let d=this.fromOffset(a);o=d.line,s=d.col}else o=c.line,s=c.column,a=this.fromLineAndColumn(c.line,c.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let h=this.fromOffset(l);t=h.line,r=h.col}let u=this.origin(t,r,o,s);return u?f=new ps(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):f=new ps(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,i.plugin),f.input={column:r,endColumn:s,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(Kt&&(f.input.url=Kt(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return gs(this)[e-1]+t-1}fromOffset(e){let t=gs(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let s=t.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<t[o])s=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=s.originalPositionFor({column:i,line:r}));let l;rn(o.source)?l=Kt(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Kt(this.map.mapFile));let f={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(ds)f.file=ds(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(f.source=u),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}};_s.exports=Xe;Xe.default=Xe;en&&en.registerInput&&en.registerInput(Xe)});var Ss=b((ad,Es)=>{"use strict";var ws=yt(),Ke=class extends ws{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)}};Es.exports=Ke;Ke.default=Ke;ws.registerAtRule(Ke)});var Os=b((fd,bs)=>{"use strict";var vs=yt(),xs,Cs,Oe=class extends vs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=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 i)s.raws.before=t.raws.before}return i}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 xs(new Cs,this,e).stringify()}};Oe.registerLazyResult=n=>{xs=n};Oe.registerProcessor=n=>{Cs=n};bs.exports=Oe;Oe.default=Oe;vs.registerRoot(Oe)});var Ts=b((ud,Ls)=>{"use strict";var xt={comma(n){return xt.split(n,[","],!0)},space(n){let e=[" ",`
24
- `," "];return xt.split(n,e)},split(n,e,t){let r=[],i="",s=!1,o=0,a=!1,l="",f=!1;for(let u of n)f?f=!1:u==="\\"?f=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};Ls.exports=xt;xt.default=xt});var Rs=b((cd,Ns)=>{"use strict";var Is=yt(),If=Ts(),Je=class extends Is{get selectors(){return If.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=[])}};Ns.exports=Je;Je.default=Je;Is.registerRule(Je)});var Fs=b((hd,Ms)=>{"use strict";var Nf=Ss(),Rf=Pr(),Af=Ur(),Df=Os(),As=Rs(),Mf=Tr(),Ds={empty:!0,space:!0};function Ff(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}function sn(n,e,t){let r="";for(let i=e;i<t;i++)r+=n[i][1];return r}var on=class{constructor(e){this.input=e,this.root=new Df,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 Nf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,s,o=!1,a=!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==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,s;for(let[o,a]of e.entries()){if(i=a,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new Rf;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 i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Mf(this.input)}decl(e,t){let r=new Af;this.init(r,e[0][2]);let i=e[e.length-1];i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Ff(e)),r.source.end.offset++;let s=0;for(;e[s][0]!=="word";)s===e.length-1&&this.unknownWord([e[s]]),s++;r.raws.before+=sn(e,0,s),r.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let c=e[s][0];if(c===":"||c==="space"||c==="comment")break;s++}r.prop=sn(e,o,s);let a=s,l;for(;s<e.length&&(l=e[s],s++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=sn(e,a,s),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=s;for(;s<e.length;){let c=e[s][0];if(c!=="space"&&c!=="comment")break;s++}let u=e.slice(f,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(l=e[c],l[1].toLowerCase()==="!important"){r.important=!0;let d=this.stringFrom(e,c);d=this.spacesFromEnd(e)+d,d!==" !important"&&(r.raws.important=d);break}else if(l[1].toLowerCase()==="important"){let d=e.slice(0),m="";for(let p=c;p>0;p--){let g=d[p][0];if(m.trim().startsWith("!")&&g!=="space")break;m=d.pop()[1]+m}m.trim().startsWith("!")&&(r.important=!0,r.raws.important=m,e=d)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=u.map(c=>c[1]).join(""),u=[]),this.raw(r,"value",u.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 As;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")s||(s=f),o.push(r==="("?")":"]");else if(a&&i&&r==="{")s||(s=f),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!a)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,o,a=r.length,l="",f=!0,u,h;for(let c=0;c<a;c+=1)s=r[c],o=s[0],o==="space"&&c===a-1&&!i?f=!1:o==="comment"?(h=r[c-1]?r[c-1][0]:"empty",u=r[c+1]?r[c+1][0]:"empty",!Ds[h]&&!Ds[u]?l.slice(-1)===","?f=!1:l+=s[1]:f=!1):l+=s[1];if(!f){let c=r.reduce((d,m)=>d+m[1],"");e.raws[t]={raw:c,value:l}}e[t]=l}rule(e){e.pop();let t=new As;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 i=t;i<e.length;i++)r+=e[i][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})}};Ms.exports=on});var Us=b((dd,Ps)=>{"use strict";var Pf=yt(),Uf=ys(),kf=Fs();function Jt(n,e){let t=new Uf(n,e),r=new kf(t);try{r.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
20
+ `);return t=s[s.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],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){if(e.source&&e.source.input.hasBOM&&this.builder("\uFEFF",e,"start"),this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&e.parent.type==="document";this.builder(r?t:he(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(he(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)}};bi.exports=dt;dt.default=dt});var Li=b((od,Oi)=>{"use strict";var Fa=Ar();function Dr(n,e){new Fa(e).stringify(n)}Oi.exports=Dr;Dr.default=Dr});var Pr=b((ld,Mr)=>{"use strict";Mr.exports.isClean=Symbol("isClean");Mr.exports.my=Symbol("my")});var $t=b((ad,Ti)=>{"use strict";var ka=Rr(),Ua=Ar(),Ba=Li(),{isClean:pt,my:za}=Pr();function Ga(n,e){let t=new n.constructor,r=[[n,t,e]];for(;r.length>0;){let[i,s,o]=r.pop();for(let a in i){if(!Object.prototype.hasOwnProperty.call(i,a)||a==="proxyCache")continue;let l=i[a],f=typeof l;if(a==="parent"&&f==="object")o&&(s[a]=o);else if(a==="source")s[a]=l;else if(Array.isArray(l)){let u=[];s[a]=u;for(let h of l){let c=new h.constructor;u.push(c),r.push([h,c,s])}}else{if(f==="object"&&l!==null){let u=new l.constructor;r.push([l,u,void 0]),l=u}s[a]=l}}}return t}function ge(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,i=0;for(let s=0;s<n.length;s++){if(r===e.line&&t===e.column){i=s;break}n[s]===`
21
+ `?(t=1,r+=1):t+=1}return i}var mt=class n{get proxyOf(){return this}constructor(e={}){this.raws={},this[pt]=!1,this[za]=!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=Ga(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:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new ka(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[pt]=!0}markDirty(){if(this[pt]){this[pt]=!1;let e=this;for(;e=e.parent;)e[pt]=!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:ge(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){let s=t.slice(ge(t,this.source.start),ge(t,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=ge(i,this.source.start),o=s+e;for(let a=s;a<o;a++)i[a]===`
22
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}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:ge(t,this.source.start)},i=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:ge(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(ge(t,this.source.start),ge(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:ge(t,e.start)}:typeof e.index=="number"&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:ge(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):typeof e.index=="number"&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Ua().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 i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);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 i=[],s=[[this,i,0]];for(let a=0;a<s.length;a++){let[l,f,u]=s[a],h={};f[u]=h;for(let c in l){if(!Object.prototype.hasOwnProperty.call(l,c)||c==="parent"||c==="proxyCache")continue;let d=l[c];if(Array.isArray(d)){let m=[];h[c]=m;for(let p=0;p<d.length;p++){let g=d[p];typeof g=="object"&&g.toJSON?g.toJSON===n.prototype.toJSON?s.push([g,m,p]):m[p]=g.toJSON(null,t):m[p]=g}}else if(typeof d=="object"&&d.toJSON)d.toJSON===n.prototype.toJSON?s.push([d,h,c]):h[c]=d.toJSON(null,t);else if(c==="source"){if(d==null)continue;let m=t.get(d.input);m==null&&(m=t.size,t.set(d.input,m)),h[c]={end:d.end,inputId:m,start:d.start}}else h[c]=d}}let o=i[0];return r&&(o.inputs=[...t.keys()].map(a=>a.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ba){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(t,i)}};Ti.exports=mt;mt.default=mt});var Fr=b((fd,Ni)=>{"use strict";var Wa=$t(),gt=class extends Wa{constructor(e){super(e),this.type="comment"}};Ni.exports=gt;gt.default=gt});var kr=b((ud,Ii)=>{"use strict";var qa=$t(),_t=class extends qa{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"}};Ii.exports=_t;_t.default=_t});var yt=b((cd,Ui)=>{"use strict";var Ai=Fr(),Di=kr(),Ri=$t(),{isClean:Mi,my:Pi}=Pr(),Ur,Fi,ki,Br;function ja(n){let e=n.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 n.slice()}function $a(n){let e=[n];for(;e.length>0;){let t=e.pop();if(t[Mi]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e.push(r)}}var _e=class n extends Ri{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 i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let r=t.pop();if(r!==this&&r.cleanRaws!==n.prototype.cleanRaws){r.cleanRaws(e);continue}if(Ri.prototype.cleanRaws.call(r,e),r.nodes)for(let i of r.nodes)t.push(i)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}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(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...s)=>r(i.toProxy(),...s)):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),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ja(Fi(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"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 Di(e)]}else if(e.selector||e.selectors)e=[new Br(e)];else if(e.name)e=[new Ur(e)];else if(e.text)e=[new Ai(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Pi]||n.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Mi]&&$a(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+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(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.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:i}=t[t.length-1],s=i.indexes[r];if(s>=i.proxyOf.nodes.length){delete i.indexes[r],t.pop();let l=t[t.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let o=i.proxyOf.nodes[s],a;try{a=e(o,s)}catch(l){throw o.addToError(l)}if(a===!1){for(let l of t)delete l.node.indexes[l.iterator];return!1}o.walk&&o.proxyOf.nodes?t.push({iterator:o.getIterator(),node:o}):i.indexes[r]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}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,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};_e.registerParse=n=>{Fi=n};_e.registerRule=n=>{Br=n};_e.registerAtRule=n=>{Ur=n};_e.registerRoot=n=>{ki=n};Ui.exports=_e;_e.default=_e;_e.rebuild=n=>{let e=[n];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,Ur.prototype):t.type==="rule"?Object.setPrototypeOf(t,Br.prototype):t.type==="decl"?Object.setPrototypeOf(t,Di.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ai.prototype):t.type==="root"&&Object.setPrototypeOf(t,ki.prototype),t[Pi]=!0,t.nodes)for(let r of t.nodes)e.push(r)}}});var zi=b((hd,Bi)=>{var Va="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ha=(n,e=21)=>(t=e)=>{let r="",i=t|0;for(;i-- >0;)r+=n[Math.random()*n.length|0];return r},Za=(n=21)=>{let e="",t=n|0;for(;t-- >0;)e+=Va[Math.random()*64|0];return e};Bi.exports={nanoid:Za,customAlphabet:Ha}});var Wi=b(zr=>{var Gi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");zr.encode=function(n){if(0<=n&&n<Gi.length)return Gi[n];throw new TypeError("Must be between 0 and 63: "+n)};zr.decode=function(n){var e=65,t=90,r=97,i=122,s=48,o=57,a=43,l=47,f=26,u=52;return e<=n&&n<=t?n-e:r<=n&&n<=i?n-r+f:s<=n&&n<=o?n-s+u:n==a?62:n==l?63:-1}});var qr=b(Wr=>{var qi=Wi(),Gr=5,ji=1<<Gr,$i=ji-1,Vi=ji;function Ya(n){return n<0?(-n<<1)+1:(n<<1)+0}function Xa(n){var e=(n&1)===1,t=n>>1;return e?-t:t}Wr.encode=function(e){var t="",r,i=Ya(e);do r=i&$i,i>>>=Gr,i>0&&(r|=Vi),t+=qi.encode(r);while(i>0);return t};Wr.decode=function(e,t,r){var i=e.length,s=0,o=0,a,l;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=qi.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&Vi),l&=$i,s=s+(l<<o),o+=Gr}while(a);r.value=Xa(s),r.rest=t}});var He=b(j=>{function Ja(n,e,t){if(e in n)return n[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}j.getArg=Ja;var Hi=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ka=/^data:.+\,.+$/;function wt(n){var e=n.match(Hi);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}j.urlParse=wt;function Ve(n){var e="";return n.scheme&&(e+=n.scheme+":"),e+="//",n.auth&&(e+=n.auth+"@"),n.host&&(e+=n.host),n.port&&(e+=":"+n.port),n.path&&(e+=n.path),e}j.urlGenerate=Ve;var Qa=32;function ef(n){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var i=e[0];return e[0]=e[r],e[r]=i,e[0].result}var s=n(t);return e.unshift({input:t,result:s}),e.length>Qa&&e.pop(),s}}var jr=ef(function(e){var t=e,r=wt(e);if(r){if(!r.path)return e;t=r.path}for(var i=j.isAbsolute(t),s=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){s.push(t.slice(o));break}else for(s.push(t.slice(o,a));a<t.length&&t[a]==="/";)a++;for(var l,f=0,a=s.length-1;a>=0;a--)l=s[a],l==="."?s.splice(a,1):l===".."?f++:f>0&&(l===""?(s.splice(a+1,f),f=0):(s.splice(a,2),f--));return t=s.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,Ve(r)):t});j.normalize=jr;function Zi(n,e){n===""&&(n="."),e===""&&(e=".");var t=wt(e),r=wt(n);if(r&&(n=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),Ve(t);if(t||e.match(Ka))return e;if(r&&!r.host&&!r.path)return r.host=e,Ve(r);var i=e.charAt(0)==="/"?e:jr(n.replace(/\/+$/,"")+"/"+e);return r?(r.path=i,Ve(r)):i}j.join=Zi;j.isAbsolute=function(n){return n.charAt(0)==="/"||Hi.test(n)};function tf(n,e){n===""&&(n="."),n=n.replace(/\/$/,"");for(var t=0;e.indexOf(n+"/")!==0;){var r=n.lastIndexOf("/");if(r<0||(n=n.slice(0,r),n.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(n.length+1)}j.relative=tf;var Yi=(function(){var n=Object.create(null);return!("__proto__"in n)})();function Xi(n){return n}function rf(n){return Ji(n)?"$"+n:n}j.toSetString=Yi?Xi:rf;function nf(n){return Ji(n)?n.slice(1):n}j.fromSetString=Yi?Xi:nf;function Ji(n){if(!n)return!1;var e=n.length;if(e<9||n.charCodeAt(e-1)!==95||n.charCodeAt(e-2)!==95||n.charCodeAt(e-3)!==111||n.charCodeAt(e-4)!==116||n.charCodeAt(e-5)!==111||n.charCodeAt(e-6)!==114||n.charCodeAt(e-7)!==112||n.charCodeAt(e-8)!==95||n.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(n.charCodeAt(t)!==36)return!1;return!0}function sf(n,e,t){var r=we(n.source,e.source);return r!==0||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:we(n.name,e.name)}j.compareByOriginalPositions=sf;function of(n,e,t){var r;return r=n.originalLine-e.originalLine,r!==0||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:we(n.name,e.name)}j.compareByOriginalPositionsNoSource=of;function lf(n,e,t){var r=n.generatedLine-e.generatedLine;return r!==0||(r=n.generatedColumn-e.generatedColumn,r!==0||t)||(r=we(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:we(n.name,e.name)}j.compareByGeneratedPositionsDeflated=lf;function af(n,e,t){var r=n.generatedColumn-e.generatedColumn;return r!==0||t||(r=we(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:we(n.name,e.name)}j.compareByGeneratedPositionsDeflatedNoLine=af;function we(n,e){return n===e?0:n===null?1:e===null?-1:n>e?1:-1}function ff(n,e){var t=n.generatedLine-e.generatedLine;return t!==0||(t=n.generatedColumn-e.generatedColumn,t!==0)||(t=we(n.source,e.source),t!==0)||(t=n.originalLine-e.originalLine,t!==0)||(t=n.originalColumn-e.originalColumn,t!==0)?t:we(n.name,e.name)}j.compareByGeneratedPositionsInflated=ff;function uf(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}j.parseSourceMapInput=uf;function cf(n,e,t){if(e=e||"",n&&(n[n.length-1]!=="/"&&e[0]!=="/"&&(n+="/"),e=n+e),t){var r=wt(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}e=Zi(Ve(r),e)}return jr(e)}j.computeSourceURL=cf});var Hr=b(Ki=>{var $r=He(),Vr=Object.prototype.hasOwnProperty,ke=typeof Map<"u";function Ee(){this._array=[],this._set=ke?new Map:Object.create(null)}Ee.fromArray=function(e,t){for(var r=new Ee,i=0,s=e.length;i<s;i++)r.add(e[i],t);return r};Ee.prototype.size=function(){return ke?this._set.size:Object.getOwnPropertyNames(this._set).length};Ee.prototype.add=function(e,t){var r=ke?e:$r.toSetString(e),i=ke?this.has(e):Vr.call(this._set,r),s=this._array.length;(!i||t)&&this._array.push(e),i||(ke?this._set.set(e,s):this._set[r]=s)};Ee.prototype.has=function(e){if(ke)return this._set.has(e);var t=$r.toSetString(e);return Vr.call(this._set,t)};Ee.prototype.indexOf=function(e){if(ke){var t=this._set.get(e);if(t>=0)return t}else{var r=$r.toSetString(e);if(Vr.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};Ee.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ee.prototype.toArray=function(){return this._array.slice()};Ki.ArraySet=Ee});var ts=b(es=>{var Qi=He();function hf(n,e){var t=n.generatedLine,r=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn;return r>t||r==t&&s>=i||Qi.compareByGeneratedPositionsInflated(n,e)<=0}function Vt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Vt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Vt.prototype.add=function(e){hf(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Vt.prototype.toArray=function(){return this._sorted||(this._array.sort(Qi.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};es.MappingList=Vt});var Zr=b(rs=>{var Et=qr(),B=He(),Ht=Hr().ArraySet,df=ts().MappingList;function se(n){n||(n={}),this._file=B.getArg(n,"file",null),this._sourceRoot=B.getArg(n,"sourceRoot",null),this._skipValidation=B.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=B.getArg(n,"ignoreInvalidMapping",!1),this._sources=new Ht,this._names=new Ht,this._mappings=new df,this._sourcesContents=null}se.prototype._version=3;se.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new se(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=B.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=B.relative(r,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};se.prototype.addMapping=function(e){var t=B.getArg(e,"generated"),r=B.getArg(e,"original",null),i=B.getArg(e,"source",null),s=B.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))};se.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=B.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[B.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[B.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};se.prototype.applySourceMap=function(e,t,r){var i=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.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=B.relative(s,i));var o=new Ht,a=new Ht;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=B.join(r,l.source)),s!=null&&(l.source=B.relative(s,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var u=l.source;u!=null&&!o.has(u)&&o.add(u);var h=l.name;h!=null&&!a.has(h)&&a.add(h)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=B.join(r,l)),s!=null&&(l=B.relative(s,l)),this.setSourceContent(l,f))},this)};se.prototype._validateMapping=function(e,t,r,i){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var s="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(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!i)){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 s="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};se.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,i=0,s=0,o=0,a="",l,f,u,h,c=this._mappings.toArray(),d=0,m=c.length;d<m;d++){if(f=c[d],l="",f.generatedLine!==t)for(e=0;f.generatedLine!==t;)l+=";",t++;else if(d>0){if(!B.compareByGeneratedPositionsInflated(f,c[d-1]))continue;l+=","}l+=Et.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(h=this._sources.indexOf(f.source),l+=Et.encode(h-o),o=h,l+=Et.encode(f.originalLine-1-i),i=f.originalLine-1,l+=Et.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(u=this._names.indexOf(f.name),l+=Et.encode(u-s),s=u)),a+=l}return a};se.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=B.relative(t,r));var i=B.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};se.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};se.prototype.toString=function(){return JSON.stringify(this.toJSON())};rs.SourceMapGenerator=se});var ns=b(Ue=>{Ue.GREATEST_LOWER_BOUND=1;Ue.LEAST_UPPER_BOUND=2;function Yr(n,e,t,r,i,s){var o=Math.floor((e-n)/2)+n,a=i(t,r[o],!0);return a===0?o:a>0?e-o>1?Yr(o,e,t,r,i,s):s==Ue.LEAST_UPPER_BOUND?e<r.length?e:-1:o:o-n>1?Yr(n,o,t,r,i,s):s==Ue.LEAST_UPPER_BOUND?o:n<0?-1:n}Ue.search=function(e,t,r,i){if(t.length===0)return-1;var s=Yr(-1,t.length,e,t,r,i||Ue.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(t[s],t[s-1],!0)===0;)--s;return s}});var os=b(ss=>{function pf(n){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,o,a){if(o<a){var l=t(o,a),f=o-1;e(i,l,a);for(var u=i[a],h=o;h<a;h++)s(i[h],u,!1)<=0&&(f+=1,e(i,f,h));e(i,f+1,h);var c=f+1;r(i,s,o,c-1),r(i,s,c+1,a)}}return r}function mf(n){let e=pf.toString();return new Function(`return ${e}`)()(n)}var is=new WeakMap;ss.quickSort=function(n,e,t=0){let r=is.get(e);r===void 0&&(r=mf(e),is.set(e,r)),r(n,e,t,n.length-1)}});var fs=b(Zt=>{var v=He(),Jr=ns(),Ze=Hr().ArraySet,gf=qr(),St=os().quickSort;function P(n,e){var t=n;return typeof n=="string"&&(t=v.parseSourceMapInput(n)),t.sections!=null?new de(t,e):new V(t,e)}P.fromSourceMap=function(n,e){return V.fromSourceMap(n,e)};P.prototype._version=3;P.prototype.__generatedMappings=null;Object.defineProperty(P.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});P.prototype.__originalMappings=null;Object.defineProperty(P.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});P.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};P.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};P.GENERATED_ORDER=1;P.ORIGINAL_ORDER=2;P.GREATEST_LOWER_BOUND=1;P.LEAST_UPPER_BOUND=2;P.prototype.eachMapping=function(e,t,r){var i=t||null,s=r||P.GENERATED_ORDER,o;switch(s){case P.GENERATED_ORDER:o=this._generatedMappings;break;case P.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),f=this._names,u=this._sources,h=this._sourceMapURL,c=0,d=o.length;c<d;c++){var m=o[c],p=m.source===null?null:u.at(m.source);p!==null&&(p=v.computeSourceURL(a,p,h)),l({source:p,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:f.at(m.name)})}};P.prototype.allGeneratedPositionsFor=function(e){var t=v.getArg(e,"line"),r={source:v.getArg(e,"source"),originalLine:t,originalColumn:v.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",v.compareByOriginalPositions,Jr.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:v.getArg(o,"generatedLine",null),column:v.getArg(o,"generatedColumn",null),lastColumn:v.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)i.push({line:v.getArg(o,"generatedLine",null),column:v.getArg(o,"generatedColumn",null),lastColumn:v.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Zt.SourceMapConsumer=P;function V(n,e){var t=n;typeof n=="string"&&(t=v.parseSourceMapInput(n));var r=v.getArg(t,"version"),i=v.getArg(t,"sources"),s=v.getArg(t,"names",[]),o=v.getArg(t,"sourceRoot",null),a=v.getArg(t,"sourcesContent",null),l=v.getArg(t,"mappings"),f=v.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=v.normalize(o)),i=i.map(String).map(v.normalize).map(function(u){return o&&v.isAbsolute(o)&&v.isAbsolute(u)?v.relative(o,u):u}),this._names=Ze.fromArray(s.map(String),!0),this._sources=Ze.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return v.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=f}V.prototype=Object.create(P.prototype);V.prototype.consumer=P;V.prototype._findSourceIndex=function(n){var e=n;if(this.sourceRoot!=null&&(e=v.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==n)return t;return-1};V.fromSourceMap=function(e,t){var r=Object.create(V.prototype),i=r._names=Ze.fromArray(e._names.toArray(),!0),s=r._sources=Ze.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(d){return v.computeSourceURL(r.sourceRoot,d,t)});for(var o=e._mappings.toArray().slice(),a=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,u=o.length;f<u;f++){var h=o[f],c=new as;c.generatedLine=h.generatedLine,c.generatedColumn=h.generatedColumn,h.source&&(c.source=s.indexOf(h.source),c.originalLine=h.originalLine,c.originalColumn=h.originalColumn,h.name&&(c.name=i.indexOf(h.name)),l.push(c)),a.push(c)}return St(r.__originalMappings,v.compareByOriginalPositions),r};V.prototype._version=3;Object.defineProperty(V.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function as(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Xr=v.compareByGeneratedPositionsDeflatedNoLine;function ls(n,e){let t=n.length,r=n.length-e;if(!(r<=1))if(r==2){let i=n[e],s=n[e+1];Xr(i,s)>0&&(n[e]=s,n[e+1]=i)}else if(r<20)for(let i=e;i<t;i++)for(let s=i;s>e;s--){let o=n[s-1],a=n[s];if(Xr(o,a)<=0)break;n[s-1]=a,n[s]=o}else St(n,Xr,e)}V.prototype._parseMappings=function(e,t){var r=1,i=0,s=0,o=0,a=0,l=0,f=e.length,u=0,h={},c={},d=[],m=[],p,g,w,S,O;let L=0;for(;u<f;)if(e.charAt(u)===";")r++,u++,i=0,ls(m,L),L=m.length;else if(e.charAt(u)===",")u++;else{for(p=new as,p.generatedLine=r,S=u;S<f&&!this._charIsMappingSeparator(e,S);S++);for(g=e.slice(u,S),w=[];u<S;)gf.decode(e,u,c),O=c.value,u=c.rest,w.push(O);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");if(p.generatedColumn=i+w[0],i=p.generatedColumn,w.length>1&&(p.source=a+w[1],a+=w[1],p.originalLine=s+w[2],s=p.originalLine,p.originalLine+=1,p.originalColumn=o+w[3],o=p.originalColumn,w.length>4&&(p.name=l+w[4],l+=w[4])),m.push(p),typeof p.originalLine=="number"){let I=p.source;for(;d.length<=I;)d.push(null);d[I]===null&&(d[I]=[]),d[I].push(p)}}ls(m,L),this.__generatedMappings=m;for(var R=0;R<d.length;R++)d[R]!=null&&St(d[R],v.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};V.prototype._findMapping=function(e,t,r,i,s,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Jr.search(e,t,s,o)};V.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}};V.prototype.originalPositionFor=function(e){var t={generatedLine:v.getArg(e,"line"),generatedColumn:v.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",v.compareByGeneratedPositionsDeflated,v.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var s=v.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=v.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=v.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:v.getArg(i,"originalLine",null),column:v.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};V.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};V.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=v.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=v.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')};V.prototype.generatedPositionFor=function(e){var t=v.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:v.getArg(e,"line"),originalColumn:v.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",v.compareByOriginalPositions,v.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:v.getArg(s,"generatedLine",null),column:v.getArg(s,"generatedColumn",null),lastColumn:v.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Zt.BasicSourceMapConsumer=V;function de(n,e){var t=n;typeof n=="string"&&(t=v.parseSourceMapInput(n));var r=v.getArg(t,"version"),i=v.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Ze,this._names=new Ze;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=v.getArg(o,"offset"),l=v.getArg(a,"line"),f=v.getArg(a,"column");if(l<s.line||l===s.line&&f<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:l+1,generatedColumn:f+1},consumer:new P(v.getArg(o,"map"),e)}})}de.prototype=Object.create(P.prototype);de.prototype.constructor=P;de.prototype._version=3;Object.defineProperty(de.prototype,"sources",{get:function(){for(var n=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)n.push(this._sections[e].consumer.sources[t]);return n}});de.prototype.originalPositionFor=function(e){var t={generatedLine:v.getArg(e,"line"),generatedColumn:v.getArg(e,"column")},r=Jr.search(t,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};de.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};de.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};de.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(v.getArg(e,"source"))!==-1){var i=r.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};de.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=i.consumer._sources.at(a.source);l!==null&&(l=v.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;a.name&&(f=i.consumer._names.at(a.name),this._names.add(f),f=this._names.indexOf(f));var u={source:l,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:f};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}St(this.__generatedMappings,v.compareByGeneratedPositionsDeflated),St(this.__originalMappings,v.compareByOriginalPositions)};Zt.IndexedSourceMapConsumer=de});var cs=b(us=>{var _f=Zr().SourceMapGenerator,Yt=He(),yf=/(\r?\n)/,wf=10,Ye="$$$isSourceNode$$$";function re(n,e,t,r,i){this.children=[],this.sourceContents={},this.line=n??null,this.column=e??null,this.source=t??null,this.name=i??null,this[Ye]=!0,r!=null&&this.add(r)}re.fromStringWithSourceMap=function(e,t,r){var i=new re,s=e.split(yf),o=0,a=function(){var c=m(),d=m()||"";return c+d;function m(){return o<s.length?s[o++]:void 0}},l=1,f=0,u=null;return t.eachMapping(function(c){if(u!==null)if(l<c.generatedLine)h(u,a()),l++,f=0;else{var d=s[o]||"",m=d.substr(0,c.generatedColumn-f);s[o]=d.substr(c.generatedColumn-f),f=c.generatedColumn,h(u,m),u=c;return}for(;l<c.generatedLine;)i.add(a()),l++;if(f<c.generatedColumn){var d=s[o]||"";i.add(d.substr(0,c.generatedColumn)),s[o]=d.substr(c.generatedColumn),f=c.generatedColumn}u=c},this),o<s.length&&(u&&h(u,a()),i.add(s.splice(o).join(""))),t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(r!=null&&(c=Yt.join(r,c)),i.setSourceContent(c,d))}),i;function h(c,d){if(c===null||c.source===void 0)i.add(d);else{var m=r?Yt.join(r,c.source):c.source;i.add(new re(c.originalLine,c.originalColumn,m,d,c.name))}}};re.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Ye]||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};re.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Ye]||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};re.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)t=this.children[r],t[Ye]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};re.prototype.join=function(e){var t,r,i=this.children.length;if(i>0){for(t=[],r=0;r<i-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};re.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Ye]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};re.prototype.setSourceContent=function(e,t){this.sourceContents[Yt.toSetString(e)]=t};re.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Ye]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(Yt.fromSetString(i[t]),this.sourceContents[i[t]])};re.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};re.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new _f(e),i=!1,s=null,o=null,a=null,l=null;return this.walk(function(f,u){t.code+=f,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||l!==u.name)&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,o=u.line,a=u.column,l=u.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var h=0,c=f.length;h<c;h++)f.charCodeAt(h)===wf?(t.line++,t.column=0,h+1===c?(s=null,i=!1):i&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(f,u){r.setSourceContent(f,u)}),{code:t.code,map:r}};us.SourceNode=re});var Kr=b(Xt=>{Xt.SourceMapGenerator=Zr().SourceMapGenerator;Xt.SourceMapConsumer=fs().SourceMapConsumer;Xt.SourceNode=cs().SourceNode});var gs=b((Cd,ms)=>{"use strict";var{existsSync:Ef,readFileSync:Sf,realpathSync:xf}=require("fs"),{dirname:Jt,isAbsolute:vf,join:Cf,relative:bf,sep:Of}=require("path"),{SourceMapConsumer:hs,SourceMapGenerator:ds}=Kr();function ps(n){try{return xf(n)}catch{return n}}function Lf(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var xt=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,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Jt(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new hs(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return Lf(e.substr(a[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()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let i=bf(ps(Jt(t)),ps(e));if(i===".."||i.startsWith(".."+Of)||vf(i))return}if(this.root=Jt(e),Ef(e))return this.mapFile=e,Sf(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 i=this.loadFile(r,e,!0);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof hs)return ds.fromSourceMap(t).toString();if(t instanceof ds)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=Cf(Jt(e),r));let i=this.loadFile(r,e,!1);if(i)try{this.json=JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return i}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};ms.exports=xt;xt.default=xt});var xs=b((bd,Ss)=>{"use strict";var{nanoid:Tf}=zi(),{isAbsolute:tn,resolve:rn}=require("path"),{SourceMapConsumer:Nf,SourceMapGenerator:If}=Kr(),{fileURLToPath:_s,pathToFileURL:Kt}=require("url"),ys=Rr(),Rf=gs(),Qr=Ir(),en=Symbol("lineToIndexCache"),Af=!!(Nf&&If),ws=!!(rn&&tn);function Es(n){if(n[en])return n[en];let e=n.css.split(`
23
+ `),t=new Array(e.length),r=0;for(let i=0,s=e.length;i<s;i++)t[i]=r,r+=e[i].length+1;return n[en]=t,t}var Xe=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&&(!ws||/^\w+:\/\//.test(t.from)||tn(t.from)?this.file=t.from:this.file=rn(t.from)),ws&&Af){let r=new Rf(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Tf(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let s,o,a,l,f;if(t&&typeof t=="object"){let h=t,c=r;if(typeof h.offset=="number"){l=h.offset;let d=this.fromOffset(l);t=d.line,r=d.col}else t=h.line,r=h.column,l=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){a=c.offset;let d=this.fromOffset(a);o=d.line,s=d.col}else o=c.line,s=c.column,a=this.fromLineAndColumn(c.line,c.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let h=this.fromOffset(l);t=h.line,r=h.col}let u=this.origin(t,r,o,s);return u?f=new ys(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):f=new ys(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,i.plugin),f.input={column:r,endColumn:s,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(Kt&&(f.input.url=Kt(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return Es(this)[e-1]+t-1}fromOffset(e){let t=Es(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let s=t.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<t[o])s=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let a;if(typeof r=="number"){let h=s.originalPositionFor({column:i-1,line:r});h.source&&(a=h)}let l;tn(o.source)?l=Kt(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Kt(this.map.mapFile));let f={column:o.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(_s)f.file=_s(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(f.source=u),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}};Ss.exports=Xe;Xe.default=Xe;Qr&&Qr.registerInput&&Qr.registerInput(Xe)});var bs=b((Od,Cs)=>{"use strict";var vs=yt(),Je=class extends vs{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)}};Cs.exports=Je;Je.default=Je;vs.registerAtRule(Je)});var Is=b((Ld,Ns)=>{"use strict";var Os=yt(),Ls,Ts,Oe=class extends Os{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=new Set;for(let o of Array.isArray(e)?e:[e])o&&typeof o=="object"&&!o.parent&&o.raws&&typeof o.raws.before<"u"&&i.add(o.raws);let s=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 o of s)i.has(o.raws)||(o.raws.before=t.raws.before)}return s}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 Ls(new Ts,this,e).stringify()}};Oe.registerLazyResult=n=>{Ls=n};Oe.registerProcessor=n=>{Ts=n};Ns.exports=Oe;Oe.default=Oe;Os.registerRoot(Oe)});var As=b((Td,Rs)=>{"use strict";var vt={comma(n){return vt.split(n,[","],!0)},space(n){let e=[" ",`
24
+ `," "];return vt.split(n,e)},split(n,e,t){if(typeof n!="string")return[];let r=[],i="",s=!1,o=0,a=!1,l="",f=!1;for(let u of n)f?f=!1:u==="\\"?f=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};Rs.exports=vt;vt.default=vt});var Ps=b((Nd,Ms)=>{"use strict";var Ds=yt(),Df=As(),Ke=class extends Ds{get selectors(){return Df.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=[])}};Ms.exports=Ke;Ke.default=Ke;Ds.registerRule(Ke)});var Bs=b((Id,Us)=>{"use strict";var Mf=bs(),Pf=Fr(),Ff=kr(),kf=Is(),Fs=Ps(),Uf=Nr(),ks={empty:!0,space:!0};function Bf(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}function nn(n,e,t){let r="";for(let i=e;i<t;i++)r+=n[i][1];return r}var sn=class{constructor(e){this.input=e,this.root=new kf,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 Mf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,s,o=!1,a=!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==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,s;for(let[o,a]of e.entries()){if(i=a,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new Pf;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 i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Uf(this.input)}decl(e,t){let r=new Ff;this.init(r,e[0][2]);let i=e[e.length-1];i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Bf(e)),r.source.end.offset++;let s=0;for(;e[s][0]!=="word";)s===e.length-1&&this.unknownWord([e[s]]),s++;r.raws.before+=nn(e,0,s),r.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let c=e[s][0];if(c===":"||c==="space"||c==="comment")break;s++}r.prop=nn(e,o,s);let a=s,l;for(;s<e.length&&(l=e[s],s++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=nn(e,a,s),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=s;for(;s<e.length;){let c=e[s][0];if(c!=="space"&&c!=="comment")break;s++}let u=e.slice(f,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(l=e[c],l[1].toLowerCase()==="!important"){r.important=!0;let d=this.stringFrom(e,c);d=this.spacesFromEnd(e)+d,d!==" !important"&&(r.raws.important=d);break}else if(l[1].toLowerCase()==="important"){let d=e.slice(0),m="";for(let p=c;p>0;p--){let g=d[p][0];if(m.trim().startsWith("!")&&g!=="space")break;m=d.pop()[1]+m}m.trim().startsWith("!")&&(r.important=!0,r.raws.important=m,e=d)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=u.map(c=>c[1]).join(""),u=[]),this.raw(r,"value",u.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 Fs;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")s||(s=f),o.push(r==="("?")":"]");else if(a&&i&&r==="{")s||(s=f),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!a)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,o,a=r.length,l="",f=!0,u,h;for(let c=0;c<a;c+=1)s=r[c],o=s[0],o==="space"&&c===a-1&&!i?f=!1:o==="comment"?(h=r[c-1]?r[c-1][0]:"empty",u=r[c+1]?r[c+1][0]:"empty",!ks[h]&&!ks[u]?l.slice(-1)===","?f=!1:l+=s[1]:f=!1):l+=s[1];if(!f){let c=r.reduce((d,m)=>d+m[1],"");e.raws[t]={raw:c,value:l}}e[t]=l}rule(e){e.pop();let t=new Fs;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 i=t;i<e.length;i++)r+=e[i][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})}};Us.exports=sn});var Gs=b((Rd,zs)=>{"use strict";var zf=yt(),Gf=xs(),Wf=Bs();function Qt(n,e){let t=new Gf(n,e),r=new Wf(t);try{r.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.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)?i.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)&&(i.message+=`
27
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return r.root}Ps.exports=Jt;Jt.default=Jt;Pf.registerParse(Jt)});var Ee=b((pd,zs)=>{"use strict";var ks=["nodebuffer","arraybuffer","fragments"],Bs=typeof Blob<"u";Bs&&ks.push("blob");zs.exports={BINARY_TYPES:ks,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:Bs,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Ct=b((md,Qt)=>{"use strict";var{EMPTY_BUFFER:Bf}=Ee(),ln=Buffer[Symbol.species];function zf(n,e){if(n.length===0)return Bf;if(n.length===1)return n[0];let t=Buffer.allocUnsafe(e),r=0;for(let i=0;i<n.length;i++){let s=n[i];t.set(s,r),r+=s.length}return r<e?new ln(t.buffer,t.byteOffset,r):t}function Gs(n,e,t,r,i){for(let s=0;s<i;s++)t[r+s]=n[s]^e[s&3]}function Ws(n,e){for(let t=0;t<n.length;t++)n[t]^=e[t&3]}function Gf(n){return n.length===n.buffer.byteLength?n.buffer:n.buffer.slice(n.byteOffset,n.byteOffset+n.length)}function an(n){if(an.readOnly=!0,Buffer.isBuffer(n))return n;let e;return n instanceof ArrayBuffer?e=new ln(n):ArrayBuffer.isView(n)?e=new ln(n.buffer,n.byteOffset,n.byteLength):(e=Buffer.from(n),an.readOnly=!1),e}Qt.exports={concat:zf,mask:Gs,toArrayBuffer:Gf,toBuffer:an,unmask:Ws};if(!process.env.WS_NO_BUFFER_UTIL)try{let n=require("bufferutil");Qt.exports.mask=function(e,t,r,i,s){s<48?Gs(e,t,r,i,s):n.mask(e,t,r,i,s)},Qt.exports.unmask=function(e,t){e.length<32?Ws(e,t):n.unmask(e,t)}}catch{}});var $s=b((gd,qs)=>{"use strict";var js=Symbol("kDone"),fn=Symbol("kRun"),un=class{constructor(e){this[js]=()=>{this.pending--,this[fn]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[fn]()}[fn](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[js])}}};qs.exports=un});var tt=b((_d,Ys)=>{"use strict";var bt=require("zlib"),Vs=Ct(),Wf=$s(),{kStatusCode:Hs}=Ee(),jf=Buffer[Symbol.species],qf=Buffer.from([0,0,255,255]),tr=Symbol("permessage-deflate"),Se=Symbol("total-length"),Qe=Symbol("callback"),Le=Symbol("buffers"),et=Symbol("error"),er,cn=class{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!er){let t=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;er=new Wf(t)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Qe];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(i=>!(t.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>i.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let i=t[r];if(i.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(i=i[0],r==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else if(r==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=s}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=i})}),e}decompress(e,t,r){er.add(i=>{this._decompress(e,t,(s,o)=>{i(),r(s,o)})})}compress(e,t,r){er.add(i=>{this._compress(e,t,(s,o)=>{i(),r(s,o)})})}_decompress(e,t,r){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?bt.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=bt.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[tr]=this,this._inflate[Se]=0,this._inflate[Le]=[],this._inflate.on("error",Vf),this._inflate.on("data",Zs)}this._inflate[Qe]=r,this._inflate.write(e),t&&this._inflate.write(qf),this._inflate.flush(()=>{let s=this._inflate[et];if(s){this._inflate.close(),this._inflate=null,r(s);return}let o=Vs.concat(this._inflate[Le],this._inflate[Se]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Se]=0,this._inflate[Le]=[],t&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),r(null,o)})}_compress(e,t,r){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?bt.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=bt.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[Se]=0,this._deflate[Le]=[],this._deflate.on("data",$f)}this._deflate[Qe]=r,this._deflate.write(e),this._deflate.flush(bt.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=Vs.concat(this._deflate[Le],this._deflate[Se]);t&&(s=new jf(s.buffer,s.byteOffset,s.length-4)),this._deflate[Qe]=null,this._deflate[Se]=0,this._deflate[Le]=[],t&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),r(null,s)})}};Ys.exports=cn;function $f(n){this[Le].push(n),this[Se]+=n.length}function Zs(n){if(this[Se]+=n.length,this[tr]._maxPayload<1||this[Se]<=this[tr]._maxPayload){this[Le].push(n);return}this[et]=new RangeError("Max payload size exceeded"),this[et].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[et][Hs]=1009,this.removeListener("data",Zs),this.reset()}function Vf(n){if(this[tr]._inflate=null,this[et]){this[Qe](this[et]);return}n[Hs]=1007,this[Qe](n)}});var rt=b((yd,rr)=>{"use strict";var{isUtf8:Xs}=require("buffer"),{hasBlob:Hf}=Ee(),Zf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function Yf(n){return n>=1e3&&n<=1014&&n!==1004&&n!==1005&&n!==1006||n>=3e3&&n<=4999}function hn(n){let e=n.length,t=0;for(;t<e;)if((n[t]&128)===0)t++;else if((n[t]&224)===192){if(t+1===e||(n[t+1]&192)!==128||(n[t]&254)===192)return!1;t+=2}else if((n[t]&240)===224){if(t+2>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||n[t]===224&&(n[t+1]&224)===128||n[t]===237&&(n[t+1]&224)===160)return!1;t+=3}else if((n[t]&248)===240){if(t+3>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||(n[t+3]&192)!==128||n[t]===240&&(n[t+1]&240)===128||n[t]===244&&n[t+1]>143||n[t]>244)return!1;t+=4}else return!1;return!0}function Xf(n){return Hf&&typeof n=="object"&&typeof n.arrayBuffer=="function"&&typeof n.type=="string"&&typeof n.stream=="function"&&(n[Symbol.toStringTag]==="Blob"||n[Symbol.toStringTag]==="File")}rr.exports={isBlob:Xf,isValidStatusCode:Yf,isValidUTF8:hn,tokenChars:Zf};if(Xs)rr.exports.isValidUTF8=function(n){return n.length<24?hn(n):Xs(n)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let n=require("utf-8-validate");rr.exports.isValidUTF8=function(e){return e.length<32?hn(e):n(e)}}catch{}});var _n=b((wd,no)=>{"use strict";var{Writable:Kf}=require("stream"),Ks=tt(),{BINARY_TYPES:Jf,EMPTY_BUFFER:Js,kStatusCode:Qf,kWebSocket:eu}=Ee(),{concat:dn,toArrayBuffer:tu,unmask:ru}=Ct(),{isValidStatusCode:nu,isValidUTF8:Qs}=rt(),nr=Buffer[Symbol.species],oe=0,eo=1,to=2,ro=3,pn=4,mn=5,ir=6,gn=class extends Kf{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||Jf[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[eu]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=oe}_write(e,t,r){if(this._opcode===8&&this._state==oe)return r();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){r(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new nr(r.buffer,r.byteOffset+e,r.length-e),new nr(r.buffer,r.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let r=this._buffers[0],i=t.length-e;e>=r.length?t.set(this._buffers.shift(),i):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),i),this._buffers[0]=new nr(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case oe:this.getInfo(e);break;case eo:this.getPayloadLength16(e);break;case to:this.getPayloadLength64(e);break;case ro:this.getMask();break;case pn:this.getData(e);break;case mn:case ir:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(i);return}let r=(t[0]&64)===64;if(r&&!this._extensions[Ks.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(i);return}if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(i);return}}else{let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(i);return}this._payloadLength===126?this._state=eo:this._payloadLength===127?this._state=to:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(i);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=ro:this._state=pn}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=pn}getData(e){let t=Js;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&ru(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=mn,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){let r=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");e(r);return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[Ks.extensionName].decompress(e,this._fin,(i,s)=>{if(i)return t(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(o);return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){let o=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");t(o);return}this._fragments.push(s)}this.dataMessage(t),this._state===oe&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=oe;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=dn(r,t):this._binaryType==="arraybuffer"?i=tu(dn(r,t)):this._binaryType==="blob"?i=new Blob(r):i=r,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=oe):(this._state=ir,setImmediate(()=>{this.emit("message",i,!0),this._state=oe,this.startLoop(e)}))}else{let i=dn(r,t);if(!this._skipUTF8Validation&&!Qs(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(s);return}this._state===mn||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=oe):(this._state=ir,setImmediate(()=>{this.emit("message",i,!1),this._state=oe,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,Js),this.end();else{let r=e.readUInt16BE(0);if(!nu(r)){let s=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(s);return}let i=new nr(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!Qs(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(s);return}this._loop=!1,this.emit("conclude",r,i),this.end()}this._state=oe;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=oe):(this._state=ir,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=oe,this.startLoop(t)}))}createError(e,t,r,i,s){this._loop=!1,this._errored=!0;let o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=s,o[Qf]=i,o}};no.exports=gn});var En=b((Sd,oo)=>{"use strict";var{Duplex:Ed}=require("stream"),{randomFillSync:iu}=require("crypto"),{types:{isUint8Array:su}}=require("util"),io=tt(),{EMPTY_BUFFER:ou,kWebSocket:lu,NOOP:au}=Ee(),{isBlob:nt,isValidStatusCode:fu}=rt(),{mask:so,toBuffer:Be}=Ct(),le=Symbol("kByteLength"),uu=Buffer.alloc(4),sr=8*1024,ze,it=sr,pe=0,cu=1,hu=2,yn=class n{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=pe,this.onerror=au,this[lu]=void 0}static frame(e,t){let r,i=!1,s=2,o=!1;t.mask&&(r=t.maskBuffer||uu,t.generateMask?t.generateMask(r):(it===sr&&(ze===void 0&&(ze=Buffer.alloc(sr)),iu(ze,0,sr),it=0),r[0]=ze[it++],r[1]=ze[it++],r[2]=ze[it++],r[3]=ze[it++]),o=(r[0]|r[1]|r[2]|r[3])===0,s=6);let a;typeof e=="string"?(!t.mask||o)&&t[le]!==void 0?a=t[le]:(e=Buffer.from(e),a=e.length):(a=e.length,i=t.mask&&t.readOnly&&!o);let l=a;a>=65536?(s+=8,l=127):a>125&&(s+=2,l=126);let f=Buffer.allocUnsafe(i?a+s:s);return f[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(f[0]|=64),f[1]=l,l===126?f.writeUInt16BE(a,2):l===127&&(f[2]=f[3]=0,f.writeUIntBE(a,4,6)),t.mask?(f[1]|=128,f[s-4]=r[0],f[s-3]=r[1],f[s-2]=r[2],f[s-1]=r[3],o?[f,e]:i?(so(e,r,f,s,a),[f]):(so(e,r,e,0,a),[f,e])):[f,e]}close(e,t,r,i){let s;if(e===void 0)s=ou;else{if(typeof e!="number"||!fu(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(e,0);else{let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");if(s=Buffer.allocUnsafe(2+a),s.writeUInt16BE(e,0),typeof t=="string")s.write(t,2);else if(su(t))s.set(t,2);else throw new TypeError("Second argument must be a string or a Uint8Array")}}let o={[le]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==pe?this.enqueue([this.dispatch,s,!1,o,i]):this.sendFrame(n.frame(s,o),i)}ping(e,t,r){let i,s;if(typeof e=="string"?(i=Buffer.byteLength(e),s=!1):nt(e)?(i=e.size,s=!1):(e=Be(e),i=e.length,s=Be.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[le]:i,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};nt(e)?this._state!==pe?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==pe?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(n.frame(e,o),r)}pong(e,t,r){let i,s;if(typeof e=="string"?(i=Buffer.byteLength(e),s=!1):nt(e)?(i=e.size,s=!1):(e=Be(e),i=e.length,s=Be.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[le]:i,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};nt(e)?this._state!==pe?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==pe?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(n.frame(e,o),r)}send(e,t,r){let i=this._extensions[io.extensionName],s=t.binary?2:1,o=t.compress,a,l;typeof e=="string"?(a=Buffer.byteLength(e),l=!1):nt(e)?(a=e.size,l=!1):(e=Be(e),a=e.length,l=Be.readOnly),this._firstFragment?(this._firstFragment=!1,o&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=a>=i._threshold),this._compress=o):(o=!1,s=0),t.fin&&(this._firstFragment=!0);let f={[le]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:l,rsv1:o};nt(e)?this._state!==pe?this.enqueue([this.getBlobData,e,this._compress,f,r]):this.getBlobData(e,this._compress,f,r):this._state!==pe?this.enqueue([this.dispatch,e,this._compress,f,r]):this.dispatch(e,this._compress,f,r)}getBlobData(e,t,r,i){this._bufferedBytes+=r[le],this._state=hu,e.arrayBuffer().then(s=>{if(this._socket.destroyed){let a=new Error("The socket was closed while the blob was being read");process.nextTick(wn,this,a,i);return}this._bufferedBytes-=r[le];let o=Be(s);t?this.dispatch(o,t,r,i):(this._state=pe,this.sendFrame(n.frame(o,r),i),this.dequeue())}).catch(s=>{process.nextTick(du,this,s,i)})}dispatch(e,t,r,i){if(!t){this.sendFrame(n.frame(e,r),i);return}let s=this._extensions[io.extensionName];this._bufferedBytes+=r[le],this._state=cu,s.compress(e,r.fin,(o,a)=>{if(this._socket.destroyed){let l=new Error("The socket was closed while data was being compressed");wn(this,l,i);return}this._bufferedBytes-=r[le],this._state=pe,r.readOnly=!1,this.sendFrame(n.frame(a,r),i),this.dequeue()})}dequeue(){for(;this._state===pe&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][le],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][le],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};oo.exports=yn;function wn(n,e,t){typeof t=="function"&&t(e);for(let r=0;r<n._queue.length;r++){let i=n._queue[r],s=i[i.length-1];typeof s=="function"&&s(e)}}function du(n,e,t){wn(n,e,t),n.onerror(e)}});var go=b((vd,mo)=>{"use strict";var{kForOnEventAttribute:Ot,kListener:Sn}=Ee(),lo=Symbol("kCode"),ao=Symbol("kData"),fo=Symbol("kError"),uo=Symbol("kMessage"),co=Symbol("kReason"),st=Symbol("kTarget"),ho=Symbol("kType"),po=Symbol("kWasClean"),ve=class{constructor(e){this[st]=null,this[ho]=e}get target(){return this[st]}get type(){return this[ho]}};Object.defineProperty(ve.prototype,"target",{enumerable:!0});Object.defineProperty(ve.prototype,"type",{enumerable:!0});var Ge=class extends ve{constructor(e,t={}){super(e),this[lo]=t.code===void 0?0:t.code,this[co]=t.reason===void 0?"":t.reason,this[po]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[lo]}get reason(){return this[co]}get wasClean(){return this[po]}};Object.defineProperty(Ge.prototype,"code",{enumerable:!0});Object.defineProperty(Ge.prototype,"reason",{enumerable:!0});Object.defineProperty(Ge.prototype,"wasClean",{enumerable:!0});var ot=class extends ve{constructor(e,t={}){super(e),this[fo]=t.error===void 0?null:t.error,this[uo]=t.message===void 0?"":t.message}get error(){return this[fo]}get message(){return this[uo]}};Object.defineProperty(ot.prototype,"error",{enumerable:!0});Object.defineProperty(ot.prototype,"message",{enumerable:!0});var Lt=class extends ve{constructor(e,t={}){super(e),this[ao]=t.data===void 0?null:t.data}get data(){return this[ao]}};Object.defineProperty(Lt.prototype,"data",{enumerable:!0});var pu={addEventListener(n,e,t={}){for(let i of this.listeners(n))if(!t[Ot]&&i[Sn]===e&&!i[Ot])return;let r;if(n==="message")r=function(s,o){let a=new Lt("message",{data:o?s:s.toString()});a[st]=this,or(e,this,a)};else if(n==="close")r=function(s,o){let a=new Ge("close",{code:s,reason:o.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[st]=this,or(e,this,a)};else if(n==="error")r=function(s){let o=new ot("error",{error:s,message:s.message});o[st]=this,or(e,this,o)};else if(n==="open")r=function(){let s=new ve("open");s[st]=this,or(e,this,s)};else return;r[Ot]=!!t[Ot],r[Sn]=e,t.once?this.once(n,r):this.on(n,r)},removeEventListener(n,e){for(let t of this.listeners(n))if(t[Sn]===e&&!t[Ot]){this.removeListener(n,t);break}}};mo.exports={CloseEvent:Ge,ErrorEvent:ot,Event:ve,EventTarget:pu,MessageEvent:Lt};function or(n,e,t){typeof n=="object"&&n.handleEvent?n.handleEvent.call(n,t):n.call(e,t)}});var lr=b((xd,_o)=>{"use strict";var{tokenChars:Tt}=rt();function ge(n,e,t){n[e]===void 0?n[e]=[t]:n[e].push(t)}function mu(n){let e=Object.create(null),t=Object.create(null),r=!1,i=!1,s=!1,o,a,l=-1,f=-1,u=-1,h=0;for(;h<n.length;h++)if(f=n.charCodeAt(h),o===void 0)if(u===-1&&Tt[f]===1)l===-1&&(l=h);else if(h!==0&&(f===32||f===9))u===-1&&l!==-1&&(u=h);else if(f===59||f===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${h}`);u===-1&&(u=h);let d=n.slice(l,u);f===44?(ge(e,d,t),t=Object.create(null)):o=d,l=u=-1}else throw new SyntaxError(`Unexpected character at index ${h}`);else if(a===void 0)if(u===-1&&Tt[f]===1)l===-1&&(l=h);else if(f===32||f===9)u===-1&&l!==-1&&(u=h);else if(f===59||f===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${h}`);u===-1&&(u=h),ge(t,n.slice(l,u),!0),f===44&&(ge(e,o,t),t=Object.create(null),o=void 0),l=u=-1}else if(f===61&&l!==-1&&u===-1)a=n.slice(l,h),l=u=-1;else throw new SyntaxError(`Unexpected character at index ${h}`);else if(i){if(Tt[f]!==1)throw new SyntaxError(`Unexpected character at index ${h}`);l===-1?l=h:r||(r=!0),i=!1}else if(s)if(Tt[f]===1)l===-1&&(l=h);else if(f===34&&l!==-1)s=!1,u=h;else if(f===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${h}`);else if(f===34&&n.charCodeAt(h-1)===61)s=!0;else if(u===-1&&Tt[f]===1)l===-1&&(l=h);else if(l!==-1&&(f===32||f===9))u===-1&&(u=h);else if(f===59||f===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${h}`);u===-1&&(u=h);let d=n.slice(l,u);r&&(d=d.replace(/\\/g,""),r=!1),ge(t,a,d),f===44&&(ge(e,o,t),t=Object.create(null),o=void 0),a=void 0,l=u=-1}else throw new SyntaxError(`Unexpected character at index ${h}`);if(l===-1||s||f===32||f===9)throw new SyntaxError("Unexpected end of input");u===-1&&(u=h);let c=n.slice(l,u);return o===void 0?ge(e,c,t):(a===void 0?ge(t,c,!0):r?ge(t,a,c.replace(/\\/g,"")):ge(t,a,c),ge(e,o,t)),e}function gu(n){return Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(i=>{let s=r[i];return Array.isArray(s)||(s=[s]),s.map(o=>o===!0?i:`${i}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}_o.exports={format:gu,parse:mu}});var cr=b((Od,Io)=>{"use strict";var _u=require("events"),yu=require("https"),wu=require("http"),Eo=require("net"),Eu=require("tls"),{randomBytes:Su,createHash:vu}=require("crypto"),{Duplex:Cd,Readable:bd}=require("stream"),{URL:vn}=require("url"),Te=tt(),xu=_n(),Cu=En(),{isBlob:bu}=rt(),{BINARY_TYPES:yo,CLOSE_TIMEOUT:Ou,EMPTY_BUFFER:ar,GUID:Lu,kForOnEventAttribute:xn,kListener:Tu,kStatusCode:Iu,kWebSocket:V,NOOP:So}=Ee(),{EventTarget:{addEventListener:Nu,removeEventListener:Ru}}=go(),{format:Au,parse:Du}=lr(),{toBuffer:Mu}=Ct(),vo=Symbol("kAborted"),Cn=[8,13],xe=["CONNECTING","OPEN","CLOSING","CLOSED"],Fu=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,k=class n extends _u{constructor(e,t,r){super(),this._binaryType=yo[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=ar,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=n.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),xo(this,e,t,r)):(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){yo.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let i=new xu({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),s=new Cu(e,this._extensions,r.generateMask);this._receiver=i,this._sender=s,this._socket=e,i[V]=this,s[V]=this,e[V]=this,i.on("conclude",ku),i.on("drain",Bu),i.on("error",zu),i.on("message",Gu),i.on("ping",Wu),i.on("pong",ju),s.onerror=qu,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Oo),e.on("data",ur),e.on("end",Lo),e.on("error",To),this._readyState=n.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=n.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Te.extensionName]&&this._extensions[Te.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=n.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==n.CLOSED){if(this.readyState===n.CONNECTING){ne(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===n.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=n.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),bo(this)}}pause(){this.readyState===n.CONNECTING||this.readyState===n.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===n.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==n.OPEN){bn(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||ar,t,r)}pong(e,t,r){if(this.readyState===n.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==n.OPEN){bn(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||ar,t,r)}resume(){this.readyState===n.CONNECTING||this.readyState===n.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===n.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==n.OPEN){bn(this,e,r);return}let i={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[Te.extensionName]||(i.compress=!1),this._sender.send(e||ar,i,r)}terminate(){if(this.readyState!==n.CLOSED){if(this.readyState===n.CONNECTING){ne(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=n.CLOSING,this._socket.destroy())}}};Object.defineProperty(k,"CONNECTING",{enumerable:!0,value:xe.indexOf("CONNECTING")});Object.defineProperty(k.prototype,"CONNECTING",{enumerable:!0,value:xe.indexOf("CONNECTING")});Object.defineProperty(k,"OPEN",{enumerable:!0,value:xe.indexOf("OPEN")});Object.defineProperty(k.prototype,"OPEN",{enumerable:!0,value:xe.indexOf("OPEN")});Object.defineProperty(k,"CLOSING",{enumerable:!0,value:xe.indexOf("CLOSING")});Object.defineProperty(k.prototype,"CLOSING",{enumerable:!0,value:xe.indexOf("CLOSING")});Object.defineProperty(k,"CLOSED",{enumerable:!0,value:xe.indexOf("CLOSED")});Object.defineProperty(k.prototype,"CLOSED",{enumerable:!0,value:xe.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(n=>{Object.defineProperty(k.prototype,n,{enumerable:!0})});["open","error","close","message"].forEach(n=>{Object.defineProperty(k.prototype,`on${n}`,{enumerable:!0,get(){for(let e of this.listeners(n))if(e[xn])return e[Tu];return null},set(e){for(let t of this.listeners(n))if(t[xn]){this.removeListener(n,t);break}typeof e=="function"&&this.addEventListener(n,e,{[xn]:!0})}})});k.prototype.addEventListener=Nu;k.prototype.removeEventListener=Ru;Io.exports=k;function xo(n,e,t,r){let i={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:Ou,protocolVersion:Cn[1],maxBufferedChunks:1048576,maxFragments:131072,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(n._autoPong=i.autoPong,n._closeTimeout=i.closeTimeout,!Cn.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${Cn.join(", ")})`);let s;if(e instanceof vn)s=e;else try{s=new vn(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),n._url=s.href;let o=s.protocol==="wss:",a=s.protocol==="ws+unix:",l;if(s.protocol!=="ws:"&&!o&&!a?l=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:a&&!s.pathname?l="The URL's pathname is empty":s.hash&&(l="The URL contains a fragment identifier"),l){let p=new SyntaxError(l);if(n._redirects===0)throw p;fr(n,p);return}let f=o?443:80,u=Su(16).toString("base64"),h=o?yu.request:wu.request,c=new Set,d;if(i.createConnection=i.createConnection||(o?Uu:Pu),i.defaultPort=i.defaultPort||f,i.port=s.port||f,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":u,Connection:"Upgrade",Upgrade:"websocket"},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(d=new Te({...i.perMessageDeflate,isServer:!1,maxPayload:i.maxPayload}),i.headers["Sec-WebSocket-Extensions"]=Au({[Te.extensionName]:d.offer()})),t.length){for(let p of t){if(typeof p!="string"||!Fu.test(p)||c.has(p))throw new SyntaxError("An invalid or duplicated subprotocol was specified");c.add(p)}i.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),a){let p=i.path.split(":");i.socketPath=p[0],i.path=p[1]}let m;if(i.followRedirects){if(n._redirects===0){n._originalIpc=a,n._originalSecure=o,n._originalHostOrSocketPath=a?i.socketPath:s.host;let p=r&&r.headers;if(r={...r,headers:{}},p)for(let[g,S]of Object.entries(p))r.headers[g.toLowerCase()]=S}else if(n.listenerCount("redirect")===0){let p=a?n._originalIpc?i.socketPath===n._originalHostOrSocketPath:!1:n._originalIpc?!1:s.host===n._originalHostOrSocketPath;(!p||n._originalSecure&&!o)&&(delete i.headers.authorization,delete i.headers.cookie,p||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),m=n._req=h(i),n._redirects&&n.emit("redirect",n.url,m)}else m=n._req=h(i);i.timeout&&m.on("timeout",()=>{ne(n,m,"Opening handshake has timed out")}),m.on("error",p=>{m===null||m[vo]||(m=n._req=null,fr(n,p))}),m.on("response",p=>{let g=p.headers.location,S=p.statusCode;if(g&&i.followRedirects&&S>=300&&S<400){if(++n._redirects>i.maxRedirects){ne(n,m,"Maximum redirects exceeded");return}m.abort();let w;try{w=new vn(g,e)}catch{let L=new SyntaxError(`Invalid URL: ${g}`);fr(n,L);return}xo(n,w,t,r)}else n.emit("unexpected-response",m,p)||ne(n,m,`Unexpected server response: ${p.statusCode}`)}),m.on("upgrade",(p,g,S)=>{if(n.emit("upgrade",p),n.readyState!==k.CONNECTING)return;m=n._req=null;let w=p.headers.upgrade;if(w===void 0||w.toLowerCase()!=="websocket"){ne(n,g,"Invalid Upgrade header");return}let O=vu("sha1").update(u+Lu).digest("base64");if(p.headers["sec-websocket-accept"]!==O){ne(n,g,"Invalid Sec-WebSocket-Accept header");return}let L=p.headers["sec-websocket-protocol"],A;if(L!==void 0?c.size?c.has(L)||(A="Server sent an invalid subprotocol"):A="Server sent a subprotocol but none was requested":c.size&&(A="Server sent no subprotocol"),A){ne(n,g,A);return}L&&(n._protocol=L);let I=p.headers["sec-websocket-extensions"];if(I!==void 0){if(!d){ne(n,g,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R;try{R=Du(I)}catch{ne(n,g,"Invalid Sec-WebSocket-Extensions header");return}let q=Object.keys(R);if(q.length!==1||q[0]!==Te.extensionName){ne(n,g,"Server indicated an extension that was not requested");return}try{d.accept(R[Te.extensionName])}catch{ne(n,g,"Invalid Sec-WebSocket-Extensions header");return}n._extensions[Te.extensionName]=d}n.setSocket(g,S,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxBufferedChunks:i.maxBufferedChunks,maxFragments:i.maxFragments,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(m,n):m.end()}function fr(n,e){n._readyState=k.CLOSING,n._errorEmitted=!0,n.emit("error",e),n.emitClose()}function Pu(n){return n.path=n.socketPath,Eo.connect(n)}function Uu(n){return n.path=void 0,!n.servername&&n.servername!==""&&(n.servername=Eo.isIP(n.host)?"":n.host),Eu.connect(n)}function ne(n,e,t){n._readyState=k.CLOSING;let r=new Error(t);Error.captureStackTrace(r,ne),e.setHeader?(e[vo]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(fr,n,r)):(e.destroy(r),e.once("error",n.emit.bind(n,"error")),e.once("close",n.emitClose.bind(n)))}function bn(n,e,t){if(e){let r=bu(e)?e.size:Mu(e).length;n._socket?n._sender._bufferedBytes+=r:n._bufferedAmount+=r}if(t){let r=new Error(`WebSocket is not open: readyState ${n.readyState} (${xe[n.readyState]})`);process.nextTick(t,r)}}function ku(n,e){let t=this[V];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=n,t._socket[V]!==void 0&&(t._socket.removeListener("data",ur),process.nextTick(Co,t._socket),n===1005?t.close():t.close(n,e))}function Bu(){let n=this[V];n.isPaused||n._socket.resume()}function zu(n){let e=this[V];e._socket[V]!==void 0&&(e._socket.removeListener("data",ur),process.nextTick(Co,e._socket),e.close(n[Iu])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",n))}function wo(){this[V].emitClose()}function Gu(n,e){this[V].emit("message",n,e)}function Wu(n){let e=this[V];e._autoPong&&e.pong(n,!this._isServer,So),e.emit("ping",n)}function ju(n){this[V].emit("pong",n)}function Co(n){n.resume()}function qu(n){let e=this[V];e.readyState!==k.CLOSED&&(e.readyState===k.OPEN&&(e._readyState=k.CLOSING,bo(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",n)))}function bo(n){n._closeTimer=setTimeout(n._socket.destroy.bind(n._socket),n._closeTimeout)}function Oo(){let n=this[V];if(this.removeListener("close",Oo),this.removeListener("data",ur),this.removeListener("end",Lo),n._readyState=k.CLOSING,!this._readableState.endEmitted&&!n._closeFrameReceived&&!n._receiver._writableState.errorEmitted&&this._readableState.length!==0){let e=this.read(this._readableState.length);n._receiver.write(e)}n._receiver.end(),this[V]=void 0,clearTimeout(n._closeTimer),n._receiver._writableState.finished||n._receiver._writableState.errorEmitted?n.emitClose():(n._receiver.on("error",wo),n._receiver.on("finish",wo))}function ur(n){this[V]._receiver.write(n)||this.pause()}function Lo(){let n=this[V];n._readyState=k.CLOSING,n._receiver.end(),this.end()}function To(){let n=this[V];this.removeListener("error",To),this.on("error",So),n&&(n._readyState=k.CLOSING,this.destroy())}});var Do=b((Td,Ao)=>{"use strict";var Ld=cr(),{Duplex:$u}=require("stream");function No(n){n.emit("close")}function Vu(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Ro(n){this.removeListener("error",Ro),this.destroy(),this.listenerCount("error")===0&&this.emit("error",n)}function Hu(n,e){let t=!0,r=new $u({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return n.on("message",function(s,o){let a=!o&&r._readableState.objectMode?s.toString():s;r.push(a)||n.pause()}),n.once("error",function(s){r.destroyed||(t=!1,r.destroy(s))}),n.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(i,s){if(n.readyState===n.CLOSED){s(i),process.nextTick(No,r);return}let o=!1;n.once("error",function(l){o=!0,s(l)}),n.once("close",function(){o||s(i),process.nextTick(No,r)}),t&&n.terminate()},r._final=function(i){if(n.readyState===n.CONNECTING){n.once("open",function(){r._final(i)});return}n._socket!==null&&(n._socket._writableState.finished?(i(),r._readableState.endEmitted&&r.destroy()):(n._socket.once("finish",function(){i()}),n.close()))},r._read=function(){n.isPaused&&n.resume()},r._write=function(i,s,o){if(n.readyState===n.CONNECTING){n.once("open",function(){r._write(i,s,o)});return}n.send(i,o)},r.on("end",Vu),r.on("error",Ro),r}Ao.exports=Hu});var On=b((Id,Mo)=>{"use strict";var{tokenChars:Zu}=rt();function Yu(n){let e=new Set,t=-1,r=-1,i=0;for(i;i<n.length;i++){let o=n.charCodeAt(i);if(r===-1&&Zu[o]===1)t===-1&&(t=i);else if(i!==0&&(o===32||o===9))r===-1&&t!==-1&&(r=i);else if(o===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${i}`);r===-1&&(r=i);let a=n.slice(t,r);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);e.add(a),t=r=-1}else throw new SyntaxError(`Unexpected character at index ${i}`)}if(t===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let s=n.slice(t,i);if(e.has(s))throw new SyntaxError(`The "${s}" subprotocol is duplicated`);return e.add(s),e}Mo.exports={parse:Yu}});var Go=b((Rd,zo)=>{"use strict";var Xu=require("events"),hr=require("http"),{Duplex:Nd}=require("stream"),{createHash:Ku}=require("crypto"),Fo=lr(),We=tt(),Ju=On(),Qu=cr(),{CLOSE_TIMEOUT:ec,GUID:tc,kWebSocket:rc}=Ee(),nc=/^[+/0-9A-Za-z]{22}==$/,Po=0,Uo=1,Bo=2,Ln=class extends Xu{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:ec,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Qu,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=hr.createServer((r,i)=>{let s=hr.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=ic(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,o)=>{this.handleUpgrade(i,s,o,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=Po}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===Bo){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(It,this);return}if(e&&this.once("close",e),this._state!==Uo)if(this._state=Uo,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(It,this):process.nextTick(It,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{It(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,i){t.on("error",ko);let s=e.headers["sec-websocket-key"],o=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){je(this,e,t,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){je(this,e,t,400,"Invalid Upgrade header");return}if(s===void 0||!nc.test(s)){je(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==13&&a!==8){je(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){Nt(t,400);return}let l=e.headers["sec-websocket-protocol"],f=new Set;if(l!==void 0)try{f=Ju.parse(l)}catch{je(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let u=e.headers["sec-websocket-extensions"],h={};if(this.options.perMessageDeflate&&u!==void 0){let c=new We({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let d=Fo.parse(u);d[We.extensionName]&&(c.accept(d[We.extensionName]),h[We.extensionName]=c)}catch{je(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let c={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(c,(d,m,p,g)=>{if(!d)return Nt(t,m||401,p,g);this.completeUpgrade(h,s,f,e,t,r,i)});return}if(!this.options.verifyClient(c))return Nt(t,401)}this.completeUpgrade(h,s,f,e,t,r,i)}completeUpgrade(e,t,r,i,s,o,a){if(!s.readable||!s.writable)return s.destroy();if(s[rc])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Po)return Nt(s,503);let f=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Ku("sha1").update(t+tc).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(r.size){let h=this.options.handleProtocols?this.options.handleProtocols(r,i):r.values().next().value;h&&(f.push(`Sec-WebSocket-Protocol: ${h}`),u._protocol=h)}if(e[We.extensionName]){let h=e[We.extensionName].params,c=Fo.format({[We.extensionName]:[h]});f.push(`Sec-WebSocket-Extensions: ${c}`),u._extensions=e}this.emit("headers",f,i),s.write(f.concat(`\r
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return r.root}zs.exports=Qt;Qt.default=Qt;zf.registerParse(Qt)});var Se=b((Ad,js)=>{"use strict";var Ws=["nodebuffer","arraybuffer","fragments"],qs=typeof Blob<"u";qs&&Ws.push("blob");js.exports={BINARY_TYPES:Ws,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:qs,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Ct=b((Dd,er)=>{"use strict";var{EMPTY_BUFFER:qf}=Se(),on=Buffer[Symbol.species];function jf(n,e){if(n.length===0)return qf;if(n.length===1)return n[0];let t=Buffer.allocUnsafe(e),r=0;for(let i=0;i<n.length;i++){let s=n[i];t.set(s,r),r+=s.length}return r<e?new on(t.buffer,t.byteOffset,r):t}function $s(n,e,t,r,i){for(let s=0;s<i;s++)t[r+s]=n[s]^e[s&3]}function Vs(n,e){for(let t=0;t<n.length;t++)n[t]^=e[t&3]}function $f(n){return n.length===n.buffer.byteLength?n.buffer:n.buffer.slice(n.byteOffset,n.byteOffset+n.length)}function ln(n){if(ln.readOnly=!0,Buffer.isBuffer(n))return n;let e;return n instanceof ArrayBuffer?e=new on(n):ArrayBuffer.isView(n)?e=new on(n.buffer,n.byteOffset,n.byteLength):(e=Buffer.from(n),ln.readOnly=!1),e}er.exports={concat:jf,mask:$s,toArrayBuffer:$f,toBuffer:ln,unmask:Vs};if(!process.env.WS_NO_BUFFER_UTIL)try{let n=require("bufferutil");er.exports.mask=function(e,t,r,i,s){s<48?$s(e,t,r,i,s):n.mask(e,t,r,i,s)},er.exports.unmask=function(e,t){e.length<32?Vs(e,t):n.unmask(e,t)}}catch{}});var Ys=b((Md,Zs)=>{"use strict";var Hs=Symbol("kDone"),an=Symbol("kRun"),fn=class{constructor(e){this[Hs]=()=>{this.pending--,this[an]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[an]()}[an](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[Hs])}}};Zs.exports=fn});var tt=b((Pd,Qs)=>{"use strict";var bt=require("zlib"),Xs=Ct(),Vf=Ys(),{kStatusCode:Js}=Se(),Hf=Buffer[Symbol.species],Zf=Buffer.from([0,0,255,255]),rr=Symbol("permessage-deflate"),xe=Symbol("total-length"),Qe=Symbol("callback"),Le=Symbol("buffers"),et=Symbol("error"),tr,un=class{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!tr){let t=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;tr=new Vf(t)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Qe];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(i=>!(t.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>i.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&(typeof i.client_max_window_bits=="number"?t.clientMaxWindowBits>i.client_max_window_bits:!i.client_max_window_bits)));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let i=t[r];if(i.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(i=i[0],r==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else if(r==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=s}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=i})}),e}decompress(e,t,r){tr.add(i=>{this._decompress(e,t,(s,o)=>{i(),r(s,o)})})}compress(e,t,r){tr.add(i=>{this._compress(e,t,(s,o)=>{i(),r(s,o)})})}_decompress(e,t,r){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?bt.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=bt.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[rr]=this,this._inflate[xe]=0,this._inflate[Le]=[],this._inflate.on("error",Xf),this._inflate.on("data",Ks)}this._inflate[Qe]=r,this._inflate.write(e),t&&this._inflate.write(Zf),this._inflate.flush(()=>{let s=this._inflate[et];if(s){this._inflate.close(),this._inflate=null,r(s);return}let o=Xs.concat(this._inflate[Le],this._inflate[xe]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[xe]=0,this._inflate[Le]=[],t&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),r(null,o)})}_compress(e,t,r){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?bt.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=bt.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[xe]=0,this._deflate[Le]=[],this._deflate.on("data",Yf)}this._deflate[Qe]=r,this._deflate.write(e),this._deflate.flush(bt.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=Xs.concat(this._deflate[Le],this._deflate[xe]);t&&(s=new Hf(s.buffer,s.byteOffset,s.length-4)),this._deflate[Qe]=null,this._deflate[xe]=0,this._deflate[Le]=[],t&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),r(null,s)})}};Qs.exports=un;function Yf(n){this[Le].push(n),this[xe]+=n.length}function Ks(n){if(this[xe]+=n.length,this[rr]._maxPayload<1||this[xe]<=this[rr]._maxPayload){this[Le].push(n);return}this[et]=new RangeError("Max payload size exceeded"),this[et].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[et][Js]=1009,this.removeListener("data",Ks),this.reset()}function Xf(n){if(this[rr]._inflate=null,this[et]){this[Qe](this[et]);return}n[Js]=1007,this[Qe](n)}});var rt=b((Fd,nr)=>{"use strict";var{isUtf8:eo}=require("buffer"),{hasBlob:Jf}=Se(),Kf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function Qf(n){return n>=1e3&&n<=1014&&n!==1004&&n!==1005&&n!==1006||n>=3e3&&n<=4999}function cn(n){let e=n.length,t=0;for(;t<e;)if((n[t]&128)===0)t++;else if((n[t]&224)===192){if(t+1===e||(n[t+1]&192)!==128||(n[t]&254)===192)return!1;t+=2}else if((n[t]&240)===224){if(t+2>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||n[t]===224&&(n[t+1]&224)===128||n[t]===237&&(n[t+1]&224)===160)return!1;t+=3}else if((n[t]&248)===240){if(t+3>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||(n[t+3]&192)!==128||n[t]===240&&(n[t+1]&240)===128||n[t]===244&&n[t+1]>143||n[t]>244)return!1;t+=4}else return!1;return!0}function eu(n){return Jf&&typeof n=="object"&&typeof n.arrayBuffer=="function"&&typeof n.type=="string"&&typeof n.stream=="function"&&(n[Symbol.toStringTag]==="Blob"||n[Symbol.toStringTag]==="File")}nr.exports={isBlob:eu,isValidStatusCode:Qf,isValidUTF8:cn,tokenChars:Kf};if(eo)nr.exports.isValidUTF8=function(n){return n.length<24?cn(n):eo(n)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let n=require("utf-8-validate");nr.exports.isValidUTF8=function(e){return e.length<32?cn(e):n(e)}}catch{}});var gn=b((kd,lo)=>{"use strict";var{Writable:tu}=require("stream"),to=tt(),{BINARY_TYPES:ru,EMPTY_BUFFER:ro,kStatusCode:nu,kWebSocket:iu}=Se(),{concat:hn,toArrayBuffer:su,unmask:ou}=Ct(),{isValidStatusCode:lu,isValidUTF8:no}=rt(),ir=Buffer[Symbol.species],oe=0,io=1,so=2,oo=3,dn=4,pn=5,sr=6,mn=class extends tu{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||ru[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[iu]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=oe}_write(e,t,r){if(this._opcode===8&&this._state==oe)return r();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){r(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new ir(r.buffer,r.byteOffset+e,r.length-e),new ir(r.buffer,r.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let r=this._buffers[0],i=t.length-e;e>=r.length?t.set(this._buffers.shift(),i):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),i),this._buffers[0]=new ir(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case oe:this.getInfo(e);break;case io:this.getPayloadLength16(e);break;case so:this.getPayloadLength64(e);break;case oo:this.getMask();break;case dn:this.getData(e);break;case pn:case sr:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(i);return}let r=(t[0]&64)===64;if(r&&!this._extensions[to.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(i);return}if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(i);return}}else{let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(i);return}this._payloadLength===126?this._state=io:this._payloadLength===127?this._state=so:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(i);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=oo:this._state=dn}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=dn}getData(e){let t=ro;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&ou(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let r=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");e(r);return}if(this._compressed){this._state=pn,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[to.extensionName].decompress(e,this._fin,(i,s)=>{if(i)return t(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(o);return}this._fragments.push(s)}this.dataMessage(t),this._state===oe&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=oe;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=hn(r,t):this._binaryType==="arraybuffer"?i=su(hn(r,t)):this._binaryType==="blob"?i=new Blob(r):i=r,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=oe):(this._state=sr,setImmediate(()=>{this.emit("message",i,!0),this._state=oe,this.startLoop(e)}))}else{let i=hn(r,t);if(!this._skipUTF8Validation&&!no(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(s);return}this._state===pn||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=oe):(this._state=sr,setImmediate(()=>{this.emit("message",i,!1),this._state=oe,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,ro),this.end();else{let r=e.readUInt16BE(0);if(!lu(r)){let s=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(s);return}let i=new ir(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!no(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(s);return}this._loop=!1,this.emit("conclude",r,i),this.end()}this._state=oe;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=oe):(this._state=sr,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=oe,this.startLoop(t)}))}createError(e,t,r,i,s){this._loop=!1,this._errored=!0;let o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=s,o[nu]=i,o}};lo.exports=mn});var wn=b((Bd,uo)=>{"use strict";var{Duplex:Ud}=require("stream"),{randomFillSync:au}=require("crypto"),{types:{isUint8Array:fu}}=require("util"),ao=tt(),{EMPTY_BUFFER:uu,kWebSocket:cu,NOOP:hu}=Se(),{isBlob:nt,isValidStatusCode:du}=rt(),{mask:fo,toBuffer:Be}=Ct(),le=Symbol("kByteLength"),pu=Buffer.alloc(4),or=8*1024,ze,it=or,pe=0,mu=1,gu=2,_n=class n{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=pe,this.onerror=hu,this[cu]=void 0}static frame(e,t){let r,i=!1,s=2,o=!1;t.mask&&(r=t.maskBuffer||pu,t.generateMask?t.generateMask(r):(it===or&&(ze===void 0&&(ze=Buffer.alloc(or)),au(ze,0,or),it=0),r[0]=ze[it++],r[1]=ze[it++],r[2]=ze[it++],r[3]=ze[it++]),o=(r[0]|r[1]|r[2]|r[3])===0,s=6);let a;typeof e=="string"?(!t.mask||o)&&t[le]!==void 0?a=t[le]:(e=Buffer.from(e),a=e.length):(a=e.length,i=t.mask&&t.readOnly&&!o);let l=a;a>=65536?(s+=8,l=127):a>125&&(s+=2,l=126);let f=Buffer.allocUnsafe(i?a+s:s);return f[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(f[0]|=64),f[1]=l,l===126?f.writeUInt16BE(a,2):l===127&&(f[2]=f[3]=0,f.writeUIntBE(a,4,6)),t.mask?(f[1]|=128,f[s-4]=r[0],f[s-3]=r[1],f[s-2]=r[2],f[s-1]=r[3],o?[f,e]:i?(fo(e,r,f,s,a),[f]):(fo(e,r,e,0,a),[f,e])):[f,e]}close(e,t,r,i){let s;if(e===void 0)s=uu;else{if(typeof e!="number"||!du(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(e,0);else{let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");if(s=Buffer.allocUnsafe(2+a),s.writeUInt16BE(e,0),typeof t=="string")s.write(t,2);else if(fu(t))s.set(t,2);else throw new TypeError("Second argument must be a string or a Uint8Array")}}let o={[le]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==pe?this.enqueue([this.dispatch,s,!1,o,i]):this.sendFrame(n.frame(s,o),i)}ping(e,t,r){let i,s;if(typeof e=="string"?(i=Buffer.byteLength(e),s=!1):nt(e)?(i=e.size,s=!1):(e=Be(e),i=e.length,s=Be.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[le]:i,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};nt(e)?this._state!==pe?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==pe?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(n.frame(e,o),r)}pong(e,t,r){let i,s;if(typeof e=="string"?(i=Buffer.byteLength(e),s=!1):nt(e)?(i=e.size,s=!1):(e=Be(e),i=e.length,s=Be.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[le]:i,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};nt(e)?this._state!==pe?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==pe?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(n.frame(e,o),r)}send(e,t,r){let i=this._extensions[ao.extensionName],s=t.binary?2:1,o=t.compress,a,l;typeof e=="string"?(a=Buffer.byteLength(e),l=!1):nt(e)?(a=e.size,l=!1):(e=Be(e),a=e.length,l=Be.readOnly),this._firstFragment?(this._firstFragment=!1,o&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=a>=i._threshold),this._compress=o):(o=!1,s=0),t.fin&&(this._firstFragment=!0);let f={[le]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:l,rsv1:o};nt(e)?this._state!==pe?this.enqueue([this.getBlobData,e,this._compress,f,r]):this.getBlobData(e,this._compress,f,r):this._state!==pe?this.enqueue([this.dispatch,e,this._compress,f,r]):this.dispatch(e,this._compress,f,r)}getBlobData(e,t,r,i){this._bufferedBytes+=r[le],this._state=gu,e.arrayBuffer().then(s=>{if(this._socket.destroyed){let a=new Error("The socket was closed while the blob was being read");process.nextTick(yn,this,a,i);return}this._bufferedBytes-=r[le];let o=Be(s);t?this.dispatch(o,t,r,i):(this._state=pe,this.sendFrame(n.frame(o,r),i),this.dequeue())}).catch(s=>{process.nextTick(_u,this,s,i)})}dispatch(e,t,r,i){if(!t){this.sendFrame(n.frame(e,r),i);return}let s=this._extensions[ao.extensionName];this._bufferedBytes+=r[le],this._state=mu,s.compress(e,r.fin,(o,a)=>{if(this._socket.destroyed){let l=new Error("The socket was closed while data was being compressed");yn(this,l,i);return}this._bufferedBytes-=r[le],this._state=pe,r.readOnly=!1,this.sendFrame(n.frame(a,r),i),this.dequeue()})}dequeue(){for(;this._state===pe&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][le],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][le],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};uo.exports=_n;function yn(n,e,t){typeof t=="function"&&t(e);for(let r=0;r<n._queue.length;r++){let i=n._queue[r],s=i[i.length-1];typeof s=="function"&&s(e)}}function _u(n,e,t){yn(n,e,t),n.onerror(e)}});var Eo=b((zd,wo)=>{"use strict";var{kForOnEventAttribute:Ot,kListener:En}=Se(),co=Symbol("kCode"),ho=Symbol("kData"),po=Symbol("kError"),mo=Symbol("kMessage"),go=Symbol("kReason"),st=Symbol("kTarget"),_o=Symbol("kType"),yo=Symbol("kWasClean"),ve=class{constructor(e){this[st]=null,this[_o]=e}get target(){return this[st]}get type(){return this[_o]}};Object.defineProperty(ve.prototype,"target",{enumerable:!0});Object.defineProperty(ve.prototype,"type",{enumerable:!0});var Ge=class extends ve{constructor(e,t={}){super(e),this[co]=t.code===void 0?0:t.code,this[go]=t.reason===void 0?"":t.reason,this[yo]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[co]}get reason(){return this[go]}get wasClean(){return this[yo]}};Object.defineProperty(Ge.prototype,"code",{enumerable:!0});Object.defineProperty(Ge.prototype,"reason",{enumerable:!0});Object.defineProperty(Ge.prototype,"wasClean",{enumerable:!0});var ot=class extends ve{constructor(e,t={}){super(e),this[po]=t.error===void 0?null:t.error,this[mo]=t.message===void 0?"":t.message}get error(){return this[po]}get message(){return this[mo]}};Object.defineProperty(ot.prototype,"error",{enumerable:!0});Object.defineProperty(ot.prototype,"message",{enumerable:!0});var Lt=class extends ve{constructor(e,t={}){super(e),this[ho]=t.data===void 0?null:t.data}get data(){return this[ho]}};Object.defineProperty(Lt.prototype,"data",{enumerable:!0});var yu={addEventListener(n,e,t={}){for(let i of this.listeners(n))if(!t[Ot]&&i[En]===e&&!i[Ot])return;let r;if(n==="message")r=function(s,o){let a=new Lt("message",{data:o?s:s.toString()});a[st]=this,lr(e,this,a)};else if(n==="close")r=function(s,o){let a=new Ge("close",{code:s,reason:o.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[st]=this,lr(e,this,a)};else if(n==="error")r=function(s){let o=new ot("error",{error:s,message:s.message});o[st]=this,lr(e,this,o)};else if(n==="open")r=function(){let s=new ve("open");s[st]=this,lr(e,this,s)};else return;r[Ot]=!!t[Ot],r[En]=e,t.once?this.once(n,r):this.on(n,r)},removeEventListener(n,e){for(let t of this.listeners(n))if(t[En]===e&&!t[Ot]){this.removeListener(n,t);break}}};wo.exports={CloseEvent:Ge,ErrorEvent:ot,Event:ve,EventTarget:yu,MessageEvent:Lt};function lr(n,e,t){typeof n=="object"&&n.handleEvent?n.handleEvent.call(n,t):n.call(e,t)}});var ar=b((Gd,So)=>{"use strict";var{tokenChars:Tt}=rt();function ye(n,e,t){n[e]===void 0?n[e]=[t]:n[e].push(t)}function wu(n){let e=Object.create(null),t=Object.create(null),r=!1,i=!1,s=!1,o,a,l=-1,f=-1,u=-1,h=0;for(;h<n.length;h++)if(f=n.charCodeAt(h),o===void 0)if(u===-1&&Tt[f]===1)l===-1&&(l=h);else if(h!==0&&(f===32||f===9))u===-1&&l!==-1&&(u=h);else if(f===59||f===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${h}`);u===-1&&(u=h);let d=n.slice(l,u);f===44?(ye(e,d,t),t=Object.create(null)):o=d,l=u=-1}else throw new SyntaxError(`Unexpected character at index ${h}`);else if(a===void 0)if(u===-1&&Tt[f]===1)l===-1&&(l=h);else if(f===32||f===9)u===-1&&l!==-1&&(u=h);else if(f===59||f===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${h}`);u===-1&&(u=h),ye(t,n.slice(l,u),!0),f===44&&(ye(e,o,t),t=Object.create(null),o=void 0),l=u=-1}else if(f===61&&l!==-1&&u===-1)a=n.slice(l,h),l=u=-1;else throw new SyntaxError(`Unexpected character at index ${h}`);else if(i){if(Tt[f]!==1)throw new SyntaxError(`Unexpected character at index ${h}`);l===-1?l=h:r||(r=!0),i=!1}else if(s)if(Tt[f]===1)l===-1&&(l=h);else if(f===34&&l!==-1)s=!1,u=h;else if(f===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${h}`);else if(f===34&&n.charCodeAt(h-1)===61)s=!0;else if(u===-1&&Tt[f]===1)l===-1&&(l=h);else if(l!==-1&&(f===32||f===9))u===-1&&(u=h);else if(f===59||f===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${h}`);u===-1&&(u=h);let d=n.slice(l,u);r&&(d=d.replace(/\\/g,""),r=!1),ye(t,a,d),f===44&&(ye(e,o,t),t=Object.create(null),o=void 0),a=void 0,l=u=-1}else throw new SyntaxError(`Unexpected character at index ${h}`);if(l===-1||s||f===32||f===9)throw new SyntaxError("Unexpected end of input");u===-1&&(u=h);let c=n.slice(l,u);return o===void 0?ye(e,c,t):(a===void 0?ye(t,c,!0):r?ye(t,a,c.replace(/\\/g,"")):ye(t,a,c),ye(e,o,t)),e}function Eu(n){return Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(i=>{let s=r[i];return Array.isArray(s)||(s=[s]),s.map(o=>o===!0?i:`${i}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}So.exports={format:Eu,parse:wu}});var hr=b((jd,Do)=>{"use strict";var Su=require("events"),xu=require("https"),vu=require("http"),Co=require("net"),Cu=require("tls"),{randomBytes:bu,createHash:Ou}=require("crypto"),{Duplex:Wd,Readable:qd}=require("stream"),{URL:Sn}=require("url"),Te=tt(),Lu=gn(),Tu=wn(),{isBlob:Nu}=rt(),{BINARY_TYPES:xo,CLOSE_TIMEOUT:Iu,EMPTY_BUFFER:fr,GUID:Ru,kForOnEventAttribute:xn,kListener:Au,kStatusCode:Du,kWebSocket:$,NOOP:bo}=Se(),{EventTarget:{addEventListener:Mu,removeEventListener:Pu}}=Eo(),{format:Fu,parse:ku}=ar(),{toBuffer:Uu}=Ct(),Oo=Symbol("kAborted"),vn=[8,13],Ce=["CONNECTING","OPEN","CLOSING","CLOSED"],Bu=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,k=class n extends Su{constructor(e,t,r){super(),this._binaryType=xo[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=fr,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=n.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),Lo(this,e,t,r)):(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){xo.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let i=new Lu({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),s=new Tu(e,this._extensions,r.generateMask);this._receiver=i,this._sender=s,this._socket=e,i[$]=this,s[$]=this,e[$]=this,i.on("conclude",Wu),i.on("drain",qu),i.on("error",ju),i.on("message",$u),i.on("ping",Vu),i.on("pong",Hu),s.onerror=Zu,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Io),e.on("data",cr),e.on("end",Ro),e.on("error",Ao),this._readyState=n.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=n.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Te.extensionName]&&this._extensions[Te.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=n.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==n.CLOSED){if(this.readyState===n.CONNECTING){ne(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===n.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=n.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),No(this)}}pause(){this.readyState===n.CONNECTING||this.readyState===n.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===n.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==n.OPEN){Cn(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||fr,t,r)}pong(e,t,r){if(this.readyState===n.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==n.OPEN){Cn(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||fr,t,r)}resume(){this.readyState===n.CONNECTING||this.readyState===n.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===n.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==n.OPEN){Cn(this,e,r);return}let i={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[Te.extensionName]||(i.compress=!1),this._sender.send(e||fr,i,r)}terminate(){if(this.readyState!==n.CLOSED){if(this.readyState===n.CONNECTING){ne(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=n.CLOSING,this._socket.destroy())}}};Object.defineProperty(k,"CONNECTING",{enumerable:!0,value:Ce.indexOf("CONNECTING")});Object.defineProperty(k.prototype,"CONNECTING",{enumerable:!0,value:Ce.indexOf("CONNECTING")});Object.defineProperty(k,"OPEN",{enumerable:!0,value:Ce.indexOf("OPEN")});Object.defineProperty(k.prototype,"OPEN",{enumerable:!0,value:Ce.indexOf("OPEN")});Object.defineProperty(k,"CLOSING",{enumerable:!0,value:Ce.indexOf("CLOSING")});Object.defineProperty(k.prototype,"CLOSING",{enumerable:!0,value:Ce.indexOf("CLOSING")});Object.defineProperty(k,"CLOSED",{enumerable:!0,value:Ce.indexOf("CLOSED")});Object.defineProperty(k.prototype,"CLOSED",{enumerable:!0,value:Ce.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(n=>{Object.defineProperty(k.prototype,n,{enumerable:!0})});["open","error","close","message"].forEach(n=>{Object.defineProperty(k.prototype,`on${n}`,{enumerable:!0,get(){for(let e of this.listeners(n))if(e[xn])return e[Au];return null},set(e){for(let t of this.listeners(n))if(t[xn]){this.removeListener(n,t);break}typeof e=="function"&&this.addEventListener(n,e,{[xn]:!0})}})});k.prototype.addEventListener=Mu;k.prototype.removeEventListener=Pu;Do.exports=k;function Lo(n,e,t,r){let i={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:Iu,protocolVersion:vn[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(n._autoPong=i.autoPong,n._closeTimeout=i.closeTimeout,!vn.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${vn.join(", ")})`);let s;if(e instanceof Sn)s=e;else try{s=new Sn(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),n._url=s.href;let o=s.protocol==="wss:",a=s.protocol==="ws+unix:",l;if(s.protocol!=="ws:"&&!o&&!a?l=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:a&&!s.pathname?l="The URL's pathname is empty":s.hash&&(l="The URL contains a fragment identifier"),l){let p=new SyntaxError(l);if(n._redirects===0)throw p;ur(n,p);return}let f=o?443:80,u=bu(16).toString("base64"),h=o?xu.request:vu.request,c=new Set,d;if(i.createConnection=i.createConnection||(o?Gu:zu),i.defaultPort=i.defaultPort||f,i.port=s.port||f,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":u,Connection:"Upgrade",Upgrade:"websocket"},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(d=new Te({...i.perMessageDeflate,isServer:!1,maxPayload:i.maxPayload}),i.headers["Sec-WebSocket-Extensions"]=Fu({[Te.extensionName]:d.offer()})),t.length){for(let p of t){if(typeof p!="string"||!Bu.test(p)||c.has(p))throw new SyntaxError("An invalid or duplicated subprotocol was specified");c.add(p)}i.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),a){let p=i.path.split(":");i.socketPath=p[0],i.path=p[1]}let m;if(i.followRedirects){if(n._redirects===0){n._originalIpc=a,n._originalSecure=o,n._originalHostOrSocketPath=a?i.socketPath:s.host;let p=r&&r.headers;if(r={...r,headers:{}},p)for(let[g,w]of Object.entries(p))r.headers[g.toLowerCase()]=w}else if(n.listenerCount("redirect")===0){let p=a?n._originalIpc?i.socketPath===n._originalHostOrSocketPath:!1:n._originalIpc?!1:s.host===n._originalHostOrSocketPath;(!p||n._originalSecure&&!o)&&(delete i.headers.authorization,delete i.headers.cookie,p||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),m=n._req=h(i),n._redirects&&n.emit("redirect",n.url,m)}else m=n._req=h(i);i.timeout&&m.on("timeout",()=>{ne(n,m,"Opening handshake has timed out")}),m.on("error",p=>{m===null||m[Oo]||(m=n._req=null,ur(n,p))}),m.on("response",p=>{let g=p.headers.location,w=p.statusCode;if(g&&i.followRedirects&&w>=300&&w<400){if(++n._redirects>i.maxRedirects){ne(n,m,"Maximum redirects exceeded");return}m.abort();let S;try{S=new Sn(g,e)}catch{let L=new SyntaxError(`Invalid URL: ${g}`);ur(n,L);return}Lo(n,S,t,r)}else n.emit("unexpected-response",m,p)||ne(n,m,`Unexpected server response: ${p.statusCode}`)}),m.on("upgrade",(p,g,w)=>{if(n.emit("upgrade",p),n.readyState!==k.CONNECTING)return;m=n._req=null;let S=p.headers.upgrade;if(S===void 0||S.toLowerCase()!=="websocket"){ne(n,g,"Invalid Upgrade header");return}let O=Ou("sha1").update(u+Ru).digest("base64");if(p.headers["sec-websocket-accept"]!==O){ne(n,g,"Invalid Sec-WebSocket-Accept header");return}let L=p.headers["sec-websocket-protocol"],R;if(L!==void 0?c.size?c.has(L)||(R="Server sent an invalid subprotocol"):R="Server sent a subprotocol but none was requested":c.size&&(R="Server sent no subprotocol"),R){ne(n,g,R);return}L&&(n._protocol=L);let I=p.headers["sec-websocket-extensions"];if(I!==void 0){if(!d){ne(n,g,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let z;try{z=ku(I)}catch{ne(n,g,"Invalid Sec-WebSocket-Extensions header");return}let Z=Object.keys(z);if(Z.length!==1||Z[0]!==Te.extensionName){ne(n,g,"Server indicated an extension that was not requested");return}try{d.accept(z[Te.extensionName])}catch{ne(n,g,"Invalid Sec-WebSocket-Extensions header");return}n._extensions[Te.extensionName]=d}n.setSocket(g,w,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxBufferedChunks:i.maxBufferedChunks,maxFragments:i.maxFragments,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(m,n):m.end()}function ur(n,e){n._readyState=k.CLOSING,n._errorEmitted=!0,n.emit("error",e),n.emitClose()}function zu(n){return n.path=n.socketPath,Co.connect(n)}function Gu(n){return n.path=void 0,!n.servername&&n.servername!==""&&(n.servername=Co.isIP(n.host)?"":n.host),Cu.connect(n)}function ne(n,e,t){n._readyState=k.CLOSING;let r=new Error(t);Error.captureStackTrace(r,ne),e.setHeader?(e[Oo]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(ur,n,r)):(e.destroy(r),e.once("error",n.emit.bind(n,"error")),e.once("close",n.emitClose.bind(n)))}function Cn(n,e,t){if(e){let r=Nu(e)?e.size:Uu(e).length;n._socket?n._sender._bufferedBytes+=r:n._bufferedAmount+=r}if(t){let r=new Error(`WebSocket is not open: readyState ${n.readyState} (${Ce[n.readyState]})`);process.nextTick(t,r)}}function Wu(n,e){let t=this[$];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=n,t._socket[$]!==void 0&&(t._socket.removeListener("data",cr),process.nextTick(To,t._socket),n===1005?t.close():t.close(n,e))}function qu(){let n=this[$];n.isPaused||n._socket.resume()}function ju(n){let e=this[$];e._socket[$]!==void 0&&(e._socket.removeListener("data",cr),process.nextTick(To,e._socket),e.close(n[Du])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",n))}function vo(){this[$].emitClose()}function $u(n,e){this[$].emit("message",n,e)}function Vu(n){let e=this[$];e._autoPong&&e.pong(n,!this._isServer,bo),e.emit("ping",n)}function Hu(n){this[$].emit("pong",n)}function To(n){n.resume()}function Zu(n){let e=this[$];e.readyState!==k.CLOSED&&(e.readyState===k.OPEN&&(e._readyState=k.CLOSING,No(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",n)))}function No(n){n._closeTimer=setTimeout(n._socket.destroy.bind(n._socket),n._closeTimeout)}function Io(){let n=this[$];if(this.removeListener("close",Io),this.removeListener("data",cr),this.removeListener("end",Ro),n._readyState=k.CLOSING,!this._readableState.endEmitted&&!n._closeFrameReceived&&!n._receiver._writableState.errorEmitted&&this._readableState.length!==0){let e=this.read(this._readableState.length);n._receiver.write(e)}n._receiver.end(),this[$]=void 0,clearTimeout(n._closeTimer),n._receiver._writableState.finished||n._receiver._writableState.errorEmitted?n.emitClose():(n._receiver.on("error",vo),n._receiver.on("finish",vo))}function cr(n){this[$]._receiver.write(n)||this.pause()}function Ro(){let n=this[$];n._readyState=k.CLOSING,n._receiver.end(),this.end()}function Ao(){let n=this[$];this.removeListener("error",Ao),this.on("error",bo),n&&(n._readyState=k.CLOSING,this.destroy())}});var ko=b((Vd,Fo)=>{"use strict";var $d=hr(),{Duplex:Yu}=require("stream");function Mo(n){n.emit("close")}function Xu(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Po(n){this.removeListener("error",Po),this.destroy(),this.listenerCount("error")===0&&this.emit("error",n)}function Ju(n,e){let t=!0,r=new Yu({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return n.on("message",function(s,o){let a=!o&&r._readableState.objectMode?s.toString():s;r.push(a)||n.pause()}),n.once("error",function(s){r.destroyed||(t=!1,r.destroy(s))}),n.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(i,s){if(n.readyState===n.CLOSED){s(i),process.nextTick(Mo,r);return}let o=!1;n.once("error",function(l){o=!0,s(l)}),n.once("close",function(){o||s(i),process.nextTick(Mo,r)}),t&&n.terminate()},r._final=function(i){if(n.readyState===n.CONNECTING){n.once("open",function(){r._final(i)});return}n._socket!==null&&(n._socket._writableState.finished?(i(),r._readableState.endEmitted&&r.destroy()):(n._socket.once("finish",function(){i()}),n.close()))},r._read=function(){n.isPaused&&n.resume()},r._write=function(i,s,o){if(n.readyState===n.CONNECTING){n.once("open",function(){r._write(i,s,o)});return}n.send(i,o)},r.on("end",Xu),r.on("error",Po),r}Fo.exports=Ju});var bn=b((Hd,Uo)=>{"use strict";var{tokenChars:Ku}=rt();function Qu(n){let e=new Set,t=-1,r=-1,i=0;for(i;i<n.length;i++){let o=n.charCodeAt(i);if(r===-1&&Ku[o]===1)t===-1&&(t=i);else if(i!==0&&(o===32||o===9))r===-1&&t!==-1&&(r=i);else if(o===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${i}`);r===-1&&(r=i);let a=n.slice(t,r);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);e.add(a),t=r=-1}else throw new SyntaxError(`Unexpected character at index ${i}`)}if(t===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let s=n.slice(t,i);if(e.has(s))throw new SyntaxError(`The "${s}" subprotocol is duplicated`);return e.add(s),e}Uo.exports={parse:Qu}});var $o=b((Yd,jo)=>{"use strict";var ec=require("events"),dr=require("http"),{Duplex:Zd}=require("stream"),{createHash:tc}=require("crypto"),Bo=ar(),We=tt(),rc=bn(),nc=hr(),{CLOSE_TIMEOUT:ic,GUID:sc,kWebSocket:oc}=Se(),lc=/^[+/0-9A-Za-z]{22}==$/,zo=0,Go=1,qo=2,On=class extends ec{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:256*1024,maxFragments:16*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:ic,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:nc,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=dr.createServer((r,i)=>{let s=dr.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=ac(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,o)=>{this.handleUpgrade(i,s,o,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=zo}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===qo){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(Nt,this);return}if(e&&this.once("close",e),this._state!==Go)if(this._state=Go,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Nt,this):process.nextTick(Nt,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{Nt(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,i){t.on("error",Wo);let s=e.headers["sec-websocket-key"],o=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){qe(this,e,t,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){qe(this,e,t,400,"Invalid Upgrade header");return}if(s===void 0||!lc.test(s)){qe(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==13&&a!==8){qe(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){It(t,400);return}let l=e.headers["sec-websocket-protocol"],f=new Set;if(l!==void 0)try{f=rc.parse(l)}catch{qe(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let u=e.headers["sec-websocket-extensions"],h={};if(this.options.perMessageDeflate&&u!==void 0){let c=new We({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let d=Bo.parse(u);d[We.extensionName]&&(c.accept(d[We.extensionName]),h[We.extensionName]=c)}catch{qe(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let c={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(c,(d,m,p,g)=>{if(!d)return It(t,m||401,p,g);this.completeUpgrade(h,s,f,e,t,r,i)});return}if(!this.options.verifyClient(c))return It(t,401)}this.completeUpgrade(h,s,f,e,t,r,i)}completeUpgrade(e,t,r,i,s,o,a){if(!s.readable||!s.writable)return s.destroy();if(s[oc])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>zo)return It(s,503);let f=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${tc("sha1").update(t+sc).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(r.size){let h=this.options.handleProtocols?this.options.handleProtocols(r,i):r.values().next().value;h&&(f.push(`Sec-WebSocket-Protocol: ${h}`),u._protocol=h)}if(e[We.extensionName]){let h=e[We.extensionName].params,c=Bo.format({[We.extensionName]:[h]});f.push(`Sec-WebSocket-Extensions: ${c}`),u._extensions=e}this.emit("headers",f,i),s.write(f.concat(`\r
28
28
  `).join(`\r
29
- `)),s.removeListener("error",ko),u.setSocket(s,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(u),u.on("close",()=>{this.clients.delete(u),this._shouldEmitClose&&!this.clients.size&&process.nextTick(It,this)})),a(u,i)}};zo.exports=Ln;function ic(n,e){for(let t of Object.keys(e))n.on(t,e[t]);return function(){for(let r of Object.keys(e))n.removeListener(r,e[r])}}function It(n){n._state=Bo,n.emit("close")}function ko(){this.destroy()}function Nt(n,e,t,r){t=t||hr.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},n.once("finish",n.destroy),n.end(`HTTP/1.1 ${e} ${hr.STATUS_CODES[e]}\r
29
+ `)),s.removeListener("error",Wo),u.setSocket(s,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(u),u.on("close",()=>{this.clients.delete(u),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Nt,this)})),a(u,i)}};jo.exports=On;function ac(n,e){for(let t of Object.keys(e))n.on(t,e[t]);return function(){for(let r of Object.keys(e))n.removeListener(r,e[r])}}function Nt(n){n._state=qo,n.emit("close")}function Wo(){this.destroy()}function It(n,e,t,r){t=t||dr.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},n.once("finish",n.destroy),n.end(`HTTP/1.1 ${e} ${dr.STATUS_CODES[e]}\r
30
30
  `+Object.keys(r).map(i=>`${i}: ${r[i]}`).join(`\r
31
31
  `)+`\r
32
32
  \r
33
- `+t)}function je(n,e,t,r,i,s){if(n.listenerCount("wsClientError")){let o=new Error(i);Error.captureStackTrace(o,je),n.emit("wsClientError",o,t,e)}else Nt(t,r,i,s)}});var Zo=b((Dd,Ho)=>{"use strict";Ho.exports=$o;function $o(n,e,t){n instanceof RegExp&&(n=qo(n,t)),e instanceof RegExp&&(e=qo(e,t));var r=Vo(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}function qo(n,e){var t=e.match(n);return t?t[0]:null}$o.range=Vo;function Vo(n,e,t){var r,i,s,o,a,l=t.indexOf(n),f=t.indexOf(e,l+1),u=l;if(l>=0&&f>0){if(n===e)return[l,f];for(r=[],s=t.length;u>=0&&!a;)u==l?(r.push(u),l=t.indexOf(n,u+1)):r.length==1?a=[r.pop(),f]:(i=r.pop(),i<s&&(s=i,o=f),f=t.indexOf(e,u+1)),u=l<f&&l>=0?l:f;r.length&&(a=[s,o])}return a}});var rl=b((Md,tl)=>{var Yo=Zo();tl.exports=pc;var Xo="\0SLASH"+Math.random()+"\0",Ko="\0OPEN"+Math.random()+"\0",In="\0CLOSE"+Math.random()+"\0",Jo="\0COMMA"+Math.random()+"\0",Qo="\0PERIOD"+Math.random()+"\0";function Tn(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function hc(n){return n.split("\\\\").join(Xo).split("\\{").join(Ko).split("\\}").join(In).split("\\,").join(Jo).split("\\.").join(Qo)}function dc(n){return n.split(Xo).join("\\").split(Ko).join("{").split(In).join("}").split(Jo).join(",").split(Qo).join(".")}function el(n){if(!n)return[""];var e=[],t=Yo("{","}",n);if(!t)return n.split(",");var r=t.pre,i=t.body,s=t.post,o=r.split(",");o[o.length-1]+="{"+i+"}";var a=el(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function pc(n,e){if(!n)return[];e=e||{};var t=e.max==null?1/0:e.max;return n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),Rt(hc(n),t,!0).map(dc)}function mc(n){return"{"+n+"}"}function gc(n){return/^-?0\d/.test(n)}function _c(n,e){return n<=e}function yc(n,e){return n>=e}function Rt(n,e,t){var r=[],i=Yo("{","}",n);if(!i)return[n];var s=i.pre,o=i.post.length?Rt(i.post,e,!1):[""];if(/\$$/.test(i.pre))for(var a=0;a<o.length&&a<e;a++){var l=s+"{"+i.body+"}"+o[a];r.push(l)}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=f||u,c=i.body.indexOf(",")>=0;if(!h&&!c)return i.post.match(/,(?!,).*\}/)?(n=i.pre+"{"+i.body+In+i.post,Rt(n,e,!0)):[n];var d;if(h)d=i.body.split(/\.\./);else if(d=el(i.body),d.length===1&&(d=Rt(d[0],e,!1).map(mc),d.length===1))return o.map(function(Y){return i.pre+d[0]+Y});var m;if(h){var p=Tn(d[0]),g=Tn(d[1]),S=Math.max(d[0].length,d[1].length),w=d.length==3?Math.max(Math.abs(Tn(d[2])),1):1,O=_c,L=g<p;L&&(w*=-1,O=yc);var A=d.some(gc);m=[];for(var I=p;O(I,g)&&m.length<e;I+=w){var R;if(u)R=String.fromCharCode(I),R==="\\"&&(R="");else if(R=String(I),A){var q=S-R.length;if(q>0){var D=new Array(q+1).join("0");I<0?R="-"+D+R.slice(1):R=D+R}}m.push(R)}}else{m=[];for(var M=0;M<d.length;M++)m.push.apply(m,Rt(d[M],e,!1))}for(var M=0;M<m.length;M++)for(var a=0;a<o.length&&r.length<e;a++){var l=s+m[M]+o[a];(!t||h||l)&&r.push(l)}}return r}});var wl=b(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=lh;var Mt="diff-sequences",J=0,Ft=(n,e,t,r,i)=>{let s=0;for(;n<e&&t<r&&i(n,t);)n+=1,t+=1,s+=1;return s},Pt=(n,e,t,r,i)=>{let s=0;for(;n<=e&&t<=r&&i(e,r);)e-=1,r-=1,s+=1;return s},Dn=(n,e,t,r,i,s,o)=>{let a=0,l=-n,f=s[a],u=f;s[a]+=Ft(f+1,e,r+f-l+1,t,i);let h=n<o?n:o;for(a+=1,l+=2;a<=h;a+=1,l+=2){if(a!==n&&u<s[a])f=s[a];else if(f=u+1,e<=f)return a-1;u=s[a],s[a]=f+Ft(f+1,e,r+f-l+1,t,i)}return o},gl=(n,e,t,r,i,s,o)=>{let a=0,l=n,f=s[a],u=f;s[a]-=Pt(e,f-1,t,r+f-l-1,i);let h=n<o?n:o;for(a+=1,l-=2;a<=h;a+=1,l-=2){if(a!==n&&s[a]<u)f=s[a];else if(f=u-1,f<e)return a-1;u=s[a],s[a]=f-Pt(e,f-1,t,r+f-l-1,i)}return o},ih=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=r-e,c=t-e,m=i-r-c,p=-m-(n-1),g=-m+(n-1),S=J,w=n<a?n:a;for(let O=0,L=-n;O<=w;O+=1,L+=2){let A=O===0||O!==n&&S<o[O],I=A?o[O]:S,R=A?I:I+1,q=h+R-L,D=Ft(R+1,t,q+1,i,s),M=R+D;if(S=o[O],o[O]=M,p<=L&&L<=g){let Y=(n-1-(L+m))/2;if(Y<=f&&l[Y]-1<=M){let ie=h+I-(A?L+1:L-1),_=Pt(e,I,r,ie,s),E=I-_,C=ie-_,v=E+1,N=C+1;u.nChangePreceding=n-1,n-1===v+N-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=v,u.bEndPreceding=N),u.nCommonPreceding=_,_!==0&&(u.aCommonPreceding=v,u.bCommonPreceding=N),u.nCommonFollowing=D,D!==0&&(u.aCommonFollowing=R+1,u.bCommonFollowing=q+1);let T=M+1,U=q+D+1;return u.nChangeFollowing=n-1,n-1===t+i-T-U?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=T,u.bStartFollowing=U),!0}}}return!1},sh=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=i-t,c=t-e,m=i-r-c,p=m-n,g=m+n,S=J,w=n<f?n:f;for(let O=0,L=n;O<=w;O+=1,L-=2){let A=O===0||O!==n&&l[O]<S,I=A?l[O]:S,R=A?I:I-1,q=h+R-L,D=Pt(e,R-1,r,q-1,s),M=R-D;if(S=l[O],l[O]=M,p<=L&&L<=g){let Y=(n+(L-m))/2;if(Y<=a&&M-1<=o[Y]){let ie=q-D;if(u.nChangePreceding=n,n===M+ie-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=M,u.bEndPreceding=ie),u.nCommonPreceding=D,D!==0&&(u.aCommonPreceding=M,u.bCommonPreceding=ie),u.nChangeFollowing=n-1,n===1)u.nCommonFollowing=0,u.aStartFollowing=t,u.bStartFollowing=i;else{let _=h+I-(A?L-1:L+1),E=Ft(I,t,_,i,s);u.nCommonFollowing=E,E!==0&&(u.aCommonFollowing=I,u.bCommonFollowing=_);let C=I+E,v=_+E;n-1===t+i-C-v?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=C,u.bStartFollowing=v)}return!0}}}return!1},oh=(n,e,t,r,i,s,o,a,l)=>{let f=r-e,u=i-t,h=t-e,c=i-r,d=c-h,m=h,p=h;if(o[0]=e-1,a[0]=t,d%2===0){let g=(n||d)/2,S=(h+c)/2;for(let w=1;w<=S;w+=1)if(m=Dn(w,t,i,f,s,o,m),w<g)p=gl(w,e,r,u,s,a,p);else if(sh(w,e,t,r,i,s,o,m,a,p,l))return}else{let g=((n||d)+1)/2,S=(h+c+1)/2,w=1;for(m=Dn(w,t,i,f,s,o,m),w+=1;w<=S;w+=1)if(p=gl(w-1,e,r,u,s,a,p),w<g)m=Dn(w,t,i,f,s,o,m);else if(ih(w,e,t,r,i,s,o,m,a,p,l))return}throw new Error(`${Mt}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${i}`)},Mn=(n,e,t,r,i,s,o,a,l,f)=>{if(i-r<t-e){if(s=!s,s&&o.length===1){let{foundSubsequence:M,isCommon:Y}=o[0];o[1]={foundSubsequence:(ie,_,E)=>{M(ie,E,_)},isCommon:(ie,_)=>Y(_,ie)}}let q=e,D=t;e=r,t=i,r=q,i=D}let{foundSubsequence:u,isCommon:h}=o[s?1:0];oh(n,e,t,r,i,h,a,l,f);let{nChangePreceding:c,aEndPreceding:d,bEndPreceding:m,nCommonPreceding:p,aCommonPreceding:g,bCommonPreceding:S,nCommonFollowing:w,aCommonFollowing:O,bCommonFollowing:L,nChangeFollowing:A,aStartFollowing:I,bStartFollowing:R}=f;e<d&&r<m&&Mn(c,e,d,r,m,s,o,a,l,f),p!==0&&u(p,g,S),w!==0&&u(w,O,L),I<t&&R<i&&Mn(A,I,t,R,i,s,o,a,l,f)},_l=(n,e)=>{if(typeof e!="number")throw new TypeError(`${Mt}: ${n} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${Mt}: ${n} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${Mt}: ${n} value ${e} is a negative integer`)},yl=(n,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${Mt}: ${n} typeof ${t} is not a function`)};function lh(n,e,t,r){_l("aLength",n),_l("bLength",e),yl("isCommon",t),yl("foundSubsequence",r);let i=Ft(0,n,0,e,t);if(i!==0&&r(i,0,0),n!==i||e!==i){let s=i,o=i,a=Pt(s,n-1,o,e-1,t),l=n-a,f=e-a,u=i+a;n!==u&&e!==u&&Mn(0,s,l,o,f,!1,[{foundSubsequence:r,isCommon:t}],[J],[J],{aCommonFollowing:J,aCommonPreceding:J,aEndPreceding:J,aStartFollowing:J,bCommonFollowing:J,bCommonPreceding:J,bEndPreceding:J,bStartFollowing:J,nChangeFollowing:J,nChangePreceding:J,nCommonFollowing:J,nCommonPreceding:J}),a!==0&&r(a,l,f)}}});var Il=b((pp,Tl)=>{"use strict";function dh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ph=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function Ll(n){if(Buffer.isBuffer(n))return n;if(typeof n=="number")return Buffer.alloc(n);if(typeof n=="string")return Buffer.from(n);throw new Error("input must be buffer, number, or string, received "+typeof n)}function mh(n){let e=Ll(4);return e.writeInt32BE(n,0),e}function Bn(n,e){n=Ll(n),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let t=~~e^-1;for(var r=0;r<n.length;r++)t=ph[(t^n[r])&255]^t>>>8;return t^-1}function zn(){return mh(Bn.apply(null,arguments))}zn.signed=function(){return Bn.apply(null,arguments)};zn.unsigned=function(){return Bn.apply(null,arguments)>>>0};var gh=zn,_h=dh(gh);Tl.exports=_h});var Hl=b(Hn=>{var Nl=require("fs"),wr=require("stream").Transform,Dl=require("stream").PassThrough,Ml=require("zlib"),$n=require("util"),yh=require("events").EventEmitter,wh=require("events").errorMonitor,Fl=Il();Hn.ZipFile=Ae;Hn.dateToDosDateTime=Vl;$n.inherits(Ae,yh);function Ae(){this.outputStream=new Dl,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(wh,function(){this.errored=!0})}Ae.prototype.addFile=function(n,e,t){var r=this;if(e=Sr(e,!1),t==null&&(t={}),!Er(r)){var i=new F(e,!1,t);r.entries.push(i),Nl.stat(n,function(s,o){if(s)return r.emit("error",s);if(!o.isFile())return r.emit("error",new Error("not a file: "+n));i.uncompressedSize=o.size,t.mtime==null&&i.setLastModDate(o.mtime),t.mode==null&&i.setFileAttributesMode(o.mode),i.setFileDataPumpFunction(function(){var a=Nl.createReadStream(n);i.state=F.FILE_DATA_IN_PROGRESS,a.on("error",function(l){r.emit("error",l)}),Pl(r,i,a)}),Re(r)})}};Ae.prototype.addReadStream=function(n,e,t){this.addReadStreamLazy(e,t,function(r){r(null,n)})};Ae.prototype.addReadStreamLazy=function(n,e,t){var r=this;if(typeof e=="function"&&(t=e,e=null),e==null&&(e={}),n=Sr(n,!1),!Er(r)){var i=new F(n,!1,e);r.entries.push(i),i.setFileDataPumpFunction(function(){i.state=F.FILE_DATA_IN_PROGRESS,t(function(s,o){if(s)return r.emit("error",s);Pl(r,i,o)})}),Re(r)}};Ae.prototype.addBuffer=function(n,e,t){var r=this;if(e=Sr(e,!1),n.length>1073741823)throw new Error("buffer too large: "+n.length+" > 1073741823");if(t==null&&(t={}),t.size!=null)throw new Error("options.size not allowed");if(Er(r))return;var i=new F(e,!1,t);i.uncompressedSize=n.length,i.crc32=Fl.unsigned(n),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?s(n):Ml.deflateRaw(n,{level:i.compressionLevel},function(o,a){s(a)});function s(o){i.compressedSize=o.length,i.setFileDataPumpFunction(function(){$e(r,o),$e(r,i.getDataDescriptor()),i.state=F.FILE_DATA_DONE,setImmediate(function(){Re(r)})}),Re(r)}};Ae.prototype.addEmptyDirectory=function(n,e){var t=this;if(n=Sr(n,!0),e==null&&(e={}),e.size!=null)throw new Error("options.size not allowed");if(e.compress!=null)throw new Error("options.compress not allowed");if(e.compressionLevel!=null)throw new Error("options.compressionLevel not allowed");if(!Er(t)){var r=new F(n,!0,e);t.entries.push(r),r.setFileDataPumpFunction(function(){$e(t,r.getDataDescriptor()),r.state=F.FILE_DATA_DONE,Re(t)}),Re(t)}};var Eh=Ne([80,75,5,6]);Ae.prototype.end=function(n,e){if(typeof n=="function"&&(e=n,n=null),n==null&&(n={}),!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=e,this.forceZip64Eocd=!!n.forceZip64Format,n.comment){if(typeof n.comment=="string"?this.comment=Ch(n.comment):this.comment=n.comment,this.comment.length>65535)throw new Error("comment is too large");if(Ut(this.comment,Eh))throw new Error("comment contains end of central directory record signature")}else this.comment=kt;Re(this)}};function $e(n,e){n.outputStream.write(e),n.outputStreamCursor+=e.length}function Pl(n,e,t){var r=new Vn,i=new yr,s=e.compressionLevel!==0?new Ml.DeflateRaw({level:e.compressionLevel}):new Dl,o=new yr;t.pipe(r).pipe(i).pipe(s).pipe(o).pipe(n.outputStream,{end:!1}),o.on("end",function(){if(e.crc32=r.crc32,e.uncompressedSize==null)e.uncompressedSize=i.byteCount;else if(e.uncompressedSize!==i.byteCount)return n.emit("error",new Error("file data stream has unexpected number of bytes"));e.compressedSize=o.byteCount,n.outputStreamCursor+=e.compressedSize,$e(n,e.getDataDescriptor()),e.state=F.FILE_DATA_DONE,Re(n)})}function Sh(n){if(n.compress!=null&&n.compressionLevel!=null&&!!n.compress!=!!n.compressionLevel)throw new Error("conflicting settings for compress and compressionLevel");return n.compressionLevel!=null?n.compressionLevel:n.compress===!1?0:6}function Re(n){if(n.allDone||n.errored)return;if(n.ended&&n.calculatedTotalSizeCallback!=null){var e=vh(n);e!=null&&(n.calculatedTotalSizeCallback(e),n.calculatedTotalSizeCallback=null)}var t=r();function r(){for(var s=0;s<n.entries.length;s++){var o=n.entries[s];if(o.state<F.FILE_DATA_DONE)return o}return null}if(t!=null){if(t.state<F.READY_TO_PUMP_FILE_DATA||t.state===F.FILE_DATA_IN_PROGRESS)return;t.relativeOffsetOfLocalHeader=n.outputStreamCursor;var i=t.getLocalFileHeader();$e(n,i),t.doFileDataPump()}else n.ended&&(n.offsetOfStartOfCentralDirectory=n.outputStreamCursor,n.entries.forEach(function(s){var o=s.getCentralDirectoryRecord();$e(n,o)}),$e(n,xh(n)),n.outputStream.end(),n.allDone=!0)}function vh(n){for(var e=0,t=0,r=0;r<n.entries.length;r++){var i=n.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=F.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=e;var s=i.useZip64Format();e+=Ul+i.utf8FileName.length,e+=i.uncompressedSize,i.crcAndFileSizeKnown||(s?e+=ql:e+=jl),t+=$l+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(t+=Wn),s&&(t+=jn)}var o=0;return(n.forceZip64Eocd||n.entries.length>=65535||t>=65535||e>=4294967295)&&(o+=gr+Gn),o+=_r+n.comment.length,e+t+o}function Er(n){if(n.ended)throw new Error("cannot add entries after calling end()");return!!n.errored}var gr=56,Gn=20,_r=22;function xh(n,e){var t=!1,r=n.entries.length;(n.forceZip64Eocd||n.entries.length>=65535)&&(r=65535,t=!0);var i=n.outputStreamCursor-n.offsetOfStartOfCentralDirectory,s=i;(n.forceZip64Eocd||i>=4294967295)&&(s=4294967295,t=!0);var o=n.offsetOfStartOfCentralDirectory;if((n.forceZip64Eocd||n.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,t=!0),e)return t?gr+Gn+_r:_r;var a=ee(_r+n.comment.length);if(a.writeUInt32LE(101010256,0),a.writeUInt16LE(0,4),a.writeUInt16LE(0,6),a.writeUInt16LE(r,8),a.writeUInt16LE(r,10),a.writeUInt32LE(s,12),a.writeUInt32LE(o,16),a.writeUInt16LE(n.comment.length,20),n.comment.copy(a,22),!t)return a;var l=ee(gr);l.writeUInt32LE(101075792,0),me(l,gr-12,4),l.writeUInt16LE(zl,12),l.writeUInt16LE(Bl,14),l.writeUInt32LE(0,16),l.writeUInt32LE(0,20),me(l,n.entries.length,24),me(l,n.entries.length,32),me(l,i,40),me(l,n.offsetOfStartOfCentralDirectory,48);var f=ee(Gn);return f.writeUInt32LE(117853008,0),f.writeUInt32LE(0,4),me(f,n.outputStreamCursor,8),f.writeUInt32LE(1,16),Buffer.concat([l,f,a])}function Sr(n,e){if(n==="")throw new Error("empty metadataPath");if(n=n.replace(/\\/g,"/"),/^[a-zA-Z]:/.test(n)||/^\//.test(n))throw new Error("absolute path: "+n);if(n.split("/").indexOf("..")!==-1)throw new Error("invalid relative path: "+n);var t=/\/$/.test(n);if(e)t||(n+="/");else if(t)throw new Error("file path cannot end with '/': "+n);return n}var kt=ee(0);function F(n,e,t){if(this.utf8FileName=Ne(n),this.utf8FileName.length>65535)throw new Error("utf8 file name too long. "+utf8FileName.length+" > 65535");if(this.isDirectory=e,this.state=F.WAITING_FOR_METADATA,this.setLastModDate(t.mtime!=null?t.mtime:new Date),this.forceDosTimestamp=!!t.forceDosTimestamp,t.mode!=null?this.setFileAttributesMode(t.mode):this.setFileAttributesMode(e?16893:33204),e?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,t.size!=null&&(this.uncompressedSize=t.size)),e?this.compressionLevel=0:this.compressionLevel=Sh(t),this.forceZip64Format=!!t.forceZip64Format,t.fileComment){if(typeof t.fileComment=="string"?this.fileComment=Ne(t.fileComment,"utf-8"):this.fileComment=t.fileComment,this.fileComment.length>65535)throw new Error("fileComment is too large")}else this.fileComment=kt}F.WAITING_FOR_METADATA=0;F.READY_TO_PUMP_FILE_DATA=1;F.FILE_DATA_IN_PROGRESS=2;F.FILE_DATA_DONE=3;F.prototype.setLastModDate=function(n){this.mtime=n;var e=Vl(n);this.lastModFileTime=e.time,this.lastModFileDate=e.date};F.prototype.setFileAttributesMode=function(n){if((n&65535)!==n)throw new Error("invalid mode. expected: 0 <= "+n+" <= 65535");this.externalFileAttributes=n<<16>>>0};F.prototype.setFileDataPumpFunction=function(n){this.doFileDataPump=n,this.state=F.READY_TO_PUMP_FILE_DATA};F.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var Ul=30,kl=20,Bl=45,zl=831,Gl=2048,Wl=8;F.prototype.getLocalFileHeader=function(){var n=0,e=0,t=0;this.crcAndFileSizeKnown&&(n=this.crc32,e=this.compressedSize,t=this.uncompressedSize);var r=ee(Ul),i=Gl;return this.crcAndFileSizeKnown||(i|=Wl),r.writeUInt32LE(67324752,0),r.writeUInt16LE(kl,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(n,14),r.writeUInt32LE(e,18),r.writeUInt32LE(t,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var jl=16,ql=24;F.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return kt;if(this.useZip64Format()){var n=ee(ql);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),me(n,this.compressedSize,8),me(n,this.uncompressedSize,16),n}else{var n=ee(jl);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),n.writeUInt32LE(this.compressedSize,8),n.writeUInt32LE(this.uncompressedSize,12),n}};var $l=46,Wn=9,jn=28;F.prototype.getCentralDirectoryRecord=function(){var n=ee($l),e=Gl;this.crcAndFileSizeKnown||(e|=Wl);var t=kt;if(!this.forceDosTimestamp){t=ee(Wn),t.writeUInt16LE(21589,0),t.writeUInt16LE(Wn-4,2);var r=1,i=2;t.writeUInt8(r|i,4);var s=Math.floor(this.mtime.getTime()/1e3);s<-2147483648&&(s=-2147483648),s>2147483647&&(s=2147483647),t.writeUInt32LE(s,5)}var o=this.compressedSize,a=this.uncompressedSize,l=this.relativeOffsetOfLocalHeader,f=kl,u=kt;return this.useZip64Format()&&(o=4294967295,a=4294967295,l=4294967295,f=Bl,u=ee(jn),u.writeUInt16LE(1,0),u.writeUInt16LE(jn-4,2),me(u,this.uncompressedSize,4),me(u,this.compressedSize,12),me(u,this.relativeOffsetOfLocalHeader,20)),n.writeUInt32LE(33639248,0),n.writeUInt16LE(zl,4),n.writeUInt16LE(f,6),n.writeUInt16LE(e,8),n.writeUInt16LE(this.getCompressionMethod(),10),n.writeUInt16LE(this.lastModFileTime,12),n.writeUInt16LE(this.lastModFileDate,14),n.writeUInt32LE(this.crc32,16),n.writeUInt32LE(o,20),n.writeUInt32LE(a,24),n.writeUInt16LE(this.utf8FileName.length,28),n.writeUInt16LE(t.length+u.length,30),n.writeUInt16LE(this.fileComment.length,32),n.writeUInt16LE(0,34),n.writeUInt16LE(0,36),n.writeUInt32LE(this.externalFileAttributes,38),n.writeUInt32LE(l,42),Buffer.concat([n,this.utf8FileName,t,u,this.fileComment])};F.prototype.getCompressionMethod=function(){var n=0,e=8;return this.compressionLevel===0?n:e};var Rl=new Date(1980,0,1),Al=new Date(2107,11,31,23,59,58);function Vl(n){n<Rl?n=Rl:n>Al&&(n=Al);var e=0;e|=n.getDate()&31,e|=(n.getMonth()+1&15)<<5,e|=(n.getFullYear()-1980&127)<<9;var t=0;return t|=Math.floor(n.getSeconds()/2),t|=(n.getMinutes()&63)<<5,t|=(n.getHours()&31)<<11,{date:e,time:t}}function me(n,e,t){var r=Math.floor(e/4294967296),i=e%4294967296;n.writeUInt32LE(i,t),n.writeUInt32LE(r,t+4)}$n.inherits(yr,wr);function yr(n){wr.call(this,n),this.byteCount=0}yr.prototype._transform=function(n,e,t){this.byteCount+=n.length,t(null,n)};$n.inherits(Vn,wr);function Vn(n){wr.call(this,n),this.crc32=0}Vn.prototype._transform=function(n,e,t){this.crc32=Fl.unsigned(n,this.crc32),t(null,n)};var qn="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";if(qn.length!==256)throw new Error("assertion failure");var mr=null;function Ch(n){if(/^[\x20-\x7e]*$/.test(n))return Ne(n,"utf-8");if(mr==null){mr={};for(var e=0;e<qn.length;e++)mr[qn[e]]=e}for(var t=ee(n.length),e=0;e<n.length;e++){var r=mr[n[e]];if(r==null)throw new Error("character not encodable in CP437: "+JSON.stringify(n[e]));t[e]=r}return t}function ee(n){ee=e;try{return ee(n)}catch{return ee=t,ee(n)}function e(r){return Buffer.allocUnsafe(r)}function t(r){return new Buffer(r)}}function Ne(n,e){Ne=t;try{return Ne(n,e)}catch{return Ne=r,Ne(n,e)}function t(i,s){return Buffer.from(i,s)}function r(i,s){return new Buffer(i,s)}}function Ut(n,e){Ut=t;try{return Ut(n,e)}catch{return Ut=r,Ut(n,e)}function t(i,s){return i.includes(s)}function r(i,s){for(var o=0;o<=i.length-s.length;o++)for(var a=0;;a++){if(a===s.length)return!0;if(i[o+a]!==s[a])break}return!1}}});var Ql=b((_p,Jl)=>{var fe=require("fs"),bh=require("util"),ft=require("path"),ei=require("events"),Zl=require("zlib"),Kl=require("stream"),y={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSIGFIRST:80,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,MAXFILECOMMENT:65535,ENDL64HDR:20,ENDL64SIG:117853008,ENDL64SIGFIRST:80,ENDL64OFS:8,END64HDR:56,END64SIG:101075792,END64SIGFIRST:80,END64SUB:24,END64TOT:32,END64SIZ:40,END64OFF:48,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,FLG_ENC:0,FLG_COMP1:1,FLG_COMP2:2,FLG_DESC:4,FLG_ENH:8,FLG_STR:16,FLG_LNG:1024,FLG_MSK:4096,FLG_ENTRY_ENC:1,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535},Pe=function(n){let e,t,r,i,s,o,l=this,f=n.storeEntries!==!1?{}:null,u=n.file,h=n.nameEncoding?new TextDecoder(n.nameEncoding):null;c();function c(){n.fd?(e=n.fd,d()):fe.open(u,"r",(_,E)=>{if(_)return l.emit("error",_);e=E,d()})}function d(){fe.fstat(e,(_,E)=>{if(_)return l.emit("error",_);t=E.size,r=n.chunkSize||Math.round(t/1e3),r=Math.max(Math.min(r,Math.min(128*1024,t)),Math.min(1024,t)),p()})}function m(_,E){if(_||!E)return l.emit("error",_||new Error("Archive read error"));let C=i.lastPos,v=C-i.win.position,N=i.win.buffer,T=i.minPos;for(;--C>=T&&--v>=0;)if(N.length-v>=4&&N[v]===i.firstByte&&N.readUInt32LE(v)===i.sig){i.lastBufferPosition=v,i.lastBytesRead=E,i.complete();return}if(C===T)return l.emit("error",new Error("Bad archive"));if(i.lastPos=C+1,i.chunkSize*=2,C<=T)return l.emit("error",new Error("Bad archive"));let U=Math.min(i.chunkSize,C-T);i.win.expandLeft(U,m)}function p(){let _=Math.min(y.ENDHDR+y.MAXFILECOMMENT,t);i={win:new vr(e),totalReadLength:_,minPos:t-_,lastPos:t,chunkSize:Math.min(1024,r),firstByte:y.ENDSIGFIRST,sig:y.ENDSIG,complete:g},i.win.read(t-i.chunkSize,i.chunkSize,m)}function g(){let _=i.win.buffer,E=i.lastBufferPosition;try{s=new Zn,s.read(_.slice(E,E+y.ENDHDR)),s.headerOffset=i.win.position+E,s.commentLength?l.comment=_.slice(E+y.ENDHDR,E+y.ENDHDR+s.commentLength).toString():l.comment=null,l.entriesCount=s.volumeEntries,l.centralDirectory=s,s.volumeEntries===y.EF_ZIP64_OR_16&&s.totalEntries===y.EF_ZIP64_OR_16||s.size===y.EF_ZIP64_OR_32||s.offset===y.EF_ZIP64_OR_32?S():(i={},L())}catch(C){l.emit("error",C)}}function S(){let _=y.ENDL64HDR;i.lastBufferPosition>_?(i.lastBufferPosition-=_,w()):(i={win:i.win,totalReadLength:_,minPos:i.win.position-_,lastPos:i.win.position,chunkSize:i.chunkSize,firstByte:y.ENDL64SIGFIRST,sig:y.ENDL64SIG,complete:w},i.win.read(i.lastPos-i.chunkSize,i.chunkSize,m))}function w(){let _=i.win.buffer,E=new Yn;E.read(_.slice(i.lastBufferPosition,i.lastBufferPosition+y.ENDL64HDR));let C=t-E.headerOffset;i={win:i.win,totalReadLength:C,minPos:E.headerOffset,lastPos:i.lastPos,chunkSize:i.chunkSize,firstByte:y.END64SIGFIRST,sig:y.END64SIG,complete:O},i.win.read(t-i.chunkSize,i.chunkSize,m)}function O(){let _=i.win.buffer,E=new Xn;E.read(_.slice(i.lastBufferPosition,i.lastBufferPosition+y.END64HDR)),l.centralDirectory.volumeEntries=E.volumeEntries,l.centralDirectory.totalEntries=E.totalEntries,l.centralDirectory.size=E.size,l.centralDirectory.offset=E.offset,l.entriesCount=E.volumeEntries,i={},L()}function L(){i={win:new vr(e),pos:s.offset,chunkSize:r,entriesLeft:s.volumeEntries},i.win.read(i.pos,Math.min(r,t-i.pos),A)}function A(_,E){if(_||!E)return l.emit("error",_||new Error("Entries read error"));let C=i.pos-i.win.position,v=i.entry,N=i.win.buffer,T=N.length;try{for(;i.entriesLeft>0;){v||(v=new Kn,v.readHeader(N,C),v.headerOffset=i.win.position+C,i.entry=v,i.pos+=y.CENHDR,C+=y.CENHDR);let U=v.fnameLen+v.extraLen+v.comLen,j=U+(i.entriesLeft>1?y.CENHDR:0);if(T-C<j){i.win.moveRight(r,A,C),i.move=!0;return}v.read(N,C,h),n.skipEntryNameValidation||v.validateName(),f&&(f[v.name]=v),l.emit("entry",v),i.entry=v=null,i.entriesLeft--,i.pos+=U,C+=U}l.emit("ready")}catch(U){l.emit("error",U)}}function I(){if(!f)throw new Error("storeEntries disabled")}Object.defineProperty(this,"ready",{get(){return!1}}),this.entry=function(_){return I(),f[_]},this.entries=function(){return I(),f},this.stream=function(_,E){return this.openEntry(_,(C,v)=>{if(C)return E(C);let N=R(v),T=new Jn(e,N,v.compressedSize);if(v.method!==y.STORED)if(v.method===y.DEFLATED)T=T.pipe(Zl.createInflateRaw());else return E(new Error("Unknown compression method: "+v.method));q(v)&&(T=T.pipe(new Qn(T,v.crc,v.size))),E(null,T)},!1)},this.entryDataSync=function(_){let E=null;if(this.openEntry(_,(v,N)=>{E=v,_=N},!0),E)throw E;let C=Buffer.alloc(_.compressedSize);if(new Me(e,C,0,_.compressedSize,R(_),v=>{E=v}).read(!0),E)throw E;if(_.method!==y.STORED)if(_.method===y.DEFLATED||_.method===y.ENHANCED_DEFLATED)C=Zl.inflateRawSync(C);else throw new Error("Unknown compression method: "+_.method);if(C.length!==_.size)throw new Error("Invalid size");return q(_)&&new xr(_.crc,_.size).data(C),C},this.openEntry=function(_,E,C){if(typeof _=="string"&&(I(),_=f[_],!_))return E(new Error("Entry not found"));if(!_.isFile)return E(new Error("Entry is not file"));if(!e)return E(new Error("Archive closed"));let v=Buffer.alloc(y.LOCHDR);new Me(e,v,0,v.length,_.offset,N=>{if(N)return E(N);let T;try{_.readDataHeader(v),_.encrypted&&(T=new Error("Entry encrypted"))}catch(U){T=U}E(T,_)}).read(C)};function R(_){return _.offset+y.LOCHDR+_.fnameLen+_.extraLen}function q(_){return(_.flags&8)!==8}function D(_,E,C){l.stream(_,(v,N)=>{if(v)C(v);else{let T,U;N.on("error",j=>{U=j,T&&(N.unpipe(T),T.close(()=>{C(j)}))}),fe.open(E,"w",(j,ce)=>{if(j)return C(j);if(U){fe.close(e,()=>{C(U)});return}T=fe.createWriteStream(E,{fd:ce}),T.on("finish",()=>{l.emit("extract",_,E),U||C()}),N.pipe(T)})}})}function M(_,E,C){if(!E.length)return C();let v=E.shift();v=ft.join(_,ft.join(...v)),fe.mkdir(v,{recursive:!0},N=>{if(N&&N.code!=="EEXIST")return C(N);M(_,E,C)})}function Y(_,E,C,v,N){if(!C.length)return v(null,N);let T=C.shift(),U=ft.join(_,T.name.replace(E,""));D(T,U,j=>{if(j)return v(j,N);Y(_,E,C,v,N+1)})}this.extract=function(_,E,C){let v=_||"";if(typeof _=="string"&&(_=this.entry(_),_?v=_.name:v.length&&v[v.length-1]!=="/"&&(v+="/")),!_||_.isDirectory){let N=[],T=[],U={};for(let j in f)if(Object.prototype.hasOwnProperty.call(f,j)&&j.lastIndexOf(v,0)===0){let ce=j.replace(v,""),ri=f[j];if(ri.isFile&&(N.push(ri),ce=ft.dirname(ce)),ce&&!U[ce]&&ce!=="."){U[ce]=!0;let Ce=ce.split("/").filter(ut=>ut);for(Ce.length&&T.push(Ce);Ce.length>1;){Ce=Ce.slice(0,Ce.length-1);let ut=Ce.join("/");if(U[ut]||ut===".")break;U[ut]=!0,T.push(Ce)}}}T.sort((j,ce)=>j.length-ce.length),T.length?M(E,T,j=>{j?C(j):Y(E,v,N,C,0)}):Y(E,v,N,C,0)}else fe.stat(E,(N,T)=>{T&&T.isDirectory()?D(_,ft.join(E,ft.basename(_.name)),C):D(_,E,C)})},this.close=function(_){o||!e?(o=!0,_&&_()):(o=!0,fe.close(e,E=>{e=null,_&&_(E)}))};let ie=ei.EventEmitter.prototype.emit;this.emit=function(..._){if(!o)return ie.call(this,..._)}};Pe.setFs=function(n){fe=n};Pe.debugLog=(...n)=>{Pe.debug&&console.log(...n)};bh.inherits(Pe,ei.EventEmitter);var De=Symbol("zip");Pe.async=class extends ei.EventEmitter{constructor(e){super();let t=new Pe(e);t.on("entry",r=>this.emit("entry",r)),t.on("extract",(r,i)=>this.emit("extract",r,i)),this[De]=new Promise((r,i)=>{t.on("ready",()=>{t.removeListener("error",i),r(t)}),t.on("error",i)})}get entriesCount(){return this[De].then(e=>e.entriesCount)}get comment(){return this[De].then(e=>e.comment)}async entry(e){return(await this[De]).entry(e)}async entries(){return(await this[De]).entries()}async stream(e){let t=await this[De];return new Promise((r,i)=>{t.stream(e,(s,o)=>{s?i(s):r(o)})})}async entryData(e){let t=await this.stream(e);return new Promise((r,i)=>{let s=[];t.on("data",o=>s.push(o)),t.on("end",()=>{r(Buffer.concat(s))}),t.on("error",o=>{t.removeAllListeners("end"),i(o)})})}async extract(e,t){let r=await this[De];return new Promise((i,s)=>{r.extract(e,t,(o,a)=>{o?s(o):i(a)})})}async close(){let e=await this[De];return new Promise((t,r)=>{e.close(i=>{i?r(i):t()})})}};var Zn=class{read(e){if(e.length!==y.ENDHDR||e.readUInt32LE(0)!==y.ENDSIG)throw new Error("Invalid central directory");this.volumeEntries=e.readUInt16LE(y.ENDSUB),this.totalEntries=e.readUInt16LE(y.ENDTOT),this.size=e.readUInt32LE(y.ENDSIZ),this.offset=e.readUInt32LE(y.ENDOFF),this.commentLength=e.readUInt16LE(y.ENDCOM)}},Yn=class{read(e){if(e.length!==y.ENDL64HDR||e.readUInt32LE(0)!==y.ENDL64SIG)throw new Error("Invalid zip64 central directory locator");this.headerOffset=Fe(e,y.ENDSUB)}},Xn=class{read(e){if(e.length!==y.END64HDR||e.readUInt32LE(0)!==y.END64SIG)throw new Error("Invalid central directory");this.volumeEntries=Fe(e,y.END64SUB),this.totalEntries=Fe(e,y.END64TOT),this.size=Fe(e,y.END64SIZ),this.offset=Fe(e,y.END64OFF)}},Kn=class{readHeader(e,t){if(e.length<t+y.CENHDR||e.readUInt32LE(t)!==y.CENSIG)throw new Error("Invalid entry header");this.verMade=e.readUInt16LE(t+y.CENVEM),this.version=e.readUInt16LE(t+y.CENVER),this.flags=e.readUInt16LE(t+y.CENFLG),this.method=e.readUInt16LE(t+y.CENHOW);let r=e.readUInt16LE(t+y.CENTIM),i=e.readUInt16LE(t+y.CENTIM+2);this.time=Yl(r,i),this.crc=e.readUInt32LE(t+y.CENCRC),this.compressedSize=e.readUInt32LE(t+y.CENSIZ),this.size=e.readUInt32LE(t+y.CENLEN),this.fnameLen=e.readUInt16LE(t+y.CENNAM),this.extraLen=e.readUInt16LE(t+y.CENEXT),this.comLen=e.readUInt16LE(t+y.CENCOM),this.diskStart=e.readUInt16LE(t+y.CENDSK),this.inattr=e.readUInt16LE(t+y.CENATT),this.attr=e.readUInt32LE(t+y.CENATX),this.offset=e.readUInt32LE(t+y.CENOFF)}readDataHeader(e){if(e.readUInt32LE(0)!==y.LOCSIG)throw new Error("Invalid local header");this.version=e.readUInt16LE(y.LOCVER),this.flags=e.readUInt16LE(y.LOCFLG),this.method=e.readUInt16LE(y.LOCHOW);let t=e.readUInt16LE(y.LOCTIM),r=e.readUInt16LE(y.LOCTIM+2);this.time=Yl(t,r),this.crc=e.readUInt32LE(y.LOCCRC)||this.crc;let i=e.readUInt32LE(y.LOCSIZ);i&&i!==y.EF_ZIP64_OR_32&&(this.compressedSize=i);let s=e.readUInt32LE(y.LOCLEN);s&&s!==y.EF_ZIP64_OR_32&&(this.size=s),this.fnameLen=e.readUInt16LE(y.LOCNAM),this.extraLen=e.readUInt16LE(y.LOCEXT)}read(e,t,r){let i=e.slice(t,t+=this.fnameLen);this.name=r?r.decode(new Uint8Array(i)):i.toString("utf8");let s=e[t-1];this.isDirectory=s===47||s===92,this.extraLen&&(this.readExtra(e,t),t+=this.extraLen),this.comment=this.comLen?e.slice(t,t+this.comLen).toString():null}validateName(){if(/\\|^\w+:|^\/|(^|\/)\.\.(\/|$)/.test(this.name))throw new Error("Malicious entry: "+this.name)}readExtra(e,t){let r,i,s=t+this.extraLen;for(;t<s;)r=e.readUInt16LE(t),t+=2,i=e.readUInt16LE(t),t+=2,y.ID_ZIP64===r&&this.parseZip64Extra(e,t,i),t+=i}parseZip64Extra(e,t,r){r>=8&&this.size===y.EF_ZIP64_OR_32&&(this.size=Fe(e,t),t+=8,r-=8),r>=8&&this.compressedSize===y.EF_ZIP64_OR_32&&(this.compressedSize=Fe(e,t),t+=8,r-=8),r>=8&&this.offset===y.EF_ZIP64_OR_32&&(this.offset=Fe(e,t),t+=8,r-=8),r>=4&&this.diskStart===y.EF_ZIP64_OR_16&&(this.diskStart=e.readUInt32LE(t))}get encrypted(){return(this.flags&y.FLG_ENTRY_ENC)===y.FLG_ENTRY_ENC}get isFile(){return!this.isDirectory}},Me=class{constructor(e,t,r,i,s,o){this.fd=e,this.buffer=t,this.offset=r,this.length=i,this.position=s,this.callback=o,this.bytesRead=0,this.waiting=!1}read(e){Pe.debugLog("read",this.position,this.bytesRead,this.length,this.offset),this.waiting=!0;let t;if(e){let r=0;try{r=fe.readSync(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead)}catch(i){t=i}this.readCallback(e,t,t?r:null)}else fe.read(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead,this.readCallback.bind(this,e))}readCallback(e,t,r){if(typeof r=="number"&&(this.bytesRead+=r),t||!r||this.bytesRead===this.length)return this.waiting=!1,this.callback(t,this.bytesRead);this.read(e)}},vr=class{constructor(e){this.position=0,this.buffer=Buffer.alloc(0),this.fd=e,this.fsOp=null}checkOp(){if(this.fsOp&&this.fsOp.waiting)throw new Error("Operation in progress")}read(e,t,r){this.checkOp(),this.buffer.length<t&&(this.buffer=Buffer.alloc(t)),this.position=e,this.fsOp=new Me(this.fd,this.buffer,0,t,this.position,r).read()}expandLeft(e,t){this.checkOp(),this.buffer=Buffer.concat([Buffer.alloc(e),this.buffer]),this.position-=e,this.position<0&&(this.position=0),this.fsOp=new Me(this.fd,this.buffer,0,e,this.position,t).read()}expandRight(e,t){this.checkOp();let r=this.buffer.length;this.buffer=Buffer.concat([this.buffer,Buffer.alloc(e)]),this.fsOp=new Me(this.fd,this.buffer,r,e,this.position+r,t).read()}moveRight(e,t,r){this.checkOp(),r?this.buffer.copy(this.buffer,0,r):r=0,this.position+=r,this.fsOp=new Me(this.fd,this.buffer,this.buffer.length-r,r,this.position+this.buffer.length-r,t).read()}},Jn=class extends Kl.Readable{constructor(e,t,r){super(),this.fd=e,this.offset=t,this.length=r,this.pos=0,this.readCallback=this.readCallback.bind(this)}_read(e){let t=Buffer.alloc(Math.min(e,this.length-this.pos));t.length?fe.read(this.fd,t,0,t.length,this.offset+this.pos,this.readCallback):this.push(null)}readCallback(e,t,r){this.pos+=t,e?(this.emit("error",e),this.push(null)):t?(t!==r.length&&(r=r.slice(0,t)),this.push(r)):this.push(null)}},Qn=class extends Kl.Transform{constructor(e,t,r){super(),this.verify=new xr(t,r),e.on("error",i=>{this.emit("error",i)})}_transform(e,t,r){let i;try{this.verify.data(e)}catch(s){i=s}r(i,e)}},xr=class n{constructor(e,t){this.crc=e,this.size=t,this.state={crc:-1,size:0}}data(e){let t=n.getCrcTable(),r=this.state.crc,i=0,s=e.length;for(;--s>=0;)r=t[(r^e[i++])&255]^r>>>8;if(this.state.crc=r,this.state.size+=e.length,this.state.size>=this.size){let o=Buffer.alloc(4);if(o.writeInt32LE(~this.state.crc&4294967295,0),r=o.readUInt32LE(0),r!==this.crc)throw new Error("Invalid CRC");if(this.state.size!==this.size)throw new Error("Invalid size")}}static getCrcTable(){let e=n.crcTable;if(!e){n.crcTable=e=[];let t=Buffer.alloc(4);for(let r=0;r<256;r++){let i=r;for(let s=8;--s>=0;)(i&1)!==0?i=3988292384^i>>>1:i=i>>>1;i<0&&(t.writeInt32LE(i,0),i=t.readUInt32LE(0)),e[r]=i}}return e}};function Yl(n,e){let t=Xl(n,16),r=Xl(e,16),i={h:parseInt(t.slice(0,5).join(""),2),m:parseInt(t.slice(5,11).join(""),2),s:parseInt(t.slice(11,16).join(""),2)*2,Y:parseInt(r.slice(0,7).join(""),2)+1980,M:parseInt(r.slice(7,11).join(""),2),D:parseInt(r.slice(11,16).join(""),2)},s=[i.Y,i.M,i.D].join("-")+" "+[i.h,i.m,i.s].join(":")+" GMT+0";return new Date(s).getTime()}function Xl(n,e){let t=(n>>>0).toString(2);for(;t.length<e;)t="0"+t;return t.split("")}function Fe(n,e){return n.readUInt32LE(e+4)*4294967296+n.readUInt32LE(e)}Jl.exports=Pe});var Rh={};ha(Rh,{StreamZip:()=>oa.async,WebSocket:()=>jo,ZipFile:()=>sa.ZipFile,convertSourceMap:()=>Nh,decode:()=>fi,diffSequence:()=>ia.default,findUpSync:()=>Ol,minimatch:()=>Z,parseCss:()=>na.default,supportsColor:()=>ra});module.exports=da(Rh);var Nh=G(si());var va=44;var oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xa=new Uint8Array(64),ai=new Uint8Array(128);for(let n=0;n<oi.length;n++){let e=oi.charCodeAt(n);xa[n]=e,ai[e]=n}function ct(n,e){let t=0,r=0,i=0;do{let o=n.next();i=ai[o],t|=(i&31)<<r,r+=5}while(i&32);let s=t&1;return t>>>=1,s&&(t=-2147483648|-t),e+t}function li(n,e){return n.pos>=e?!1:n.peek()!==va}var Mh=1024*16;var Ca=class{constructor(n){this.pos=0,this.buffer=n}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(n){let{buffer:e,pos:t}=this,r=e.indexOf(n,t);return r===-1?e.length:r}};function fi(n){let{length:e}=n,t=new Ca(n),r=[],i=0,s=0,o=0,a=0,l=0;do{let f=t.indexOf(";"),u=[],h=!0,c=0;for(i=0;t.pos<f;){let d;i=ct(t,i),i<c&&(h=!1),c=i,li(t,f)?(s=ct(t,s),o=ct(t,o),a=ct(t,a),li(t,f)?(l=ct(t,l),d=[i,s,o,a,l]):d=[i,s,o,a]):d=[i],u.push(d),t.pos++}h||ba(u),r.push(u),t.pos=f+1}while(t.pos<=e);return r}function ba(n){n.sort(Oa)}function Oa(n,e){return n[0]-e[0]}var na=G(Us());var sc=G(Do(),1),oc=G(lr(),1),lc=G(tt(),1),ac=G(_n(),1),fc=G(En(),1),uc=G(On(),1),Wo=G(cr(),1),cc=G(Go(),1);var jo=Wo.default;var cl=G(rl(),1);var At=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var wc={"[: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]},Dt=n=>n.replace(/[[\]\\-]/g,"\\$&"),Ec=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),nl=n=>n.join(""),il=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=t+1,o=!1,a=!1,l=!1,f=!1,u=t,h="";e:for(;s<n.length;){let p=n.charAt(s);if((p==="!"||p==="^")&&s===t+1){f=!0,s++;continue}if(p==="]"&&o&&!l){u=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[g,[S,w,O]]of Object.entries(wc))if(n.startsWith(g,s)){if(h)return["$.",!1,n.length-t,!0];s+=g.length,O?i.push(S):r.push(S),a=a||w;continue e}}if(l=!1,h){p>h?r.push(Dt(h)+"-"+Dt(p)):p===h&&r.push(Dt(p)),h="",s++;continue}if(n.startsWith("-]",s+1)){r.push(Dt(p+"-")),s+=2;continue}if(n.startsWith("-",s+1)){h=p,s+=2;continue}r.push(Dt(p)),s++}if(u<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,n.length-t,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!f){let p=r[0].length===2?r[0].slice(-1):r[0];return[Ec(p),!1,u-t,!1]}let c="["+(f?"^":"")+nl(r)+"]",d="["+(f?"":"^")+nl(i)+"]";return[r.length&&i.length?"("+c+"|"+d+")":r.length?c:d,a,u-t,!0]};var Ie=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var te,Sc=new Set(["!","?","+","*","@"]),Nn=n=>Sc.has(n),sl=n=>Nn(n.type),vc=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),xc=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Cc=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),ol=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),bc="(?!(?:^|/)\\.\\.?(?:$|/))",dr="(?!\\.)",Oc=new Set(["[","."]),Lc=new Set(["..","."]),Tc=new Set("().*{}+?[]^$\\!"),Ic=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rn="[^/]",ll=Rn+"*?",al=Rn+"+?",qe=class{type;#r;#n;#i=!1;#e=[];#t;#l;#f;#a=!1;#s;#o;#u=!1;constructor(e,t,r={}){this.type=e,e&&(this.#n=!0),this.#t=t,this.#r=this.#t?this.#t.#r:this,this.#s=this.#r===this?r:this.#r.#s,this.#f=this.#r===this?[]:this.#r.#f,e==="!"&&!this.#r.#a&&this.#f.push(this),this.#l=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#o=this.#e.map(e=>String(e)).join("")}#_(){if(this!==this.#r)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#f.pop();){if(e.type!=="!")continue;let t=e,r=t.#t;for(;r;){for(let i=t.#l+1;!r.type&&i<r.#e.length;i++)for(let s of e.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#e[i])}t=r,r=t.#t}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof te&&t.#t===this))throw new Error("invalid part: "+t);this.#e.push(t)}}toJSON(){var t;let e=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#a&&((t=this.#t)==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(this.#r===this)return!0;if(!((t=this.#t)!=null&&t.isStart()))return!1;if(this.#l===0)return!0;let e=this.#t;for(let r=0;r<this.#l;r++){let i=e.#e[r];if(!(i instanceof te&&i.type==="!"))return!1}return!0}isEnd(){var t,r,i;if(this.#r===this||((t=this.#t)==null?void 0:t.type)==="!")return!0;if(!((r=this.#t)!=null&&r.isEnd()))return!1;if(!this.type)return(i=this.#t)==null?void 0:i.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#l===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new te(this.type,e);for(let r of this.#e)t.copyIn(r);return t}static#c(e,t,r,i,s){let o=i.maxExtglobRecursion??2,a=!1,l=!1,f=-1,u=!1;if(t.type===null){let p=r,g="";for(;p<e.length;){let S=e.charAt(p++);if(a||S==="\\"){a=!a,g+=S;continue}if(l){p===f+1?(S==="^"||S==="!")&&(u=!0):S==="]"&&!(p===f+2&&u)&&(l=!1),g+=S;continue}else if(S==="["){l=!0,f=p,u=!1,g+=S;continue}if(!i.noext&&Nn(S)&&e.charAt(p)==="("&&s<=o){t.push(g),g="";let O=new te(S,t);p=te.#c(e,O,p,i,s+1),t.push(O);continue}g+=S}return t.push(g),p}let h=r+1,c=new te(null,t),d=[],m="";for(;h<e.length;){let p=e.charAt(h++);if(a||p==="\\"){a=!a,m+=p;continue}if(l){h===f+1?(p==="^"||p==="!")&&(u=!0):p==="]"&&!(h===f+2&&u)&&(l=!1),m+=p;continue}else if(p==="["){l=!0,f=h,u=!1,m+=p;continue}if(Nn(p)&&e.charAt(h)==="("&&(s<=o||t&&t.#h(p))){let S=t&&t.#h(p)?0:1;c.push(m),m="";let w=new te(p,c);c.push(w),h=te.#c(e,w,h,i,s+S);continue}if(p==="|"){c.push(m),m="",d.push(c),c=new te(null,t);continue}if(p===")")return m===""&&t.#e.length===0&&(t.#u=!0),c.push(m),m="",t.push(...d,c),h;m+=p}return t.type=null,t.#n=void 0,t.#e=[e.substring(r-1)],h}#y(e){return this.#p(e,xc)}#p(e,t=vc){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let r=e.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#h(r.type,t)}#h(e,t=Cc){var r;return!!((r=t.get(this.type))!=null&&r.includes(e))}#w(e,t){let r=e.#e[0],i=new te(null,r,this.options);i.#e.push(""),r.push(i),this.#m(e,t)}#m(e,t){let r=e.#e[0];this.#e.splice(t,1,...r.#e);for(let i of r.#e)typeof i=="object"&&(i.#t=this);this.#o=void 0}#E(e){let t=ol.get(this.type);return!!(t!=null&&t.has(e))}#S(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let t=e.#e[0];return!t||typeof t!="object"||t.type===null?!1:this.#E(t.type)}#v(e){let t=ol.get(this.type),r=e.#e[0],i=t==null?void 0:t.get(r.type);if(!i)return!1;this.#e=r.#e;for(let s of this.#e)typeof s=="object"&&(s.#t=this);this.type=i,this.#o=void 0,this.#u=!1}#d(){if(sl(this)){let e=0,t=!1;do{t=!0;for(let r=0;r<this.#e.length;r++){let i=this.#e[r];typeof i=="object"&&(i.#d(),this.#p(i)?(t=!1,this.#m(i,r)):this.#y(i)?(t=!1,this.#w(i,r)):this.#S(i)&&(t=!1,this.#v(i)))}}while(!t&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#d();this.#o=void 0}static fromGlob(e,t={}){let r=new te(null,void 0,t);return te.#c(e,r,0,t,0),r}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();let e=this.toString(),[t,r,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#s}toRegExpSource(e){var l;let t=e??!!this.#s.dot;if(this.#r===this&&(this.#d(),this.#_()),!sl(this)){let f=this.isStart()&&this.isEnd(),u=this.#e.map(m=>{let[p,g,S,w]=typeof m=="string"?te.#x(m,this.#n,f):m.toRegExpSource(e);return this.#n=this.#n||S,this.#i=this.#i||w,p}).join(""),h="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Lc.has(this.#e[0]))){let p=Oc,g=t&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),S=!t&&!e&&p.has(u.charAt(0));h=g?bc:S?dr:""}let c="";return this.isEnd()&&this.#r.#a&&((l=this.#t)==null?void 0:l.type)==="!"&&(c="(?:$|\\/)"),[h+u+c,Ie(u),this.#n=!!this.#n,this.#i]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#g(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let f=this.toString(),u=this;return u.#e=[f],u.type=null,u.#n=void 0,[f,Ie(this.toString()),!1,!1]}let o=!r||e||t||!dr?"":this.#g(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#u)a=(this.isStart()&&!t?dr:"")+al;else{let f=this.type==="!"?"))"+(this.isStart()&&!t&&!e?dr:"")+ll+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+f}return[a,Ie(s),this.#n=!!this.#n,this.#i]}#g(e){return this.#e.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=t.toRegExpSource(e);return this.#i=this.#i||o,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#x(e,t,r=!1){let i=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let f=e.charAt(l);if(i){i=!1,s+=(Tc.has(f)?"\\":"")+f,a=!1;continue}if(f==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(f==="["){let[u,h,c,d]=il(e,l);if(c){s+=u,o=o||h,l+=c-1,t=t||d,a=!1;continue}}if(f==="*"){if(a)continue;a=!0,s+=r&&/^[*]+$/.test(e)?al:ll,t=!0;continue}else a=!1;if(f==="?"){s+=Rn,t=!0;continue}s+=Ic(f)}return[s,Ie(e),!!t,o]}};te=qe;var An=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var Z=(n,e,t={})=>(At(e),!t.nocomment&&e.charAt(0)==="#"?!1:new lt(e,t).match(n)),Nc=/^\*+([^+@!?\*\[\(]*)$/,Rc=n=>e=>!e.startsWith(".")&&e.endsWith(n),Ac=n=>e=>e.endsWith(n),Dc=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),Mc=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Fc=/^\*+\.\*+$/,Pc=n=>!n.startsWith(".")&&n.includes("."),Uc=n=>n!=="."&&n!==".."&&n.includes("."),kc=/^\.\*+$/,Bc=n=>n!=="."&&n!==".."&&n.startsWith("."),zc=/^\*+$/,Gc=n=>n.length!==0&&!n.startsWith("."),Wc=n=>n.length!==0&&n!=="."&&n!=="..",jc=/^\?+([^+@!?\*\[\(]*)?$/,qc=([n,e=""])=>{let t=hl([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},$c=([n,e=""])=>{let t=dl([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},Vc=([n,e=""])=>{let t=dl([n]);return e?r=>t(r)&&r.endsWith(e):t},Hc=([n,e=""])=>{let t=hl([n]);return e?r=>t(r)&&r.endsWith(e):t},hl=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},dl=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},pl=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",fl={win32:{sep:"\\"},posix:{sep:"/"}},Zc=pl==="win32"?fl.win32.sep:fl.posix.sep;Z.sep=Zc;var K=Symbol("globstar **");Z.GLOBSTAR=K;var Yc="[^/]",Xc=Yc+"*?",Kc="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Jc="(?:(?!(?:\\/|^)\\.).)*?",Qc=(n,e={})=>t=>Z(t,n,e);Z.filter=Qc;var ae=(n,e={})=>Object.assign({},n,e),eh=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return Z;let e=Z;return Object.assign((r,i,s={})=>e(r,i,ae(n,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,ae(n,s))}static defaults(i){return e.defaults(ae(n,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,ae(n,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ae(n,s))}},unescape:(r,i={})=>e.unescape(r,ae(n,i)),escape:(r,i={})=>e.escape(r,ae(n,i)),filter:(r,i={})=>e.filter(r,ae(n,i)),defaults:r=>e.defaults(ae(n,r)),makeRe:(r,i={})=>e.makeRe(r,ae(n,i)),braceExpand:(r,i={})=>e.braceExpand(r,ae(n,i)),match:(r,i,s={})=>e.match(r,i,ae(n,s)),sep:e.sep,GLOBSTAR:K})};Z.defaults=eh;var ml=(n,e={})=>(At(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,cl.default)(n));Z.braceExpand=ml;var th=(n,e={})=>new lt(n,e).makeRe();Z.makeRe=th;var rh=(n,e,t={})=>{let r=new lt(e,t);return n=n.filter(i=>r.match(i)),r.options.nonull&&!n.length&&n.push(e),n};Z.match=rh;var ul=/[?*]|[+@!]\(.*?\)|\[|\]/,nh=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){At(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||pl,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!ul.test(s[2]))&&!ul.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(f)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let o=i;for(;r[o+1]==="**";)o++;o>i&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],f=r[i+3];if(a!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;t=!0,r.splice(i,1);let u=r.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(t=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let o=r[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<t.length;)if(e[i]===t[s])o.push(a==="b"?t[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&t[s]===e[i+1])o.push(e[i]),i++;else if(r&&t[s]==="**"&&e[i]===t[s+1])o.push(t[s]),s++;else if(e[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(t[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(t[s]),i++,s++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),f=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!f&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),h=l?3:a?0:void 0,c=u?3:f?0:void 0;if(typeof h=="number"&&typeof c=="number"){let[d,m]=[e[h],t[c]];d.toLowerCase()===m.toLowerCase()&&(t[c]=d,s=c,i=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(K)?this.#r(e,t,r,i,s):this.#i(e,t,r,i,s)}#r(e,t,r,i,s){let o=t.indexOf(K,s),a=t.lastIndexOf(K),[l,f,u]=r?[t.slice(s,o),t.slice(o+1),[]]:[t.slice(s,o),t.slice(o+1,a),t.slice(a+1)];if(l.length){let w=e.slice(i,i+l.length);if(!this.#i(w,l,r,0,0))return!1;i+=l.length}let h=0;if(u.length){if(u.length+i>e.length)return!1;let w=e.length-u.length;if(this.#i(e,u,r,w,0))h=u.length;else{if(e[e.length-1]!==""||i+u.length===e.length||(w--,!this.#i(e,u,r,w,0)))return!1;h=u.length+1}}if(!f.length){let w=!!h;for(let O=i;O<e.length-h;O++){let L=String(e[O]);if(w=!0,L==="."||L===".."||!this.options.dot&&L.startsWith("."))return!1}return r||w}let c=[[[],0]],d=c[0],m=0,p=[0];for(let w of f)w===K?(p.push(m),d=[[],0],c.push(d)):(d[0].push(w),m++);let g=c.length-1,S=e.length-h;for(let w of c)w[1]=S-(p[g--]+w[0].length);return!!this.#n(e,c,i,0,r,0,!!h)}#n(e,t,r,i,s,o,a){let l=t[i];if(!l){for(let h=r;h<e.length;h++){a=!0;let c=e[h];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1}return a}let[f,u]=l;for(;r<=u;){if(this.#i(e.slice(0,r+f.length),f,s,r,0)&&o<this.maxGlobstarRecursion){let d=this.#n(e,t,r+f.length,i+1,s,o+1,a);if(d!==!1)return d}let c=e[r];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1;r++}return s||null}#i(e,t,r,i,s){let o,a,l,f;for(o=i,a=s,f=e.length,l=t.length;o<f&&a<l;o++,a++){this.debug("matchOne loop");let u=t[a],h=e[o];if(this.debug(t,u,h),u===!1||u===K)return!1;let c;if(typeof u=="string"?(c=h===u,this.debug("string match",u,h,c)):(c=u.test(h),this.debug("pattern match",u,h,c)),!c)return!1}if(o===f&&a===l)return!0;if(o===f)return r;if(a===l)return o===f-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return ml(this.pattern,this.options)}parse(e){At(e);let t=this.options;if(e==="**")return K;if(e==="")return"";let r,i=null;(r=e.match(zc))?i=t.dot?Wc:Gc:(r=e.match(Nc))?i=(t.nocase?t.dot?Mc:Dc:t.dot?Ac:Rc)(r[1]):(r=e.match(jc))?i=(t.nocase?t.dot?$c:qc:t.dot?Vc:Hc)(r):(r=e.match(Fc))?i=t.dot?Uc:Pc:(r=e.match(kc))&&(i=Bc);let s=qe.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?Xc:t.dot?Kc:Jc,i=new Set(t.nocase?["i"]:[]),s=e.map(l=>{let f=l.map(u=>{if(u instanceof RegExp)for(let h of u.flags.split(""))i.add(h);return typeof u=="string"?nh(u):u===K?K:u._src});return f.forEach((u,h)=>{let c=f[h+1],d=f[h-1];u!==K||d===K||(d===void 0?c!==void 0&&c!==K?f[h+1]="(?:\\/|"+r+"\\/)?"+c:f[h]=r:c===void 0?f[h-1]=d+"(?:\\/|"+r+")?":c!==K&&(f[h-1]=d+"(?:\\/|\\/"+r+"\\/)"+c,f[h+1]=K))}),f.filter(u=>u!==K).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let l=s[a],f=i;if(r.matchBase&&l.length===1&&(f=[o]),this.matchOne(f,l,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return Z.defaults(e).Minimatch}};Z.AST=qe;Z.Minimatch=lt;Z.escape=An;Z.unescape=Ie;var ia=G(wl());var at=G(require("node:path"),1);var El=G(require("node:process"),1),Sl=G(require("node:path"),1),pr=G(require("node:fs"),1),vl=require("node:url");var xl={directory:"isDirectory",file:"isFile"};function ah(n){if(!(n==="both"||Object.hasOwn(xl,n)))throw new Error(`Invalid type specified: ${n}`)}var fh=(n,e)=>n==="both"?e.isFile()||e.isDirectory():e[xl[n]](),uh=n=>n instanceof URL?(0,vl.fileURLToPath)(n):n;function Pn(n,{cwd:e=El.default.cwd(),type:t="file",allowSymlinks:r=!0}={}){ah(t),e=uh(e);let i=r?pr.default.statSync:pr.default.lstatSync;for(let s of n)try{let o=i(Sl.default.resolve(e,s),{throwIfNoEntry:!1});if(!o)continue;if(fh(t,o))return s}catch{}}var Cl=require("node:util"),Un=require("node:child_process");var bl=require("node:url"),op=(0,Cl.promisify)(Un.execFile);function kn(n){return n instanceof URL?(0,bl.fileURLToPath)(n):n}var lp=10*1024*1024;var ch=Symbol("findUpStop");function hh(n,e={}){let t=at.default.resolve(kn(e.cwd)??""),{root:r}=at.default.parse(t),i=at.default.resolve(t,kn(e.stopAt)??r),s=e.limit??Number.POSITIVE_INFINITY,o=[n].flat(),a=f=>{if(typeof n!="function")return Pn(o,f);let u=n(f.cwd);return typeof u=="string"?Pn([u],f):u},l=[];for(;;){let f=a({...e,cwd:t});if(f===ch||(f&&l.push(at.default.resolve(t,f)),t===i||l.length>=s))break;t=at.default.dirname(t)}return l}function Ol(n,e={}){return hh(n,{...e,limit:1})[0]}var sa=G(Hl()),oa=G(Ql());var br=G(require("node:process"),1),ta=G(require("node:os"),1),ti=G(require("node:tty"),1);function ue(n,e=globalThis.Deno?globalThis.Deno.args:br.default.argv){let t=n.startsWith("-")?"":n.length===1?"-":"--",r=e.indexOf(t+n),i=e.indexOf("--");return r!==-1&&(i===-1||r<i)}var{env:B}=br.default,Cr;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?Cr=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(Cr=1);function Oh(){if(!("FORCE_COLOR"in B))return;if(B.FORCE_COLOR==="true")return 1;if(B.FORCE_COLOR==="false")return 0;if(B.FORCE_COLOR.length===0)return 1;let n=Math.min(Number.parseInt(B.FORCE_COLOR,10),3);if([0,1,2,3].includes(n))return n}function Lh(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function Th(n,{streamIsTTY:e,sniffFlags:t=!0}={}){let r=Oh();r!==void 0&&(Cr=r);let i=t?Cr:r;if(i===0)return 0;if(t){if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2}if("TF_BUILD"in B&&"AGENT_NAME"in B)return 1;if(n&&!e&&i===void 0)return 0;let s=i||0;if(B.TERM==="dumb")return s;if(br.default.platform==="win32"){let o=ta.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in B)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in B)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in B)||B.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in B)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B.TEAMCITY_VERSION)?1:0;if(B.COLORTERM==="truecolor"||B.TERM==="xterm-kitty"||B.TERM==="xterm-ghostty"||B.TERM==="wezterm")return 3;if("TERM_PROGRAM"in B){let o=Number.parseInt((B.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(B.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B.TERM)||"COLORTERM"in B?1:s}function ea(n,e={}){let t=Th(n,{streamIsTTY:n&&n.isTTY,...e});return Lh(t)}var Ih={stdout:ea({isTTY:ti.default.isatty(1)}),stderr:ea({isTTY:ti.default.isatty(2)})},ra=Ih;0&&(module.exports={StreamZip,WebSocket,ZipFile,convertSourceMap,decode,diffSequence,findUpSync,minimatch,parseCss,supportsColor});
33
+ `+t)}function qe(n,e,t,r,i,s){if(n.listenerCount("wsClientError")){let o=new Error(i);Error.captureStackTrace(o,qe),n.emit("wsClientError",o,t,e)}else It(t,r,i,s)}});var gl=b(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=bh;var Mt="diff-sequences",J=0,Pt=(n,e,t,r,i)=>{let s=0;for(;n<e&&t<r&&i(n,t);)n+=1,t+=1,s+=1;return s},Ft=(n,e,t,r,i)=>{let s=0;for(;n<=e&&t<=r&&i(e,r);)e-=1,r-=1,s+=1;return s},Mn=(n,e,t,r,i,s,o)=>{let a=0,l=-n,f=s[a],u=f;s[a]+=Pt(f+1,e,r+f-l+1,t,i);let h=n<o?n:o;for(a+=1,l+=2;a<=h;a+=1,l+=2){if(a!==n&&u<s[a])f=s[a];else if(f=u+1,e<=f)return a-1;u=s[a],s[a]=f+Pt(f+1,e,r+f-l+1,t,i)}return o},dl=(n,e,t,r,i,s,o)=>{let a=0,l=n,f=s[a],u=f;s[a]-=Ft(e,f-1,t,r+f-l-1,i);let h=n<o?n:o;for(a+=1,l-=2;a<=h;a+=1,l-=2){if(a!==n&&s[a]<u)f=s[a];else if(f=u-1,f<e)return a-1;u=s[a],s[a]=f-Ft(e,f-1,t,r+f-l-1,i)}return o},xh=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=r-e,c=t-e,m=i-r-c,p=-m-(n-1),g=-m+(n-1),w=J,S=n<a?n:a;for(let O=0,L=-n;O<=S;O+=1,L+=2){let R=O===0||O!==n&&w<o[O],I=R?o[O]:w,z=R?I:I+1,Z=h+z-L,D=Pt(z+1,t,Z+1,i,s),G=z+D;if(w=o[O],o[O]=G,p<=L&&L<=g){let ee=(n-1-(L+m))/2;if(ee<=f&&l[ee]-1<=G){let ie=h+I-(R?L+1:L-1),_=Ft(e,I,r,ie,s),E=I-_,C=ie-_,x=E+1,N=C+1;u.nChangePreceding=n-1,n-1===x+N-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=x,u.bEndPreceding=N),u.nCommonPreceding=_,_!==0&&(u.aCommonPreceding=x,u.bCommonPreceding=N),u.nCommonFollowing=D,D!==0&&(u.aCommonFollowing=z+1,u.bCommonFollowing=Z+1);let T=G+1,F=Z+D+1;return u.nChangeFollowing=n-1,n-1===t+i-T-F?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=T,u.bStartFollowing=F),!0}}}return!1},vh=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=i-t,c=t-e,m=i-r-c,p=m-n,g=m+n,w=J,S=n<f?n:f;for(let O=0,L=n;O<=S;O+=1,L-=2){let R=O===0||O!==n&&l[O]<w,I=R?l[O]:w,z=R?I:I-1,Z=h+z-L,D=Ft(e,z-1,r,Z-1,s),G=z-D;if(w=l[O],l[O]=G,p<=L&&L<=g){let ee=(n+(L-m))/2;if(ee<=a&&G-1<=o[ee]){let ie=Z-D;if(u.nChangePreceding=n,n===G+ie-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=G,u.bEndPreceding=ie),u.nCommonPreceding=D,D!==0&&(u.aCommonPreceding=G,u.bCommonPreceding=ie),u.nChangeFollowing=n-1,n===1)u.nCommonFollowing=0,u.aStartFollowing=t,u.bStartFollowing=i;else{let _=h+I-(R?L-1:L+1),E=Pt(I,t,_,i,s);u.nCommonFollowing=E,E!==0&&(u.aCommonFollowing=I,u.bCommonFollowing=_);let C=I+E,x=_+E;n-1===t+i-C-x?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=C,u.bStartFollowing=x)}return!0}}}return!1},Ch=(n,e,t,r,i,s,o,a,l)=>{let f=r-e,u=i-t,h=t-e,c=i-r,d=c-h,m=h,p=h;if(o[0]=e-1,a[0]=t,d%2===0){let g=(n||d)/2,w=(h+c)/2;for(let S=1;S<=w;S+=1)if(m=Mn(S,t,i,f,s,o,m),S<g)p=dl(S,e,r,u,s,a,p);else if(vh(S,e,t,r,i,s,o,m,a,p,l))return}else{let g=((n||d)+1)/2,w=(h+c+1)/2,S=1;for(m=Mn(S,t,i,f,s,o,m),S+=1;S<=w;S+=1)if(p=dl(S-1,e,r,u,s,a,p),S<g)m=Mn(S,t,i,f,s,o,m);else if(xh(S,e,t,r,i,s,o,m,a,p,l))return}throw new Error(`${Mt}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${i}`)},Pn=(n,e,t,r,i,s,o,a,l,f)=>{if(i-r<t-e){if(s=!s,s&&o.length===1){let{foundSubsequence:G,isCommon:ee}=o[0];o[1]={foundSubsequence:(ie,_,E)=>{G(ie,E,_)},isCommon:(ie,_)=>ee(_,ie)}}let Z=e,D=t;e=r,t=i,r=Z,i=D}let{foundSubsequence:u,isCommon:h}=o[s?1:0];Ch(n,e,t,r,i,h,a,l,f);let{nChangePreceding:c,aEndPreceding:d,bEndPreceding:m,nCommonPreceding:p,aCommonPreceding:g,bCommonPreceding:w,nCommonFollowing:S,aCommonFollowing:O,bCommonFollowing:L,nChangeFollowing:R,aStartFollowing:I,bStartFollowing:z}=f;e<d&&r<m&&Pn(c,e,d,r,m,s,o,a,l,f),p!==0&&u(p,g,w),S!==0&&u(S,O,L),I<t&&z<i&&Pn(R,I,t,z,i,s,o,a,l,f)},pl=(n,e)=>{if(typeof e!="number")throw new TypeError(`${Mt}: ${n} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${Mt}: ${n} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${Mt}: ${n} value ${e} is a negative integer`)},ml=(n,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${Mt}: ${n} typeof ${t} is not a function`)};function bh(n,e,t,r){pl("aLength",n),pl("bLength",e),ml("isCommon",t),ml("foundSubsequence",r);let i=Pt(0,n,0,e,t);if(i!==0&&r(i,0,0),n!==i||e!==i){let s=i,o=i,a=Ft(s,n-1,o,e-1,t),l=n-a,f=e-a,u=i+a;n!==u&&e!==u&&Pn(0,s,l,o,f,!1,[{foundSubsequence:r,isCommon:t}],[J],[J],{aCommonFollowing:J,aCommonPreceding:J,aEndPreceding:J,aStartFollowing:J,bCommonFollowing:J,bCommonPreceding:J,bEndPreceding:J,bStartFollowing:J,nChangeFollowing:J,nChangePreceding:J,nCommonFollowing:J,nCommonPreceding:J}),a!==0&&r(a,l,f)}}});var Ol=b((Mp,bl)=>{"use strict";function Rh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ah=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function Cl(n){if(Buffer.isBuffer(n))return n;if(typeof n=="number")return Buffer.alloc(n);if(typeof n=="string")return Buffer.from(n);throw new Error("input must be buffer, number, or string, received "+typeof n)}function Dh(n){let e=Cl(4);return e.writeInt32BE(n,0),e}function zn(n,e){n=Cl(n),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let t=~~e^-1;for(var r=0;r<n.length;r++)t=Ah[(t^n[r])&255]^t>>>8;return t^-1}function Gn(){return Dh(zn.apply(null,arguments))}Gn.signed=function(){return zn.apply(null,arguments)};Gn.unsigned=function(){return zn.apply(null,arguments)>>>0};var Mh=Gn,Ph=Rh(Mh);bl.exports=Ph});var jl=b(Zn=>{var Ll=require("fs"),Er=require("stream").Transform,Il=require("stream").PassThrough,Rl=require("zlib"),Vn=require("util"),Fh=require("events").EventEmitter,kh=require("events").errorMonitor,Al=Ol();Zn.ZipFile=Ae;Zn.dateToDosDateTime=ql;Vn.inherits(Ae,Fh);function Ae(){this.outputStream=new Il,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(kh,function(){this.errored=!0})}Ae.prototype.addFile=function(n,e,t){var r=this;if(e=xr(e,!1),t==null&&(t={}),!Sr(r)){var i=new A(e,!1,t);r.entries.push(i),Ll.stat(n,function(s,o){if(s)return r.emit("error",s);if(!o.isFile())return r.emit("error",new Error("not a file: "+n));i.uncompressedSize=o.size,t.mtime==null&&i.setLastModDate(o.mtime),t.mode==null&&i.setFileAttributesMode(o.mode),i.setFileDataPumpFunction(function(){var a=Ll.createReadStream(n);i.state=A.FILE_DATA_IN_PROGRESS,a.on("error",function(l){r.emit("error",l)}),Dl(r,i,a)}),Re(r)})}};Ae.prototype.addReadStream=function(n,e,t){this.addReadStreamLazy(e,t,function(r){r(null,n)})};Ae.prototype.addReadStreamLazy=function(n,e,t){var r=this;if(typeof e=="function"&&(t=e,e=null),e==null&&(e={}),n=xr(n,!1),!Sr(r)){var i=new A(n,!1,e);r.entries.push(i),i.setFileDataPumpFunction(function(){i.state=A.FILE_DATA_IN_PROGRESS,t(function(s,o){if(s)return r.emit("error",s);Dl(r,i,o)})}),Re(r)}};Ae.prototype.addBuffer=function(n,e,t){var r=this;if(e=xr(e,!1),n.length>1073741823)throw new Error("buffer too large: "+n.length+" > 1073741823");if(t==null&&(t={}),t.size!=null)throw new Error("options.size not allowed");if(Sr(r))return;var i=new A(e,!1,t);i.uncompressedSize=n.length,i.crc32=Al.unsigned(n),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?s(n):Rl.deflateRaw(n,{level:i.compressionLevel},function(o,a){s(a)});function s(o){i.compressedSize=o.length,i.setFileDataPumpFunction(function(){$e(r,o),$e(r,i.getDataDescriptor()),i.state=A.FILE_DATA_DONE,setImmediate(function(){Re(r)})}),Re(r)}};Ae.prototype.addEmptyDirectory=function(n,e){var t=this;if(n=xr(n,!0),e==null&&(e={}),e.size!=null)throw new Error("options.size not allowed");if(e.compress!=null)throw new Error("options.compress not allowed");if(e.compressionLevel!=null)throw new Error("options.compressionLevel not allowed");if(!Sr(t)){var r=new A(n,!0,e);t.entries.push(r),r.setFileDataPumpFunction(function(){$e(t,r.getDataDescriptor()),r.state=A.FILE_DATA_DONE,Re(t)}),Re(t)}};var Uh=Ie([80,75,5,6]);Ae.prototype.end=function(n,e){if(typeof n=="function"&&(e=n,n=null),n==null&&(n={}),!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=e,this.forceZip64Eocd=!!n.forceZip64Format,n.comment){if(typeof n.comment=="string"?this.comment=Wh(n.comment):this.comment=n.comment,this.comment.length>65535)throw new Error("comment is too large");if(kt(this.comment,Uh))throw new Error("comment contains end of central directory record signature")}else this.comment=Ut;Re(this)}};function $e(n,e){n.outputStream.write(e),n.outputStreamCursor+=e.length}function Dl(n,e,t){var r=new Hn,i=new wr,s=e.compressionLevel!==0?new Rl.DeflateRaw({level:e.compressionLevel}):new Il,o=new wr;t.pipe(r).pipe(i).pipe(s).pipe(o).pipe(n.outputStream,{end:!1}),o.on("end",function(){if(e.crc32=r.crc32,e.uncompressedSize==null)e.uncompressedSize=i.byteCount;else if(e.uncompressedSize!==i.byteCount)return n.emit("error",new Error("file data stream has unexpected number of bytes"));e.compressedSize=o.byteCount,n.outputStreamCursor+=e.compressedSize,$e(n,e.getDataDescriptor()),e.state=A.FILE_DATA_DONE,Re(n)})}function Bh(n){if(n.compress!=null&&n.compressionLevel!=null&&!!n.compress!=!!n.compressionLevel)throw new Error("conflicting settings for compress and compressionLevel");return n.compressionLevel!=null?n.compressionLevel:n.compress===!1?0:6}function Re(n){if(n.allDone||n.errored)return;if(n.ended&&n.calculatedTotalSizeCallback!=null){var e=zh(n);e!=null&&(n.calculatedTotalSizeCallback(e),n.calculatedTotalSizeCallback=null)}var t=r();function r(){for(var s=0;s<n.entries.length;s++){var o=n.entries[s];if(o.state<A.FILE_DATA_DONE)return o}return null}if(t!=null){if(t.state<A.READY_TO_PUMP_FILE_DATA||t.state===A.FILE_DATA_IN_PROGRESS)return;t.relativeOffsetOfLocalHeader=n.outputStreamCursor;var i=t.getLocalFileHeader();$e(n,i),t.doFileDataPump()}else n.ended&&(n.offsetOfStartOfCentralDirectory=n.outputStreamCursor,n.entries.forEach(function(s){var o=s.getCentralDirectoryRecord();$e(n,o)}),$e(n,Gh(n)),n.outputStream.end(),n.allDone=!0)}function zh(n){for(var e=0,t=0,r=0;r<n.entries.length;r++){var i=n.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=A.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=e;var s=i.useZip64Format();e+=Ml+i.utf8FileName.length,e+=i.uncompressedSize,i.crcAndFileSizeKnown||(s?e+=Gl:e+=zl),t+=Wl+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(t+=qn),s&&(t+=jn)}var o=0;return(n.forceZip64Eocd||n.entries.length>=65535||t>=65535||e>=4294967295)&&(o+=_r+Wn),o+=yr+n.comment.length,e+t+o}function Sr(n){if(n.ended)throw new Error("cannot add entries after calling end()");return!!n.errored}var _r=56,Wn=20,yr=22;function Gh(n,e){var t=!1,r=n.entries.length;(n.forceZip64Eocd||n.entries.length>=65535)&&(r=65535,t=!0);var i=n.outputStreamCursor-n.offsetOfStartOfCentralDirectory,s=i;(n.forceZip64Eocd||i>=4294967295)&&(s=4294967295,t=!0);var o=n.offsetOfStartOfCentralDirectory;if((n.forceZip64Eocd||n.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,t=!0),e)return t?_r+Wn+yr:yr;var a=Q(yr+n.comment.length);if(a.writeUInt32LE(101010256,0),a.writeUInt16LE(0,4),a.writeUInt16LE(0,6),a.writeUInt16LE(r,8),a.writeUInt16LE(r,10),a.writeUInt32LE(s,12),a.writeUInt32LE(o,16),a.writeUInt16LE(n.comment.length,20),n.comment.copy(a,22),!t)return a;var l=Q(_r);l.writeUInt32LE(101075792,0),me(l,_r-12,4),l.writeUInt16LE(kl,12),l.writeUInt16LE(Fl,14),l.writeUInt32LE(0,16),l.writeUInt32LE(0,20),me(l,n.entries.length,24),me(l,n.entries.length,32),me(l,i,40),me(l,n.offsetOfStartOfCentralDirectory,48);var f=Q(Wn);return f.writeUInt32LE(117853008,0),f.writeUInt32LE(0,4),me(f,n.outputStreamCursor,8),f.writeUInt32LE(1,16),Buffer.concat([l,f,a])}function xr(n,e){if(n==="")throw new Error("empty metadataPath");if(n=n.replace(/\\/g,"/"),/^[a-zA-Z]:/.test(n)||/^\//.test(n))throw new Error("absolute path: "+n);if(n.split("/").indexOf("..")!==-1)throw new Error("invalid relative path: "+n);var t=/\/$/.test(n);if(e)t||(n+="/");else if(t)throw new Error("file path cannot end with '/': "+n);return n}var Ut=Q(0);function A(n,e,t){if(this.utf8FileName=Ie(n),this.utf8FileName.length>65535)throw new Error("utf8 file name too long. "+utf8FileName.length+" > 65535");if(this.isDirectory=e,this.state=A.WAITING_FOR_METADATA,this.setLastModDate(t.mtime!=null?t.mtime:new Date),this.forceDosTimestamp=!!t.forceDosTimestamp,t.mode!=null?this.setFileAttributesMode(t.mode):this.setFileAttributesMode(e?16893:33204),e?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,t.size!=null&&(this.uncompressedSize=t.size)),e?this.compressionLevel=0:this.compressionLevel=Bh(t),this.forceZip64Format=!!t.forceZip64Format,t.fileComment){if(typeof t.fileComment=="string"?this.fileComment=Ie(t.fileComment,"utf-8"):this.fileComment=t.fileComment,this.fileComment.length>65535)throw new Error("fileComment is too large")}else this.fileComment=Ut}A.WAITING_FOR_METADATA=0;A.READY_TO_PUMP_FILE_DATA=1;A.FILE_DATA_IN_PROGRESS=2;A.FILE_DATA_DONE=3;A.prototype.setLastModDate=function(n){this.mtime=n;var e=ql(n);this.lastModFileTime=e.time,this.lastModFileDate=e.date};A.prototype.setFileAttributesMode=function(n){if((n&65535)!==n)throw new Error("invalid mode. expected: 0 <= "+n+" <= 65535");this.externalFileAttributes=n<<16>>>0};A.prototype.setFileDataPumpFunction=function(n){this.doFileDataPump=n,this.state=A.READY_TO_PUMP_FILE_DATA};A.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var Ml=30,Pl=20,Fl=45,kl=831,Ul=2048,Bl=8;A.prototype.getLocalFileHeader=function(){var n=0,e=0,t=0;this.crcAndFileSizeKnown&&(n=this.crc32,e=this.compressedSize,t=this.uncompressedSize);var r=Q(Ml),i=Ul;return this.crcAndFileSizeKnown||(i|=Bl),r.writeUInt32LE(67324752,0),r.writeUInt16LE(Pl,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(n,14),r.writeUInt32LE(e,18),r.writeUInt32LE(t,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var zl=16,Gl=24;A.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return Ut;if(this.useZip64Format()){var n=Q(Gl);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),me(n,this.compressedSize,8),me(n,this.uncompressedSize,16),n}else{var n=Q(zl);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),n.writeUInt32LE(this.compressedSize,8),n.writeUInt32LE(this.uncompressedSize,12),n}};var Wl=46,qn=9,jn=28;A.prototype.getCentralDirectoryRecord=function(){var n=Q(Wl),e=Ul;this.crcAndFileSizeKnown||(e|=Bl);var t=Ut;if(!this.forceDosTimestamp){t=Q(qn),t.writeUInt16LE(21589,0),t.writeUInt16LE(qn-4,2);var r=1,i=2;t.writeUInt8(r|i,4);var s=Math.floor(this.mtime.getTime()/1e3);s<-2147483648&&(s=-2147483648),s>2147483647&&(s=2147483647),t.writeUInt32LE(s,5)}var o=this.compressedSize,a=this.uncompressedSize,l=this.relativeOffsetOfLocalHeader,f=Pl,u=Ut;return this.useZip64Format()&&(o=4294967295,a=4294967295,l=4294967295,f=Fl,u=Q(jn),u.writeUInt16LE(1,0),u.writeUInt16LE(jn-4,2),me(u,this.uncompressedSize,4),me(u,this.compressedSize,12),me(u,this.relativeOffsetOfLocalHeader,20)),n.writeUInt32LE(33639248,0),n.writeUInt16LE(kl,4),n.writeUInt16LE(f,6),n.writeUInt16LE(e,8),n.writeUInt16LE(this.getCompressionMethod(),10),n.writeUInt16LE(this.lastModFileTime,12),n.writeUInt16LE(this.lastModFileDate,14),n.writeUInt32LE(this.crc32,16),n.writeUInt32LE(o,20),n.writeUInt32LE(a,24),n.writeUInt16LE(this.utf8FileName.length,28),n.writeUInt16LE(t.length+u.length,30),n.writeUInt16LE(this.fileComment.length,32),n.writeUInt16LE(0,34),n.writeUInt16LE(0,36),n.writeUInt32LE(this.externalFileAttributes,38),n.writeUInt32LE(l,42),Buffer.concat([n,this.utf8FileName,t,u,this.fileComment])};A.prototype.getCompressionMethod=function(){var n=0,e=8;return this.compressionLevel===0?n:e};var Tl=new Date(1980,0,1),Nl=new Date(2107,11,31,23,59,58);function ql(n){n<Tl?n=Tl:n>Nl&&(n=Nl);var e=0;e|=n.getDate()&31,e|=(n.getMonth()+1&15)<<5,e|=(n.getFullYear()-1980&127)<<9;var t=0;return t|=Math.floor(n.getSeconds()/2),t|=(n.getMinutes()&63)<<5,t|=(n.getHours()&31)<<11,{date:e,time:t}}function me(n,e,t){var r=Math.floor(e/4294967296),i=e%4294967296;n.writeUInt32LE(i,t),n.writeUInt32LE(r,t+4)}Vn.inherits(wr,Er);function wr(n){Er.call(this,n),this.byteCount=0}wr.prototype._transform=function(n,e,t){this.byteCount+=n.length,t(null,n)};Vn.inherits(Hn,Er);function Hn(n){Er.call(this,n),this.crc32=0}Hn.prototype._transform=function(n,e,t){this.crc32=Al.unsigned(n,this.crc32),t(null,n)};var $n="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";if($n.length!==256)throw new Error("assertion failure");var gr=null;function Wh(n){if(/^[\x20-\x7e]*$/.test(n))return Ie(n,"utf-8");if(gr==null){gr={};for(var e=0;e<$n.length;e++)gr[$n[e]]=e}for(var t=Q(n.length),e=0;e<n.length;e++){var r=gr[n[e]];if(r==null)throw new Error("character not encodable in CP437: "+JSON.stringify(n[e]));t[e]=r}return t}function Q(n){Q=e;try{return Q(n)}catch{return Q=t,Q(n)}function e(r){return Buffer.allocUnsafe(r)}function t(r){return new Buffer(r)}}function Ie(n,e){Ie=t;try{return Ie(n,e)}catch{return Ie=r,Ie(n,e)}function t(i,s){return Buffer.from(i,s)}function r(i,s){return new Buffer(i,s)}}function kt(n,e){kt=t;try{return kt(n,e)}catch{return kt=r,kt(n,e)}function t(i,s){return i.includes(s)}function r(i,s){for(var o=0;o<=i.length-s.length;o++)for(var a=0;;a++){if(a===s.length)return!0;if(i[o+a]!==s[a])break}return!1}}});var Xl=b((kp,Yl)=>{var fe=require("fs"),qh=require("util"),ft=require("path"),ti=require("events"),$l=require("zlib"),Zl=require("stream"),y={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSIGFIRST:80,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,MAXFILECOMMENT:65535,ENDL64HDR:20,ENDL64SIG:117853008,ENDL64SIGFIRST:80,ENDL64OFS:8,END64HDR:56,END64SIG:101075792,END64SIGFIRST:80,END64SUB:24,END64TOT:32,END64SIZ:40,END64OFF:48,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,FLG_ENC:0,FLG_COMP1:1,FLG_COMP2:2,FLG_DESC:4,FLG_ENH:8,FLG_STR:16,FLG_LNG:1024,FLG_MSK:4096,FLG_ENTRY_ENC:1,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535},Fe=function(n){let e,t,r,i,s,o,l=this,f=n.storeEntries!==!1?{}:null,u=n.file,h=n.nameEncoding?new TextDecoder(n.nameEncoding):null;c();function c(){n.fd?(e=n.fd,d()):fe.open(u,"r",(_,E)=>{if(_)return l.emit("error",_);e=E,d()})}function d(){fe.fstat(e,(_,E)=>{if(_)return l.emit("error",_);t=E.size,r=n.chunkSize||Math.round(t/1e3),r=Math.max(Math.min(r,Math.min(128*1024,t)),Math.min(1024,t)),p()})}function m(_,E){if(_||!E)return l.emit("error",_||new Error("Archive read error"));let C=i.lastPos,x=C-i.win.position,N=i.win.buffer,T=i.minPos;for(;--C>=T&&--x>=0;)if(N.length-x>=4&&N[x]===i.firstByte&&N.readUInt32LE(x)===i.sig){i.lastBufferPosition=x,i.lastBytesRead=E,i.complete();return}if(C===T)return l.emit("error",new Error("Bad archive"));if(i.lastPos=C+1,i.chunkSize*=2,C<=T)return l.emit("error",new Error("Bad archive"));let F=Math.min(i.chunkSize,C-T);i.win.expandLeft(F,m)}function p(){let _=Math.min(y.ENDHDR+y.MAXFILECOMMENT,t);i={win:new vr(e),totalReadLength:_,minPos:t-_,lastPos:t,chunkSize:Math.min(1024,r),firstByte:y.ENDSIGFIRST,sig:y.ENDSIG,complete:g},i.win.read(t-i.chunkSize,i.chunkSize,m)}function g(){let _=i.win.buffer,E=i.lastBufferPosition;try{s=new Yn,s.read(_.slice(E,E+y.ENDHDR)),s.headerOffset=i.win.position+E,s.commentLength?l.comment=_.slice(E+y.ENDHDR,E+y.ENDHDR+s.commentLength).toString():l.comment=null,l.entriesCount=s.volumeEntries,l.centralDirectory=s,s.volumeEntries===y.EF_ZIP64_OR_16&&s.totalEntries===y.EF_ZIP64_OR_16||s.size===y.EF_ZIP64_OR_32||s.offset===y.EF_ZIP64_OR_32?w():(i={},L())}catch(C){l.emit("error",C)}}function w(){let _=y.ENDL64HDR;i.lastBufferPosition>_?(i.lastBufferPosition-=_,S()):(i={win:i.win,totalReadLength:_,minPos:i.win.position-_,lastPos:i.win.position,chunkSize:i.chunkSize,firstByte:y.ENDL64SIGFIRST,sig:y.ENDL64SIG,complete:S},i.win.read(i.lastPos-i.chunkSize,i.chunkSize,m))}function S(){let _=i.win.buffer,E=new Xn;E.read(_.slice(i.lastBufferPosition,i.lastBufferPosition+y.ENDL64HDR));let C=t-E.headerOffset;i={win:i.win,totalReadLength:C,minPos:E.headerOffset,lastPos:i.lastPos,chunkSize:i.chunkSize,firstByte:y.END64SIGFIRST,sig:y.END64SIG,complete:O},i.win.read(t-i.chunkSize,i.chunkSize,m)}function O(){let _=i.win.buffer,E=new Jn;E.read(_.slice(i.lastBufferPosition,i.lastBufferPosition+y.END64HDR)),l.centralDirectory.volumeEntries=E.volumeEntries,l.centralDirectory.totalEntries=E.totalEntries,l.centralDirectory.size=E.size,l.centralDirectory.offset=E.offset,l.entriesCount=E.volumeEntries,i={},L()}function L(){i={win:new vr(e),pos:s.offset,chunkSize:r,entriesLeft:s.volumeEntries},i.win.read(i.pos,Math.min(r,t-i.pos),R)}function R(_,E){if(_||!E)return l.emit("error",_||new Error("Entries read error"));let C=i.pos-i.win.position,x=i.entry,N=i.win.buffer,T=N.length;try{for(;i.entriesLeft>0;){x||(x=new Kn,x.readHeader(N,C),x.headerOffset=i.win.position+C,i.entry=x,i.pos+=y.CENHDR,C+=y.CENHDR);let F=x.fnameLen+x.extraLen+x.comLen,W=F+(i.entriesLeft>1?y.CENHDR:0);if(T-C<W){i.win.moveRight(r,R,C),i.move=!0;return}x.read(N,C,h),n.skipEntryNameValidation||x.validateName(),f&&(f[x.name]=x),l.emit("entry",x),i.entry=x=null,i.entriesLeft--,i.pos+=F,C+=F}l.emit("ready")}catch(F){l.emit("error",F)}}function I(){if(!f)throw new Error("storeEntries disabled")}Object.defineProperty(this,"ready",{get(){return!1}}),this.entry=function(_){return I(),f[_]},this.entries=function(){return I(),f},this.stream=function(_,E){return this.openEntry(_,(C,x)=>{if(C)return E(C);let N=z(x),T=new Qn(e,N,x.compressedSize);if(x.method!==y.STORED)if(x.method===y.DEFLATED)T=T.pipe($l.createInflateRaw());else return E(new Error("Unknown compression method: "+x.method));Z(x)&&(T=T.pipe(new ei(T,x.crc,x.size))),E(null,T)},!1)},this.entryDataSync=function(_){let E=null;if(this.openEntry(_,(x,N)=>{E=x,_=N},!0),E)throw E;let C=Buffer.alloc(_.compressedSize);if(new Me(e,C,0,_.compressedSize,z(_),x=>{E=x}).read(!0),E)throw E;if(_.method!==y.STORED)if(_.method===y.DEFLATED||_.method===y.ENHANCED_DEFLATED)C=$l.inflateRawSync(C);else throw new Error("Unknown compression method: "+_.method);if(C.length!==_.size)throw new Error("Invalid size");return Z(_)&&new Cr(_.crc,_.size).data(C),C},this.openEntry=function(_,E,C){if(typeof _=="string"&&(I(),_=f[_],!_))return E(new Error("Entry not found"));if(!_.isFile)return E(new Error("Entry is not file"));if(!e)return E(new Error("Archive closed"));let x=Buffer.alloc(y.LOCHDR);new Me(e,x,0,x.length,_.offset,N=>{if(N)return E(N);let T;try{_.readDataHeader(x),_.encrypted&&(T=new Error("Entry encrypted"))}catch(F){T=F}E(T,_)}).read(C)};function z(_){return _.offset+y.LOCHDR+_.fnameLen+_.extraLen}function Z(_){return(_.flags&8)!==8}function D(_,E,C){l.stream(_,(x,N)=>{if(x)C(x);else{let T,F;N.on("error",W=>{F=W,T&&(N.unpipe(T),T.close(()=>{C(W)}))}),fe.open(E,"w",(W,ce)=>{if(W)return C(W);if(F){fe.close(e,()=>{C(F)});return}T=fe.createWriteStream(E,{fd:ce}),T.on("finish",()=>{l.emit("extract",_,E),F||C()}),N.pipe(T)})}})}function G(_,E,C){if(!E.length)return C();let x=E.shift();x=ft.join(_,ft.join(...x)),fe.mkdir(x,{recursive:!0},N=>{if(N&&N.code!=="EEXIST")return C(N);G(_,E,C)})}function ee(_,E,C,x,N){if(!C.length)return x(null,N);let T=C.shift(),F=ft.join(_,T.name.replace(E,""));D(T,F,W=>{if(W)return x(W,N);ee(_,E,C,x,N+1)})}this.extract=function(_,E,C){let x=_||"";if(typeof _=="string"&&(_=this.entry(_),_?x=_.name:x.length&&x[x.length-1]!=="/"&&(x+="/")),!_||_.isDirectory){let N=[],T=[],F={};for(let W in f)if(Object.prototype.hasOwnProperty.call(f,W)&&W.lastIndexOf(x,0)===0){let ce=W.replace(x,""),ni=f[W];if(ni.isFile&&(N.push(ni),ce=ft.dirname(ce)),ce&&!F[ce]&&ce!=="."){F[ce]=!0;let be=ce.split("/").filter(ut=>ut);for(be.length&&T.push(be);be.length>1;){be=be.slice(0,be.length-1);let ut=be.join("/");if(F[ut]||ut===".")break;F[ut]=!0,T.push(be)}}}T.sort((W,ce)=>W.length-ce.length),T.length?G(E,T,W=>{W?C(W):ee(E,x,N,C,0)}):ee(E,x,N,C,0)}else fe.stat(E,(N,T)=>{T&&T.isDirectory()?D(_,ft.join(E,ft.basename(_.name)),C):D(_,E,C)})},this.close=function(_){o||!e?(o=!0,_&&_()):(o=!0,fe.close(e,E=>{e=null,_&&_(E)}))};let ie=ti.EventEmitter.prototype.emit;this.emit=function(..._){if(!o)return ie.call(this,..._)}};Fe.setFs=function(n){fe=n};Fe.debugLog=(...n)=>{Fe.debug&&console.log(...n)};qh.inherits(Fe,ti.EventEmitter);var De=Symbol("zip");Fe.async=class extends ti.EventEmitter{constructor(e){super();let t=new Fe(e);t.on("entry",r=>this.emit("entry",r)),t.on("extract",(r,i)=>this.emit("extract",r,i)),this[De]=new Promise((r,i)=>{t.on("ready",()=>{t.removeListener("error",i),r(t)}),t.on("error",i)})}get entriesCount(){return this[De].then(e=>e.entriesCount)}get comment(){return this[De].then(e=>e.comment)}async entry(e){return(await this[De]).entry(e)}async entries(){return(await this[De]).entries()}async stream(e){let t=await this[De];return new Promise((r,i)=>{t.stream(e,(s,o)=>{s?i(s):r(o)})})}async entryData(e){let t=await this.stream(e);return new Promise((r,i)=>{let s=[];t.on("data",o=>s.push(o)),t.on("end",()=>{r(Buffer.concat(s))}),t.on("error",o=>{t.removeAllListeners("end"),i(o)})})}async extract(e,t){let r=await this[De];return new Promise((i,s)=>{r.extract(e,t,(o,a)=>{o?s(o):i(a)})})}async close(){let e=await this[De];return new Promise((t,r)=>{e.close(i=>{i?r(i):t()})})}};var Yn=class{read(e){if(e.length!==y.ENDHDR||e.readUInt32LE(0)!==y.ENDSIG)throw new Error("Invalid central directory");this.volumeEntries=e.readUInt16LE(y.ENDSUB),this.totalEntries=e.readUInt16LE(y.ENDTOT),this.size=e.readUInt32LE(y.ENDSIZ),this.offset=e.readUInt32LE(y.ENDOFF),this.commentLength=e.readUInt16LE(y.ENDCOM)}},Xn=class{read(e){if(e.length!==y.ENDL64HDR||e.readUInt32LE(0)!==y.ENDL64SIG)throw new Error("Invalid zip64 central directory locator");this.headerOffset=Pe(e,y.ENDSUB)}},Jn=class{read(e){if(e.length!==y.END64HDR||e.readUInt32LE(0)!==y.END64SIG)throw new Error("Invalid central directory");this.volumeEntries=Pe(e,y.END64SUB),this.totalEntries=Pe(e,y.END64TOT),this.size=Pe(e,y.END64SIZ),this.offset=Pe(e,y.END64OFF)}},Kn=class{readHeader(e,t){if(e.length<t+y.CENHDR||e.readUInt32LE(t)!==y.CENSIG)throw new Error("Invalid entry header");this.verMade=e.readUInt16LE(t+y.CENVEM),this.version=e.readUInt16LE(t+y.CENVER),this.flags=e.readUInt16LE(t+y.CENFLG),this.method=e.readUInt16LE(t+y.CENHOW);let r=e.readUInt16LE(t+y.CENTIM),i=e.readUInt16LE(t+y.CENTIM+2);this.time=Vl(r,i),this.crc=e.readUInt32LE(t+y.CENCRC),this.compressedSize=e.readUInt32LE(t+y.CENSIZ),this.size=e.readUInt32LE(t+y.CENLEN),this.fnameLen=e.readUInt16LE(t+y.CENNAM),this.extraLen=e.readUInt16LE(t+y.CENEXT),this.comLen=e.readUInt16LE(t+y.CENCOM),this.diskStart=e.readUInt16LE(t+y.CENDSK),this.inattr=e.readUInt16LE(t+y.CENATT),this.attr=e.readUInt32LE(t+y.CENATX),this.offset=e.readUInt32LE(t+y.CENOFF)}readDataHeader(e){if(e.readUInt32LE(0)!==y.LOCSIG)throw new Error("Invalid local header");this.version=e.readUInt16LE(y.LOCVER),this.flags=e.readUInt16LE(y.LOCFLG),this.method=e.readUInt16LE(y.LOCHOW);let t=e.readUInt16LE(y.LOCTIM),r=e.readUInt16LE(y.LOCTIM+2);this.time=Vl(t,r),this.crc=e.readUInt32LE(y.LOCCRC)||this.crc;let i=e.readUInt32LE(y.LOCSIZ);if(i&&i!==y.EF_ZIP64_OR_32&&i!==this.compressedSize)throw new Error("Invalid compressed size");let s=e.readUInt32LE(y.LOCLEN);if(s&&s!==y.EF_ZIP64_OR_32&&s!==this.size)throw new Error("Invalid size");this.fnameLen=e.readUInt16LE(y.LOCNAM),this.extraLen=e.readUInt16LE(y.LOCEXT)}read(e,t,r){let i=e.slice(t,t+=this.fnameLen);this.name=r?r.decode(new Uint8Array(i)):i.toString("utf8");let s=e[t-1];this.isDirectory=s===47||s===92,this.extraLen&&(this.readExtra(e,t),t+=this.extraLen),this.comment=this.comLen?e.slice(t,t+this.comLen).toString():null}validateName(){if(/\\|^\w+:|^\/|(^|\/)\.\.(\/|$)/.test(this.name))throw new Error("Malicious entry: "+this.name)}readExtra(e,t){let r,i,s=t+this.extraLen;for(;t<s;)r=e.readUInt16LE(t),t+=2,i=e.readUInt16LE(t),t+=2,y.ID_ZIP64===r&&this.parseZip64Extra(e,t,i),t+=i}parseZip64Extra(e,t,r){r>=8&&this.size===y.EF_ZIP64_OR_32&&(this.size=Pe(e,t),t+=8,r-=8),r>=8&&this.compressedSize===y.EF_ZIP64_OR_32&&(this.compressedSize=Pe(e,t),t+=8,r-=8),r>=8&&this.offset===y.EF_ZIP64_OR_32&&(this.offset=Pe(e,t),t+=8,r-=8),r>=4&&this.diskStart===y.EF_ZIP64_OR_16&&(this.diskStart=e.readUInt32LE(t))}get encrypted(){return(this.flags&y.FLG_ENTRY_ENC)===y.FLG_ENTRY_ENC}get isFile(){return!this.isDirectory}},Me=class{constructor(e,t,r,i,s,o){this.fd=e,this.buffer=t,this.offset=r,this.length=i,this.position=s,this.callback=o,this.bytesRead=0,this.waiting=!1}read(e){Fe.debugLog("read",this.position,this.bytesRead,this.length,this.offset),this.waiting=!0;let t;if(e){let r=0;try{r=fe.readSync(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead)}catch(i){t=i}this.readCallback(e,t,t?r:null)}else fe.read(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead,this.readCallback.bind(this,e))}readCallback(e,t,r){if(typeof r=="number"&&(this.bytesRead+=r),t||!r||this.bytesRead===this.length)return this.waiting=!1,this.callback(t,this.bytesRead);this.read(e)}},vr=class{constructor(e){this.position=0,this.buffer=Buffer.alloc(0),this.fd=e,this.fsOp=null}checkOp(){if(this.fsOp&&this.fsOp.waiting)throw new Error("Operation in progress")}read(e,t,r){this.checkOp(),this.buffer.length<t&&(this.buffer=Buffer.alloc(t)),this.position=e,this.fsOp=new Me(this.fd,this.buffer,0,t,this.position,r).read()}expandLeft(e,t){this.checkOp(),this.buffer=Buffer.concat([Buffer.alloc(e),this.buffer]),this.position-=e,this.position<0&&(this.position=0),this.fsOp=new Me(this.fd,this.buffer,0,e,this.position,t).read()}expandRight(e,t){this.checkOp();let r=this.buffer.length;this.buffer=Buffer.concat([this.buffer,Buffer.alloc(e)]),this.fsOp=new Me(this.fd,this.buffer,r,e,this.position+r,t).read()}moveRight(e,t,r){this.checkOp(),r?this.buffer.copy(this.buffer,0,r):r=0,this.position+=r,this.fsOp=new Me(this.fd,this.buffer,this.buffer.length-r,r,this.position+this.buffer.length-r,t).read()}},Qn=class extends Zl.Readable{constructor(e,t,r){super(),this.fd=e,this.offset=t,this.length=r,this.pos=0,this.readCallback=this.readCallback.bind(this)}_read(e){let t=Buffer.alloc(Math.min(e,this.length-this.pos));t.length?fe.read(this.fd,t,0,t.length,this.offset+this.pos,this.readCallback):this.push(null)}readCallback(e,t,r){this.pos+=t,e?(this.emit("error",e),this.push(null)):t?(t!==r.length&&(r=r.slice(0,t)),this.push(r)):this.push(null)}},ei=class extends Zl.Transform{constructor(e,t,r){super(),this.verify=new Cr(t,r),e.on("error",i=>{this.emit("error",i)})}_transform(e,t,r){let i;try{this.verify.data(e)}catch(s){i=s}r(i,e)}},Cr=class n{constructor(e,t){this.crc=e,this.size=t,this.state={crc:-1,size:0}}data(e){let t=n.getCrcTable(),r=this.state.crc,i=0,s=e.length;for(;--s>=0;)r=t[(r^e[i++])&255]^r>>>8;if(this.state.crc=r,this.state.size+=e.length,this.state.size>=this.size){let o=Buffer.alloc(4);if(o.writeInt32LE(~this.state.crc&4294967295,0),r=o.readUInt32LE(0),r!==this.crc)throw new Error("Invalid CRC");if(this.state.size!==this.size)throw new Error("Invalid size")}}static getCrcTable(){let e=n.crcTable;if(!e){n.crcTable=e=[];let t=Buffer.alloc(4);for(let r=0;r<256;r++){let i=r;for(let s=8;--s>=0;)(i&1)!==0?i=3988292384^i>>>1:i=i>>>1;i<0&&(t.writeInt32LE(i,0),i=t.readUInt32LE(0)),e[r]=i}}return e}};function Vl(n,e){let t=Hl(n,16),r=Hl(e,16),i={h:parseInt(t.slice(0,5).join(""),2),m:parseInt(t.slice(5,11).join(""),2),s:parseInt(t.slice(11,16).join(""),2)*2,Y:parseInt(r.slice(0,7).join(""),2)+1980,M:parseInt(r.slice(7,11).join(""),2),D:parseInt(r.slice(11,16).join(""),2)},s=[i.Y,i.M,i.D].join("-")+" "+[i.h,i.m,i.s].join(":")+" GMT+0";return new Date(s).getTime()}function Hl(n,e){let t=(n>>>0).toString(2);for(;t.length<e;)t="0"+t;return t.split("")}function Pe(n,e){return n.readUInt32LE(e+4)*4294967296+n.readUInt32LE(e)}Yl.exports=Fe});var Yh={};fa(Yh,{StreamZip:()=>na.async,WebSocket:()=>Ho,ZipFile:()=>ra.ZipFile,convertSourceMap:()=>Zh,decode:()=>ui,diffSequence:()=>ta.default,findUpSync:()=>vl,minimatch:()=>H,parseCss:()=>ea.default,supportsColor:()=>Ql});module.exports=ua(Yh);var Zh=q(oi());var wa=44;var li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea=new Uint8Array(64),fi=new Uint8Array(128);for(let n=0;n<li.length;n++){let e=li.charCodeAt(n);Ea[n]=e,fi[e]=n}function ct(n,e){let t=0,r=0,i=0;do{let o=n.next();i=fi[o],t|=(i&31)<<r,r+=5}while(i&32);let s=t&1;return t>>>=1,s&&(t=-2147483648|-t),e+t}function ai(n,e){return n.pos>=e?!1:n.peek()!==wa}var Kh=1024*16;var Sa=class{constructor(n){this.pos=0,this.buffer=n}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(n){let{buffer:e,pos:t}=this,r=e.indexOf(n,t);return r===-1?e.length:r}};function ui(n){let{length:e}=n,t=new Sa(n),r=[],i=0,s=0,o=0,a=0,l=0;do{let f=t.indexOf(";"),u=[],h=!0,c=0;for(i=0;t.pos<f;){let d;i=ct(t,i),i<c&&(h=!1),c=i,ai(t,f)?(s=ct(t,s),o=ct(t,o),a=ct(t,a),ai(t,f)?(l=ct(t,l),d=[i,s,o,a,l]):d=[i,s,o,a]):d=[i],u.push(d),t.pos++}h||xa(u),r.push(u),t.pos=f+1}while(t.pos<=e);return r}function xa(n){n.sort(va)}function va(n,e){return n[0]-e[0]}var ea=q(Gs());var fc=q(ko(),1),uc=q(ar(),1),cc=q(tt(),1),hc=q(gn(),1),dc=q(wn(),1),pc=q(bn(),1),Vo=q(hr(),1),mc=q($o(),1);var Ho=Vo.default;var Ln=(n,e,t)=>{let r=n instanceof RegExp?Zo(n,t):n,i=e instanceof RegExp?Zo(e,t):e,s=r!==null&&i!=null&&gc(r,i,t);return s&&{start:s[0],end:s[1],pre:t.slice(0,s[0]),body:t.slice(s[0]+r.length,s[1]),post:t.slice(s[1]+i.length)}},Zo=(n,e)=>{let t=e.match(n);return t?t[0]:null},gc=(n,e,t)=>{let r,i,s,o,a,l=t.indexOf(n),f=t.indexOf(e,l+1),u=l;if(l>=0&&f>0){if(n===e)return[l,f];for(r=[],s=t.length;u>=0&&!a;){if(u===l)r.push(u),l=t.indexOf(n,u+1);else if(r.length===1){let h=r.pop();h!==void 0&&(a=[h,f])}else i=r.pop(),i!==void 0&&i<s&&(s=i,o=f),f=t.indexOf(e,u+1);u=l<f&&l>=0?l:f}r.length&&o!==void 0&&(a=[s,o])}return a};var Yo="\0SLASH"+Math.random()+"\0",Xo="\0OPEN"+Math.random()+"\0",In="\0CLOSE"+Math.random()+"\0",Jo="\0COMMA"+Math.random()+"\0",Ko="\0PERIOD"+Math.random()+"\0",_c=new RegExp(Yo,"g"),yc=new RegExp(Xo,"g"),wc=new RegExp(In,"g"),Ec=new RegExp(Jo,"g"),Sc=new RegExp(Ko,"g"),xc=/\\\\/g,vc=/\\{/g,Cc=/\\}/g,bc=/\\,/g,Oc=/\\\./g,Lc=1e5,Tc=4e6;function Tn(n){return isNaN(n)?n.charCodeAt(0):parseInt(n,10)}function Nc(n){return n.replace(xc,Yo).replace(vc,Xo).replace(Cc,In).replace(bc,Jo).replace(Oc,Ko)}function Ic(n){return n.replace(_c,"\\").replace(yc,"{").replace(wc,"}").replace(Ec,",").replace(Sc,".")}function Qo(n){if(!n)return[""];let e=[],t=Ln("{","}",n);if(!t)return n.split(",");let{pre:r,body:i,post:s}=t,o=r.split(",");o[o.length-1]+="{"+i+"}";let a=Qo(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function el(n,e={}){if(!n)return[];let{max:t=Lc,maxLength:r=Tc}=e;return n.slice(0,2)==="{}"&&(n="\\{\\}"+n.slice(2)),Nn(Nc(n),t,r,!0).map(Ic)}function Rc(n){return"{"+n+"}"}function Ac(n){return/^-?0\d/.test(n)}function Dc(n,e){return n<=e}function Mc(n,e){return n>=e}function Rt(n,e,t,r,i,s){let o=[],a=0;for(let l=0;l<n.length;l++)for(let f=0;f<t.length;f++){if(o.length>=r)return o;let u=n[l]+e+t[f];if(!(s&&!u)){if(a+u.length>i)return o;o.push(u),a+=u.length}}return o}function Pc(n,e,t,r){let i=n.split(/\.\./),s=[];if(i[0]===void 0||i[1]===void 0)return s;let o=Tn(i[0]),a=Tn(i[1]),l=Math.max(i[0].length,i[1].length),f=i.length===3&&i[2]!==void 0?Math.max(Math.abs(Tn(i[2])),1):1,u=Dc;a<o&&(f*=-1,u=Mc);let c=i.some(Ac),d=0;for(let m=o;u(m,a)&&s.length<t;m+=f){let p;if(e)p=String.fromCharCode(m),p==="\\"&&(p="");else if(p=String(m),c){let g=l-p.length;if(g>0){let w=new Array(g+1).join("0");m<0?p="-"+w+p.slice(1):p=w+p}}if(d+p.length>r)break;s.push(p),d+=p.length}return s}function Nn(n,e,t,r){let i=[""],s=!1,o=!0;for(;;){let a=Ln("{","}",n);if(!a)return Rt(i,n,[""],e,t,s);let l=a.pre;if(/\$$/.test(l)){if(i=Rt(i,l+"{"+a.body+"}",[""],e,t,s&&!a.post.length),o=!1,!a.post.length)break;n=a.post;continue}let f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=f||u,c=a.body.indexOf(",")>=0;if(!h&&!c){if(a.post.match(/,(?!,).*\}/)){n=a.pre+"{"+a.body+In+a.post,r=!0;continue}return Rt(i,l+"{"+a.body+"}"+a.post,[""],e,t,s)}o&&(s=r&&!h,o=!1);let d;if(h)d=Pc(a.body,u,e,t);else{let m=Qo(a.body);if(m.length===1&&m[0]!==void 0&&(m=Nn(m[0],e,t,!1).map(Rc),m.length===1)){if(i=Rt(i,l+m[0],[""],e,t,s&&!a.post.length),!a.post.length)break;n=a.post;continue}let p=s&&!a.post.length&&!l;for(let w=0;p&&w<i.length;w++)i[w]&&(p=!1);d=[];let g=0;e:for(let w=0;w<m.length;w++){let S=Nn(m[w],e,t,!1);for(let O=0;O<S.length;O++){let L=S[O];if(!(p&&!L)){if(d.length>=e||g+L.length>t)break e;d.push(L),g+=L.length}}}}if(i=Rt(i,l,d,e,t,s&&!a.post.length),!a.post.length)break;n=a.post}return i}var At=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var Fc={"[: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]},Dt=n=>n.replace(/[[\]\\-]/g,"\\$&"),kc=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tl=n=>n.join(""),rl=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=t+1,o=!1,a=!1,l=!1,f=!1,u=t,h="";e:for(;s<n.length;){let p=n.charAt(s);if((p==="!"||p==="^")&&s===t+1){f=!0,s++;continue}if(p==="]"&&o&&!l){u=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[g,[w,S,O]]of Object.entries(Fc))if(n.startsWith(g,s)){if(h)return["$.",!1,n.length-t,!0];s+=g.length,O?i.push(w):r.push(w),a=a||S;continue e}}if(l=!1,h){p>h?r.push(Dt(h)+"-"+Dt(p)):p===h&&r.push(Dt(p)),h="",s++;continue}if(n.startsWith("-]",s+1)){r.push(Dt(p+"-")),s+=2;continue}if(n.startsWith("-",s+1)){h=p,s+=2;continue}r.push(Dt(p)),s++}if(u<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,n.length-t,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!f){let p=r[0].length===2?r[0].slice(-1):r[0];return[kc(p),!1,u-t,!1]}let c="["+(f?"^":"")+tl(r)+"]",d="["+(f?"":"^")+tl(i)+"]";return[r.length&&i.length?"("+c+"|"+d+")":r.length?c:d,a,u-t,!0]};var Ne=(n,{windowsPathsNoEscape:e=!1,magicalBraces:t=!0}={})=>t?e?n.replace(/\[([^/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?n.replace(/\[([^/\\{}])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var te,Uc=new Set(["!","?","+","*","@"]),Rn=n=>Uc.has(n),nl=n=>Rn(n.type),Bc=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),zc=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Gc=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),il=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Wc="(?!(?:^|/)\\.\\.?(?:$|/))",pr="(?!\\.)",qc=new Set(["[","."]),jc=new Set(["..","."]),$c=new Set("().*{}+?[]^$\\!"),Vc=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),An="[^/]",sl=An+"*?",ol=An+"+?",Hc=0,je=class{type;#r;#n;#i=!1;#e=[];#t;#l;#f;#a=!1;#s;#o;#u=!1;id=++Hc;get depth(){return(this.#t?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#r.id,parent:this.#t?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(e,t,r={}){this.type=e,e&&(this.#n=!0),this.#t=t,this.#r=this.#t?this.#t.#r:this,this.#s=this.#r===this?r:this.#r.#s,this.#f=this.#r===this?[]:this.#r.#f,e==="!"&&!this.#r.#a&&this.#f.push(this),this.#l=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#o=this.#e.map(e=>String(e)).join("")}#_(){if(this!==this.#r)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#f.pop();){if(e.type!=="!")continue;let t=e,r=t.#t;for(;r;){for(let i=t.#l+1;!r.type&&i<r.#e.length;i++)for(let s of e.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#e[i])}t=r,r=t.#t}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof te&&t.#t===this))throw new Error("invalid part: "+t);this.#e.push(t)}}toJSON(){let e=this.type===null?this.#e.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#e.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#a&&this.#t?.type==="!")&&e.push({}),e}isStart(){if(this.#r===this)return!0;if(!this.#t?.isStart())return!1;if(this.#l===0)return!0;let e=this.#t;for(let t=0;t<this.#l;t++){let r=e.#e[t];if(!(r instanceof te&&r.type==="!"))return!1}return!0}isEnd(){if(this.#r===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#l===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new te(this.type,e);for(let r of this.#e)t.copyIn(r);return t}static#c(e,t,r,i,s){let o=i.maxExtglobRecursion??2,a=!1,l=!1,f=-1,u=!1;if(t.type===null){let p=r,g="";for(;p<e.length;){let w=e.charAt(p++);if(a||w==="\\"){a=!a,g+=w;continue}if(l){p===f+1?(w==="^"||w==="!")&&(u=!0):w==="]"&&!(p===f+2&&u)&&(l=!1),g+=w;continue}else if(w==="["){l=!0,f=p,u=!1,g+=w;continue}if(!i.noext&&Rn(w)&&e.charAt(p)==="("&&s<=o){t.push(g),g="";let O=new te(w,t);p=te.#c(e,O,p,i,s+1),t.push(O);continue}g+=w}return t.push(g),p}let h=r+1,c=new te(null,t),d=[],m="";for(;h<e.length;){let p=e.charAt(h++);if(a||p==="\\"){a=!a,m+=p;continue}if(l){h===f+1?(p==="^"||p==="!")&&(u=!0):p==="]"&&!(h===f+2&&u)&&(l=!1),m+=p;continue}else if(p==="["){l=!0,f=h,u=!1,m+=p;continue}if(!i.noext&&Rn(p)&&e.charAt(h)==="("&&(s<=o||t&&t.#h(p))){let w=t&&t.#h(p)?0:1;c.push(m),m="";let S=new te(p,c);c.push(S),h=te.#c(e,S,h,i,s+w);continue}if(p==="|"){c.push(m),m="",d.push(c),c=new te(null,t);continue}if(p===")")return m===""&&t.#e.length===0&&(t.#u=!0),c.push(m),m="",t.push(...d,c),h;m+=p}return t.type=null,t.#n=void 0,t.#e=[e.substring(r-1)],h}#y(e){return this.#p(e,zc)}#p(e,t=Bc){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let r=e.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#h(r.type,t)}#h(e,t=Gc){return!!t.get(this.type)?.includes(e)}#w(e,t){let r=e.#e[0],i=new te(null,r,this.options);i.#e.push(""),r.push(i),this.#m(e,t)}#m(e,t){let r=e.#e[0];this.#e.splice(t,1,...r.#e);for(let i of r.#e)typeof i=="object"&&(i.#t=this);this.#o=void 0}#E(e){return!!il.get(this.type)?.has(e)}#S(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let t=e.#e[0];return!t||typeof t!="object"||t.type===null?!1:this.#E(t.type)}#x(e){let t=il.get(this.type),r=e.#e[0],i=t?.get(r.type);if(!i)return!1;this.#e=r.#e;for(let s of this.#e)typeof s=="object"&&(s.#t=this);this.type=i,this.#o=void 0,this.#u=!1}static fromGlob(e,t={}){let r=new te(null,void 0,t);return te.#c(e,r,0,t,0),r}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();let e=this.toString(),[t,r,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#s}toRegExpSource(e){let t=e??!!this.#s.dot;if(this.#r===this&&(this.#d(),this.#_()),!nl(this)){let l=this.isStart()&&this.isEnd()&&!this.#e.some(d=>typeof d!="string"),f=this.#e.map(d=>{let[m,p,g,w]=typeof d=="string"?te.#v(d,this.#n,l):d.toRegExpSource(e);return this.#n=this.#n||g,this.#i=this.#i||w,m}).join(""),u="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&jc.has(this.#e[0]))){let m=qc,p=t&&m.has(f.charAt(0))||f.startsWith("\\.")&&m.has(f.charAt(2))||f.startsWith("\\.\\.")&&m.has(f.charAt(4)),g=!t&&!e&&m.has(f.charAt(0));u=p?Wc:g?pr:""}let h="";return this.isEnd()&&this.#r.#a&&this.#t?.type==="!"&&(h="(?:$|\\/)"),[u+f+h,Ne(f),this.#n=!!this.#n,this.#i]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#g(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),f=this;return f.#e=[l],f.type=null,f.#n=void 0,[l,Ne(this.toString()),!1,!1]}let o=!r||e||t||!pr?"":this.#g(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#u)a=(this.isStart()&&!t?pr:"")+ol;else{let l=this.type==="!"?"))"+(this.isStart()&&!t&&!e?pr:"")+sl+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+l}return[a,Ne(s),this.#n=!!this.#n,this.#i]}#d(){if(nl(this)){let e=0,t=!1;do{t=!0;for(let r=0;r<this.#e.length;r++){let i=this.#e[r];typeof i=="object"&&(i.#d(),this.#p(i)?(t=!1,this.#m(i,r)):this.#y(i)?(t=!1,this.#w(i,r)):this.#S(i)&&(t=!1,this.#x(i)))}}while(!t&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#d();this.#o=void 0}#g(e){return this.#e.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=t.toRegExpSource(e);return this.#i=this.#i||o,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#v(e,t,r=!1){let i=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let f=e.charAt(l);if(i){i=!1,s+=($c.has(f)?"\\":"")+f;continue}if(f==="*"){if(a)continue;a=!0,s+=r&&/^[*]+$/.test(e)?ol:sl,t=!0;continue}else a=!1;if(f==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(f==="["){let[u,h,c,d]=rl(e,l);if(c){s+=u,o=o||h,l+=c-1,t=t||d;continue}}if(f==="?"){s+=An,t=!0;continue}s+=Vc(f)}return[s,Ne(e),!!t,o]}};te=je;var Dn=(n,{windowsPathsNoEscape:e=!1,magicalBraces:t=!1}={})=>t?e?n.replace(/[?*()[\]{}]/g,"[$&]"):n.replace(/[?*()[\]\\{}]/g,"\\$&"):e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var H=(n,e,t={})=>(At(e),!t.nocomment&&e.charAt(0)==="#"?!1:new lt(e,t).match(n)),Zc=/^\*+([^+@!?*[(]*)$/,Yc=n=>e=>!e.startsWith(".")&&e.endsWith(n),Xc=n=>e=>e.endsWith(n),Jc=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),Kc=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Qc=/^\*+\.\*+$/,eh=n=>!n.startsWith(".")&&n.includes("."),th=n=>n!=="."&&n!==".."&&n.includes("."),rh=/^\.\*+$/,nh=n=>n!=="."&&n!==".."&&n.startsWith("."),ih=/^\*+$/,sh=n=>n.length!==0&&!n.startsWith("."),oh=n=>n.length!==0&&n!=="."&&n!=="..",lh=/^\?+([^+@!?*[(]*)?$/,ah=([n,e=""])=>{let t=fl([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},fh=([n,e=""])=>{let t=ul([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},uh=([n,e=""])=>{let t=ul([n]);return e?r=>t(r)&&r.endsWith(e):t},ch=([n,e=""])=>{let t=fl([n]);return e?r=>t(r)&&r.endsWith(e):t},fl=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},ul=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},cl=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",ll={win32:{sep:"\\"},posix:{sep:"/"}},hh=cl==="win32"?ll.win32.sep:ll.posix.sep;H.sep=hh;var X=Symbol("globstar **");H.GLOBSTAR=X;var dh="[^/]",ph=dh+"*?",mh="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",gh="(?:(?!(?:\\/|^)\\.).)*?",_h=(n,e={})=>t=>H(t,n,e);H.filter=_h;var ae=(n,e={})=>Object.assign({},n,e),yh=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return H;let e=H;return Object.assign((r,i,s={})=>e(r,i,ae(n,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,ae(n,s))}static defaults(i){return e.defaults(ae(n,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,ae(n,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ae(n,s))}},unescape:(r,i={})=>e.unescape(r,ae(n,i)),escape:(r,i={})=>e.escape(r,ae(n,i)),filter:(r,i={})=>e.filter(r,ae(n,i)),defaults:r=>e.defaults(ae(n,r)),makeRe:(r,i={})=>e.makeRe(r,ae(n,i)),braceExpand:(r,i={})=>e.braceExpand(r,ae(n,i)),match:(r,i,s={})=>e.match(r,i,ae(n,s)),sep:e.sep,GLOBSTAR:X})};H.defaults=yh;var hl=(n,e={})=>(At(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:el(n,{max:e.braceExpandMax}));H.braceExpand=hl;var wh=(n,e={})=>new lt(n,e).makeRe();H.makeRe=wh;var Eh=(n,e,t={})=>{let r=new lt(e,t);return n=n.filter(i=>r.match(i)),r.options.nonull&&!n.length&&n.push(e),n};H.match=Eh;var al=/[?*]|[+@!]\(.*?\)|\[|\]/,Sh=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){At(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||cl,this.isWindows=this.platform==="win32";let r="allowWindowsEscape";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t[r]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!al.test(s[2]))&&!al.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(f)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r of e)for(let i=0;i<r.length;i++)r[i]==="**"&&(r[i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let o=i;for(;r[o+1]==="**";)o++;o>i&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],f=r[i+3];if(a!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;t=!0,r.splice(i,1);let u=r.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(t=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let o=r[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<t.length;)if(e[i]===t[s])o.push(a==="b"?t[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&t[s]===e[i+1])o.push(e[i]),i++;else if(r&&t[s]==="**"&&e[i]===t[s+1])o.push(t[s]),s++;else if(e[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(t[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(t[s]),i++,s++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),f=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!f&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),h=l?3:a?0:void 0,c=u?3:f?0:void 0;if(typeof h=="number"&&typeof c=="number"){let[d,m]=[e[h],t[c]];d.toLowerCase()===m.toLowerCase()&&(t[c]=d,s=c,i=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(X)?this.#r(e,t,r,i,s):this.#i(e,t,r,i,s)}#r(e,t,r,i,s){let o=t.indexOf(X,s),a=t.lastIndexOf(X),[l,f,u]=r?[t.slice(s,o),t.slice(o+1),[]]:[t.slice(s,o),t.slice(o+1,a),t.slice(a+1)];if(l.length){let S=e.slice(i,i+l.length);if(!this.#i(S,l,r,0,0))return!1;i+=l.length,s+=l.length}let h=0;if(u.length){if(u.length+i>e.length)return!1;let S=e.length-u.length;if(this.#i(e,u,r,S,0))h=u.length;else{if(e[e.length-1]!==""||i+u.length===e.length||(S--,!this.#i(e,u,r,S,0)))return!1;h=u.length+1}}if(!f.length){let S=!!h;for(let O=i;O<e.length-h;O++){let L=String(e[O]);if(S=!0,L==="."||L===".."||!this.options.dot&&L.startsWith("."))return!1}return r||S}let c=[[[],0]],d=c[0],m=0,p=[0];for(let S of f)S===X?(p.push(m),d=[[],0],c.push(d)):(d[0].push(S),m++);let g=c.length-1,w=e.length-h;for(let S of c)S[1]=w-(p[g--]+S[0].length);return!!this.#n(e,c,i,0,r,0,!!h)}#n(e,t,r,i,s,o,a){let l=t[i];if(!l){for(let h=r;h<e.length;h++){a=!0;let c=e[h];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1}return a}let[f,u]=l;for(;r<=u;){if(this.#i(e.slice(0,r+f.length),f,s,r,0)&&o<this.maxGlobstarRecursion){let d=this.#n(e,t,r+f.length,i+1,s,o+1,a);if(d!==!1)return d}let c=e[r];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1;r++}return s||null}#i(e,t,r,i,s){let o,a,l,f;for(o=i,a=s,f=e.length,l=t.length;o<f&&a<l;o++,a++){this.debug("matchOne loop");let u=t[a],h=e[o];if(this.debug(t,u,h),u===!1||u===X)return!1;let c;if(typeof u=="string"?(c=h===u,this.debug("string match",u,h,c)):(c=u.test(h),this.debug("pattern match",u,h,c)),!c)return!1}if(o===f&&a===l)return!0;if(o===f)return r;if(a===l)return o===f-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return hl(this.pattern,this.options)}parse(e){At(e);let t=this.options;if(e==="**")return X;if(e==="")return"";let r,i=null;(r=e.match(ih))?i=t.dot?oh:sh:(r=e.match(Zc))?i=(t.nocase?t.dot?Kc:Jc:t.dot?Xc:Yc)(r[1]):(r=e.match(lh))?i=(t.nocase?t.dot?fh:ah:t.dot?uh:ch)(r):(r=e.match(Qc))?i=t.dot?th:eh:(r=e.match(rh))&&(i=nh);let s=je.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?ph:t.dot?mh:gh,i=new Set(t.nocase?["i"]:[]),s=e.map(l=>{let f=l.map(h=>{if(h instanceof RegExp)for(let c of h.flags.split(""))i.add(c);return typeof h=="string"?Sh(h):h===X?X:h._src});f.forEach((h,c)=>{let d=f[c+1],m=f[c-1];h!==X||m===X||(m===void 0?d!==void 0&&d!==X?f[c+1]="(?:\\/|"+r+"\\/)?"+d:f[c]=r:d===void 0?f[c-1]=m+"(?:\\/|\\/"+r+")?":d!==X&&(f[c-1]=m+"(?:\\/|\\/"+r+"\\/)"+d,f[c+1]=X))});let u=f.filter(h=>h!==X);if(this.partial&&u.length>=1){let h=[];for(let c=1;c<=u.length;c++)h.push(u.slice(0,c).join("/"));return"(?:"+h.join("|")+")"}return u.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a of s){let l=i;if(r.matchBase&&a.length===1&&(l=[o]),this.matchOne(l,a,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return H.defaults(e).Minimatch}};H.AST=je;H.Minimatch=lt;H.escape=Dn;H.unescape=Ne;var ta=q(gl());var at=q(require("node:path"),1);var _l=q(require("node:process"),1),yl=q(require("node:path"),1),mr=q(require("node:fs"),1),wl=require("node:url");var El={directory:"isDirectory",file:"isFile"};function Oh(n){if(!(n==="both"||Object.hasOwn(El,n)))throw new Error(`Invalid type specified: ${n}`)}var Lh=(n,e)=>n==="both"?e.isFile()||e.isDirectory():e[El[n]](),Th=n=>n instanceof URL?(0,wl.fileURLToPath)(n):n;function kn(n,{cwd:e=_l.default.cwd(),type:t="file",allowSymlinks:r=!0}={}){Oh(t),e=Th(e);let i=r?mr.default.statSync:mr.default.lstatSync;for(let s of n)try{let o=i(yl.default.resolve(e,s),{throwIfNoEntry:!1});if(!o)continue;if(Lh(t,o))return s}catch{}}var Sl=require("node:util"),Un=require("node:child_process");var xl=require("node:url"),Op=(0,Sl.promisify)(Un.execFile);function Bn(n){return n instanceof URL?(0,xl.fileURLToPath)(n):n}var Lp=10*1024*1024;var Nh=Symbol("findUpStop");function Ih(n,e={}){let t=at.default.resolve(Bn(e.cwd)??""),{root:r}=at.default.parse(t),i=at.default.resolve(t,Bn(e.stopAt)??r),s=e.limit??Number.POSITIVE_INFINITY,o=[n].flat(),a=f=>{if(typeof n!="function")return kn(o,f);let u=n(f.cwd);return typeof u=="string"?kn([u],f):u},l=[];for(;;){let f=a({...e,cwd:t});if(f===Nh||(f&&l.push(at.default.resolve(t,f)),t===i||l.length>=s))break;t=at.default.dirname(t)}return l}function vl(n,e={}){return Ih(n,{...e,limit:1})[0]}var ra=q(jl()),na=q(Xl());var Or=q(require("node:process"),1),Kl=q(require("node:os"),1),ri=q(require("node:tty"),1);function ue(n,e=globalThis.Deno?globalThis.Deno.args:Or.default.argv){let t=n.startsWith("-")?"":n.length===1?"-":"--",r=e.indexOf(t+n),i=e.indexOf("--");return r!==-1&&(i===-1||r<i)}var{env:M}=Or.default,br;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?br=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(br=1);function jh(){if(!("FORCE_COLOR"in M))return;if(M.FORCE_COLOR==="true")return 1;if(M.FORCE_COLOR==="false")return 0;if(M.FORCE_COLOR.length===0)return 1;if(!/^\d+$/v.test(M.FORCE_COLOR))return;let n=Math.min(Number(M.FORCE_COLOR),3);if([0,1,2,3].includes(n))return n}function $h(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function Vh(n,{streamIsTTY:e,sniffFlags:t=!0}={}){let r=jh();r!==void 0&&(br=r);let i=t?br:r;if(i===0)return 0;if(t){if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2}if(i!==void 0&&/^\d+$/v.test(M.FORCE_COLOR))return i;if("TF_BUILD"in M&&"AGENT_NAME"in M)return 1;if(n&&!e&&i===void 0)return 0;let s=i||0;if(M.TERM==="dumb")return s;if(Or.default.platform==="win32"){let o=Kl.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in M)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>Object.hasOwn(M,o))?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>Object.hasOwn(M,o))||M.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in M)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/v.test(M.TEAMCITY_VERSION)?1:0;if(M.COLORTERM==="truecolor"||M.TERM==="xterm-kitty"||M.TERM==="xterm-ghostty"||M.TERM==="wezterm")return 3;if("TERM_PROGRAM"in M){let o=Number((M.TERM_PROGRAM_VERSION||"").split(".",1)[0]);switch(M.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(?:color)?$/iv.test(M.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/iv.test(M.TERM)||"COLORTERM"in M?1:s}function Jl(n,e={}){let t=Vh(n,{streamIsTTY:n&&n.isTTY,...e});return $h(t)}var Hh={stdout:Jl({isTTY:ri.default.isatty(1)}),stderr:Jl({isTTY:ri.default.isatty(2)})},Ql=Hh;0&&(module.exports={StreamZip,WebSocket,ZipFile,convertSourceMap,decode,diffSequence,findUpSync,minimatch,parseCss,supportsColor});
34
+ /*! Bundled license information:
35
+
36
+ node-stream-zip/node_stream_zip.js:
37
+ (**
38
+ * @license node-stream-zip | (c) 2020 Antelle | https://github.com/antelle/node-stream-zip/blob/master/LICENSE
39
+ * Portions copyright https://github.com/cthackers/adm-zip | https://raw.githubusercontent.com/cthackers/adm-zip/master/LICENSE
40
+ *)
41
+ */