monocart-coverage-reports 2.8.4 → 2.8.6

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,42 +1,45 @@
1
- var yh=Object.create;var li=Object.defineProperty;var vh=Object.getOwnPropertyDescriptor;var _h=Object.getOwnPropertyNames;var bh=Object.getPrototypeOf,Sh=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ci=(e,t)=>{for(var i in t)li(e,i,{get:t[i],enumerable:!0})},Vs=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of _h(t))!Sh.call(e,s)&&s!==i&&li(e,s,{get:()=>t[s],enumerable:!(r=vh(t,s))||r.enumerable});return e};var $=(e,t,i)=>(i=e!=null?yh(bh(e)):{},Vs(t||!e||!e.__esModule?li(i,"default",{value:e,enumerable:!0}):i,e)),wh=e=>Vs(li({},"__esModule",{value:!0}),e);var Us=w(q=>{"use strict";Object.defineProperty(q,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg}});Object.defineProperty(q,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg}});var fi;typeof Buffer<"u"?typeof Buffer.from=="function"?fi=Ch:fi=Eh:fi=kh;function Ch(e){return Buffer.from(e,"base64").toString()}function Eh(e){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(e,"base64").toString()}function kh(e){return decodeURIComponent(escape(atob(e)))}function Ah(e){return e.split(",").pop()}function Nh(e,t){var i=q.mapFileCommentRegex.exec(e),r=i[1]||i[2];try{var e=t(r);return e!=null&&typeof e.catch=="function"?e.catch(s):e}catch(n){s(n)}function s(n){throw new Error("An error occurred while trying to read the map file at "+r+`
2
- `+n.stack)}}function X(e,t){t=t||{},t.hasComment&&(e=Ah(e)),t.encoding==="base64"?e=fi(e):t.encoding==="uri"&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}X.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};typeof Buffer<"u"?typeof Buffer.from=="function"?X.prototype.toBase64=Ih:X.prototype.toBase64=Lh:X.prototype.toBase64=Ph;function Ih(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function Lh(){var e=this.toJSON();if(typeof e=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}function Ph(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}X.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};X.prototype.toComment=function(e){var t,i,r;return e!=null&&e.encoding==="uri"?(t="",i=this.toURI()):(t=";base64",i=this.toBase64()),r="sourceMappingURL=data:application/json;charset=utf-8"+t+","+i,e!=null&&e.multiline?"/*# "+r+" */":"//# "+r};X.prototype.toObject=function(){return JSON.parse(this.toJSON())};X.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};X.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this};X.prototype.getProperty=function(e){return this.sourcemap[e]};q.fromObject=function(e){return new X(e)};q.fromJSON=function(e){return new X(e,{isJSON:!0})};q.fromURI=function(e){return new X(e,{encoding:"uri"})};q.fromBase64=function(e){return new X(e,{encoding:"base64"})};q.fromComment=function(e){var t,i;return e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),t=q.commentRegex.exec(e),i=t&&t[4]||"uri",new X(e,{encoding:i,hasComment:!0})};function Ds(e){return new X(e,{isJSON:!0})}q.fromMapFileComment=function(e,t){if(typeof t=="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 i=Nh(e,t);return i!=null&&typeof i.then=="function"?i.then(Ds):Ds(i)};q.fromSource=function(e){var t=e.match(q.commentRegex);return t?q.fromComment(t.pop()):null};q.fromMapFileSource=function(e,t){if(typeof t=="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 i=e.match(q.mapFileCommentRegex);return i?q.fromMapFileComment(i.pop(),t):null};q.removeComments=function(e){return e.replace(q.commentRegex,"")};q.removeMapFileComments=function(e){return e.replace(q.mapFileCommentRegex,"")};q.generateMapFileComment=function(e,t){var i="sourceMappingURL="+e;return t&&t.multiline?"/*# "+i+" */":"//# "+i}});var pi=w(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});function Fh(e,t){return e.url===t.url?0:e.url<t.url?-1:1}At.compareScriptCovs=Fh;function Bh(e,t){return zs(e.ranges[0],t.ranges[0])}At.compareFunctionCovs=Bh;function zs(e,t){return e.startOffset!==t.startOffset?e.startOffset-t.startOffset:t.endOffset-e.endOffset}At.compareRangeCovs=zs});var Hs=w(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});var Vh=pi();function Dh(e){return $s(e).join(`
3
- `)}nt.emitForest=Dh;function $s(e){let t=Uh(e);return[$h(t),...e.map(r=>qh(r,t).join(`
4
- `))]}nt.emitForestLines=$s;function Uh(e){let t=new Set;for(let a of e){let o=[a];for(;o.length>0;){let h=o.pop();t.add(h.start),t.add(h.end);for(let l of h.children)o.push(l)}}let i=[...t];i.sort((a,o)=>a-o);let r=1;for(let a of i)r=Math.max(r,a.toString(10).length);let s=r+3,n=new Map;for(let[a,o]of i.entries())n.set(o,a*s);return n}function qh(e,t){let i=[],r=[e];for(;r.length>0;){let s=r;i.push(s),r=[];for(let n of s)for(let a of n.children)r.push(a)}return i.map(s=>Wh(s,t))}function jh(e,t){let i=[];for(let r of e.split(`
5
- `))for(let s of Gh(r,t))i.push(s);return i.sort(Vh.compareRangeCovs),i}nt.parseFunctionRanges=jh;function Wh(e,t){let i=[],r=0;for(let{start:s,end:n,count:a}of e){let o=t.get(s),h=t.get(n);o>r&&i.push(" ".repeat(o-r)),i.push(zh(a,h-o)),r=h}return i.join("")}function Gh(e,t){let i=[],r=/\[(\d+)-*\)/gs;for(;;){let s=r.exec(e);if(s===null)break;let n=s.index,a=n+s[0].length,o=parseInt(s[1],10),h=t.get(n),l=t.get(a);if(h===void 0||l===void 0)throw new Error(`Invalid offsets for: ${JSON.stringify(e)}`);i.push({startOffset:h,endOffset:l,count:o})}return i}function zh(e,t){let i=`[${e.toString(10)}`,r=")",s=t-(i.length+r.length),n="-".repeat(Math.max(0,s));return`${i}${n}${r}`}function $h(e){let t="";for(let[i,r]of e)t.length<r&&(t+=" ".repeat(r-t.length)),t+=i.toString(10);return t}function Hh(e){let t=new Map,i=/\d+/gs;for(;;){let r=i.exec(e);if(r===null)break;t.set(r.index,parseInt(r[0],10))}return t}nt.parseOffsets=Hh});var Js=w(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});function Qh(e){let t=[];for(let i of e.result)t.push(Qs(i));return{result:t}}at.cloneProcessCov=Qh;function Qs(e){let t=[];for(let i of e.functions)t.push(Ys(i));return{scriptId:e.scriptId,url:e.url,functions:t}}at.cloneScriptCov=Qs;function Ys(e){let t=[];for(let i of e.ranges)t.push(Ks(i));return{functionName:e.functionName,ranges:t,isBlockCoverage:e.isBlockCoverage}}at.cloneFunctionCov=Ys;function Ks(e){return{startOffset:e.startOffset,endOffset:e.endOffset,count:e.count}}at.cloneRangeCov=Ks});var di=w(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var rr=class e{constructor(t,i,r,s){this.start=t,this.end=i,this.delta=r,this.children=s}static fromSortedRanges(t){let i,r=[];for(let s of t){let n=new e(s.startOffset,s.endOffset,s.count,[]);if(i===void 0){i=n,r.push([n,s.count]);continue}let a,o;for(;[a,o]=r[r.length-1],!(s.startOffset<a.end);)r.pop();n.delta-=o,a.children.push(n),r.push([n,s.count])}return i}normalize(){let t=[],i,r,s=[];for(let a of this.children)r===void 0?r=a:a.delta===r.delta&&a.start===i?s.push(a):(n(),r=a),i=a.end;if(r!==void 0&&n(),t.length===1){let a=t[0];if(a.start===this.start&&a.end===this.end){this.delta+=a.delta,this.children=a.children;return}}this.children=t;function n(){if(s.length!==0){r.end=s[s.length-1].end;for(let a of s)for(let o of a.children)o.delta+=a.delta-r.delta,r.children.push(o);s.length=0}r.normalize(),t.push(r)}}split(t){let i=this.children.length,r;for(let o=0;o<this.children.length;o++){let h=this.children[o];if(h.start<t&&t<h.end){r=h.split(t),i=o+1;break}else if(h.start>=t){i=o;break}}let s=this.children.length-i,n=this.children.splice(i,s);r!==void 0&&n.unshift(r);let a=new e(t,this.end,this.delta,n);return this.end=t,a}toRanges(){let t=[],i=[[this,0]];for(;i.length>0;){let[r,s]=i.pop(),n=s+r.delta;t.push({startOffset:r.start,endOffset:r.end,count:n});for(let a=r.children.length-1;a>=0;a--)i.push([r.children[a],n])}return t}};sr.RangeTree=rr});var sn=w(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});var nr=pi(),Yh=di();function Xs(e){e.result.sort(nr.compareScriptCovs);for(let[t,i]of e.result.entries())i.scriptId=t.toString(10)}Ve.normalizeProcessCov=Xs;function Kh(e){for(let t of e.result)en(t);Xs(e)}Ve.deepNormalizeProcessCov=Kh;function Zs(e){e.functions.sort(nr.compareFunctionCovs)}Ve.normalizeScriptCov=Zs;function en(e){for(let t of e.functions)tn(t);Zs(e)}Ve.deepNormalizeScriptCov=en;function tn(e){e.ranges.sort(nr.compareRangeCovs);let t=Yh.RangeTree.fromSortedRanges(e.ranges);rn(t),e.ranges=t.toRanges()}Ve.normalizeFunctionCov=tn;function rn(e){e.normalize()}Ve.normalizeRangeTree=rn});var ln=w(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});var Nt=sn(),or=di();function Jh(e){if(e.length===0)return{result:[]};let t=new Map;for(let s of e)for(let n of s.result){let a=t.get(n.url);a===void 0&&(a=[],t.set(n.url,a)),a.push(n)}let i=[];for(let s of t.values())i.push(on(s));let r={result:i};return Nt.normalizeProcessCov(r),r}It.mergeProcessCovs=Jh;function on(e){if(e.length===0)return;if(e.length===1){let o=e[0];return Nt.deepNormalizeScriptCov(o),o}let t=e[0],i=t.scriptId,r=t.url,s=new Map;for(let o of e)for(let h of o.functions){let l=Xh(h),c=s.get(l);if(c===void 0||!c[0].isBlockCoverage&&h.isBlockCoverage)c=[],s.set(l,c);else if(c[0].isBlockCoverage&&!h.isBlockCoverage)continue;c.push(h)}let n=[];for(let o of s.values())n.push(un(o));let a={scriptId:i,url:r,functions:n};return Nt.normalizeScriptCov(a),a}It.mergeScriptCovs=on;function Xh(e){let t=e.ranges[0];return`${t.startOffset.toString(10)};${t.endOffset.toString(10)}`}function un(e){if(e.length===0)return;if(e.length===1){let o=e[0];return Nt.normalizeFunctionCov(o),o}let t=e[0].functionName,i=[];for(let o of e)i.push(or.RangeTree.fromSortedRanges(o.ranges));let r=hn(i);Nt.normalizeRangeTree(r);let s=r.toRanges(),n=!(s.length===1&&s[0].count===0);return{functionName:t,ranges:s,isBlockCoverage:n}}It.mergeFunctionCovs=un;function hn(e){if(e.length<=1)return e[0];let t=e[0],i=0;for(let s of e)i+=s.delta;let r=Zh(e);return new or.RangeTree(t.start,t.end,i,r)}var mi=class{constructor(t,i){this.parentIndex=t,this.tree=i}},ot=class{constructor(t,i){this.offset=t,this.trees=i}static compare(t,i){return t.offset-i.offset}},ar=class e{constructor(t){this.queue=t,this.nextIndex=0,this.pendingOffset=0,this.pendingTrees=void 0}static fromParentTrees(t){let i=new Map;for(let[s,n]of t.entries())for(let a of n.children){let o=i.get(a.start);o===void 0&&(o=[],i.set(a.start,o)),o.push(new mi(s,a))}let r=[];for(let[s,n]of i)r.push(new ot(s,n));return r.sort(ot.compare),new e(r)}setPendingOffset(t){this.pendingOffset=t}pushPendingTree(t){this.pendingTrees===void 0&&(this.pendingTrees=[]),this.pendingTrees.push(t)}next(){let t=this.pendingTrees,i=this.queue[this.nextIndex];if(t===void 0)return this.nextIndex++,i;if(i===void 0)return this.pendingTrees=void 0,new ot(this.pendingOffset,t);if(this.pendingOffset<i.offset)return this.pendingTrees=void 0,new ot(this.pendingOffset,t);if(this.pendingOffset===i.offset){this.pendingTrees=void 0;for(let r of t)i.trees.push(r)}return this.nextIndex++,i}};function Zh(e){let t=[],i=ar.fromParentTrees(e),r=new Map,s;for(;;){let n=i.next();if(n===void 0)break;if(s!==void 0&&s.end<=n.offset&&(t.push(an(s,r)),s=void 0),s===void 0){let a=n.offset+1;for(let{parentIndex:o,tree:h}of n.trees)a=Math.max(a,h.end),nn(r,o,h);i.setPendingOffset(a),s={start:n.offset,end:a}}else for(let{parentIndex:a,tree:o}of n.trees){if(o.end>s.end){let h=o.split(s.end);i.pushPendingTree(new mi(a,h))}nn(r,a,o)}}return s!==void 0&&t.push(an(s,r)),t}function nn(e,t,i){let r=e.get(t);r===void 0&&(r=[],e.set(t,r)),r.push(i)}function an(e,t){let i=[];for(let r of t.values())r.length===1&&r[0].start===e.start&&r[0].end===e.end?i.push(r[0]):i.push(new or.RangeTree(e.start,e.end,0,r));return t.clear(),hn(i)}});var cn=w(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});var gi=Hs();H.emitForest=gi.emitForest;H.emitForestLines=gi.emitForestLines;H.parseFunctionRanges=gi.parseFunctionRanges;H.parseOffsets=gi.parseOffsets;var xi=Js();H.cloneFunctionCov=xi.cloneFunctionCov;H.cloneProcessCov=xi.cloneProcessCov;H.cloneScriptCov=xi.cloneScriptCov;H.cloneRangeCov=xi.cloneRangeCov;var ur=pi();H.compareScriptCovs=ur.compareScriptCovs;H.compareFunctionCovs=ur.compareFunctionCovs;H.compareRangeCovs=ur.compareRangeCovs;var hr=ln();H.mergeFunctionCovs=hr.mergeFunctionCovs;H.mergeProcessCovs=hr.mergeProcessCovs;H.mergeScriptCovs=hr.mergeScriptCovs;var el=di();H.RangeTree=el.RangeTree});var Ar=w((Od,kr)=>{"use strict";kr.exports.isClean=Symbol("isClean");kr.exports.my=Symbol("my")});var Ir=w((Td,Nr)=>{var ea=process.argv||[],Ni=process.env,Ql=!("NO_COLOR"in Ni||ea.includes("--no-color"))&&("FORCE_COLOR"in Ni||ea.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&Ni.TERM!=="dumb"||"CI"in Ni),Yl=(e,t,i=e)=>r=>{let s=""+r,n=s.indexOf(t,e.length);return~n?e+Kl(s,t,i,n)+t:e+s+t},Kl=(e,t,i,r)=>{let s="",n=0;do s+=e.substring(n,r)+i,n=r+t.length,r=e.indexOf(t,n);while(~r);return s+e.substring(n)},ta=(e=Ql)=>{let t=e?Yl:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};Nr.exports=ta();Nr.exports.createColors=ta});var Lr=w((Rd,ra)=>{"use strict";var Ii=/[\t\n\f\r "#'()/;[\\\]{}]/g,Li=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jl=/.[\r\n"'(/\\]/,ia=/[\da-f]/i;ra.exports=function(t,i={}){let r=t.css.valueOf(),s=i.ignoreErrors,n,a,o,h,l,c,f,p,d,m,g=r.length,x=0,b=[],C=[];function A(){return x}function k(U){throw t.error("Unclosed "+U,x)}function R(){return C.length===0&&x>=g}function N(U){if(C.length)return C.pop();if(x>=g)return;let F=U?U.ignoreUnclosed:!1;switch(n=r.charCodeAt(x),n){case 10:case 32:case 9:case 13:case 12:{a=x;do a+=1,n=r.charCodeAt(a);while(n===32||n===10||n===9||n===13||n===12);m=["space",r.slice(x,a)],x=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let J=String.fromCharCode(n);m=[J,J,x];break}case 40:{if(p=b.length?b.pop()[1]:"",d=r.charCodeAt(x+1),p==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){a=x;do{if(c=!1,a=r.indexOf(")",a+1),a===-1)if(s||F){a=x;break}else k("bracket");for(f=a;r.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["brackets",r.slice(x,a+1),x,a],x=a}else a=r.indexOf(")",x+1),h=r.slice(x,a+1),a===-1||Jl.test(h)?m=["(","(",x]:(m=["brackets",h,x,a],x=a);break}case 39:case 34:{o=n===39?"'":'"',a=x;do{if(c=!1,a=r.indexOf(o,a+1),a===-1)if(s||F){a=x+1;break}else k("string");for(f=a;r.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["string",r.slice(x,a+1),x,a],x=a;break}case 64:{Ii.lastIndex=x+1,Ii.test(r),Ii.lastIndex===0?a=r.length-1:a=Ii.lastIndex-2,m=["at-word",r.slice(x,a+1),x,a],x=a;break}case 92:{for(a=x,l=!0;r.charCodeAt(a+1)===92;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(a+=1,ia.test(r.charAt(a)))){for(;ia.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}m=["word",r.slice(x,a+1),x,a],x=a;break}default:{n===47&&r.charCodeAt(x+1)===42?(a=r.indexOf("*/",x+2)+1,a===0&&(s||F?a=r.length:k("comment")),m=["comment",r.slice(x,a+1),x,a],x=a):(Li.lastIndex=x+1,Li.test(r),Li.lastIndex===0?a=r.length-1:a=Li.lastIndex-2,m=["word",r.slice(x,a+1),x,a],b.push(m),x=a);break}}return x++,m}function G(U){C.push(U)}return{back:G,endOfFile:R,nextToken:N,position:A}}});var Pr=w((Md,aa)=>{"use strict";var re=Ir(),Xl=Lr(),sa;function Zl(e){sa=e}var ec={";":re.yellow,":":re.yellow,"(":re.cyan,")":re.cyan,"[":re.yellow,"]":re.yellow,"{":re.yellow,"}":re.yellow,"at-word":re.cyan,brackets:re.cyan,call:re.cyan,class:re.yellow,comment:re.gray,hash:re.magenta,string:re.green};function tc([e,t],i){if(e==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!i.endOfFile()){let r=i.nextToken();if(i.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return e}function na(e){let t=Xl(new sa(e),{ignoreErrors:!0}),i="";for(;!t.endOfFile();){let r=t.nextToken(),s=ec[tc(r,t)];s?i+=r[1].split(/\r?\n/).map(n=>s(n)).join(`
6
- `):i+=r[1]}return i}na.registerInput=Zl;aa.exports=na});var Or=w((Fd,ha)=>{"use strict";var oa=Ir(),ua=Pr(),Ft=class e extends Error{constructor(t,i,r,s,n,a){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),s&&(this.source=s),a&&(this.plugin=a),typeof i<"u"&&typeof r<"u"&&(typeof i=="number"?(this.line=i,this.column=r):(this.line=i.line,this.column=i.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}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(t){if(!this.source)return"";let i=this.source;t==null&&(t=oa.isColorSupported),ua&&t&&(i=ua(i));let r=i.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),a=String(n).length,o,h;if(t){let{bold:l,gray:c,red:f}=oa.createColors(!0);o=p=>l(f(p)),h=p=>c(p)}else o=h=l=>l;return r.slice(s,n).map((l,c)=>{let f=s+1+c,p=" "+(" "+f).slice(-a)+" | ";if(f===this.line){let d=h(p.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(p)+l+`
1
+ var wh=Object.create;var fi=Object.defineProperty;var Ch=Object.getOwnPropertyDescriptor;var Eh=Object.getOwnPropertyNames;var kh=Object.getPrototypeOf,Ah=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pi=(e,t)=>{for(var i in t)fi(e,i,{get:t[i],enumerable:!0})},Ws=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Eh(t))!Ah.call(e,s)&&s!==i&&fi(e,s,{get:()=>t[s],enumerable:!(r=Ch(t,s))||r.enumerable});return e};var H=(e,t,i)=>(i=e!=null?wh(kh(e)):{},Ws(t||!e||!e.__esModule?fi(i,"default",{value:e,enumerable:!0}):i,e)),Nh=e=>Ws(fi({},"__esModule",{value:!0}),e);var zs=w(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 di;typeof Buffer<"u"?typeof Buffer.from=="function"?di=Ih:di=Ph:di=Lh;function Ih(e){return Buffer.from(e,"base64").toString()}function Ph(e){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(e,"base64").toString()}function Lh(e){return decodeURIComponent(escape(atob(e)))}function Oh(e){return e.split(",").pop()}function Th(e,t){var i=U.mapFileCommentRegex.exec(e),r=i[1]||i[2];try{var e=t(r);return e!=null&&typeof e.catch=="function"?e.catch(s):e}catch(n){s(n)}function s(n){throw new Error("An error occurred while trying to read the map file at "+r+`
2
+ `+n.stack)}}function X(e,t){t=t||{},t.hasComment&&(e=Oh(e)),t.encoding==="base64"?e=di(e):t.encoding==="uri"&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}X.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};typeof Buffer<"u"?typeof Buffer.from=="function"?X.prototype.toBase64=Rh:X.prototype.toBase64=Mh:X.prototype.toBase64=Fh;function Rh(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function Mh(){var e=this.toJSON();if(typeof e=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}function Fh(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}X.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};X.prototype.toComment=function(e){var t,i,r;return e!=null&&e.encoding==="uri"?(t="",i=this.toURI()):(t=";base64",i=this.toBase64()),r="sourceMappingURL=data:application/json;charset=utf-8"+t+","+i,e!=null&&e.multiline?"/*# "+r+" */":"//# "+r};X.prototype.toObject=function(){return JSON.parse(this.toJSON())};X.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};X.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this};X.prototype.getProperty=function(e){return this.sourcemap[e]};U.fromObject=function(e){return new X(e)};U.fromJSON=function(e){return new X(e,{isJSON:!0})};U.fromURI=function(e){return new X(e,{encoding:"uri"})};U.fromBase64=function(e){return new X(e,{encoding:"base64"})};U.fromComment=function(e){var t,i;return e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),t=U.commentRegex.exec(e),i=t&&t[4]||"uri",new X(e,{encoding:i,hasComment:!0})};function Gs(e){return new X(e,{isJSON:!0})}U.fromMapFileComment=function(e,t){if(typeof t=="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 i=Th(e,t);return i!=null&&typeof i.then=="function"?i.then(Gs):Gs(i)};U.fromSource=function(e){var t=e.match(U.commentRegex);return t?U.fromComment(t.pop()):null};U.fromMapFileSource=function(e,t){if(typeof t=="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 i=e.match(U.mapFileCommentRegex);return i?U.fromMapFileComment(i.pop(),t):null};U.removeComments=function(e){return e.replace(U.commentRegex,"")};U.removeMapFileComments=function(e){return e.replace(U.mapFileCommentRegex,"")};U.generateMapFileComment=function(e,t){var i="sourceMappingURL="+e;return t&&t.multiline?"/*# "+i+" */":"//# "+i}});var mi=w(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});function qh(e,t){return e.url===t.url?0:e.url<t.url?-1:1}It.compareScriptCovs=qh;function jh(e,t){return Ks(e.ranges[0],t.ranges[0])}It.compareFunctionCovs=jh;function Ks(e,t){return e.startOffset!==t.startOffset?e.startOffset-t.startOffset:t.endOffset-e.endOffset}It.compareRangeCovs=Ks});var Xs=w(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Wh=mi();function Gh(e){return Js(e).join(`
3
+ `)}at.emitForest=Gh;function Js(e){let t=zh(e);return[Jh(t),...e.map(r=>$h(r,t).join(`
4
+ `))]}at.emitForestLines=Js;function zh(e){let t=new Set;for(let a of e){let o=[a];for(;o.length>0;){let h=o.pop();t.add(h.start),t.add(h.end);for(let l of h.children)o.push(l)}}let i=[...t];i.sort((a,o)=>a-o);let r=1;for(let a of i)r=Math.max(r,a.toString(10).length);let s=r+3,n=new Map;for(let[a,o]of i.entries())n.set(o,a*s);return n}function $h(e,t){let i=[],r=[e];for(;r.length>0;){let s=r;i.push(s),r=[];for(let n of s)for(let a of n.children)r.push(a)}return i.map(s=>Qh(s,t))}function Hh(e,t){let i=[];for(let r of e.split(`
5
+ `))for(let s of Yh(r,t))i.push(s);return i.sort(Wh.compareRangeCovs),i}at.parseFunctionRanges=Hh;function Qh(e,t){let i=[],r=0;for(let{start:s,end:n,count:a}of e){let o=t.get(s),h=t.get(n);o>r&&i.push(" ".repeat(o-r)),i.push(Kh(a,h-o)),r=h}return i.join("")}function Yh(e,t){let i=[],r=/\[(\d+)-*\)/gs;for(;;){let s=r.exec(e);if(s===null)break;let n=s.index,a=n+s[0].length,o=parseInt(s[1],10),h=t.get(n),l=t.get(a);if(h===void 0||l===void 0)throw new Error(`Invalid offsets for: ${JSON.stringify(e)}`);i.push({startOffset:h,endOffset:l,count:o})}return i}function Kh(e,t){let i=`[${e.toString(10)}`,r=")",s=t-(i.length+r.length),n="-".repeat(Math.max(0,s));return`${i}${n}${r}`}function Jh(e){let t="";for(let[i,r]of e)t.length<r&&(t+=" ".repeat(r-t.length)),t+=i.toString(10);return t}function Xh(e){let t=new Map,i=/\d+/gs;for(;;){let r=i.exec(e);if(r===null)break;t.set(r.index,parseInt(r[0],10))}return t}at.parseOffsets=Xh});var rn=w(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});function Zh(e){let t=[];for(let i of e.result)t.push(Zs(i));return{result:t}}ot.cloneProcessCov=Zh;function Zs(e){let t=[];for(let i of e.functions)t.push(en(i));return{scriptId:e.scriptId,url:e.url,functions:t}}ot.cloneScriptCov=Zs;function en(e){let t=[];for(let i of e.ranges)t.push(tn(i));return{functionName:e.functionName,ranges:t,isBlockCoverage:e.isBlockCoverage}}ot.cloneFunctionCov=en;function tn(e){return{startOffset:e.startOffset,endOffset:e.endOffset,count:e.count}}ot.cloneRangeCov=tn});var gi=w(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var or=class e{constructor(t,i,r,s){this.start=t,this.end=i,this.delta=r,this.children=s}static fromSortedRanges(t){let i,r=[];for(let s of t){let n=new e(s.startOffset,s.endOffset,s.count,[]);if(i===void 0){i=n,r.push([n,s.count]);continue}let a,o;for(;[a,o]=r[r.length-1],!(s.startOffset<a.end);)r.pop();n.delta-=o,a.children.push(n),r.push([n,s.count])}return i}normalize(){let t=[],i,r,s=[];for(let a of this.children)r===void 0?r=a:a.delta===r.delta&&a.start===i?s.push(a):(n(),r=a),i=a.end;if(r!==void 0&&n(),t.length===1){let a=t[0];if(a.start===this.start&&a.end===this.end){this.delta+=a.delta,this.children=a.children;return}}this.children=t;function n(){if(s.length!==0){r.end=s[s.length-1].end;for(let a of s)for(let o of a.children)o.delta+=a.delta-r.delta,r.children.push(o);s.length=0}r.normalize(),t.push(r)}}split(t){let i=this.children.length,r;for(let o=0;o<this.children.length;o++){let h=this.children[o];if(h.start<t&&t<h.end){r=h.split(t),i=o+1;break}else if(h.start>=t){i=o;break}}let s=this.children.length-i,n=this.children.splice(i,s);r!==void 0&&n.unshift(r);let a=new e(t,this.end,this.delta,n);return this.end=t,a}toRanges(){let t=[],i=[[this,0]];for(;i.length>0;){let[r,s]=i.pop(),n=s+r.delta;t.push({startOffset:r.start,endOffset:r.end,count:n});for(let a=r.children.length-1;a>=0;a--)i.push([r.children[a],n])}return t}};ur.RangeTree=or});var hn=w(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});var hr=mi(),el=gi();function sn(e){e.result.sort(hr.compareScriptCovs);for(let[t,i]of e.result.entries())i.scriptId=t.toString(10)}De.normalizeProcessCov=sn;function tl(e){for(let t of e.result)an(t);sn(e)}De.deepNormalizeProcessCov=tl;function nn(e){e.functions.sort(hr.compareFunctionCovs)}De.normalizeScriptCov=nn;function an(e){for(let t of e.functions)on(t);nn(e)}De.deepNormalizeScriptCov=an;function on(e){e.ranges.sort(hr.compareRangeCovs);let t=el.RangeTree.fromSortedRanges(e.ranges);un(t),e.ranges=t.toRanges()}De.normalizeFunctionCov=on;function un(e){e.normalize()}De.normalizeRangeTree=un});var mn=w(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});var Pt=hn(),cr=gi();function il(e){if(e.length===0)return{result:[]};let t=new Map;for(let s of e)for(let n of s.result){let a=t.get(n.url);a===void 0&&(a=[],t.set(n.url,a)),a.push(n)}let i=[];for(let s of t.values())i.push(fn(s));let r={result:i};return Pt.normalizeProcessCov(r),r}Lt.mergeProcessCovs=il;function fn(e){if(e.length===0)return;if(e.length===1){let o=e[0];return Pt.deepNormalizeScriptCov(o),o}let t=e[0],i=t.scriptId,r=t.url,s=new Map;for(let o of e)for(let h of o.functions){let l=rl(h),c=s.get(l);if(c===void 0||!c[0].isBlockCoverage&&h.isBlockCoverage)c=[],s.set(l,c);else if(c[0].isBlockCoverage&&!h.isBlockCoverage)continue;c.push(h)}let n=[];for(let o of s.values())n.push(pn(o));let a={scriptId:i,url:r,functions:n};return Pt.normalizeScriptCov(a),a}Lt.mergeScriptCovs=fn;function rl(e){let t=e.ranges[0];return`${t.startOffset.toString(10)};${t.endOffset.toString(10)}`}function pn(e){if(e.length===0)return;if(e.length===1){let o=e[0];return Pt.normalizeFunctionCov(o),o}let t=e[0].functionName,i=[];for(let o of e)i.push(cr.RangeTree.fromSortedRanges(o.ranges));let r=dn(i);Pt.normalizeRangeTree(r);let s=r.toRanges(),n=!(s.length===1&&s[0].count===0);return{functionName:t,ranges:s,isBlockCoverage:n}}Lt.mergeFunctionCovs=pn;function dn(e){if(e.length<=1)return e[0];let t=e[0],i=0;for(let s of e)i+=s.delta;let r=sl(e);return new cr.RangeTree(t.start,t.end,i,r)}var xi=class{constructor(t,i){this.parentIndex=t,this.tree=i}},ut=class{constructor(t,i){this.offset=t,this.trees=i}static compare(t,i){return t.offset-i.offset}},lr=class e{constructor(t){this.queue=t,this.nextIndex=0,this.pendingOffset=0,this.pendingTrees=void 0}static fromParentTrees(t){let i=new Map;for(let[s,n]of t.entries())for(let a of n.children){let o=i.get(a.start);o===void 0&&(o=[],i.set(a.start,o)),o.push(new xi(s,a))}let r=[];for(let[s,n]of i)r.push(new ut(s,n));return r.sort(ut.compare),new e(r)}setPendingOffset(t){this.pendingOffset=t}pushPendingTree(t){this.pendingTrees===void 0&&(this.pendingTrees=[]),this.pendingTrees.push(t)}next(){let t=this.pendingTrees,i=this.queue[this.nextIndex];if(t===void 0)return this.nextIndex++,i;if(i===void 0)return this.pendingTrees=void 0,new ut(this.pendingOffset,t);if(this.pendingOffset<i.offset)return this.pendingTrees=void 0,new ut(this.pendingOffset,t);if(this.pendingOffset===i.offset){this.pendingTrees=void 0;for(let r of t)i.trees.push(r)}return this.nextIndex++,i}};function sl(e){let t=[],i=lr.fromParentTrees(e),r=new Map,s;for(;;){let n=i.next();if(n===void 0)break;if(s!==void 0&&s.end<=n.offset&&(t.push(cn(s,r)),s=void 0),s===void 0){let a=n.offset+1;for(let{parentIndex:o,tree:h}of n.trees)a=Math.max(a,h.end),ln(r,o,h);i.setPendingOffset(a),s={start:n.offset,end:a}}else for(let{parentIndex:a,tree:o}of n.trees){if(o.end>s.end){let h=o.split(s.end);i.pushPendingTree(new xi(a,h))}ln(r,a,o)}}return s!==void 0&&t.push(cn(s,r)),t}function ln(e,t,i){let r=e.get(t);r===void 0&&(r=[],e.set(t,r)),r.push(i)}function cn(e,t){let i=[];for(let r of t.values())r.length===1&&r[0].start===e.start&&r[0].end===e.end?i.push(r[0]):i.push(new cr.RangeTree(e.start,e.end,0,r));return t.clear(),dn(i)}});var gn=w(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var yi=Xs();Q.emitForest=yi.emitForest;Q.emitForestLines=yi.emitForestLines;Q.parseFunctionRanges=yi.parseFunctionRanges;Q.parseOffsets=yi.parseOffsets;var vi=rn();Q.cloneFunctionCov=vi.cloneFunctionCov;Q.cloneProcessCov=vi.cloneProcessCov;Q.cloneScriptCov=vi.cloneScriptCov;Q.cloneRangeCov=vi.cloneRangeCov;var fr=mi();Q.compareScriptCovs=fr.compareScriptCovs;Q.compareFunctionCovs=fr.compareFunctionCovs;Q.compareRangeCovs=fr.compareRangeCovs;var pr=mn();Q.mergeFunctionCovs=pr.mergeFunctionCovs;Q.mergeProcessCovs=pr.mergeProcessCovs;Q.mergeScriptCovs=pr.mergeScriptCovs;var nl=gi();Q.RangeTree=nl.RangeTree});var Or=w((Dd,Lr)=>{"use strict";Lr.exports.isClean=Symbol("isClean");Lr.exports.my=Symbol("my")});var Rr=w((Vd,Tr)=>{var na=process.argv||[],Li=process.env,ec=!("NO_COLOR"in Li||na.includes("--no-color"))&&("FORCE_COLOR"in Li||na.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&Li.TERM!=="dumb"||"CI"in Li),tc=(e,t,i=e)=>r=>{let s=""+r,n=s.indexOf(t,e.length);return~n?e+ic(s,t,i,n)+t:e+s+t},ic=(e,t,i,r)=>{let s="",n=0;do s+=e.substring(n,r)+i,n=r+t.length,r=e.indexOf(t,n);while(~r);return s+e.substring(n)},aa=(e=ec)=>{let t=e?tc:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};Tr.exports=aa();Tr.exports.createColors=aa});var Mr=w((Ud,ua)=>{"use strict";var Oi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ti=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rc=/.[\r\n"'(/\\]/,oa=/[\da-f]/i;ua.exports=function(t,i={}){let r=t.css.valueOf(),s=i.ignoreErrors,n,a,o,h,l,c,f,p,d,m,g=r.length,x=0,b=[],C=[];function N(){return x}function k(q){throw t.error("Unclosed "+q,x)}function O(){return C.length===0&&x>=g}function A(q){if(C.length)return C.pop();if(x>=g)return;let F=q?q.ignoreUnclosed:!1;switch(n=r.charCodeAt(x),n){case 10:case 32:case 9:case 13:case 12:{a=x;do a+=1,n=r.charCodeAt(a);while(n===32||n===10||n===9||n===13||n===12);m=["space",r.slice(x,a)],x=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(n);m=[z,z,x];break}case 40:{if(p=b.length?b.pop()[1]:"",d=r.charCodeAt(x+1),p==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){a=x;do{if(c=!1,a=r.indexOf(")",a+1),a===-1)if(s||F){a=x;break}else k("bracket");for(f=a;r.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["brackets",r.slice(x,a+1),x,a],x=a}else a=r.indexOf(")",x+1),h=r.slice(x,a+1),a===-1||rc.test(h)?m=["(","(",x]:(m=["brackets",h,x,a],x=a);break}case 39:case 34:{o=n===39?"'":'"',a=x;do{if(c=!1,a=r.indexOf(o,a+1),a===-1)if(s||F){a=x+1;break}else k("string");for(f=a;r.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["string",r.slice(x,a+1),x,a],x=a;break}case 64:{Oi.lastIndex=x+1,Oi.test(r),Oi.lastIndex===0?a=r.length-1:a=Oi.lastIndex-2,m=["at-word",r.slice(x,a+1),x,a],x=a;break}case 92:{for(a=x,l=!0;r.charCodeAt(a+1)===92;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(a+=1,oa.test(r.charAt(a)))){for(;oa.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}m=["word",r.slice(x,a+1),x,a],x=a;break}default:{n===47&&r.charCodeAt(x+1)===42?(a=r.indexOf("*/",x+2)+1,a===0&&(s||F?a=r.length:k("comment")),m=["comment",r.slice(x,a+1),x,a],x=a):(Ti.lastIndex=x+1,Ti.test(r),Ti.lastIndex===0?a=r.length-1:a=Ti.lastIndex-2,m=["word",r.slice(x,a+1),x,a],b.push(m),x=a);break}}return x++,m}function G(q){C.push(q)}return{back:G,endOfFile:O,nextToken:A,position:N}}});var Fr=w((qd,ca)=>{"use strict";var re=Rr(),sc=Mr(),ha;function nc(e){ha=e}var ac={";":re.yellow,":":re.yellow,"(":re.cyan,")":re.cyan,"[":re.yellow,"]":re.yellow,"{":re.yellow,"}":re.yellow,"at-word":re.cyan,brackets:re.cyan,call:re.cyan,class:re.yellow,comment:re.gray,hash:re.magenta,string:re.green};function oc([e,t],i){if(e==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!i.endOfFile()){let r=i.nextToken();if(i.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return e}function la(e){let t=sc(new ha(e),{ignoreErrors:!0}),i="";for(;!t.endOfFile();){let r=t.nextToken(),s=ac[oc(r,t)];s?i+=r[1].split(/\r?\n/).map(n=>s(n)).join(`
6
+ `):i+=r[1]}return i}la.registerInput=nc;ca.exports=la});var Br=w((jd,da)=>{"use strict";var fa=Rr(),pa=Fr(),Dt=class e extends Error{constructor(t,i,r,s,n,a){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),s&&(this.source=s),a&&(this.plugin=a),typeof i<"u"&&typeof r<"u"&&(typeof i=="number"?(this.line=i,this.column=r):(this.line=i.line,this.column=i.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}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(t){if(!this.source)return"";let i=this.source;t==null&&(t=fa.isColorSupported),pa&&t&&(i=pa(i));let r=i.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),a=String(n).length,o,h;if(t){let{bold:l,gray:c,red:f}=fa.createColors(!0);o=p=>l(f(p)),h=p=>c(p)}else o=h=l=>l;return r.slice(s,n).map((l,c)=>{let f=s+1+c,p=" "+(" "+f).slice(-a)+" | ";if(f===this.line){let d=h(p.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(p)+l+`
7
7
  `+d+o("^")}return" "+h(p)+l}).join(`
8
8
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
9
9
 
10
10
  `+t+`
11
- `),this.name+": "+this.message+t}};ha.exports=Ft;Ft.default=Ft});var Tr=w((Bd,ca)=>{"use strict";var la={after:`
11
+ `),this.name+": "+this.message+t}};da.exports=Dt;Dt.default=Dt});var Dr=w((Wd,ga)=>{"use strict";var ma={after:`
12
12
  `,beforeClose:`
13
13
  `,beforeComment:`
14
14
  `,beforeDecl:`
15
15
  `,beforeOpen:" ",beforeRule:`
16
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ic(e){return e[0].toUpperCase()+e.slice(1)}var Bt=class{constructor(t){this.builder=t}atrule(t,i){let r="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:s&&(r+=" "),t.nodes)this.block(t,r+s);else{let n=(t.raws.between||"")+(i?";":"");this.builder(r+s+n,t)}}beforeAfter(t,i){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):i==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let s=t.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(r.includes(`
17
- `)){let a=this.raw(t,null,"indent");if(a.length)for(let o=0;o<n;o++)r+=a}return r}block(t,i){let r=this.raw(t,"between","beforeOpen");this.builder(i+r+"{",t,"start");let s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let r=this.raw(t,"semicolon");for(let s=0;s<t.nodes.length;s++){let n=t.nodes[s],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,i!==s||r)}}comment(t){let i=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+r+"*/",t)}decl(t,i){let r=this.raw(t,"between","colon"),s=t.prop+r+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),i&&(s+=";"),this.builder(s,t)}document(t){this.body(t)}raw(t,i,r){let s;if(r||(r=i),i&&(s=t.raws[i],typeof s<"u"))return s;let n=t.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===t||n&&n.type==="document"))return"";if(!n)return la[r];let a=t.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]<"u")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let o="raw"+ic(r);this[o]?s=this[o](a,t):a.walk(h=>{if(s=h.raws[i],typeof s<"u")return!1})}return typeof s>"u"&&(s=la[r]),a.rawCache[r]=s,s}rawBeforeClose(t){let i;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return i=r.raws.after,i.includes(`
16
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function uc(e){return e[0].toUpperCase()+e.slice(1)}var Vt=class{constructor(t){this.builder=t}atrule(t,i){let r="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:s&&(r+=" "),t.nodes)this.block(t,r+s);else{let n=(t.raws.between||"")+(i?";":"");this.builder(r+s+n,t)}}beforeAfter(t,i){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):i==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let s=t.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(r.includes(`
17
+ `)){let a=this.raw(t,null,"indent");if(a.length)for(let o=0;o<n;o++)r+=a}return r}block(t,i){let r=this.raw(t,"between","beforeOpen");this.builder(i+r+"{",t,"start");let s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let r=this.raw(t,"semicolon");for(let s=0;s<t.nodes.length;s++){let n=t.nodes[s],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,i!==s||r)}}comment(t){let i=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+r+"*/",t)}decl(t,i){let r=this.raw(t,"between","colon"),s=t.prop+r+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),i&&(s+=";"),this.builder(s,t)}document(t){this.body(t)}raw(t,i,r){let s;if(r||(r=i),i&&(s=t.raws[i],typeof s<"u"))return s;let n=t.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===t||n&&n.type==="document"))return"";if(!n)return ma[r];let a=t.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]<"u")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let o="raw"+uc(r);this[o]?s=this[o](a,t):a.walk(h=>{if(s=h.raws[i],typeof s<"u")return!1})}return typeof s>"u"&&(s=ma[r]),a.rawCache[r]=s,s}rawBeforeClose(t){let i;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return i=r.raws.after,i.includes(`
18
18
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawBeforeComment(t,i){let r;return t.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
19
19
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(i,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,i){let r;return t.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
20
20
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(i,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let i;return t.walk(r=>{if(r.type!=="decl"&&(i=r.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
21
21
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return i=r.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(i=r.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(r=>{let s=r.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
22
- `);return i=n[n.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(i=r.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let r=t[i],s=t.raws[i];return s&&s.value===r?s.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}};ca.exports=Bt;Bt.default=Bt});var pa=w((Vd,fa)=>{"use strict";var rc=Tr();function Rr(e,t){new rc(t).stringify(e)}fa.exports=Rr;Rr.default=Rr});var Oi=w((Dd,da)=>{"use strict";var{isClean:Pi,my:sc}=Ar(),nc=Or(),ac=Tr(),oc=pa();function Mr(e,t){let i=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let s=e[r],n=typeof s;r==="parent"&&n==="object"?t&&(i[r]=t):r==="source"?i[r]=s:Array.isArray(s)?i[r]=s.map(a=>Mr(a,i)):(n==="object"&&s!==null&&(s=Mr(s)),i[r]=s)}return i}var Vt=class{constructor(t={}){this.raws={},this[Pi]=!1,this[sc]=!0;for(let i in t)if(i==="nodes"){this.nodes=[];for(let r of t[i])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[i]=t[i]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let i=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${i.input.from}:${i.start.line}:${i.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let i in t)this[i]=t[i];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let i=Mr(this);for(let r in t)i[r]=t[r];return i}cloneAfter(t={}){let i=this.clone(t);return this.parent.insertAfter(this,i),i}cloneBefore(t={}){let i=this.clone(t);return this.parent.insertBefore(this,i),i}error(t,i={}){if(this.source){let{end:r,start:s}=this.rangeBy(i);return this.source.input.error(t,{column:s.column,line:s.line},{column:r.column,line:r.line},i)}return new nc(t)}getProxyProcessor(){return{get(t,i){return i==="proxyOf"?t:i==="root"?()=>t.root().toProxy():t[i]},set(t,i,r){return t[i]===r||(t[i]=r,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&t.markDirty()),!0}}}markDirty(){if(this[Pi]){this[Pi]=!1;let t=this;for(;t=t.parent;)t[Pi]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,i){let r=this.source.start;if(t.index)r=this.positionInside(t.index,i);else if(t.word){i=this.toString();let s=i.indexOf(t.word);s!==-1&&(r=this.positionInside(s,i))}return r}positionInside(t,i){let r=i||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let a=0;a<t;a++)r[a]===`
23
- `?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let i={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(t.word){let s=this.toString(),n=s.indexOf(t.word);n!==-1&&(i=this.positionInside(n,s),r=this.positionInside(n+t.word.length,s))}else t.start?i={column:t.start.column,line:t.start.line}:t.index&&(i=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line}),{end:r,start:i}}raw(t,i){return new ac().raw(this,t,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let i=this,r=!1;for(let s of t)s===this?r=!0:r?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,i){let r={},s=i==null;i=i||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))r[a]=o.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,i):h);else if(typeof o=="object"&&o.toJSON)r[a]=o.toJSON(null,i);else if(a==="source"){let h=i.get(o.input);h==null&&(h=n,i.set(o.input,n),n++),r[a]={end:o.end,inputId:h,start:o.start}}else r[a]=o}return s&&(r.inputs=[...i.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=oc){t.stringify&&(t=t.stringify);let i="";return t(this,r=>{i+=r}),i}warn(t,i,r){let s={node:this};for(let n in r)s[n]=r[n];return t.warn(i,s)}get proxyOf(){return this}};da.exports=Vt;Vt.default=Vt});var Fr=w((Ud,ma)=>{"use strict";var uc=Oi(),Dt=class extends uc{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};ma.exports=Dt;Dt.default=Dt});var Br=w((qd,ga)=>{"use strict";var hc=Oi(),Ut=class extends hc{constructor(t){super(t),this.type="comment"}};ga.exports=Ut;Ut.default=Ut});var qt=w((jd,Ea)=>{"use strict";var{isClean:xa,my:ya}=Ar(),va=Fr(),_a=Br(),lc=Oi(),ba,Vr,Dr,Sa;function wa(e){return e.map(t=>(t.nodes&&(t.nodes=wa(t.nodes)),delete t.source,t))}function Ca(e){if(e[xa]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ca(t)}var _e=class e extends lc{append(...t){for(let i of t){let r=this.normalize(i,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let i of this.nodes)i.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let i=this.getIterator(),r,s;for(;this.indexes[i]<this.proxyOf.nodes.length&&(r=this.indexes[i],s=t(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,i){return i==="proxyOf"?t:t[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?(...r)=>t[i](...r.map(s=>typeof s=="function"?(n,a)=>s(n.toProxy(),a):s)):i==="every"||i==="some"?r=>t[i]((s,...n)=>r(s.toProxy(),...n)):i==="root"?()=>t.root().toProxy():i==="nodes"?t.nodes.map(r=>r.toProxy()):i==="first"||i==="last"?t[i].toProxy():t[i]:t[i]},set(t,i,r){return t[i]===r||(t[i]=r,(i==="name"||i==="params"||i==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,i){let r=this.index(t),s=this.normalize(i,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let a of s)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+s.length);return this.markDirty(),this}insertBefore(t,i){let r=this.index(t),s=r===0?"prepend":!1,n=this.normalize(i,this.proxyOf.nodes[r],s).reverse();r=this.index(t);for(let o of n)this.proxyOf.nodes.splice(r,0,o);let a;for(let o in this.indexes)a=this.indexes[o],r<=a&&(this.indexes[o]=a+n.length);return this.markDirty(),this}normalize(t,i){if(typeof t=="string")t=wa(ba(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let s of t)s.parent&&s.parent.removeChild(s,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let s of t)s.parent&&s.parent.removeChild(s,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new va(t)]}else if(t.selector)t=[new Vr(t)];else if(t.name)t=[new Dr(t)];else if(t.text)t=[new _a(t)];else throw new Error("Unknown node type in node creation");return t.map(s=>(s[ya]||e.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[xa]&&Ca(s),typeof s.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(s.raws.before=i.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...t){t=t.reverse();for(let i of t){let r=this.normalize(i,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let i;for(let r in this.indexes)i=this.indexes[r],i>=t&&(this.indexes[r]=i-1);return this.markDirty(),this}replaceValues(t,i,r){return r||(r=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((i,r)=>{let s;try{s=t(i,r)}catch(n){throw i.addToError(n)}return s!==!1&&i.walk&&(s=i.walk(t)),s})}walkAtRules(t,i){return i?t instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&t.test(r.name))return i(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===t)return i(r,s)}):(i=t,this.walk((r,s)=>{if(r.type==="atrule")return i(r,s)}))}walkComments(t){return this.walk((i,r)=>{if(i.type==="comment")return t(i,r)})}walkDecls(t,i){return i?t instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&t.test(r.prop))return i(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===t)return i(r,s)}):(i=t,this.walk((r,s)=>{if(r.type==="decl")return i(r,s)}))}walkRules(t,i){return i?t instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&t.test(r.selector))return i(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===t)return i(r,s)}):(i=t,this.walk((r,s)=>{if(r.type==="rule")return i(r,s)}))}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]}};_e.registerParse=e=>{ba=e};_e.registerRule=e=>{Vr=e};_e.registerAtRule=e=>{Dr=e};_e.registerRoot=e=>{Sa=e};Ea.exports=_e;_e.default=_e;_e.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,Dr.prototype):e.type==="rule"?Object.setPrototypeOf(e,Vr.prototype):e.type==="decl"?Object.setPrototypeOf(e,va.prototype):e.type==="comment"?Object.setPrototypeOf(e,_a.prototype):e.type==="root"&&Object.setPrototypeOf(e,Sa.prototype),e[ya]=!0,e.nodes&&e.nodes.forEach(t=>{_e.rebuild(t)})}});var Na=w((Wd,Aa)=>{"use strict";var ka=qt(),pt=class extends ka{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Aa.exports=pt;pt.default=pt;ka.registerAtRule(pt)});var Ta=w((Gd,Oa)=>{"use strict";var Ia=qt(),La,Pa,We=class extends Ia{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,i,r){let s=super.normalize(t);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let n of s)n.raws.before=i.raws.before}return s}removeChild(t,i){let r=this.index(t);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new La(new Pa,this,t).stringify()}};We.registerLazyResult=e=>{La=e};We.registerProcessor=e=>{Pa=e};Oa.exports=We;We.default=We;Ia.registerRoot(We)});var Ma=w((zd,Ra)=>{"use strict";var jt={comma(e){return jt.split(e,[","],!0)},space(e){let t=[" ",`
24
- `," "];return jt.split(e,t)},split(e,t,i){let r=[],s="",n=!1,a=0,o=!1,h="",l=!1;for(let c of e)l?l=!1:c==="\\"?l=!0:o?c===h&&(o=!1):c==='"'||c==="'"?(o=!0,h=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&t.includes(c)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=c;return(i||s!=="")&&r.push(s.trim()),r}};Ra.exports=jt;jt.default=jt});var Va=w(($d,Ba)=>{"use strict";var Fa=qt(),cc=Ma(),dt=class extends Fa{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return cc.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,r=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};Ba.exports=dt;dt.default=dt;Fa.registerRule(dt)});var ja=w((Hd,qa)=>{"use strict";var fc=Fr(),pc=Lr(),dc=Br(),mc=Na(),gc=Ta(),Da=Va(),Ua={empty:!0,space:!0};function xc(e){for(let t=e.length-1;t>=0;t--){let i=e[t],r=i[3]||i[2];if(r)return r}}var Ur=class{constructor(t){this.input=t,this.root=new gc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let i=new mc;i.name=t[1].slice(1),i.name===""&&this.unnamedAtrule(i,t),this.init(i,t[2]);let r,s,n,a=!1,o=!1,h=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){i.source.end=this.getPosition(t[2]),i.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(h.length>0){for(n=h.length-1,s=h[n];s&&s[0]==="space";)s=h[--n];s&&(i.source.end=this.getPosition(s[3]||s[2]),i.source.end.offset++)}this.end(t);break}else h.push(t);else h.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(i.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(i,"params",h),a&&(t=h[h.length-1],i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(t){let i=this.colon(t);if(i===!1)return;let r=0,s;for(let n=i-1;n>=0&&(s=t[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(t){let i=0,r,s,n;for(let[a,o]of t.entries()){if(r=o,s=r[0],s==="("&&(i+=1),s===")"&&(i-=1),i===0&&s===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=r}return!1}comment(t){let i=new dc;this.init(i,t[2]),i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))i.text="",i.raws.left=r,i.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);i.text=s[2],i.raws.left=s[1],i.raws.right=s[3]}}createTokenizer(){this.tokenizer=pc(this.input)}decl(t,i){let r=new fc;this.init(r,t[0][2]);let s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||xc(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let l=t[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let n;for(;t.length;)if(n=t.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],o;for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)a.push(t.shift());this.precheckMissedSemicolon(t);for(let l=t.length-1;l>=0;l--){if(n=t[l],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(t,l);c=this.spacesFromEnd(t)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=t.slice(0),f="";for(let p=l;p>0;p--){let d=c[p][0];if(f.trim().indexOf("!")===0&&d!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,t=c)}if(n[0]!=="space"&&n[0]!=="comment")break}t.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),i),r.value.includes(":")&&!i&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let i=new Da;this.init(i,t[2]),i.selector="",i.raws.between="",this.current=i}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let i=this.input.fromOffset(t);return{column:i.col,line:i.line,offset:t}}init(t,i){this.current.push(t),t.source={input:this.input,start:this.getPosition(i)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let i=!1,r=null,s=!1,n=null,a=[],o=t[1].startsWith("--"),h=[],l=t;for(;l;){if(r=l[0],h.push(l),r==="("||r==="[")n||(n=l),a.push(r==="("?")":"]");else if(o&&s&&r==="{")n||(n=l),a.push("}");else if(a.length===0)if(r===";")if(s){this.decl(h,o);return}else break;else if(r==="{"){this.rule(h);return}else if(r==="}"){this.tokenizer.back(h.pop()),i=!0;break}else r===":"&&(s=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),a.length>0&&this.unclosedBracket(n),i&&s){if(!o)for(;h.length&&(l=h[h.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,i,r,s){let n,a,o=r.length,h="",l=!0,c,f;for(let p=0;p<o;p+=1)n=r[p],a=n[0],a==="space"&&p===o-1&&!s?l=!1:a==="comment"?(f=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!Ua[f]&&!Ua[c]?h.slice(-1)===","?l=!1:h+=n[1]:l=!1):h+=n[1];if(!l){let p=r.reduce((d,m)=>d+m[1],"");t.raws[i]={raw:p,value:h}}t[i]=h}rule(t){t.pop();let i=new Da;this.init(i,t[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(i,"selector",t),this.current=i}spacesAndCommentsFromEnd(t){let i,r="";for(;t.length&&(i=t[t.length-1][0],!(i!=="space"&&i!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let i,r="";for(;t.length&&(i=t[0][0],!(i!=="space"&&i!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let i,r="";for(;t.length&&(i=t[t.length-1][0],i==="space");)r=t.pop()[1]+r;return r}stringFrom(t,i){let r="";for(let s=i;s<t.length;s++)r+=t[s][1];return t.splice(i,t.length-i),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};qa.exports=Ur});var Ga=w(qr=>{var Wa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");qr.encode=function(e){if(0<=e&&e<Wa.length)return Wa[e];throw new TypeError("Must be between 0 and 63: "+e)};qr.decode=function(e){var t=65,i=90,r=97,s=122,n=48,a=57,o=43,h=47,l=26,c=52;return t<=e&&e<=i?e-t:r<=e&&e<=s?e-r+l:n<=e&&e<=a?e-n+c:e==o?62:e==h?63:-1}});var Gr=w(Wr=>{var za=Ga(),jr=5,$a=1<<jr,Ha=$a-1,Qa=$a;function yc(e){return e<0?(-e<<1)+1:(e<<1)+0}function vc(e){var t=(e&1)===1,i=e>>1;return t?-i:i}Wr.encode=function(t){var i="",r,s=yc(t);do r=s&Ha,s>>>=jr,s>0&&(r|=Qa),i+=za.encode(r);while(s>0);return i};Wr.decode=function(t,i,r){var s=t.length,n=0,a=0,o,h;do{if(i>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(h=za.decode(t.charCodeAt(i++)),h===-1)throw new Error("Invalid base64 digit: "+t.charAt(i-1));o=!!(h&Qa),h&=Ha,n=n+(h<<a),a+=jr}while(o);r.value=vc(n),r.rest=i}});var gt=w(z=>{function _c(e,t,i){if(t in e)return e[t];if(arguments.length===3)return i;throw new Error('"'+t+'" is a required argument.')}z.getArg=_c;var Ya=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,bc=/^data:.+\,.+$/;function Wt(e){var t=e.match(Ya);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}z.urlParse=Wt;function mt(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}z.urlGenerate=mt;var Sc=32;function wc(e){var t=[];return function(i){for(var r=0;r<t.length;r++)if(t[r].input===i){var s=t[0];return t[0]=t[r],t[r]=s,t[0].result}var n=e(i);return t.unshift({input:i,result:n}),t.length>Sc&&t.pop(),n}}var zr=wc(function(t){var i=t,r=Wt(t);if(r){if(!r.path)return t;i=r.path}for(var s=z.isAbsolute(i),n=[],a=0,o=0;;)if(a=o,o=i.indexOf("/",a),o===-1){n.push(i.slice(a));break}else for(n.push(i.slice(a,o));o<i.length&&i[o]==="/";)o++;for(var h,l=0,o=n.length-1;o>=0;o--)h=n[o],h==="."?n.splice(o,1):h===".."?l++:l>0&&(h===""?(n.splice(o+1,l),l=0):(n.splice(o,2),l--));return i=n.join("/"),i===""&&(i=s?"/":"."),r?(r.path=i,mt(r)):i});z.normalize=zr;function Ka(e,t){e===""&&(e="."),t===""&&(t=".");var i=Wt(t),r=Wt(e);if(r&&(e=r.path||"/"),i&&!i.scheme)return r&&(i.scheme=r.scheme),mt(i);if(i||t.match(bc))return t;if(r&&!r.host&&!r.path)return r.host=t,mt(r);var s=t.charAt(0)==="/"?t:zr(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=s,mt(r)):s}z.join=Ka;z.isAbsolute=function(e){return e.charAt(0)==="/"||Ya.test(e)};function Cc(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var i=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++i}return Array(i+1).join("../")+t.substr(e.length+1)}z.relative=Cc;var Ja=function(){var e=Object.create(null);return!("__proto__"in e)}();function Xa(e){return e}function Ec(e){return Za(e)?"$"+e:e}z.toSetString=Ja?Xa:Ec;function kc(e){return Za(e)?e.slice(1):e}z.fromSetString=Ja?Xa:kc;function Za(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var i=t-10;i>=0;i--)if(e.charCodeAt(i)!==36)return!1;return!0}function Ac(e,t,i){var r=Oe(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||i)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:Oe(e.name,t.name)}z.compareByOriginalPositions=Ac;function Nc(e,t,i){var r;return r=e.originalLine-t.originalLine,r!==0||(r=e.originalColumn-t.originalColumn,r!==0||i)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:Oe(e.name,t.name)}z.compareByOriginalPositionsNoSource=Nc;function Ic(e,t,i){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||i)||(r=Oe(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Oe(e.name,t.name)}z.compareByGeneratedPositionsDeflated=Ic;function Lc(e,t,i){var r=e.generatedColumn-t.generatedColumn;return r!==0||i||(r=Oe(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Oe(e.name,t.name)}z.compareByGeneratedPositionsDeflatedNoLine=Lc;function Oe(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Pc(e,t){var i=e.generatedLine-t.generatedLine;return i!==0||(i=e.generatedColumn-t.generatedColumn,i!==0)||(i=Oe(e.source,t.source),i!==0)||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0)?i:Oe(e.name,t.name)}z.compareByGeneratedPositionsInflated=Pc;function Oc(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}z.parseSourceMapInput=Oc;function Tc(e,t,i){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),i){var r=Wt(i);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}t=Ka(mt(r),t)}return zr(t)}z.computeSourceURL=Tc});var Qr=w(eo=>{var $r=gt(),Hr=Object.prototype.hasOwnProperty,Ze=typeof Map<"u";function Te(){this._array=[],this._set=Ze?new Map:Object.create(null)}Te.fromArray=function(t,i){for(var r=new Te,s=0,n=t.length;s<n;s++)r.add(t[s],i);return r};Te.prototype.size=function(){return Ze?this._set.size:Object.getOwnPropertyNames(this._set).length};Te.prototype.add=function(t,i){var r=Ze?t:$r.toSetString(t),s=Ze?this.has(t):Hr.call(this._set,r),n=this._array.length;(!s||i)&&this._array.push(t),s||(Ze?this._set.set(t,n):this._set[r]=n)};Te.prototype.has=function(t){if(Ze)return this._set.has(t);var i=$r.toSetString(t);return Hr.call(this._set,i)};Te.prototype.indexOf=function(t){if(Ze){var i=this._set.get(t);if(i>=0)return i}else{var r=$r.toSetString(t);if(Hr.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Te.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Te.prototype.toArray=function(){return this._array.slice()};eo.ArraySet=Te});var ro=w(io=>{var to=gt();function Rc(e,t){var i=e.generatedLine,r=t.generatedLine,s=e.generatedColumn,n=t.generatedColumn;return r>i||r==i&&n>=s||to.compareByGeneratedPositionsInflated(e,t)<=0}function Ti(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ti.prototype.unsortedForEach=function(t,i){this._array.forEach(t,i)};Ti.prototype.add=function(t){Rc(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Ti.prototype.toArray=function(){return this._sorted||(this._array.sort(to.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};io.MappingList=Ti});var Yr=w(so=>{var Gt=Gr(),j=gt(),Ri=Qr().ArraySet,Mc=ro().MappingList;function de(e){e||(e={}),this._file=j.getArg(e,"file",null),this._sourceRoot=j.getArg(e,"sourceRoot",null),this._skipValidation=j.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=j.getArg(e,"ignoreInvalidMapping",!1),this._sources=new Ri,this._names=new Ri,this._mappings=new Mc,this._sourcesContents=null}de.prototype._version=3;de.fromSourceMap=function(t,i){var r=t.sourceRoot,s=new de(Object.assign(i||{},{file:t.file,sourceRoot:r}));return t.eachMapping(function(n){var a={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(a.source=n.source,r!=null&&(a.source=j.relative(r,a.source)),a.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(a.name=n.name)),s.addMapping(a)}),t.sources.forEach(function(n){var a=n;r!==null&&(a=j.relative(r,n)),s._sources.has(a)||s._sources.add(a);var o=t.sourceContentFor(n);o!=null&&s.setSourceContent(n,o)}),s};de.prototype.addMapping=function(t){var i=j.getArg(t,"generated"),r=j.getArg(t,"original",null),s=j.getArg(t,"source",null),n=j.getArg(t,"name",null);!this._skipValidation&&this._validateMapping(i,r,s,n)===!1||(s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),n!=null&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:n}))};de.prototype.setSourceContent=function(t,i){var r=t;this._sourceRoot!=null&&(r=j.relative(this._sourceRoot,r)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[j.toSetString(r)]=i):this._sourcesContents&&(delete this._sourcesContents[j.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};de.prototype.applySourceMap=function(t,i,r){var s=i;if(i==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var n=this._sourceRoot;n!=null&&(s=j.relative(n,s));var a=new Ri,o=new Ri;this._mappings.unsortedForEach(function(h){if(h.source===s&&h.originalLine!=null){var l=t.originalPositionFor({line:h.originalLine,column:h.originalColumn});l.source!=null&&(h.source=l.source,r!=null&&(h.source=j.join(r,h.source)),n!=null&&(h.source=j.relative(n,h.source)),h.originalLine=l.line,h.originalColumn=l.column,l.name!=null&&(h.name=l.name))}var c=h.source;c!=null&&!a.has(c)&&a.add(c);var f=h.name;f!=null&&!o.has(f)&&o.add(f)},this),this._sources=a,this._names=o,t.sources.forEach(function(h){var l=t.sourceContentFor(h);l!=null&&(r!=null&&(h=j.join(r,h)),n!=null&&(h=j.relative(n,h)),this.setSourceContent(h,l))},this)};de.prototype._validateMapping=function(t,i,r,s){if(i&&typeof i.line!="number"&&typeof i.column!="number"){var n="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(n),!1;throw new Error(n)}if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!i&&!r&&!s)){if(t&&"line"in t&&"column"in t&&i&&"line"in i&&"column"in i&&t.line>0&&t.column>=0&&i.line>0&&i.column>=0&&r)return;var n="Invalid mapping: "+JSON.stringify({generated:t,source:r,original:i,name:s});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(n),!1;throw new Error(n)}};de.prototype._serializeMappings=function(){for(var t=0,i=1,r=0,s=0,n=0,a=0,o="",h,l,c,f,p=this._mappings.toArray(),d=0,m=p.length;d<m;d++){if(l=p[d],h="",l.generatedLine!==i)for(t=0;l.generatedLine!==i;)h+=";",i++;else if(d>0){if(!j.compareByGeneratedPositionsInflated(l,p[d-1]))continue;h+=","}h+=Gt.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),h+=Gt.encode(f-a),a=f,h+=Gt.encode(l.originalLine-1-s),s=l.originalLine-1,h+=Gt.encode(l.originalColumn-r),r=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),h+=Gt.encode(c-n),n=c)),o+=h}return o};de.prototype._generateSourcesContent=function(t,i){return t.map(function(r){if(!this._sourcesContents)return null;i!=null&&(r=j.relative(i,r));var s=j.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};de.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};de.prototype.toString=function(){return JSON.stringify(this.toJSON())};so.SourceMapGenerator=de});var no=w(et=>{et.GREATEST_LOWER_BOUND=1;et.LEAST_UPPER_BOUND=2;function Kr(e,t,i,r,s,n){var a=Math.floor((t-e)/2)+e,o=s(i,r[a],!0);return o===0?a:o>0?t-a>1?Kr(a,t,i,r,s,n):n==et.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?Kr(e,a,i,r,s,n):n==et.LEAST_UPPER_BOUND?a:e<0?-1:e}et.search=function(t,i,r,s){if(i.length===0)return-1;var n=Kr(-1,i.length,t,i,r,s||et.GREATEST_LOWER_BOUND);if(n<0)return-1;for(;n-1>=0&&r(i[n],i[n-1],!0)===0;)--n;return n}});var uo=w(oo=>{function Fc(e){function t(s,n,a){var o=s[n];s[n]=s[a],s[a]=o}function i(s,n){return Math.round(s+Math.random()*(n-s))}function r(s,n,a,o){if(a<o){var h=i(a,o),l=a-1;t(s,h,o);for(var c=s[o],f=a;f<o;f++)n(s[f],c,!1)<=0&&(l+=1,t(s,l,f));t(s,l+1,f);var p=l+1;r(s,n,a,p-1),r(s,n,p+1,o)}}return r}function Bc(e){let t=Fc.toString();return new Function(`return ${t}`)()(e)}var ao=new WeakMap;oo.quickSort=function(e,t,i=0){let r=ao.get(t);r===void 0&&(r=Bc(t),ao.set(t,r)),r(e,t,i,e.length-1)}});var co=w(Mi=>{var _=gt(),Xr=no(),xt=Qr().ArraySet,Vc=Gr(),zt=uo().quickSort;function B(e,t){var i=e;return typeof e=="string"&&(i=_.parseSourceMapInput(e)),i.sections!=null?new be(i,t):new Y(i,t)}B.fromSourceMap=function(e,t){return Y.fromSourceMap(e,t)};B.prototype._version=3;B.prototype.__generatedMappings=null;Object.defineProperty(B.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});B.prototype.__originalMappings=null;Object.defineProperty(B.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});B.prototype._charIsMappingSeparator=function(t,i){var r=t.charAt(i);return r===";"||r===","};B.prototype._parseMappings=function(t,i){throw new Error("Subclasses must implement _parseMappings")};B.GENERATED_ORDER=1;B.ORIGINAL_ORDER=2;B.GREATEST_LOWER_BOUND=1;B.LEAST_UPPER_BOUND=2;B.prototype.eachMapping=function(t,i,r){var s=i||null,n=r||B.GENERATED_ORDER,a;switch(n){case B.GENERATED_ORDER:a=this._generatedMappings;break;case B.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,h=t.bind(s),l=this._names,c=this._sources,f=this._sourceMapURL,p=0,d=a.length;p<d;p++){var m=a[p],g=m.source===null?null:c.at(m.source);g=_.computeSourceURL(o,g,f),h({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:l.at(m.name)})}};B.prototype.allGeneratedPositionsFor=function(t){var i=_.getArg(t,"line"),r={source:_.getArg(t,"source"),originalLine:i,originalColumn:_.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",_.compareByOriginalPositions,Xr.LEAST_UPPER_BOUND);if(n>=0){var a=this._originalMappings[n];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)s.push({line:_.getArg(a,"generatedLine",null),column:_.getArg(a,"generatedColumn",null),lastColumn:_.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n];else for(var h=a.originalColumn;a&&a.originalLine===i&&a.originalColumn==h;)s.push({line:_.getArg(a,"generatedLine",null),column:_.getArg(a,"generatedColumn",null),lastColumn:_.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n]}return s};Mi.SourceMapConsumer=B;function Y(e,t){var i=e;typeof e=="string"&&(i=_.parseSourceMapInput(e));var r=_.getArg(i,"version"),s=_.getArg(i,"sources"),n=_.getArg(i,"names",[]),a=_.getArg(i,"sourceRoot",null),o=_.getArg(i,"sourcesContent",null),h=_.getArg(i,"mappings"),l=_.getArg(i,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=_.normalize(a)),s=s.map(String).map(_.normalize).map(function(c){return a&&_.isAbsolute(a)&&_.isAbsolute(c)?_.relative(a,c):c}),this._names=xt.fromArray(n.map(String),!0),this._sources=xt.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(c){return _.computeSourceURL(a,c,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=h,this._sourceMapURL=t,this.file=l}Y.prototype=Object.create(B.prototype);Y.prototype.consumer=B;Y.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=_.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==e)return i;return-1};Y.fromSourceMap=function(t,i){var r=Object.create(Y.prototype),s=r._names=xt.fromArray(t._names.toArray(),!0),n=r._sources=xt.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=i,r._absoluteSources=r._sources.toArray().map(function(d){return _.computeSourceURL(r.sourceRoot,d,i)});for(var a=t._mappings.toArray().slice(),o=r.__generatedMappings=[],h=r.__originalMappings=[],l=0,c=a.length;l<c;l++){var f=a[l],p=new lo;p.generatedLine=f.generatedLine,p.generatedColumn=f.generatedColumn,f.source&&(p.source=n.indexOf(f.source),p.originalLine=f.originalLine,p.originalColumn=f.originalColumn,f.name&&(p.name=s.indexOf(f.name)),h.push(p)),o.push(p)}return zt(r.__originalMappings,_.compareByOriginalPositions),r};Y.prototype._version=3;Object.defineProperty(Y.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function lo(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Jr=_.compareByGeneratedPositionsDeflatedNoLine;function ho(e,t){let i=e.length,r=e.length-t;if(!(r<=1))if(r==2){let s=e[t],n=e[t+1];Jr(s,n)>0&&(e[t]=n,e[t+1]=s)}else if(r<20)for(let s=t;s<i;s++)for(let n=s;n>t;n--){let a=e[n-1],o=e[n];if(Jr(a,o)<=0)break;e[n-1]=o,e[n]=a}else zt(e,Jr,t)}Y.prototype._parseMappings=function(t,i){var r=1,s=0,n=0,a=0,o=0,h=0,l=t.length,c=0,f={},p={},d=[],m=[],g,x,b,C,A;let k=0;for(;c<l;)if(t.charAt(c)===";")r++,c++,s=0,ho(m,k),k=m.length;else if(t.charAt(c)===",")c++;else{for(g=new lo,g.generatedLine=r,C=c;C<l&&!this._charIsMappingSeparator(t,C);C++);for(x=t.slice(c,C),b=[];c<C;)Vc.decode(t,c,p),A=p.value,c=p.rest,b.push(A);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=s+b[0],s=g.generatedColumn,b.length>1&&(g.source=o+b[1],o+=b[1],g.originalLine=n+b[2],n=g.originalLine,g.originalLine+=1,g.originalColumn=a+b[3],a=g.originalColumn,b.length>4&&(g.name=h+b[4],h+=b[4])),m.push(g),typeof g.originalLine=="number"){let N=g.source;for(;d.length<=N;)d.push(null);d[N]===null&&(d[N]=[]),d[N].push(g)}}ho(m,k),this.__generatedMappings=m;for(var R=0;R<d.length;R++)d[R]!=null&&zt(d[R],_.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};Y.prototype._findMapping=function(t,i,r,s,n,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[s]);return Xr.search(t,i,n,a)};Y.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var i=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(i.generatedLine===r.generatedLine){i.lastGeneratedColumn=r.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};Y.prototype.originalPositionFor=function(t){var i={generatedLine:_.getArg(t,"line"),generatedColumn:_.getArg(t,"column")},r=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",_.compareByGeneratedPositionsDeflated,_.getArg(t,"bias",B.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===i.generatedLine){var n=_.getArg(s,"source",null);n!==null&&(n=this._sources.at(n),n=_.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var a=_.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:n,line:_.getArg(s,"originalLine",null),column:_.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};Y.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Y.prototype.sourceContentFor=function(t,i){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var s=t;this.sourceRoot!=null&&(s=_.relative(this.sourceRoot,s));var n;if(this.sourceRoot!=null&&(n=_.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(n.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||n.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(i)return null;throw new Error('"'+s+'" is not in the SourceMap.')};Y.prototype.generatedPositionFor=function(t){var i=_.getArg(t,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var r={source:i,originalLine:_.getArg(t,"line"),originalColumn:_.getArg(t,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",_.compareByOriginalPositions,_.getArg(t,"bias",B.GREATEST_LOWER_BOUND));if(s>=0){var n=this._originalMappings[s];if(n.source===r.source)return{line:_.getArg(n,"generatedLine",null),column:_.getArg(n,"generatedColumn",null),lastColumn:_.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Mi.BasicSourceMapConsumer=Y;function be(e,t){var i=e;typeof e=="string"&&(i=_.parseSourceMapInput(e));var r=_.getArg(i,"version"),s=_.getArg(i,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new xt,this._names=new xt;var n={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=_.getArg(a,"offset"),h=_.getArg(o,"line"),l=_.getArg(o,"column");if(h<n.line||h===n.line&&l<n.column)throw new Error("Section offsets must be ordered and non-overlapping.");return n=o,{generatedOffset:{generatedLine:h+1,generatedColumn:l+1},consumer:new B(_.getArg(a,"map"),t)}})}be.prototype=Object.create(B.prototype);be.prototype.constructor=B;be.prototype._version=3;Object.defineProperty(be.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var i=0;i<this._sections[t].consumer.sources.length;i++)e.push(this._sections[t].consumer.sources[i]);return e}});be.prototype.originalPositionFor=function(t){var i={generatedLine:_.getArg(t,"line"),generatedColumn:_.getArg(t,"column")},r=Xr.search(i,this._sections,function(n,a){var o=n.generatedLine-a.generatedOffset.generatedLine;return o||n.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:i.generatedLine-(s.generatedOffset.generatedLine-1),column:i.generatedColumn-(s.generatedOffset.generatedLine===i.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};be.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};be.prototype.sourceContentFor=function(t,i){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],n=s.consumer.sourceContentFor(t,!0);if(n||n==="")return n}if(i)return null;throw new Error('"'+t+'" is not in the SourceMap.')};be.prototype.generatedPositionFor=function(t){for(var i=0;i<this._sections.length;i++){var r=this._sections[i];if(r.consumer._findSourceIndex(_.getArg(t,"source"))!==-1){var s=r.consumer.generatedPositionFor(t);if(s){var n={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return n}}}return{line:null,column:null}};be.prototype._parseMappings=function(t,i){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],n=s.consumer._generatedMappings,a=0;a<n.length;a++){var o=n[a],h=s.consumer._sources.at(o.source);h=_.computeSourceURL(s.consumer.sourceRoot,h,this._sourceMapURL),this._sources.add(h),h=this._sources.indexOf(h);var l=null;o.name&&(l=s.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var c={source:h,generatedLine:o.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(s.generatedOffset.generatedLine===o.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}zt(this.__generatedMappings,_.compareByGeneratedPositionsDeflated),zt(this.__originalMappings,_.compareByOriginalPositions)};Mi.IndexedSourceMapConsumer=be});var po=w(fo=>{var Dc=Yr().SourceMapGenerator,Fi=gt(),Uc=/(\r?\n)/,qc=10,yt="$$$isSourceNode$$$";function ne(e,t,i,r,s){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=i??null,this.name=s??null,this[yt]=!0,r!=null&&this.add(r)}ne.fromStringWithSourceMap=function(t,i,r){var s=new ne,n=t.split(Uc),a=0,o=function(){var p=m(),d=m()||"";return p+d;function m(){return a<n.length?n[a++]:void 0}},h=1,l=0,c=null;return i.eachMapping(function(p){if(c!==null)if(h<p.generatedLine)f(c,o()),h++,l=0;else{var d=n[a]||"",m=d.substr(0,p.generatedColumn-l);n[a]=d.substr(p.generatedColumn-l),l=p.generatedColumn,f(c,m),c=p;return}for(;h<p.generatedLine;)s.add(o()),h++;if(l<p.generatedColumn){var d=n[a]||"";s.add(d.substr(0,p.generatedColumn)),n[a]=d.substr(p.generatedColumn),l=p.generatedColumn}c=p},this),a<n.length&&(c&&f(c,o()),s.add(n.splice(a).join(""))),i.sources.forEach(function(p){var d=i.sourceContentFor(p);d!=null&&(r!=null&&(p=Fi.join(r,p)),s.setSourceContent(p,d))}),s;function f(p,d){if(p===null||p.source===void 0)s.add(d);else{var m=r?Fi.join(r,p.source):p.source;s.add(new ne(p.originalLine,p.originalColumn,m,d,p.name))}}};ne.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(i){this.add(i)},this);else if(t[yt]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ne.prototype.prepend=function(t){if(Array.isArray(t))for(var i=t.length-1;i>=0;i--)this.prepend(t[i]);else if(t[yt]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ne.prototype.walk=function(t){for(var i,r=0,s=this.children.length;r<s;r++)i=this.children[r],i[yt]?i.walk(t):i!==""&&t(i,{source:this.source,line:this.line,column:this.column,name:this.name})};ne.prototype.join=function(t){var i,r,s=this.children.length;if(s>0){for(i=[],r=0;r<s-1;r++)i.push(this.children[r]),i.push(t);i.push(this.children[r]),this.children=i}return this};ne.prototype.replaceRight=function(t,i){var r=this.children[this.children.length-1];return r[yt]?r.replaceRight(t,i):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,i):this.children.push("".replace(t,i)),this};ne.prototype.setSourceContent=function(t,i){this.sourceContents[Fi.toSetString(t)]=i};ne.prototype.walkSourceContents=function(t){for(var i=0,r=this.children.length;i<r;i++)this.children[i][yt]&&this.children[i].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),i=0,r=s.length;i<r;i++)t(Fi.fromSetString(s[i]),this.sourceContents[s[i]])};ne.prototype.toString=function(){var t="";return this.walk(function(i){t+=i}),t};ne.prototype.toStringWithSourceMap=function(t){var i={code:"",line:1,column:0},r=new Dc(t),s=!1,n=null,a=null,o=null,h=null;return this.walk(function(l,c){i.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((n!==c.source||a!==c.line||o!==c.column||h!==c.name)&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name}),n=c.source,a=c.line,o=c.column,h=c.name,s=!0):s&&(r.addMapping({generated:{line:i.line,column:i.column}}),n=null,s=!1);for(var f=0,p=l.length;f<p;f++)l.charCodeAt(f)===qc?(i.line++,i.column=0,f+1===p?(n=null,s=!1):s&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name})):i.column++}),this.walkSourceContents(function(l,c){r.setSourceContent(l,c)}),{code:i.code,map:r}};fo.SourceNode=ne});var Zr=w(Bi=>{Bi.SourceMapGenerator=Yr().SourceMapGenerator;Bi.SourceMapConsumer=co().SourceMapConsumer;Bi.SourceNode=po().SourceNode});var go=w((nm,mo)=>{var jc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wc=(e,t=21)=>(i=t)=>{let r="",s=i;for(;s--;)r+=e[Math.random()*e.length|0];return r},Gc=(e=21)=>{let t="",i=e;for(;i--;)t+=jc[Math.random()*64|0];return t};mo.exports={nanoid:Gc,customAlphabet:Wc}});var _o=w((am,vo)=>{"use strict";var{SourceMapConsumer:xo,SourceMapGenerator:yo}=Zr(),{existsSync:zc,readFileSync:$c}=require("fs"),{dirname:es,join:Hc}=require("path");function Qc(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var $t=class{constructor(t,i){if(i.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=i.map?i.map.prev:void 0,s=this.loadMap(i.from,r);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=es(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new xo(this.text)),this.consumerCache}decodeInline(t){let i=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(t)||n.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(i.test(t)||r.test(t))return Qc(t.substr(RegExp.lastMatch.length));let a=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let i=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let r=t.lastIndexOf(i.pop()),s=t.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,s)))}loadFile(t){if(this.root=es(t),zc(t))return this.mapFile=t,$c(t,"utf-8").toString().trim()}loadMap(t,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let r=i(t);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(i instanceof xo)return yo.fromSourceMap(i).toString();if(i instanceof yo)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=Hc(es(t),r)),this.loadFile(r)}}}startWith(t,i){return t?t.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};vo.exports=$t;$t.default=$t});var Eo=w((om,Co)=>{"use strict";var{SourceMapConsumer:Yc,SourceMapGenerator:Kc}=Zr(),{fileURLToPath:bo,pathToFileURL:Vi}=require("url"),{isAbsolute:rs,resolve:ss}=require("path"),{nanoid:Jc}=go(),ts=Pr(),So=Or(),Xc=_o(),is=Symbol("fromOffsetCache"),Zc=!!(Yc&&Kc),wo=!!(ss&&rs),vt=class{constructor(t,i={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,i.from&&(!wo||/^\w+:\/\//.test(i.from)||rs(i.from)?this.file=i.from:this.file=ss(i.from)),wo&&Zc){let r=new Xc(this.css,i);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Jc(6)+">"),this.map&&(this.map.file=this.from)}error(t,i,r,s={}){let n,a,o;if(i&&typeof i=="object"){let l=i,c=r;if(typeof l.offset=="number"){let f=this.fromOffset(l.offset);i=f.line,r=f.col}else i=l.line,r=l.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);a=f.line,o=f.col}else a=c.line,o=c.column}else if(!r){let l=this.fromOffset(i);i=l.line,r=l.col}let h=this.origin(i,r,a,o);return h?n=new So(t,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,s.plugin):n=new So(t,a===void 0?i:{column:r,line:i},a===void 0?r:{column:o,line:a},this.css,this.file,s.plugin),n.input={column:r,endColumn:o,endLine:a,line:i,source:this.css},this.file&&(Vi&&(n.input.url=Vi(this.file).toString()),n.input.file=this.file),n}fromOffset(t){let i,r;if(this[is])r=this[is];else{let n=this.css.split(`
25
- `);r=new Array(n.length);let a=0;for(let o=0,h=n.length;o<h;o++)r[o]=a,a+=n[o].length+1;this[is]=r}i=r[r.length-1];let s=0;if(t>=i)s=r.length-1;else{let n=r.length-2,a;for(;s<n;)if(a=s+(n-s>>1),t<r[a])n=a-1;else if(t>=r[a+1])s=a+1;else{s=a;break}}return{col:t-r[s]+1,line:s+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:ss(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,i,r,s){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:i,line:t});if(!a.source)return!1;let o;typeof r=="number"&&(o=n.originalPositionFor({column:s,line:r}));let h;rs(a.source)?h=Vi(a.source):h=new URL(a.source,this.map.consumer().sourceRoot||Vi(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:h.toString()};if(h.protocol==="file:")if(bo)l.file=bo(h);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let t={};for(let i of["hasBOM","css","file","id"])this[i]!=null&&(t[i]=this[i]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};Co.exports=vt;vt.default=vt;ts&&ts.registerInput&&ts.registerInput(vt)});var Ao=w((um,ko)=>{"use strict";var ef=qt(),tf=ja(),rf=Eo();function Di(e,t){let i=new rf(e,t),r=new tf(i);try{r.parse()}catch(s){throw process.env.NODE_ENV!=="production"&&s.name==="CssSyntaxError"&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+=`
22
+ `);return i=n[n.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(i=r.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let r=t[i],s=t.raws[i];return s&&s.value===r?s.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}};ga.exports=Vt;Vt.default=Vt});var ya=w((Gd,xa)=>{"use strict";var hc=Dr();function Vr(e,t){new hc(t).stringify(e)}xa.exports=Vr;Vr.default=Vr});var Mi=w((zd,va)=>{"use strict";var{isClean:Ri,my:lc}=Or(),cc=Br(),fc=Dr(),pc=ya();function Ur(e,t){let i=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let s=e[r],n=typeof s;r==="parent"&&n==="object"?t&&(i[r]=t):r==="source"?i[r]=s:Array.isArray(s)?i[r]=s.map(a=>Ur(a,i)):(n==="object"&&s!==null&&(s=Ur(s)),i[r]=s)}return i}var Ut=class{constructor(t={}){this.raws={},this[Ri]=!1,this[lc]=!0;for(let i in t)if(i==="nodes"){this.nodes=[];for(let r of t[i])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[i]=t[i]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let i=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${i.input.from}:${i.start.line}:${i.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let i in t)this[i]=t[i];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let i=Ur(this);for(let r in t)i[r]=t[r];return i}cloneAfter(t={}){let i=this.clone(t);return this.parent.insertAfter(this,i),i}cloneBefore(t={}){let i=this.clone(t);return this.parent.insertBefore(this,i),i}error(t,i={}){if(this.source){let{end:r,start:s}=this.rangeBy(i);return this.source.input.error(t,{column:s.column,line:s.line},{column:r.column,line:r.line},i)}return new cc(t)}getProxyProcessor(){return{get(t,i){return i==="proxyOf"?t:i==="root"?()=>t.root().toProxy():t[i]},set(t,i,r){return t[i]===r||(t[i]=r,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&t.markDirty()),!0}}}markDirty(){if(this[Ri]){this[Ri]=!1;let t=this;for(;t=t.parent;)t[Ri]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,i){let r=this.source.start;if(t.index)r=this.positionInside(t.index,i);else if(t.word){i=this.toString();let s=i.indexOf(t.word);s!==-1&&(r=this.positionInside(s,i))}return r}positionInside(t,i){let r=i||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let a=0;a<t;a++)r[a]===`
23
+ `?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let i={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(t.word){let s=this.toString(),n=s.indexOf(t.word);n!==-1&&(i=this.positionInside(n,s),r=this.positionInside(n+t.word.length,s))}else t.start?i={column:t.start.column,line:t.start.line}:t.index&&(i=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line}),{end:r,start:i}}raw(t,i){return new fc().raw(this,t,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let i=this,r=!1;for(let s of t)s===this?r=!0:r?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,i){let r={},s=i==null;i=i||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))r[a]=o.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,i):h);else if(typeof o=="object"&&o.toJSON)r[a]=o.toJSON(null,i);else if(a==="source"){let h=i.get(o.input);h==null&&(h=n,i.set(o.input,n),n++),r[a]={end:o.end,inputId:h,start:o.start}}else r[a]=o}return s&&(r.inputs=[...i.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=pc){t.stringify&&(t=t.stringify);let i="";return t(this,r=>{i+=r}),i}warn(t,i,r){let s={node:this};for(let n in r)s[n]=r[n];return t.warn(i,s)}get proxyOf(){return this}};va.exports=Ut;Ut.default=Ut});var qr=w(($d,_a)=>{"use strict";var dc=Mi(),qt=class extends dc{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};_a.exports=qt;qt.default=qt});var jr=w((Hd,ba)=>{"use strict";var mc=Mi(),jt=class extends mc{constructor(t){super(t),this.type="comment"}};ba.exports=jt;jt.default=jt});var Wt=w((Qd,Pa)=>{"use strict";var{isClean:Sa,my:wa}=Or(),Ca=qr(),Ea=jr(),gc=Mi(),ka,Wr,Gr,Aa;function Na(e){return e.map(t=>(t.nodes&&(t.nodes=Na(t.nodes)),delete t.source,t))}function Ia(e){if(e[Sa]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ia(t)}var _e=class e extends gc{append(...t){for(let i of t){let r=this.normalize(i,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let i of this.nodes)i.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let i=this.getIterator(),r,s;for(;this.indexes[i]<this.proxyOf.nodes.length&&(r=this.indexes[i],s=t(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,i){return i==="proxyOf"?t:t[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?(...r)=>t[i](...r.map(s=>typeof s=="function"?(n,a)=>s(n.toProxy(),a):s)):i==="every"||i==="some"?r=>t[i]((s,...n)=>r(s.toProxy(),...n)):i==="root"?()=>t.root().toProxy():i==="nodes"?t.nodes.map(r=>r.toProxy()):i==="first"||i==="last"?t[i].toProxy():t[i]:t[i]},set(t,i,r){return t[i]===r||(t[i]=r,(i==="name"||i==="params"||i==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,i){let r=this.index(t),s=this.normalize(i,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let a of s)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+s.length);return this.markDirty(),this}insertBefore(t,i){let r=this.index(t),s=r===0?"prepend":!1,n=this.normalize(i,this.proxyOf.nodes[r],s).reverse();r=this.index(t);for(let o of n)this.proxyOf.nodes.splice(r,0,o);let a;for(let o in this.indexes)a=this.indexes[o],r<=a&&(this.indexes[o]=a+n.length);return this.markDirty(),this}normalize(t,i){if(typeof t=="string")t=Na(ka(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let s of t)s.parent&&s.parent.removeChild(s,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let s of t)s.parent&&s.parent.removeChild(s,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Ca(t)]}else if(t.selector)t=[new Wr(t)];else if(t.name)t=[new Gr(t)];else if(t.text)t=[new Ea(t)];else throw new Error("Unknown node type in node creation");return t.map(s=>(s[wa]||e.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Sa]&&Ia(s),typeof s.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(s.raws.before=i.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...t){t=t.reverse();for(let i of t){let r=this.normalize(i,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let i;for(let r in this.indexes)i=this.indexes[r],i>=t&&(this.indexes[r]=i-1);return this.markDirty(),this}replaceValues(t,i,r){return r||(r=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((i,r)=>{let s;try{s=t(i,r)}catch(n){throw i.addToError(n)}return s!==!1&&i.walk&&(s=i.walk(t)),s})}walkAtRules(t,i){return i?t instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&t.test(r.name))return i(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===t)return i(r,s)}):(i=t,this.walk((r,s)=>{if(r.type==="atrule")return i(r,s)}))}walkComments(t){return this.walk((i,r)=>{if(i.type==="comment")return t(i,r)})}walkDecls(t,i){return i?t instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&t.test(r.prop))return i(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===t)return i(r,s)}):(i=t,this.walk((r,s)=>{if(r.type==="decl")return i(r,s)}))}walkRules(t,i){return i?t instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&t.test(r.selector))return i(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===t)return i(r,s)}):(i=t,this.walk((r,s)=>{if(r.type==="rule")return i(r,s)}))}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]}};_e.registerParse=e=>{ka=e};_e.registerRule=e=>{Wr=e};_e.registerAtRule=e=>{Gr=e};_e.registerRoot=e=>{Aa=e};Pa.exports=_e;_e.default=_e;_e.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,Gr.prototype):e.type==="rule"?Object.setPrototypeOf(e,Wr.prototype):e.type==="decl"?Object.setPrototypeOf(e,Ca.prototype):e.type==="comment"?Object.setPrototypeOf(e,Ea.prototype):e.type==="root"&&Object.setPrototypeOf(e,Aa.prototype),e[wa]=!0,e.nodes&&e.nodes.forEach(t=>{_e.rebuild(t)})}});var Ta=w((Yd,Oa)=>{"use strict";var La=Wt(),dt=class extends La{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Oa.exports=dt;dt.default=dt;La.registerAtRule(dt)});var Da=w((Kd,Ba)=>{"use strict";var Ra=Wt(),Ma,Fa,We=class extends Ra{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,i,r){let s=super.normalize(t);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let n of s)n.raws.before=i.raws.before}return s}removeChild(t,i){let r=this.index(t);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new Ma(new Fa,this,t).stringify()}};We.registerLazyResult=e=>{Ma=e};We.registerProcessor=e=>{Fa=e};Ba.exports=We;We.default=We;Ra.registerRoot(We)});var Ua=w((Jd,Va)=>{"use strict";var Gt={comma(e){return Gt.split(e,[","],!0)},space(e){let t=[" ",`
24
+ `," "];return Gt.split(e,t)},split(e,t,i){let r=[],s="",n=!1,a=0,o=!1,h="",l=!1;for(let c of e)l?l=!1:c==="\\"?l=!0:o?c===h&&(o=!1):c==='"'||c==="'"?(o=!0,h=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&t.includes(c)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=c;return(i||s!=="")&&r.push(s.trim()),r}};Va.exports=Gt;Gt.default=Gt});var Wa=w((Xd,ja)=>{"use strict";var qa=Wt(),xc=Ua(),mt=class extends qa{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return xc.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,r=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};ja.exports=mt;mt.default=mt;qa.registerRule(mt)});var Ha=w((Zd,$a)=>{"use strict";var yc=qr(),vc=Mr(),_c=jr(),bc=Ta(),Sc=Da(),Ga=Wa(),za={empty:!0,space:!0};function wc(e){for(let t=e.length-1;t>=0;t--){let i=e[t],r=i[3]||i[2];if(r)return r}}var zr=class{constructor(t){this.input=t,this.root=new Sc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let i=new bc;i.name=t[1].slice(1),i.name===""&&this.unnamedAtrule(i,t),this.init(i,t[2]);let r,s,n,a=!1,o=!1,h=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){i.source.end=this.getPosition(t[2]),i.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(h.length>0){for(n=h.length-1,s=h[n];s&&s[0]==="space";)s=h[--n];s&&(i.source.end=this.getPosition(s[3]||s[2]),i.source.end.offset++)}this.end(t);break}else h.push(t);else h.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(i.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(i,"params",h),a&&(t=h[h.length-1],i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(t){let i=this.colon(t);if(i===!1)return;let r=0,s;for(let n=i-1;n>=0&&(s=t[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(t){let i=0,r,s,n;for(let[a,o]of t.entries()){if(r=o,s=r[0],s==="("&&(i+=1),s===")"&&(i-=1),i===0&&s===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=r}return!1}comment(t){let i=new _c;this.init(i,t[2]),i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))i.text="",i.raws.left=r,i.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);i.text=s[2],i.raws.left=s[1],i.raws.right=s[3]}}createTokenizer(){this.tokenizer=vc(this.input)}decl(t,i){let r=new yc;this.init(r,t[0][2]);let s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||wc(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let l=t[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let n;for(;t.length;)if(n=t.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],o;for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)a.push(t.shift());this.precheckMissedSemicolon(t);for(let l=t.length-1;l>=0;l--){if(n=t[l],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(t,l);c=this.spacesFromEnd(t)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=t.slice(0),f="";for(let p=l;p>0;p--){let d=c[p][0];if(f.trim().indexOf("!")===0&&d!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,t=c)}if(n[0]!=="space"&&n[0]!=="comment")break}t.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),i),r.value.includes(":")&&!i&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let i=new Ga;this.init(i,t[2]),i.selector="",i.raws.between="",this.current=i}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let i=this.input.fromOffset(t);return{column:i.col,line:i.line,offset:t}}init(t,i){this.current.push(t),t.source={input:this.input,start:this.getPosition(i)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let i=!1,r=null,s=!1,n=null,a=[],o=t[1].startsWith("--"),h=[],l=t;for(;l;){if(r=l[0],h.push(l),r==="("||r==="[")n||(n=l),a.push(r==="("?")":"]");else if(o&&s&&r==="{")n||(n=l),a.push("}");else if(a.length===0)if(r===";")if(s){this.decl(h,o);return}else break;else if(r==="{"){this.rule(h);return}else if(r==="}"){this.tokenizer.back(h.pop()),i=!0;break}else r===":"&&(s=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),a.length>0&&this.unclosedBracket(n),i&&s){if(!o)for(;h.length&&(l=h[h.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,i,r,s){let n,a,o=r.length,h="",l=!0,c,f;for(let p=0;p<o;p+=1)n=r[p],a=n[0],a==="space"&&p===o-1&&!s?l=!1:a==="comment"?(f=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!za[f]&&!za[c]?h.slice(-1)===","?l=!1:h+=n[1]:l=!1):h+=n[1];if(!l){let p=r.reduce((d,m)=>d+m[1],"");t.raws[i]={raw:p,value:h}}t[i]=h}rule(t){t.pop();let i=new Ga;this.init(i,t[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(i,"selector",t),this.current=i}spacesAndCommentsFromEnd(t){let i,r="";for(;t.length&&(i=t[t.length-1][0],!(i!=="space"&&i!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let i,r="";for(;t.length&&(i=t[0][0],!(i!=="space"&&i!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let i,r="";for(;t.length&&(i=t[t.length-1][0],i==="space");)r=t.pop()[1]+r;return r}stringFrom(t,i){let r="";for(let s=i;s<t.length;s++)r+=t[s][1];return t.splice(i,t.length-i),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};$a.exports=zr});var Ya=w($r=>{var Qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");$r.encode=function(e){if(0<=e&&e<Qa.length)return Qa[e];throw new TypeError("Must be between 0 and 63: "+e)};$r.decode=function(e){var t=65,i=90,r=97,s=122,n=48,a=57,o=43,h=47,l=26,c=52;return t<=e&&e<=i?e-t:r<=e&&e<=s?e-r+l:n<=e&&e<=a?e-n+c:e==o?62:e==h?63:-1}});var Yr=w(Qr=>{var Ka=Ya(),Hr=5,Ja=1<<Hr,Xa=Ja-1,Za=Ja;function Cc(e){return e<0?(-e<<1)+1:(e<<1)+0}function Ec(e){var t=(e&1)===1,i=e>>1;return t?-i:i}Qr.encode=function(t){var i="",r,s=Cc(t);do r=s&Xa,s>>>=Hr,s>0&&(r|=Za),i+=Ka.encode(r);while(s>0);return i};Qr.decode=function(t,i,r){var s=t.length,n=0,a=0,o,h;do{if(i>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(h=Ka.decode(t.charCodeAt(i++)),h===-1)throw new Error("Invalid base64 digit: "+t.charAt(i-1));o=!!(h&Za),h&=Xa,n=n+(h<<a),a+=Hr}while(o);r.value=Ec(n),r.rest=i}});var xt=w($=>{function kc(e,t,i){if(t in e)return e[t];if(arguments.length===3)return i;throw new Error('"'+t+'" is a required argument.')}$.getArg=kc;var eo=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ac=/^data:.+\,.+$/;function zt(e){var t=e.match(eo);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}$.urlParse=zt;function gt(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}$.urlGenerate=gt;var Nc=32;function Ic(e){var t=[];return function(i){for(var r=0;r<t.length;r++)if(t[r].input===i){var s=t[0];return t[0]=t[r],t[r]=s,t[0].result}var n=e(i);return t.unshift({input:i,result:n}),t.length>Nc&&t.pop(),n}}var Kr=Ic(function(t){var i=t,r=zt(t);if(r){if(!r.path)return t;i=r.path}for(var s=$.isAbsolute(i),n=[],a=0,o=0;;)if(a=o,o=i.indexOf("/",a),o===-1){n.push(i.slice(a));break}else for(n.push(i.slice(a,o));o<i.length&&i[o]==="/";)o++;for(var h,l=0,o=n.length-1;o>=0;o--)h=n[o],h==="."?n.splice(o,1):h===".."?l++:l>0&&(h===""?(n.splice(o+1,l),l=0):(n.splice(o,2),l--));return i=n.join("/"),i===""&&(i=s?"/":"."),r?(r.path=i,gt(r)):i});$.normalize=Kr;function to(e,t){e===""&&(e="."),t===""&&(t=".");var i=zt(t),r=zt(e);if(r&&(e=r.path||"/"),i&&!i.scheme)return r&&(i.scheme=r.scheme),gt(i);if(i||t.match(Ac))return t;if(r&&!r.host&&!r.path)return r.host=t,gt(r);var s=t.charAt(0)==="/"?t:Kr(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=s,gt(r)):s}$.join=to;$.isAbsolute=function(e){return e.charAt(0)==="/"||eo.test(e)};function Pc(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var i=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++i}return Array(i+1).join("../")+t.substr(e.length+1)}$.relative=Pc;var io=function(){var e=Object.create(null);return!("__proto__"in e)}();function ro(e){return e}function Lc(e){return so(e)?"$"+e:e}$.toSetString=io?ro:Lc;function Oc(e){return so(e)?e.slice(1):e}$.fromSetString=io?ro:Oc;function so(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var i=t-10;i>=0;i--)if(e.charCodeAt(i)!==36)return!1;return!0}function Tc(e,t,i){var r=Oe(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||i)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:Oe(e.name,t.name)}$.compareByOriginalPositions=Tc;function Rc(e,t,i){var r;return r=e.originalLine-t.originalLine,r!==0||(r=e.originalColumn-t.originalColumn,r!==0||i)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:Oe(e.name,t.name)}$.compareByOriginalPositionsNoSource=Rc;function Mc(e,t,i){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||i)||(r=Oe(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Oe(e.name,t.name)}$.compareByGeneratedPositionsDeflated=Mc;function Fc(e,t,i){var r=e.generatedColumn-t.generatedColumn;return r!==0||i||(r=Oe(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Oe(e.name,t.name)}$.compareByGeneratedPositionsDeflatedNoLine=Fc;function Oe(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Bc(e,t){var i=e.generatedLine-t.generatedLine;return i!==0||(i=e.generatedColumn-t.generatedColumn,i!==0)||(i=Oe(e.source,t.source),i!==0)||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0)?i:Oe(e.name,t.name)}$.compareByGeneratedPositionsInflated=Bc;function Dc(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}$.parseSourceMapInput=Dc;function Vc(e,t,i){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),i){var r=zt(i);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}t=to(gt(r),t)}return Kr(t)}$.computeSourceURL=Vc});var Zr=w(no=>{var Jr=xt(),Xr=Object.prototype.hasOwnProperty,Ze=typeof Map<"u";function Te(){this._array=[],this._set=Ze?new Map:Object.create(null)}Te.fromArray=function(t,i){for(var r=new Te,s=0,n=t.length;s<n;s++)r.add(t[s],i);return r};Te.prototype.size=function(){return Ze?this._set.size:Object.getOwnPropertyNames(this._set).length};Te.prototype.add=function(t,i){var r=Ze?t:Jr.toSetString(t),s=Ze?this.has(t):Xr.call(this._set,r),n=this._array.length;(!s||i)&&this._array.push(t),s||(Ze?this._set.set(t,n):this._set[r]=n)};Te.prototype.has=function(t){if(Ze)return this._set.has(t);var i=Jr.toSetString(t);return Xr.call(this._set,i)};Te.prototype.indexOf=function(t){if(Ze){var i=this._set.get(t);if(i>=0)return i}else{var r=Jr.toSetString(t);if(Xr.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Te.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Te.prototype.toArray=function(){return this._array.slice()};no.ArraySet=Te});var uo=w(oo=>{var ao=xt();function Uc(e,t){var i=e.generatedLine,r=t.generatedLine,s=e.generatedColumn,n=t.generatedColumn;return r>i||r==i&&n>=s||ao.compareByGeneratedPositionsInflated(e,t)<=0}function Fi(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Fi.prototype.unsortedForEach=function(t,i){this._array.forEach(t,i)};Fi.prototype.add=function(t){Uc(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Fi.prototype.toArray=function(){return this._sorted||(this._array.sort(ao.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};oo.MappingList=Fi});var es=w(ho=>{var $t=Yr(),j=xt(),Bi=Zr().ArraySet,qc=uo().MappingList;function de(e){e||(e={}),this._file=j.getArg(e,"file",null),this._sourceRoot=j.getArg(e,"sourceRoot",null),this._skipValidation=j.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=j.getArg(e,"ignoreInvalidMapping",!1),this._sources=new Bi,this._names=new Bi,this._mappings=new qc,this._sourcesContents=null}de.prototype._version=3;de.fromSourceMap=function(t,i){var r=t.sourceRoot,s=new de(Object.assign(i||{},{file:t.file,sourceRoot:r}));return t.eachMapping(function(n){var a={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(a.source=n.source,r!=null&&(a.source=j.relative(r,a.source)),a.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(a.name=n.name)),s.addMapping(a)}),t.sources.forEach(function(n){var a=n;r!==null&&(a=j.relative(r,n)),s._sources.has(a)||s._sources.add(a);var o=t.sourceContentFor(n);o!=null&&s.setSourceContent(n,o)}),s};de.prototype.addMapping=function(t){var i=j.getArg(t,"generated"),r=j.getArg(t,"original",null),s=j.getArg(t,"source",null),n=j.getArg(t,"name",null);!this._skipValidation&&this._validateMapping(i,r,s,n)===!1||(s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),n!=null&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:n}))};de.prototype.setSourceContent=function(t,i){var r=t;this._sourceRoot!=null&&(r=j.relative(this._sourceRoot,r)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[j.toSetString(r)]=i):this._sourcesContents&&(delete this._sourcesContents[j.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};de.prototype.applySourceMap=function(t,i,r){var s=i;if(i==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var n=this._sourceRoot;n!=null&&(s=j.relative(n,s));var a=new Bi,o=new Bi;this._mappings.unsortedForEach(function(h){if(h.source===s&&h.originalLine!=null){var l=t.originalPositionFor({line:h.originalLine,column:h.originalColumn});l.source!=null&&(h.source=l.source,r!=null&&(h.source=j.join(r,h.source)),n!=null&&(h.source=j.relative(n,h.source)),h.originalLine=l.line,h.originalColumn=l.column,l.name!=null&&(h.name=l.name))}var c=h.source;c!=null&&!a.has(c)&&a.add(c);var f=h.name;f!=null&&!o.has(f)&&o.add(f)},this),this._sources=a,this._names=o,t.sources.forEach(function(h){var l=t.sourceContentFor(h);l!=null&&(r!=null&&(h=j.join(r,h)),n!=null&&(h=j.relative(n,h)),this.setSourceContent(h,l))},this)};de.prototype._validateMapping=function(t,i,r,s){if(i&&typeof i.line!="number"&&typeof i.column!="number"){var n="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(n),!1;throw new Error(n)}if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!i&&!r&&!s)){if(t&&"line"in t&&"column"in t&&i&&"line"in i&&"column"in i&&t.line>0&&t.column>=0&&i.line>0&&i.column>=0&&r)return;var n="Invalid mapping: "+JSON.stringify({generated:t,source:r,original:i,name:s});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(n),!1;throw new Error(n)}};de.prototype._serializeMappings=function(){for(var t=0,i=1,r=0,s=0,n=0,a=0,o="",h,l,c,f,p=this._mappings.toArray(),d=0,m=p.length;d<m;d++){if(l=p[d],h="",l.generatedLine!==i)for(t=0;l.generatedLine!==i;)h+=";",i++;else if(d>0){if(!j.compareByGeneratedPositionsInflated(l,p[d-1]))continue;h+=","}h+=$t.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),h+=$t.encode(f-a),a=f,h+=$t.encode(l.originalLine-1-s),s=l.originalLine-1,h+=$t.encode(l.originalColumn-r),r=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),h+=$t.encode(c-n),n=c)),o+=h}return o};de.prototype._generateSourcesContent=function(t,i){return t.map(function(r){if(!this._sourcesContents)return null;i!=null&&(r=j.relative(i,r));var s=j.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};de.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};de.prototype.toString=function(){return JSON.stringify(this.toJSON())};ho.SourceMapGenerator=de});var lo=w(et=>{et.GREATEST_LOWER_BOUND=1;et.LEAST_UPPER_BOUND=2;function ts(e,t,i,r,s,n){var a=Math.floor((t-e)/2)+e,o=s(i,r[a],!0);return o===0?a:o>0?t-a>1?ts(a,t,i,r,s,n):n==et.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?ts(e,a,i,r,s,n):n==et.LEAST_UPPER_BOUND?a:e<0?-1:e}et.search=function(t,i,r,s){if(i.length===0)return-1;var n=ts(-1,i.length,t,i,r,s||et.GREATEST_LOWER_BOUND);if(n<0)return-1;for(;n-1>=0&&r(i[n],i[n-1],!0)===0;)--n;return n}});var po=w(fo=>{function jc(e){function t(s,n,a){var o=s[n];s[n]=s[a],s[a]=o}function i(s,n){return Math.round(s+Math.random()*(n-s))}function r(s,n,a,o){if(a<o){var h=i(a,o),l=a-1;t(s,h,o);for(var c=s[o],f=a;f<o;f++)n(s[f],c,!1)<=0&&(l+=1,t(s,l,f));t(s,l+1,f);var p=l+1;r(s,n,a,p-1),r(s,n,p+1,o)}}return r}function Wc(e){let t=jc.toString();return new Function(`return ${t}`)()(e)}var co=new WeakMap;fo.quickSort=function(e,t,i=0){let r=co.get(t);r===void 0&&(r=Wc(t),co.set(t,r)),r(e,t,i,e.length-1)}});var xo=w(Di=>{var _=xt(),rs=lo(),yt=Zr().ArraySet,Gc=Yr(),Ht=po().quickSort;function B(e,t){var i=e;return typeof e=="string"&&(i=_.parseSourceMapInput(e)),i.sections!=null?new be(i,t):new K(i,t)}B.fromSourceMap=function(e,t){return K.fromSourceMap(e,t)};B.prototype._version=3;B.prototype.__generatedMappings=null;Object.defineProperty(B.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});B.prototype.__originalMappings=null;Object.defineProperty(B.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});B.prototype._charIsMappingSeparator=function(t,i){var r=t.charAt(i);return r===";"||r===","};B.prototype._parseMappings=function(t,i){throw new Error("Subclasses must implement _parseMappings")};B.GENERATED_ORDER=1;B.ORIGINAL_ORDER=2;B.GREATEST_LOWER_BOUND=1;B.LEAST_UPPER_BOUND=2;B.prototype.eachMapping=function(t,i,r){var s=i||null,n=r||B.GENERATED_ORDER,a;switch(n){case B.GENERATED_ORDER:a=this._generatedMappings;break;case B.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,h=t.bind(s),l=this._names,c=this._sources,f=this._sourceMapURL,p=0,d=a.length;p<d;p++){var m=a[p],g=m.source===null?null:c.at(m.source);g=_.computeSourceURL(o,g,f),h({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:l.at(m.name)})}};B.prototype.allGeneratedPositionsFor=function(t){var i=_.getArg(t,"line"),r={source:_.getArg(t,"source"),originalLine:i,originalColumn:_.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",_.compareByOriginalPositions,rs.LEAST_UPPER_BOUND);if(n>=0){var a=this._originalMappings[n];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)s.push({line:_.getArg(a,"generatedLine",null),column:_.getArg(a,"generatedColumn",null),lastColumn:_.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n];else for(var h=a.originalColumn;a&&a.originalLine===i&&a.originalColumn==h;)s.push({line:_.getArg(a,"generatedLine",null),column:_.getArg(a,"generatedColumn",null),lastColumn:_.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n]}return s};Di.SourceMapConsumer=B;function K(e,t){var i=e;typeof e=="string"&&(i=_.parseSourceMapInput(e));var r=_.getArg(i,"version"),s=_.getArg(i,"sources"),n=_.getArg(i,"names",[]),a=_.getArg(i,"sourceRoot",null),o=_.getArg(i,"sourcesContent",null),h=_.getArg(i,"mappings"),l=_.getArg(i,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=_.normalize(a)),s=s.map(String).map(_.normalize).map(function(c){return a&&_.isAbsolute(a)&&_.isAbsolute(c)?_.relative(a,c):c}),this._names=yt.fromArray(n.map(String),!0),this._sources=yt.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(c){return _.computeSourceURL(a,c,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=h,this._sourceMapURL=t,this.file=l}K.prototype=Object.create(B.prototype);K.prototype.consumer=B;K.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=_.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==e)return i;return-1};K.fromSourceMap=function(t,i){var r=Object.create(K.prototype),s=r._names=yt.fromArray(t._names.toArray(),!0),n=r._sources=yt.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=i,r._absoluteSources=r._sources.toArray().map(function(d){return _.computeSourceURL(r.sourceRoot,d,i)});for(var a=t._mappings.toArray().slice(),o=r.__generatedMappings=[],h=r.__originalMappings=[],l=0,c=a.length;l<c;l++){var f=a[l],p=new go;p.generatedLine=f.generatedLine,p.generatedColumn=f.generatedColumn,f.source&&(p.source=n.indexOf(f.source),p.originalLine=f.originalLine,p.originalColumn=f.originalColumn,f.name&&(p.name=s.indexOf(f.name)),h.push(p)),o.push(p)}return Ht(r.__originalMappings,_.compareByOriginalPositions),r};K.prototype._version=3;Object.defineProperty(K.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function go(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var is=_.compareByGeneratedPositionsDeflatedNoLine;function mo(e,t){let i=e.length,r=e.length-t;if(!(r<=1))if(r==2){let s=e[t],n=e[t+1];is(s,n)>0&&(e[t]=n,e[t+1]=s)}else if(r<20)for(let s=t;s<i;s++)for(let n=s;n>t;n--){let a=e[n-1],o=e[n];if(is(a,o)<=0)break;e[n-1]=o,e[n]=a}else Ht(e,is,t)}K.prototype._parseMappings=function(t,i){var r=1,s=0,n=0,a=0,o=0,h=0,l=t.length,c=0,f={},p={},d=[],m=[],g,x,b,C,N;let k=0;for(;c<l;)if(t.charAt(c)===";")r++,c++,s=0,mo(m,k),k=m.length;else if(t.charAt(c)===",")c++;else{for(g=new go,g.generatedLine=r,C=c;C<l&&!this._charIsMappingSeparator(t,C);C++);for(x=t.slice(c,C),b=[];c<C;)Gc.decode(t,c,p),N=p.value,c=p.rest,b.push(N);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=s+b[0],s=g.generatedColumn,b.length>1&&(g.source=o+b[1],o+=b[1],g.originalLine=n+b[2],n=g.originalLine,g.originalLine+=1,g.originalColumn=a+b[3],a=g.originalColumn,b.length>4&&(g.name=h+b[4],h+=b[4])),m.push(g),typeof g.originalLine=="number"){let A=g.source;for(;d.length<=A;)d.push(null);d[A]===null&&(d[A]=[]),d[A].push(g)}}mo(m,k),this.__generatedMappings=m;for(var O=0;O<d.length;O++)d[O]!=null&&Ht(d[O],_.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};K.prototype._findMapping=function(t,i,r,s,n,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[s]);return rs.search(t,i,n,a)};K.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var i=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(i.generatedLine===r.generatedLine){i.lastGeneratedColumn=r.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};K.prototype.originalPositionFor=function(t){var i={generatedLine:_.getArg(t,"line"),generatedColumn:_.getArg(t,"column")},r=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",_.compareByGeneratedPositionsDeflated,_.getArg(t,"bias",B.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===i.generatedLine){var n=_.getArg(s,"source",null);n!==null&&(n=this._sources.at(n),n=_.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var a=_.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:n,line:_.getArg(s,"originalLine",null),column:_.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};K.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};K.prototype.sourceContentFor=function(t,i){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var s=t;this.sourceRoot!=null&&(s=_.relative(this.sourceRoot,s));var n;if(this.sourceRoot!=null&&(n=_.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(n.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||n.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(i)return null;throw new Error('"'+s+'" is not in the SourceMap.')};K.prototype.generatedPositionFor=function(t){var i=_.getArg(t,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var r={source:i,originalLine:_.getArg(t,"line"),originalColumn:_.getArg(t,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",_.compareByOriginalPositions,_.getArg(t,"bias",B.GREATEST_LOWER_BOUND));if(s>=0){var n=this._originalMappings[s];if(n.source===r.source)return{line:_.getArg(n,"generatedLine",null),column:_.getArg(n,"generatedColumn",null),lastColumn:_.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Di.BasicSourceMapConsumer=K;function be(e,t){var i=e;typeof e=="string"&&(i=_.parseSourceMapInput(e));var r=_.getArg(i,"version"),s=_.getArg(i,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new yt,this._names=new yt;var n={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=_.getArg(a,"offset"),h=_.getArg(o,"line"),l=_.getArg(o,"column");if(h<n.line||h===n.line&&l<n.column)throw new Error("Section offsets must be ordered and non-overlapping.");return n=o,{generatedOffset:{generatedLine:h+1,generatedColumn:l+1},consumer:new B(_.getArg(a,"map"),t)}})}be.prototype=Object.create(B.prototype);be.prototype.constructor=B;be.prototype._version=3;Object.defineProperty(be.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var i=0;i<this._sections[t].consumer.sources.length;i++)e.push(this._sections[t].consumer.sources[i]);return e}});be.prototype.originalPositionFor=function(t){var i={generatedLine:_.getArg(t,"line"),generatedColumn:_.getArg(t,"column")},r=rs.search(i,this._sections,function(n,a){var o=n.generatedLine-a.generatedOffset.generatedLine;return o||n.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:i.generatedLine-(s.generatedOffset.generatedLine-1),column:i.generatedColumn-(s.generatedOffset.generatedLine===i.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};be.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};be.prototype.sourceContentFor=function(t,i){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],n=s.consumer.sourceContentFor(t,!0);if(n||n==="")return n}if(i)return null;throw new Error('"'+t+'" is not in the SourceMap.')};be.prototype.generatedPositionFor=function(t){for(var i=0;i<this._sections.length;i++){var r=this._sections[i];if(r.consumer._findSourceIndex(_.getArg(t,"source"))!==-1){var s=r.consumer.generatedPositionFor(t);if(s){var n={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return n}}}return{line:null,column:null}};be.prototype._parseMappings=function(t,i){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],n=s.consumer._generatedMappings,a=0;a<n.length;a++){var o=n[a],h=s.consumer._sources.at(o.source);h=_.computeSourceURL(s.consumer.sourceRoot,h,this._sourceMapURL),this._sources.add(h),h=this._sources.indexOf(h);var l=null;o.name&&(l=s.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var c={source:h,generatedLine:o.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(s.generatedOffset.generatedLine===o.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}Ht(this.__generatedMappings,_.compareByGeneratedPositionsDeflated),Ht(this.__originalMappings,_.compareByOriginalPositions)};Di.IndexedSourceMapConsumer=be});var vo=w(yo=>{var zc=es().SourceMapGenerator,Vi=xt(),$c=/(\r?\n)/,Hc=10,vt="$$$isSourceNode$$$";function ne(e,t,i,r,s){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=i??null,this.name=s??null,this[vt]=!0,r!=null&&this.add(r)}ne.fromStringWithSourceMap=function(t,i,r){var s=new ne,n=t.split($c),a=0,o=function(){var p=m(),d=m()||"";return p+d;function m(){return a<n.length?n[a++]:void 0}},h=1,l=0,c=null;return i.eachMapping(function(p){if(c!==null)if(h<p.generatedLine)f(c,o()),h++,l=0;else{var d=n[a]||"",m=d.substr(0,p.generatedColumn-l);n[a]=d.substr(p.generatedColumn-l),l=p.generatedColumn,f(c,m),c=p;return}for(;h<p.generatedLine;)s.add(o()),h++;if(l<p.generatedColumn){var d=n[a]||"";s.add(d.substr(0,p.generatedColumn)),n[a]=d.substr(p.generatedColumn),l=p.generatedColumn}c=p},this),a<n.length&&(c&&f(c,o()),s.add(n.splice(a).join(""))),i.sources.forEach(function(p){var d=i.sourceContentFor(p);d!=null&&(r!=null&&(p=Vi.join(r,p)),s.setSourceContent(p,d))}),s;function f(p,d){if(p===null||p.source===void 0)s.add(d);else{var m=r?Vi.join(r,p.source):p.source;s.add(new ne(p.originalLine,p.originalColumn,m,d,p.name))}}};ne.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(i){this.add(i)},this);else if(t[vt]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ne.prototype.prepend=function(t){if(Array.isArray(t))for(var i=t.length-1;i>=0;i--)this.prepend(t[i]);else if(t[vt]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ne.prototype.walk=function(t){for(var i,r=0,s=this.children.length;r<s;r++)i=this.children[r],i[vt]?i.walk(t):i!==""&&t(i,{source:this.source,line:this.line,column:this.column,name:this.name})};ne.prototype.join=function(t){var i,r,s=this.children.length;if(s>0){for(i=[],r=0;r<s-1;r++)i.push(this.children[r]),i.push(t);i.push(this.children[r]),this.children=i}return this};ne.prototype.replaceRight=function(t,i){var r=this.children[this.children.length-1];return r[vt]?r.replaceRight(t,i):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,i):this.children.push("".replace(t,i)),this};ne.prototype.setSourceContent=function(t,i){this.sourceContents[Vi.toSetString(t)]=i};ne.prototype.walkSourceContents=function(t){for(var i=0,r=this.children.length;i<r;i++)this.children[i][vt]&&this.children[i].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),i=0,r=s.length;i<r;i++)t(Vi.fromSetString(s[i]),this.sourceContents[s[i]])};ne.prototype.toString=function(){var t="";return this.walk(function(i){t+=i}),t};ne.prototype.toStringWithSourceMap=function(t){var i={code:"",line:1,column:0},r=new zc(t),s=!1,n=null,a=null,o=null,h=null;return this.walk(function(l,c){i.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((n!==c.source||a!==c.line||o!==c.column||h!==c.name)&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name}),n=c.source,a=c.line,o=c.column,h=c.name,s=!0):s&&(r.addMapping({generated:{line:i.line,column:i.column}}),n=null,s=!1);for(var f=0,p=l.length;f<p;f++)l.charCodeAt(f)===Hc?(i.line++,i.column=0,f+1===p?(n=null,s=!1):s&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name})):i.column++}),this.walkSourceContents(function(l,c){r.setSourceContent(l,c)}),{code:i.code,map:r}};yo.SourceNode=ne});var ss=w(Ui=>{Ui.SourceMapGenerator=es().SourceMapGenerator;Ui.SourceMapConsumer=xo().SourceMapConsumer;Ui.SourceNode=vo().SourceNode});var bo=w((cm,_o)=>{var Qc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Yc=(e,t=21)=>(i=t)=>{let r="",s=i;for(;s--;)r+=e[Math.random()*e.length|0];return r},Kc=(e=21)=>{let t="",i=e;for(;i--;)t+=Qc[Math.random()*64|0];return t};_o.exports={nanoid:Kc,customAlphabet:Yc}});var Eo=w((fm,Co)=>{"use strict";var{SourceMapConsumer:So,SourceMapGenerator:wo}=ss(),{existsSync:Jc,readFileSync:Xc}=require("fs"),{dirname:ns,join:Zc}=require("path");function ef(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Qt=class{constructor(t,i){if(i.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=i.map?i.map.prev:void 0,s=this.loadMap(i.from,r);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=ns(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new So(this.text)),this.consumerCache}decodeInline(t){let i=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(t)||n.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(i.test(t)||r.test(t))return ef(t.substr(RegExp.lastMatch.length));let a=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let i=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let r=t.lastIndexOf(i.pop()),s=t.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,s)))}loadFile(t){if(this.root=ns(t),Jc(t))return this.mapFile=t,Xc(t,"utf-8").toString().trim()}loadMap(t,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let r=i(t);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(i instanceof So)return wo.fromSourceMap(i).toString();if(i instanceof wo)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=Zc(ns(t),r)),this.loadFile(r)}}}startWith(t,i){return t?t.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Co.exports=Qt;Qt.default=Qt});var Po=w((pm,Io)=>{"use strict";var{SourceMapConsumer:tf,SourceMapGenerator:rf}=ss(),{fileURLToPath:ko,pathToFileURL:qi}=require("url"),{isAbsolute:us,resolve:hs}=require("path"),{nanoid:sf}=bo(),as=Fr(),Ao=Br(),nf=Eo(),os=Symbol("fromOffsetCache"),af=!!(tf&&rf),No=!!(hs&&us),_t=class{constructor(t,i={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,i.from&&(!No||/^\w+:\/\//.test(i.from)||us(i.from)?this.file=i.from:this.file=hs(i.from)),No&&af){let r=new nf(this.css,i);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+sf(6)+">"),this.map&&(this.map.file=this.from)}error(t,i,r,s={}){let n,a,o;if(i&&typeof i=="object"){let l=i,c=r;if(typeof l.offset=="number"){let f=this.fromOffset(l.offset);i=f.line,r=f.col}else i=l.line,r=l.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);a=f.line,o=f.col}else a=c.line,o=c.column}else if(!r){let l=this.fromOffset(i);i=l.line,r=l.col}let h=this.origin(i,r,a,o);return h?n=new Ao(t,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,s.plugin):n=new Ao(t,a===void 0?i:{column:r,line:i},a===void 0?r:{column:o,line:a},this.css,this.file,s.plugin),n.input={column:r,endColumn:o,endLine:a,line:i,source:this.css},this.file&&(qi&&(n.input.url=qi(this.file).toString()),n.input.file=this.file),n}fromOffset(t){let i,r;if(this[os])r=this[os];else{let n=this.css.split(`
25
+ `);r=new Array(n.length);let a=0;for(let o=0,h=n.length;o<h;o++)r[o]=a,a+=n[o].length+1;this[os]=r}i=r[r.length-1];let s=0;if(t>=i)s=r.length-1;else{let n=r.length-2,a;for(;s<n;)if(a=s+(n-s>>1),t<r[a])n=a-1;else if(t>=r[a+1])s=a+1;else{s=a;break}}return{col:t-r[s]+1,line:s+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:hs(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,i,r,s){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:i,line:t});if(!a.source)return!1;let o;typeof r=="number"&&(o=n.originalPositionFor({column:s,line:r}));let h;us(a.source)?h=qi(a.source):h=new URL(a.source,this.map.consumer().sourceRoot||qi(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:h.toString()};if(h.protocol==="file:")if(ko)l.file=ko(h);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let t={};for(let i of["hasBOM","css","file","id"])this[i]!=null&&(t[i]=this[i]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};Io.exports=_t;_t.default=_t;as&&as.registerInput&&as.registerInput(_t)});var Oo=w((dm,Lo)=>{"use strict";var of=Wt(),uf=Ha(),hf=Po();function ji(e,t){let i=new hf(e,t),r=new uf(i);try{r.parse()}catch(s){throw process.env.NODE_ENV!=="production"&&s.name==="CssSyntaxError"&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+=`
26
26
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?s.message+=`
27
27
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(s.message+=`
28
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return r.root}ko.exports=Di;Di.default=Di;ef.registerParse(Di)});var Oo=w((hm,Po)=>{"use strict";Po.exports=Io;function Io(e,t,i){e instanceof RegExp&&(e=No(e,i)),t instanceof RegExp&&(t=No(t,i));var r=Lo(e,t,i);return r&&{start:r[0],end:r[1],pre:i.slice(0,r[0]),body:i.slice(r[0]+e.length,r[1]),post:i.slice(r[1]+t.length)}}function No(e,t){var i=t.match(e);return i?i[0]:null}Io.range=Lo;function Lo(e,t,i){var r,s,n,a,o,h=i.indexOf(e),l=i.indexOf(t,h+1),c=h;if(h>=0&&l>0){if(e===t)return[h,l];for(r=[],n=i.length;c>=0&&!o;)c==h?(r.push(c),h=i.indexOf(e,c+1)):r.length==1?o=[r.pop(),l]:(s=r.pop(),s<n&&(n=s,a=l),l=i.indexOf(t,c+1)),c=h<l&&h>=0?h:l;r.length&&(o=[n,a])}return o}});var Uo=w((lm,Do)=>{var To=Oo();Do.exports=af;var Ro="\0SLASH"+Math.random()+"\0",Mo="\0OPEN"+Math.random()+"\0",as="\0CLOSE"+Math.random()+"\0",Fo="\0COMMA"+Math.random()+"\0",Bo="\0PERIOD"+Math.random()+"\0";function ns(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function sf(e){return e.split("\\\\").join(Ro).split("\\{").join(Mo).split("\\}").join(as).split("\\,").join(Fo).split("\\.").join(Bo)}function nf(e){return e.split(Ro).join("\\").split(Mo).join("{").split(as).join("}").split(Fo).join(",").split(Bo).join(".")}function Vo(e){if(!e)return[""];var t=[],i=To("{","}",e);if(!i)return e.split(",");var r=i.pre,s=i.body,n=i.post,a=r.split(",");a[a.length-1]+="{"+s+"}";var o=Vo(n);return n.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function af(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Ht(sf(e),!0).map(nf)):[]}function of(e){return"{"+e+"}"}function uf(e){return/^-?0\d/.test(e)}function hf(e,t){return e<=t}function lf(e,t){return e>=t}function Ht(e,t){var i=[],r=To("{","}",e);if(!r)return[e];var s=r.pre,n=r.post.length?Ht(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<n.length;a++){var o=s+"{"+r.body+"}"+n[a];i.push(o)}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=h||l,f=r.body.indexOf(",")>=0;if(!c&&!f)return r.post.match(/,.*\}/)?(e=r.pre+"{"+r.body+as+r.post,Ht(e)):[e];var p;if(c)p=r.body.split(/\.\./);else if(p=Vo(r.body),p.length===1&&(p=Ht(p[0],!1).map(of),p.length===1))return n.map(function(J){return r.pre+p[0]+J});var d;if(c){var m=ns(p[0]),g=ns(p[1]),x=Math.max(p[0].length,p[1].length),b=p.length==3?Math.abs(ns(p[2])):1,C=hf,A=g<m;A&&(b*=-1,C=lf);var k=p.some(uf);d=[];for(var R=m;C(R,g);R+=b){var N;if(l)N=String.fromCharCode(R),N==="\\"&&(N="");else if(N=String(R),k){var G=x-N.length;if(G>0){var U=new Array(G+1).join("0");R<0?N="-"+U+N.slice(1):N=U+N}}d.push(N)}}else{d=[];for(var F=0;F<p.length;F++)d.push.apply(d,Ht(p[F],!1))}for(var F=0;F<d.length;F++)for(var a=0;a<n.length;a++){var o=s+d[F]+n[a];(!t||c||o)&&i.push(o)}}return i}});var iu=w((Nm,tu)=>{"use strict";var{Duplex:Hf}=require("stream");function Zo(e){e.emit("close")}function Qf(){!this.destroyed&&this._writableState.finished&&this.destroy()}function eu(e){this.removeListener("error",eu),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e)}function Yf(e,t){let i=!0,r=new Hf({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(n,a){let o=!a&&r._readableState.objectMode?n.toString():n;r.push(o)||e.pause()}),e.once("error",function(n){r.destroyed||(i=!1,r.destroy(n))}),e.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(s,n){if(e.readyState===e.CLOSED){n(s),process.nextTick(Zo,r);return}let a=!1;e.once("error",function(h){a=!0,n(h)}),e.once("close",function(){a||n(s),process.nextTick(Zo,r)}),i&&e.terminate()},r._final=function(s){if(e.readyState===e.CONNECTING){e.once("open",function(){r._final(s)});return}e._socket!==null&&(e._socket._writableState.finished?(s(),r._readableState.endEmitted&&r.destroy()):(e._socket.once("finish",function(){s()}),e.close()))},r._read=function(){e.isPaused&&e.resume()},r._write=function(s,n,a){if(e.readyState===e.CONNECTING){e.once("open",function(){r._write(s,n,a)});return}e.send(s,a)},r.on("end",Qf),r.on("error",eu),r}tu.exports=Yf});var ze=w((Im,ru)=>{"use strict";ru.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Kt=w((Lm,qi)=>{"use strict";var{EMPTY_BUFFER:Kf}=ze(),hs=Buffer[Symbol.species];function Jf(e,t){if(e.length===0)return Kf;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),r=0;for(let s=0;s<e.length;s++){let n=e[s];i.set(n,r),r+=n.length}return r<t?new hs(i.buffer,i.byteOffset,r):i}function su(e,t,i,r,s){for(let n=0;n<s;n++)i[r+n]=e[n]^t[n&3]}function nu(e,t){for(let i=0;i<e.length;i++)e[i]^=t[i&3]}function Xf(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function ls(e){if(ls.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new hs(e):ArrayBuffer.isView(e)?t=new hs(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),ls.readOnly=!1),t}qi.exports={concat:Jf,mask:su,toArrayBuffer:Xf,toBuffer:ls,unmask:nu};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=require("bufferutil");qi.exports.mask=function(t,i,r,s,n){n<48?su(t,i,r,s,n):e.mask(t,i,r,s,n)},qi.exports.unmask=function(t,i){t.length<32?nu(t,i):e.unmask(t,i)}}catch{}});var uu=w((Pm,ou)=>{"use strict";var au=Symbol("kDone"),cs=Symbol("kRun"),fs=class{constructor(t){this[au]=()=>{this.pending--,this[cs]()},this.concurrency=t||1/0,this.jobs=[],this.pending=0}add(t){this.jobs.push(t),this[cs]()}[cs](){if(this.pending!==this.concurrency&&this.jobs.length){let t=this.jobs.shift();this.pending++,t(this[au])}}};ou.exports=fs});var Zt=w((Om,fu)=>{"use strict";var Jt=require("zlib"),hu=Kt(),Zf=uu(),{kStatusCode:lu}=ze(),ep=Buffer[Symbol.species],tp=Buffer.from([0,0,255,255]),Gi=Symbol("permessage-deflate"),Re=Symbol("total-length"),Xt=Symbol("callback"),$e=Symbol("buffers"),Wi=Symbol("error"),ji,ps=class{constructor(t,i,r){if(this._maxPayload=r|0,this._options=t||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!i,this._deflate=null,this._inflate=null,this.params=null,!ji){let s=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;ji=new Zf(s)}}static get extensionName(){return"permessage-deflate"}offer(){let t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let t=this._deflate[Xt];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(t){let i=this._options,r=t.find(s=>!(i.serverNoContextTakeover===!1&&s.server_no_context_takeover||s.server_max_window_bits&&(i.serverMaxWindowBits===!1||typeof i.serverMaxWindowBits=="number"&&i.serverMaxWindowBits>s.server_max_window_bits)||typeof i.clientMaxWindowBits=="number"&&!s.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return i.serverNoContextTakeover&&(r.server_no_context_takeover=!0),i.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof i.serverMaxWindowBits=="number"&&(r.server_max_window_bits=i.serverMaxWindowBits),typeof i.clientMaxWindowBits=="number"?r.client_max_window_bits=i.clientMaxWindowBits:(r.client_max_window_bits===!0||i.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(t){let i=t[0];if(this._options.clientNoContextTakeover===!1&&i.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!i.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(i.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&i.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return i}normalizeParams(t){return t.forEach(i=>{Object.keys(i).forEach(r=>{let s=i[r];if(s.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(s=s[0],r==="client_max_window_bits"){if(s!==!0){let n=+s;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=n}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else if(r==="server_max_window_bits"){let n=+s;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=n}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(s!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else throw new Error(`Unknown parameter "${r}"`);i[r]=s})}),t}decompress(t,i,r){ji.add(s=>{this._decompress(t,i,(n,a)=>{s(),r(n,a)})})}compress(t,i,r){ji.add(s=>{this._compress(t,i,(n,a)=>{s(),r(n,a)})})}_decompress(t,i,r){let s=this._isServer?"client":"server";if(!this._inflate){let n=`${s}_max_window_bits`,a=typeof this.params[n]!="number"?Jt.Z_DEFAULT_WINDOWBITS:this.params[n];this._inflate=Jt.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[Gi]=this,this._inflate[Re]=0,this._inflate[$e]=[],this._inflate.on("error",rp),this._inflate.on("data",cu)}this._inflate[Xt]=r,this._inflate.write(t),i&&this._inflate.write(tp),this._inflate.flush(()=>{let n=this._inflate[Wi];if(n){this._inflate.close(),this._inflate=null,r(n);return}let a=hu.concat(this._inflate[$e],this._inflate[Re]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Re]=0,this._inflate[$e]=[],i&&this.params[`${s}_no_context_takeover`]&&this._inflate.reset()),r(null,a)})}_compress(t,i,r){let s=this._isServer?"server":"client";if(!this._deflate){let n=`${s}_max_window_bits`,a=typeof this.params[n]!="number"?Jt.Z_DEFAULT_WINDOWBITS:this.params[n];this._deflate=Jt.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[Re]=0,this._deflate[$e]=[],this._deflate.on("data",ip)}this._deflate[Xt]=r,this._deflate.write(t),this._deflate.flush(Jt.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let n=hu.concat(this._deflate[$e],this._deflate[Re]);i&&(n=new ep(n.buffer,n.byteOffset,n.length-4)),this._deflate[Xt]=null,this._deflate[Re]=0,this._deflate[$e]=[],i&&this.params[`${s}_no_context_takeover`]&&this._deflate.reset(),r(null,n)})}};fu.exports=ps;function ip(e){this[$e].push(e),this[Re]+=e.length}function cu(e){if(this[Re]+=e.length,this[Gi]._maxPayload<1||this[Re]<=this[Gi]._maxPayload){this[$e].push(e);return}this[Wi]=new RangeError("Max payload size exceeded"),this[Wi].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Wi][lu]=1009,this.removeListener("data",cu),this.reset()}function rp(e){this[Gi]._inflate=null,e[lu]=1007,this[Xt](e)}});var ei=w((Tm,zi)=>{"use strict";var{isUtf8:pu}=require("buffer"),sp=[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 np(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function ds(e){let t=e.length,i=0;for(;i<t;)if(!(e[i]&128))i++;else if((e[i]&224)===192){if(i+1===t||(e[i+1]&192)!==128||(e[i]&254)===192)return!1;i+=2}else if((e[i]&240)===224){if(i+2>=t||(e[i+1]&192)!==128||(e[i+2]&192)!==128||e[i]===224&&(e[i+1]&224)===128||e[i]===237&&(e[i+1]&224)===160)return!1;i+=3}else if((e[i]&248)===240){if(i+3>=t||(e[i+1]&192)!==128||(e[i+2]&192)!==128||(e[i+3]&192)!==128||e[i]===240&&(e[i+1]&240)===128||e[i]===244&&e[i+1]>143||e[i]>244)return!1;i+=4}else return!1;return!0}zi.exports={isValidStatusCode:np,isValidUTF8:ds,tokenChars:sp};if(pu)zi.exports.isValidUTF8=function(e){return e.length<24?ds(e):pu(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=require("utf-8-validate");zi.exports.isValidUTF8=function(t){return t.length<32?ds(t):e(t)}}catch{}});var vs=w((Rm,_u)=>{"use strict";var{Writable:ap}=require("stream"),du=Zt(),{BINARY_TYPES:op,EMPTY_BUFFER:mu,kStatusCode:up,kWebSocket:hp}=ze(),{concat:ms,toArrayBuffer:lp,unmask:cp}=Kt(),{isValidStatusCode:fp,isValidUTF8:gu}=ei(),$i=Buffer[Symbol.species],xe=0,xu=1,yu=2,vu=3,gs=4,xs=5,Hi=6,ys=class extends ap{constructor(t={}){super(),this._allowSynchronousEvents=t.allowSynchronousEvents!==void 0?t.allowSynchronousEvents:!0,this._binaryType=t.binaryType||op[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=t.maxPayload|0,this._skipUTF8Validation=!!t.skipUTF8Validation,this[hp]=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=xe}_write(t,i,r){if(this._opcode===8&&this._state==xe)return r();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(r)}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new $i(r.buffer,r.byteOffset+t,r.length-t),new $i(r.buffer,r.byteOffset,t)}let i=Buffer.allocUnsafe(t);do{let r=this._buffers[0],s=i.length-t;t>=r.length?i.set(this._buffers.shift(),s):(i.set(new Uint8Array(r.buffer,r.byteOffset,t),s),this._buffers[0]=new $i(r.buffer,r.byteOffset+t,r.length-t)),t-=r.length}while(t>0);return i}startLoop(t){this._loop=!0;do switch(this._state){case xe:this.getInfo(t);break;case xu:this.getPayloadLength16(t);break;case yu:this.getPayloadLength64(t);break;case vu:this.getMask();break;case gs:this.getData(t);break;case xs:case Hi:this._loop=!1;return}while(this._loop);this._errored||t()}getInfo(t){if(this._bufferedBytes<2){this._loop=!1;return}let i=this.consume(2);if(i[0]&48){let s=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");t(s);return}let r=(i[0]&64)===64;if(r&&!this._extensions[du.extensionName]){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(s);return}if(this._fin=(i[0]&128)===128,this._opcode=i[0]&15,this._payloadLength=i[1]&127,this._opcode===0){if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(s);return}if(!this._fragmented){let s=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");t(s);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(s);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let s=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");t(s);return}if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(s);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let s=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");t(s);return}}else{let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(s);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(i[1]&128)===128,this._isServer){if(!this._masked){let s=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");t(s);return}}else if(this._masked){let s=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");t(s);return}this._payloadLength===126?this._state=xu:this._payloadLength===127?this._state=yu:this.haveLength(t)}getPayloadLength16(t){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t)}getPayloadLength64(t){if(this._bufferedBytes<8){this._loop=!1;return}let i=this.consume(8),r=i.readUInt32BE(0);if(r>Math.pow(2,21)-1){let s=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");t(s);return}this._payloadLength=r*Math.pow(2,32)+i.readUInt32BE(4),this.haveLength(t)}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let i=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(i);return}this._masked?this._state=vu:this._state=gs}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=gs}getData(t){let i=mu;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}i=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&cp(i,this._mask)}if(this._opcode>7){this.controlMessage(i,t);return}if(this._compressed){this._state=xs,this.decompress(i,t);return}i.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(i)),this.dataMessage(t)}decompress(t,i){this._extensions[du.extensionName].decompress(t,this._fin,(s,n)=>{if(s)return i(s);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");i(a);return}this._fragments.push(n)}this.dataMessage(i),this._state===xe&&this.startLoop(i)})}dataMessage(t){if(!this._fin){this._state=xe;return}let i=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let s;this._binaryType==="nodebuffer"?s=ms(r,i):this._binaryType==="arraybuffer"?s=lp(ms(r,i)):s=r,this._allowSynchronousEvents?(this.emit("message",s,!0),this._state=xe):(this._state=Hi,setImmediate(()=>{this.emit("message",s,!0),this._state=xe,this.startLoop(t)}))}else{let s=ms(r,i);if(!this._skipUTF8Validation&&!gu(s)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(n);return}this._state===xs||this._allowSynchronousEvents?(this.emit("message",s,!1),this._state=xe):(this._state=Hi,setImmediate(()=>{this.emit("message",s,!1),this._state=xe,this.startLoop(t)}))}}controlMessage(t,i){if(this._opcode===8){if(t.length===0)this._loop=!1,this.emit("conclude",1005,mu),this.end();else{let r=t.readUInt16BE(0);if(!fp(r)){let n=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");i(n);return}let s=new $i(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!gu(s)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");i(n);return}this._loop=!1,this.emit("conclude",r,s),this.end()}this._state=xe;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",t),this._state=xe):(this._state=Hi,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",t),this._state=xe,this.startLoop(i)}))}createError(t,i,r,s,n){this._loop=!1,this._errored=!0;let a=new t(r?`Invalid WebSocket frame: ${i}`:i);return Error.captureStackTrace(a,this.createError),a.code=n,a[up]=s,a}};_u.exports=ys});var bs=w((Fm,wu)=>{"use strict";var{Duplex:Mm}=require("stream"),{randomFillSync:pp}=require("crypto"),bu=Zt(),{EMPTY_BUFFER:dp}=ze(),{isValidStatusCode:mp}=ei(),{mask:Su,toBuffer:St}=Kt(),Se=Symbol("kByteLength"),gp=Buffer.alloc(4),_s=class e{constructor(t,i,r){this._extensions=i||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(t,i){let r,s=!1,n=2,a=!1;i.mask&&(r=i.maskBuffer||gp,i.generateMask?i.generateMask(r):pp(r,0,4),a=(r[0]|r[1]|r[2]|r[3])===0,n=6);let o;typeof t=="string"?(!i.mask||a)&&i[Se]!==void 0?o=i[Se]:(t=Buffer.from(t),o=t.length):(o=t.length,s=i.mask&&i.readOnly&&!a);let h=o;o>=65536?(n+=8,h=127):o>125&&(n+=2,h=126);let l=Buffer.allocUnsafe(s?o+n:n);return l[0]=i.fin?i.opcode|128:i.opcode,i.rsv1&&(l[0]|=64),l[1]=h,h===126?l.writeUInt16BE(o,2):h===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),i.mask?(l[1]|=128,l[n-4]=r[0],l[n-3]=r[1],l[n-2]=r[2],l[n-1]=r[3],a?[l,t]:s?(Su(t,r,l,n,o),[l]):(Su(t,r,t,0,o),[l,t])):[l,t]}close(t,i,r,s){let n;if(t===void 0)n=dp;else{if(typeof t!="number"||!mp(t))throw new TypeError("First argument must be a valid error code number");if(i===void 0||!i.length)n=Buffer.allocUnsafe(2),n.writeUInt16BE(t,0);else{let o=Buffer.byteLength(i);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+o),n.writeUInt16BE(t,0),typeof i=="string"?n.write(i,2):n.set(i,2)}}let a={[Se]:n.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,n,!1,a,s]):this.sendFrame(e.frame(n,a),s)}ping(t,i,r){let s,n;if(typeof t=="string"?(s=Buffer.byteLength(t),n=!1):(t=St(t),s=t.length,n=St.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Se]:s,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:9,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,t,!1,a,r]):this.sendFrame(e.frame(t,a),r)}pong(t,i,r){let s,n;if(typeof t=="string"?(s=Buffer.byteLength(t),n=!1):(t=St(t),s=t.length,n=St.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Se]:s,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:10,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,t,!1,a,r]):this.sendFrame(e.frame(t,a),r)}send(t,i,r){let s=this._extensions[bu.extensionName],n=i.binary?2:1,a=i.compress,o,h;if(typeof t=="string"?(o=Buffer.byteLength(t),h=!1):(t=St(t),o=t.length,h=St.readOnly),this._firstFragment?(this._firstFragment=!1,a&&s&&s.params[s._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=s._threshold),this._compress=a):(a=!1,n=0),i.fin&&(this._firstFragment=!0),s){let l={[Se]:o,fin:i.fin,generateMask:this._generateMask,mask:i.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:h,rsv1:a};this._deflating?this.enqueue([this.dispatch,t,this._compress,l,r]):this.dispatch(t,this._compress,l,r)}else this.sendFrame(e.frame(t,{[Se]:o,fin:i.fin,generateMask:this._generateMask,mask:i.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:h,rsv1:!1}),r)}dispatch(t,i,r,s){if(!i){this.sendFrame(e.frame(t,r),s);return}let n=this._extensions[bu.extensionName];this._bufferedBytes+=r[Se],this._deflating=!0,n.compress(t,r.fin,(a,o)=>{if(this._socket.destroyed){let h=new Error("The socket was closed while data was being compressed");typeof s=="function"&&s(h);for(let l=0;l<this._queue.length;l++){let c=this._queue[l],f=c[c.length-1];typeof f=="function"&&f(h)}return}this._bufferedBytes-=r[Se],this._deflating=!1,r.readOnly=!1,this.sendFrame(e.frame(o,r),s),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let t=this._queue.shift();this._bufferedBytes-=t[3][Se],Reflect.apply(t[0],this,t.slice(1))}}enqueue(t){this._bufferedBytes+=t[3][Se],this._queue.push(t)}sendFrame(t,i){t.length===2?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],i),this._socket.uncork()):this._socket.write(t[0],i)}};wu.exports=_s});var Ou=w((Bm,Pu)=>{"use strict";var{kForOnEventAttribute:ti,kListener:Ss}=ze(),Cu=Symbol("kCode"),Eu=Symbol("kData"),ku=Symbol("kError"),Au=Symbol("kMessage"),Nu=Symbol("kReason"),wt=Symbol("kTarget"),Iu=Symbol("kType"),Lu=Symbol("kWasClean"),Me=class{constructor(t){this[wt]=null,this[Iu]=t}get target(){return this[wt]}get type(){return this[Iu]}};Object.defineProperty(Me.prototype,"target",{enumerable:!0});Object.defineProperty(Me.prototype,"type",{enumerable:!0});var tt=class extends Me{constructor(t,i={}){super(t),this[Cu]=i.code===void 0?0:i.code,this[Nu]=i.reason===void 0?"":i.reason,this[Lu]=i.wasClean===void 0?!1:i.wasClean}get code(){return this[Cu]}get reason(){return this[Nu]}get wasClean(){return this[Lu]}};Object.defineProperty(tt.prototype,"code",{enumerable:!0});Object.defineProperty(tt.prototype,"reason",{enumerable:!0});Object.defineProperty(tt.prototype,"wasClean",{enumerable:!0});var Ct=class extends Me{constructor(t,i={}){super(t),this[ku]=i.error===void 0?null:i.error,this[Au]=i.message===void 0?"":i.message}get error(){return this[ku]}get message(){return this[Au]}};Object.defineProperty(Ct.prototype,"error",{enumerable:!0});Object.defineProperty(Ct.prototype,"message",{enumerable:!0});var ii=class extends Me{constructor(t,i={}){super(t),this[Eu]=i.data===void 0?null:i.data}get data(){return this[Eu]}};Object.defineProperty(ii.prototype,"data",{enumerable:!0});var xp={addEventListener(e,t,i={}){for(let s of this.listeners(e))if(!i[ti]&&s[Ss]===t&&!s[ti])return;let r;if(e==="message")r=function(n,a){let o=new ii("message",{data:a?n:n.toString()});o[wt]=this,Qi(t,this,o)};else if(e==="close")r=function(n,a){let o=new tt("close",{code:n,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[wt]=this,Qi(t,this,o)};else if(e==="error")r=function(n){let a=new Ct("error",{error:n,message:n.message});a[wt]=this,Qi(t,this,a)};else if(e==="open")r=function(){let n=new Me("open");n[wt]=this,Qi(t,this,n)};else return;r[ti]=!!i[ti],r[Ss]=t,i.once?this.once(e,r):this.on(e,r)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[Ss]===t&&!i[ti]){this.removeListener(e,i);break}}};Pu.exports={CloseEvent:tt,ErrorEvent:Ct,Event:Me,EventTarget:xp,MessageEvent:ii};function Qi(e,t,i){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,i):e.call(t,i)}});var ws=w((Vm,Tu)=>{"use strict";var{tokenChars:ri}=ei();function Ne(e,t,i){e[t]===void 0?e[t]=[i]:e[t].push(i)}function yp(e){let t=Object.create(null),i=Object.create(null),r=!1,s=!1,n=!1,a,o,h=-1,l=-1,c=-1,f=0;for(;f<e.length;f++)if(l=e.charCodeAt(f),a===void 0)if(c===-1&&ri[l]===1)h===-1&&(h=f);else if(f!==0&&(l===32||l===9))c===-1&&h!==-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let d=e.slice(h,c);l===44?(Ne(t,d,i),i=Object.create(null)):a=d,h=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);else if(o===void 0)if(c===-1&&ri[l]===1)h===-1&&(h=f);else if(l===32||l===9)c===-1&&h!==-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f),Ne(i,e.slice(h,c),!0),l===44&&(Ne(t,a,i),i=Object.create(null),a=void 0),h=c=-1}else if(l===61&&h!==-1&&c===-1)o=e.slice(h,f),h=c=-1;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(s){if(ri[l]!==1)throw new SyntaxError(`Unexpected character at index ${f}`);h===-1?h=f:r||(r=!0),s=!1}else if(n)if(ri[l]===1)h===-1&&(h=f);else if(l===34&&h!==-1)n=!1,c=f;else if(l===92)s=!0;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(l===34&&e.charCodeAt(f-1)===61)n=!0;else if(c===-1&&ri[l]===1)h===-1&&(h=f);else if(h!==-1&&(l===32||l===9))c===-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let d=e.slice(h,c);r&&(d=d.replace(/\\/g,""),r=!1),Ne(i,o,d),l===44&&(Ne(t,a,i),i=Object.create(null),a=void 0),o=void 0,h=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);if(h===-1||n||l===32||l===9)throw new SyntaxError("Unexpected end of input");c===-1&&(c=f);let p=e.slice(h,c);return a===void 0?Ne(t,p,i):(o===void 0?Ne(i,p,!0):r?Ne(i,o,p.replace(/\\/g,"")):Ne(i,o,p),Ne(t,a,i)),t}function vp(e){return Object.keys(e).map(t=>{let i=e[t];return Array.isArray(i)||(i=[i]),i.map(r=>[t].concat(Object.keys(r).map(s=>{let n=r[s];return Array.isArray(n)||(n=[n]),n.map(a=>a===!0?s:`${s}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Tu.exports={format:vp,parse:yp}});var Ns=w((qm,Gu)=>{"use strict";var _p=require("events"),bp=require("https"),Sp=require("http"),Fu=require("net"),wp=require("tls"),{randomBytes:Cp,createHash:Ep}=require("crypto"),{Duplex:Dm,Readable:Um}=require("stream"),{URL:Cs}=require("url"),He=Zt(),kp=vs(),Ap=bs(),{BINARY_TYPES:Ru,EMPTY_BUFFER:Yi,GUID:Np,kForOnEventAttribute:Es,kListener:Ip,kStatusCode:Lp,kWebSocket:Z,NOOP:Bu}=ze(),{EventTarget:{addEventListener:Pp,removeEventListener:Op}}=Ou(),{format:Tp,parse:Rp}=ws(),{toBuffer:Mp}=Kt(),Fp=30*1e3,Vu=Symbol("kAborted"),ks=[8,13],Fe=["CONNECTING","OPEN","CLOSING","CLOSED"],Bp=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,W=class e extends _p{constructor(t,i,r){super(),this._binaryType=Ru[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Yi,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,i===void 0?i=[]:Array.isArray(i)||(typeof i=="object"&&i!==null?(r=i,i=[]):i=[i]),Du(this,t,i,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(t){Ru.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t))}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(t,i,r){let s=new kp({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new Ap(t,this._extensions,r.generateMask),this._receiver=s,this._socket=t,s[Z]=this,t[Z]=this,s.on("conclude",Up),s.on("drain",qp),s.on("error",jp),s.on("message",Wp),s.on("ping",Gp),s.on("pong",zp),t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),i.length>0&&t.unshift(i),t.on("close",qu),t.on("data",Ji),t.on("end",ju),t.on("error",Wu),this._readyState=e.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[He.extensionName]&&this._extensions[He.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(t,i){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){ae(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,i,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),Fp)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,i,r){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(r=t,t=i=void 0):typeof i=="function"&&(r=i,i=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){As(this,t,r);return}i===void 0&&(i=!this._isServer),this._sender.ping(t||Yi,i,r)}pong(t,i,r){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(r=t,t=i=void 0):typeof i=="function"&&(r=i,i=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){As(this,t,r);return}i===void 0&&(i=!this._isServer),this._sender.pong(t||Yi,i,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,i,r){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof i=="function"&&(r=i,i={}),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){As(this,t,r);return}let s={binary:typeof t!="string",mask:!this._isServer,compress:!0,fin:!0,...i};this._extensions[He.extensionName]||(s.compress=!1),this._sender.send(t||Yi,s,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){ae(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(W,"CONNECTING",{enumerable:!0,value:Fe.indexOf("CONNECTING")});Object.defineProperty(W.prototype,"CONNECTING",{enumerable:!0,value:Fe.indexOf("CONNECTING")});Object.defineProperty(W,"OPEN",{enumerable:!0,value:Fe.indexOf("OPEN")});Object.defineProperty(W.prototype,"OPEN",{enumerable:!0,value:Fe.indexOf("OPEN")});Object.defineProperty(W,"CLOSING",{enumerable:!0,value:Fe.indexOf("CLOSING")});Object.defineProperty(W.prototype,"CLOSING",{enumerable:!0,value:Fe.indexOf("CLOSING")});Object.defineProperty(W,"CLOSED",{enumerable:!0,value:Fe.indexOf("CLOSED")});Object.defineProperty(W.prototype,"CLOSED",{enumerable:!0,value:Fe.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(W.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach(e=>{Object.defineProperty(W.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[Es])return t[Ip];return null},set(t){for(let i of this.listeners(e))if(i[Es]){this.removeListener(e,i);break}typeof t=="function"&&this.addEventListener(e,t,{[Es]:!0})}})});W.prototype.addEventListener=Pp;W.prototype.removeEventListener=Op;Gu.exports=W;function Du(e,t,i,r){let s={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:ks[1],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(e._autoPong=s.autoPong,!ks.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${ks.join(", ")})`);let n;if(t instanceof Cs)n=t;else try{n=new Cs(t)}catch{throw new SyntaxError(`Invalid URL: ${t}`)}n.protocol==="http:"?n.protocol="ws:":n.protocol==="https:"&&(n.protocol="wss:"),e._url=n.href;let a=n.protocol==="wss:",o=n.protocol==="ws+unix:",h;if(n.protocol!=="ws:"&&!a&&!o?h=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:o&&!n.pathname?h="The URL's pathname is empty":n.hash&&(h="The URL contains a fragment identifier"),h){let g=new SyntaxError(h);if(e._redirects===0)throw g;Ki(e,g);return}let l=a?443:80,c=Cp(16).toString("base64"),f=a?bp.request:Sp.request,p=new Set,d;if(s.createConnection=s.createConnection||(a?Dp:Vp),s.defaultPort=s.defaultPort||l,s.port=n.port||l,s.host=n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket"},s.path=n.pathname+n.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(d=new He(s.perMessageDeflate!==!0?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=Tp({[He.extensionName]:d.offer()})),i.length){for(let g of i){if(typeof g!="string"||!Bp.test(g)||p.has(g))throw new SyntaxError("An invalid or duplicated subprotocol was specified");p.add(g)}s.headers["Sec-WebSocket-Protocol"]=i.join(",")}if(s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(n.username||n.password)&&(s.auth=`${n.username}:${n.password}`),o){let g=s.path.split(":");s.socketPath=g[0],s.path=g[1]}let m;if(s.followRedirects){if(e._redirects===0){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?s.socketPath:n.host;let g=r&&r.headers;if(r={...r,headers:{}},g)for(let[x,b]of Object.entries(g))r.headers[x.toLowerCase()]=b}else if(e.listenerCount("redirect")===0){let g=o?e._originalIpc?s.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:n.host===e._originalHostOrSocketPath;(!g||e._originalSecure&&!a)&&(delete s.headers.authorization,delete s.headers.cookie,g||delete s.headers.host,s.auth=void 0)}s.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")),m=e._req=f(s),e._redirects&&e.emit("redirect",e.url,m)}else m=e._req=f(s);s.timeout&&m.on("timeout",()=>{ae(e,m,"Opening handshake has timed out")}),m.on("error",g=>{m===null||m[Vu]||(m=e._req=null,Ki(e,g))}),m.on("response",g=>{let x=g.headers.location,b=g.statusCode;if(x&&s.followRedirects&&b>=300&&b<400){if(++e._redirects>s.maxRedirects){ae(e,m,"Maximum redirects exceeded");return}m.abort();let C;try{C=new Cs(x,t)}catch{let k=new SyntaxError(`Invalid URL: ${x}`);Ki(e,k);return}Du(e,C,i,r)}else e.emit("unexpected-response",m,g)||ae(e,m,`Unexpected server response: ${g.statusCode}`)}),m.on("upgrade",(g,x,b)=>{if(e.emit("upgrade",g),e.readyState!==W.CONNECTING)return;if(m=e._req=null,g.headers.upgrade.toLowerCase()!=="websocket"){ae(e,x,"Invalid Upgrade header");return}let C=Ep("sha1").update(c+Np).digest("base64");if(g.headers["sec-websocket-accept"]!==C){ae(e,x,"Invalid Sec-WebSocket-Accept header");return}let A=g.headers["sec-websocket-protocol"],k;if(A!==void 0?p.size?p.has(A)||(k="Server sent an invalid subprotocol"):k="Server sent a subprotocol but none was requested":p.size&&(k="Server sent no subprotocol"),k){ae(e,x,k);return}A&&(e._protocol=A);let R=g.headers["sec-websocket-extensions"];if(R!==void 0){if(!d){ae(e,x,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let N;try{N=Rp(R)}catch{ae(e,x,"Invalid Sec-WebSocket-Extensions header");return}let G=Object.keys(N);if(G.length!==1||G[0]!==He.extensionName){ae(e,x,"Server indicated an extension that was not requested");return}try{d.accept(N[He.extensionName])}catch{ae(e,x,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[He.extensionName]=d}e.setSocket(x,b,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}),s.finishRequest?s.finishRequest(m,e):m.end()}function Ki(e,t){e._readyState=W.CLOSING,e.emit("error",t),e.emitClose()}function Vp(e){return e.path=e.socketPath,Fu.connect(e)}function Dp(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=Fu.isIP(e.host)?"":e.host),wp.connect(e)}function ae(e,t,i){e._readyState=W.CLOSING;let r=new Error(i);Error.captureStackTrace(r,ae),t.setHeader?(t[Vu]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(Ki,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function As(e,t,i){if(t){let r=Mp(t).length;e._socket?e._sender._bufferedBytes+=r:e._bufferedAmount+=r}if(i){let r=new Error(`WebSocket is not open: readyState ${e.readyState} (${Fe[e.readyState]})`);process.nextTick(i,r)}}function Up(e,t){let i=this[Z];i._closeFrameReceived=!0,i._closeMessage=t,i._closeCode=e,i._socket[Z]!==void 0&&(i._socket.removeListener("data",Ji),process.nextTick(Uu,i._socket),e===1005?i.close():i.close(e,t))}function qp(){let e=this[Z];e.isPaused||e._socket.resume()}function jp(e){let t=this[Z];t._socket[Z]!==void 0&&(t._socket.removeListener("data",Ji),process.nextTick(Uu,t._socket),t.close(e[Lp])),t.emit("error",e)}function Mu(){this[Z].emitClose()}function Wp(e,t){this[Z].emit("message",e,t)}function Gp(e){let t=this[Z];t._autoPong&&t.pong(e,!this._isServer,Bu),t.emit("ping",e)}function zp(e){this[Z].emit("pong",e)}function Uu(e){e.resume()}function qu(){let e=this[Z];this.removeListener("close",qu),this.removeListener("data",Ji),this.removeListener("end",ju),e._readyState=W.CLOSING;let t;!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null&&e._receiver.write(t),e._receiver.end(),this[Z]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",Mu),e._receiver.on("finish",Mu))}function Ji(e){this[Z]._receiver.write(e)||this.pause()}function ju(){let e=this[Z];e._readyState=W.CLOSING,e._receiver.end(),this.end()}function Wu(){let e=this[Z];this.removeListener("error",Wu),this.on("error",Bu),e&&(e._readyState=W.CLOSING,this.destroy())}});var $u=w((jm,zu)=>{"use strict";var{tokenChars:$p}=ei();function Hp(e){let t=new Set,i=-1,r=-1,s=0;for(s;s<e.length;s++){let a=e.charCodeAt(s);if(r===-1&&$p[a]===1)i===-1&&(i=s);else if(s!==0&&(a===32||a===9))r===-1&&i!==-1&&(r=s);else if(a===44){if(i===-1)throw new SyntaxError(`Unexpected character at index ${s}`);r===-1&&(r=s);let o=e.slice(i,r);if(t.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);t.add(o),i=r=-1}else throw new SyntaxError(`Unexpected character at index ${s}`)}if(i===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let n=e.slice(i,s);if(t.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);return t.add(n),t}zu.exports={parse:Hp}});var Zu=w((Gm,Xu)=>{"use strict";var Qp=require("events"),Xi=require("http"),{Duplex:Wm}=require("stream"),{createHash:Yp}=require("crypto"),Hu=ws(),it=Zt(),Kp=$u(),Jp=Ns(),{GUID:Xp,kWebSocket:Zp}=ze(),ed=/^[+/0-9A-Za-z]{22}==$/,Qu=0,Yu=1,Ju=2,Is=class extends Qp{constructor(t,i){if(super(),t={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Jp,...t},t.port==null&&!t.server&&!t.noServer||t.port!=null&&(t.server||t.noServer)||t.server&&t.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(t.port!=null?(this._server=Xi.createServer((r,s)=>{let n=Xi.STATUS_CODES[426];s.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),s.end(n)}),this._server.listen(t.port,t.host,t.backlog,i)):t.server&&(this._server=t.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=td(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(s,n,a)=>{this.handleUpgrade(s,n,a,r)}})}t.perMessageDeflate===!0&&(t.perMessageDeflate={}),t.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=t,this._state=Qu}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(t){if(this._state===Ju){t&&this.once("close",()=>{t(new Error("The server is not running"))}),process.nextTick(si,this);return}if(t&&this.once("close",t),this._state!==Yu)if(this._state=Yu,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(si,this):process.nextTick(si,this);else{let i=this._server;this._removeListeners(),this._removeListeners=this._server=null,i.close(()=>{si(this)})}}shouldHandle(t){if(this.options.path){let i=t.url.indexOf("?");if((i!==-1?t.url.slice(0,i):t.url)!==this.options.path)return!1}return!0}handleUpgrade(t,i,r,s){i.on("error",Ku);let n=t.headers["sec-websocket-key"],a=+t.headers["sec-websocket-version"];if(t.method!=="GET"){rt(this,t,i,405,"Invalid HTTP method");return}if(t.headers.upgrade.toLowerCase()!=="websocket"){rt(this,t,i,400,"Invalid Upgrade header");return}if(!n||!ed.test(n)){rt(this,t,i,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==8&&a!==13){rt(this,t,i,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(t)){ni(i,400);return}let o=t.headers["sec-websocket-protocol"],h=new Set;if(o!==void 0)try{h=Kp.parse(o)}catch{rt(this,t,i,400,"Invalid Sec-WebSocket-Protocol header");return}let l=t.headers["sec-websocket-extensions"],c={};if(this.options.perMessageDeflate&&l!==void 0){let f=new it(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let p=Hu.parse(l);p[it.extensionName]&&(f.accept(p[it.extensionName]),c[it.extensionName]=f)}catch{rt(this,t,i,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:t.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(t.socket.authorized||t.socket.encrypted),req:t};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(p,d,m,g)=>{if(!p)return ni(i,d||401,m,g);this.completeUpgrade(c,n,h,t,i,r,s)});return}if(!this.options.verifyClient(f))return ni(i,401)}this.completeUpgrade(c,n,h,t,i,r,s)}completeUpgrade(t,i,r,s,n,a,o){if(!n.readable||!n.writable)return n.destroy();if(n[Zp])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Qu)return ni(n,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Yp("sha1").update(i+Xp).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(r.size){let f=this.options.handleProtocols?this.options.handleProtocols(r,s):r.values().next().value;f&&(l.push(`Sec-WebSocket-Protocol: ${f}`),c._protocol=f)}if(t[it.extensionName]){let f=t[it.extensionName].params,p=Hu.format({[it.extensionName]:[f]});l.push(`Sec-WebSocket-Extensions: ${p}`),c._extensions=t}this.emit("headers",l,s),n.write(l.concat(`\r
28
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return r.root}Lo.exports=ji;ji.default=ji;of.registerParse(ji)});var Bo=w((mm,Fo)=>{"use strict";Fo.exports=Ro;function Ro(e,t,i){e instanceof RegExp&&(e=To(e,i)),t instanceof RegExp&&(t=To(t,i));var r=Mo(e,t,i);return r&&{start:r[0],end:r[1],pre:i.slice(0,r[0]),body:i.slice(r[0]+e.length,r[1]),post:i.slice(r[1]+t.length)}}function To(e,t){var i=t.match(e);return i?i[0]:null}Ro.range=Mo;function Mo(e,t,i){var r,s,n,a,o,h=i.indexOf(e),l=i.indexOf(t,h+1),c=h;if(h>=0&&l>0){if(e===t)return[h,l];for(r=[],n=i.length;c>=0&&!o;)c==h?(r.push(c),h=i.indexOf(e,c+1)):r.length==1?o=[r.pop(),l]:(s=r.pop(),s<n&&(n=s,a=l),l=i.indexOf(t,c+1)),c=h<l&&h>=0?h:l;r.length&&(o=[n,a])}return o}});var zo=w((gm,Go)=>{var Do=Bo();Go.exports=ff;var Vo="\0SLASH"+Math.random()+"\0",Uo="\0OPEN"+Math.random()+"\0",cs="\0CLOSE"+Math.random()+"\0",qo="\0COMMA"+Math.random()+"\0",jo="\0PERIOD"+Math.random()+"\0";function ls(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function lf(e){return e.split("\\\\").join(Vo).split("\\{").join(Uo).split("\\}").join(cs).split("\\,").join(qo).split("\\.").join(jo)}function cf(e){return e.split(Vo).join("\\").split(Uo).join("{").split(cs).join("}").split(qo).join(",").split(jo).join(".")}function Wo(e){if(!e)return[""];var t=[],i=Do("{","}",e);if(!i)return e.split(",");var r=i.pre,s=i.body,n=i.post,a=r.split(",");a[a.length-1]+="{"+s+"}";var o=Wo(n);return n.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function ff(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Yt(lf(e),!0).map(cf)):[]}function pf(e){return"{"+e+"}"}function df(e){return/^-?0\d/.test(e)}function mf(e,t){return e<=t}function gf(e,t){return e>=t}function Yt(e,t){var i=[],r=Do("{","}",e);if(!r)return[e];var s=r.pre,n=r.post.length?Yt(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<n.length;a++){var o=s+"{"+r.body+"}"+n[a];i.push(o)}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=h||l,f=r.body.indexOf(",")>=0;if(!c&&!f)return r.post.match(/,.*\}/)?(e=r.pre+"{"+r.body+cs+r.post,Yt(e)):[e];var p;if(c)p=r.body.split(/\.\./);else if(p=Wo(r.body),p.length===1&&(p=Yt(p[0],!1).map(pf),p.length===1))return n.map(function(z){return r.pre+p[0]+z});var d;if(c){var m=ls(p[0]),g=ls(p[1]),x=Math.max(p[0].length,p[1].length),b=p.length==3?Math.abs(ls(p[2])):1,C=mf,N=g<m;N&&(b*=-1,C=gf);var k=p.some(df);d=[];for(var O=m;C(O,g);O+=b){var A;if(l)A=String.fromCharCode(O),A==="\\"&&(A="");else if(A=String(O),k){var G=x-A.length;if(G>0){var q=new Array(G+1).join("0");O<0?A="-"+q+A.slice(1):A=q+A}}d.push(A)}}else{d=[];for(var F=0;F<p.length;F++)d.push.apply(d,Yt(p[F],!1))}for(var F=0;F<d.length;F++)for(var a=0;a<n.length;a++){var o=s+d[F]+n[a];(!t||c||o)&&i.push(o)}}return i}});var ou=w((Rm,au)=>{"use strict";var{Duplex:Zf}=require("stream");function su(e){e.emit("close")}function ep(){!this.destroyed&&this._writableState.finished&&this.destroy()}function nu(e){this.removeListener("error",nu),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e)}function tp(e,t){let i=!0,r=new Zf({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(n,a){let o=!a&&r._readableState.objectMode?n.toString():n;r.push(o)||e.pause()}),e.once("error",function(n){r.destroyed||(i=!1,r.destroy(n))}),e.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(s,n){if(e.readyState===e.CLOSED){n(s),process.nextTick(su,r);return}let a=!1;e.once("error",function(h){a=!0,n(h)}),e.once("close",function(){a||n(s),process.nextTick(su,r)}),i&&e.terminate()},r._final=function(s){if(e.readyState===e.CONNECTING){e.once("open",function(){r._final(s)});return}e._socket!==null&&(e._socket._writableState.finished?(s(),r._readableState.endEmitted&&r.destroy()):(e._socket.once("finish",function(){s()}),e.close()))},r._read=function(){e.isPaused&&e.resume()},r._write=function(s,n,a){if(e.readyState===e.CONNECTING){e.once("open",function(){r._write(s,n,a)});return}e.send(s,a)},r.on("end",ep),r.on("error",nu),r}au.exports=tp});var ze=w((Mm,uu)=>{"use strict";uu.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Xt=w((Fm,Gi)=>{"use strict";var{EMPTY_BUFFER:ip}=ze(),ds=Buffer[Symbol.species];function rp(e,t){if(e.length===0)return ip;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),r=0;for(let s=0;s<e.length;s++){let n=e[s];i.set(n,r),r+=n.length}return r<t?new ds(i.buffer,i.byteOffset,r):i}function hu(e,t,i,r,s){for(let n=0;n<s;n++)i[r+n]=e[n]^t[n&3]}function lu(e,t){for(let i=0;i<e.length;i++)e[i]^=t[i&3]}function sp(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function ms(e){if(ms.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new ds(e):ArrayBuffer.isView(e)?t=new ds(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),ms.readOnly=!1),t}Gi.exports={concat:rp,mask:hu,toArrayBuffer:sp,toBuffer:ms,unmask:lu};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=require("bufferutil");Gi.exports.mask=function(t,i,r,s,n){n<48?hu(t,i,r,s,n):e.mask(t,i,r,s,n)},Gi.exports.unmask=function(t,i){t.length<32?lu(t,i):e.unmask(t,i)}}catch{}});var pu=w((Bm,fu)=>{"use strict";var cu=Symbol("kDone"),gs=Symbol("kRun"),xs=class{constructor(t){this[cu]=()=>{this.pending--,this[gs]()},this.concurrency=t||1/0,this.jobs=[],this.pending=0}add(t){this.jobs.push(t),this[gs]()}[gs](){if(this.pending!==this.concurrency&&this.jobs.length){let t=this.jobs.shift();this.pending++,t(this[cu])}}};fu.exports=xs});var ti=w((Dm,xu)=>{"use strict";var Zt=require("zlib"),du=Xt(),np=pu(),{kStatusCode:mu}=ze(),ap=Buffer[Symbol.species],op=Buffer.from([0,0,255,255]),Hi=Symbol("permessage-deflate"),Re=Symbol("total-length"),ei=Symbol("callback"),$e=Symbol("buffers"),$i=Symbol("error"),zi,ys=class{constructor(t,i,r){if(this._maxPayload=r|0,this._options=t||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!i,this._deflate=null,this._inflate=null,this.params=null,!zi){let s=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;zi=new np(s)}}static get extensionName(){return"permessage-deflate"}offer(){let t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let t=this._deflate[ei];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(t){let i=this._options,r=t.find(s=>!(i.serverNoContextTakeover===!1&&s.server_no_context_takeover||s.server_max_window_bits&&(i.serverMaxWindowBits===!1||typeof i.serverMaxWindowBits=="number"&&i.serverMaxWindowBits>s.server_max_window_bits)||typeof i.clientMaxWindowBits=="number"&&!s.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return i.serverNoContextTakeover&&(r.server_no_context_takeover=!0),i.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof i.serverMaxWindowBits=="number"&&(r.server_max_window_bits=i.serverMaxWindowBits),typeof i.clientMaxWindowBits=="number"?r.client_max_window_bits=i.clientMaxWindowBits:(r.client_max_window_bits===!0||i.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(t){let i=t[0];if(this._options.clientNoContextTakeover===!1&&i.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!i.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(i.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&i.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return i}normalizeParams(t){return t.forEach(i=>{Object.keys(i).forEach(r=>{let s=i[r];if(s.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(s=s[0],r==="client_max_window_bits"){if(s!==!0){let n=+s;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=n}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else if(r==="server_max_window_bits"){let n=+s;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=n}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(s!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else throw new Error(`Unknown parameter "${r}"`);i[r]=s})}),t}decompress(t,i,r){zi.add(s=>{this._decompress(t,i,(n,a)=>{s(),r(n,a)})})}compress(t,i,r){zi.add(s=>{this._compress(t,i,(n,a)=>{s(),r(n,a)})})}_decompress(t,i,r){let s=this._isServer?"client":"server";if(!this._inflate){let n=`${s}_max_window_bits`,a=typeof this.params[n]!="number"?Zt.Z_DEFAULT_WINDOWBITS:this.params[n];this._inflate=Zt.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[Hi]=this,this._inflate[Re]=0,this._inflate[$e]=[],this._inflate.on("error",hp),this._inflate.on("data",gu)}this._inflate[ei]=r,this._inflate.write(t),i&&this._inflate.write(op),this._inflate.flush(()=>{let n=this._inflate[$i];if(n){this._inflate.close(),this._inflate=null,r(n);return}let a=du.concat(this._inflate[$e],this._inflate[Re]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Re]=0,this._inflate[$e]=[],i&&this.params[`${s}_no_context_takeover`]&&this._inflate.reset()),r(null,a)})}_compress(t,i,r){let s=this._isServer?"server":"client";if(!this._deflate){let n=`${s}_max_window_bits`,a=typeof this.params[n]!="number"?Zt.Z_DEFAULT_WINDOWBITS:this.params[n];this._deflate=Zt.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[Re]=0,this._deflate[$e]=[],this._deflate.on("data",up)}this._deflate[ei]=r,this._deflate.write(t),this._deflate.flush(Zt.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let n=du.concat(this._deflate[$e],this._deflate[Re]);i&&(n=new ap(n.buffer,n.byteOffset,n.length-4)),this._deflate[ei]=null,this._deflate[Re]=0,this._deflate[$e]=[],i&&this.params[`${s}_no_context_takeover`]&&this._deflate.reset(),r(null,n)})}};xu.exports=ys;function up(e){this[$e].push(e),this[Re]+=e.length}function gu(e){if(this[Re]+=e.length,this[Hi]._maxPayload<1||this[Re]<=this[Hi]._maxPayload){this[$e].push(e);return}this[$i]=new RangeError("Max payload size exceeded"),this[$i].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[$i][mu]=1009,this.removeListener("data",gu),this.reset()}function hp(e){this[Hi]._inflate=null,e[mu]=1007,this[ei](e)}});var ii=w((Vm,Qi)=>{"use strict";var{isUtf8:yu}=require("buffer"),lp=[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 cp(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function vs(e){let t=e.length,i=0;for(;i<t;)if(!(e[i]&128))i++;else if((e[i]&224)===192){if(i+1===t||(e[i+1]&192)!==128||(e[i]&254)===192)return!1;i+=2}else if((e[i]&240)===224){if(i+2>=t||(e[i+1]&192)!==128||(e[i+2]&192)!==128||e[i]===224&&(e[i+1]&224)===128||e[i]===237&&(e[i+1]&224)===160)return!1;i+=3}else if((e[i]&248)===240){if(i+3>=t||(e[i+1]&192)!==128||(e[i+2]&192)!==128||(e[i+3]&192)!==128||e[i]===240&&(e[i+1]&240)===128||e[i]===244&&e[i+1]>143||e[i]>244)return!1;i+=4}else return!1;return!0}Qi.exports={isValidStatusCode:cp,isValidUTF8:vs,tokenChars:lp};if(yu)Qi.exports.isValidUTF8=function(e){return e.length<24?vs(e):yu(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=require("utf-8-validate");Qi.exports.isValidUTF8=function(t){return t.length<32?vs(t):e(t)}}catch{}});var Cs=w((Um,Eu)=>{"use strict";var{Writable:fp}=require("stream"),vu=ti(),{BINARY_TYPES:pp,EMPTY_BUFFER:_u,kStatusCode:dp,kWebSocket:mp}=ze(),{concat:_s,toArrayBuffer:gp,unmask:xp}=Xt(),{isValidStatusCode:yp,isValidUTF8:bu}=ii(),Yi=Buffer[Symbol.species],xe=0,Su=1,wu=2,Cu=3,bs=4,Ss=5,Ki=6,ws=class extends fp{constructor(t={}){super(),this._allowSynchronousEvents=t.allowSynchronousEvents!==void 0?t.allowSynchronousEvents:!0,this._binaryType=t.binaryType||pp[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=t.maxPayload|0,this._skipUTF8Validation=!!t.skipUTF8Validation,this[mp]=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=xe}_write(t,i,r){if(this._opcode===8&&this._state==xe)return r();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(r)}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new Yi(r.buffer,r.byteOffset+t,r.length-t),new Yi(r.buffer,r.byteOffset,t)}let i=Buffer.allocUnsafe(t);do{let r=this._buffers[0],s=i.length-t;t>=r.length?i.set(this._buffers.shift(),s):(i.set(new Uint8Array(r.buffer,r.byteOffset,t),s),this._buffers[0]=new Yi(r.buffer,r.byteOffset+t,r.length-t)),t-=r.length}while(t>0);return i}startLoop(t){this._loop=!0;do switch(this._state){case xe:this.getInfo(t);break;case Su:this.getPayloadLength16(t);break;case wu:this.getPayloadLength64(t);break;case Cu:this.getMask();break;case bs:this.getData(t);break;case Ss:case Ki:this._loop=!1;return}while(this._loop);this._errored||t()}getInfo(t){if(this._bufferedBytes<2){this._loop=!1;return}let i=this.consume(2);if(i[0]&48){let s=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");t(s);return}let r=(i[0]&64)===64;if(r&&!this._extensions[vu.extensionName]){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(s);return}if(this._fin=(i[0]&128)===128,this._opcode=i[0]&15,this._payloadLength=i[1]&127,this._opcode===0){if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(s);return}if(!this._fragmented){let s=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");t(s);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(s);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let s=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");t(s);return}if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(s);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let s=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");t(s);return}}else{let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(s);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(i[1]&128)===128,this._isServer){if(!this._masked){let s=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");t(s);return}}else if(this._masked){let s=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");t(s);return}this._payloadLength===126?this._state=Su:this._payloadLength===127?this._state=wu:this.haveLength(t)}getPayloadLength16(t){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t)}getPayloadLength64(t){if(this._bufferedBytes<8){this._loop=!1;return}let i=this.consume(8),r=i.readUInt32BE(0);if(r>Math.pow(2,21)-1){let s=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");t(s);return}this._payloadLength=r*Math.pow(2,32)+i.readUInt32BE(4),this.haveLength(t)}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let i=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(i);return}this._masked?this._state=Cu:this._state=bs}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=bs}getData(t){let i=_u;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}i=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&xp(i,this._mask)}if(this._opcode>7){this.controlMessage(i,t);return}if(this._compressed){this._state=Ss,this.decompress(i,t);return}i.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(i)),this.dataMessage(t)}decompress(t,i){this._extensions[vu.extensionName].decompress(t,this._fin,(s,n)=>{if(s)return i(s);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");i(a);return}this._fragments.push(n)}this.dataMessage(i),this._state===xe&&this.startLoop(i)})}dataMessage(t){if(!this._fin){this._state=xe;return}let i=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let s;this._binaryType==="nodebuffer"?s=_s(r,i):this._binaryType==="arraybuffer"?s=gp(_s(r,i)):s=r,this._allowSynchronousEvents?(this.emit("message",s,!0),this._state=xe):(this._state=Ki,setImmediate(()=>{this.emit("message",s,!0),this._state=xe,this.startLoop(t)}))}else{let s=_s(r,i);if(!this._skipUTF8Validation&&!bu(s)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(n);return}this._state===Ss||this._allowSynchronousEvents?(this.emit("message",s,!1),this._state=xe):(this._state=Ki,setImmediate(()=>{this.emit("message",s,!1),this._state=xe,this.startLoop(t)}))}}controlMessage(t,i){if(this._opcode===8){if(t.length===0)this._loop=!1,this.emit("conclude",1005,_u),this.end();else{let r=t.readUInt16BE(0);if(!yp(r)){let n=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");i(n);return}let s=new Yi(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!bu(s)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");i(n);return}this._loop=!1,this.emit("conclude",r,s),this.end()}this._state=xe;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",t),this._state=xe):(this._state=Ki,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",t),this._state=xe,this.startLoop(i)}))}createError(t,i,r,s,n){this._loop=!1,this._errored=!0;let a=new t(r?`Invalid WebSocket frame: ${i}`:i);return Error.captureStackTrace(a,this.createError),a.code=n,a[dp]=s,a}};Eu.exports=ws});var ks=w((jm,Nu)=>{"use strict";var{Duplex:qm}=require("stream"),{randomFillSync:vp}=require("crypto"),ku=ti(),{EMPTY_BUFFER:_p}=ze(),{isValidStatusCode:bp}=ii(),{mask:Au,toBuffer:wt}=Xt(),Se=Symbol("kByteLength"),Sp=Buffer.alloc(4),Ji=8*1024,tt,Ct=Ji,Es=class e{constructor(t,i,r){this._extensions=i||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(t,i){let r,s=!1,n=2,a=!1;i.mask&&(r=i.maskBuffer||Sp,i.generateMask?i.generateMask(r):(Ct===Ji&&(tt===void 0&&(tt=Buffer.alloc(Ji)),vp(tt,0,Ji),Ct=0),r[0]=tt[Ct++],r[1]=tt[Ct++],r[2]=tt[Ct++],r[3]=tt[Ct++]),a=(r[0]|r[1]|r[2]|r[3])===0,n=6);let o;typeof t=="string"?(!i.mask||a)&&i[Se]!==void 0?o=i[Se]:(t=Buffer.from(t),o=t.length):(o=t.length,s=i.mask&&i.readOnly&&!a);let h=o;o>=65536?(n+=8,h=127):o>125&&(n+=2,h=126);let l=Buffer.allocUnsafe(s?o+n:n);return l[0]=i.fin?i.opcode|128:i.opcode,i.rsv1&&(l[0]|=64),l[1]=h,h===126?l.writeUInt16BE(o,2):h===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),i.mask?(l[1]|=128,l[n-4]=r[0],l[n-3]=r[1],l[n-2]=r[2],l[n-1]=r[3],a?[l,t]:s?(Au(t,r,l,n,o),[l]):(Au(t,r,t,0,o),[l,t])):[l,t]}close(t,i,r,s){let n;if(t===void 0)n=_p;else{if(typeof t!="number"||!bp(t))throw new TypeError("First argument must be a valid error code number");if(i===void 0||!i.length)n=Buffer.allocUnsafe(2),n.writeUInt16BE(t,0);else{let o=Buffer.byteLength(i);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+o),n.writeUInt16BE(t,0),typeof i=="string"?n.write(i,2):n.set(i,2)}}let a={[Se]:n.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,n,!1,a,s]):this.sendFrame(e.frame(n,a),s)}ping(t,i,r){let s,n;if(typeof t=="string"?(s=Buffer.byteLength(t),n=!1):(t=wt(t),s=t.length,n=wt.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Se]:s,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:9,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,t,!1,a,r]):this.sendFrame(e.frame(t,a),r)}pong(t,i,r){let s,n;if(typeof t=="string"?(s=Buffer.byteLength(t),n=!1):(t=wt(t),s=t.length,n=wt.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Se]:s,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:10,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,t,!1,a,r]):this.sendFrame(e.frame(t,a),r)}send(t,i,r){let s=this._extensions[ku.extensionName],n=i.binary?2:1,a=i.compress,o,h;if(typeof t=="string"?(o=Buffer.byteLength(t),h=!1):(t=wt(t),o=t.length,h=wt.readOnly),this._firstFragment?(this._firstFragment=!1,a&&s&&s.params[s._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=s._threshold),this._compress=a):(a=!1,n=0),i.fin&&(this._firstFragment=!0),s){let l={[Se]:o,fin:i.fin,generateMask:this._generateMask,mask:i.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:h,rsv1:a};this._deflating?this.enqueue([this.dispatch,t,this._compress,l,r]):this.dispatch(t,this._compress,l,r)}else this.sendFrame(e.frame(t,{[Se]:o,fin:i.fin,generateMask:this._generateMask,mask:i.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:h,rsv1:!1}),r)}dispatch(t,i,r,s){if(!i){this.sendFrame(e.frame(t,r),s);return}let n=this._extensions[ku.extensionName];this._bufferedBytes+=r[Se],this._deflating=!0,n.compress(t,r.fin,(a,o)=>{if(this._socket.destroyed){let h=new Error("The socket was closed while data was being compressed");typeof s=="function"&&s(h);for(let l=0;l<this._queue.length;l++){let c=this._queue[l],f=c[c.length-1];typeof f=="function"&&f(h)}return}this._bufferedBytes-=r[Se],this._deflating=!1,r.readOnly=!1,this.sendFrame(e.frame(o,r),s),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let t=this._queue.shift();this._bufferedBytes-=t[3][Se],Reflect.apply(t[0],this,t.slice(1))}}enqueue(t){this._bufferedBytes+=t[3][Se],this._queue.push(t)}sendFrame(t,i){t.length===2?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],i),this._socket.uncork()):this._socket.write(t[0],i)}};Nu.exports=Es});var Bu=w((Wm,Fu)=>{"use strict";var{kForOnEventAttribute:ri,kListener:As}=ze(),Iu=Symbol("kCode"),Pu=Symbol("kData"),Lu=Symbol("kError"),Ou=Symbol("kMessage"),Tu=Symbol("kReason"),Et=Symbol("kTarget"),Ru=Symbol("kType"),Mu=Symbol("kWasClean"),Me=class{constructor(t){this[Et]=null,this[Ru]=t}get target(){return this[Et]}get type(){return this[Ru]}};Object.defineProperty(Me.prototype,"target",{enumerable:!0});Object.defineProperty(Me.prototype,"type",{enumerable:!0});var it=class extends Me{constructor(t,i={}){super(t),this[Iu]=i.code===void 0?0:i.code,this[Tu]=i.reason===void 0?"":i.reason,this[Mu]=i.wasClean===void 0?!1:i.wasClean}get code(){return this[Iu]}get reason(){return this[Tu]}get wasClean(){return this[Mu]}};Object.defineProperty(it.prototype,"code",{enumerable:!0});Object.defineProperty(it.prototype,"reason",{enumerable:!0});Object.defineProperty(it.prototype,"wasClean",{enumerable:!0});var kt=class extends Me{constructor(t,i={}){super(t),this[Lu]=i.error===void 0?null:i.error,this[Ou]=i.message===void 0?"":i.message}get error(){return this[Lu]}get message(){return this[Ou]}};Object.defineProperty(kt.prototype,"error",{enumerable:!0});Object.defineProperty(kt.prototype,"message",{enumerable:!0});var si=class extends Me{constructor(t,i={}){super(t),this[Pu]=i.data===void 0?null:i.data}get data(){return this[Pu]}};Object.defineProperty(si.prototype,"data",{enumerable:!0});var wp={addEventListener(e,t,i={}){for(let s of this.listeners(e))if(!i[ri]&&s[As]===t&&!s[ri])return;let r;if(e==="message")r=function(n,a){let o=new si("message",{data:a?n:n.toString()});o[Et]=this,Xi(t,this,o)};else if(e==="close")r=function(n,a){let o=new it("close",{code:n,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[Et]=this,Xi(t,this,o)};else if(e==="error")r=function(n){let a=new kt("error",{error:n,message:n.message});a[Et]=this,Xi(t,this,a)};else if(e==="open")r=function(){let n=new Me("open");n[Et]=this,Xi(t,this,n)};else return;r[ri]=!!i[ri],r[As]=t,i.once?this.once(e,r):this.on(e,r)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[As]===t&&!i[ri]){this.removeListener(e,i);break}}};Fu.exports={CloseEvent:it,ErrorEvent:kt,Event:Me,EventTarget:wp,MessageEvent:si};function Xi(e,t,i){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,i):e.call(t,i)}});var Ns=w((Gm,Du)=>{"use strict";var{tokenChars:ni}=ii();function Ne(e,t,i){e[t]===void 0?e[t]=[i]:e[t].push(i)}function Cp(e){let t=Object.create(null),i=Object.create(null),r=!1,s=!1,n=!1,a,o,h=-1,l=-1,c=-1,f=0;for(;f<e.length;f++)if(l=e.charCodeAt(f),a===void 0)if(c===-1&&ni[l]===1)h===-1&&(h=f);else if(f!==0&&(l===32||l===9))c===-1&&h!==-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let d=e.slice(h,c);l===44?(Ne(t,d,i),i=Object.create(null)):a=d,h=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);else if(o===void 0)if(c===-1&&ni[l]===1)h===-1&&(h=f);else if(l===32||l===9)c===-1&&h!==-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f),Ne(i,e.slice(h,c),!0),l===44&&(Ne(t,a,i),i=Object.create(null),a=void 0),h=c=-1}else if(l===61&&h!==-1&&c===-1)o=e.slice(h,f),h=c=-1;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(s){if(ni[l]!==1)throw new SyntaxError(`Unexpected character at index ${f}`);h===-1?h=f:r||(r=!0),s=!1}else if(n)if(ni[l]===1)h===-1&&(h=f);else if(l===34&&h!==-1)n=!1,c=f;else if(l===92)s=!0;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(l===34&&e.charCodeAt(f-1)===61)n=!0;else if(c===-1&&ni[l]===1)h===-1&&(h=f);else if(h!==-1&&(l===32||l===9))c===-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let d=e.slice(h,c);r&&(d=d.replace(/\\/g,""),r=!1),Ne(i,o,d),l===44&&(Ne(t,a,i),i=Object.create(null),a=void 0),o=void 0,h=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);if(h===-1||n||l===32||l===9)throw new SyntaxError("Unexpected end of input");c===-1&&(c=f);let p=e.slice(h,c);return a===void 0?Ne(t,p,i):(o===void 0?Ne(i,p,!0):r?Ne(i,o,p.replace(/\\/g,"")):Ne(i,o,p),Ne(t,a,i)),t}function Ep(e){return Object.keys(e).map(t=>{let i=e[t];return Array.isArray(i)||(i=[i]),i.map(r=>[t].concat(Object.keys(r).map(s=>{let n=r[s];return Array.isArray(n)||(n=[n]),n.map(a=>a===!0?s:`${s}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Du.exports={format:Ep,parse:Cp}});var Ts=w((Hm,Yu)=>{"use strict";var kp=require("events"),Ap=require("https"),Np=require("http"),qu=require("net"),Ip=require("tls"),{randomBytes:Pp,createHash:Lp}=require("crypto"),{Duplex:zm,Readable:$m}=require("stream"),{URL:Is}=require("url"),He=ti(),Op=Cs(),Tp=ks(),{BINARY_TYPES:Vu,EMPTY_BUFFER:Zi,GUID:Rp,kForOnEventAttribute:Ps,kListener:Mp,kStatusCode:Fp,kWebSocket:Z,NOOP:ju}=ze(),{EventTarget:{addEventListener:Bp,removeEventListener:Dp}}=Bu(),{format:Vp,parse:Up}=Ns(),{toBuffer:qp}=Xt(),jp=30*1e3,Wu=Symbol("kAborted"),Ls=[8,13],Fe=["CONNECTING","OPEN","CLOSING","CLOSED"],Wp=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,W=class e extends kp{constructor(t,i,r){super(),this._binaryType=Vu[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Zi,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,i===void 0?i=[]:Array.isArray(i)||(typeof i=="object"&&i!==null?(r=i,i=[]):i=[i]),Gu(this,t,i,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(t){Vu.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t))}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(t,i,r){let s=new Op({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new Tp(t,this._extensions,r.generateMask),this._receiver=s,this._socket=t,s[Z]=this,t[Z]=this,s.on("conclude",$p),s.on("drain",Hp),s.on("error",Qp),s.on("message",Yp),s.on("ping",Kp),s.on("pong",Jp),t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),i.length>0&&t.unshift(i),t.on("close",$u),t.on("data",tr),t.on("end",Hu),t.on("error",Qu),this._readyState=e.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[He.extensionName]&&this._extensions[He.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(t,i){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){ae(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,i,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),jp)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,i,r){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(r=t,t=i=void 0):typeof i=="function"&&(r=i,i=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){Os(this,t,r);return}i===void 0&&(i=!this._isServer),this._sender.ping(t||Zi,i,r)}pong(t,i,r){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(r=t,t=i=void 0):typeof i=="function"&&(r=i,i=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){Os(this,t,r);return}i===void 0&&(i=!this._isServer),this._sender.pong(t||Zi,i,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,i,r){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof i=="function"&&(r=i,i={}),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){Os(this,t,r);return}let s={binary:typeof t!="string",mask:!this._isServer,compress:!0,fin:!0,...i};this._extensions[He.extensionName]||(s.compress=!1),this._sender.send(t||Zi,s,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){ae(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(W,"CONNECTING",{enumerable:!0,value:Fe.indexOf("CONNECTING")});Object.defineProperty(W.prototype,"CONNECTING",{enumerable:!0,value:Fe.indexOf("CONNECTING")});Object.defineProperty(W,"OPEN",{enumerable:!0,value:Fe.indexOf("OPEN")});Object.defineProperty(W.prototype,"OPEN",{enumerable:!0,value:Fe.indexOf("OPEN")});Object.defineProperty(W,"CLOSING",{enumerable:!0,value:Fe.indexOf("CLOSING")});Object.defineProperty(W.prototype,"CLOSING",{enumerable:!0,value:Fe.indexOf("CLOSING")});Object.defineProperty(W,"CLOSED",{enumerable:!0,value:Fe.indexOf("CLOSED")});Object.defineProperty(W.prototype,"CLOSED",{enumerable:!0,value:Fe.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(W.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach(e=>{Object.defineProperty(W.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[Ps])return t[Mp];return null},set(t){for(let i of this.listeners(e))if(i[Ps]){this.removeListener(e,i);break}typeof t=="function"&&this.addEventListener(e,t,{[Ps]:!0})}})});W.prototype.addEventListener=Bp;W.prototype.removeEventListener=Dp;Yu.exports=W;function Gu(e,t,i,r){let s={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:Ls[1],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(e._autoPong=s.autoPong,!Ls.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${Ls.join(", ")})`);let n;if(t instanceof Is)n=t;else try{n=new Is(t)}catch{throw new SyntaxError(`Invalid URL: ${t}`)}n.protocol==="http:"?n.protocol="ws:":n.protocol==="https:"&&(n.protocol="wss:"),e._url=n.href;let a=n.protocol==="wss:",o=n.protocol==="ws+unix:",h;if(n.protocol!=="ws:"&&!a&&!o?h=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:o&&!n.pathname?h="The URL's pathname is empty":n.hash&&(h="The URL contains a fragment identifier"),h){let g=new SyntaxError(h);if(e._redirects===0)throw g;er(e,g);return}let l=a?443:80,c=Pp(16).toString("base64"),f=a?Ap.request:Np.request,p=new Set,d;if(s.createConnection=s.createConnection||(a?zp:Gp),s.defaultPort=s.defaultPort||l,s.port=n.port||l,s.host=n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket"},s.path=n.pathname+n.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(d=new He(s.perMessageDeflate!==!0?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=Vp({[He.extensionName]:d.offer()})),i.length){for(let g of i){if(typeof g!="string"||!Wp.test(g)||p.has(g))throw new SyntaxError("An invalid or duplicated subprotocol was specified");p.add(g)}s.headers["Sec-WebSocket-Protocol"]=i.join(",")}if(s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(n.username||n.password)&&(s.auth=`${n.username}:${n.password}`),o){let g=s.path.split(":");s.socketPath=g[0],s.path=g[1]}let m;if(s.followRedirects){if(e._redirects===0){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?s.socketPath:n.host;let g=r&&r.headers;if(r={...r,headers:{}},g)for(let[x,b]of Object.entries(g))r.headers[x.toLowerCase()]=b}else if(e.listenerCount("redirect")===0){let g=o?e._originalIpc?s.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:n.host===e._originalHostOrSocketPath;(!g||e._originalSecure&&!a)&&(delete s.headers.authorization,delete s.headers.cookie,g||delete s.headers.host,s.auth=void 0)}s.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")),m=e._req=f(s),e._redirects&&e.emit("redirect",e.url,m)}else m=e._req=f(s);s.timeout&&m.on("timeout",()=>{ae(e,m,"Opening handshake has timed out")}),m.on("error",g=>{m===null||m[Wu]||(m=e._req=null,er(e,g))}),m.on("response",g=>{let x=g.headers.location,b=g.statusCode;if(x&&s.followRedirects&&b>=300&&b<400){if(++e._redirects>s.maxRedirects){ae(e,m,"Maximum redirects exceeded");return}m.abort();let C;try{C=new Is(x,t)}catch{let k=new SyntaxError(`Invalid URL: ${x}`);er(e,k);return}Gu(e,C,i,r)}else e.emit("unexpected-response",m,g)||ae(e,m,`Unexpected server response: ${g.statusCode}`)}),m.on("upgrade",(g,x,b)=>{if(e.emit("upgrade",g),e.readyState!==W.CONNECTING)return;m=e._req=null;let C=g.headers.upgrade;if(C===void 0||C.toLowerCase()!=="websocket"){ae(e,x,"Invalid Upgrade header");return}let N=Lp("sha1").update(c+Rp).digest("base64");if(g.headers["sec-websocket-accept"]!==N){ae(e,x,"Invalid Sec-WebSocket-Accept header");return}let k=g.headers["sec-websocket-protocol"],O;if(k!==void 0?p.size?p.has(k)||(O="Server sent an invalid subprotocol"):O="Server sent a subprotocol but none was requested":p.size&&(O="Server sent no subprotocol"),O){ae(e,x,O);return}k&&(e._protocol=k);let A=g.headers["sec-websocket-extensions"];if(A!==void 0){if(!d){ae(e,x,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let G;try{G=Up(A)}catch{ae(e,x,"Invalid Sec-WebSocket-Extensions header");return}let q=Object.keys(G);if(q.length!==1||q[0]!==He.extensionName){ae(e,x,"Server indicated an extension that was not requested");return}try{d.accept(G[He.extensionName])}catch{ae(e,x,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[He.extensionName]=d}e.setSocket(x,b,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}),s.finishRequest?s.finishRequest(m,e):m.end()}function er(e,t){e._readyState=W.CLOSING,e.emit("error",t),e.emitClose()}function Gp(e){return e.path=e.socketPath,qu.connect(e)}function zp(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=qu.isIP(e.host)?"":e.host),Ip.connect(e)}function ae(e,t,i){e._readyState=W.CLOSING;let r=new Error(i);Error.captureStackTrace(r,ae),t.setHeader?(t[Wu]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(er,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function Os(e,t,i){if(t){let r=qp(t).length;e._socket?e._sender._bufferedBytes+=r:e._bufferedAmount+=r}if(i){let r=new Error(`WebSocket is not open: readyState ${e.readyState} (${Fe[e.readyState]})`);process.nextTick(i,r)}}function $p(e,t){let i=this[Z];i._closeFrameReceived=!0,i._closeMessage=t,i._closeCode=e,i._socket[Z]!==void 0&&(i._socket.removeListener("data",tr),process.nextTick(zu,i._socket),e===1005?i.close():i.close(e,t))}function Hp(){let e=this[Z];e.isPaused||e._socket.resume()}function Qp(e){let t=this[Z];t._socket[Z]!==void 0&&(t._socket.removeListener("data",tr),process.nextTick(zu,t._socket),t.close(e[Fp])),t.emit("error",e)}function Uu(){this[Z].emitClose()}function Yp(e,t){this[Z].emit("message",e,t)}function Kp(e){let t=this[Z];t._autoPong&&t.pong(e,!this._isServer,ju),t.emit("ping",e)}function Jp(e){this[Z].emit("pong",e)}function zu(e){e.resume()}function $u(){let e=this[Z];this.removeListener("close",$u),this.removeListener("data",tr),this.removeListener("end",Hu),e._readyState=W.CLOSING;let t;!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null&&e._receiver.write(t),e._receiver.end(),this[Z]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",Uu),e._receiver.on("finish",Uu))}function tr(e){this[Z]._receiver.write(e)||this.pause()}function Hu(){let e=this[Z];e._readyState=W.CLOSING,e._receiver.end(),this.end()}function Qu(){let e=this[Z];this.removeListener("error",Qu),this.on("error",ju),e&&(e._readyState=W.CLOSING,this.destroy())}});var Ju=w((Qm,Ku)=>{"use strict";var{tokenChars:Xp}=ii();function Zp(e){let t=new Set,i=-1,r=-1,s=0;for(s;s<e.length;s++){let a=e.charCodeAt(s);if(r===-1&&Xp[a]===1)i===-1&&(i=s);else if(s!==0&&(a===32||a===9))r===-1&&i!==-1&&(r=s);else if(a===44){if(i===-1)throw new SyntaxError(`Unexpected character at index ${s}`);r===-1&&(r=s);let o=e.slice(i,r);if(t.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);t.add(o),i=r=-1}else throw new SyntaxError(`Unexpected character at index ${s}`)}if(i===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let n=e.slice(i,s);if(t.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);return t.add(n),t}Ku.exports={parse:Zp}});var sh=w((Km,rh)=>{"use strict";var ed=require("events"),ir=require("http"),{Duplex:Ym}=require("stream"),{createHash:td}=require("crypto"),Xu=Ns(),rt=ti(),id=Ju(),rd=Ts(),{GUID:sd,kWebSocket:nd}=ze(),ad=/^[+/0-9A-Za-z]{22}==$/,Zu=0,eh=1,ih=2,Rs=class extends ed{constructor(t,i){if(super(),t={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:rd,...t},t.port==null&&!t.server&&!t.noServer||t.port!=null&&(t.server||t.noServer)||t.server&&t.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(t.port!=null?(this._server=ir.createServer((r,s)=>{let n=ir.STATUS_CODES[426];s.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),s.end(n)}),this._server.listen(t.port,t.host,t.backlog,i)):t.server&&(this._server=t.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=od(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(s,n,a)=>{this.handleUpgrade(s,n,a,r)}})}t.perMessageDeflate===!0&&(t.perMessageDeflate={}),t.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=t,this._state=Zu}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(t){if(this._state===ih){t&&this.once("close",()=>{t(new Error("The server is not running"))}),process.nextTick(ai,this);return}if(t&&this.once("close",t),this._state!==eh)if(this._state=eh,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(ai,this):process.nextTick(ai,this);else{let i=this._server;this._removeListeners(),this._removeListeners=this._server=null,i.close(()=>{ai(this)})}}shouldHandle(t){if(this.options.path){let i=t.url.indexOf("?");if((i!==-1?t.url.slice(0,i):t.url)!==this.options.path)return!1}return!0}handleUpgrade(t,i,r,s){i.on("error",th);let n=t.headers["sec-websocket-key"],a=t.headers.upgrade,o=+t.headers["sec-websocket-version"];if(t.method!=="GET"){st(this,t,i,405,"Invalid HTTP method");return}if(a===void 0||a.toLowerCase()!=="websocket"){st(this,t,i,400,"Invalid Upgrade header");return}if(n===void 0||!ad.test(n)){st(this,t,i,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==8&&o!==13){st(this,t,i,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(t)){oi(i,400);return}let h=t.headers["sec-websocket-protocol"],l=new Set;if(h!==void 0)try{l=id.parse(h)}catch{st(this,t,i,400,"Invalid Sec-WebSocket-Protocol header");return}let c=t.headers["sec-websocket-extensions"],f={};if(this.options.perMessageDeflate&&c!==void 0){let p=new rt(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let d=Xu.parse(c);d[rt.extensionName]&&(p.accept(d[rt.extensionName]),f[rt.extensionName]=p)}catch{st(this,t,i,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let p={origin:t.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(t.socket.authorized||t.socket.encrypted),req:t};if(this.options.verifyClient.length===2){this.options.verifyClient(p,(d,m,g,x)=>{if(!d)return oi(i,m||401,g,x);this.completeUpgrade(f,n,l,t,i,r,s)});return}if(!this.options.verifyClient(p))return oi(i,401)}this.completeUpgrade(f,n,l,t,i,r,s)}completeUpgrade(t,i,r,s,n,a,o){if(!n.readable||!n.writable)return n.destroy();if(n[nd])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Zu)return oi(n,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${td("sha1").update(i+sd).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(r.size){let f=this.options.handleProtocols?this.options.handleProtocols(r,s):r.values().next().value;f&&(l.push(`Sec-WebSocket-Protocol: ${f}`),c._protocol=f)}if(t[rt.extensionName]){let f=t[rt.extensionName].params,p=Xu.format({[rt.extensionName]:[f]});l.push(`Sec-WebSocket-Extensions: ${p}`),c._extensions=t}this.emit("headers",l,s),n.write(l.concat(`\r
29
29
  `).join(`\r
30
- `)),n.removeListener("error",Ku),c.setSocket(n,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(si,this)})),o(c,s)}};Xu.exports=Is;function td(e,t){for(let i of Object.keys(t))e.on(i,t[i]);return function(){for(let r of Object.keys(t))e.removeListener(r,t[r])}}function si(e){e._state=Ju,e.emit("close")}function Ku(){this.destroy()}function ni(e,t,i,r){i=i||Xi.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(i),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${Xi.STATUS_CODES[t]}\r
30
+ `)),n.removeListener("error",th),c.setSocket(n,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(ai,this)})),o(c,s)}};rh.exports=Rs;function od(e,t){for(let i of Object.keys(t))e.on(i,t[i]);return function(){for(let r of Object.keys(t))e.removeListener(r,t[r])}}function ai(e){e._state=ih,e.emit("close")}function th(){this.destroy()}function oi(e,t,i,r){i=i||ir.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(i),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${ir.STATUS_CODES[t]}\r
31
31
  `+Object.keys(r).map(s=>`${s}: ${r[s]}`).join(`\r
32
32
  `)+`\r
33
33
  \r
34
- `+i)}function rt(e,t,i,r,s){if(e.listenerCount("wsClientError")){let n=new Error(s);Error.captureStackTrace(n,rt),e.emit("wsClientError",n,i,t)}else ni(i,r,s)}});var nh=w(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.default=hd;var ai="diff-sequences",ee=0,oi=(e,t,i,r,s)=>{let n=0;for(;e<t&&i<r&&s(e,i);)e+=1,i+=1,n+=1;return n},ui=(e,t,i,r,s)=>{let n=0;for(;e<=t&&i<=r&&s(t,r);)t-=1,r-=1,n+=1;return n},Ls=(e,t,i,r,s,n,a)=>{let o=0,h=-e,l=n[o],c=l;n[o]+=oi(l+1,t,r+l-h+1,i,s);let f=e<a?e:a;for(o+=1,h+=2;o<=f;o+=1,h+=2){if(o!==e&&c<n[o])l=n[o];else if(l=c+1,t<=l)return o-1;c=n[o],n[o]=l+oi(l+1,t,r+l-h+1,i,s)}return a},ih=(e,t,i,r,s,n,a)=>{let o=0,h=e,l=n[o],c=l;n[o]-=ui(t,l-1,i,r+l-h-1,s);let f=e<a?e:a;for(o+=1,h-=2;o<=f;o+=1,h-=2){if(o!==e&&n[o]<c)l=n[o];else if(l=c-1,l<t)return o-1;c=n[o],n[o]=l-ui(t,l-1,i,r+l-h-1,s)}return a},ad=(e,t,i,r,s,n,a,o,h,l,c)=>{let f=r-t,p=i-t,m=s-r-p,g=-m-(e-1),x=-m+(e-1),b=ee,C=e<o?e:o;for(let A=0,k=-e;A<=C;A+=1,k+=2){let R=A===0||A!==e&&b<a[A],N=R?a[A]:b,G=R?N:N+1,U=f+G-k,F=oi(G+1,i,U+1,s,n),J=G+F;if(b=a[A],a[A]=J,g<=k&&k<=x){let Qe=(e-1-(k+m))/2;if(Qe<=l&&h[Qe]-1<=J){let we=f+N-(R?k+1:k-1),oe=ui(t,N,r,we,n),Be=N-oe,hi=we-oe,st=Be+1,ir=hi+1;c.nChangePreceding=e-1,e-1===st+ir-t-r?(c.aEndPreceding=t,c.bEndPreceding=r):(c.aEndPreceding=st,c.bEndPreceding=ir),c.nCommonPreceding=oe,oe!==0&&(c.aCommonPreceding=st,c.bCommonPreceding=ir),c.nCommonFollowing=F,F!==0&&(c.aCommonFollowing=G+1,c.bCommonFollowing=U+1);let Fs=J+1,Bs=U+F+1;return c.nChangeFollowing=e-1,e-1===i+s-Fs-Bs?(c.aStartFollowing=i,c.bStartFollowing=s):(c.aStartFollowing=Fs,c.bStartFollowing=Bs),!0}}}return!1},od=(e,t,i,r,s,n,a,o,h,l,c)=>{let f=s-i,p=i-t,m=s-r-p,g=m-e,x=m+e,b=ee,C=e<l?e:l;for(let A=0,k=e;A<=C;A+=1,k-=2){let R=A===0||A!==e&&h[A]<b,N=R?h[A]:b,G=R?N:N-1,U=f+G-k,F=ui(t,G-1,r,U-1,n),J=G-F;if(b=h[A],h[A]=J,g<=k&&k<=x){let Qe=(e+(k-m))/2;if(Qe<=o&&J-1<=a[Qe]){let we=U-F;if(c.nChangePreceding=e,e===J+we-t-r?(c.aEndPreceding=t,c.bEndPreceding=r):(c.aEndPreceding=J,c.bEndPreceding=we),c.nCommonPreceding=F,F!==0&&(c.aCommonPreceding=J,c.bCommonPreceding=we),c.nChangeFollowing=e-1,e===1)c.nCommonFollowing=0,c.aStartFollowing=i,c.bStartFollowing=s;else{let oe=f+N-(R?k-1:k+1),Be=oi(N,i,oe,s,n);c.nCommonFollowing=Be,Be!==0&&(c.aCommonFollowing=N,c.bCommonFollowing=oe);let hi=N+Be,st=oe+Be;e-1===i+s-hi-st?(c.aStartFollowing=i,c.bStartFollowing=s):(c.aStartFollowing=hi,c.bStartFollowing=st)}return!0}}}return!1},ud=(e,t,i,r,s,n,a,o,h)=>{let l=r-t,c=s-i,f=i-t,p=s-r,d=p-f,m=f,g=f;if(a[0]=t-1,o[0]=i,d%2===0){let x=(e||d)/2,b=(f+p)/2;for(let C=1;C<=b;C+=1)if(m=Ls(C,i,s,l,n,a,m),C<x)g=ih(C,t,r,c,n,o,g);else if(od(C,t,i,r,s,n,a,m,o,g,h))return}else{let x=((e||d)+1)/2,b=(f+p+1)/2,C=1;for(m=Ls(C,i,s,l,n,a,m),C+=1;C<=b;C+=1)if(g=ih(C-1,t,r,c,n,o,g),C<x)m=Ls(C,i,s,l,n,a,m);else if(ad(C,t,i,r,s,n,a,m,o,g,h))return}throw new Error(`${ai}: no overlap aStart=${t} aEnd=${i} bStart=${r} bEnd=${s}`)},Ps=(e,t,i,r,s,n,a,o,h,l)=>{if(s-r<i-t){if(n=!n,n&&a.length===1){let{foundSubsequence:J,isCommon:Qe}=a[0];a[1]={foundSubsequence:(we,oe,Be)=>{J(we,Be,oe)},isCommon:(we,oe)=>Qe(oe,we)}}let U=t,F=i;t=r,i=s,r=U,s=F}let{foundSubsequence:c,isCommon:f}=a[n?1:0];ud(e,t,i,r,s,f,o,h,l);let{nChangePreceding:p,aEndPreceding:d,bEndPreceding:m,nCommonPreceding:g,aCommonPreceding:x,bCommonPreceding:b,nCommonFollowing:C,aCommonFollowing:A,bCommonFollowing:k,nChangeFollowing:R,aStartFollowing:N,bStartFollowing:G}=l;t<d&&r<m&&Ps(p,t,d,r,m,n,a,o,h,l),g!==0&&c(g,x,b),C!==0&&c(C,A,k),N<i&&G<s&&Ps(R,N,i,G,s,n,a,o,h,l)},rh=(e,t)=>{if(typeof t!="number")throw new TypeError(`${ai}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${ai}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${ai}: ${e} value ${t} is a negative integer`)},sh=(e,t)=>{let i=typeof t;if(i!=="function")throw new TypeError(`${ai}: ${e} typeof ${i} is not a function`)};function hd(e,t,i,r){rh("aLength",e),rh("bLength",t),sh("isCommon",i),sh("foundSubsequence",r);let s=oi(0,e,0,t,i);if(s!==0&&r(s,0,0),e!==s||t!==s){let n=s,a=s,o=ui(n,e-1,a,t-1,i),h=e-o,l=t-o,c=s+o;e!==c&&t!==c&&Ps(0,n,h,a,l,!1,[{foundSubsequence:r,isCommon:i}],[ee],[ee],{aCommonFollowing:ee,aCommonPreceding:ee,aEndPreceding:ee,aStartFollowing:ee,bCommonFollowing:ee,bCommonPreceding:ee,bEndPreceding:ee,bStartFollowing:ee,nChangeFollowing:ee,nChangePreceding:ee,nCommonFollowing:ee,nCommonPreceding:ee}),o!==0&&r(o,h,l)}}});var _d={};ci(_d,{WebSocket:()=>th,acorn:()=>Sr,acornLoose:()=>wr,acornWalk:()=>Er,convertSourceMap:()=>vd,decode:()=>Gs,diff:()=>xh.default,findUpSync:()=>ch,mergeScriptCovs:()=>mh.mergeScriptCovs,minimatch:()=>K,parseCss:()=>gh.default,supportsColor:()=>dh});module.exports=wh(_d);var vd=$(Us());var qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oh=new Uint8Array(64),Ws=new Uint8Array(128);for(let e=0;e<qs.length;e++){let t=qs.charCodeAt(e);Oh[e]=t,Ws[t]=e}function Gs(e){let t=new Int32Array(5),i=[],r=0;do{let s=Th(e,r),n=[],a=!0,o=0;t[0]=0;for(let h=r;h<s;h++){let l;h=kt(e,h,t,0);let c=t[0];c<o&&(a=!1),o=c,js(e,h,s)?(h=kt(e,h,t,1),h=kt(e,h,t,2),h=kt(e,h,t,3),js(e,h,s)?(h=kt(e,h,t,4),l=[c,t[1],t[2],t[3],t[4]]):l=[c,t[1],t[2],t[3]]):l=[c],n.push(l)}a||Rh(n),i.push(n),r=s+1}while(r<=e.length);return i}function Th(e,t){let i=e.indexOf(";",t);return i===-1?e.length:i}function kt(e,t,i,r){let s=0,n=0,a=0;do{let h=e.charCodeAt(t++);a=Ws[h],s|=(a&31)<<n,n+=5}while(a&32);let o=s&1;return s>>>=1,o&&(s=-2147483648|-s),i[r]+=s,t}function js(e,t,i){return t>=i?!1:e.charCodeAt(t)!==44}function Rh(e){e.sort(Mh)}function Mh(e,t){return e[0]-t[0]}var mh=$(cn());var Sr={};ci(Sr,{Node:()=>Pe,Parser:()=>V,Position:()=>ut,SourceLocation:()=>qe,TokContext:()=>le,Token:()=>ft,TokenType:()=>P,defaultOptions:()=>ht,getLineInfo:()=>Ke,isIdentifierChar:()=>Ye,isIdentifierStart:()=>Ce,isNewLine:()=>ve,keywordTypes:()=>Si,lineBreak:()=>te,lineBreakG:()=>Ot,nonASCIIwhitespace:()=>mr,parse:()=>Rl,parseExpressionAt:()=>Ml,tokContexts:()=>M,tokTypes:()=>u,tokenizer:()=>Fl,version:()=>Jn});var tl=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],xn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],il="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",yn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",lr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},cr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",rl={5:cr,"5module":cr+" export import",6:cr+" const class extends export import super"},sl=/^in(stanceof)?$/,nl=new RegExp("["+yn+"]"),al=new RegExp("["+yn+il+"]");function pr(e,t){for(var i=65536,r=0;r<t.length;r+=2){if(i+=t[r],i>e)return!1;if(i+=t[r+1],i>=e)return!0}return!1}function Ce(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&nl.test(String.fromCharCode(e)):t===!1?!1:pr(e,xn)}function Ye(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&al.test(String.fromCharCode(e)):t===!1?!1:pr(e,xn)||pr(e,tl)}var P=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function ue(e,t){return new P(e,{beforeExpr:!0,binop:t})}var he={beforeExpr:!0},se={startsExpr:!0},Si={};function L(e,t){return t===void 0&&(t={}),t.keyword=e,Si[e]=new P(e,t)}var u={num:new P("num",se),regexp:new P("regexp",se),string:new P("string",se),name:new P("name",se),privateId:new P("privateId",se),eof:new P("eof"),bracketL:new P("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new P("]"),braceL:new P("{",{beforeExpr:!0,startsExpr:!0}),braceR:new P("}"),parenL:new P("(",{beforeExpr:!0,startsExpr:!0}),parenR:new P(")"),comma:new P(",",he),semi:new P(";",he),colon:new P(":",he),dot:new P("."),question:new P("?",he),questionDot:new P("?."),arrow:new P("=>",he),template:new P("template"),invalidTemplate:new P("invalidTemplate"),ellipsis:new P("...",he),backQuote:new P("`",se),dollarBraceL:new P("${",{beforeExpr:!0,startsExpr:!0}),eq:new P("=",{beforeExpr:!0,isAssign:!0}),assign:new P("_=",{beforeExpr:!0,isAssign:!0}),incDec:new P("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new P("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ue("||",1),logicalAND:ue("&&",2),bitwiseOR:ue("|",3),bitwiseXOR:ue("^",4),bitwiseAND:ue("&",5),equality:ue("==/!=/===/!==",6),relational:ue("</>/<=/>=",7),bitShift:ue("<</>>/>>>",8),plusMin:new P("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ue("%",10),star:ue("*",10),slash:ue("/",10),starstar:new P("**",{beforeExpr:!0}),coalesce:ue("??",1),_break:L("break"),_case:L("case",he),_catch:L("catch"),_continue:L("continue"),_debugger:L("debugger"),_default:L("default",he),_do:L("do",{isLoop:!0,beforeExpr:!0}),_else:L("else",he),_finally:L("finally"),_for:L("for",{isLoop:!0}),_function:L("function",se),_if:L("if"),_return:L("return",he),_switch:L("switch"),_throw:L("throw",he),_try:L("try"),_var:L("var"),_const:L("const"),_while:L("while",{isLoop:!0}),_with:L("with"),_new:L("new",{beforeExpr:!0,startsExpr:!0}),_this:L("this",se),_super:L("super",se),_class:L("class",se),_extends:L("extends",he),_export:L("export"),_import:L("import",se),_null:L("null",se),_true:L("true",se),_false:L("false",se),_in:L("in",{beforeExpr:!0,binop:7}),_instanceof:L("instanceof",{beforeExpr:!0,binop:7}),_typeof:L("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:L("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:L("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},te=/\r\n?|\n|\u2028|\u2029/,Ot=new RegExp(te.source,"g");function ve(e){return e===10||e===13||e===8232||e===8233}function vn(e,t,i){i===void 0&&(i=e.length);for(var r=t;r<i;r++){var s=e.charCodeAt(r);if(ve(s))return r<i-1&&s===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var mr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,_n=Object.prototype,ol=_n.hasOwnProperty,ul=_n.toString,Tt=Object.hasOwn||function(e,t){return ol.call(e,t)},fn=Array.isArray||function(e){return ul.call(e)==="[object Array]"},pn=Object.create(null);function De(e){return pn[e]||(pn[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Ue(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var hl=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ut=function(t,i){this.line=t,this.column=i};ut.prototype.offset=function(t){return new ut(this.line,this.column+t)};var qe=function(t,i,r){this.start=i,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ke(e,t){for(var i=1,r=0;;){var s=vn(e,r,t);if(s<0)return new ut(i,t-r);++i,r=s}}var ht={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},dn=!1;function ll(e){var t={};for(var i in ht)t[i]=e&&Tt(e,i)?e[i]:ht[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!dn&&typeof console=="object"&&console.warn&&(dn=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
35
- Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),fn(t.onToken)){var r=t.onToken;t.onToken=function(s){return r.push(s)}}return fn(t.onComment)&&(t.onComment=cl(t,t.onComment)),t}function cl(e,t){return function(i,r,s,n,a,o){var h={type:i?"Block":"Line",value:r,start:s,end:n};e.locations&&(h.loc=new qe(this,a,o)),e.ranges&&(h.range=[s,n]),t.push(h)}}var Pt=1,lt=2,gr=4,bn=8,Sn=16,wn=32,xr=64,Cn=128,Rt=256,yr=Pt|lt|Rt;function vr(e,t){return lt|(e?gr:0)|(t?bn:0)}var vi=0,_r=1,Le=2,En=3,kn=4,An=5,V=function(t,i,r){this.options=t=ll(t),this.sourceFile=t.sourceFile,this.keywords=De(rl[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=lr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=De(s);var n=(s?s+" ":"")+lr.strict;this.reservedWordsStrict=De(n),this.reservedWordsStrictBind=De(n+" "+lr.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
36
- `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(te).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Pt),this.regexpState=null,this.privateNameStack=[]},Ee={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Ee.inFunction.get=function(){return(this.currentVarScope().flags&lt)>0};Ee.inGenerator.get=function(){return(this.currentVarScope().flags&bn)>0&&!this.currentVarScope().inClassFieldInit};Ee.inAsync.get=function(){return(this.currentVarScope().flags&gr)>0&&!this.currentVarScope().inClassFieldInit};Ee.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Rt)return!1;if(t.flags&lt)return(t.flags&gr)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Ee.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&xr)>0||i||this.options.allowSuperOutsideMethod};Ee.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Cn)>0};Ee.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Ee.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(lt|Rt))>0||i};Ee.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Rt)>0};V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,s=0;s<t.length;s++)r=t[s](r);return r};V.parse=function(t,i){return new this(i,t).parse()};V.parseExpressionAt=function(t,i,r){var s=new this(r,t,i);return s.nextToken(),s.parseExpression()};V.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(V.prototype,Ee);var ie=V.prototype,fl=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;ie.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ce.lastIndex=e,e+=ce.exec(this.input)[0].length;var t=fl.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ce.lastIndex=e+t[0].length;var i=ce.exec(this.input),r=i.index+i[0].length,s=this.input.charAt(r);return s===";"||s==="}"||te.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,ce.lastIndex=e,e+=ce.exec(this.input)[0].length,this.input[e]===";"&&e++}};ie.eat=function(e){return this.type===e?(this.next(),!0):!1};ie.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc};ie.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ie.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ie.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||te.test(this.input.slice(this.lastTokEnd,this.start))};ie.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ie.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()};ie.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ie.expect=function(e){this.eat(e)||this.unexpected()};ie.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var wi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ie.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};ie.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};ie.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ie.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var S=V.prototype;S.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==u.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var n=s[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var br={kind:"loop"},pl={kind:"switch"};S.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ce.lastIndex=this.pos;var t=ce.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(Ce(r,!0)){for(var s=i+1;Ye(r=this.input.charCodeAt(s),!0);)++s;if(r===92||r>55295&&r<56320)return!0;var n=this.input.slice(i,s);if(!sl.test(n))return!0}return!1};S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ce.lastIndex=this.pos;var e=ce.exec(this.input),t=this.pos+e[0].length,i;return!te.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Ye(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};S.parseStatement=function(e,t,i){var r=this.type,s=this.startNode(),n;switch(this.isLet(e)&&(r=u._var,n="let"),r){case u._break:case u._continue:return this.parseBreakContinueStatement(s,r.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(s,n);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&r===u._import){ce.lastIndex=this.pos;var a=ce.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(h===40||h===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,c=this.parseExpression();return r===u.name&&c.type==="Identifier"&&this.eat(u.colon)?this.parseLabeledStatement(s,l,c,e):this.parseExpressionStatement(s,c)}};S.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};S.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};S.parseDoStatement=function(e){return this.next(),this.labels.push(br),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(br),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var n=this.isContextual("let"),a=!1,o=new wi,h=this.parseExpression(t>-1?"await":!0,o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,o),this.checkLValPattern(h),this.parseForIn(e,h)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,h))};S.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Lt|(i?0:dr),!1,t)};S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(pl),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};S.parseThrowStatement=function(e){return this.next(),te.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var dl=[];S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?wn:0),this.checkLValPattern(e,t?kn:Le),this.expect(u.parenR),e};S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};S.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(br),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};S.parseLabeledStatement=function(e,t,i,r){for(var s=0,n=this.labels;s<n.length;s+=1){var a=n[s];a.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===u._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var l=this.labels[h];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};S.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};S.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};S.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};S.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(u.eq)?s.init=this.parseMaybeAssign(t):!r&&i==="const"&&!(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&s.id.type!=="Identifier"&&!(t&&(this.type===u._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(u.comma))break}return e};S.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?_r:Le,!1)};var Lt=1,dr=2,Nn=4;S.parseFunction=function(e,t,i,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&dr&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Lt&&(e.id=t&Nn&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&dr)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?_r:Le:En));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vr(e.async,e.generator)),t&Lt||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,s),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Lt?"FunctionDeclaration":"FunctionExpression")};S.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};S.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),s=this.startNode(),n=!1;for(s.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(s.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&a.key.type==="PrivateIdentifier"&&ml(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};S.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",s=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(t>=9||!n)&&this.eat(u.star)&&(s=!0),!r&&!n&&!s){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:r=h)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||a!=="method"||s||n){var l=!i.static&&_i(i,"constructor"),c=l&&e;l&&a!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,s,n,c)}else this.parseClassField(i);return i};S.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword};S.parseClassElementName=function(e){this.type===u.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};S.parseClassMethod=function(e,t,i,r){var s=e.key;e.kind==="constructor"?(t&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):e.static&&_i(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,r);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};S.parseClassField=function(e){if(_i(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&_i(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Rt|xr);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};S.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Le,!1)):(t===!0&&this.unexpected(),e.id=null)};S.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};S.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=r===0?null:this.privateNameStack[r-1],n=0;n<i.length;++n){var a=i[n];Tt(t,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function ml(e,t){var i=t.key.name,r=e[i],s="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(s=(t.static?"s":"i")+t.kind),r==="iget"&&s==="iset"||r==="iset"&&s==="iget"||r==="sget"&&s==="sset"||r==="sset"&&s==="sget"?(e[i]="true",!1):r?!0:(e[i]=s,!1)}function _i(e,t){var i=e.computed,r=e.key;return!i&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}S.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};S.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i<r.length;i+=1){var s=r[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};S.parseExportDeclaration=function(e){return this.parseStatement(null)};S.parseExportDefaultDeclaration=function(){var e;if(this.type===u._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Lt|Nn,!1,e)}else if(this.type===u._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};S.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Tt(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};S.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];this.checkPatternExport(e,n)}else if(i==="ArrayPattern")for(var a=0,o=t.elements;a<o.length;a+=1){var h=o[a];h&&this.checkPatternExport(e,h)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)};S.checkVariableExport=function(e,t){if(e)for(var i=0,r=t;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s.id)}};S.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};S.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};S.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;t.push(this.parseExportSpecifier(e))}return t};S.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=dl,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};S.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Le),this.finishNode(e,"ImportSpecifier")};S.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Le),this.finishNode(e,"ImportDefaultSpecifier")};S.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Le),this.finishNode(e,"ImportNamespaceSpecifier")};S.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===u.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma)))return e;if(this.type===u.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;e.push(this.parseImportSpecifier())}return e};S.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return hl.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};S.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};S.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var pe=V.prototype;pe.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];this.toAssignable(n,t),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e};pe.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var s=e[r];s&&this.toAssignable(s,t)}if(i){var n=e[i-1];this.options.ecmaVersion===6&&t&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return e};pe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};pe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==u.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};pe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()};pe.parseBindingList=function(e,t,i,r){for(var s=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(u.comma),t&&this.type===u.comma)s.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else s.push(this.parseAssignableListItem(r))}return s};pe.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};pe.parseBindingListItem=function(e){return e};pe.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};pe.checkLValSimple=function(e,t,i){t===void 0&&(t=vi);var r=t!==vi;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===Le&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Tt(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==An&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};pe.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=vi),e.type){case"ObjectPattern":for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var h=o[a];h&&this.checkLValInnerPattern(h,t,i)}break;default:this.checkLValSimple(e,t,i)}};pe.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=vi),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var le=function(t,i,r,s,n){this.token=t,this.isExpr=!!i,this.preserveSpace=!!r,this.override=s,this.generator=!!n},M={b_stat:new le("{",!1),b_expr:new le("{",!0),b_tmpl:new le("${",!1),p_stat:new le("(",!1),p_expr:new le("(",!0),q_tmpl:new le("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new le("function",!1),f_expr:new le("function",!0),f_expr_gen:new le("function",!0,!1,null,!0),f_gen:new le("function",!1,!1,null,!0)},ct=V.prototype;ct.initialContext=function(){return[M.b_stat]};ct.curContext=function(){return this.context[this.context.length-1]};ct.braceIsBlock=function(e){var t=this.curContext();return t===M.f_expr||t===M.f_stat?!0:e===u.colon&&(t===M.b_stat||t===M.b_expr)?!t.isExpr:e===u._return||e===u.name&&this.exprAllowed?te.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow?!0:e===u.braceL?t===M.b_stat:e===u._var||e===u._const||e===u.name?!1:!this.exprAllowed};ct.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ct.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};ct.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};u.parenR.updateContext=u.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===M.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?M.b_stat:M.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push(M.b_tmpl),this.exprAllowed=!0};u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?M.p_stat:M.p_expr),this.exprAllowed=!0};u.incDec.updateContext=function(){};u._function.updateContext=u._class.updateContext=function(e){e.beforeExpr&&e!==u._else&&!(e===u.semi&&this.curContext()!==M.p_stat)&&!(e===u._return&&te.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===u.colon||e===u.braceL)&&this.curContext()===M.b_stat)?this.context.push(M.f_expr):this.context.push(M.f_stat),this.exprAllowed=!1};u.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};u.backQuote.updateContext=function(){this.curContext()===M.q_tmpl?this.context.pop():this.context.push(M.q_tmpl),this.exprAllowed=!1};u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===M.f_expr?this.context[t]=M.f_expr_gen:this.context[t]=M.f_gen}this.exprAllowed=!0};u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var E=V.prototype;E.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,s;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&n==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var a=t[s];if(a){var o;n==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[n],o&&this.raiseRecoverable(r.start,"Redefinition of property")}else a=t[s]={init:!1,get:!1,set:!1};a[n]=!0}};E.parseExpression=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===u.comma){var n=this.startNodeAt(i,r);for(n.expressions=[s];this.eat(u.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return s};E.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,s=-1,n=-1,a=-1;t?(s=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new wi,r=!0);var o=this.start,h=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(i&&(l=i.call(this,l,o,h)),this.type.isAssign){var c=this.startNodeAt(o,h);return c.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),n>-1&&(t.trailingComma=n),l};E.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(u.question)){var n=this.startNodeAt(i,r);return n.test=s,n.consequent=this.parseMaybeAssign(),this.expect(u.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return s};E.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,r,-1,e)};E.parseExprOp=function(e,t,i,r,s){var n=this.type.binop;if(n!=null&&(!s||this.type!==u._in)&&n>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(n=u.logicalAND.binop);var h=this.value;this.next();var l=this.start,c=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),l,c,n,s),p=this.buildBinary(t,i,e,f,h,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,i,r,s)}return e};E.buildBinary=function(e,t,i,r,s,n){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=s,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")};E.parseMaybeUnary=function(e,t,i,r){var s=this.start,n=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,r),this.checkExpressionErrors(e,!0),h?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&o.argument.type==="Identifier"?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&In(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,a=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===u.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();else{if(a=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,n);l.operator=this.value,l.prefix=!1,l.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(l,"UpdateExpression")}}if(!i&&this.eat(u.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,n,a,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return a};function In(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&In(e.expression)}E.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprAtom(e,t);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var n=this.parseSubscripts(s,i,r,!1,t);return e&&n.type==="MemberExpression"&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n};E.parseSubscripts=function(e,t,i,r,s){for(var n=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,r,n,a,s);if(o.optional&&(a=!0),o===e||o.type==="ArrowFunctionExpression"){if(a){var h=this.startNodeAt(t,i);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}e=o}};E.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)};E.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)};E.parseSubscript=function(e,t,i,r,s,n,a){var o=this.options.ecmaVersion>=11,h=o&&this.eat(u.questionDot);r&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||h&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var c=this.startNodeAt(t,i);c.object=e,l?(c.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&e.type!=="Super"?c.property=this.parsePrivateIdent():c.property=this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!l,o&&(c.optional=h),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var f=new wi,p=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,f);if(s&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,i,g,a);this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var x=this.startNodeAt(t,i);x.callee=e,x.arguments=g,o&&(x.optional=h),e=this.finishNode(x,"CallExpression")}else if(this.type===u.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(t,i);b.tag=e,b.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(b,"TaggedTemplateExpression")}return e};E.parseExprAtom=function(e,t,i){this.type===u.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var n=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,t)}return h;case u.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return r=this.startNode(),r.value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var c=this.start,f=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(f)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),f;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(M.b_expr),this.parseObj(!1,e);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};E.parseExprAtomDefault=function(){this.unexpected()};E.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===u.parenL&&!e)return this.parseDynamicImport(t);if(this.type===u.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};E.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};E.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};E.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};E.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e};E.shouldParseArrow=function(e){return!this.canInsertSemicolon()};E.parseParenAndDistinguishExpression=function(e,t){var i=this.start,r=this.startLoc,s,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,h=[],l=!0,c=!1,f=new wi,p=this.yieldPos,d=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(l?l=!1:this.expect(u.comma),n&&this.afterTrailingComma(u.parenR,!0)){c=!0;break}else if(this.type===u.ellipsis){m=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,f,this.parseParenItem));var g=this.lastTokEnd,x=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(h)&&this.eat(u.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(i,r,h,t);(!h.length||c)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?(s=this.startNodeAt(a,o),s.expressions=h,this.finishNodeAt(s,"SequenceExpression",g,x)):s=h[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(i,r);return b.expression=s,this.finishNode(b,"ParenthesizedExpression")}else return s};E.parseParenItem=function(e){return e};E.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var gl=[];E.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===u.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=gl,this.finishNode(e,"NewExpression")};E.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
37
- `),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")};E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};E.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!te.test(this.input.slice(this.lastTokEnd,this.start))};E.parseObj=function(e,t){var i=this.startNode(),r=!0,s={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,s,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};E.parseProperty=function(e,t){var i=this.startNode(),r,s,n,a;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,a=this.startLoc),e||(r=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,r,s,n,a,t,o),this.finishNode(i,"Property")};E.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};E.parsePropertyValue=function(e,t,i,r,s,n,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq?((i||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,n,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};E.parseMethod=function(e,t,i){var r=this.startNode(),s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vr(t,r.generator)|xr|(i?Cn:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")};E.parseArrowExpression=function(e,t,i,r){var s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(vr(i,!1)|Sn),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};E.parseFunctionBody=function(e,t,i,r){var s=t&&this.type!==u.braceL,n=this.strict,a=!1;if(s)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,An),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()};E.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var r=i[t];if(r.type!=="Identifier")return!1}return!0};E.checkParams=function(e,t){for(var i=Object.create(null),r=0,s=e.params;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,_r,t?null:i)}};E.parseExprList=function(e,t,i,r){for(var s=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(u.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===u.comma?a=null:this.type===u.ellipsis?(a=this.parseSpread(r),r&&this.type===u.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),s.push(a)}return s};E.checkUnreserved=function(e){var t=e.start,i=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};E.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};E.parseIdentNode=function(){var e=this.startNode();return this.type===u.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=u.name):this.unexpected(),e};E.parsePrivateIdent=function(){var e=this.startNode();return this.type===u.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};E.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};E.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var bi=V.prototype;bi.raise=function(e,t){var i=Ke(this.input,e);t+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=i,r.raisedAt=this.pos,r};bi.raiseRecoverable=bi.raise;bi.curPosition=function(){if(this.options.locations)return new ut(this.curLine,this.pos-this.lineStart)};var je=V.prototype,xl=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};je.enterScope=function(e){this.scopeStack.push(new xl(e))};je.exitScope=function(){this.scopeStack.pop()};je.treatFunctionsAsVarInScope=function(e){return e.flags&lt||!this.inModule&&e.flags&Pt};je.declareName=function(e,t,i){var r=!1;if(t===Le){var s=this.currentScope();r=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&Pt&&delete this.undefinedExports[e]}else if(t===kn){var n=this.currentScope();n.lexical.push(e)}else if(t===En){var a=this.currentScope();this.treatFunctionsAsVar?r=a.lexical.indexOf(e)>-1:r=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var h=this.scopeStack[o];if(h.lexical.indexOf(e)>-1&&!(h.flags&wn&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){r=!0;break}if(h.var.push(e),this.inModule&&h.flags&Pt&&delete this.undefinedExports[e],h.flags&yr)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};je.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};je.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};je.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&yr)return t}};je.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&yr&&!(t.flags&Sn))return t}};var Pe=function(t,i,r){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new qe(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},Mt=V.prototype;Mt.startNode=function(){return new Pe(this,this.start,this.startLoc)};Mt.startNodeAt=function(e,t){return new Pe(this,e,t)};function Ln(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}Mt.finishNode=function(e,t){return Ln.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Mt.finishNodeAt=function(e,t,i,r){return Ln.call(this,e,t,i,r)};Mt.copyNode=function(e){var t=new Pe(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Pn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",On=Pn+" Extended_Pictographic",Tn=On,Rn=Tn+" EBase EComp EMod EPres ExtPict",Mn=Rn,yl=Mn,vl={9:Pn,10:On,11:Tn,12:Rn,13:Mn,14:yl},_l="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",bl={9:"",10:"",11:"",12:"",13:"",14:_l},mn="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Fn="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Bn=Fn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Vn=Bn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Dn=Vn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Un=Dn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Sl=Un+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",wl={9:Fn,10:Bn,11:Vn,12:Dn,13:Un,14:Sl},qn={};function Cl(e){var t=qn[e]={binary:De(vl[e]+" "+mn),binaryOfStrings:De(bl[e]),nonBinary:{General_Category:De(mn),Script:De(wl[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(yi=0,fr=[9,10,11,12,13,14];yi<fr.length;yi+=1)gn=fr[yi],Cl(gn);var gn,yi,fr,v=V.prototype,ke=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=qn[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};ke.prototype.reset=function(t,i,r){var s=r.indexOf("v")!==-1,n=r.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=r,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};ke.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};ke.prototype.at=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return-1;var n=r.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=s)return n;var a=r.charCodeAt(t+1);return a>=56320&&a<=57343?(n<<10)+a-56613888:n};ke.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return s;var n=r.charCodeAt(t),a;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=s||(a=r.charCodeAt(t+1))<56320||a>57343?t+1:t+2};ke.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};ke.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};ke.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};ke.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};ke.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var r=this.pos,s=0,n=t;s<n.length;s+=1){var a=n[s],o=this.at(r,i);if(o===-1||o!==a)return!1;r=this.nextIndex(r,i)}return this.pos=r,!0};v.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=!1,s=!1,n=0;n<i.length;n++){var a=i.charAt(n);t.indexOf(a)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),a==="u"&&(r=!0),a==="v"&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(e.start,"Invalid regular expression flag")};v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];e.groupNames.indexOf(r)===-1&&e.raise("Invalid named capture referenced")}};v.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};v.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};v.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};v.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};v.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};v.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};v.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};v.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return jn(t)?(e.lastIntValue=t,e.advance(),!0):!1};function jn(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!jn(i);)e.advance();return e.pos!==t};v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ue(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ue(e.lastIntValue);return!0}return!1};v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),El(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function El(e){return Ce(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),kl(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function kl(e){return Ye(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};v.regexp_eatZero=function(e){return e.current()===48&&!Ci(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};v.regexp_eatControlLetter=function(e){var t=e.current();return Wn(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Wn(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}e.pos=n,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Al(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Al(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Gn=0,Ie=1,fe=2;v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Nl(t))return e.lastIntValue=-1,e.advance(),Ie;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&r===fe&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return Gn};function Nl(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),Ie}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return Gn};v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Tt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};v.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ie;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return fe;e.raise("Invalid property name")};v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";zn(t=e.current());)e.lastStringValue+=Ue(t),e.advance();return e.lastStringValue!==""};function zn(e){return Wn(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Il(t=e.current());)e.lastStringValue+=Ue(t),e.advance();return e.lastStringValue!==""};function Il(e){return zn(e)||Ci(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};v.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===fe&&e.raise("Negated character class may contain strings"),!0}return!1};v.regexp_classContents=function(e){return e.current()===93?Ie:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ie)};v.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Qn(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};v.regexp_classSetExpression=function(e){var t=Ie,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===fe&&(t=fe);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==fe&&(t=Ie);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===fe&&(t=fe)}};v.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return i!==-1&&r!==-1&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};v.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ie:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};v.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===fe&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null};v.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};v.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===fe&&(t=fe);return t};v.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ie:fe};v.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&Ll(i)||Pl(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function Ll(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Pl(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}v.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Ol(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ol(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}v.regexp_eatClassControlLetter=function(e){var t=e.current();return Ci(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ci(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Ci(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;$n(i=e.current());)e.lastIntValue=16*e.lastIntValue+Hn(i),e.advance();return e.pos!==t};function $n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Hn(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};v.regexp_eatOctalDigit=function(e){var t=e.current();return Qn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Qn(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var s=e.current();if(!$n(s))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Hn(s),e.advance()}return!0};var ft=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new qe(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},I=V.prototype;I.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ft(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};I.getToken=function(){return this.next(),new ft(this)};typeof Symbol<"u"&&(I[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===u.eof,value:t}}}});I.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(u.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};I.readToken=function(e){return Ce(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};I.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};I.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,s=t;(r=vn(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};I.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ve(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())};I.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&mr.test(String.fromCharCode(e)))++this.pos;else break e}}};I.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};I.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))};I.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(u.assign,2):this.finishOp(u.slash,1)};I.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=e===42?u.star:u.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(u.assign,i+1):this.finishOp(r,i)};I.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(u.assign,3)}return this.finishOp(e===124?u.logicalOR:u.logicalAND,2)}return t===61?this.finishOp(u.assign,2):this.finishOp(e===124?u.bitwiseOR:u.bitwiseAND,1)};I.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)};I.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||te.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):t===61?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)};I.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(u.relational,i))};I.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(u.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(e===61?u.eq:u.prefix,1)};I.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(u.assign,3)}return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)};I.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ce(t,!0)||t===92))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ue(t)+"'")};I.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ue(e)+"'")};I.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};I.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(te.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new ke(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(s,a)}catch{}return this.finishToken(u.regexp,{pattern:s,flags:a,value:h})};I.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&t===void 0,s=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,a=0,o=0,h=0,l=t??1/0;h<l;++h,++this.pos){var c=this.input.charCodeAt(this.pos),f=void 0;if(r&&c===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if(c>=97?f=c-97+10:c>=65?f=c-65+10:c>=48&&c<=57?f=c-48:f=1/0,f>=e)break;o=c,a=a*e+f}return r&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:a};function Tl(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Yn(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}I.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Yn(this.input.slice(t,this.pos)),++this.pos):Ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)};I.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&r===110){var s=Yn(this.input.slice(t,this.pos));return++this.pos,Ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,s)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),r===46&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!i&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=Tl(this.input.slice(t,this.pos),i);return this.finishToken(u.num,n)};I.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};I.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ve(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var Kn={};I.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Kn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};I.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Kn;this.raise(e,t)};I.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ve(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
38
- `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};I.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};I.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
39
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ue(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return ve(t)?"":String.fromCharCode(t)}};I.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};I.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Ye(s,r))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?Ce:Ye)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=Ue(a),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};I.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=Si[e]),this.finishToken(t,e)};var Jn="8.11.3";V.acorn={Parser:V,version:Jn,defaultOptions:ht,Position:ut,SourceLocation:qe,getLineInfo:Ke,Node:Pe,TokenType:P,tokTypes:u,keywordTypes:Si,TokContext:le,tokContexts:M,isIdentifierChar:Ye,isIdentifierStart:Ce,Token:ft,isNewLine:ve,lineBreak:te,lineBreakG:Ot,nonASCIIwhitespace:mr};function Rl(e,t){return V.parse(e,t)}function Ml(e,t,i){return V.parseExpressionAt(e,t,i)}function Fl(e,t){return V.tokenizer(e,t)}var wr={};ci(wr,{LooseParser:()=>T,isDummy:()=>Ae,parse:()=>Vl});var Ei="\u2716";function Ae(e){return e.name===Ei}function Xn(){}var T=function(t,i){if(i===void 0&&(i={}),this.toks=this.constructor.BaseParser.tokenizer(t,i),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:u.eof,start:0,end:0},this.tok.validateRegExpFlags=Xn,this.tok.validateRegExpPattern=Xn,this.options.locations){var r=this.toks.curPosition();this.tok.loc=new qe(this.toks,r,r)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};T.prototype.startNode=function(){return new Pe(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)};T.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start};T.prototype.startNodeAt=function(t){return this.options.locations?new Pe(this.toks,t[0],t[1]):new Pe(this.toks,t)};T.prototype.finishNode=function(t,i){return t.type=i,t.end=this.last.end,this.options.locations&&(t.loc.end=this.last.loc.end),this.options.ranges&&(t.range[1]=this.last.end),t};T.prototype.dummyNode=function(t){var i=this.startNode();return i.type=t,i.end=i.start,this.options.locations&&(i.loc.end=i.loc.start),this.options.ranges&&(i.range[1]=i.start),this.last={type:u.name,start:i.start,end:i.start,loc:i.loc},i};T.prototype.dummyIdent=function(){var t=this.dummyNode("Identifier");return t.name=Ei,t};T.prototype.dummyString=function(){var t=this.dummyNode("Literal");return t.value=t.raw=Ei,t};T.prototype.eat=function(t){return this.tok.type===t?(this.next(),!0):!1};T.prototype.isContextual=function(t){return this.tok.type===u.name&&this.tok.value===t};T.prototype.eatContextual=function(t){return this.tok.value===t&&this.eat(u.name)};T.prototype.canInsertSemicolon=function(){return this.tok.type===u.eof||this.tok.type===u.braceR||te.test(this.input.slice(this.last.end,this.tok.start))};T.prototype.semicolon=function(){return this.eat(u.semi)};T.prototype.expect=function(t){if(this.eat(t))return!0;for(var i=1;i<=2;i++)if(this.lookAhead(i).type===t){for(var r=0;r<i;r++)this.next();return!0}};T.prototype.pushCx=function(){this.context.push(this.curIndent)};T.prototype.popCx=function(){this.curIndent=this.context.pop()};T.prototype.lineEnd=function(t){for(;t<this.input.length&&!ve(this.input.charCodeAt(t));)++t;return t};T.prototype.indentationAfter=function(t){for(var i=0;;++t){var r=this.input.charCodeAt(t);if(r===32)++i;else if(r===9)i+=this.options.tabSize;else return i}};T.prototype.closes=function(t,i,r,s){return this.tok.type===t||this.tok.type===u.eof?!0:r!==this.curLineStart&&this.curIndent<i&&this.tokenStartsLine()&&(!s||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<i)};T.prototype.tokenStartsLine=function(){for(var t=this.tok.start-1;t>=this.curLineStart;--t){var i=this.input.charCodeAt(t);if(i!==9&&i!==32)return!1}return!0};T.prototype.extend=function(t,i){this[t]=i(this[t])};T.prototype.parse=function(){return this.next(),this.parseTopLevel()};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,s=0;s<t.length;s++)r=t[s](r);return r};T.parse=function(t,i){return new this(t,i).parse()};T.BaseParser=V;var ki=T.prototype;function Bl(e){return e<14&&e>8||e===32||e===160||ve(e)}ki.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}};ki.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===u.dot&&this.input.substr(this.toks.end,1)==="."&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=u.ellipsis),new ft(this.toks)}catch(n){if(!(n instanceof SyntaxError))throw n;var e=n.message,t=n.raisedAt,i=!0;if(/unterminated/i.test(e))if(t=this.lineEnd(n.pos+1),/string/.test(e))i={start:n.pos,end:t,type:u.string,value:this.input.slice(n.pos+1,t)};else if(/regular expr/i.test(e)){var r=this.input.slice(n.pos,t);try{r=new RegExp(r)}catch{}i={start:n.pos,end:t,type:u.regexp,value:r}}else/template/.test(e)?i={start:n.pos,end:t,type:u.template,value:this.input.slice(n.pos,t)}:i=!1;else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(e))for(;t<this.input.length&&!Bl(this.input.charCodeAt(t));)++t;else if(/character escape|expected hexadecimal/i.test(e))for(;t<this.input.length;){var s=this.input.charCodeAt(t++);if(s===34||s===39||ve(s))break}else if(/unexpected character/i.test(e))t++,i=!1;else if(/regular expression/i.test(e))i=!0;else throw n;if(this.resetTo(t),i===!0&&(i={start:t,end:t,type:u.name,value:Ei}),i)return this.options.locations&&(i.loc=new qe(this.toks,Ke(this.input,i.start),Ke(this.input,i.end))),i}};ki.resetTo=function(e){this.toks.pos=e,this.toks.containsEsc=!1;var t=this.input.charAt(e-1);if(this.toks.exprAllowed=!t||/[[{(,;:?/*=+\-~!|&%^<>]/.test(t)||/[enwfd]/.test(t)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations){this.toks.curLine=1,this.toks.lineStart=Ot.lastIndex=0;for(var i;(i=Ot.exec(this.input))&&i.index<e;)++this.toks.curLine,this.toks.lineStart=i.index+i[0].length}};ki.lookAhead=function(e){for(;e>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var Q=T.prototype;Q.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,Ke(this.input,0)]:0);for(e.body=[];this.tok.type!==u.eof;)e.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(e.body),this.last=this.tok,e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};Q.parseStatement=function(){var e=this.tok.type,t=this.startNode(),i;switch(this.toks.isLet()&&(e=u._var,i="let"),e){case u._break:case u._continue:this.next();var r=e===u._break;return this.semicolon()||this.canInsertSemicolon()?t.label=null:(t.label=this.tok.type===u.name?this.parseIdent():null,this.semicolon()),this.finishNode(t,r?"BreakStatement":"ContinueStatement");case u._debugger:return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement");case u._do:return this.next(),t.body=this.parseStatement(),t.test=this.eat(u._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(t,"DoWhileStatement");case u._for:this.next();var s=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(u.parenL),this.tok.type===u.semi)return this.parseFor(t,null);var n=this.toks.isLet();if(n||this.tok.type===u._var||this.tok.type===u._const){var a=this.parseVar(this.startNode(),!0,n?"let":this.tok.value);return a.declarations.length===1&&(this.tok.type===u._in||this.isContextual("of"))?(this.options.ecmaVersion>=9&&this.tok.type!==u._in&&(t.await=s),this.parseForIn(t,a)):this.parseFor(t,a)}var o=this.parseExpression(!0);return this.tok.type===u._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==u._in&&(t.await=s),this.parseForIn(t,this.toAssignable(o))):this.parseFor(t,o);case u._function:return this.next(),this.parseFunction(t,!0);case u._if:return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(),t.alternate=this.eat(u._else)?this.parseStatement():null,this.finishNode(t,"IfStatement");case u._return:return this.next(),this.eat(u.semi)||this.canInsertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement");case u._switch:var h=this.curIndent,l=this.curLineStart;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.pushCx(),this.expect(u.braceL);for(var c;!this.closes(u.braceR,h,l,!0);)if(this.tok.type===u._case||this.tok.type===u._default){var f=this.tok.type===u._case;c&&this.finishNode(c,"SwitchCase"),t.cases.push(c=this.startNode()),c.consequent=[],this.next(),f?c.test=this.parseExpression():c.test=null,this.expect(u.colon)}else c||(t.cases.push(c=this.startNode()),c.consequent=[],c.test=null),c.consequent.push(this.parseStatement());return c&&this.finishNode(c,"SwitchCase"),this.popCx(),this.eat(u.braceR),this.finishNode(t,"SwitchStatement");case u._throw:return this.next(),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement");case u._try:if(this.next(),t.block=this.parseBlock(),t.handler=null,this.tok.type===u._catch){var p=this.startNode();this.next(),this.eat(u.parenL)?(p.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(u.parenR)):p.param=null,p.body=this.parseBlock(),t.handler=this.finishNode(p,"CatchClause")}return t.finalizer=this.eat(u._finally)?this.parseBlock():null,!t.handler&&!t.finalizer?t.block:this.finishNode(t,"TryStatement");case u._var:case u._const:return this.parseVar(t,!1,i||this.tok.value);case u._while:return this.next(),t.test=this.parseParenExpression(),t.body=this.parseStatement(),this.finishNode(t,"WhileStatement");case u._with:return this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(),this.finishNode(t,"WithStatement");case u.braceL:return this.parseBlock();case u.semi:return this.next(),this.finishNode(t,"EmptyStatement");case u._class:return this.parseClass(!0);case u._import:if(this.options.ecmaVersion>10){var d=this.lookAhead(1).type;if(d===u.parenL||d===u.dot)return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"ExpressionStatement")}return this.parseImport();case u._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,!0,!0);var m=this.parseExpression();return Ae(m)?(this.next(),this.tok.type===u.eof?this.finishNode(t,"EmptyStatement"):this.parseStatement()):e===u.name&&m.type==="Identifier"&&this.eat(u.colon)?(t.body=this.parseStatement(),t.label=m,this.finishNode(t,"LabeledStatement")):(t.expression=m,this.semicolon(),this.finishNode(t,"ExpressionStatement"))}};Q.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(u.braceL);var t=this.curIndent,i=this.curLineStart;for(e.body=[];!this.closes(u.braceR,t,i,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(u.braceR),this.finishNode(e,"BlockStatement")};Q.parseFor=function(e,t){return e.init=t,e.test=e.update=null,this.eat(u.semi)&&this.tok.type!==u.semi&&(e.test=this.parseExpression()),this.eat(u.semi)&&this.tok.type!==u.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(u.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")};Q.parseForIn=function(e,t){var i=this.tok.type===u._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.popCx(),this.expect(u.parenR),e.body=this.parseStatement(),this.finishNode(e,i)};Q.parseVar=function(e,t,i){e.kind=i,this.next(),e.declarations=[];do{var r=this.startNode();r.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),r.init=this.eat(u.eq)?this.parseMaybeAssign(t):null,e.declarations.push(this.finishNode(r,"VariableDeclarator"))}while(this.eat(u.comma));if(!e.declarations.length){var s=this.startNode();s.id=this.dummyIdent(),e.declarations.push(this.finishNode(s,"VariableDeclarator"))}return t||this.semicolon(),this.finishNode(e,"VariableDeclaration")};Q.parseClass=function(e){var t=this.startNode();this.next(),this.tok.type===u.name?t.id=this.parseIdent():e===!0?t.id=this.dummyIdent():t.id=null,t.superClass=this.eat(u._extends)?this.parseExpression():null,t.body=this.startNode(),t.body.body=[],this.pushCx();var i=this.curIndent+1,r=this.curLineStart;for(this.eat(u.braceL),this.curIndent+1<i&&(i=this.curIndent,r=this.curLineStart);!this.closes(u.braceR,i,r);){var s=this.parseClassElement();s&&t.body.body.push(s)}return this.popCx(),this.eat(u.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(t.body,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};Q.parseClassElement=function(){if(this.eat(u.semi))return null;var e=this.options,t=e.ecmaVersion,i=e.locations,r=this.curIndent,s=this.curLineStart,n=this.startNode(),a="",o=!1,h=!1,l="method",c=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.toks.type===u.star?c=!0:a="static"}if(n.static=c,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.toks.type===u.star)&&!this.canInsertSemicolon()?h=!0:a="async"),!a){o=this.eat(u.star);var f=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=f:a=f)}if(a)n.computed=!1,n.key=this.startNodeAt(i?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),n.key.name=a,this.finishNode(n.key,"Identifier");else if(this.parseClassElementName(n),Ae(n.key))return Ae(this.parseMaybeAssign())&&this.next(),this.eat(u.comma),null;if(t<13||this.toks.type===u.parenL||l!=="method"||o||h){var p=!n.computed&&!n.static&&!o&&!h&&l==="method"&&(n.key.type==="Identifier"&&n.key.name==="constructor"||n.key.type==="Literal"&&n.key.value==="constructor");n.kind=p?"constructor":l,n.value=this.parseMethod(o,h),this.finishNode(n,"MethodDefinition")}else{if(this.eat(u.eq))if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())n.value=null;else{var d=this.inAsync,m=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,n.value=this.parseMaybeAssign(),this.inAsync=d,this.inGenerator=m}else n.value=null;this.semicolon(),this.finishNode(n,"PropertyDefinition")}return n};Q.parseClassStaticBlock=function(e){var t=this.curIndent,i=this.curLineStart;for(e.body=[],this.pushCx();!this.closes(u.braceR,t,i,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(u.braceR),this.finishNode(e,"StaticBlock")};Q.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()};Q.parseClassElementName=function(e){this.toks.type===u.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Q.parseFunction=function(e,t,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!i),this.tok.type===u.name?e.id=this.parseIdent():t===!0&&(e.id=this.dummyIdent()),this.inAsync=e.async,this.inGenerator=e.generator,this.inFunction=!0,e.params=this.parseFunctionParams(),e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")};Q.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(u.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?e.exported=this.parseExprAtom():e.exported=null),e.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(u._default)){var t;if(this.tok.type===u._function||(t=this.toks.isAsyncFunction())){var i=this.startNode();this.next(),t&&this.next(),e.declaration=this.parseFunction(i,"nullableID",t)}else this.tok.type===u._class?e.declaration=this.parseClass("nullableID"):(e.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(e,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(e.declaration=this.parseStatement(),e.specifiers=[],e.source=null):(e.declaration=null,e.specifiers=this.parseExportSpecifierList(),e.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(e,"ExportNamedDeclaration")};Q.parseImport=function(){var e=this.startNode();if(this.next(),this.tok.type===u.string)e.specifiers=[],e.source=this.parseExprAtom();else{var t;this.tok.type===u.name&&this.tok.value!=="from"&&(t=this.startNode(),t.local=this.parseIdent(),this.finishNode(t,"ImportDefaultSpecifier"),this.eat(u.comma)),e.specifiers=this.parseImportSpecifiers(),e.source=this.eatContextual("from")&&this.tok.type===u.string?this.parseExprAtom():this.dummyString(),t&&e.specifiers.unshift(t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")};Q.parseImportSpecifiers=function(){var e=[];if(this.tok.type===u.star){var t=this.startNode();this.next(),t.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(t,"ImportNamespaceSpecifier"))}else{var i=this.curIndent,r=this.curLineStart,s=this.nextLineStart;for(this.pushCx(),this.eat(u.braceL),this.curLineStart>s&&(s=this.curLineStart);!this.closes(u.braceR,i+(this.curLineStart<=s?1:0),r);){var n=this.startNode();if(this.eat(u.star))n.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(n,"ImportNamespaceSpecifier");else{if(this.isContextual("from")||(n.imported=this.parseModuleExportName(),Ae(n.imported)))break;n.local=this.eatContextual("as")?this.parseModuleExportName():n.imported,this.finishNode(n,"ImportSpecifier")}e.push(n),this.eat(u.comma)}this.eat(u.braceR),this.popCx()}return e};Q.parseExportSpecifierList=function(){var e=[],t=this.curIndent,i=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(u.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(u.braceR,t+(this.curLineStart<=r?1:0),i)&&!this.isContextual("from");){var s=this.startNode();if(s.local=this.parseModuleExportName(),Ae(s.local))break;s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.finishNode(s,"ExportSpecifier"),e.push(s),this.eat(u.comma)}return this.eat(u.braceR),this.popCx(),e};Q.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===u.string?this.parseExprAtom():this.parseIdent()};var O=T.prototype;O.checkLVal=function(e){if(!e)return e;switch(e.type){case"Identifier":case"MemberExpression":return e;case"ParenthesizedExpression":return e.expression=this.checkLVal(e.expression),e;default:return this.dummyIdent()}};O.parseExpression=function(e){var t=this.storeCurrentPos(),i=this.parseMaybeAssign(e);if(this.tok.type===u.comma){var r=this.startNodeAt(t);for(r.expressions=[i];this.eat(u.comma);)r.expressions.push(this.parseMaybeAssign(e));return this.finishNode(r,"SequenceExpression")}return i};O.parseParenExpression=function(){this.pushCx(),this.expect(u.parenL);var e=this.parseExpression();return this.popCx(),this.expect(u.parenR),e};O.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var t=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==u.star&&!this.tok.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")}var i=this.storeCurrentPos(),r=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var s=this.startNodeAt(i);return s.operator=this.tok.value,s.left=this.tok.type===u.eq?this.toAssignable(r):this.checkLVal(r),this.next(),s.right=this.parseMaybeAssign(e),this.finishNode(s,"AssignmentExpression")}return r};O.parseMaybeConditional=function(e){var t=this.storeCurrentPos(),i=this.parseExprOps(e);if(this.eat(u.question)){var r=this.startNodeAt(t);return r.test=i,r.consequent=this.parseMaybeAssign(),r.alternate=this.expect(u.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(r,"ConditionalExpression")}return i};O.parseExprOps=function(e){var t=this.storeCurrentPos(),i=this.curIndent,r=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,i,r)};O.parseExprOp=function(e,t,i,r,s,n){if(this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())return e;var a=this.tok.type.binop;if(a!=null&&(!r||this.tok.type!==u._in)&&a>i){var o=this.startNodeAt(t);if(o.left=e,o.operator=this.tok.value,this.next(),this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())o.right=this.dummyIdent();else{var h=this.storeCurrentPos();o.right=this.parseExprOp(this.parseMaybeUnary(!1),h,a,r,s,n)}return this.finishNode(o,/&&|\|\||\?\?/.test(o.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(o,t,i,r,s,n)}return e};O.parseMaybeUnary=function(e){var t=this.storeCurrentPos(),i;if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var r=this.startNode(),s=this.tok.type===u.incDec;s||(e=!0),r.operator=this.tok.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(!0),s&&(r.argument=this.checkLVal(r.argument)),i=this.finishNode(r,s?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===u.ellipsis){var n=this.startNode();this.next(),n.argument=this.parseMaybeUnary(e),i=this.finishNode(n,"SpreadElement")}else if(!e&&this.tok.type===u.privateId)i=this.parsePrivateIdent();else for(i=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(t);a.operator=this.tok.value,a.prefix=!1,a.argument=this.checkLVal(i),this.next(),i=this.finishNode(a,"UpdateExpression")}if(!e&&this.eat(u.starstar)){var o=this.startNodeAt(t);return o.operator="**",o.left=i,o.right=this.parseMaybeUnary(!1),this.finishNode(o,"BinaryExpression")}return i};O.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)};O.parseSubscripts=function(e,t,i,r,s){for(var n=this.options.ecmaVersion>=11,a=!1;;){if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())if(this.tok.type===u.dot&&this.curIndent===r)--r;else break;var o=e.type==="Identifier"&&e.name==="async"&&!this.canInsertSemicolon(),h=n&&this.eat(u.questionDot);if(h&&(a=!0),h&&this.tok.type!==u.parenL&&this.tok.type!==u.bracketL&&this.tok.type!==u.backQuote||this.eat(u.dot)){var l=this.startNodeAt(t);l.object=e,this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,n&&(l.optional=h),e=this.finishNode(l,"MemberExpression")}else if(this.tok.type===u.bracketL){this.pushCx(),this.next();var c=this.startNodeAt(t);c.object=e,c.property=this.parseExpression(),c.computed=!0,n&&(c.optional=h),this.popCx(),this.expect(u.bracketR),e=this.finishNode(c,"MemberExpression")}else if(!i&&this.tok.type===u.parenL){var f=this.parseExprList(u.parenR);if(o&&this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(t),f,!0);var p=this.startNodeAt(t);p.callee=e,p.arguments=f,n&&(p.optional=h),e=this.finishNode(p,"CallExpression")}else if(this.tok.type===u.backQuote){var d=this.startNodeAt(t);d.tag=e,d.quasi=this.parseTemplate(),e=this.finishNode(d,"TaggedTemplateExpression")}else break}if(a){var m=this.startNodeAt(t);m.expression=e,e=this.finishNode(m,"ChainExpression")}return e};O.parseExprAtom=function(){var e;switch(this.tok.type){case u._this:case u._super:var t=this.tok.type===u._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,t);case u.name:var i=this.storeCurrentPos(),r=this.parseIdent(),s=!1;if(r.name==="async"&&!this.canInsertSemicolon()){if(this.eat(u._function))return this.toks.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(i),!1,!0);this.tok.type===u.name&&(r=this.parseIdent(),s=!0)}return this.eat(u.arrow)?this.parseArrowExpression(this.startNodeAt(i),[r],s):r;case u.regexp:e=this.startNode();var n=this.tok.value;return e.regex={pattern:n.pattern,flags:n.flags},e.value=n.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case u.num:case u.string:return e=this.startNode(),e.value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===u.num&&e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case u._null:case u._true:case u._false:return e=this.startNode(),e.value=this.tok.type===u._null?null:this.tok.type===u._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case u.parenL:var a=this.storeCurrentPos();this.next();var o=this.parseExpression();if(this.expect(u.parenR),this.eat(u.arrow)){var h=o.expressions||[o];return h.length&&Ae(h[h.length-1])&&h.pop(),this.parseArrowExpression(this.startNodeAt(a),h)}if(this.options.preserveParens){var l=this.startNodeAt(a);l.expression=o,o=this.finishNode(l,"ParenthesizedExpression")}return o;case u.bracketL:return e=this.startNode(),e.elements=this.parseExprList(u.bracketR,!0),this.finishNode(e,"ArrayExpression");case u.braceL:return this.toks.overrideContext(M.b_expr),this.parseObj();case u._class:return this.parseClass(!1);case u._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}};O.parseExprImport=function(){var e=this.startNode(),t=this.parseIdent(!0);switch(this.tok.type){case u.parenL:return this.parseDynamicImport(e);case u.dot:return e.meta=t,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}};O.parseDynamicImport=function(e){return e.source=this.parseExprList(u.parenR)[0]||this.dummyString(),this.finishNode(e,"ImportExpression")};O.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")};O.parseNew=function(){var e=this.startNode(),t=this.curIndent,i=this.curLineStart,r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot))return e.meta=r,e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty");var s=this.storeCurrentPos();return e.callee=this.parseSubscripts(this.parseExprAtom(),s,!0,t,i),this.tok.type===u.parenL?e.arguments=this.parseExprList(u.parenR):e.arguments=[],this.finishNode(e,"NewExpression")};O.parseTemplateElement=function(){var e=this.startNode();return this.tok.type===u.invalidTemplate?e.value={raw:this.tok.value,cooked:null}:e.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,`
40
- `),cooked:this.tok.value},this.next(),e.tail=this.tok.type===u.backQuote,this.finishNode(e,"TemplateElement")};O.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.next(),e.expressions.push(this.parseExpression()),this.expect(u.braceR)?t=this.parseTemplateElement():(t=this.startNode(),t.value={cooked:"",raw:""},t.tail=!0,this.finishNode(t,"TemplateElement")),e.quasis.push(t);return this.expect(u.backQuote),this.finishNode(e,"TemplateLiteral")};O.parseObj=function(){var e=this.startNode();e.properties=[],this.pushCx();var t=this.curIndent+1,i=this.curLineStart;for(this.eat(u.braceL),this.curIndent+1<t&&(t=this.curIndent,i=this.curLineStart);!this.closes(u.braceR,t,i);){var r=this.startNode(),s=void 0,n=void 0,a=void 0;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis)){r.argument=this.parseMaybeAssign(),e.properties.push(this.finishNode(r,"SpreadElement")),this.eat(u.comma);continue}if(this.options.ecmaVersion>=6&&(a=this.storeCurrentPos(),r.method=!1,r.shorthand=!1,s=this.eat(u.star)),this.parsePropertyName(r),this.toks.isAsyncProp(r)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(r)):n=!1,Ae(r.key)){Ae(this.parseMaybeAssign())&&this.next(),this.eat(u.comma);continue}if(this.eat(u.colon))r.kind="init",r.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===u.parenL||this.tok.type===u.braceL))r.kind="init",r.method=!0,r.value=this.parseMethod(s,n);else if(this.options.ecmaVersion>=5&&r.key.type==="Identifier"&&!r.computed&&(r.key.name==="get"||r.key.name==="set")&&this.tok.type!==u.comma&&this.tok.type!==u.braceR&&this.tok.type!==u.eq)r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);else{if(r.kind="init",this.options.ecmaVersion>=6)if(this.eat(u.eq)){var o=this.startNodeAt(a);o.operator="=",o.left=r.key,o.right=this.parseMaybeAssign(),r.value=this.finishNode(o,"AssignmentExpression")}else r.value=r.key;else r.value=this.dummyIdent();r.shorthand=!0}e.properties.push(this.finishNode(r,"Property")),this.eat(u.comma)}return this.popCx(),this.eat(u.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(e,"ObjectExpression")};O.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(u.bracketL)){e.computed=!0,e.key=this.parseExpression(),this.expect(u.bracketR);return}else e.computed=!1;var t=this.tok.type===u.num||this.tok.type===u.string?this.parseExprAtom():this.parseIdent();e.key=t||this.dummyIdent()};O.parsePropertyAccessor=function(){if(this.tok.type===u.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===u.privateId)return this.parsePrivateIdent()};O.parseIdent=function(){var e=this.tok.type===u.name?this.tok.value:this.tok.type.keyword;if(!e)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=u.name);var t=this.startNode();return this.next(),t.name=e,this.finishNode(t,"Identifier")};O.parsePrivateIdent=function(){var e=this.startNode();return e.name=this.tok.value,this.next(),this.finishNode(e,"PrivateIdentifier")};O.initFunction=function(e){e.id=null,e.params=[],this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};O.toAssignable=function(e,t){if(!(!e||e.type==="Identifier"||e.type==="MemberExpression"&&!t))if(e.type==="ParenthesizedExpression")this.toAssignable(e.expression,t);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(e.type==="ObjectExpression"){e.type="ObjectPattern";for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t)}}else if(e.type==="ArrayExpression")e.type="ArrayPattern",this.toAssignableList(e.elements,t);else if(e.type==="Property")this.toAssignable(e.value,t);else if(e.type==="SpreadElement")e.type="RestElement",this.toAssignable(e.argument,t);else if(e.type==="AssignmentExpression")e.type="AssignmentPattern",delete e.operator;else return this.dummyIdent()}return e};O.toAssignableList=function(e,t){for(var i=0,r=e;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t)}return e};O.parseFunctionParams=function(e){return e=this.parseExprList(u.parenR),this.toAssignableList(e,!0)};O.parseMethod=function(e,t){var i=this.startNode(),r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=!!e),this.options.ecmaVersion>=8&&(i.async=!!t),this.inAsync=i.async,this.inGenerator=i.generator,this.inFunction=!0,i.params=this.parseFunctionParams(),i.body=this.parseBlock(),this.toks.adaptDirectivePrologue(i.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(i,"FunctionExpression")};O.parseArrowExpression=function(e,t,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.inAsync=e.async,this.inGenerator=!1,this.inFunction=!0,e.params=this.toAssignableList(t,!0),e.expression=this.tok.type!==u.braceL,e.expression?e.body=this.parseMaybeAssign():(e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body)),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(e,"ArrowFunctionExpression")};O.parseExprList=function(e,t){this.pushCx();var i=this.curIndent,r=this.curLineStart,s=[];for(this.next();!this.closes(e,i+1,r);){if(this.eat(u.comma)){s.push(t?null:this.dummyIdent());continue}var n=this.parseMaybeAssign();if(Ae(n)){if(this.closes(e,i,r))break;this.next()}else s.push(n);this.eat(u.comma)}return this.popCx(),this.eat(e)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),s};O.parseAwait=function(){var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")};ht.tabSize=4;function Vl(e,t){return T.parse(e,t)}var Er={};ci(Er,{ancestor:()=>Ul,base:()=>y,findNodeAfter:()=>$l,findNodeAround:()=>zl,findNodeAt:()=>Gl,findNodeBefore:()=>Hl,full:()=>jl,fullAncestor:()=>Wl,make:()=>Zn,recursive:()=>ql,simple:()=>Dl});function Dl(e,t,i,r,s){i||(i=y),function n(a,o,h){var l=h||a.type;i[l](a,o,n),t[l]&&t[l](a,o)}(e,r,s)}function Ul(e,t,i,r,s){var n=[];i||(i=y),function a(o,h,l){var c=l||o.type,f=o!==n[n.length-1];f&&n.push(o),i[c](o,h,a),t[c]&&t[c](o,h||n,n),f&&n.pop()}(e,r,s)}function ql(e,t,i,r,s){var n=i?Zn(i,r||void 0):r;(function a(o,h,l){n[l||o.type](o,h,a)})(e,t,s)}function Ai(e){return typeof e=="string"?function(t){return t===e}:e||function(){return!0}}var Je=function(t,i){this.node=t,this.state=i};function jl(e,t,i,r,s){i||(i=y);var n;(function a(o,h,l){var c=l||o.type;i[c](o,h,a),n!==o&&(t(o,h,c),n=o)})(e,r,s)}function Wl(e,t,i,r){i||(i=y);var s=[],n;(function a(o,h,l){var c=l||o.type,f=o!==s[s.length-1];f&&s.push(o),i[c](o,h,a),n!==o&&(t(o,h||s,s,c),n=o),f&&s.pop()})(e,r)}function Gl(e,t,i,r,s,n){s||(s=y),r=Ai(r);try{(function a(o,h,l){var c=l||o.type;if((t==null||o.start<=t)&&(i==null||o.end>=i)&&s[c](o,h,a),(t==null||o.start===t)&&(i==null||o.end===i)&&r(c,o))throw new Je(o,h)})(e,n)}catch(a){if(a instanceof Je)return a;throw a}}function zl(e,t,i,r,s){i=Ai(i),r||(r=y);try{(function n(a,o,h){var l=h||a.type;if(!(a.start>t||a.end<t)&&(r[l](a,o,n),i(l,a)))throw new Je(a,o)})(e,s)}catch(n){if(n instanceof Je)return n;throw n}}function $l(e,t,i,r,s){i=Ai(i),r||(r=y);try{(function n(a,o,h){if(!(a.end<t)){var l=h||a.type;if(a.start>=t&&i(l,a))throw new Je(a,o);r[l](a,o,n)}})(e,s)}catch(n){if(n instanceof Je)return n;throw n}}function Hl(e,t,i,r,s){i=Ai(i),r||(r=y);var n;return function a(o,h,l){if(!(o.start>t)){var c=l||o.type;o.end<=t&&(!n||n.node.end<o.end)&&i(c,o)&&(n=new Je(o,h)),r[c](o,h,a)}}(e,s),n}function Zn(e,t){var i=Object.create(t||y);for(var r in e)i[r]=e[r];return i}function Cr(e,t,i){i(e,t)}function Xe(e,t,i){}var y={};y.Program=y.BlockStatement=y.StaticBlock=function(e,t,i){for(var r=0,s=e.body;r<s.length;r+=1){var n=s[r];i(n,t,"Statement")}};y.Statement=Cr;y.EmptyStatement=Xe;y.ExpressionStatement=y.ParenthesizedExpression=y.ChainExpression=function(e,t,i){return i(e.expression,t,"Expression")};y.IfStatement=function(e,t,i){i(e.test,t,"Expression"),i(e.consequent,t,"Statement"),e.alternate&&i(e.alternate,t,"Statement")};y.LabeledStatement=function(e,t,i){return i(e.body,t,"Statement")};y.BreakStatement=y.ContinueStatement=Xe;y.WithStatement=function(e,t,i){i(e.object,t,"Expression"),i(e.body,t,"Statement")};y.SwitchStatement=function(e,t,i){i(e.discriminant,t,"Expression");for(var r=0,s=e.cases;r<s.length;r+=1){var n=s[r];n.test&&i(n.test,t,"Expression");for(var a=0,o=n.consequent;a<o.length;a+=1){var h=o[a];i(h,t,"Statement")}}};y.SwitchCase=function(e,t,i){e.test&&i(e.test,t,"Expression");for(var r=0,s=e.consequent;r<s.length;r+=1){var n=s[r];i(n,t,"Statement")}};y.ReturnStatement=y.YieldExpression=y.AwaitExpression=function(e,t,i){e.argument&&i(e.argument,t,"Expression")};y.ThrowStatement=y.SpreadElement=function(e,t,i){return i(e.argument,t,"Expression")};y.TryStatement=function(e,t,i){i(e.block,t,"Statement"),e.handler&&i(e.handler,t),e.finalizer&&i(e.finalizer,t,"Statement")};y.CatchClause=function(e,t,i){e.param&&i(e.param,t,"Pattern"),i(e.body,t,"Statement")};y.WhileStatement=y.DoWhileStatement=function(e,t,i){i(e.test,t,"Expression"),i(e.body,t,"Statement")};y.ForStatement=function(e,t,i){e.init&&i(e.init,t,"ForInit"),e.test&&i(e.test,t,"Expression"),e.update&&i(e.update,t,"Expression"),i(e.body,t,"Statement")};y.ForInStatement=y.ForOfStatement=function(e,t,i){i(e.left,t,"ForInit"),i(e.right,t,"Expression"),i(e.body,t,"Statement")};y.ForInit=function(e,t,i){e.type==="VariableDeclaration"?i(e,t):i(e,t,"Expression")};y.DebuggerStatement=Xe;y.FunctionDeclaration=function(e,t,i){return i(e,t,"Function")};y.VariableDeclaration=function(e,t,i){for(var r=0,s=e.declarations;r<s.length;r+=1){var n=s[r];i(n,t)}};y.VariableDeclarator=function(e,t,i){i(e.id,t,"Pattern"),e.init&&i(e.init,t,"Expression")};y.Function=function(e,t,i){e.id&&i(e.id,t,"Pattern");for(var r=0,s=e.params;r<s.length;r+=1){var n=s[r];i(n,t,"Pattern")}i(e.body,t,e.expression?"Expression":"Statement")};y.Pattern=function(e,t,i){e.type==="Identifier"?i(e,t,"VariablePattern"):e.type==="MemberExpression"?i(e,t,"MemberPattern"):i(e,t)};y.VariablePattern=Xe;y.MemberPattern=Cr;y.RestElement=function(e,t,i){return i(e.argument,t,"Pattern")};y.ArrayPattern=function(e,t,i){for(var r=0,s=e.elements;r<s.length;r+=1){var n=s[r];n&&i(n,t,"Pattern")}};y.ObjectPattern=function(e,t,i){for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];n.type==="Property"?(n.computed&&i(n.key,t,"Expression"),i(n.value,t,"Pattern")):n.type==="RestElement"&&i(n.argument,t,"Pattern")}};y.Expression=Cr;y.ThisExpression=y.Super=y.MetaProperty=Xe;y.ArrayExpression=function(e,t,i){for(var r=0,s=e.elements;r<s.length;r+=1){var n=s[r];n&&i(n,t,"Expression")}};y.ObjectExpression=function(e,t,i){for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];i(n,t)}};y.FunctionExpression=y.ArrowFunctionExpression=y.FunctionDeclaration;y.SequenceExpression=function(e,t,i){for(var r=0,s=e.expressions;r<s.length;r+=1){var n=s[r];i(n,t,"Expression")}};y.TemplateLiteral=function(e,t,i){for(var r=0,s=e.quasis;r<s.length;r+=1){var n=s[r];i(n,t)}for(var a=0,o=e.expressions;a<o.length;a+=1){var h=o[a];i(h,t,"Expression")}};y.TemplateElement=Xe;y.UnaryExpression=y.UpdateExpression=function(e,t,i){i(e.argument,t,"Expression")};y.BinaryExpression=y.LogicalExpression=function(e,t,i){i(e.left,t,"Expression"),i(e.right,t,"Expression")};y.AssignmentExpression=y.AssignmentPattern=function(e,t,i){i(e.left,t,"Pattern"),i(e.right,t,"Expression")};y.ConditionalExpression=function(e,t,i){i(e.test,t,"Expression"),i(e.consequent,t,"Expression"),i(e.alternate,t,"Expression")};y.NewExpression=y.CallExpression=function(e,t,i){if(i(e.callee,t,"Expression"),e.arguments)for(var r=0,s=e.arguments;r<s.length;r+=1){var n=s[r];i(n,t,"Expression")}};y.MemberExpression=function(e,t,i){i(e.object,t,"Expression"),e.computed&&i(e.property,t,"Expression")};y.ExportNamedDeclaration=y.ExportDefaultDeclaration=function(e,t,i){e.declaration&&i(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&i(e.source,t,"Expression")};y.ExportAllDeclaration=function(e,t,i){e.exported&&i(e.exported,t),i(e.source,t,"Expression")};y.ImportDeclaration=function(e,t,i){for(var r=0,s=e.specifiers;r<s.length;r+=1){var n=s[r];i(n,t)}i(e.source,t,"Expression")};y.ImportExpression=function(e,t,i){i(e.source,t,"Expression")};y.ImportSpecifier=y.ImportDefaultSpecifier=y.ImportNamespaceSpecifier=y.Identifier=y.PrivateIdentifier=y.Literal=Xe;y.TaggedTemplateExpression=function(e,t,i){i(e.tag,t,"Expression"),i(e.quasi,t,"Expression")};y.ClassDeclaration=y.ClassExpression=function(e,t,i){return i(e,t,"Class")};y.Class=function(e,t,i){e.id&&i(e.id,t,"Pattern"),e.superClass&&i(e.superClass,t,"Expression"),i(e.body,t)};y.ClassBody=function(e,t,i){for(var r=0,s=e.body;r<s.length;r+=1){var n=s[r];i(n,t)}};y.MethodDefinition=y.PropertyDefinition=y.Property=function(e,t,i){e.computed&&i(e.key,t,"Expression"),e.value&&i(e.value,t,"Expression")};var gh=$(Ao());var Qo=$(Uo(),1);var Qt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var cf={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Yt=e=>e.replace(/[[\]\\-]/g,"\\$&"),ff=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),qo=e=>e.join(""),jo=(e,t)=>{let i=t;if(e.charAt(i)!=="[")throw new Error("not in a brace expression");let r=[],s=[],n=i+1,a=!1,o=!1,h=!1,l=!1,c=i,f="";e:for(;n<e.length;){let g=e.charAt(n);if((g==="!"||g==="^")&&n===i+1){l=!0,n++;continue}if(g==="]"&&a&&!h){c=n+1;break}if(a=!0,g==="\\"&&!h){h=!0,n++;continue}if(g==="["&&!h){for(let[x,[b,C,A]]of Object.entries(cf))if(e.startsWith(x,n)){if(f)return["$.",!1,e.length-i,!0];n+=x.length,A?s.push(b):r.push(b),o=o||C;continue e}}if(h=!1,f){g>f?r.push(Yt(f)+"-"+Yt(g)):g===f&&r.push(Yt(g)),f="",n++;continue}if(e.startsWith("-]",n+1)){r.push(Yt(g+"-")),n+=2;continue}if(e.startsWith("-",n+1)){f=g,n+=2;continue}r.push(Yt(g)),n++}if(c<n)return["",!1,0,!1];if(!r.length&&!s.length)return["$.",!1,e.length-i,!0];if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let g=r[0].length===2?r[0].slice(-1):r[0];return[ff(g),!1,c-i,!1]}let p="["+(l?"^":"")+qo(r)+"]",d="["+(l?"":"^")+qo(s)+"]";return[r.length&&s.length?"("+p+"|"+d+")":r.length?p:d,o,c-i,!0]};var Ge=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var pf=new Set(["!","?","+","*","@"]),Wo=e=>pf.has(e),df="(?!(?:^|/)\\.\\.?(?:$|/))",Ui="(?!\\.)",mf=new Set(["[","."]),gf=new Set(["..","."]),xf=new Set("().*{}+?[]^$\\!"),yf=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),os="[^/]",Go=os+"*?",zo=os+"+?",_t=class e{type;#i;#r;#n=!1;#e=[];#t;#a;#u;#o=!1;#s;#h;#c=!1;constructor(t,i,r={}){this.type=t,t&&(this.#r=!0),this.#t=i,this.#i=this.#t?this.#t.#i:this,this.#s=this.#i===this?r:this.#i.#s,this.#u=this.#i===this?[]:this.#i.#u,t==="!"&&!this.#i.#o&&this.#u.push(this),this.#a=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#h!==void 0?this.#h:this.type?this.#h=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#h=this.#e.map(t=>String(t)).join("")}#p(){if(this!==this.#i)throw new Error("should only call on root");if(this.#o)return this;this.toString(),this.#o=!0;let t;for(;t=this.#u.pop();){if(t.type!=="!")continue;let i=t,r=i.#t;for(;r;){for(let s=i.#a+1;!r.type&&s<r.#e.length;s++)for(let n of t.#e){if(typeof n=="string")throw new Error("string part in extglob AST??");n.copyIn(r.#e[s])}i=r,r=i.#t}}return this}push(...t){for(let i of t)if(i!==""){if(typeof i!="string"&&!(i instanceof e&&i.#t===this))throw new Error("invalid part: "+i);this.#e.push(i)}}toJSON(){var i;let t=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&&t.unshift([]),this.isEnd()&&(this===this.#i||this.#i.#o&&((i=this.#t)==null?void 0:i.type)==="!")&&t.push({}),t}isStart(){var i;if(this.#i===this)return!0;if(!((i=this.#t)!=null&&i.isStart()))return!1;if(this.#a===0)return!0;let t=this.#t;for(let r=0;r<this.#a;r++){let s=t.#e[r];if(!(s instanceof e&&s.type==="!"))return!1}return!0}isEnd(){var i,r,s;if(this.#i===this||((i=this.#t)==null?void 0:i.type)==="!")return!0;if(!((r=this.#t)!=null&&r.isEnd()))return!1;if(!this.type)return(s=this.#t)==null?void 0:s.isEnd();let t=this.#t?this.#t.#e.length:0;return this.#a===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let i=new e(this.type,t);for(let r of this.#e)i.copyIn(r);return i}static#l(t,i,r,s){let n=!1,a=!1,o=-1,h=!1;if(i.type===null){let d=r,m="";for(;d<t.length;){let g=t.charAt(d++);if(n||g==="\\"){n=!n,m+=g;continue}if(a){d===o+1?(g==="^"||g==="!")&&(h=!0):g==="]"&&!(d===o+2&&h)&&(a=!1),m+=g;continue}else if(g==="["){a=!0,o=d,h=!1,m+=g;continue}if(!s.noext&&Wo(g)&&t.charAt(d)==="("){i.push(m),m="";let x=new e(g,i);d=e.#l(t,x,d,s),i.push(x);continue}m+=g}return i.push(m),d}let l=r+1,c=new e(null,i),f=[],p="";for(;l<t.length;){let d=t.charAt(l++);if(n||d==="\\"){n=!n,p+=d;continue}if(a){l===o+1?(d==="^"||d==="!")&&(h=!0):d==="]"&&!(l===o+2&&h)&&(a=!1),p+=d;continue}else if(d==="["){a=!0,o=l,h=!1,p+=d;continue}if(Wo(d)&&t.charAt(l)==="("){c.push(p),p="";let m=new e(d,c);c.push(m),l=e.#l(t,m,l,s);continue}if(d==="|"){c.push(p),p="",f.push(c),c=new e(null,i);continue}if(d===")")return p===""&&i.#e.length===0&&(i.#c=!0),c.push(p),p="",i.push(...f,c),l;p+=d}return i.type=null,i.#r=void 0,i.#e=[t.substring(r-1)],l}static fromGlob(t,i={}){let r=new e(null,void 0,i);return e.#l(t,r,0,i),r}toMMPattern(){if(this!==this.#i)return this.#i.toMMPattern();let t=this.toString(),[i,r,s,n]=this.toRegExpSource();if(!(s||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;let o=(this.#s.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${i}$`,o),{_src:i,_glob:t})}get options(){return this.#s}toRegExpSource(t){var h;let i=t??!!this.#s.dot;if(this.#i===this&&this.#p(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#e.map(m=>{let[g,x,b,C]=typeof m=="string"?e.#d(m,this.#r,l):m.toRegExpSource(t);return this.#r=this.#r||b,this.#n=this.#n||C,g}).join(""),f="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&gf.has(this.#e[0]))){let g=mf,x=i&&g.has(c.charAt(0))||c.startsWith("\\.")&&g.has(c.charAt(2))||c.startsWith("\\.\\.")&&g.has(c.charAt(4)),b=!i&&!t&&g.has(c.charAt(0));f=x?df:b?Ui:""}let p="";return this.isEnd()&&this.#i.#o&&((h=this.#t)==null?void 0:h.type)==="!"&&(p="(?:$|\\/)"),[f+c+p,Ge(c),this.#r=!!this.#r,this.#n]}let r=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",n=this.#f(i);if(this.isStart()&&this.isEnd()&&!n&&this.type!=="!"){let l=this.toString();return this.#e=[l],this.type=null,this.#r=void 0,[l,Ge(this.toString()),!1,!1]}let a=!r||t||i||!Ui?"":this.#f(!0);a===n&&(a=""),a&&(n=`(?:${n})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!i?Ui:"")+zo;else{let l=this.type==="!"?"))"+(this.isStart()&&!i&&!t?Ui:"")+Go+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=s+n+l}return[o,Ge(n),this.#r=!!this.#r,this.#n]}#f(t){return this.#e.map(i=>{if(typeof i=="string")throw new Error("string type in extglob ast??");let[r,s,n,a]=i.toRegExpSource(t);return this.#n=this.#n||a,r}).filter(i=>!(this.isStart()&&this.isEnd())||!!i).join("|")}static#d(t,i,r=!1){let s=!1,n="",a=!1;for(let o=0;o<t.length;o++){let h=t.charAt(o);if(s){s=!1,n+=(xf.has(h)?"\\":"")+h;continue}if(h==="\\"){o===t.length-1?n+="\\\\":s=!0;continue}if(h==="["){let[l,c,f,p]=jo(t,o);if(f){n+=l,a=a||c,o+=f-1,i=i||p;continue}}if(h==="*"){r&&t==="*"?n+=zo:n+=Go,i=!0;continue}if(h==="?"){n+=os,i=!0;continue}n+=yf(h)}return[n,Ge(t),!!i,a]}};var us=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var K=(e,t,i={})=>(Qt(t),!i.nocomment&&t.charAt(0)==="#"?!1:new bt(t,i).match(e)),vf=/^\*+([^+@!?\*\[\(]*)$/,_f=e=>t=>!t.startsWith(".")&&t.endsWith(e),bf=e=>t=>t.endsWith(e),Sf=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),wf=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Cf=/^\*+\.\*+$/,Ef=e=>!e.startsWith(".")&&e.includes("."),kf=e=>e!=="."&&e!==".."&&e.includes("."),Af=/^\.\*+$/,Nf=e=>e!=="."&&e!==".."&&e.startsWith("."),If=/^\*+$/,Lf=e=>e.length!==0&&!e.startsWith("."),Pf=e=>e.length!==0&&e!=="."&&e!=="..",Of=/^\?+([^+@!?\*\[\(]*)?$/,Tf=([e,t=""])=>{let i=Yo([e]);return t?(t=t.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(t)):i},Rf=([e,t=""])=>{let i=Ko([e]);return t?(t=t.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(t)):i},Mf=([e,t=""])=>{let i=Ko([e]);return t?r=>i(r)&&r.endsWith(t):i},Ff=([e,t=""])=>{let i=Yo([e]);return t?r=>i(r)&&r.endsWith(t):i},Yo=([e])=>{let t=e.length;return i=>i.length===t&&!i.startsWith(".")},Ko=([e])=>{let t=e.length;return i=>i.length===t&&i!=="."&&i!==".."},Jo=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$o={win32:{sep:"\\"},posix:{sep:"/"}},Bf=Jo==="win32"?$o.win32.sep:$o.posix.sep;K.sep=Bf;var ge=Symbol("globstar **");K.GLOBSTAR=ge;var Vf="[^/]",Df=Vf+"*?",Uf="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",qf="(?:(?!(?:\\/|^)\\.).)*?",jf=(e,t={})=>i=>K(i,e,t);K.filter=jf;var me=(e,t={})=>Object.assign({},e,t),Wf=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return K;let t=K;return Object.assign((r,s,n={})=>t(r,s,me(e,n)),{Minimatch:class extends t.Minimatch{constructor(s,n={}){super(s,me(e,n))}static defaults(s){return t.defaults(me(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,n,a={}){super(s,n,me(e,a))}static fromGlob(s,n={}){return t.AST.fromGlob(s,me(e,n))}},unescape:(r,s={})=>t.unescape(r,me(e,s)),escape:(r,s={})=>t.escape(r,me(e,s)),filter:(r,s={})=>t.filter(r,me(e,s)),defaults:r=>t.defaults(me(e,r)),makeRe:(r,s={})=>t.makeRe(r,me(e,s)),braceExpand:(r,s={})=>t.braceExpand(r,me(e,s)),match:(r,s,n={})=>t.match(r,s,me(e,n)),sep:t.sep,GLOBSTAR:ge})};K.defaults=Wf;var Xo=(e,t={})=>(Qt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Qo.default)(e));K.braceExpand=Xo;var Gf=(e,t={})=>new bt(e,t).makeRe();K.makeRe=Gf;var zf=(e,t,i={})=>{let r=new bt(t,i);return e=e.filter(s=>r.match(s)),r.options.nonull&&!e.length&&e.push(t),e};K.match=zf;var Ho=/[?*]|[+@!]\(.*?\)|\[|\]/,$f=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),bt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,i={}){Qt(t),i=i||{},this.options=i,this.pattern=t,this.platform=i.platform||Jo,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!i.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!i.nonegate,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=i.windowsNoMagicRoot!==void 0?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let i of t)if(typeof i!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,i=this.options;if(!i.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],i.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((n,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let h=n[0]===""&&n[1]===""&&(n[2]==="?"||!Ho.test(n[2]))&&!Ho.test(n[3]),l=/^[a-z]:/i.test(n[0]);if(h)return[...n.slice(0,4),...n.slice(4).map(c=>this.parse(c))];if(l)return[n[0],...n.slice(1).map(c=>this.parse(c))]}return n.map(h=>this.parse(h))});if(this.debug(this.pattern,s),this.set=s.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let a=this.set[n];a[0]===""&&a[1]===""&&this.globParts[n][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let r=0;r<t.length;r++)for(let s=0;s<t[r].length;s++)t[r][s]==="**"&&(t[r][s]="*");let{optimizationLevel:i=1}=this.options;return i>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):i>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(i=>{let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let s=r;for(;i[s+1]==="**";)s++;s!==r&&i.splice(r,s-r)}return i})}levelOneOptimize(t){return t.map(i=>(i=i.reduce((r,s)=>{let n=r[r.length-1];return s==="**"&&n==="**"?r:s===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(r.pop(),r):(r.push(s),r)},[]),i.length===0?[""]:i))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){let n=t[s];s===1&&n===""&&t[0]===""||(n==="."||n==="")&&(i=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(i=!0,t.pop())}let r=0;for(;(r=t.indexOf("..",r+1))!==-1;){let s=t[r-1];s&&s!=="."&&s!==".."&&s!=="**"&&(i=!0,t.splice(r-1,2),r-=2)}}while(i);return t.length===0?[""]:t}firstPhasePreProcess(t){let i=!1;do{i=!1;for(let r of t){let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let a=s;for(;r[a+1]==="**";)a++;a>s&&r.splice(s+1,a-s);let o=r[s+1],h=r[s+2],l=r[s+3];if(o!==".."||!h||h==="."||h===".."||!l||l==="."||l==="..")continue;i=!0,r.splice(s,1);let c=r.slice(0);c[s]="**",t.push(c),s--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let o=r[a];a===1&&o===""&&r[0]===""||(o==="."||o==="")&&(i=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(i=!0,r.pop())}let n=0;for(;(n=r.indexOf("..",n+1))!==-1;){let a=r[n-1];if(a&&a!=="."&&a!==".."&&a!=="**"){i=!0;let h=n===1&&r[n+1]==="**"?["."]:[];r.splice(n-1,2,...h),r.length===0&&r.push(""),n-=2}}}}while(i);return t}secondPhasePreProcess(t){for(let i=0;i<t.length-1;i++)for(let r=i+1;r<t.length;r++){let s=this.partsMatch(t[i],t[r],!this.preserveMultipleSlashes);s&&(t[i]=s,t[r]=[])}return t.filter(i=>i.length)}partsMatch(t,i,r=!1){let s=0,n=0,a=[],o="";for(;s<t.length&&n<i.length;)if(t[s]===i[n])a.push(o==="b"?i[n]:t[s]),s++,n++;else if(r&&t[s]==="**"&&i[n]===t[s+1])a.push(t[s]),s++;else if(r&&i[n]==="**"&&t[s]===i[n+1])a.push(i[n]),n++;else if(t[s]==="*"&&i[n]&&(this.options.dot||!i[n].startsWith("."))&&i[n]!=="**"){if(o==="b")return!1;o="a",a.push(t[s]),s++,n++}else if(i[n]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(o==="a")return!1;o="b",a.push(i[n]),s++,n++}else return!1;return t.length===i.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,i=!1,r=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)i=!i,r++;r&&(this.pattern=t.slice(r)),this.negate=i}matchOne(t,i,r=!1){let s=this.options;if(this.isWindows){let g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),b=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),C=!b&&i[0]===""&&i[1]===""&&i[2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3]),A=x?3:g?0:void 0,k=C?3:b?0:void 0;if(typeof A=="number"&&typeof k=="number"){let[R,N]=[t[A],i[k]];R.toLowerCase()===N.toLowerCase()&&(i[k]=R,k>A?i=i.slice(k):A>k&&(t=t.slice(A)))}}let{optimizationLevel:n=1}=this.options;n>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:i}),this.debug("matchOne",t.length,i.length);for(var a=0,o=0,h=t.length,l=i.length;a<h&&o<l;a++,o++){this.debug("matchOne loop");var c=i[o],f=t[a];if(this.debug(i,c,f),c===!1)return!1;if(c===ge){this.debug("GLOBSTAR",[i,c,f]);var p=a,d=o+1;if(d===l){for(this.debug("** at the end");a<h;a++)if(t[a]==="."||t[a]===".."||!s.dot&&t[a].charAt(0)===".")return!1;return!0}for(;p<h;){var m=t[p];if(this.debug(`
34
+ `+i)}function st(e,t,i,r,s){if(e.listenerCount("wsClientError")){let n=new Error(s);Error.captureStackTrace(n,st),e.emit("wsClientError",n,i,t)}else oi(i,r,s)}});var lh=w(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.default=md;var ui="diff-sequences",ee=0,hi=(e,t,i,r,s)=>{let n=0;for(;e<t&&i<r&&s(e,i);)e+=1,i+=1,n+=1;return n},li=(e,t,i,r,s)=>{let n=0;for(;e<=t&&i<=r&&s(t,r);)t-=1,r-=1,n+=1;return n},Ms=(e,t,i,r,s,n,a)=>{let o=0,h=-e,l=n[o],c=l;n[o]+=hi(l+1,t,r+l-h+1,i,s);let f=e<a?e:a;for(o+=1,h+=2;o<=f;o+=1,h+=2){if(o!==e&&c<n[o])l=n[o];else if(l=c+1,t<=l)return o-1;c=n[o],n[o]=l+hi(l+1,t,r+l-h+1,i,s)}return a},oh=(e,t,i,r,s,n,a)=>{let o=0,h=e,l=n[o],c=l;n[o]-=li(t,l-1,i,r+l-h-1,s);let f=e<a?e:a;for(o+=1,h-=2;o<=f;o+=1,h-=2){if(o!==e&&n[o]<c)l=n[o];else if(l=c-1,l<t)return o-1;c=n[o],n[o]=l-li(t,l-1,i,r+l-h-1,s)}return a},fd=(e,t,i,r,s,n,a,o,h,l,c)=>{let f=r-t,p=i-t,m=s-r-p,g=-m-(e-1),x=-m+(e-1),b=ee,C=e<o?e:o;for(let N=0,k=-e;N<=C;N+=1,k+=2){let O=N===0||N!==e&&b<a[N],A=O?a[N]:b,G=O?A:A+1,q=f+G-k,F=hi(G+1,i,q+1,s,n),z=G+F;if(b=a[N],a[N]=z,g<=k&&k<=x){let Qe=(e-1-(k+m))/2;if(Qe<=l&&h[Qe]-1<=z){let we=f+A-(O?k+1:k-1),oe=li(t,A,r,we,n),Be=A-oe,ci=we-oe,nt=Be+1,ar=ci+1;c.nChangePreceding=e-1,e-1===nt+ar-t-r?(c.aEndPreceding=t,c.bEndPreceding=r):(c.aEndPreceding=nt,c.bEndPreceding=ar),c.nCommonPreceding=oe,oe!==0&&(c.aCommonPreceding=nt,c.bCommonPreceding=ar),c.nCommonFollowing=F,F!==0&&(c.aCommonFollowing=G+1,c.bCommonFollowing=q+1);let qs=z+1,js=q+F+1;return c.nChangeFollowing=e-1,e-1===i+s-qs-js?(c.aStartFollowing=i,c.bStartFollowing=s):(c.aStartFollowing=qs,c.bStartFollowing=js),!0}}}return!1},pd=(e,t,i,r,s,n,a,o,h,l,c)=>{let f=s-i,p=i-t,m=s-r-p,g=m-e,x=m+e,b=ee,C=e<l?e:l;for(let N=0,k=e;N<=C;N+=1,k-=2){let O=N===0||N!==e&&h[N]<b,A=O?h[N]:b,G=O?A:A-1,q=f+G-k,F=li(t,G-1,r,q-1,n),z=G-F;if(b=h[N],h[N]=z,g<=k&&k<=x){let Qe=(e+(k-m))/2;if(Qe<=o&&z-1<=a[Qe]){let we=q-F;if(c.nChangePreceding=e,e===z+we-t-r?(c.aEndPreceding=t,c.bEndPreceding=r):(c.aEndPreceding=z,c.bEndPreceding=we),c.nCommonPreceding=F,F!==0&&(c.aCommonPreceding=z,c.bCommonPreceding=we),c.nChangeFollowing=e-1,e===1)c.nCommonFollowing=0,c.aStartFollowing=i,c.bStartFollowing=s;else{let oe=f+A-(O?k-1:k+1),Be=hi(A,i,oe,s,n);c.nCommonFollowing=Be,Be!==0&&(c.aCommonFollowing=A,c.bCommonFollowing=oe);let ci=A+Be,nt=oe+Be;e-1===i+s-ci-nt?(c.aStartFollowing=i,c.bStartFollowing=s):(c.aStartFollowing=ci,c.bStartFollowing=nt)}return!0}}}return!1},dd=(e,t,i,r,s,n,a,o,h)=>{let l=r-t,c=s-i,f=i-t,p=s-r,d=p-f,m=f,g=f;if(a[0]=t-1,o[0]=i,d%2===0){let x=(e||d)/2,b=(f+p)/2;for(let C=1;C<=b;C+=1)if(m=Ms(C,i,s,l,n,a,m),C<x)g=oh(C,t,r,c,n,o,g);else if(pd(C,t,i,r,s,n,a,m,o,g,h))return}else{let x=((e||d)+1)/2,b=(f+p+1)/2,C=1;for(m=Ms(C,i,s,l,n,a,m),C+=1;C<=b;C+=1)if(g=oh(C-1,t,r,c,n,o,g),C<x)m=Ms(C,i,s,l,n,a,m);else if(fd(C,t,i,r,s,n,a,m,o,g,h))return}throw new Error(`${ui}: no overlap aStart=${t} aEnd=${i} bStart=${r} bEnd=${s}`)},Fs=(e,t,i,r,s,n,a,o,h,l)=>{if(s-r<i-t){if(n=!n,n&&a.length===1){let{foundSubsequence:z,isCommon:Qe}=a[0];a[1]={foundSubsequence:(we,oe,Be)=>{z(we,Be,oe)},isCommon:(we,oe)=>Qe(oe,we)}}let q=t,F=i;t=r,i=s,r=q,s=F}let{foundSubsequence:c,isCommon:f}=a[n?1:0];dd(e,t,i,r,s,f,o,h,l);let{nChangePreceding:p,aEndPreceding:d,bEndPreceding:m,nCommonPreceding:g,aCommonPreceding:x,bCommonPreceding:b,nCommonFollowing:C,aCommonFollowing:N,bCommonFollowing:k,nChangeFollowing:O,aStartFollowing:A,bStartFollowing:G}=l;t<d&&r<m&&Fs(p,t,d,r,m,n,a,o,h,l),g!==0&&c(g,x,b),C!==0&&c(C,N,k),A<i&&G<s&&Fs(O,A,i,G,s,n,a,o,h,l)},uh=(e,t)=>{if(typeof t!="number")throw new TypeError(`${ui}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${ui}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${ui}: ${e} value ${t} is a negative integer`)},hh=(e,t)=>{let i=typeof t;if(i!=="function")throw new TypeError(`${ui}: ${e} typeof ${i} is not a function`)};function md(e,t,i,r){uh("aLength",e),uh("bLength",t),hh("isCommon",i),hh("foundSubsequence",r);let s=hi(0,e,0,t,i);if(s!==0&&r(s,0,0),e!==s||t!==s){let n=s,a=s,o=li(n,e-1,a,t-1,i),h=e-o,l=t-o,c=s+o;e!==c&&t!==c&&Fs(0,n,h,a,l,!1,[{foundSubsequence:r,isCommon:i}],[ee],[ee],{aCommonFollowing:ee,aCommonPreceding:ee,aEndPreceding:ee,aStartFollowing:ee,bCommonFollowing:ee,bCommonPreceding:ee,bEndPreceding:ee,bStartFollowing:ee,nChangeFollowing:ee,nChangePreceding:ee,nCommonFollowing:ee,nCommonPreceding:ee}),o!==0&&r(o,h,l)}}});var kd={};pi(kd,{WebSocket:()=>ah,acorn:()=>Ar,acornLoose:()=>Nr,acornWalk:()=>Pr,convertSourceMap:()=>Ed,decode:()=>Ys,diff:()=>Sh.default,findUpSync:()=>gh,mergeScriptCovs:()=>_h.mergeScriptCovs,minimatch:()=>J,parseCss:()=>bh.default,supportsColor:()=>vh});module.exports=Nh(kd);var Ed=H(zs());var $s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bh=new Uint8Array(64),Qs=new Uint8Array(128);for(let e=0;e<$s.length;e++){let t=$s.charCodeAt(e);Bh[e]=t,Qs[t]=e}function Ys(e){let t=new Int32Array(5),i=[],r=0;do{let s=Dh(e,r),n=[],a=!0,o=0;t[0]=0;for(let h=r;h<s;h++){let l;h=Nt(e,h,t,0);let c=t[0];c<o&&(a=!1),o=c,Hs(e,h,s)?(h=Nt(e,h,t,1),h=Nt(e,h,t,2),h=Nt(e,h,t,3),Hs(e,h,s)?(h=Nt(e,h,t,4),l=[c,t[1],t[2],t[3],t[4]]):l=[c,t[1],t[2],t[3]]):l=[c],n.push(l)}a||Vh(n),i.push(n),r=s+1}while(r<=e.length);return i}function Dh(e,t){let i=e.indexOf(";",t);return i===-1?e.length:i}function Nt(e,t,i,r){let s=0,n=0,a=0;do{let h=e.charCodeAt(t++);a=Qs[h],s|=(a&31)<<n,n+=5}while(a&32);let o=s&1;return s>>>=1,o&&(s=-2147483648|-s),i[r]+=s,t}function Hs(e,t,i){return t>=i?!1:e.charCodeAt(t)!==44}function Vh(e){e.sort(Uh)}function Uh(e,t){return e[0]-t[0]}var _h=H(gn());var Ar={};pi(Ar,{Node:()=>Le,Parser:()=>D,Position:()=>ht,SourceLocation:()=>qe,TokContext:()=>le,Token:()=>pt,TokenType:()=>L,defaultOptions:()=>lt,getLineInfo:()=>Ke,isIdentifierChar:()=>Ye,isIdentifierStart:()=>Ce,isNewLine:()=>ve,keywordTypes:()=>Ei,lineBreak:()=>te,lineBreakG:()=>Rt,nonASCIIwhitespace:()=>_r,parse:()=>Ul,parseExpressionAt:()=>ql,tokContexts:()=>M,tokTypes:()=>u,tokenizer:()=>jl,version:()=>ia});var al=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Sn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ol="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",wn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",dr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},mr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ul={5:mr,"5module":mr+" export import",6:mr+" const class extends export import super"},hl=/^in(stanceof)?$/,ll=new RegExp("["+wn+"]"),cl=new RegExp("["+wn+ol+"]");function xr(e,t){for(var i=65536,r=0;r<t.length;r+=2){if(i+=t[r],i>e)return!1;if(i+=t[r+1],i>=e)return!0}return!1}function Ce(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ll.test(String.fromCharCode(e)):t===!1?!1:xr(e,Sn)}function Ye(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&cl.test(String.fromCharCode(e)):t===!1?!1:xr(e,Sn)||xr(e,al)}var L=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function ue(e,t){return new L(e,{beforeExpr:!0,binop:t})}var he={beforeExpr:!0},se={startsExpr:!0},Ei={};function P(e,t){return t===void 0&&(t={}),t.keyword=e,Ei[e]=new L(e,t)}var u={num:new L("num",se),regexp:new L("regexp",se),string:new L("string",se),name:new L("name",se),privateId:new L("privateId",se),eof:new L("eof"),bracketL:new L("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new L("]"),braceL:new L("{",{beforeExpr:!0,startsExpr:!0}),braceR:new L("}"),parenL:new L("(",{beforeExpr:!0,startsExpr:!0}),parenR:new L(")"),comma:new L(",",he),semi:new L(";",he),colon:new L(":",he),dot:new L("."),question:new L("?",he),questionDot:new L("?."),arrow:new L("=>",he),template:new L("template"),invalidTemplate:new L("invalidTemplate"),ellipsis:new L("...",he),backQuote:new L("`",se),dollarBraceL:new L("${",{beforeExpr:!0,startsExpr:!0}),eq:new L("=",{beforeExpr:!0,isAssign:!0}),assign:new L("_=",{beforeExpr:!0,isAssign:!0}),incDec:new L("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new L("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ue("||",1),logicalAND:ue("&&",2),bitwiseOR:ue("|",3),bitwiseXOR:ue("^",4),bitwiseAND:ue("&",5),equality:ue("==/!=/===/!==",6),relational:ue("</>/<=/>=",7),bitShift:ue("<</>>/>>>",8),plusMin:new L("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ue("%",10),star:ue("*",10),slash:ue("/",10),starstar:new L("**",{beforeExpr:!0}),coalesce:ue("??",1),_break:P("break"),_case:P("case",he),_catch:P("catch"),_continue:P("continue"),_debugger:P("debugger"),_default:P("default",he),_do:P("do",{isLoop:!0,beforeExpr:!0}),_else:P("else",he),_finally:P("finally"),_for:P("for",{isLoop:!0}),_function:P("function",se),_if:P("if"),_return:P("return",he),_switch:P("switch"),_throw:P("throw",he),_try:P("try"),_var:P("var"),_const:P("const"),_while:P("while",{isLoop:!0}),_with:P("with"),_new:P("new",{beforeExpr:!0,startsExpr:!0}),_this:P("this",se),_super:P("super",se),_class:P("class",se),_extends:P("extends",he),_export:P("export"),_import:P("import",se),_null:P("null",se),_true:P("true",se),_false:P("false",se),_in:P("in",{beforeExpr:!0,binop:7}),_instanceof:P("instanceof",{beforeExpr:!0,binop:7}),_typeof:P("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:P("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:P("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},te=/\r\n?|\n|\u2028|\u2029/,Rt=new RegExp(te.source,"g");function ve(e){return e===10||e===13||e===8232||e===8233}function Cn(e,t,i){i===void 0&&(i=e.length);for(var r=t;r<i;r++){var s=e.charCodeAt(r);if(ve(s))return r<i-1&&s===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var _r=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,En=Object.prototype,fl=En.hasOwnProperty,pl=En.toString,Mt=Object.hasOwn||function(e,t){return fl.call(e,t)},xn=Array.isArray||function(e){return pl.call(e)==="[object Array]"},yn=Object.create(null);function Ve(e){return yn[e]||(yn[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Ue(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var dl=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ht=function(t,i){this.line=t,this.column=i};ht.prototype.offset=function(t){return new ht(this.line,this.column+t)};var qe=function(t,i,r){this.start=i,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ke(e,t){for(var i=1,r=0;;){var s=Cn(e,r,t);if(s<0)return new ht(i,t-r);++i,r=s}}var lt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},vn=!1;function ml(e){var t={};for(var i in lt)t[i]=e&&Mt(e,i)?e[i]:lt[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!vn&&typeof console=="object"&&console.warn&&(vn=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
35
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),xn(t.onToken)){var r=t.onToken;t.onToken=function(s){return r.push(s)}}return xn(t.onComment)&&(t.onComment=gl(t,t.onComment)),t}function gl(e,t){return function(i,r,s,n,a,o){var h={type:i?"Block":"Line",value:r,start:s,end:n};e.locations&&(h.loc=new qe(this,a,o)),e.ranges&&(h.range=[s,n]),t.push(h)}}var Tt=1,ct=2,br=4,kn=8,An=16,Nn=32,Sr=64,In=128,Ft=256,wr=Tt|ct|Ft;function Cr(e,t){return ct|(e?br:0)|(t?kn:0)}var bi=0,Er=1,Pe=2,Pn=3,Ln=4,On=5,D=function(t,i,r){this.options=t=ml(t),this.sourceFile=t.sourceFile,this.keywords=Ve(ul[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=dr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Ve(s);var n=(s?s+" ":"")+dr.strict;this.reservedWordsStrict=Ve(n),this.reservedWordsStrictBind=Ve(n+" "+dr.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
36
+ `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(te).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Tt),this.regexpState=null,this.privateNameStack=[]},Ee={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};D.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Ee.inFunction.get=function(){return(this.currentVarScope().flags&ct)>0};Ee.inGenerator.get=function(){return(this.currentVarScope().flags&kn)>0&&!this.currentVarScope().inClassFieldInit};Ee.inAsync.get=function(){return(this.currentVarScope().flags&br)>0&&!this.currentVarScope().inClassFieldInit};Ee.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ft)return!1;if(t.flags&ct)return(t.flags&br)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Ee.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Sr)>0||i||this.options.allowSuperOutsideMethod};Ee.allowDirectSuper.get=function(){return(this.currentThisScope().flags&In)>0};Ee.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Ee.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ct|Ft))>0||i};Ee.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ft)>0};D.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,s=0;s<t.length;s++)r=t[s](r);return r};D.parse=function(t,i){return new this(i,t).parse()};D.parseExpressionAt=function(t,i,r){var s=new this(r,t,i);return s.nextToken(),s.parseExpression()};D.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(D.prototype,Ee);var ie=D.prototype,xl=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/s;ie.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ce.lastIndex=e,e+=ce.exec(this.input)[0].length;var t=xl.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ce.lastIndex=e+t[0].length;var i=ce.exec(this.input),r=i.index+i[0].length,s=this.input.charAt(r);return s===";"||s==="}"||te.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,ce.lastIndex=e,e+=ce.exec(this.input)[0].length,this.input[e]===";"&&e++}};ie.eat=function(e){return this.type===e?(this.next(),!0):!1};ie.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc};ie.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ie.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ie.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||te.test(this.input.slice(this.lastTokEnd,this.start))};ie.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ie.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()};ie.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ie.expect=function(e){this.eat(e)||this.unexpected()};ie.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ki=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ie.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};ie.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};ie.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ie.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var S=D.prototype;S.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==u.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var n=s[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var kr={kind:"loop"},yl={kind:"switch"};S.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ce.lastIndex=this.pos;var t=ce.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(Ce(r,!0)){for(var s=i+1;Ye(r=this.input.charCodeAt(s),!0);)++s;if(r===92||r>55295&&r<56320)return!0;var n=this.input.slice(i,s);if(!hl.test(n))return!0}return!1};S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ce.lastIndex=this.pos;var e=ce.exec(this.input),t=this.pos+e[0].length,i;return!te.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Ye(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};S.parseStatement=function(e,t,i){var r=this.type,s=this.startNode(),n;switch(this.isLet(e)&&(r=u._var,n="let"),r){case u._break:case u._continue:return this.parseBreakContinueStatement(s,r.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(s,n);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&r===u._import){ce.lastIndex=this.pos;var a=ce.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(h===40||h===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,c=this.parseExpression();return r===u.name&&c.type==="Identifier"&&this.eat(u.colon)?this.parseLabeledStatement(s,l,c,e):this.parseExpressionStatement(s,c)}};S.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};S.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};S.parseDoStatement=function(e){return this.next(),this.labels.push(kr),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(kr),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var n=this.isContextual("let"),a=!1,o=this.containsEsc,h=new ki,l=this.start,c=t>-1?this.parseExprSubscripts(h,"await"):this.parseExpression(!0,h);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===u._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(c.start===l&&!o&&c.type==="Identifier"&&c.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,h),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(h,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))};S.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Ot|(i?0:yr),!1,t)};S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(yl),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};S.parseThrowStatement=function(e){return this.next(),te.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var vl=[];S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Nn:0),this.checkLValPattern(e,t?Ln:Pe),this.expect(u.parenR),e};S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};S.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(kr),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};S.parseLabeledStatement=function(e,t,i,r){for(var s=0,n=this.labels;s<n.length;s+=1){var a=n[s];a.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===u._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var l=this.labels[h];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};S.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};S.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};S.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};S.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(u.eq)?s.init=this.parseMaybeAssign(t):!r&&i==="const"&&!(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&s.id.type!=="Identifier"&&!(t&&(this.type===u._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(u.comma))break}return e};S.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Er:Pe,!1)};var Ot=1,yr=2,Tn=4;S.parseFunction=function(e,t,i,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&yr&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ot&&(e.id=t&Tn&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&yr)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Er:Pe:Pn));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Cr(e.async,e.generator)),t&Ot||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,s),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Ot?"FunctionDeclaration":"FunctionExpression")};S.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};S.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),s=this.startNode(),n=!1;for(s.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(s.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&a.key.type==="PrivateIdentifier"&&_l(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};S.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",s=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(t>=9||!n)&&this.eat(u.star)&&(s=!0),!r&&!n&&!s){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:r=h)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||a!=="method"||s||n){var l=!i.static&&Si(i,"constructor"),c=l&&e;l&&a!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,s,n,c)}else this.parseClassField(i);return i};S.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword};S.parseClassElementName=function(e){this.type===u.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};S.parseClassMethod=function(e,t,i,r){var s=e.key;e.kind==="constructor"?(t&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):e.static&&Si(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,r);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};S.parseClassField=function(e){if(Si(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Si(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ft|Sr);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};S.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Pe,!1)):(t===!0&&this.unexpected(),e.id=null)};S.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};S.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=r===0?null:this.privateNameStack[r-1],n=0;n<i.length;++n){var a=i[n];Mt(t,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function _l(e,t){var i=t.key.name,r=e[i],s="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(s=(t.static?"s":"i")+t.kind),r==="iget"&&s==="iset"||r==="iset"&&s==="iget"||r==="sget"&&s==="sset"||r==="sset"&&s==="sget"?(e[i]="true",!1):r?!0:(e[i]=s,!1)}function Si(e,t){var i=e.computed,r=e.key;return!i&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}S.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};S.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i<r.length;i+=1){var s=r[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};S.parseExportDeclaration=function(e){return this.parseStatement(null)};S.parseExportDefaultDeclaration=function(){var e;if(this.type===u._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Ot|Tn,!1,e)}else if(this.type===u._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};S.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Mt(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};S.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];this.checkPatternExport(e,n)}else if(i==="ArrayPattern")for(var a=0,o=t.elements;a<o.length;a+=1){var h=o[a];h&&this.checkPatternExport(e,h)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)};S.checkVariableExport=function(e,t){if(e)for(var i=0,r=t;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s.id)}};S.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};S.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};S.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;t.push(this.parseExportSpecifier(e))}return t};S.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=vl,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};S.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Pe),this.finishNode(e,"ImportSpecifier")};S.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Pe),this.finishNode(e,"ImportDefaultSpecifier")};S.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Pe),this.finishNode(e,"ImportNamespaceSpecifier")};S.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===u.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma)))return e;if(this.type===u.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;e.push(this.parseImportSpecifier())}return e};S.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return dl.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};S.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};S.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var pe=D.prototype;pe.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];this.toAssignable(n,t),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e};pe.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var s=e[r];s&&this.toAssignable(s,t)}if(i){var n=e[i-1];this.options.ecmaVersion===6&&t&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return e};pe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};pe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==u.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};pe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()};pe.parseBindingList=function(e,t,i,r){for(var s=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(u.comma),t&&this.type===u.comma)s.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else s.push(this.parseAssignableListItem(r))}return s};pe.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};pe.parseBindingListItem=function(e){return e};pe.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};pe.checkLValSimple=function(e,t,i){t===void 0&&(t=bi);var r=t!==bi;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===Pe&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Mt(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==On&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};pe.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=bi),e.type){case"ObjectPattern":for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var h=o[a];h&&this.checkLValInnerPattern(h,t,i)}break;default:this.checkLValSimple(e,t,i)}};pe.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=bi),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var le=function(t,i,r,s,n){this.token=t,this.isExpr=!!i,this.preserveSpace=!!r,this.override=s,this.generator=!!n},M={b_stat:new le("{",!1),b_expr:new le("{",!0),b_tmpl:new le("${",!1),p_stat:new le("(",!1),p_expr:new le("(",!0),q_tmpl:new le("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new le("function",!1),f_expr:new le("function",!0),f_expr_gen:new le("function",!0,!1,null,!0),f_gen:new le("function",!1,!1,null,!0)},ft=D.prototype;ft.initialContext=function(){return[M.b_stat]};ft.curContext=function(){return this.context[this.context.length-1]};ft.braceIsBlock=function(e){var t=this.curContext();return t===M.f_expr||t===M.f_stat?!0:e===u.colon&&(t===M.b_stat||t===M.b_expr)?!t.isExpr:e===u._return||e===u.name&&this.exprAllowed?te.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow?!0:e===u.braceL?t===M.b_stat:e===u._var||e===u._const||e===u.name?!1:!this.exprAllowed};ft.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ft.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};ft.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};u.parenR.updateContext=u.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===M.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?M.b_stat:M.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push(M.b_tmpl),this.exprAllowed=!0};u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?M.p_stat:M.p_expr),this.exprAllowed=!0};u.incDec.updateContext=function(){};u._function.updateContext=u._class.updateContext=function(e){e.beforeExpr&&e!==u._else&&!(e===u.semi&&this.curContext()!==M.p_stat)&&!(e===u._return&&te.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===u.colon||e===u.braceL)&&this.curContext()===M.b_stat)?this.context.push(M.f_expr):this.context.push(M.f_stat),this.exprAllowed=!1};u.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};u.backQuote.updateContext=function(){this.curContext()===M.q_tmpl?this.context.pop():this.context.push(M.q_tmpl),this.exprAllowed=!1};u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===M.f_expr?this.context[t]=M.f_expr_gen:this.context[t]=M.f_gen}this.exprAllowed=!0};u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var E=D.prototype;E.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,s;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&n==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var a=t[s];if(a){var o;n==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[n],o&&this.raiseRecoverable(r.start,"Redefinition of property")}else a=t[s]={init:!1,get:!1,set:!1};a[n]=!0}};E.parseExpression=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===u.comma){var n=this.startNodeAt(i,r);for(n.expressions=[s];this.eat(u.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return s};E.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,s=-1,n=-1,a=-1;t?(s=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ki,r=!0);var o=this.start,h=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(i&&(l=i.call(this,l,o,h)),this.type.isAssign){var c=this.startNodeAt(o,h);return c.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),n>-1&&(t.trailingComma=n),l};E.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(u.question)){var n=this.startNodeAt(i,r);return n.test=s,n.consequent=this.parseMaybeAssign(),this.expect(u.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return s};E.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,r,-1,e)};E.parseExprOp=function(e,t,i,r,s){var n=this.type.binop;if(n!=null&&(!s||this.type!==u._in)&&n>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(n=u.logicalAND.binop);var h=this.value;this.next();var l=this.start,c=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),l,c,n,s),p=this.buildBinary(t,i,e,f,h,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,i,r,s)}return e};E.buildBinary=function(e,t,i,r,s,n){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=s,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")};E.parseMaybeUnary=function(e,t,i,r){var s=this.start,n=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,r),this.checkExpressionErrors(e,!0),h?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&Rn(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&vr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,a=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===u.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();else{if(a=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,n);l.operator=this.value,l.prefix=!1,l.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(l,"UpdateExpression")}}if(!i&&this.eat(u.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,n,a,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return a};function Rn(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Rn(e.expression)}function vr(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&vr(e.expression)||e.type==="ParenthesizedExpression"&&vr(e.expression)}E.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprAtom(e,t);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var n=this.parseSubscripts(s,i,r,!1,t);return e&&n.type==="MemberExpression"&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n};E.parseSubscripts=function(e,t,i,r,s){for(var n=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,r,n,a,s);if(o.optional&&(a=!0),o===e||o.type==="ArrowFunctionExpression"){if(a){var h=this.startNodeAt(t,i);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}e=o}};E.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)};E.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)};E.parseSubscript=function(e,t,i,r,s,n,a){var o=this.options.ecmaVersion>=11,h=o&&this.eat(u.questionDot);r&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||h&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var c=this.startNodeAt(t,i);c.object=e,l?(c.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&e.type!=="Super"?c.property=this.parsePrivateIdent():c.property=this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!l,o&&(c.optional=h),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var f=new ki,p=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,f);if(s&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,i,g,a);this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var x=this.startNodeAt(t,i);x.callee=e,x.arguments=g,o&&(x.optional=h),e=this.finishNode(x,"CallExpression")}else if(this.type===u.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(t,i);b.tag=e,b.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(b,"TaggedTemplateExpression")}return e};E.parseExprAtom=function(e,t,i){this.type===u.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var n=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,t)}return h;case u.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return r=this.startNode(),r.value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var c=this.start,f=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(f)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),f;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(M.b_expr),this.parseObj(!1,e);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};E.parseExprAtomDefault=function(){this.unexpected()};E.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===u.parenL&&!e)return this.parseDynamicImport(t);if(this.type===u.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};E.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};E.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};E.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};E.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e};E.shouldParseArrow=function(e){return!this.canInsertSemicolon()};E.parseParenAndDistinguishExpression=function(e,t){var i=this.start,r=this.startLoc,s,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,h=[],l=!0,c=!1,f=new ki,p=this.yieldPos,d=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(l?l=!1:this.expect(u.comma),n&&this.afterTrailingComma(u.parenR,!0)){c=!0;break}else if(this.type===u.ellipsis){m=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,f,this.parseParenItem));var g=this.lastTokEnd,x=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(h)&&this.eat(u.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(i,r,h,t);(!h.length||c)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?(s=this.startNodeAt(a,o),s.expressions=h,this.finishNodeAt(s,"SequenceExpression",g,x)):s=h[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(i,r);return b.expression=s,this.finishNode(b,"ParenthesizedExpression")}else return s};E.parseParenItem=function(e){return e};E.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var bl=[];E.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===u.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=bl,this.finishNode(e,"NewExpression")};E.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
37
+ `),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
38
+ `),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")};E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};E.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!te.test(this.input.slice(this.lastTokEnd,this.start))};E.parseObj=function(e,t){var i=this.startNode(),r=!0,s={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,s,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};E.parseProperty=function(e,t){var i=this.startNode(),r,s,n,a;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,a=this.startLoc),e||(r=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,r,s,n,a,t,o),this.finishNode(i,"Property")};E.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};E.parsePropertyValue=function(e,t,i,r,s,n,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq?((i||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,n,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};E.parseMethod=function(e,t,i){var r=this.startNode(),s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Cr(t,r.generator)|Sr|(i?In:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")};E.parseArrowExpression=function(e,t,i,r){var s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Cr(i,!1)|An),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};E.parseFunctionBody=function(e,t,i,r){var s=t&&this.type!==u.braceL,n=this.strict,a=!1;if(s)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,On),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()};E.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var r=i[t];if(r.type!=="Identifier")return!1}return!0};E.checkParams=function(e,t){for(var i=Object.create(null),r=0,s=e.params;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,Er,t?null:i)}};E.parseExprList=function(e,t,i,r){for(var s=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(u.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===u.comma?a=null:this.type===u.ellipsis?(a=this.parseSpread(r),r&&this.type===u.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),s.push(a)}return s};E.checkUnreserved=function(e){var t=e.start,i=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};E.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};E.parseIdentNode=function(){var e=this.startNode();return this.type===u.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=u.name):this.unexpected(),e};E.parsePrivateIdent=function(){var e=this.startNode();return this.type===u.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};E.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};E.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var wi=D.prototype;wi.raise=function(e,t){var i=Ke(this.input,e);t+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=i,r.raisedAt=this.pos,r};wi.raiseRecoverable=wi.raise;wi.curPosition=function(){if(this.options.locations)return new ht(this.curLine,this.pos-this.lineStart)};var je=D.prototype,Sl=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};je.enterScope=function(e){this.scopeStack.push(new Sl(e))};je.exitScope=function(){this.scopeStack.pop()};je.treatFunctionsAsVarInScope=function(e){return e.flags&ct||!this.inModule&&e.flags&Tt};je.declareName=function(e,t,i){var r=!1;if(t===Pe){var s=this.currentScope();r=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&Tt&&delete this.undefinedExports[e]}else if(t===Ln){var n=this.currentScope();n.lexical.push(e)}else if(t===Pn){var a=this.currentScope();this.treatFunctionsAsVar?r=a.lexical.indexOf(e)>-1:r=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var h=this.scopeStack[o];if(h.lexical.indexOf(e)>-1&&!(h.flags&Nn&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){r=!0;break}if(h.var.push(e),this.inModule&&h.flags&Tt&&delete this.undefinedExports[e],h.flags&wr)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};je.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};je.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};je.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&wr)return t}};je.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&wr&&!(t.flags&An))return t}};var Le=function(t,i,r){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new qe(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},Bt=D.prototype;Bt.startNode=function(){return new Le(this,this.start,this.startLoc)};Bt.startNodeAt=function(e,t){return new Le(this,e,t)};function Mn(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}Bt.finishNode=function(e,t){return Mn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Bt.finishNodeAt=function(e,t,i,r){return Mn.call(this,e,t,i,r)};Bt.copyNode=function(e){var t=new Le(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Fn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Bn=Fn+" Extended_Pictographic",Dn=Bn,Vn=Dn+" EBase EComp EMod EPres ExtPict",Un=Vn,wl=Un,Cl={9:Fn,10:Bn,11:Dn,12:Vn,13:Un,14:wl},El="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",kl={9:"",10:"",11:"",12:"",13:"",14:El},_n="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",qn="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",jn=qn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Wn=jn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Gn=Wn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",zn=Gn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Al=zn+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Nl={9:qn,10:jn,11:Wn,12:Gn,13:zn,14:Al},$n={};function Il(e){var t=$n[e]={binary:Ve(Cl[e]+" "+_n),binaryOfStrings:Ve(kl[e]),nonBinary:{General_Category:Ve(_n),Script:Ve(Nl[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(_i=0,gr=[9,10,11,12,13,14];_i<gr.length;_i+=1)bn=gr[_i],Il(bn);var bn,_i,gr,v=D.prototype,Ci=function(t,i){this.parent=t,this.base=i||this};Ci.prototype.separatedFrom=function(t){for(var i=this;i;i=i.parent)for(var r=t;r;r=r.parent)if(i.base===r.base&&i!==r)return!0;return!1};Ci.prototype.sibling=function(){return new Ci(this.parent,this.base)};var ke=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=$n[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};ke.prototype.reset=function(t,i,r){var s=r.indexOf("v")!==-1,n=r.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=r,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};ke.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};ke.prototype.at=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return-1;var n=r.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=s)return n;var a=r.charCodeAt(t+1);return a>=56320&&a<=57343?(n<<10)+a-56613888:n};ke.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return s;var n=r.charCodeAt(t),a;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=s||(a=r.charCodeAt(t+1))<56320||a>57343?t+1:t+2};ke.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};ke.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};ke.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};ke.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};ke.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var r=this.pos,s=0,n=t;s<n.length;s+=1){var a=n[s],o=this.at(r,i);if(o===-1||o!==a)return!1;r=this.nextIndex(r,i)}return this.pos=r,!0};v.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=!1,s=!1,n=0;n<i.length;n++){var a=i.charAt(n);t.indexOf(a)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),a==="u"&&(r=!0),a==="v"&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(e.start,"Invalid regular expression flag")};function Pl(e){for(var t in e)return!0;return!1}v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Pl(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};v.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Ci(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};v.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};v.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};v.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};v.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};v.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};v.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};v.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Hn(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Hn(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Hn(i);)e.advance();return e.pos!==t};v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};v.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var r=0,s=i;r<s.length;r+=1){var n=s[r];n.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ue(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ue(e.lastIntValue);return!0}return!1};v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Ll(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Ll(e){return Ce(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Ol(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Ol(e){return Ye(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};v.regexp_eatZero=function(e){return e.current()===48&&!Ai(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};v.regexp_eatControlLetter=function(e){var t=e.current();return Qn(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Qn(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}e.pos=n,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Tl(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Tl(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Yn=0,Ie=1,fe=2;v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Rl(t))return e.lastIntValue=-1,e.advance(),Ie;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&r===fe&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return Yn};function Rl(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),Ie}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return Yn};v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Mt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};v.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ie;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return fe;e.raise("Invalid property name")};v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Kn(t=e.current());)e.lastStringValue+=Ue(t),e.advance();return e.lastStringValue!==""};function Kn(e){return Qn(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ml(t=e.current());)e.lastStringValue+=Ue(t),e.advance();return e.lastStringValue!==""};function Ml(e){return Kn(e)||Ai(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};v.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===fe&&e.raise("Negated character class may contain strings"),!0}return!1};v.regexp_classContents=function(e){return e.current()===93?Ie:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ie)};v.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Zn(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};v.regexp_classSetExpression=function(e){var t=Ie,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===fe&&(t=fe);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==fe&&(t=Ie);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===fe&&(t=fe)}};v.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return i!==-1&&r!==-1&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};v.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ie:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};v.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===fe&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null};v.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};v.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===fe&&(t=fe);return t};v.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ie:fe};v.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&Fl(i)||Bl(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function Fl(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Bl(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}v.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Dl(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Dl(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}v.regexp_eatClassControlLetter=function(e){var t=e.current();return Ai(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ai(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Ai(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Jn(i=e.current());)e.lastIntValue=16*e.lastIntValue+Xn(i),e.advance();return e.pos!==t};function Jn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Xn(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};v.regexp_eatOctalDigit=function(e){var t=e.current();return Zn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Zn(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var s=e.current();if(!Jn(s))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Xn(s),e.advance()}return!0};var pt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new qe(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},I=D.prototype;I.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new pt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};I.getToken=function(){return this.next(),new pt(this)};typeof Symbol<"u"&&(I[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===u.eof,value:t}}}});I.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(u.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};I.readToken=function(e){return Ce(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};I.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};I.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,s=t;(r=Cn(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};I.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ve(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())};I.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&_r.test(String.fromCharCode(e)))++this.pos;else break e}}};I.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};I.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))};I.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(u.assign,2):this.finishOp(u.slash,1)};I.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=e===42?u.star:u.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(u.assign,i+1):this.finishOp(r,i)};I.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(u.assign,3)}return this.finishOp(e===124?u.logicalOR:u.logicalAND,2)}return t===61?this.finishOp(u.assign,2):this.finishOp(e===124?u.bitwiseOR:u.bitwiseAND,1)};I.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)};I.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||te.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):t===61?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)};I.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(u.relational,i))};I.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(u.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(e===61?u.eq:u.prefix,1)};I.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(u.assign,3)}return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)};I.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ce(t,!0)||t===92))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ue(t)+"'")};I.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ue(e)+"'")};I.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};I.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(te.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new ke(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(s,a)}catch{}return this.finishToken(u.regexp,{pattern:s,flags:a,value:h})};I.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&t===void 0,s=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,a=0,o=0,h=0,l=t??1/0;h<l;++h,++this.pos){var c=this.input.charCodeAt(this.pos),f=void 0;if(r&&c===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if(c>=97?f=c-97+10:c>=65?f=c-65+10:c>=48&&c<=57?f=c-48:f=1/0,f>=e)break;o=c,a=a*e+f}return r&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:a};function Vl(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function ea(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}I.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ea(this.input.slice(t,this.pos)),++this.pos):Ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)};I.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&r===110){var s=ea(this.input.slice(t,this.pos));return++this.pos,Ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,s)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),r===46&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!i&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=Vl(this.input.slice(t,this.pos),i);return this.finishToken(u.num,n)};I.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};I.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ve(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var ta={};I.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ta)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};I.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ta;this.raise(e,t)};I.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ve(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
39
+ `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};I.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
40
+ `&&++this.pos;case`
41
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};I.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
42
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ue(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return ve(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};I.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};I.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Ye(s,r))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?Ce:Ye)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=Ue(a),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};I.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=Ei[e]),this.finishToken(t,e)};var ia="8.12.0";D.acorn={Parser:D,version:ia,defaultOptions:lt,Position:ht,SourceLocation:qe,getLineInfo:Ke,Node:Le,TokenType:L,tokTypes:u,keywordTypes:Ei,TokContext:le,tokContexts:M,isIdentifierChar:Ye,isIdentifierStart:Ce,Token:pt,isNewLine:ve,lineBreak:te,lineBreakG:Rt,nonASCIIwhitespace:_r};function Ul(e,t){return D.parse(e,t)}function ql(e,t,i){return D.parseExpressionAt(e,t,i)}function jl(e,t){return D.tokenizer(e,t)}var Nr={};pi(Nr,{LooseParser:()=>R,isDummy:()=>Ae,parse:()=>Gl});var Ni="\u2716";function Ae(e){return e.name===Ni}function ra(){}var R=function(t,i){if(i===void 0&&(i={}),this.toks=this.constructor.BaseParser.tokenizer(t,i),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:u.eof,start:0,end:0},this.tok.validateRegExpFlags=ra,this.tok.validateRegExpPattern=ra,this.options.locations){var r=this.toks.curPosition();this.tok.loc=new qe(this.toks,r,r)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};R.prototype.startNode=function(){return new Le(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)};R.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start};R.prototype.startNodeAt=function(t){return this.options.locations?new Le(this.toks,t[0],t[1]):new Le(this.toks,t)};R.prototype.finishNode=function(t,i){return t.type=i,t.end=this.last.end,this.options.locations&&(t.loc.end=this.last.loc.end),this.options.ranges&&(t.range[1]=this.last.end),t};R.prototype.dummyNode=function(t){var i=this.startNode();return i.type=t,i.end=i.start,this.options.locations&&(i.loc.end=i.loc.start),this.options.ranges&&(i.range[1]=i.start),this.last={type:u.name,start:i.start,end:i.start,loc:i.loc},i};R.prototype.dummyIdent=function(){var t=this.dummyNode("Identifier");return t.name=Ni,t};R.prototype.dummyString=function(){var t=this.dummyNode("Literal");return t.value=t.raw=Ni,t};R.prototype.eat=function(t){return this.tok.type===t?(this.next(),!0):!1};R.prototype.isContextual=function(t){return this.tok.type===u.name&&this.tok.value===t};R.prototype.eatContextual=function(t){return this.tok.value===t&&this.eat(u.name)};R.prototype.canInsertSemicolon=function(){return this.tok.type===u.eof||this.tok.type===u.braceR||te.test(this.input.slice(this.last.end,this.tok.start))};R.prototype.semicolon=function(){return this.eat(u.semi)};R.prototype.expect=function(t){if(this.eat(t))return!0;for(var i=1;i<=2;i++)if(this.lookAhead(i).type===t){for(var r=0;r<i;r++)this.next();return!0}};R.prototype.pushCx=function(){this.context.push(this.curIndent)};R.prototype.popCx=function(){this.curIndent=this.context.pop()};R.prototype.lineEnd=function(t){for(;t<this.input.length&&!ve(this.input.charCodeAt(t));)++t;return t};R.prototype.indentationAfter=function(t){for(var i=0;;++t){var r=this.input.charCodeAt(t);if(r===32)++i;else if(r===9)i+=this.options.tabSize;else return i}};R.prototype.closes=function(t,i,r,s){return this.tok.type===t||this.tok.type===u.eof?!0:r!==this.curLineStart&&this.curIndent<i&&this.tokenStartsLine()&&(!s||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<i)};R.prototype.tokenStartsLine=function(){for(var t=this.tok.start-1;t>=this.curLineStart;--t){var i=this.input.charCodeAt(t);if(i!==9&&i!==32)return!1}return!0};R.prototype.extend=function(t,i){this[t]=i(this[t])};R.prototype.parse=function(){return this.next(),this.parseTopLevel()};R.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,s=0;s<t.length;s++)r=t[s](r);return r};R.parse=function(t,i){return new this(t,i).parse()};R.BaseParser=D;var Ii=R.prototype;function Wl(e){return e<14&&e>8||e===32||e===160||ve(e)}Ii.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}};Ii.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===u.dot&&this.input.substr(this.toks.end,1)==="."&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=u.ellipsis),new pt(this.toks)}catch(n){if(!(n instanceof SyntaxError))throw n;var e=n.message,t=n.raisedAt,i=!0;if(/unterminated/i.test(e))if(t=this.lineEnd(n.pos+1),/string/.test(e))i={start:n.pos,end:t,type:u.string,value:this.input.slice(n.pos+1,t)};else if(/regular expr/i.test(e)){var r=this.input.slice(n.pos,t);try{r=new RegExp(r)}catch{}i={start:n.pos,end:t,type:u.regexp,value:r}}else/template/.test(e)?i={start:n.pos,end:t,type:u.template,value:this.input.slice(n.pos,t)}:i=!1;else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(e))for(;t<this.input.length&&!Wl(this.input.charCodeAt(t));)++t;else if(/character escape|expected hexadecimal/i.test(e))for(;t<this.input.length;){var s=this.input.charCodeAt(t++);if(s===34||s===39||ve(s))break}else if(/unexpected character/i.test(e))t++,i=!1;else if(/regular expression/i.test(e))i=!0;else throw n;if(this.resetTo(t),i===!0&&(i={start:t,end:t,type:u.name,value:Ni}),i)return this.options.locations&&(i.loc=new qe(this.toks,Ke(this.input,i.start),Ke(this.input,i.end))),i}};Ii.resetTo=function(e){this.toks.pos=e,this.toks.containsEsc=!1;var t=this.input.charAt(e-1);if(this.toks.exprAllowed=!t||/[[{(,;:?/*=+\-~!|&%^<>]/.test(t)||/[enwfd]/.test(t)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations){this.toks.curLine=1,this.toks.lineStart=Rt.lastIndex=0;for(var i;(i=Rt.exec(this.input))&&i.index<e;)++this.toks.curLine,this.toks.lineStart=i.index+i[0].length}};Ii.lookAhead=function(e){for(;e>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var Y=R.prototype;Y.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,Ke(this.input,0)]:0);for(e.body=[];this.tok.type!==u.eof;)e.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(e.body),this.last=this.tok,e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};Y.parseStatement=function(){var e=this.tok.type,t=this.startNode(),i;switch(this.toks.isLet()&&(e=u._var,i="let"),e){case u._break:case u._continue:this.next();var r=e===u._break;return this.semicolon()||this.canInsertSemicolon()?t.label=null:(t.label=this.tok.type===u.name?this.parseIdent():null,this.semicolon()),this.finishNode(t,r?"BreakStatement":"ContinueStatement");case u._debugger:return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement");case u._do:return this.next(),t.body=this.parseStatement(),t.test=this.eat(u._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(t,"DoWhileStatement");case u._for:this.next();var s=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(u.parenL),this.tok.type===u.semi)return this.parseFor(t,null);var n=this.toks.isLet();if(n||this.tok.type===u._var||this.tok.type===u._const){var a=this.parseVar(this.startNode(),!0,n?"let":this.tok.value);return a.declarations.length===1&&(this.tok.type===u._in||this.isContextual("of"))?(this.options.ecmaVersion>=9&&this.tok.type!==u._in&&(t.await=s),this.parseForIn(t,a)):this.parseFor(t,a)}var o=this.parseExpression(!0);return this.tok.type===u._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==u._in&&(t.await=s),this.parseForIn(t,this.toAssignable(o))):this.parseFor(t,o);case u._function:return this.next(),this.parseFunction(t,!0);case u._if:return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(),t.alternate=this.eat(u._else)?this.parseStatement():null,this.finishNode(t,"IfStatement");case u._return:return this.next(),this.eat(u.semi)||this.canInsertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement");case u._switch:var h=this.curIndent,l=this.curLineStart;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.pushCx(),this.expect(u.braceL);for(var c;!this.closes(u.braceR,h,l,!0);)if(this.tok.type===u._case||this.tok.type===u._default){var f=this.tok.type===u._case;c&&this.finishNode(c,"SwitchCase"),t.cases.push(c=this.startNode()),c.consequent=[],this.next(),f?c.test=this.parseExpression():c.test=null,this.expect(u.colon)}else c||(t.cases.push(c=this.startNode()),c.consequent=[],c.test=null),c.consequent.push(this.parseStatement());return c&&this.finishNode(c,"SwitchCase"),this.popCx(),this.eat(u.braceR),this.finishNode(t,"SwitchStatement");case u._throw:return this.next(),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement");case u._try:if(this.next(),t.block=this.parseBlock(),t.handler=null,this.tok.type===u._catch){var p=this.startNode();this.next(),this.eat(u.parenL)?(p.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(u.parenR)):p.param=null,p.body=this.parseBlock(),t.handler=this.finishNode(p,"CatchClause")}return t.finalizer=this.eat(u._finally)?this.parseBlock():null,!t.handler&&!t.finalizer?t.block:this.finishNode(t,"TryStatement");case u._var:case u._const:return this.parseVar(t,!1,i||this.tok.value);case u._while:return this.next(),t.test=this.parseParenExpression(),t.body=this.parseStatement(),this.finishNode(t,"WhileStatement");case u._with:return this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(),this.finishNode(t,"WithStatement");case u.braceL:return this.parseBlock();case u.semi:return this.next(),this.finishNode(t,"EmptyStatement");case u._class:return this.parseClass(!0);case u._import:if(this.options.ecmaVersion>10){var d=this.lookAhead(1).type;if(d===u.parenL||d===u.dot)return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"ExpressionStatement")}return this.parseImport();case u._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,!0,!0);var m=this.parseExpression();return Ae(m)?(this.next(),this.tok.type===u.eof?this.finishNode(t,"EmptyStatement"):this.parseStatement()):e===u.name&&m.type==="Identifier"&&this.eat(u.colon)?(t.body=this.parseStatement(),t.label=m,this.finishNode(t,"LabeledStatement")):(t.expression=m,this.semicolon(),this.finishNode(t,"ExpressionStatement"))}};Y.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(u.braceL);var t=this.curIndent,i=this.curLineStart;for(e.body=[];!this.closes(u.braceR,t,i,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(u.braceR),this.finishNode(e,"BlockStatement")};Y.parseFor=function(e,t){return e.init=t,e.test=e.update=null,this.eat(u.semi)&&this.tok.type!==u.semi&&(e.test=this.parseExpression()),this.eat(u.semi)&&this.tok.type!==u.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(u.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")};Y.parseForIn=function(e,t){var i=this.tok.type===u._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.popCx(),this.expect(u.parenR),e.body=this.parseStatement(),this.finishNode(e,i)};Y.parseVar=function(e,t,i){e.kind=i,this.next(),e.declarations=[];do{var r=this.startNode();r.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),r.init=this.eat(u.eq)?this.parseMaybeAssign(t):null,e.declarations.push(this.finishNode(r,"VariableDeclarator"))}while(this.eat(u.comma));if(!e.declarations.length){var s=this.startNode();s.id=this.dummyIdent(),e.declarations.push(this.finishNode(s,"VariableDeclarator"))}return t||this.semicolon(),this.finishNode(e,"VariableDeclaration")};Y.parseClass=function(e){var t=this.startNode();this.next(),this.tok.type===u.name?t.id=this.parseIdent():e===!0?t.id=this.dummyIdent():t.id=null,t.superClass=this.eat(u._extends)?this.parseExpression():null,t.body=this.startNode(),t.body.body=[],this.pushCx();var i=this.curIndent+1,r=this.curLineStart;for(this.eat(u.braceL),this.curIndent+1<i&&(i=this.curIndent,r=this.curLineStart);!this.closes(u.braceR,i,r);){var s=this.parseClassElement();s&&t.body.body.push(s)}return this.popCx(),this.eat(u.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(t.body,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};Y.parseClassElement=function(){if(this.eat(u.semi))return null;var e=this.options,t=e.ecmaVersion,i=e.locations,r=this.curIndent,s=this.curLineStart,n=this.startNode(),a="",o=!1,h=!1,l="method",c=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.toks.type===u.star?c=!0:a="static"}if(n.static=c,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.toks.type===u.star)&&!this.canInsertSemicolon()?h=!0:a="async"),!a){o=this.eat(u.star);var f=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=f:a=f)}if(a)n.computed=!1,n.key=this.startNodeAt(i?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),n.key.name=a,this.finishNode(n.key,"Identifier");else if(this.parseClassElementName(n),Ae(n.key))return Ae(this.parseMaybeAssign())&&this.next(),this.eat(u.comma),null;if(t<13||this.toks.type===u.parenL||l!=="method"||o||h){var p=!n.computed&&!n.static&&!o&&!h&&l==="method"&&(n.key.type==="Identifier"&&n.key.name==="constructor"||n.key.type==="Literal"&&n.key.value==="constructor");n.kind=p?"constructor":l,n.value=this.parseMethod(o,h),this.finishNode(n,"MethodDefinition")}else{if(this.eat(u.eq))if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())n.value=null;else{var d=this.inAsync,m=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,n.value=this.parseMaybeAssign(),this.inAsync=d,this.inGenerator=m}else n.value=null;this.semicolon(),this.finishNode(n,"PropertyDefinition")}return n};Y.parseClassStaticBlock=function(e){var t=this.curIndent,i=this.curLineStart;for(e.body=[],this.pushCx();!this.closes(u.braceR,t,i,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(u.braceR),this.finishNode(e,"StaticBlock")};Y.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()};Y.parseClassElementName=function(e){this.toks.type===u.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Y.parseFunction=function(e,t,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!i),this.tok.type===u.name?e.id=this.parseIdent():t===!0&&(e.id=this.dummyIdent()),this.inAsync=e.async,this.inGenerator=e.generator,this.inFunction=!0,e.params=this.parseFunctionParams(),e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")};Y.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(u.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?e.exported=this.parseExprAtom():e.exported=null),e.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(u._default)){var t;if(this.tok.type===u._function||(t=this.toks.isAsyncFunction())){var i=this.startNode();this.next(),t&&this.next(),e.declaration=this.parseFunction(i,"nullableID",t)}else this.tok.type===u._class?e.declaration=this.parseClass("nullableID"):(e.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(e,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(e.declaration=this.parseStatement(),e.specifiers=[],e.source=null):(e.declaration=null,e.specifiers=this.parseExportSpecifierList(),e.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(e,"ExportNamedDeclaration")};Y.parseImport=function(){var e=this.startNode();if(this.next(),this.tok.type===u.string)e.specifiers=[],e.source=this.parseExprAtom();else{var t;this.tok.type===u.name&&this.tok.value!=="from"&&(t=this.startNode(),t.local=this.parseIdent(),this.finishNode(t,"ImportDefaultSpecifier"),this.eat(u.comma)),e.specifiers=this.parseImportSpecifiers(),e.source=this.eatContextual("from")&&this.tok.type===u.string?this.parseExprAtom():this.dummyString(),t&&e.specifiers.unshift(t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")};Y.parseImportSpecifiers=function(){var e=[];if(this.tok.type===u.star){var t=this.startNode();this.next(),t.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(t,"ImportNamespaceSpecifier"))}else{var i=this.curIndent,r=this.curLineStart,s=this.nextLineStart;for(this.pushCx(),this.eat(u.braceL),this.curLineStart>s&&(s=this.curLineStart);!this.closes(u.braceR,i+(this.curLineStart<=s?1:0),r);){var n=this.startNode();if(this.eat(u.star))n.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(n,"ImportNamespaceSpecifier");else{if(this.isContextual("from")||(n.imported=this.parseModuleExportName(),Ae(n.imported)))break;n.local=this.eatContextual("as")?this.parseModuleExportName():n.imported,this.finishNode(n,"ImportSpecifier")}e.push(n),this.eat(u.comma)}this.eat(u.braceR),this.popCx()}return e};Y.parseExportSpecifierList=function(){var e=[],t=this.curIndent,i=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(u.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(u.braceR,t+(this.curLineStart<=r?1:0),i)&&!this.isContextual("from");){var s=this.startNode();if(s.local=this.parseModuleExportName(),Ae(s.local))break;s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.finishNode(s,"ExportSpecifier"),e.push(s),this.eat(u.comma)}return this.eat(u.braceR),this.popCx(),e};Y.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===u.string?this.parseExprAtom():this.parseIdent()};var T=R.prototype;T.checkLVal=function(e){if(!e)return e;switch(e.type){case"Identifier":case"MemberExpression":return e;case"ParenthesizedExpression":return e.expression=this.checkLVal(e.expression),e;default:return this.dummyIdent()}};T.parseExpression=function(e){var t=this.storeCurrentPos(),i=this.parseMaybeAssign(e);if(this.tok.type===u.comma){var r=this.startNodeAt(t);for(r.expressions=[i];this.eat(u.comma);)r.expressions.push(this.parseMaybeAssign(e));return this.finishNode(r,"SequenceExpression")}return i};T.parseParenExpression=function(){this.pushCx(),this.expect(u.parenL);var e=this.parseExpression();return this.popCx(),this.expect(u.parenR),e};T.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var t=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==u.star&&!this.tok.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")}var i=this.storeCurrentPos(),r=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var s=this.startNodeAt(i);return s.operator=this.tok.value,s.left=this.tok.type===u.eq?this.toAssignable(r):this.checkLVal(r),this.next(),s.right=this.parseMaybeAssign(e),this.finishNode(s,"AssignmentExpression")}return r};T.parseMaybeConditional=function(e){var t=this.storeCurrentPos(),i=this.parseExprOps(e);if(this.eat(u.question)){var r=this.startNodeAt(t);return r.test=i,r.consequent=this.parseMaybeAssign(),r.alternate=this.expect(u.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(r,"ConditionalExpression")}return i};T.parseExprOps=function(e){var t=this.storeCurrentPos(),i=this.curIndent,r=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,i,r)};T.parseExprOp=function(e,t,i,r,s,n){if(this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())return e;var a=this.tok.type.binop;if(a!=null&&(!r||this.tok.type!==u._in)&&a>i){var o=this.startNodeAt(t);if(o.left=e,o.operator=this.tok.value,this.next(),this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())o.right=this.dummyIdent();else{var h=this.storeCurrentPos();o.right=this.parseExprOp(this.parseMaybeUnary(!1),h,a,r,s,n)}return this.finishNode(o,/&&|\|\||\?\?/.test(o.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(o,t,i,r,s,n)}return e};T.parseMaybeUnary=function(e){var t=this.storeCurrentPos(),i;if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var r=this.startNode(),s=this.tok.type===u.incDec;s||(e=!0),r.operator=this.tok.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(!0),s&&(r.argument=this.checkLVal(r.argument)),i=this.finishNode(r,s?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===u.ellipsis){var n=this.startNode();this.next(),n.argument=this.parseMaybeUnary(e),i=this.finishNode(n,"SpreadElement")}else if(!e&&this.tok.type===u.privateId)i=this.parsePrivateIdent();else for(i=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(t);a.operator=this.tok.value,a.prefix=!1,a.argument=this.checkLVal(i),this.next(),i=this.finishNode(a,"UpdateExpression")}if(!e&&this.eat(u.starstar)){var o=this.startNodeAt(t);return o.operator="**",o.left=i,o.right=this.parseMaybeUnary(!1),this.finishNode(o,"BinaryExpression")}return i};T.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)};T.parseSubscripts=function(e,t,i,r,s){for(var n=this.options.ecmaVersion>=11,a=!1;;){if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())if(this.tok.type===u.dot&&this.curIndent===r)--r;else break;var o=e.type==="Identifier"&&e.name==="async"&&!this.canInsertSemicolon(),h=n&&this.eat(u.questionDot);if(h&&(a=!0),h&&this.tok.type!==u.parenL&&this.tok.type!==u.bracketL&&this.tok.type!==u.backQuote||this.eat(u.dot)){var l=this.startNodeAt(t);l.object=e,this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,n&&(l.optional=h),e=this.finishNode(l,"MemberExpression")}else if(this.tok.type===u.bracketL){this.pushCx(),this.next();var c=this.startNodeAt(t);c.object=e,c.property=this.parseExpression(),c.computed=!0,n&&(c.optional=h),this.popCx(),this.expect(u.bracketR),e=this.finishNode(c,"MemberExpression")}else if(!i&&this.tok.type===u.parenL){var f=this.parseExprList(u.parenR);if(o&&this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(t),f,!0);var p=this.startNodeAt(t);p.callee=e,p.arguments=f,n&&(p.optional=h),e=this.finishNode(p,"CallExpression")}else if(this.tok.type===u.backQuote){var d=this.startNodeAt(t);d.tag=e,d.quasi=this.parseTemplate(),e=this.finishNode(d,"TaggedTemplateExpression")}else break}if(a){var m=this.startNodeAt(t);m.expression=e,e=this.finishNode(m,"ChainExpression")}return e};T.parseExprAtom=function(){var e;switch(this.tok.type){case u._this:case u._super:var t=this.tok.type===u._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,t);case u.name:var i=this.storeCurrentPos(),r=this.parseIdent(),s=!1;if(r.name==="async"&&!this.canInsertSemicolon()){if(this.eat(u._function))return this.toks.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(i),!1,!0);this.tok.type===u.name&&(r=this.parseIdent(),s=!0)}return this.eat(u.arrow)?this.parseArrowExpression(this.startNodeAt(i),[r],s):r;case u.regexp:e=this.startNode();var n=this.tok.value;return e.regex={pattern:n.pattern,flags:n.flags},e.value=n.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case u.num:case u.string:return e=this.startNode(),e.value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===u.num&&e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case u._null:case u._true:case u._false:return e=this.startNode(),e.value=this.tok.type===u._null?null:this.tok.type===u._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case u.parenL:var a=this.storeCurrentPos();this.next();var o=this.parseExpression();if(this.expect(u.parenR),this.eat(u.arrow)){var h=o.expressions||[o];return h.length&&Ae(h[h.length-1])&&h.pop(),this.parseArrowExpression(this.startNodeAt(a),h)}if(this.options.preserveParens){var l=this.startNodeAt(a);l.expression=o,o=this.finishNode(l,"ParenthesizedExpression")}return o;case u.bracketL:return e=this.startNode(),e.elements=this.parseExprList(u.bracketR,!0),this.finishNode(e,"ArrayExpression");case u.braceL:return this.toks.overrideContext(M.b_expr),this.parseObj();case u._class:return this.parseClass(!1);case u._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}};T.parseExprImport=function(){var e=this.startNode(),t=this.parseIdent(!0);switch(this.tok.type){case u.parenL:return this.parseDynamicImport(e);case u.dot:return e.meta=t,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}};T.parseDynamicImport=function(e){return e.source=this.parseExprList(u.parenR)[0]||this.dummyString(),this.finishNode(e,"ImportExpression")};T.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")};T.parseNew=function(){var e=this.startNode(),t=this.curIndent,i=this.curLineStart,r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot))return e.meta=r,e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty");var s=this.storeCurrentPos();return e.callee=this.parseSubscripts(this.parseExprAtom(),s,!0,t,i),this.tok.type===u.parenL?e.arguments=this.parseExprList(u.parenR):e.arguments=[],this.finishNode(e,"NewExpression")};T.parseTemplateElement=function(){var e=this.startNode();return this.tok.type===u.invalidTemplate?e.value={raw:this.tok.value,cooked:null}:e.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,`
43
+ `),cooked:this.tok.value},this.next(),e.tail=this.tok.type===u.backQuote,this.finishNode(e,"TemplateElement")};T.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.next(),e.expressions.push(this.parseExpression()),this.expect(u.braceR)?t=this.parseTemplateElement():(t=this.startNode(),t.value={cooked:"",raw:""},t.tail=!0,this.finishNode(t,"TemplateElement")),e.quasis.push(t);return this.expect(u.backQuote),this.finishNode(e,"TemplateLiteral")};T.parseObj=function(){var e=this.startNode();e.properties=[],this.pushCx();var t=this.curIndent+1,i=this.curLineStart;for(this.eat(u.braceL),this.curIndent+1<t&&(t=this.curIndent,i=this.curLineStart);!this.closes(u.braceR,t,i);){var r=this.startNode(),s=void 0,n=void 0,a=void 0;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis)){r.argument=this.parseMaybeAssign(),e.properties.push(this.finishNode(r,"SpreadElement")),this.eat(u.comma);continue}if(this.options.ecmaVersion>=6&&(a=this.storeCurrentPos(),r.method=!1,r.shorthand=!1,s=this.eat(u.star)),this.parsePropertyName(r),this.toks.isAsyncProp(r)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(r)):n=!1,Ae(r.key)){Ae(this.parseMaybeAssign())&&this.next(),this.eat(u.comma);continue}if(this.eat(u.colon))r.kind="init",r.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===u.parenL||this.tok.type===u.braceL))r.kind="init",r.method=!0,r.value=this.parseMethod(s,n);else if(this.options.ecmaVersion>=5&&r.key.type==="Identifier"&&!r.computed&&(r.key.name==="get"||r.key.name==="set")&&this.tok.type!==u.comma&&this.tok.type!==u.braceR&&this.tok.type!==u.eq)r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);else{if(r.kind="init",this.options.ecmaVersion>=6)if(this.eat(u.eq)){var o=this.startNodeAt(a);o.operator="=",o.left=r.key,o.right=this.parseMaybeAssign(),r.value=this.finishNode(o,"AssignmentExpression")}else r.value=r.key;else r.value=this.dummyIdent();r.shorthand=!0}e.properties.push(this.finishNode(r,"Property")),this.eat(u.comma)}return this.popCx(),this.eat(u.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(e,"ObjectExpression")};T.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(u.bracketL)){e.computed=!0,e.key=this.parseExpression(),this.expect(u.bracketR);return}else e.computed=!1;var t=this.tok.type===u.num||this.tok.type===u.string?this.parseExprAtom():this.parseIdent();e.key=t||this.dummyIdent()};T.parsePropertyAccessor=function(){if(this.tok.type===u.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===u.privateId)return this.parsePrivateIdent()};T.parseIdent=function(){var e=this.tok.type===u.name?this.tok.value:this.tok.type.keyword;if(!e)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=u.name);var t=this.startNode();return this.next(),t.name=e,this.finishNode(t,"Identifier")};T.parsePrivateIdent=function(){var e=this.startNode();return e.name=this.tok.value,this.next(),this.finishNode(e,"PrivateIdentifier")};T.initFunction=function(e){e.id=null,e.params=[],this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};T.toAssignable=function(e,t){if(!(!e||e.type==="Identifier"||e.type==="MemberExpression"&&!t))if(e.type==="ParenthesizedExpression")this.toAssignable(e.expression,t);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(e.type==="ObjectExpression"){e.type="ObjectPattern";for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t)}}else if(e.type==="ArrayExpression")e.type="ArrayPattern",this.toAssignableList(e.elements,t);else if(e.type==="Property")this.toAssignable(e.value,t);else if(e.type==="SpreadElement")e.type="RestElement",this.toAssignable(e.argument,t);else if(e.type==="AssignmentExpression")e.type="AssignmentPattern",delete e.operator;else return this.dummyIdent()}return e};T.toAssignableList=function(e,t){for(var i=0,r=e;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t)}return e};T.parseFunctionParams=function(e){return e=this.parseExprList(u.parenR),this.toAssignableList(e,!0)};T.parseMethod=function(e,t){var i=this.startNode(),r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=!!e),this.options.ecmaVersion>=8&&(i.async=!!t),this.inAsync=i.async,this.inGenerator=i.generator,this.inFunction=!0,i.params=this.parseFunctionParams(),i.body=this.parseBlock(),this.toks.adaptDirectivePrologue(i.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(i,"FunctionExpression")};T.parseArrowExpression=function(e,t,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.inAsync=e.async,this.inGenerator=!1,this.inFunction=!0,e.params=this.toAssignableList(t,!0),e.expression=this.tok.type!==u.braceL,e.expression?e.body=this.parseMaybeAssign():(e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body)),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(e,"ArrowFunctionExpression")};T.parseExprList=function(e,t){this.pushCx();var i=this.curIndent,r=this.curLineStart,s=[];for(this.next();!this.closes(e,i+1,r);){if(this.eat(u.comma)){s.push(t?null:this.dummyIdent());continue}var n=this.parseMaybeAssign();if(Ae(n)){if(this.closes(e,i,r))break;this.next()}else s.push(n);this.eat(u.comma)}return this.popCx(),this.eat(e)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),s};T.parseAwait=function(){var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")};lt.tabSize=4;function Gl(e,t){return R.parse(e,t)}var Pr={};pi(Pr,{ancestor:()=>$l,base:()=>y,findNodeAfter:()=>Xl,findNodeAround:()=>Jl,findNodeAt:()=>Kl,findNodeBefore:()=>Zl,full:()=>Ql,fullAncestor:()=>Yl,make:()=>sa,recursive:()=>Hl,simple:()=>zl});function zl(e,t,i,r,s){i||(i=y),function n(a,o,h){var l=h||a.type;i[l](a,o,n),t[l]&&t[l](a,o)}(e,r,s)}function $l(e,t,i,r,s){var n=[];i||(i=y),function a(o,h,l){var c=l||o.type,f=o!==n[n.length-1];f&&n.push(o),i[c](o,h,a),t[c]&&t[c](o,h||n,n),f&&n.pop()}(e,r,s)}function Hl(e,t,i,r,s){var n=i?sa(i,r||void 0):r;(function a(o,h,l){n[l||o.type](o,h,a)})(e,t,s)}function Pi(e){return typeof e=="string"?function(t){return t===e}:e||function(){return!0}}var Je=function(t,i){this.node=t,this.state=i};function Ql(e,t,i,r,s){i||(i=y);var n;(function a(o,h,l){var c=l||o.type;i[c](o,h,a),n!==o&&(t(o,h,c),n=o)})(e,r,s)}function Yl(e,t,i,r){i||(i=y);var s=[],n;(function a(o,h,l){var c=l||o.type,f=o!==s[s.length-1];f&&s.push(o),i[c](o,h,a),n!==o&&(t(o,h||s,s,c),n=o),f&&s.pop()})(e,r)}function Kl(e,t,i,r,s,n){s||(s=y),r=Pi(r);try{(function a(o,h,l){var c=l||o.type;if((t==null||o.start<=t)&&(i==null||o.end>=i)&&s[c](o,h,a),(t==null||o.start===t)&&(i==null||o.end===i)&&r(c,o))throw new Je(o,h)})(e,n)}catch(a){if(a instanceof Je)return a;throw a}}function Jl(e,t,i,r,s){i=Pi(i),r||(r=y);try{(function n(a,o,h){var l=h||a.type;if(!(a.start>t||a.end<t)&&(r[l](a,o,n),i(l,a)))throw new Je(a,o)})(e,s)}catch(n){if(n instanceof Je)return n;throw n}}function Xl(e,t,i,r,s){i=Pi(i),r||(r=y);try{(function n(a,o,h){if(!(a.end<t)){var l=h||a.type;if(a.start>=t&&i(l,a))throw new Je(a,o);r[l](a,o,n)}})(e,s)}catch(n){if(n instanceof Je)return n;throw n}}function Zl(e,t,i,r,s){i=Pi(i),r||(r=y);var n;return function a(o,h,l){if(!(o.start>t)){var c=l||o.type;o.end<=t&&(!n||n.node.end<o.end)&&i(c,o)&&(n=new Je(o,h)),r[c](o,h,a)}}(e,s),n}function sa(e,t){var i=Object.create(t||y);for(var r in e)i[r]=e[r];return i}function Ir(e,t,i){i(e,t)}function Xe(e,t,i){}var y={};y.Program=y.BlockStatement=y.StaticBlock=function(e,t,i){for(var r=0,s=e.body;r<s.length;r+=1){var n=s[r];i(n,t,"Statement")}};y.Statement=Ir;y.EmptyStatement=Xe;y.ExpressionStatement=y.ParenthesizedExpression=y.ChainExpression=function(e,t,i){return i(e.expression,t,"Expression")};y.IfStatement=function(e,t,i){i(e.test,t,"Expression"),i(e.consequent,t,"Statement"),e.alternate&&i(e.alternate,t,"Statement")};y.LabeledStatement=function(e,t,i){return i(e.body,t,"Statement")};y.BreakStatement=y.ContinueStatement=Xe;y.WithStatement=function(e,t,i){i(e.object,t,"Expression"),i(e.body,t,"Statement")};y.SwitchStatement=function(e,t,i){i(e.discriminant,t,"Expression");for(var r=0,s=e.cases;r<s.length;r+=1){var n=s[r];n.test&&i(n.test,t,"Expression");for(var a=0,o=n.consequent;a<o.length;a+=1){var h=o[a];i(h,t,"Statement")}}};y.SwitchCase=function(e,t,i){e.test&&i(e.test,t,"Expression");for(var r=0,s=e.consequent;r<s.length;r+=1){var n=s[r];i(n,t,"Statement")}};y.ReturnStatement=y.YieldExpression=y.AwaitExpression=function(e,t,i){e.argument&&i(e.argument,t,"Expression")};y.ThrowStatement=y.SpreadElement=function(e,t,i){return i(e.argument,t,"Expression")};y.TryStatement=function(e,t,i){i(e.block,t,"Statement"),e.handler&&i(e.handler,t),e.finalizer&&i(e.finalizer,t,"Statement")};y.CatchClause=function(e,t,i){e.param&&i(e.param,t,"Pattern"),i(e.body,t,"Statement")};y.WhileStatement=y.DoWhileStatement=function(e,t,i){i(e.test,t,"Expression"),i(e.body,t,"Statement")};y.ForStatement=function(e,t,i){e.init&&i(e.init,t,"ForInit"),e.test&&i(e.test,t,"Expression"),e.update&&i(e.update,t,"Expression"),i(e.body,t,"Statement")};y.ForInStatement=y.ForOfStatement=function(e,t,i){i(e.left,t,"ForInit"),i(e.right,t,"Expression"),i(e.body,t,"Statement")};y.ForInit=function(e,t,i){e.type==="VariableDeclaration"?i(e,t):i(e,t,"Expression")};y.DebuggerStatement=Xe;y.FunctionDeclaration=function(e,t,i){return i(e,t,"Function")};y.VariableDeclaration=function(e,t,i){for(var r=0,s=e.declarations;r<s.length;r+=1){var n=s[r];i(n,t)}};y.VariableDeclarator=function(e,t,i){i(e.id,t,"Pattern"),e.init&&i(e.init,t,"Expression")};y.Function=function(e,t,i){e.id&&i(e.id,t,"Pattern");for(var r=0,s=e.params;r<s.length;r+=1){var n=s[r];i(n,t,"Pattern")}i(e.body,t,e.expression?"Expression":"Statement")};y.Pattern=function(e,t,i){e.type==="Identifier"?i(e,t,"VariablePattern"):e.type==="MemberExpression"?i(e,t,"MemberPattern"):i(e,t)};y.VariablePattern=Xe;y.MemberPattern=Ir;y.RestElement=function(e,t,i){return i(e.argument,t,"Pattern")};y.ArrayPattern=function(e,t,i){for(var r=0,s=e.elements;r<s.length;r+=1){var n=s[r];n&&i(n,t,"Pattern")}};y.ObjectPattern=function(e,t,i){for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];n.type==="Property"?(n.computed&&i(n.key,t,"Expression"),i(n.value,t,"Pattern")):n.type==="RestElement"&&i(n.argument,t,"Pattern")}};y.Expression=Ir;y.ThisExpression=y.Super=y.MetaProperty=Xe;y.ArrayExpression=function(e,t,i){for(var r=0,s=e.elements;r<s.length;r+=1){var n=s[r];n&&i(n,t,"Expression")}};y.ObjectExpression=function(e,t,i){for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];i(n,t)}};y.FunctionExpression=y.ArrowFunctionExpression=y.FunctionDeclaration;y.SequenceExpression=function(e,t,i){for(var r=0,s=e.expressions;r<s.length;r+=1){var n=s[r];i(n,t,"Expression")}};y.TemplateLiteral=function(e,t,i){for(var r=0,s=e.quasis;r<s.length;r+=1){var n=s[r];i(n,t)}for(var a=0,o=e.expressions;a<o.length;a+=1){var h=o[a];i(h,t,"Expression")}};y.TemplateElement=Xe;y.UnaryExpression=y.UpdateExpression=function(e,t,i){i(e.argument,t,"Expression")};y.BinaryExpression=y.LogicalExpression=function(e,t,i){i(e.left,t,"Expression"),i(e.right,t,"Expression")};y.AssignmentExpression=y.AssignmentPattern=function(e,t,i){i(e.left,t,"Pattern"),i(e.right,t,"Expression")};y.ConditionalExpression=function(e,t,i){i(e.test,t,"Expression"),i(e.consequent,t,"Expression"),i(e.alternate,t,"Expression")};y.NewExpression=y.CallExpression=function(e,t,i){if(i(e.callee,t,"Expression"),e.arguments)for(var r=0,s=e.arguments;r<s.length;r+=1){var n=s[r];i(n,t,"Expression")}};y.MemberExpression=function(e,t,i){i(e.object,t,"Expression"),e.computed&&i(e.property,t,"Expression")};y.ExportNamedDeclaration=y.ExportDefaultDeclaration=function(e,t,i){e.declaration&&i(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&i(e.source,t,"Expression")};y.ExportAllDeclaration=function(e,t,i){e.exported&&i(e.exported,t),i(e.source,t,"Expression")};y.ImportDeclaration=function(e,t,i){for(var r=0,s=e.specifiers;r<s.length;r+=1){var n=s[r];i(n,t)}i(e.source,t,"Expression")};y.ImportExpression=function(e,t,i){i(e.source,t,"Expression")};y.ImportSpecifier=y.ImportDefaultSpecifier=y.ImportNamespaceSpecifier=y.Identifier=y.PrivateIdentifier=y.Literal=Xe;y.TaggedTemplateExpression=function(e,t,i){i(e.tag,t,"Expression"),i(e.quasi,t,"Expression")};y.ClassDeclaration=y.ClassExpression=function(e,t,i){return i(e,t,"Class")};y.Class=function(e,t,i){e.id&&i(e.id,t,"Pattern"),e.superClass&&i(e.superClass,t,"Expression"),i(e.body,t)};y.ClassBody=function(e,t,i){for(var r=0,s=e.body;r<s.length;r+=1){var n=s[r];i(n,t)}};y.MethodDefinition=y.PropertyDefinition=y.Property=function(e,t,i){e.computed&&i(e.key,t,"Expression"),e.value&&i(e.value,t,"Expression")};var bh=H(Oo());var Zo=H(zo(),1);var Kt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var xf={"[: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]},Jt=e=>e.replace(/[[\]\\-]/g,"\\$&"),yf=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$o=e=>e.join(""),Ho=(e,t)=>{let i=t;if(e.charAt(i)!=="[")throw new Error("not in a brace expression");let r=[],s=[],n=i+1,a=!1,o=!1,h=!1,l=!1,c=i,f="";e:for(;n<e.length;){let g=e.charAt(n);if((g==="!"||g==="^")&&n===i+1){l=!0,n++;continue}if(g==="]"&&a&&!h){c=n+1;break}if(a=!0,g==="\\"&&!h){h=!0,n++;continue}if(g==="["&&!h){for(let[x,[b,C,N]]of Object.entries(xf))if(e.startsWith(x,n)){if(f)return["$.",!1,e.length-i,!0];n+=x.length,N?s.push(b):r.push(b),o=o||C;continue e}}if(h=!1,f){g>f?r.push(Jt(f)+"-"+Jt(g)):g===f&&r.push(Jt(g)),f="",n++;continue}if(e.startsWith("-]",n+1)){r.push(Jt(g+"-")),n+=2;continue}if(e.startsWith("-",n+1)){f=g,n+=2;continue}r.push(Jt(g)),n++}if(c<n)return["",!1,0,!1];if(!r.length&&!s.length)return["$.",!1,e.length-i,!0];if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let g=r[0].length===2?r[0].slice(-1):r[0];return[yf(g),!1,c-i,!1]}let p="["+(l?"^":"")+$o(r)+"]",d="["+(l?"":"^")+$o(s)+"]";return[r.length&&s.length?"("+p+"|"+d+")":r.length?p:d,o,c-i,!0]};var Ge=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var vf=new Set(["!","?","+","*","@"]),Qo=e=>vf.has(e),_f="(?!(?:^|/)\\.\\.?(?:$|/))",Wi="(?!\\.)",bf=new Set(["[","."]),Sf=new Set(["..","."]),wf=new Set("().*{}+?[]^$\\!"),Cf=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fs="[^/]",Yo=fs+"*?",Ko=fs+"+?",bt=class e{type;#i;#r;#n=!1;#e=[];#t;#a;#u;#o=!1;#s;#h;#c=!1;constructor(t,i,r={}){this.type=t,t&&(this.#r=!0),this.#t=i,this.#i=this.#t?this.#t.#i:this,this.#s=this.#i===this?r:this.#i.#s,this.#u=this.#i===this?[]:this.#i.#u,t==="!"&&!this.#i.#o&&this.#u.push(this),this.#a=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#h!==void 0?this.#h:this.type?this.#h=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#h=this.#e.map(t=>String(t)).join("")}#p(){if(this!==this.#i)throw new Error("should only call on root");if(this.#o)return this;this.toString(),this.#o=!0;let t;for(;t=this.#u.pop();){if(t.type!=="!")continue;let i=t,r=i.#t;for(;r;){for(let s=i.#a+1;!r.type&&s<r.#e.length;s++)for(let n of t.#e){if(typeof n=="string")throw new Error("string part in extglob AST??");n.copyIn(r.#e[s])}i=r,r=i.#t}}return this}push(...t){for(let i of t)if(i!==""){if(typeof i!="string"&&!(i instanceof e&&i.#t===this))throw new Error("invalid part: "+i);this.#e.push(i)}}toJSON(){var i;let t=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&&t.unshift([]),this.isEnd()&&(this===this.#i||this.#i.#o&&((i=this.#t)==null?void 0:i.type)==="!")&&t.push({}),t}isStart(){var i;if(this.#i===this)return!0;if(!((i=this.#t)!=null&&i.isStart()))return!1;if(this.#a===0)return!0;let t=this.#t;for(let r=0;r<this.#a;r++){let s=t.#e[r];if(!(s instanceof e&&s.type==="!"))return!1}return!0}isEnd(){var i,r,s;if(this.#i===this||((i=this.#t)==null?void 0:i.type)==="!")return!0;if(!((r=this.#t)!=null&&r.isEnd()))return!1;if(!this.type)return(s=this.#t)==null?void 0:s.isEnd();let t=this.#t?this.#t.#e.length:0;return this.#a===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let i=new e(this.type,t);for(let r of this.#e)i.copyIn(r);return i}static#l(t,i,r,s){let n=!1,a=!1,o=-1,h=!1;if(i.type===null){let d=r,m="";for(;d<t.length;){let g=t.charAt(d++);if(n||g==="\\"){n=!n,m+=g;continue}if(a){d===o+1?(g==="^"||g==="!")&&(h=!0):g==="]"&&!(d===o+2&&h)&&(a=!1),m+=g;continue}else if(g==="["){a=!0,o=d,h=!1,m+=g;continue}if(!s.noext&&Qo(g)&&t.charAt(d)==="("){i.push(m),m="";let x=new e(g,i);d=e.#l(t,x,d,s),i.push(x);continue}m+=g}return i.push(m),d}let l=r+1,c=new e(null,i),f=[],p="";for(;l<t.length;){let d=t.charAt(l++);if(n||d==="\\"){n=!n,p+=d;continue}if(a){l===o+1?(d==="^"||d==="!")&&(h=!0):d==="]"&&!(l===o+2&&h)&&(a=!1),p+=d;continue}else if(d==="["){a=!0,o=l,h=!1,p+=d;continue}if(Qo(d)&&t.charAt(l)==="("){c.push(p),p="";let m=new e(d,c);c.push(m),l=e.#l(t,m,l,s);continue}if(d==="|"){c.push(p),p="",f.push(c),c=new e(null,i);continue}if(d===")")return p===""&&i.#e.length===0&&(i.#c=!0),c.push(p),p="",i.push(...f,c),l;p+=d}return i.type=null,i.#r=void 0,i.#e=[t.substring(r-1)],l}static fromGlob(t,i={}){let r=new e(null,void 0,i);return e.#l(t,r,0,i),r}toMMPattern(){if(this!==this.#i)return this.#i.toMMPattern();let t=this.toString(),[i,r,s,n]=this.toRegExpSource();if(!(s||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;let o=(this.#s.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${i}$`,o),{_src:i,_glob:t})}get options(){return this.#s}toRegExpSource(t){var h;let i=t??!!this.#s.dot;if(this.#i===this&&this.#p(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#e.map(m=>{let[g,x,b,C]=typeof m=="string"?e.#d(m,this.#r,l):m.toRegExpSource(t);return this.#r=this.#r||b,this.#n=this.#n||C,g}).join(""),f="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Sf.has(this.#e[0]))){let g=bf,x=i&&g.has(c.charAt(0))||c.startsWith("\\.")&&g.has(c.charAt(2))||c.startsWith("\\.\\.")&&g.has(c.charAt(4)),b=!i&&!t&&g.has(c.charAt(0));f=x?_f:b?Wi:""}let p="";return this.isEnd()&&this.#i.#o&&((h=this.#t)==null?void 0:h.type)==="!"&&(p="(?:$|\\/)"),[f+c+p,Ge(c),this.#r=!!this.#r,this.#n]}let r=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",n=this.#f(i);if(this.isStart()&&this.isEnd()&&!n&&this.type!=="!"){let l=this.toString();return this.#e=[l],this.type=null,this.#r=void 0,[l,Ge(this.toString()),!1,!1]}let a=!r||t||i||!Wi?"":this.#f(!0);a===n&&(a=""),a&&(n=`(?:${n})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!i?Wi:"")+Ko;else{let l=this.type==="!"?"))"+(this.isStart()&&!i&&!t?Wi:"")+Yo+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=s+n+l}return[o,Ge(n),this.#r=!!this.#r,this.#n]}#f(t){return this.#e.map(i=>{if(typeof i=="string")throw new Error("string type in extglob ast??");let[r,s,n,a]=i.toRegExpSource(t);return this.#n=this.#n||a,r}).filter(i=>!(this.isStart()&&this.isEnd())||!!i).join("|")}static#d(t,i,r=!1){let s=!1,n="",a=!1;for(let o=0;o<t.length;o++){let h=t.charAt(o);if(s){s=!1,n+=(wf.has(h)?"\\":"")+h;continue}if(h==="\\"){o===t.length-1?n+="\\\\":s=!0;continue}if(h==="["){let[l,c,f,p]=Ho(t,o);if(f){n+=l,a=a||c,o+=f-1,i=i||p;continue}}if(h==="*"){r&&t==="*"?n+=Ko:n+=Yo,i=!0;continue}if(h==="?"){n+=fs,i=!0;continue}n+=Cf(h)}return[n,Ge(t),!!i,a]}};var ps=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var J=(e,t,i={})=>(Kt(t),!i.nocomment&&t.charAt(0)==="#"?!1:new St(t,i).match(e)),Ef=/^\*+([^+@!?\*\[\(]*)$/,kf=e=>t=>!t.startsWith(".")&&t.endsWith(e),Af=e=>t=>t.endsWith(e),Nf=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),If=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Pf=/^\*+\.\*+$/,Lf=e=>!e.startsWith(".")&&e.includes("."),Of=e=>e!=="."&&e!==".."&&e.includes("."),Tf=/^\.\*+$/,Rf=e=>e!=="."&&e!==".."&&e.startsWith("."),Mf=/^\*+$/,Ff=e=>e.length!==0&&!e.startsWith("."),Bf=e=>e.length!==0&&e!=="."&&e!=="..",Df=/^\?+([^+@!?\*\[\(]*)?$/,Vf=([e,t=""])=>{let i=eu([e]);return t?(t=t.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(t)):i},Uf=([e,t=""])=>{let i=tu([e]);return t?(t=t.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(t)):i},qf=([e,t=""])=>{let i=tu([e]);return t?r=>i(r)&&r.endsWith(t):i},jf=([e,t=""])=>{let i=eu([e]);return t?r=>i(r)&&r.endsWith(t):i},eu=([e])=>{let t=e.length;return i=>i.length===t&&!i.startsWith(".")},tu=([e])=>{let t=e.length;return i=>i.length===t&&i!=="."&&i!==".."},iu=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Jo={win32:{sep:"\\"},posix:{sep:"/"}},Wf=iu==="win32"?Jo.win32.sep:Jo.posix.sep;J.sep=Wf;var ge=Symbol("globstar **");J.GLOBSTAR=ge;var Gf="[^/]",zf=Gf+"*?",$f="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Hf="(?:(?!(?:\\/|^)\\.).)*?",Qf=(e,t={})=>i=>J(i,e,t);J.filter=Qf;var me=(e,t={})=>Object.assign({},e,t),Yf=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return J;let t=J;return Object.assign((r,s,n={})=>t(r,s,me(e,n)),{Minimatch:class extends t.Minimatch{constructor(s,n={}){super(s,me(e,n))}static defaults(s){return t.defaults(me(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,n,a={}){super(s,n,me(e,a))}static fromGlob(s,n={}){return t.AST.fromGlob(s,me(e,n))}},unescape:(r,s={})=>t.unescape(r,me(e,s)),escape:(r,s={})=>t.escape(r,me(e,s)),filter:(r,s={})=>t.filter(r,me(e,s)),defaults:r=>t.defaults(me(e,r)),makeRe:(r,s={})=>t.makeRe(r,me(e,s)),braceExpand:(r,s={})=>t.braceExpand(r,me(e,s)),match:(r,s,n={})=>t.match(r,s,me(e,n)),sep:t.sep,GLOBSTAR:ge})};J.defaults=Yf;var ru=(e,t={})=>(Kt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Zo.default)(e));J.braceExpand=ru;var Kf=(e,t={})=>new St(e,t).makeRe();J.makeRe=Kf;var Jf=(e,t,i={})=>{let r=new St(t,i);return e=e.filter(s=>r.match(s)),r.options.nonull&&!e.length&&e.push(t),e};J.match=Jf;var Xo=/[?*]|[+@!]\(.*?\)|\[|\]/,Xf=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),St=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,i={}){Kt(t),i=i||{},this.options=i,this.pattern=t,this.platform=i.platform||iu,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!i.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!i.nonegate,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=i.windowsNoMagicRoot!==void 0?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let i of t)if(typeof i!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,i=this.options;if(!i.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],i.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((n,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let h=n[0]===""&&n[1]===""&&(n[2]==="?"||!Xo.test(n[2]))&&!Xo.test(n[3]),l=/^[a-z]:/i.test(n[0]);if(h)return[...n.slice(0,4),...n.slice(4).map(c=>this.parse(c))];if(l)return[n[0],...n.slice(1).map(c=>this.parse(c))]}return n.map(h=>this.parse(h))});if(this.debug(this.pattern,s),this.set=s.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let a=this.set[n];a[0]===""&&a[1]===""&&this.globParts[n][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let r=0;r<t.length;r++)for(let s=0;s<t[r].length;s++)t[r][s]==="**"&&(t[r][s]="*");let{optimizationLevel:i=1}=this.options;return i>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):i>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(i=>{let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let s=r;for(;i[s+1]==="**";)s++;s!==r&&i.splice(r,s-r)}return i})}levelOneOptimize(t){return t.map(i=>(i=i.reduce((r,s)=>{let n=r[r.length-1];return s==="**"&&n==="**"?r:s===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(r.pop(),r):(r.push(s),r)},[]),i.length===0?[""]:i))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){let n=t[s];s===1&&n===""&&t[0]===""||(n==="."||n==="")&&(i=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(i=!0,t.pop())}let r=0;for(;(r=t.indexOf("..",r+1))!==-1;){let s=t[r-1];s&&s!=="."&&s!==".."&&s!=="**"&&(i=!0,t.splice(r-1,2),r-=2)}}while(i);return t.length===0?[""]:t}firstPhasePreProcess(t){let i=!1;do{i=!1;for(let r of t){let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let a=s;for(;r[a+1]==="**";)a++;a>s&&r.splice(s+1,a-s);let o=r[s+1],h=r[s+2],l=r[s+3];if(o!==".."||!h||h==="."||h===".."||!l||l==="."||l==="..")continue;i=!0,r.splice(s,1);let c=r.slice(0);c[s]="**",t.push(c),s--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let o=r[a];a===1&&o===""&&r[0]===""||(o==="."||o==="")&&(i=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(i=!0,r.pop())}let n=0;for(;(n=r.indexOf("..",n+1))!==-1;){let a=r[n-1];if(a&&a!=="."&&a!==".."&&a!=="**"){i=!0;let h=n===1&&r[n+1]==="**"?["."]:[];r.splice(n-1,2,...h),r.length===0&&r.push(""),n-=2}}}}while(i);return t}secondPhasePreProcess(t){for(let i=0;i<t.length-1;i++)for(let r=i+1;r<t.length;r++){let s=this.partsMatch(t[i],t[r],!this.preserveMultipleSlashes);if(s){t[i]=[],t[r]=s;break}}return t.filter(i=>i.length)}partsMatch(t,i,r=!1){let s=0,n=0,a=[],o="";for(;s<t.length&&n<i.length;)if(t[s]===i[n])a.push(o==="b"?i[n]:t[s]),s++,n++;else if(r&&t[s]==="**"&&i[n]===t[s+1])a.push(t[s]),s++;else if(r&&i[n]==="**"&&t[s]===i[n+1])a.push(i[n]),n++;else if(t[s]==="*"&&i[n]&&(this.options.dot||!i[n].startsWith("."))&&i[n]!=="**"){if(o==="b")return!1;o="a",a.push(t[s]),s++,n++}else if(i[n]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(o==="a")return!1;o="b",a.push(i[n]),s++,n++}else return!1;return t.length===i.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,i=!1,r=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)i=!i,r++;r&&(this.pattern=t.slice(r)),this.negate=i}matchOne(t,i,r=!1){let s=this.options;if(this.isWindows){let g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),b=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),C=!b&&i[0]===""&&i[1]===""&&i[2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3]),N=x?3:g?0:void 0,k=C?3:b?0:void 0;if(typeof N=="number"&&typeof k=="number"){let[O,A]=[t[N],i[k]];O.toLowerCase()===A.toLowerCase()&&(i[k]=O,k>N?i=i.slice(k):N>k&&(t=t.slice(N)))}}let{optimizationLevel:n=1}=this.options;n>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:i}),this.debug("matchOne",t.length,i.length);for(var a=0,o=0,h=t.length,l=i.length;a<h&&o<l;a++,o++){this.debug("matchOne loop");var c=i[o],f=t[a];if(this.debug(i,c,f),c===!1)return!1;if(c===ge){this.debug("GLOBSTAR",[i,c,f]);var p=a,d=o+1;if(d===l){for(this.debug("** at the end");a<h;a++)if(t[a]==="."||t[a]===".."||!s.dot&&t[a].charAt(0)===".")return!1;return!0}for(;p<h;){var m=t[p];if(this.debug(`
41
44
  globstar while`,t,p,i,d,m),this.matchOne(t.slice(p),i.slice(d),r))return this.debug("globstar found match!",p,h,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,p,i,d);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
42
- >>> no match, partial?`,t,p,i,d),p===h))}let g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=c.test(f),this.debug("pattern match",c,f,g)),!g)return!1}if(a===h&&o===l)return!0;if(a===h)return r;if(o===l)return a===h-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return Xo(this.pattern,this.options)}parse(t){Qt(t);let i=this.options;if(t==="**")return ge;if(t==="")return"";let r,s=null;(r=t.match(If))?s=i.dot?Pf:Lf:(r=t.match(vf))?s=(i.nocase?i.dot?wf:Sf:i.dot?bf:_f)(r[1]):(r=t.match(Of))?s=(i.nocase?i.dot?Rf:Tf:i.dot?Mf:Ff)(r):(r=t.match(Cf))?s=i.dot?kf:Ef:(r=t.match(Af))&&(s=Nf);let n=_t.fromGlob(t,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let i=this.options,r=i.noglobstar?Df:i.dot?Uf:qf,s=new Set(i.nocase?["i"]:[]),n=t.map(h=>{let l=h.map(c=>{if(c instanceof RegExp)for(let f of c.flags.split(""))s.add(f);return typeof c=="string"?$f(c):c===ge?ge:c._src});return l.forEach((c,f)=>{let p=l[f+1],d=l[f-1];c!==ge||d===ge||(d===void 0?p!==void 0&&p!==ge?l[f+1]="(?:\\/|"+r+"\\/)?"+p:l[f]=r:p===void 0?l[f-1]=d+"(?:\\/|"+r+")?":p!==ge&&(l[f-1]=d+"(?:\\/|\\/"+r+"\\/)"+p,l[f+1]=ge))}),l.filter(c=>c!==ge).join("/")}).join("|"),[a,o]=t.length>1?["(?:",")"]:["",""];n="^"+a+n+o+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,i=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&i)return!0;let r=this.options;this.isWindows&&(t=t.split("\\").join("/"));let s=this.slashSplit(t);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let a=s[s.length-1];if(!a)for(let o=s.length-2;!a&&o>=0;o--)a=s[o];for(let o=0;o<n.length;o++){let h=n[o],l=s;if(r.matchBase&&h.length===1&&(l=[a]),this.matchOne(l,h,i))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(t){return K.defaults(t).Minimatch}};K.AST=_t;K.Minimatch=bt;K.escape=us;K.unescape=Ge;var id=$(iu(),1),rd=$(vs(),1),sd=$(bs(),1),eh=$(Ns(),1),nd=$(Zu(),1);var th=eh.default;var xh=$(nh());var Et=$(require("node:path"),1);var ah=$(require("node:process"),1),oh=$(require("node:path"),1),Zi=$(require("node:fs"),1),uh=require("node:url");var hh={directory:"isDirectory",file:"isFile"};function ld(e){if(!Object.hasOwnProperty.call(hh,e))throw new Error(`Invalid type specified: ${e}`)}var cd=(e,t)=>t[hh[e]](),fd=e=>e instanceof URL?(0,uh.fileURLToPath)(e):e;function Ts(e,{cwd:t=ah.default.cwd(),type:i="file",allowSymlinks:r=!0}={}){ld(i),t=fd(t);let s=r?Zi.default.statSync:Zi.default.lstatSync;for(let n of e)try{let a=s(oh.default.resolve(t,n),{throwIfNoEntry:!1});if(!a)continue;if(cd(i,a))return n}catch{}}var lh=require("node:url");function Rs(e){return e instanceof URL?(0,lh.fileURLToPath)(e):e}var pd=Symbol("findUpStop");function dd(e,t={}){let i=Et.default.resolve(Rs(t.cwd)??""),{root:r}=Et.default.parse(i),s=Et.default.resolve(i,Rs(t.stopAt)??r),n=t.limit??Number.POSITIVE_INFINITY,a=[e].flat(),o=l=>{if(typeof e!="function")return Ts(a,l);let c=e(l.cwd);return typeof c=="string"?Ts([c],l):c},h=[];for(;;){let l=o({...t,cwd:i});if(l===pd||(l&&h.push(Et.default.resolve(i,l)),i===s||h.length>=n))break;i=Et.default.dirname(i)}return h}function ch(e,t={}){return dd(e,{...t,limit:1})[0]}var tr=$(require("node:process"),1),ph=$(require("node:os"),1),Ms=$(require("node:tty"),1);function ye(e,t=globalThis.Deno?globalThis.Deno.args:tr.default.argv){let i=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(i+e),s=t.indexOf("--");return r!==-1&&(s===-1||r<s)}var{env:D}=tr.default,er;ye("no-color")||ye("no-colors")||ye("color=false")||ye("color=never")?er=0:(ye("color")||ye("colors")||ye("color=true")||ye("color=always"))&&(er=1);function md(){if("FORCE_COLOR"in D)return D.FORCE_COLOR==="true"?1:D.FORCE_COLOR==="false"?0:D.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(D.FORCE_COLOR,10),3)}function gd(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function xd(e,{streamIsTTY:t,sniffFlags:i=!0}={}){let r=md();r!==void 0&&(er=r);let s=i?er:r;if(s===0)return 0;if(i){if(ye("color=16m")||ye("color=full")||ye("color=truecolor"))return 3;if(ye("color=256"))return 2}if("TF_BUILD"in D&&"AGENT_NAME"in D)return 1;if(e&&!t&&s===void 0)return 0;let n=s||0;if(D.TERM==="dumb")return n;if(tr.default.platform==="win32"){let a=ph.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in D)return"GITHUB_ACTIONS"in D||"GITEA_ACTIONS"in D?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in D)||D.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in D)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(D.TEAMCITY_VERSION)?1:0;if(D.COLORTERM==="truecolor"||D.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in D){let a=Number.parseInt((D.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(D.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(D.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(D.TERM)||"COLORTERM"in D?1:n}function fh(e,t={}){let i=xd(e,{streamIsTTY:e&&e.isTTY,...t});return gd(i)}var yd={stdout:fh({isTTY:Ms.default.isatty(1)}),stderr:fh({isTTY:Ms.default.isatty(2)})},dh=yd;0&&(module.exports={WebSocket,acorn,acornLoose,acornWalk,convertSourceMap,decode,diff,findUpSync,mergeScriptCovs,minimatch,parseCss,supportsColor});
45
+ >>> no match, partial?`,t,p,i,d),p===h))}let g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=c.test(f),this.debug("pattern match",c,f,g)),!g)return!1}if(a===h&&o===l)return!0;if(a===h)return r;if(o===l)return a===h-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return ru(this.pattern,this.options)}parse(t){Kt(t);let i=this.options;if(t==="**")return ge;if(t==="")return"";let r,s=null;(r=t.match(Mf))?s=i.dot?Bf:Ff:(r=t.match(Ef))?s=(i.nocase?i.dot?If:Nf:i.dot?Af:kf)(r[1]):(r=t.match(Df))?s=(i.nocase?i.dot?Uf:Vf:i.dot?qf:jf)(r):(r=t.match(Pf))?s=i.dot?Of:Lf:(r=t.match(Tf))&&(s=Rf);let n=bt.fromGlob(t,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let i=this.options,r=i.noglobstar?zf:i.dot?$f:Hf,s=new Set(i.nocase?["i"]:[]),n=t.map(h=>{let l=h.map(c=>{if(c instanceof RegExp)for(let f of c.flags.split(""))s.add(f);return typeof c=="string"?Xf(c):c===ge?ge:c._src});return l.forEach((c,f)=>{let p=l[f+1],d=l[f-1];c!==ge||d===ge||(d===void 0?p!==void 0&&p!==ge?l[f+1]="(?:\\/|"+r+"\\/)?"+p:l[f]=r:p===void 0?l[f-1]=d+"(?:\\/|"+r+")?":p!==ge&&(l[f-1]=d+"(?:\\/|\\/"+r+"\\/)"+p,l[f+1]=ge))}),l.filter(c=>c!==ge).join("/")}).join("|"),[a,o]=t.length>1?["(?:",")"]:["",""];n="^"+a+n+o+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,i=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&i)return!0;let r=this.options;this.isWindows&&(t=t.split("\\").join("/"));let s=this.slashSplit(t);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let a=s[s.length-1];if(!a)for(let o=s.length-2;!a&&o>=0;o--)a=s[o];for(let o=0;o<n.length;o++){let h=n[o],l=s;if(r.matchBase&&h.length===1&&(l=[a]),this.matchOne(l,h,i))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(t){return J.defaults(t).Minimatch}};J.AST=bt;J.Minimatch=St;J.escape=ps;J.unescape=Ge;var ud=H(ou(),1),hd=H(Cs(),1),ld=H(ks(),1),nh=H(Ts(),1),cd=H(sh(),1);var ah=nh.default;var Sh=H(lh());var At=H(require("node:path"),1);var ch=H(require("node:process"),1),fh=H(require("node:path"),1),rr=H(require("node:fs"),1),ph=require("node:url");var dh={directory:"isDirectory",file:"isFile"};function gd(e){if(!Object.hasOwnProperty.call(dh,e))throw new Error(`Invalid type specified: ${e}`)}var xd=(e,t)=>t[dh[e]](),yd=e=>e instanceof URL?(0,ph.fileURLToPath)(e):e;function Ds(e,{cwd:t=ch.default.cwd(),type:i="file",allowSymlinks:r=!0}={}){gd(i),t=yd(t);let s=r?rr.default.statSync:rr.default.lstatSync;for(let n of e)try{let a=s(fh.default.resolve(t,n),{throwIfNoEntry:!1});if(!a)continue;if(xd(i,a))return n}catch{}}var mh=require("node:url");function Vs(e){return e instanceof URL?(0,mh.fileURLToPath)(e):e}var vd=Symbol("findUpStop");function _d(e,t={}){let i=At.default.resolve(Vs(t.cwd)??""),{root:r}=At.default.parse(i),s=At.default.resolve(i,Vs(t.stopAt)??r),n=t.limit??Number.POSITIVE_INFINITY,a=[e].flat(),o=l=>{if(typeof e!="function")return Ds(a,l);let c=e(l.cwd);return typeof c=="string"?Ds([c],l):c},h=[];for(;;){let l=o({...t,cwd:i});if(l===vd||(l&&h.push(At.default.resolve(i,l)),i===s||h.length>=n))break;i=At.default.dirname(i)}return h}function gh(e,t={}){return _d(e,{...t,limit:1})[0]}var nr=H(require("node:process"),1),yh=H(require("node:os"),1),Us=H(require("node:tty"),1);function ye(e,t=globalThis.Deno?globalThis.Deno.args:nr.default.argv){let i=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(i+e),s=t.indexOf("--");return r!==-1&&(s===-1||r<s)}var{env:V}=nr.default,sr;ye("no-color")||ye("no-colors")||ye("color=false")||ye("color=never")?sr=0:(ye("color")||ye("colors")||ye("color=true")||ye("color=always"))&&(sr=1);function bd(){if("FORCE_COLOR"in V)return V.FORCE_COLOR==="true"?1:V.FORCE_COLOR==="false"?0:V.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(V.FORCE_COLOR,10),3)}function Sd(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function wd(e,{streamIsTTY:t,sniffFlags:i=!0}={}){let r=bd();r!==void 0&&(sr=r);let s=i?sr:r;if(s===0)return 0;if(i){if(ye("color=16m")||ye("color=full")||ye("color=truecolor"))return 3;if(ye("color=256"))return 2}if("TF_BUILD"in V&&"AGENT_NAME"in V)return 1;if(e&&!t&&s===void 0)return 0;let n=s||0;if(V.TERM==="dumb")return n;if(nr.default.platform==="win32"){let a=yh.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in V)return"GITHUB_ACTIONS"in V||"GITEA_ACTIONS"in V?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in V)||V.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor"||V.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in V){let a=Number.parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:n}function xh(e,t={}){let i=wd(e,{streamIsTTY:e&&e.isTTY,...t});return Sd(i)}var Cd={stdout:xh({isTTY:Us.default.isatty(1)}),stderr:xh({isTTY:Us.default.isatty(2)})},vh=Cd;0&&(module.exports={WebSocket,acorn,acornLoose,acornWalk,convertSourceMap,decode,diff,findUpSync,mergeScriptCovs,minimatch,parseCss,supportsColor});