cloudstudio
Version:
Run VS Code on a remote server.
2 lines • 1.61 MB
JavaScript
/*! For license information please see extension.js.LICENSE.txt */
(()=>{var e={3196:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3196,e.exports=t},61182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],n=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement",...r],i=["null","undefined","string","number","bigint","boolean","symbol"];function o(e){return t=>typeof t===e}const{toString:s}=Object.prototype,a=e=>{const t=s.call(e).slice(8,-1);return/HTML\w+Element/.test(t)&&u.domElement(e)?"HTMLElement":(r=t,n.includes(r)?t:void 0);var r},c=e=>t=>a(t)===e;function u(e){if(null===e)return"null";switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(u.observable(e))return"Observable";if(u.array(e))return"Array";if(u.buffer(e))return"Buffer";const t=a(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");const l=o("number");u.number=e=>l(e)&&!u.nan(e),u.bigint=o("bigint"),u.function_=o("function"),u.null_=e=>null===e,u.class_=e=>u.function_(e)&&e.toString().startsWith("class "),u.boolean=e=>!0===e||!1===e,u.symbol=o("symbol"),u.numericString=e=>u.string(e)&&!u.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e)),u.array=(e,t)=>!!Array.isArray(e)&&(!u.function_(t)||e.every(t)),u.buffer=e=>{var t,r,n,i;return null!==(i=null===(n=null===(r=null===(t=e)||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.isBuffer)||void 0===n?void 0:n.call(r,e))&&void 0!==i&&i},u.nullOrUndefined=e=>u.null_(e)||u.undefined(e),u.object=e=>!u.null_(e)&&("object"==typeof e||u.function_(e)),u.iterable=e=>{var t;return u.function_(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},u.asyncIterable=e=>{var t;return u.function_(null===(t=e)||void 0===t?void 0:t[Symbol.asyncIterator])},u.generator=e=>u.iterable(e)&&u.function_(e.next)&&u.function_(e.throw),u.asyncGenerator=e=>u.asyncIterable(e)&&u.function_(e.next)&&u.function_(e.throw),u.nativePromise=e=>c("Promise")(e),u.promise=e=>u.nativePromise(e)||(e=>{var t,r;return u.function_(null===(t=e)||void 0===t?void 0:t.then)&&u.function_(null===(r=e)||void 0===r?void 0:r.catch)})(e),u.generatorFunction=c("GeneratorFunction"),u.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===a(e),u.asyncFunction=e=>"AsyncFunction"===a(e),u.boundFunction=e=>u.function_(e)&&!e.hasOwnProperty("prototype"),u.regExp=c("RegExp"),u.date=c("Date"),u.error=c("Error"),u.map=e=>c("Map")(e),u.set=e=>c("Set")(e),u.weakMap=e=>c("WeakMap")(e),u.weakSet=e=>c("WeakSet")(e),u.int8Array=c("Int8Array"),u.uint8Array=c("Uint8Array"),u.uint8ClampedArray=c("Uint8ClampedArray"),u.int16Array=c("Int16Array"),u.uint16Array=c("Uint16Array"),u.int32Array=c("Int32Array"),u.uint32Array=c("Uint32Array"),u.float32Array=c("Float32Array"),u.float64Array=c("Float64Array"),u.bigInt64Array=c("BigInt64Array"),u.bigUint64Array=c("BigUint64Array"),u.arrayBuffer=c("ArrayBuffer"),u.sharedArrayBuffer=c("SharedArrayBuffer"),u.dataView=c("DataView"),u.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,u.urlInstance=e=>c("URL")(e),u.urlString=e=>{if(!u.string(e))return!1;try{return new URL(e),!0}catch(e){return!1}},u.truthy=e=>Boolean(e),u.falsy=e=>!e,u.nan=e=>Number.isNaN(e),u.primitive=e=>{return u.null_(e)||(t=typeof e,i.includes(t));var t},u.integer=e=>Number.isInteger(e),u.safeInteger=e=>Number.isSafeInteger(e),u.plainObject=e=>{if("[object Object]"!==s.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},u.typedArray=e=>{return t=a(e),r.includes(t);var t},u.arrayLike=e=>!u.nullOrUndefined(e)&&!u.function_(e)&&(e=>u.safeInteger(e)&&e>=0)(e.length),u.inRange=(e,t)=>{if(u.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(u.array(t)&&2===t.length)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};const p=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=e=>u.object(e)&&1===e.nodeType&&u.string(e.nodeName)&&!u.plainObject(e)&&p.every((t=>t in e)),u.observable=e=>{var t,r,n,i;return!!e&&(e===(null===(r=(t=e)[Symbol.observable])||void 0===r?void 0:r.call(t))||e===(null===(i=(n=e)["@@observable"])||void 0===i?void 0:i.call(n)))},u.nodeStream=e=>u.object(e)&&u.function_(e.pipe)&&!u.observable(e),u.infinite=e=>e===1/0||e===-1/0;const d=e=>t=>u.integer(t)&&Math.abs(t%2)===e;u.evenInteger=d(0),u.oddInteger=d(1),u.emptyArray=e=>u.array(e)&&0===e.length,u.nonEmptyArray=e=>u.array(e)&&e.length>0,u.emptyString=e=>u.string(e)&&0===e.length,u.nonEmptyString=e=>u.string(e)&&e.length>0,u.emptyStringOrWhitespace=e=>u.emptyString(e)||(e=>u.string(e)&&!/\S/.test(e))(e),u.emptyObject=e=>u.object(e)&&!u.map(e)&&!u.set(e)&&0===Object.keys(e).length,u.nonEmptyObject=e=>u.object(e)&&!u.map(e)&&!u.set(e)&&Object.keys(e).length>0,u.emptySet=e=>u.set(e)&&0===e.size,u.nonEmptySet=e=>u.set(e)&&e.size>0,u.emptyMap=e=>u.map(e)&&0===e.size,u.nonEmptyMap=e=>u.map(e)&&e.size>0;const h=(e,t,r)=>{if(!u.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(0===r.length)throw new TypeError("Invalid number of values");return e.call(r,t)};u.any=(e,...t)=>(u.array(e)?e:[e]).some((e=>h(Array.prototype.some,e,t))),u.all=(e,...t)=>h(Array.prototype.every,e,t);const f=(e,t,r,n={})=>{if(!e){const{multipleValues:e}=n,i=e?`received values of types ${[...new Set(r.map((e=>`\`${u(e)}\``)))].join(", ")}`:`received value of type \`${u(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${i}.`)}};t.assert={undefined:e=>f(u.undefined(e),"undefined",e),string:e=>f(u.string(e),"string",e),number:e=>f(u.number(e),"number",e),bigint:e=>f(u.bigint(e),"bigint",e),function_:e=>f(u.function_(e),"Function",e),null_:e=>f(u.null_(e),"null",e),class_:e=>f(u.class_(e),"Class",e),boolean:e=>f(u.boolean(e),"boolean",e),symbol:e=>f(u.symbol(e),"symbol",e),numericString:e=>f(u.numericString(e),"string with a number",e),array:(e,t)=>{f(u.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>f(u.buffer(e),"Buffer",e),nullOrUndefined:e=>f(u.nullOrUndefined(e),"null or undefined",e),object:e=>f(u.object(e),"Object",e),iterable:e=>f(u.iterable(e),"Iterable",e),asyncIterable:e=>f(u.asyncIterable(e),"AsyncIterable",e),generator:e=>f(u.generator(e),"Generator",e),asyncGenerator:e=>f(u.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>f(u.nativePromise(e),"native Promise",e),promise:e=>f(u.promise(e),"Promise",e),generatorFunction:e=>f(u.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>f(u.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>f(u.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>f(u.boundFunction(e),"Function",e),regExp:e=>f(u.regExp(e),"RegExp",e),date:e=>f(u.date(e),"Date",e),error:e=>f(u.error(e),"Error",e),map:e=>f(u.map(e),"Map",e),set:e=>f(u.set(e),"Set",e),weakMap:e=>f(u.weakMap(e),"WeakMap",e),weakSet:e=>f(u.weakSet(e),"WeakSet",e),int8Array:e=>f(u.int8Array(e),"Int8Array",e),uint8Array:e=>f(u.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>f(u.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>f(u.int16Array(e),"Int16Array",e),uint16Array:e=>f(u.uint16Array(e),"Uint16Array",e),int32Array:e=>f(u.int32Array(e),"Int32Array",e),uint32Array:e=>f(u.uint32Array(e),"Uint32Array",e),float32Array:e=>f(u.float32Array(e),"Float32Array",e),float64Array:e=>f(u.float64Array(e),"Float64Array",e),bigInt64Array:e=>f(u.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>f(u.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>f(u.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>f(u.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>f(u.dataView(e),"DataView",e),urlInstance:e=>f(u.urlInstance(e),"URL",e),urlString:e=>f(u.urlString(e),"string with a URL",e),truthy:e=>f(u.truthy(e),"truthy",e),falsy:e=>f(u.falsy(e),"falsy",e),nan:e=>f(u.nan(e),"NaN",e),primitive:e=>f(u.primitive(e),"primitive",e),integer:e=>f(u.integer(e),"integer",e),safeInteger:e=>f(u.safeInteger(e),"integer",e),plainObject:e=>f(u.plainObject(e),"plain object",e),typedArray:e=>f(u.typedArray(e),"TypedArray",e),arrayLike:e=>f(u.arrayLike(e),"array-like",e),domElement:e=>f(u.domElement(e),"HTMLElement",e),observable:e=>f(u.observable(e),"Observable",e),nodeStream:e=>f(u.nodeStream(e),"Node.js Stream",e),infinite:e=>f(u.infinite(e),"infinite number",e),emptyArray:e=>f(u.emptyArray(e),"empty array",e),nonEmptyArray:e=>f(u.nonEmptyArray(e),"non-empty array",e),emptyString:e=>f(u.emptyString(e),"empty string",e),nonEmptyString:e=>f(u.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>f(u.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>f(u.emptyObject(e),"empty object",e),nonEmptyObject:e=>f(u.nonEmptyObject(e),"non-empty object",e),emptySet:e=>f(u.emptySet(e),"empty set",e),nonEmptySet:e=>f(u.nonEmptySet(e),"non-empty set",e),emptyMap:e=>f(u.emptyMap(e),"empty map",e),nonEmptyMap:e=>f(u.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>f(u.evenInteger(e),"even integer",e),oddInteger:e=>f(u.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>f(u.directInstanceOf(e,t),"T",e),inRange:(e,t)=>f(u.inRange(e,t),"in range",e),any:(e,...t)=>f(u.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>f(u.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=u,e.exports=u,e.exports.default=u,e.exports.assert=t.assert},96504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62925),i=Number(process.versions.node.split(".")[0]),o=e=>{const t={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};e.timings=t;const r=e=>{const r=e.emit.bind(e);e.emit=(n,...i)=>("error"===n&&(t.error=Date.now(),t.phases.total=t.error-t.start,e.emit=r),r(n,...i))};r(e),e.prependOnceListener("abort",(()=>{t.abort=Date.now(),(!t.response||i>=13)&&(t.phases.total=Date.now()-t.start)}));const o=e=>{t.socket=Date.now(),t.phases.wait=t.socket-t.start;const r=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",r),n.default(e,{connect:()=>{t.connect=Date.now(),void 0===t.lookup&&(e.removeListener("lookup",r),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?o(e.socket):e.prependOnceListener("socket",o);const s=()=>{var e;t.upload=Date.now(),t.phases.request=t.upload-(null!==(e=t.secureConnect)&&void 0!==e?e:t.connect)};return("boolean"==typeof e.writableFinished?!e.writableFinished:!e.finished||0!==e.outputSize||e.socket&&0!==e.socket.writableLength)?e.prependOnceListener("finish",s):s(),e.prependOnceListener("response",(e=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,e.timings=t,r(e),e.prependOnceListener("end",(()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}))})),t};t.default=o,e.exports=o,e.exports.default=o},8275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinChromeBrowserFinder=void 0;const n=r(52918),i=r(28731);class o extends i.DarwinFinderBase{constructor(){super(...arguments),this.wellKnownPaths=[{path:"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",quality:"stable"},{path:"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary",quality:"canary"},{path:"/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta",quality:"beta"},{path:"/Applications/Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev",quality:"dev"}]}async findAll(){const e=await this.findLaunchRegisteredApps("google chrome\\( canary\\)\\?.app",["/Applications/Google Chrome.app","/Applications/Google Chrome Canary.app"],["/Contents/MacOS/Google Chrome Canary","/Contents/MacOS/Google Chrome"]);return(0,n.sort)(e,this.createPriorities([{name:"Chrome.app",weight:0,quality:"stable"},{name:"Chrome Canary.app",weight:1,quality:"canary"}]))}getPreferredPath(){return this.env.CHROME_PATH}}t.DarwinChromeBrowserFinder=o},94713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinEdgeBrowserFinder=void 0;const n=r(52918),i=r(28731);class o extends i.DarwinFinderBase{constructor(){super(...arguments),this.wellKnownPaths=[{path:"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",quality:"stable"},{path:"/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary",quality:"canary"},{path:"/Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta",quality:"beta"},{path:"/Applications/Microsoft Edge Dev.app/Contents/MacOS/Microsoft Edge Dev",quality:"dev"}]}async findAll(){const e=await this.findLaunchRegisteredApps("Microsoft Edge[A-Za-z ]*.app",["/Applications/Microsoft Edge.app"],["/Contents/MacOS/Microsoft Edge Canary","/Contents/MacOS/Microsoft Edge Beta","/Contents/MacOS/Microsoft Edge Dev","/Contents/MacOS/Microsoft Edge"]);return(0,n.sort)(e,this.createPriorities([{name:"Microsoft Edge.app",weight:0,quality:"stable"},{name:"Microsoft Edge Canary.app",weight:1,quality:"canary"},{name:"Microsoft Edge Beta.app",weight:2,quality:"beta"},{name:"Microsoft Edge Dev.app",weight:3,quality:"dev"}]))}getPreferredPath(){return this.env.EDGE_PATH}}t.DarwinEdgeBrowserFinder=o},28731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinFinderBase=void 0;const n=r(71017),i=r(52918),o=/( \(0x[a-f0-9]+\))/;t.DarwinFinderBase=class{constructor(e,t,r){this.env=e,this.fs=t,this.execa=r,this.lsRegisterCommand="/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump",this.wellKnownPaths=[]}async findWhere(e){for(const t of this.wellKnownPaths)if(e(t)&&await(0,i.canAccess)(this.fs,t.path))return t;return(await this.findAll()).find(e)}async findLaunchRegisteredApps(e,t,r){const{stdout:i}=await this.execa.command(`${this.lsRegisterCommand} | awk '$0 ~ /${e}${o.source}?$/ { $1=""; print $0 }'`,{shell:!0,stdio:"pipe"}),s=[...t,...i.split("\n").map((e=>e.trim().replace(o,"")))].filter((e=>!!e)),a=this.getPreferredPath();a&&s.push(a);const c=new Set;for(const e of s)for(const t of r){const r=n.posix.join(e.trim(),t);try{await this.fs.access(r),c.add(r)}catch(e){}}return c}createPriorities(e){const t=this.env.HOME&&(0,i.escapeRegexSpecialChars)(this.env.HOME),r=this.getPreferredPath(),n=e.reduce(((e,r)=>[...e,{regex:new RegExp(`^/Applications/.*${r.name}`),weight:r.weight+100,quality:r.quality},{regex:new RegExp(`^${t}/Applications/.*${r.name}`),weight:r.weight,quality:r.quality},{regex:new RegExp(`^/Volumes/.*${r.name}`),weight:r.weight-100,quality:r.quality}]),[]);return r&&n.unshift({regex:new RegExp((0,i.escapeRegexSpecialChars)(r)),weight:151,quality:"custom"}),n}}},5324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EdgeBrowserFinder=t.ChromeBrowserFinder=t.isQuality=t.allQualities=void 0;const n=r(8275),i=r(94713),o=r(39315),s=r(68377),a=r(75413),c=r(61326);t.allQualities=new Set(Object.keys({canary:null,stable:null,beta:null,dev:null,custom:null})),t.isQuality=e=>t.allQualities.has(e),t.ChromeBrowserFinder="win32"===process.platform?a.WindowsChromeBrowserFinder:"darwin"===process.platform?n.DarwinChromeBrowserFinder:o.LinuxChromeBrowserFinder,t.EdgeBrowserFinder="win32"===process.platform?c.WindowsEdgeBrowserFinder:"darwin"===process.platform?i.DarwinEdgeBrowserFinder:s.LinuxEdgeBrowserFinder},39315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinuxChromeBrowserFinder=void 0;const n=r(71017),i=r(52918),o=r(32081),s=r(22037),a=/\r?\n/;t.LinuxChromeBrowserFinder=class{constructor(e,t){this.env=e,this.fs=t,this.pathEnvironmentVar="CHROME_PATH",this.priorities=[{regex:/chrome-wrapper$/,weight:54,quality:"custom"},{regex:/google-chrome-dev$/,weight:53,quality:"dev"},{regex:/google-chrome-canary$/,weight:52,quality:"canary"},{regex:/google-chrome-unstable$/,weight:51,quality:"canary"},{regex:/google-chrome-canary$/,weight:51,quality:"canary"},{regex:/google-chrome-stable$/,weight:50,quality:"stable"},{regex:/google-chrome$/,weight:49,quality:"stable"},{regex:/chromium-browser$/,weight:48,quality:"custom"},{regex:/chromium$/,weight:47,quality:"custom"}],this.executablesOnPath=["google-chrome-unstable","google-chrome-dev","google-chrome-beta","google-chrome-canary","google-chrome-stable","google-chrome","chromium-browser","chromium"]}async findWhere(e){return(await this.findAll()).find(e)}async findAll(){const e=new Set,t=this.env[this.pathEnvironmentVar];t&&await(0,i.canAccess)(this.fs,t)&&e.add(t),[n.posix.join((0,s.homedir)(),".local/share/applications/"),"/usr/share/applications/","/usr/bin"].forEach((t=>{for(const r in this.findChromeExecutables(t))e.add(r)})),await Promise.all(this.executablesOnPath.map((async t=>{try{const r=(0,o.execFileSync)("which",[t],{stdio:"pipe"}).toString().split(a)[0];await(0,i.canAccess)(this.fs,r)&&e.add(r)}catch(e){}})));const r=t?[{regex:new RegExp((0,i.escapeRegexSpecialChars)(t)),weight:101,quality:"custom"}].concat(this.priorities):this.priorities;return(0,i.sort)(e,r)}async findChromeExecutables(e){const t=/(^[^ ]+).*/,r=`^Exec=/.*/(${this.executablesOnPath.join("|")})-.*`,n=[];if(await(0,i.canAccess)(this.fs,e)){let s;try{s=(0,o.execSync)(`grep -ER "${r}" ${e} | awk -F '=' '{print $2}'`)}catch(t){s=(0,o.execSync)(`grep -Er "${r}" ${e} | awk -F '=' '{print $2}'`)}const c=s.toString().split(a).map((e=>e.replace(t,"$1")));await Promise.all(c.map((async e=>{await(0,i.canAccess)(this.fs,e)&&n.push(e)})))}return n}}},68377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinuxEdgeBrowserFinder=void 0;const n=r(39315);class i extends n.LinuxChromeBrowserFinder{constructor(){super(...arguments),this.pathEnvironmentVar="EDGE_PATH",this.executablesOnPath=["microsoft-edge-dev","microsoft-edge-beta","microsoft-edge-stable","microsoft-edge"],this.priorities=[{regex:/microsoft-edge\-wrapper$/,weight:52,quality:"custom"},{regex:/microsoft-edge\-dev$/,weight:51,quality:"dev"},{regex:/microsoft-edge\-beta$/,weight:51,quality:"beta"},{regex:/microsoft-edge\-stable$/,weight:50,quality:"stable"},{regex:/microsoft-edge$/,weight:49,quality:"stable"}]}}t.LinuxEdgeBrowserFinder=i},52918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findWindowsCandidates=t.sort=t.preferredEdgePath=t.preferredChromePath=t.escapeRegexSpecialChars=t.canAccess=void 0;const n=r(71017);async function i({access:e},t){if(!t)return!1;try{return await e(t),!0}catch(e){return!1}}t.canAccess=i,t.escapeRegexSpecialChars=function(e,t){const r="/\\.?*()^${}|[]+".split("").filter((e=>!t||t.indexOf(e)<0)).join("").replace(/[\\\]]/g,"\\$&"),n=new RegExp(`[${r}]`,"g");return e.replace(n,"\\$&")},t.preferredChromePath=async function(e,t){if(await i(e,t.CHROME_PATH))return t.CHROME_PATH},t.preferredEdgePath=async function(e,t){if(await i(e,t.EDGE_PATH))return t.EDGE_PATH},t.sort=function(e,t){return[...e].filter((e=>!!e)).map((e=>{const r=t.find((t=>t.regex.test(e)));return r?{path:e,weight:r.weight,quality:r.quality}:{path:e,weight:10,quality:"dev"}})).sort(((e,t)=>t.weight-e.weight)).map((e=>({path:e.path,quality:e.quality})))},t.findWindowsCandidates=async function(e,t,r){const o=[e.LOCALAPPDATA,e.PROGRAMFILES,e["PROGRAMFILES(X86)"]].filter((e=>!!e)),s=[];for(const e of o)for(const o of r){const r=n.win32.join(e,o.name);s.push(i(t,r).then((e=>e?{path:r,quality:o.type}:void 0)))}return(await Promise.all(s)).filter((e=>!!e))}},75413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsChromeBrowserFinder=void 0;const n=r(71017),i=r(52918);t.WindowsChromeBrowserFinder=class{constructor(e,t){this.env=e,this.fs=t}async findWhere(e){return(await this.findAll()).find(e)}async findAll(){const e=n.win32.sep,t=[{name:`${e}Google${e}Chrome Dev${e}Application${e}chrome.exe`,type:"dev"},{name:`${e}Google${e}Chrome SxS${e}Application${e}chrome.exe`,type:"canary"},{name:`${e}Google${e}Chrome Beta${e}Application${e}chrome.exe`,type:"beta"},{name:`${e}Google${e}Chrome${e}Application${e}chrome.exe`,type:"stable"}],r=await(0,i.findWindowsCandidates)(this.env,this.fs,t),o=await(0,i.preferredChromePath)(this.fs,this.env);return o&&r.unshift({path:o,quality:"custom"}),r}}},61326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsEdgeBrowserFinder=void 0;const n=r(71017),i=r(52918);t.WindowsEdgeBrowserFinder=class{constructor(e,t){this.env=e,this.fs=t}async findWhere(e){return(await this.findAll()).find(e)}async findAll(){const e=[{name:`${n.sep}Microsoft${n.sep}Edge SxS${n.sep}Application${n.sep}msedge.exe`,type:"canary"},{name:`${n.sep}Microsoft${n.sep}Edge Dev${n.sep}Application${n.sep}msedge.exe`,type:"dev"},{name:`${n.sep}Microsoft${n.sep}Edge Beta${n.sep}Application${n.sep}msedge.exe`,type:"beta"},{name:`${n.sep}Microsoft${n.sep}Edge${n.sep}Application${n.sep}msedge.exe`,type:"stable"}],t=await(0,i.findWindowsCandidates)(this.env,this.fs,e),r=await(0,i.preferredEdgePath)(this.fs,this.env);return r&&t.unshift({path:r,quality:"custom"}),t}}},28844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAppContainerProcessTokens=void 0;const n=r(71017);let i;t.getAppContainerProcessTokens=e=>(()=>{if("win32"===process.platform)return i??=r(16477),i})()?.getAppContainerProcessTokens().map((t=>(0,n.join)(t,e)))},22681:function(e,t,r){!function(e,t){"use strict";var r="✖";function n(e){return e.name===r}function i(){}var o=function(e,r){if(void 0===r&&(r={}),this.toks=this.constructor.BaseParser.tokenizer(e,r),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:t.tokTypes.eof,start:0,end:0},this.tok.validateRegExpFlags=i,this.tok.validateRegExpPattern=i,this.options.locations){var n=this.toks.curPosition();this.tok.loc=new t.SourceLocation(this.toks,n,n)}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};o.prototype.startNode=function(){return new t.Node(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},o.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},o.prototype.startNodeAt=function(e){return this.options.locations?new t.Node(this.toks,e[0],e[1]):new t.Node(this.toks,e)},o.prototype.finishNode=function(e,t){return e.type=t,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e},o.prototype.dummyNode=function(e){var r=this.startNode();return r.type=e,r.end=r.start,this.options.locations&&(r.loc.end=r.loc.start),this.options.ranges&&(r.range[1]=r.start),this.last={type:t.tokTypes.name,start:r.start,end:r.start,loc:r.loc},r},o.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name=r,e},o.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw=r,e},o.prototype.eat=function(e){return this.tok.type===e&&(this.next(),!0)},o.prototype.isContextual=function(e){return this.tok.type===t.tokTypes.name&&this.tok.value===e},o.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(t.tokTypes.name)},o.prototype.canInsertSemicolon=function(){return this.tok.type===t.tokTypes.eof||this.tok.type===t.tokTypes.braceR||t.lineBreak.test(this.input.slice(this.last.end,this.tok.start))},o.prototype.semicolon=function(){return this.eat(t.tokTypes.semi)},o.prototype.expect=function(e){if(this.eat(e))return!0;for(var t=1;t<=2;t++)if(this.lookAhead(t).type===e){for(var r=0;r<t;r++)this.next();return!0}},o.prototype.pushCx=function(){this.context.push(this.curIndent)},o.prototype.popCx=function(){this.curIndent=this.context.pop()},o.prototype.lineEnd=function(e){for(;e<this.input.length&&!t.isNewLine(this.input.charCodeAt(e));)++e;return e},o.prototype.indentationAfter=function(e){for(var t=0;;++e){var r=this.input.charCodeAt(e);if(32===r)++t;else{if(9!==r)return t;t+=this.options.tabSize}}},o.prototype.closes=function(e,r,n,i){return this.tok.type===e||this.tok.type===t.tokTypes.eof||n!==this.curLineStart&&this.curIndent<r&&this.tokenStartsLine()&&(!i||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<r)},o.prototype.tokenStartsLine=function(){for(var e=this.tok.start-1;e>=this.curLineStart;--e){var t=this.input.charCodeAt(e);if(9!==t&&32!==t)return!1}return!0},o.prototype.extend=function(e,t){this[e]=t(this[e])},o.prototype.parse=function(){return this.next(),this.parseTopLevel()},o.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},o.parse=function(e,t){return new this(e,t).parse()},o.BaseParser=t.Parser;var s=o.prototype;function a(e){return e<14&&e>8||32===e||160===e||t.isNewLine(e)}s.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)}},s.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===t.tokTypes.dot&&"."===this.input.substr(this.toks.end,1)&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=t.tokTypes.ellipsis),new t.Token(this.toks)}catch(c){if(!(c instanceof SyntaxError))throw c;var e=c.message,n=c.raisedAt,i=!0;if(/unterminated/i.test(e))if(n=this.lineEnd(c.pos+1),/string/.test(e))i={start:c.pos,end:n,type:t.tokTypes.string,value:this.input.slice(c.pos+1,n)};else if(/regular expr/i.test(e)){var o=this.input.slice(c.pos,n);try{o=new RegExp(o)}catch(e){}i={start:c.pos,end:n,type:t.tokTypes.regexp,value:o}}else i=!!/template/.test(e)&&{start:c.pos,end:n,type:t.tokTypes.template,value:this.input.slice(c.pos,n)};else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(e))for(;n<this.input.length&&!a(this.input.charCodeAt(n));)++n;else if(/character escape|expected hexadecimal/i.test(e))for(;n<this.input.length;){var s=this.input.charCodeAt(n++);if(34===s||39===s||t.isNewLine(s))break}else if(/unexpected character/i.test(e))n++,i=!1;else{if(!/regular expression/i.test(e))throw c;i=!0}if(this.resetTo(n),!0===i&&(i={start:n,end:n,type:t.tokTypes.name,value:r}),i)return this.options.locations&&(i.loc=new t.SourceLocation(this.toks,t.getLineInfo(this.input,i.start),t.getLineInfo(this.input,i.end))),i}},s.resetTo=function(e){this.toks.pos=e;var r,n=this.input.charAt(e-1);if(this.toks.exprAllowed=!n||/[[{(,;:?/*=+\-~!|&%^<>]/.test(n)||/[enwfd]/.test(n)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations)for(this.toks.curLine=1,this.toks.lineStart=t.lineBreakG.lastIndex=0;(r=t.lineBreakG.exec(this.input))&&r.index<e;)++this.toks.curLine,this.toks.lineStart=r.index+r[0].length},s.lookAhead=function(e){for(;e>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var c=o.prototype;c.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,t.getLineInfo(this.input,0)]:0);for(e.body=[];this.tok.type!==t.tokTypes.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")},c.parseStatement=function(){var e,r=this.tok.type,i=this.startNode();switch(this.toks.isLet()&&(r=t.tokTypes._var,e="let"),r){case t.tokTypes._break:case t.tokTypes._continue:this.next();var o=r===t.tokTypes._break;return this.semicolon()||this.canInsertSemicolon()?i.label=null:(i.label=this.tok.type===t.tokTypes.name?this.parseIdent():null,this.semicolon()),this.finishNode(i,o?"BreakStatement":"ContinueStatement");case t.tokTypes._debugger:return this.next(),this.semicolon(),this.finishNode(i,"DebuggerStatement");case t.tokTypes._do:return this.next(),i.body=this.parseStatement(),i.test=this.eat(t.tokTypes._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(i,"DoWhileStatement");case t.tokTypes._for:this.next();var s=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(t.tokTypes.parenL),this.tok.type===t.tokTypes.semi)return this.parseFor(i,null);var a=this.toks.isLet();if(a||this.tok.type===t.tokTypes._var||this.tok.type===t.tokTypes._const){var c=this.parseVar(this.startNode(),!0,a?"let":this.tok.value);return 1!==c.declarations.length||this.tok.type!==t.tokTypes._in&&!this.isContextual("of")?this.parseFor(i,c):(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(i.await=s),this.parseForIn(i,c))}var u=this.parseExpression(!0);return this.tok.type===t.tokTypes._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(i.await=s),this.parseForIn(i,this.toAssignable(u))):this.parseFor(i,u);case t.tokTypes._function:return this.next(),this.parseFunction(i,!0);case t.tokTypes._if:return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement(),i.alternate=this.eat(t.tokTypes._else)?this.parseStatement():null,this.finishNode(i,"IfStatement");case t.tokTypes._return:return this.next(),this.eat(t.tokTypes.semi)||this.canInsertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement");case t.tokTypes._switch:var l,p=this.curIndent,d=this.curLineStart;for(this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.pushCx(),this.expect(t.tokTypes.braceL);!this.closes(t.tokTypes.braceR,p,d,!0);)if(this.tok.type===t.tokTypes._case||this.tok.type===t.tokTypes._default){var h=this.tok.type===t.tokTypes._case;l&&this.finishNode(l,"SwitchCase"),i.cases.push(l=this.startNode()),l.consequent=[],this.next(),l.test=h?this.parseExpression():null,this.expect(t.tokTypes.colon)}else l||(i.cases.push(l=this.startNode()),l.consequent=[],l.test=null),l.consequent.push(this.parseStatement());return l&&this.finishNode(l,"SwitchCase"),this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(i,"SwitchStatement");case t.tokTypes._throw:return this.next(),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement");case t.tokTypes._try:if(this.next(),i.block=this.parseBlock(),i.handler=null,this.tok.type===t.tokTypes._catch){var f=this.startNode();this.next(),this.eat(t.tokTypes.parenL)?(f.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(t.tokTypes.parenR)):f.param=null,f.body=this.parseBlock(),i.handler=this.finishNode(f,"CatchClause")}return i.finalizer=this.eat(t.tokTypes._finally)?this.parseBlock():null,i.handler||i.finalizer?this.finishNode(i,"TryStatement"):i.block;case t.tokTypes._var:case t.tokTypes._const:return this.parseVar(i,!1,e||this.tok.value);case t.tokTypes._while:return this.next(),i.test=this.parseParenExpression(),i.body=this.parseStatement(),this.finishNode(i,"WhileStatement");case t.tokTypes._with:return this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement(),this.finishNode(i,"WithStatement");case t.tokTypes.braceL:return this.parseBlock();case t.tokTypes.semi:return this.next(),this.finishNode(i,"EmptyStatement");case t.tokTypes._class:return this.parseClass(!0);case t.tokTypes._import:if(this.options.ecmaVersion>10){var m=this.lookAhead(1).type;if(m===t.tokTypes.parenL||m===t.tokTypes.dot)return i.expression=this.parseExpression(),this.semicolon(),this.finishNode(i,"ExpressionStatement")}return this.parseImport();case t.tokTypes._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(i,!0,!0);var g=this.parseExpression();return n(g)?(this.next(),this.tok.type===t.tokTypes.eof?this.finishNode(i,"EmptyStatement"):this.parseStatement()):r===t.tokTypes.name&&"Identifier"===g.type&&this.eat(t.tokTypes.colon)?(i.body=this.parseStatement(),i.label=g,this.finishNode(i,"LabeledStatement")):(i.expression=g,this.semicolon(),this.finishNode(i,"ExpressionStatement"))}},c.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(t.tokTypes.braceL);var r=this.curIndent,n=this.curLineStart;for(e.body=[];!this.closes(t.tokTypes.braceR,r,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(e,"BlockStatement")},c.parseFor=function(e,r){return e.init=r,e.test=e.update=null,this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.semi&&(e.test=this.parseExpression()),this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(t.tokTypes.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")},c.parseForIn=function(e,r){var n=this.tok.type===t.tokTypes._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=r,e.right=this.parseExpression(),this.popCx(),this.expect(t.tokTypes.parenR),e.body=this.parseStatement(),this.finishNode(e,n)},c.parseVar=function(e,r,n){e.kind=n,this.next(),e.declarations=[];do{var i=this.startNode();i.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),i.init=this.eat(t.tokTypes.eq)?this.parseMaybeAssign(r):null,e.declarations.push(this.finishNode(i,"VariableDeclarator"))}while(this.eat(t.tokTypes.comma));if(!e.declarations.length){var o=this.startNode();o.id=this.dummyIdent(),e.declarations.push(this.finishNode(o,"VariableDeclarator"))}return r||this.semicolon(),this.finishNode(e,"VariableDeclaration")},c.parseClass=function(e){var r=this.startNode();this.next(),this.tok.type===t.tokTypes.name?r.id=this.parseIdent():r.id=!0===e?this.dummyIdent():null,r.superClass=this.eat(t.tokTypes._extends)?this.parseExpression():null,r.body=this.startNode(),r.body.body=[],this.pushCx();var n=this.curIndent+1,i=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1<n&&(n=this.curIndent,i=this.curLineStart);!this.closes(t.tokTypes.braceR,n,i);){var o=this.parseClassElement();o&&r.body.body.push(o)}return this.popCx(),this.eat(t.tokTypes.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(r.body,"ClassBody"),this.finishNode(r,e?"ClassDeclaration":"ClassExpression")},c.parseClassElement=function(){if(this.eat(t.tokTypes.semi))return null;var e=this.options,r=e.ecmaVersion,i=e.locations,o=this.curIndent,s=this.curLineStart,a=this.startNode(),c="",u=!1,l=!1,p="method",d=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(t.tokTypes.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.toks.type===t.tokTypes.star?d=!0:c="static"}if(a.static=d,!c&&r>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.toks.type!==t.tokTypes.star||this.canInsertSemicolon()?c="async":l=!0),!c){u=this.eat(t.tokTypes.star);var h=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=h:c=h)}if(c)a.computed=!1,a.key=this.startNodeAt(i?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),a.key.name=c,this.finishNode(a.key,"Identifier");else if(this.parseClassElementName(a),n(a.key))return n(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma),null;if(r<13||this.toks.type===t.tokTypes.parenL||"method"!==p||u||l){var f=!a.computed&&!a.static&&!u&&!l&&"method"===p&&("Identifier"===a.key.type&&"constructor"===a.key.name||"Literal"===a.key.type&&"constructor"===a.key.value);a.kind=f?"constructor":p,a.value=this.parseMethod(u,l),this.finishNode(a,"MethodDefinition")}else{if(this.eat(t.tokTypes.eq))if(this.curLineStart!==s&&this.curIndent<=o&&this.tokenStartsLine())a.value=null;else{var m=this.inAsync,g=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,a.value=this.parseMaybeAssign(),this.inAsync=m,this.inGenerator=g}else a.value=null;this.semicolon(),this.finishNode(a,"PropertyDefinition")}return a},c.parseClassStaticBlock=function(e){var r=this.curIndent,n=this.curLineStart;for(e.body=[],this.pushCx();!this.closes(t.tokTypes.braceR,r,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(e,"StaticBlock")},c.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},c.parseClassElementName=function(e){this.toks.type===t.tokTypes.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},c.parseFunction=function(e,r,n){var i=this.inAsync,o=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(t.tokTypes.star)),this.options.ecmaVersion>=8&&(e.async=!!n),this.tok.type===t.tokTypes.name?e.id=this.parseIdent():!0===r&&(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=i,this.inGenerator=o,this.inFunction=s,this.finishNode(e,r?"FunctionDeclaration":"FunctionExpression")},c.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(t.tokTypes.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(t.tokTypes._default)){var r;if(this.tok.type===t.tokTypes._function||(r=this.toks.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,"nullableID",r)}else this.tok.type===t.tokTypes._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")},c.parseImport=function(){var e,r=this.startNode();return this.next(),this.tok.type===t.tokTypes.string?(r.specifiers=[],r.source=this.parseExprAtom()):(this.tok.type===t.tokTypes.name&&"from"!==this.tok.value&&((e=this.startNode()).local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(t.tokTypes.comma)),r.specifiers=this.parseImportSpecifiers(),r.source=this.eatContextual("from")&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.dummyString(),e&&r.specifiers.unshift(e)),this.semicolon(),this.finishNode(r,"ImportDeclaration")},c.parseImportSpecifiers=function(){var e=[];if(this.tok.type===t.tokTypes.star){var r=this.startNode();this.next(),r.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(r,"ImportNamespaceSpecifier"))}else{var i=this.curIndent,o=this.curLineStart,s=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>s&&(s=this.curLineStart);!this.closes(t.tokTypes.braceR,i+(this.curLineStart<=s?1:0),o);){var a=this.startNode();if(this.eat(t.tokTypes.star))a.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(a,"ImportNamespaceSpecifier");else{if(this.isContextual("from"))break;if(a.imported=this.parseModuleExportName(),n(a.imported))break;a.local=this.eatContextual("as")?this.parseModuleExportName():a.imported,this.finishNode(a,"ImportSpecifier")}e.push(a),this.eat(t.tokTypes.comma)}this.eat(t.tokTypes.braceR),this.popCx()}return e},c.parseExportSpecifierList=function(){var e=[],r=this.curIndent,i=this.curLineStart,o=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>o&&(o=this.curLineStart);!this.closes(t.tokTypes.braceR,r+(this.curLineStart<=o?1:0),i)&&!this.isContextual("from");){var s=this.startNode();if(s.local=this.parseModuleExportName(),n(s.local))break;s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.finishNode(s,"ExportSpecifier"),e.push(s),this.eat(t.tokTypes.comma)}return this.eat(t.tokTypes.braceR),this.popCx(),e},c.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent()};var u=o.prototype;u.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()}},u.parseExpression=function(e){var r=this.storeCurrentPos(),n=this.parseMaybeAssign(e);if(this.tok.type===t.tokTypes.comma){var i=this.startNodeAt(r);for(i.expressions=[n];this.eat(t.tokTypes.comma);)i.expressions.push(this.parseMaybeAssign(e));return this.finishNode(i,"SequenceExpression")}return n},u.parseParenExpression=function(){this.pushCx(),this.expect(t.tokTypes.parenL);var e=this.parseExpression();return this.popCx(),this.expect(t.tokTypes.parenR),e},u.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var r=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==t.tokTypes.star&&!this.tok.type.startsExpr?(r.delegate=!1,r.argument=null):(r.delegate=this.eat(t.tokTypes.star),r.argument=this.parseMaybeAssign()),this.finishNode(r,"YieldExpression")}var n=this.storeCurrentPos(),i=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var o=this.startNodeAt(n);return o.operator=this.tok.value,o.left=this.tok.type===t.tokTypes.eq?this.toAssignable(i):this.checkLVal(i),this.next(),o.right=this.parseMaybeAssign(e),this.finishNode(o,"AssignmentExpression")}return i},u.parseMaybeConditional=function(e){var r=this.storeCurrentPos(),n=this.parseExprOps(e);if(this.eat(t.tokTypes.question)){var i=this.startNodeAt(r);return i.test=n,i.consequent=this.parseMaybeAssign(),i.alternate=this.expect(t.tokTypes.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(i,"ConditionalExpression")}return n},u.parseExprOps=function(e){var t=this.storeCurrentPos(),r=this.curIndent,n=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,r,n)},u.parseExprOp=function(e,r,n,i,o,s){if(this.curLineStart!==s&&this.curIndent<o&&this.tokenStartsLine())return e;var a=this.tok.type.binop;if(null!=a&&(!i||this.tok.type!==t.tokTypes._in)&&a>n){var c=this.startNodeAt(r);if(c.left=e,c.operator=this.tok.value,this.next(),this.curLineStart!==s&&this.curIndent<o&&this.tokenStartsLine())c.right=this.dummyIdent();else{var u=this.storeCurrentPos();c.right=this.parseExprOp(this.parseMaybeUnary(!1),u,a,i,o,s)}return this.finishNode(c,/&&|\|\||\?\?/.test(c.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(c,r,n,i,o,s)}return e},u.parseMaybeUnary=function(e){var r,n=this.storeCurrentPos();if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var i=this.startNode(),o=this.tok.type===t.tokTypes.incDec;o||(e=!0),i.operator=this.tok.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(!0),o&&(i.argument=this.checkLVal(i.argument)),r=this.finishNode(i,o?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===t.tokTypes.ellipsis){var s=this.startNode();this.next(),s.argument=this.parseMaybeUnary(e),r=this.finishNode(s,"SpreadElement")}else if(e||this.tok.type!==t.tokTypes.privateId)for(r=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(n);a.operator=this.tok.value,a.prefix=!1,a.argument=this.checkLVal(r),this.next(),r=this.finishNode(a,"UpdateExpression")}else r=this.parsePrivateIdent();if(!e&&this.eat(t.tokTypes.starstar)){var c=this.startNodeAt(n);return c.operator="**",c.left=r,c.right=this.parseMaybeUnary(!1),this.finishNode(c,"BinaryExpression")}return r},u.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)},u.parseSubscripts=function(e,r,n,i,o){for(var s=this.options.ecmaVersion>=11,a=!1;;){if(this.curLineStart!==o&&this.curIndent<=i&&this.tokenStartsLine()){if(this.tok.type!==t.tokTypes.dot||this.curIndent!==i)break;--i}var c="Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon(),u=s&&this.eat(t.tokTypes.questionDot);if(u&&(a=!0),u&&this.tok.type!==t.tokTypes.parenL&&this.tok.type!==t.tokTypes.bracketL&&this.tok.type!==t.tokTypes.backQuote||this.eat(t.tokTypes.dot)){var l=this.startNodeAt(r);l.object=e,this.curLineStart!==o&&this.curIndent<=i&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,s&&(l.optional=u),e=this.finishNode(l,"MemberExpression")}else if(this.tok.type===t.tokTypes.bracketL){this.pushCx(),this.next();var p=this.startNodeAt(r);p.object=e,p.property=this.parseExpression(),p.computed=!0,s&&(p.optional=u),this.popCx(),this.expect(t.tokTypes.bracketR),e=this.finishNode(p,"MemberExpression")}else if(n||this.tok.type!==t.tokTypes.parenL){if(this.tok.type!==t.tokTypes.backQuote)break;var d=this.startNodeAt(r);d.tag=e,d.quasi=this.parseTemplate(),e=this.finishNode(d,"TaggedTemplateExpression")}else{var h=this.parseExprList(t.tokTypes.parenR);if(c&&this.eat(t.tokTypes.arrow))return this.parseArrowExpression(this.startNodeAt(r),h,!0);var f=this.startNodeAt(r);f.callee=e,f.arguments=h,s&&(f.optional=u),e=this.finishNode(f,"CallExpression")}}if(a){var m=this.startNodeAt(r);m.expression=e,e=this.finishNode(m,"ChainExpression")}return e},u.parseExprAtom=function(){var e;switch(this.tok.type){case t.tokTypes._this:case t.tokTypes._super:var r=this.tok.type===t.tokTypes._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,r);case t.tokTypes.name:var i=this.storeCurrentPos(),o=this.parseIdent(),s=!1;if("async"===o.name&&!this.canInsertSemicolon()){if(this.eat(t.tokTypes._function))return this.toks.overrideContext(t.tokContexts.f_expr),this.parseFunction(this.startNodeAt(i),!1,!0);this.tok.type===t.tokTypes.name&&(o=this.parseIdent(),s=!0)}return this.eat(t.tokTypes.arrow)?this.parseArrowExpression(this.startNodeAt(i),[o],s):o;case t.tokTypes.regexp:e=this.startNode();var a=this.tok.value;return e.regex={pattern:a.pattern,flags:a.flags},e.value=a.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case t.tokTypes.num:case t.tokTypes.string:return(e=this.startNode()).value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===t.tokTypes.num&&110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case t.tokTypes._null:case t.tokTypes._true:case t.tokTypes._false:return(e=this.startNode()).value=this.tok.type===t.tokTypes._null?null:this.tok.type===t.tokTypes._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case t.tokTypes.parenL:var c=this.storeCurrentPos();this.next();var u=this.parseExpression();if(this.expect(t.tokTypes.parenR),this.eat(t.tokTypes.arrow)){var l=u.expressions||[u];return l.length&&n(l[l.length-1])&&l.pop(),this.parseArrowExpression(this.startNodeAt(c),l)}if(this.options.preserveParens){var p=this.startNodeAt(c);p.expression=u,u=this.finishNode(p,"ParenthesizedExpression")}return u;case t.tokTypes.bracketL:return(e=this.startNode()).elements=this.parseExprList(t.tokTypes.bracketR,!0),this.finishNode(e,"ArrayExpression");case t.tokTypes.braceL:return this.toks.overrideContext(t.tokContexts.b_expr),this.parseObj();case t.tokTypes._class:return this.parseClass(!1);case t.tokTypes._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case t.tokTypes._new:return this.parseNew();case t.tokTypes.backQuote:return this.parseTemplate();case t.tokTypes._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},u.parseExprImport=function(){var e=this.startNode(),r=this.parseIdent(!0);switch(this.tok.type){case t.tokTypes.parenL:return this.parseDynamicImport(e);case t.tokTypes.dot:return e.meta=r,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}},u.parseDynamicImport=function(e){return e.source=this.parseExprList(t.tokTypes.parenR)[0]||this.dummyString(),this.finishNode(e,"ImportExpression")},u.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")},u.parseNew=function(){var e=this.startNode(),r=th