UNPKG

2.42 MBJavaScriptView Raw
1#!/usr/bin/env node
2import Discover from 'node-discover';
3import yargs from 'yargs';
4import require$$3, { resolve, join, sep } from 'path';
5import { readFile } from 'fs/promises';
6import { hideBin } from 'yargs/helpers';
7import ansiColors from 'ansi-colors';
8import { fromNodeMiddleware, handleCors, getRequestHeader, eventHandler, setResponseHeader, getResponseHeader, getRouterParams, getQuery, send, toNodeListener, createApp, createRouter, readBody } from 'h3';
9import { listen } from 'listhen';
10import mergician from 'mergician';
11import { createProxyMiddleware, responseInterceptor } from 'http-proxy-middleware';
12import serveStatic$1 from 'serve-static';
13import morgan$1, { token } from 'morgan';
14import require$$1, { promises } from 'fs';
15import { replace } from '@jota-one/replacer';
16import { async } from 'rrdir';
17import { v4 } from 'uuid';
18import require$$2, { createRequire } from 'module';
19import require$$0 from 'crypto';
20import require$$4 from 'util';
21import require$$5 from 'perf_hooks';
22import require$$6 from 'os';
23import require$$7 from 'vm';
24import require$$8 from 'url';
25import require$$9 from 'assert';
26import require$$1$1 from 'buffer';
27import require$$6$1 from 'tty';
28import Loki from 'lokijs';
29import _vorpal from '@moleculer/vorpal';
30
31function cleanIndexInpath(pathPart) {
32 return pathPart.startsWith("[") ? pathPart.replace(/\D/g, "") : pathPart;
33}
34function getObjectPaths(paths) {
35 return [].concat(paths).map(
36 (path) => path.split(".").map(cleanIndexInpath).join(".")
37 );
38}
39function curry(fn) {
40 return function(...args) {
41 return fn.bind(null, ...args);
42 };
43}
44function isEmpty(obj) {
45 if (!obj) {
46 return true;
47 }
48 return !Object.keys(obj).length;
49}
50function get(obj, path, defaultValue) {
51 const result = path.split(".").reduce((r, p) => {
52 if (typeof r === "object" && r !== null) {
53 p = cleanIndexInpath(p);
54 return r[p];
55 }
56 return void 0;
57 }, obj);
58 return result === void 0 ? defaultValue : result;
59}
60function omit(obj, paths) {
61 if (obj === null) {
62 return null;
63 }
64 if (!obj) {
65 return obj;
66 }
67 if (typeof obj !== "object") {
68 return obj;
69 }
70 const buildObj = (obj2, paths2, _path = "", _result) => {
71 const result = !_result ? Array.isArray(obj2) ? [] : {} : _result;
72 for (const [key, value] of Object.entries(obj2)) {
73 if (paths2.includes(key)) {
74 continue;
75 }
76 if (typeof value === "object" && value !== null) {
77 result[key] = buildObj(
78 value,
79 paths2,
80 `${_path}${key}.`,
81 Array.isArray(value) ? [] : {}
82 );
83 } else {
84 result[key] = value;
85 }
86 }
87 return result;
88 };
89 return buildObj(obj, getObjectPaths(paths));
90}
91function pick(obj, paths) {
92 const result = {};
93 for (const path of getObjectPaths(paths)) {
94 const value = get(obj, path);
95 if (value) {
96 set(result, path, value);
97 }
98 }
99 return result;
100}
101function set(obj, path, val) {
102 path.split && (path = path.split("."));
103 let i = 0;
104 const l = path.length;
105 let t = obj;
106 let x;
107 let k;
108 while (i < l) {
109 k = path[i++];
110 if (k === "__proto__" || k === "constructor" || k === "prototype")
111 break;
112 t = t[k] = i === l ? val : typeof (x = t[k]) === typeof path && t[k] !== null ? x : path[i] * 0 !== 0 || !!~("" + path[i]).indexOf(".") ? {} : [];
113 }
114}
115function cloneDeep(obj) {
116 return mergician({}, obj);
117}
118function merge(obj1, obj2) {
119 return mergician(obj1, obj2);
120}
121
122const RESTART_DISABLED_IN_ESM_MODE = "Restart is not supported in esm mode.";
123
124const config = {
125 db: {
126 reservedFields: ["DROSSE", "meta", "$loki"]
127 },
128 icons: {
129 handler: {
130 asset: "\u{1F4C1}",
131 body: "\u{1FA9D} ",
132 service: "\u{1F6E0}\uFE0F ",
133 static: "\u{1F4CC}"
134 },
135 plugin: {
136 proxy: "\u{1F500}",
137 middleware: "\u{1F9E9}",
138 template: "\u{1F4DC}",
139 throttle: "\u23F3"
140 }
141 },
142 state: {
143 assetsPath: "assets",
144 baseUrl: "",
145 basePath: "",
146 collectionsPath: "collections",
147 database: "mocks.json",
148 dbAdapter: "LokiFsAdapter",
149 name: "Drosse mock server",
150 port: 8e3,
151 reservedRoutes: { ui: "/UI", cmd: "/CMD" },
152 routesFile: "routes",
153 scrapedPath: "scraped",
154 scraperServicesPath: "scrapers",
155 servicesPath: "services",
156 shallowCollections: [],
157 staticPath: "static",
158 uploadPath: "uploadedFiles",
159 uuid: ""
160 },
161 cli: null,
162 commands: {},
163 errorHandler: null,
164 extendServer: null,
165 middlewares: ["morgan"],
166 templates: {},
167 onHttpUpgrade: null
168};
169
170function Logger() {
171 this.debug = function(...args) {
172 log("white", args);
173 };
174 this.success = function(...args) {
175 log("green", args);
176 };
177 this.info = function(...args) {
178 log("cyan", args);
179 };
180 this.warn = function(...args) {
181 log("yellow", args);
182 };
183 this.error = function(...args) {
184 log("red", args);
185 };
186}
187function getTime() {
188 return new Date().toLocaleTimeString();
189}
190function log(color, args) {
191 args = args.map((arg) => {
192 if (typeof arg === "object") {
193 return JSON.stringify(arg);
194 }
195 return arg;
196 });
197 console.log(ansiColors.gray(getTime()), ansiColors[color](args.join(" ")));
198}
199const logger = new Logger();
200
201const rewriteLinks$1 = (links) => Object.entries(links).reduce((links2, [key, link]) => {
202 let { href } = link;
203 if (href.indexOf("http") === 0) {
204 href = `/${href.split("/").slice(3).join("/")}`;
205 }
206 links2[key] = { ...link, href };
207 return links2;
208}, {});
209const walkObj$1 = (root = {}, prefix = "") => {
210 if (typeof root !== "object") {
211 return root;
212 }
213 const obj = (prefix ? get(root, prefix) : root) || {};
214 Object.entries(obj).forEach(([key, value]) => {
215 const path = `${prefix && prefix + "."}${key}`;
216 if (key === "_links") {
217 set(root, path, rewriteLinks$1(value));
218 }
219 walkObj$1(root, path);
220 });
221};
222function halLinks(body) {
223 walkObj$1(body);
224 return body;
225}
226
227const rewriteLinks = (links) => links.map((link) => {
228 let { href } = link;
229 if (href.indexOf("http") === 0) {
230 href = `/${href.split("/").slice(3).join("/")}`;
231 }
232 return { ...link, href };
233});
234const walkObj = (root = {}, prefix = "") => {
235 if (typeof root !== "object") {
236 return root;
237 }
238 const obj = (prefix ? get(root, prefix) : root) || {};
239 Object.entries(obj).forEach(([key, value]) => {
240 const path = `${prefix && prefix + "."}${key}`;
241 if (key === "links") {
242 const linkKeys = Object.keys(value[0] || []);
243 if (linkKeys.includes("href") && linkKeys.includes("rel")) {
244 set(root, path, rewriteLinks(value));
245 } else {
246 walkObj(root, path);
247 }
248 }
249 walkObj(root, path);
250 });
251};
252function hateoasLinks(body) {
253 walkObj(body);
254 return body;
255}
256
257let state$9 = JSON.parse(JSON.stringify(config.state));
258function useState() {
259 return {
260 set(key, value) {
261 state$9[key] = value;
262 },
263 get(key) {
264 if (key) {
265 return state$9[key];
266 }
267 return state$9;
268 },
269 merge(conf) {
270 const keysWhitelist = Object.keys(state$9);
271 state$9 = merge(state$9, pick(conf, keysWhitelist));
272 }
273 };
274}
275
276const state$8 = useState();
277token("time", function getTime() {
278 return ansiColors.gray(new Date().toLocaleTimeString());
279});
280token("status", function(req, res) {
281 const col = color(res.statusCode, req.method);
282 return ansiColors[col](res.statusCode);
283});
284token("method", function(req, res) {
285 const verb = req.method.padEnd(7);
286 const col = color(res.statusCode, req.method);
287 return ansiColors[col](verb);
288});
289token("handler", function(req, res) {
290 const handlerType = res.getHeader("x-drosse-handler-type");
291 return handlerType ? config.icons.handler[handlerType] : " ";
292});
293token("url", function(req, res) {
294 const url = req.originalUrl || req.url;
295 return res.getHeader("x-proxied") ? ansiColors.cyan(url) : ansiColors[color(res.statusCode, req.method)](url);
296});
297token("plugins", function(req, res) {
298 const plugins = res.getHeader("x-drosse-handler-plugins");
299 return plugins ? plugins.split(",").map((plugin) => config.icons.plugin[plugin]).join(" ") : "";
300});
301token("proxied", function(req, res) {
302 return res.getHeader("x-proxied") ? ansiColors.cyanBright(`${config.icons.handler.proxy} proxied`) : "";
303});
304const color = (status, method) => {
305 if (method === "OPTIONS") {
306 return "greenBright";
307 }
308 if (status >= 400) {
309 return "red";
310 }
311 if (status >= 300) {
312 return "yellow";
313 }
314 return "green";
315};
316const format = function(tokens, req, res) {
317 return [
318 tokens.time(req, res),
319 tokens.method(req, res),
320 tokens.status(req, res),
321 "-",
322 tokens["response-time"](req, res, 0) ? tokens["response-time"](req, res, 0).concat("ms").padEnd(7) : "\u{1F6AB}",
323 tokens.handler(req, res),
324 tokens.url(req, res),
325 tokens.plugins(req, res),
326 tokens.proxied(req, res)
327 ].join(" ");
328};
329const morgan = fromNodeMiddleware(
330 morgan$1(format, {
331 skip: (req) => Object.values(state$8.get("reservedRoutes")).includes(req.url)
332 })
333);
334
335function openCors(event) {
336 handleCors(event, {
337 origin: getRequestHeader(event, "origin") || "*",
338 methods: [
339 "GET",
340 "PUT",
341 "POST",
342 "PATCH",
343 "DELETE",
344 "OPTIONS",
345 "HEAD",
346 "CONNECT"
347 ],
348 allowHeaders: "*",
349 credentials: true,
350 preflight: {
351 statusCode: 204
352 }
353 });
354}
355
356const internalMiddlewares = {
357 "hal-links": halLinks,
358 "hateoas-links": hateoasLinks,
359 morgan,
360 "open-cors": openCors
361};
362
363var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
364
365var jiti = {exports: {}};
366
367var hasRequiredJiti;
368
369function requireJiti () {
370 if (hasRequiredJiti) return jiti.exports;
371 hasRequiredJiti = 1;
372 (function (module) {
373 (()=>{var __webpack_modules__={"./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js":(module,__unused_webpack_exports,__webpack_require__)=>{const nativeModule=__webpack_require__("module"),path=__webpack_require__("path"),fs=__webpack_require__("fs");module.exports=function(filename){return filename||(filename=process.cwd()),function(path){try{return fs.lstatSync(path).isDirectory()}catch(e){return !1}}(filename)&&(filename=path.join(filename,"index.js")),nativeModule.createRequire?nativeModule.createRequire(filename):nativeModule.createRequireFromPath?nativeModule.createRequireFromPath(filename):function(filename){const mod=new nativeModule.Module(filename,null);return mod.filename=filename,mod.paths=nativeModule.Module._nodeModulePaths(path.dirname(filename)),mod._compile("module.exports = require;",filename),mod.exports}(filename)};},"./node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{const Yallist=__webpack_require__("./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1;const get=(self,key,doUse)=>{const node=self[CACHE].get(key);if(node){const hit=node.value;if(isStale(self,hit)){if(del(self,node),!self[ALLOW_STALE])return}else doUse&&(self[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self,hit)=>{if(!hit||!hit.maxAge&&!self[MAX_AGE])return !1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self[MAX_AGE]&&diff>self[MAX_AGE]},trim=self=>{if(self[LENGTH]>self[MAX])for(let walker=self[LRU_LIST].tail;self[LENGTH]>self[MAX]&&null!==walker;){const prev=walker.prev;del(self,walker),walker=prev;}},del=(self,node)=>{if(node){const hit=node.value;self[DISPOSE]&&self[DISPOSE](hit.key,hit.value),self[LENGTH]-=hit.length,self[CACHE].delete(hit.key),self[LRU_LIST].removeNode(node);}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0;}}const forEachStep=(self,fn,node,thisp)=>{let hit=node.value;isStale(self,hit)&&(del(self,node),self[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self);};module.exports=class{constructor(options){if("number"==typeof options&&(options={max:options}),options||(options={}),options.max&&("number"!=typeof options.max||options.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options.max||1/0;const lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]="function"!=typeof lc?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&"number"!=typeof options.maxAge)throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset();}set max(mL){if("number"!=typeof mL||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this);}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale;}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if("number"!=typeof mA)throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this);}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){"function"!=typeof lC&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach((hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length;}))),trim(this);}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;null!==walker;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev;}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;null!==walker;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next;}}keys(){return this[LRU_LIST].toArray().map((k=>k.key))}values(){return this[LRU_LIST].toArray().map((k=>k.value))}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach((hit=>this[DISPOSE](hit.key,hit.value))),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0;}dump(){return this[LRU_LIST].map((hit=>!isStale(this,hit)&&{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)})).toArray().filter((h=>h))}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if((maxAge=maxAge||this[MAX_AGE])&&"number"!=typeof maxAge)throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return !1;const hit=this[CACHE].get(key).value;return !isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key));}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(0===expiresAt)this.set(hit.k,hit.v);else {const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge);}}}prune(){this[CACHE].forEach(((value,key)=>get(this,key,!1)));}};},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{const optsArg=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js"),pathArg=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"),{mkdirpNative,mkdirpNativeSync}=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"),{mkdirpManual,mkdirpManualSync}=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"),{useNative,useNativeSync}=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js"),mkdirp=(path,opts)=>(path=pathArg(path),opts=optsArg(opts),useNative(opts)?mkdirpNative(path,opts):mkdirpManual(path,opts));mkdirp.sync=(path,opts)=>(path=pathArg(path),opts=optsArg(opts),useNativeSync(opts)?mkdirpNativeSync(path,opts):mkdirpManualSync(path,opts)),mkdirp.native=(path,opts)=>mkdirpNative(pathArg(path),optsArg(opts)),mkdirp.manual=(path,opts)=>mkdirpManual(pathArg(path),optsArg(opts)),mkdirp.nativeSync=(path,opts)=>mkdirpNativeSync(pathArg(path),optsArg(opts)),mkdirp.manualSync=(path,opts)=>mkdirpManualSync(pathArg(path),optsArg(opts)),module.exports=mkdirp;},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js":(module,__unused_webpack_exports,__webpack_require__)=>{const{dirname}=__webpack_require__("path"),findMade=(opts,parent,path)=>path===parent?Promise.resolve():opts.statAsync(parent).then((st=>st.isDirectory()?path:void 0),(er=>"ENOENT"===er.code?findMade(opts,dirname(parent),parent):void 0)),findMadeSync=(opts,parent,path)=>{if(path!==parent)try{return opts.statSync(parent).isDirectory()?path:void 0}catch(er){return "ENOENT"===er.code?findMadeSync(opts,dirname(parent),parent):void 0}};module.exports={findMade,findMadeSync};},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js":(module,__unused_webpack_exports,__webpack_require__)=>{const{dirname}=__webpack_require__("path"),mkdirpManual=(path,opts,made)=>{opts.recursive=!1;const parent=dirname(path);return parent===path?opts.mkdirAsync(path,opts).catch((er=>{if("EISDIR"!==er.code)throw er})):opts.mkdirAsync(path,opts).then((()=>made||path),(er=>{if("ENOENT"===er.code)return mkdirpManual(parent,opts).then((made=>mkdirpManual(path,opts,made)));if("EEXIST"!==er.code&&"EROFS"!==er.code)throw er;return opts.statAsync(path).then((st=>{if(st.isDirectory())return made;throw er}),(()=>{throw er}))}))},mkdirpManualSync=(path,opts,made)=>{const parent=dirname(path);if(opts.recursive=!1,parent===path)try{return opts.mkdirSync(path,opts)}catch(er){if("EISDIR"!==er.code)throw er;return}try{return opts.mkdirSync(path,opts),made||path}catch(er){if("ENOENT"===er.code)return mkdirpManualSync(path,opts,mkdirpManualSync(parent,opts,made));if("EEXIST"!==er.code&&"EROFS"!==er.code)throw er;try{if(!opts.statSync(path).isDirectory())throw er}catch(_){throw er}}};module.exports={mkdirpManual,mkdirpManualSync};},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js":(module,__unused_webpack_exports,__webpack_require__)=>{const{dirname}=__webpack_require__("path"),{findMade,findMadeSync}=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"),{mkdirpManual,mkdirpManualSync}=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js");module.exports={mkdirpNative:(path,opts)=>{opts.recursive=!0;return dirname(path)===path?opts.mkdirAsync(path,opts):findMade(opts,path).then((made=>opts.mkdirAsync(path,opts).then((()=>made)).catch((er=>{if("ENOENT"===er.code)return mkdirpManual(path,opts);throw er}))))},mkdirpNativeSync:(path,opts)=>{opts.recursive=!0;if(dirname(path)===path)return opts.mkdirSync(path,opts);const made=findMadeSync(opts,path);try{return opts.mkdirSync(path,opts),made}catch(er){if("ENOENT"===er.code)return mkdirpManualSync(path,opts);throw er}}};},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js":(module,__unused_webpack_exports,__webpack_require__)=>{const{promisify}=__webpack_require__("util"),fs=__webpack_require__("fs");module.exports=opts=>{if(opts)if("object"==typeof opts)opts={mode:511,fs,...opts};else if("number"==typeof opts)opts={mode:opts,fs};else {if("string"!=typeof opts)throw new TypeError("invalid options argument");opts={mode:parseInt(opts,8),fs};}else opts={mode:511,fs};return opts.mkdir=opts.mkdir||opts.fs.mkdir||fs.mkdir,opts.mkdirAsync=promisify(opts.mkdir),opts.stat=opts.stat||opts.fs.stat||fs.stat,opts.statAsync=promisify(opts.stat),opts.statSync=opts.statSync||opts.fs.statSync||fs.statSync,opts.mkdirSync=opts.mkdirSync||opts.fs.mkdirSync||fs.mkdirSync,opts};},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js":(module,__unused_webpack_exports,__webpack_require__)=>{const platform=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve,parse}=__webpack_require__("path");module.exports=path=>{if(/\0/.test(path))throw Object.assign(new TypeError("path must be a string without null bytes"),{path,code:"ERR_INVALID_ARG_VALUE"});if(path=resolve(path),"win32"===platform){const badWinChars=/[*|"<>?:]/,{root}=parse(path);if(badWinChars.test(path.substr(root.length)))throw Object.assign(new Error("Illegal characters in path."),{path,code:"EINVAL"})}return path};},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js":(module,__unused_webpack_exports,__webpack_require__)=>{const fs=__webpack_require__("fs"),versArr=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),hasNative=+versArr[0]>10||10==+versArr[0]&&+versArr[1]>=12,useNative=hasNative?opts=>opts.mkdir===fs.mkdir:()=>!1,useNativeSync=hasNative?opts=>opts.mkdirSync===fs.mkdirSync:()=>!1;module.exports={useNative,useNativeSync};},"./node_modules/.pnpm/mlly@0.5.14/node_modules/mlly/dist lazy recursive":module=>{function webpackEmptyAsyncContext(req){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}))}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/mlly@0.5.14/node_modules/mlly/dist lazy recursive",module.exports=webpackEmptyAsyncContext;},"./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js":(module,exports,__webpack_require__)=>{var crypto=__webpack_require__("crypto");function objectHash(object,options){return function(object,options){var hashingStream;hashingStream="passthrough"!==options.algorithm?crypto.createHash(options.algorithm):new PassThrough;void 0===hashingStream.write&&(hashingStream.write=hashingStream.update,hashingStream.end=hashingStream.update);typeHasher(options,hashingStream).dispatch(object),hashingStream.update||hashingStream.end("");if(hashingStream.digest)return hashingStream.digest("buffer"===options.encoding?void 0:options.encoding);var buf=hashingStream.read();if("buffer"===options.encoding)return buf;return buf.toString(options.encoding)}(object,options=applyDefaults(object,options))}(exports=module.exports=objectHash).sha1=function(object){return objectHash(object)},exports.keys=function(object){return objectHash(object,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},exports.MD5=function(object){return objectHash(object,{algorithm:"md5",encoding:"hex"})},exports.keysMD5=function(object){return objectHash(object,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var hashes=crypto.getHashes?crypto.getHashes().slice():["sha1","md5"];hashes.push("passthrough");var encodings=["buffer","hex","binary","base64"];function applyDefaults(object,sourceOptions){sourceOptions=sourceOptions||{};var options={};if(options.algorithm=sourceOptions.algorithm||"sha1",options.encoding=sourceOptions.encoding||"hex",options.excludeValues=!!sourceOptions.excludeValues,options.algorithm=options.algorithm.toLowerCase(),options.encoding=options.encoding.toLowerCase(),options.ignoreUnknown=!0===sourceOptions.ignoreUnknown,options.respectType=!1!==sourceOptions.respectType,options.respectFunctionNames=!1!==sourceOptions.respectFunctionNames,options.respectFunctionProperties=!1!==sourceOptions.respectFunctionProperties,options.unorderedArrays=!0===sourceOptions.unorderedArrays,options.unorderedSets=!1!==sourceOptions.unorderedSets,options.unorderedObjects=!1!==sourceOptions.unorderedObjects,options.replacer=sourceOptions.replacer||void 0,options.excludeKeys=sourceOptions.excludeKeys||void 0,void 0===object)throw new Error("Object argument required.");for(var i=0;i<hashes.length;++i)hashes[i].toLowerCase()===options.algorithm.toLowerCase()&&(options.algorithm=hashes[i]);if(-1===hashes.indexOf(options.algorithm))throw new Error('Algorithm "'+options.algorithm+'" not supported. supported values: '+hashes.join(", "));if(-1===encodings.indexOf(options.encoding)&&"passthrough"!==options.algorithm)throw new Error('Encoding "'+options.encoding+'" not supported. supported values: '+encodings.join(", "));return options}function isNativeFunction(f){if("function"!=typeof f)return !1;return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(f))}function typeHasher(options,writeTo,context){context=context||[];var write=function(str){return writeTo.update?writeTo.update(str,"utf8"):writeTo.write(str,"utf8")};return {dispatch:function(value){options.replacer&&(value=options.replacer(value));var type=typeof value;return null===value&&(type="null"),this["_"+type](value)},_object:function(object){var objString=Object.prototype.toString.call(object),objType=/\[object (.*)\]/i.exec(objString);objType=(objType=objType?objType[1]:"unknown:["+objString+"]").toLowerCase();var objectNumber;if((objectNumber=context.indexOf(object))>=0)return this.dispatch("[CIRCULAR:"+objectNumber+"]");if(context.push(object),"undefined"!=typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(object))return write("buffer:"),write(object);if("object"===objType||"function"===objType||"asyncfunction"===objType){var keys=Object.keys(object);options.unorderedObjects&&(keys=keys.sort()),!1===options.respectType||isNativeFunction(object)||keys.splice(0,0,"prototype","__proto__","constructor"),options.excludeKeys&&(keys=keys.filter((function(key){return !options.excludeKeys(key)}))),write("object:"+keys.length+":");var self=this;return keys.forEach((function(key){self.dispatch(key),write(":"),options.excludeValues||self.dispatch(object[key]),write(",");}))}if(!this["_"+objType]){if(options.ignoreUnknown)return write("["+objType+"]");throw new Error('Unknown object type "'+objType+'"')}this["_"+objType](object);},_array:function(arr,unordered){unordered=void 0!==unordered?unordered:!1!==options.unorderedArrays;var self=this;if(write("array:"+arr.length+":"),!unordered||arr.length<=1)return arr.forEach((function(entry){return self.dispatch(entry)}));var contextAdditions=[],entries=arr.map((function(entry){var strm=new PassThrough,localContext=context.slice();return typeHasher(options,strm,localContext).dispatch(entry),contextAdditions=contextAdditions.concat(localContext.slice(context.length)),strm.read().toString()}));return context=context.concat(contextAdditions),entries.sort(),this._array(entries,!1)},_date:function(date){return write("date:"+date.toJSON())},_symbol:function(sym){return write("symbol:"+sym.toString())},_error:function(err){return write("error:"+err.toString())},_boolean:function(bool){return write("bool:"+bool.toString())},_string:function(string){write("string:"+string.length+":"),write(string.toString());},_function:function(fn){write("fn:"),isNativeFunction(fn)?this.dispatch("[native]"):this.dispatch(fn.toString()),!1!==options.respectFunctionNames&&this.dispatch("function-name:"+String(fn.name)),options.respectFunctionProperties&&this._object(fn);},_number:function(number){return write("number:"+number.toString())},_xml:function(xml){return write("xml:"+xml.toString())},_null:function(){return write("Null")},_undefined:function(){return write("Undefined")},_regexp:function(regex){return write("regex:"+regex.toString())},_uint8array:function(arr){return write("uint8array:"),this.dispatch(Array.prototype.slice.call(arr))},_uint8clampedarray:function(arr){return write("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(arr))},_int8array:function(arr){return write("int8array:"),this.dispatch(Array.prototype.slice.call(arr))},_uint16array:function(arr){return write("uint16array:"),this.dispatch(Array.prototype.slice.call(arr))},_int16array:function(arr){return write("int16array:"),this.dispatch(Array.prototype.slice.call(arr))},_uint32array:function(arr){return write("uint32array:"),this.dispatch(Array.prototype.slice.call(arr))},_int32array:function(arr){return write("int32array:"),this.dispatch(Array.prototype.slice.call(arr))},_float32array:function(arr){return write("float32array:"),this.dispatch(Array.prototype.slice.call(arr))},_float64array:function(arr){return write("float64array:"),this.dispatch(Array.prototype.slice.call(arr))},_arraybuffer:function(arr){return write("arraybuffer:"),this.dispatch(new Uint8Array(arr))},_url:function(url){return write("url:"+url.toString())},_map:function(map){write("map:");var arr=Array.from(map);return this._array(arr,!1!==options.unorderedSets)},_set:function(set){write("set:");var arr=Array.from(set);return this._array(arr,!1!==options.unorderedSets)},_file:function(file){return write("file:"),this.dispatch([file.name,file.size,file.type,file.lastModfied])},_blob:function(){if(options.ignoreUnknown)return write("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return write("domwindow")},_bigint:function(number){return write("bigint:"+number.toString())},_process:function(){return write("process")},_timer:function(){return write("timer")},_pipe:function(){return write("pipe")},_tcp:function(){return write("tcp")},_udp:function(){return write("udp")},_tty:function(){return write("tty")},_statwatcher:function(){return write("statwatcher")},_securecontext:function(){return write("securecontext")},_connection:function(){return write("connection")},_zlib:function(){return write("zlib")},_context:function(){return write("context")},_nodescript:function(){return write("nodescript")},_httpparser:function(){return write("httpparser")},_dataview:function(){return write("dataview")},_signal:function(){return write("signal")},_fsevent:function(){return write("fsevent")},_tlswrap:function(){return write("tlswrap")}}}function PassThrough(){return {buf:"",write:function(b){this.buf+=b;},end:function(b){this.buf+=b;},read:function(){return this.buf}}}exports.writeToStream=function(object,options,stream){return void 0===stream&&(stream=options,options={}),typeHasher(options=applyDefaults(object,options),stream).dispatch(object)};},"./node_modules/.pnpm/pirates@4.0.5/node_modules/pirates/lib/index.js":(module,exports,__webpack_require__)=>{module=__webpack_require__.nmd(module),Object.defineProperty(exports,"__esModule",{value:!0}),exports.addHook=function(hook,opts={}){let reverted=!1;const loaders=[],oldLoaders=[];let exts;const originalJSLoader=Module._extensions[".js"],matcher=opts.matcher||null,ignoreNodeModules=!1!==opts.ignoreNodeModules;exts=opts.extensions||opts.exts||opts.extension||opts.ext||[".js"],Array.isArray(exts)||(exts=[exts]);return exts.forEach((ext=>{if("string"!=typeof ext)throw new TypeError(`Invalid Extension: ${ext}`);const oldLoader=Module._extensions[ext]||originalJSLoader;oldLoaders[ext]=Module._extensions[ext],loaders[ext]=Module._extensions[ext]=function(mod,filename){let compile;reverted||function(filename,exts,matcher,ignoreNodeModules){if("string"!=typeof filename)return !1;if(-1===exts.indexOf(_path.default.extname(filename)))return !1;const resolvedFilename=_path.default.resolve(filename);if(ignoreNodeModules&&nodeModulesRegex.test(resolvedFilename))return !1;if(matcher&&"function"==typeof matcher)return !!matcher(resolvedFilename);return !0}(filename,exts,matcher,ignoreNodeModules)&&(compile=mod._compile,mod._compile=function(code){mod._compile=compile;const newCode=hook(code,filename);if("string"!=typeof newCode)throw new Error("[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!\n--------------------\nIf you have no idea what this means or what Pirates is, let me explain: Pirates is a module that makes is easy to implement require hooks. One of the require hooks you're using uses it. One of these require hooks didn't return anything from it's handler, so we don't know what to do. You might want to debug this.");return mod._compile(newCode,filename)}),oldLoader(mod,filename);};})),function(){reverted||(reverted=!0,exts.forEach((ext=>{Module._extensions[ext]===loaders[ext]&&(oldLoaders[ext]?Module._extensions[ext]=oldLoaders[ext]:delete Module._extensions[ext]);})));}};var _module=_interopRequireDefault(__webpack_require__("module")),_path=_interopRequireDefault(__webpack_require__("path"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}const nodeModulesRegex=/^(?:.*[\\/])?node_modules(?:[\\/].*)?$/,Module=module.constructor.length>1?module.constructor:_module.default;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js":(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value;}debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this);}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY;}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return !0;if("string"==typeof version)try{version=new SemVer(version,this.options);}catch(er){return !1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),""===this.operator)return ""===this.value||new Range(comp.value,options).test(this.value);if(""===comp.operator)return ""===comp.value||new Range(this.value,options).test(comp.semver);const sameDirectionIncreasing=!(">="!==this.operator&&">"!==this.operator||">="!==comp.operator&&">"!==comp.operator),sameDirectionDecreasing=!("<="!==this.operator&&"<"!==this.operator||"<="!==comp.operator&&"<"!==comp.operator),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=!(">="!==this.operator&&"<="!==this.operator||">="!==comp.operator&&"<="!==comp.operator),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(">="===this.operator||">"===this.operator)&&("<="===comp.operator||"<"===comp.operator),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&("<="===this.operator||"<"===this.operator)&&(">="===comp.operator||">"===comp.operator);return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan}}module.exports=Comparator;const parseOptions=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js"),{re,t}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"),cmp=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js"),debug=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"),SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js":(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split("||").map((r=>this.parseRange(r.trim()))).filter((c=>c.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${range}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter((c=>!isNullSet(c[0]))),0===this.set.length)this.set=[first];else if(this.set.length>1)for(const c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.format();}format(){return this.range=this.set.map((comps=>comps.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(range){range=range.trim();const memoKey=`parseRange:${Object.keys(this.options).join(",")}:${range}`,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range);let rangeList=(range=(range=(range=range.replace(re[t.TILDETRIM],tildeTrimReplace)).replace(re[t.CARETTRIM],caretTrimReplace)).split(/\s+/).join(" ")).split(" ").map((comp=>parseComparator(comp,this.options))).join(" ").split(/\s+/).map((comp=>replaceGTE0(comp,this.options)));loose&&(rangeList=rangeList.filter((comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE]))))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map((comp=>new Comparator(comp,this.options)));for(const comp of comparators){if(isNullSet(comp))return [comp];rangeMap.set(comp.value,comp);}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some((rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every((thisComparator=>rangeComparators.every((rangeComparator=>thisComparator.intersects(rangeComparator,options)))))))))}test(version){if(!version)return !1;if("string"==typeof version)try{version=new SemVer(version,this.options);}catch(er){return !1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return !0;return !1}}module.exports=Range;const cache=new(__webpack_require__("./node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js"))({max:1e3}),parseOptions=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js"),Comparator=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"),debug=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"),SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),{re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"),isNullSet=c=>"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every((otherComparator=>testComparator.intersects(otherComparator,options))),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceTilde(c,options))).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret}))},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceCaret(c,options))).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret}))},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map((c=>replaceXRange(c,options))).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,((ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return "="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret}))},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return !1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return !0}return !1}return !0};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js":(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js"),{re,t}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"),parseOptions=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js"),{compareIdentifiers}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js");class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version;}else if("string"!=typeof version)throw new TypeError(`Invalid Version: ${version}`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id})):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if("string"==typeof other&&other===this.version)return 0;other=new SemVer(other,this.options);}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return -1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return -1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return -1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}inc(release,identifier){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier),this.inc("pre",identifier);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",identifier),this.inc("pre",identifier);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else {let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0);}identifier&&(0===compareIdentifiers(this.prerelease[0],identifier)?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error(`invalid increment argument: ${release}`)}return this.format(),this.raw=this.version,this}}module.exports=SemVer;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js":(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js");module.exports=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js":(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js"),neq=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js"),gt=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js"),gte=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js"),lt=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js"),lte=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js");module.exports=(a,op,b,loose)=>{switch(op){case"===":return "object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return "object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),parse=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js"),{re,t}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js");module.exports=(version,options)=>{if(version instanceof SemVer)return version;if("number"==typeof version&&(version=String(version)),"string"!=typeof version)return null;let match=null;if((options=options||{}).rtl){let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)match&&next.index+next[0].length===match.index+match[0].length||(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1;}else match=version.match(re[t.COERCE]);return null===match?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js");module.exports=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b)=>compare(a,b,!0);},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js");module.exports=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js":(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js"),eq=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js");module.exports=(version1,version2)=>{if(eq(version1,version2))return null;{const v1=parse(version1),v2=parse(version2),hasPre=v1.prerelease.length||v2.prerelease.length,prefix=hasPre?"pre":"",defaultResult=hasPre?"prerelease":"";for(const key in v1)if(("major"===key||"minor"===key||"patch"===key)&&v1[key]!==v2[key])return prefix+key;return defaultResult}};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>0===compare(a,b,loose);},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)>0;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)>=0;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js");module.exports=(version,release,options,identifier)=>{"string"==typeof options&&(identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier).version}catch(er){return null}};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)<0;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)<=0;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js");module.exports=(a,loose)=>new SemVer(a,loose).major;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js");module.exports=(a,loose)=>new SemVer(a,loose).minor;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>0!==compare(a,b,loose);},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js":(module,__unused_webpack_exports,__webpack_require__)=>{const{MAX_LENGTH}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js"),{re,t}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"),SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),parseOptions=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js");module.exports=(version,options)=>{if(options=parseOptions(options),version instanceof SemVer)return version;if("string"!=typeof version)return null;if(version.length>MAX_LENGTH)return null;if(!(options.loose?re[t.LOOSE]:re[t.FULL]).test(version))return null;try{return new SemVer(version,options)}catch(er){return null}};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js");module.exports=(a,loose)=>new SemVer(a,loose).patch;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js":(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js");module.exports=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(b,a,loose);},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js");module.exports=(list,loose)=>list.sort(((a,b)=>compareBuild(b,a,loose)));},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js":(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");module.exports=(version,range,options)=>{try{range=new Range(range,options);}catch(er){return !1}return range.test(version)};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js":(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js");module.exports=(list,loose)=>list.sort(((a,b)=>compareBuild(a,b,loose)));},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js":(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js");module.exports=(version,options)=>{const v=parse(version,options);return v?v.version:null};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js");module.exports={re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js").SEMVER_SPEC_VERSION,SemVer:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),compareIdentifiers:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js").compareIdentifiers,rcompareIdentifiers:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js").rcompareIdentifiers,parse:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js"),valid:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js"),clean:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js"),inc:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js"),diff:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js"),major:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js"),minor:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js"),patch:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js"),prerelease:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js"),compare:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js"),rcompare:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js"),compareLoose:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js"),compareBuild:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js"),sort:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js"),rsort:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js"),gt:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js"),lt:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js"),eq:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js"),neq:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js"),gte:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js"),lte:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js"),cmp:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js"),coerce:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js"),Comparator:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"),Range:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"),satisfies:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"),toComparators:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js"),maxSatisfying:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js"),minSatisfying:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js"),minVersion:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js"),validRange:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js"),outside:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js"),gtr:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js"),ltr:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js"),intersects:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js"),simplifyRange:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js"),subset:__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js")};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js":module=>{const MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;module.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER,MAX_SAFE_COMPONENT_LENGTH:16};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js":module=>{const debug="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug;},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js":module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1};module.exports={compareIdentifiers,rcompareIdentifiers:(a,b)=>compareIdentifiers(b,a)};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js":module=>{const opts=["includePrerelease","loose","rtl"];module.exports=options=>options?"object"!=typeof options?{loose:!0}:opts.filter((k=>options[k])).reduce(((o,k)=>(o[k]=!0,o)),{}):{};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js":(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js"),debug=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"),re=(exports=module.exports={}).re=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value,isGlobal)=>{const index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0);};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js":(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js");module.exports=(version,range,options)=>outside(version,range,">",options);},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js":(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");module.exports=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2));},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js":(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js");module.exports=(version,range,options)=>outside(version,range,"<",options);},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");module.exports=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options);}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(max&&-1!==maxSV.compare(v)||(max=v,maxSV=new SemVer(max,options)));})),max};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");module.exports=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options);}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(min&&1!==minSV.compare(v)||(min=v,minSV=new SemVer(min,options)));})),min};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"),gt=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js");module.exports=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver))return minver;if(minver=new SemVer("0.0.0-0"),range.test(minver))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach((comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":setMin&&!gt(compver,setMin)||(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}})),!setMin||minver&&!gt(minver,setMin)||(minver=setMin);}return minver&&range.test(minver)?minver:null};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js":(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"),Comparator=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"),{ANY}=Comparator,Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"),satisfies=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"),gt=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js"),lt=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js"),lte=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js"),gte=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js");module.exports=(version,range,hilo,options)=>{let gtfn,ltefn,ltfn,comp,ecomp;switch(version=new SemVer(version,options),range=new Range(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return !1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach((comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator);})),high.operator===comp||high.operator===ecomp)return !1;if((!low.operator||low.operator===comp)&&ltefn(version,low.semver))return !1;if(low.operator===ecomp&&ltfn(version,low.semver))return !1}return !0};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js":(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"),compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js");module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort(((a,b)=>compare(a,b,options)));for(const version of v){satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);}first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):max||min!==v[0]?max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`):ranges.push("*");const simplified=ranges.join(" || "),original="string"==typeof range.raw?range.raw:String(range);return simplified.length<original.length?simplified:range};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js":(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"),Comparator=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"),{ANY}=Comparator,satisfies=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"),compare=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js"),simpleSubset=(sub,dom,options)=>{if(sub===dom)return !0;if(1===sub.length&&sub[0].semver===ANY){if(1===dom.length&&dom[0].semver===ANY)return !0;sub=options.includePrerelease?[new Comparator(">=0.0.0-0")]:[new Comparator(">=0.0.0")];}if(1===dom.length&&dom[0].semver===ANY){if(options.includePrerelease)return !0;dom=[new Comparator(">=0.0.0")];}const eqSet=new Set;let gt,lt,gtltComp,higher,lower,hasDomLT,hasDomGT;for(const c of sub)">"===c.operator||">="===c.operator?gt=higherGT(gt,c,options):"<"===c.operator||"<="===c.operator?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;if(gt&&lt){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(0===gtltComp&&(">="!==gt.operator||"<="!==lt.operator))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options))return null;if(lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return !1;return !0}let needDomLTPre=!(!lt||options.includePrerelease||!lt.semver.prerelease.length)&&lt.semver,needDomGTPre=!(!gt||options.includePrerelease||!gt.semver.prerelease.length)&&gt.semver;needDomLTPre&&1===needDomLTPre.prerelease.length&&"<"===lt.operator&&0===needDomLTPre.prerelease[0]&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||">"===c.operator||">="===c.operator,hasDomLT=hasDomLT||"<"===c.operator||"<="===c.operator,gt)if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),">"===c.operator||">="===c.operator){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return !1}else if(">="===gt.operator&&!satisfies(gt.semver,String(c),options))return !1;if(lt)if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),"<"===c.operator||"<="===c.operator){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return !1}else if("<="===lt.operator&&!satisfies(lt.semver,String(c),options))return !1;if(!c.operator&&(lt||gt)&&0!==gtltComp)return !1}return !(gt&&hasDomLT&&!lt&&0!==gtltComp)&&(!(lt&&hasDomGT&&!gt&&0!==gtltComp)&&(!needDomGTPre&&!needDomLTPre))},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||">"===b.operator&&">="===a.operator?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||"<"===b.operator&&"<="===a.operator?b:a};module.exports=(sub,dom,options={})=>{if(sub===dom)return !0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||null!==isSub,isSub)continue OUTER}if(sawNonNull)return !1}return !0};},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js":(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");module.exports=(range,options)=>new Range(range,options).set.map((comp=>comp.map((c=>c.value)).join(" ").trim().split(" ")));},"./node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js":(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js");module.exports=(range,options)=>{try{return new Range(range,options).range||"*"}catch(er){return null}};},"./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js":module=>{module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value;};};},"./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js":(module,__unused_webpack_exports,__webpack_require__)=>{function Yallist(list){var self=this;if(self instanceof Yallist||(self=new Yallist),self.tail=null,self.head=null,self.length=0,list&&"function"==typeof list.forEach)list.forEach((function(item){self.push(item);}));else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self.push(arguments[i]);return self}function insert(self,node,value){var inserted=node===self.head?new Node(value,null,node,self):new Node(value,node,node.next,self);return null===inserted.next&&(self.tail=inserted),null===inserted.prev&&(self.head=inserted),self.length++,inserted}function push(self,item){self.tail=new Node(item,self.tail,null,self),self.head||(self.head=self.tail),self.length++;}function unshift(self,item){self.head=new Node(item,null,self.head,self),self.tail||(self.tail=self.head),self.length++;}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null;}module.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++;}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++;}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;null!==walker;i++)fn.call(thisp,walker.value,i,this),walker=walker.next;},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;null!==walker;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev;},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;null!==walker&&i<n;i++)walker=walker.next;if(i===n&&null!==walker)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;null!==walker&&i<n;i++)walker=walker.prev;if(i===n&&null!==walker)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;null!==walker;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;null!==walker;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else {if(!this.head)throw new TypeError("Reduce of empty list with no initial value");walker=this.head.next,acc=this.head.value;}for(var i=0;null!==walker;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else {if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");walker=this.tail.prev,acc=this.tail.value;}for(var i=this.length-1;null!==walker;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;null!==walker;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;null!==walker;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){(to=to||this.length)<0&&(to+=this.length),(from=from||0)<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;null!==walker&&i<from;i++)walker=walker.next;for(;null!==walker&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){(to=to||this.length)<0&&(to+=this.length),(from=from||0)<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;null!==walker&&i>to;i--)walker=walker.prev;for(;null!==walker&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;null!==walker&&i<start;i++)walker=walker.next;var ret=[];for(i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);null===walker&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;null!==walker;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p;}return this.head=tail,this.tail=head,this};try{__webpack_require__("./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js")(Yallist);}catch(er){}},crypto:module=>{module.exports=require$$0;},fs:module=>{module.exports=require$$1;},module:module=>{module.exports=require$$2;},path:module=>{module.exports=require$$3;},util:module=>{module.exports=require$$4;}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]});},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module);var __webpack_exports__={};(()=>{__webpack_require__.d(__webpack_exports__,{default:()=>createJITI});var external_fs_=__webpack_require__("fs"),external_module_=__webpack_require__("module");const external_perf_hooks_namespaceObject=require$$5,external_os_namespaceObject=require$$6,external_vm_namespaceObject=require$$7;var external_vm_default=__webpack_require__.n(external_vm_namespaceObject);const external_url_namespaceObject=require$$8;function normalizeWindowsPath(input=""){return input&&input.includes("\\")?input.replace(/\\/g,"/"):input}const _UNC_REGEX=/^[\\/]{2}/,_IS_ABSOLUTE_RE=/^[\\/](?![\\/])|^[\\/]{2}(?!\.)|^[a-zA-Z]:[\\/]/,_DRIVE_LETTER_RE=/^[a-zA-Z]:$/,join=function(...args){if(0===args.length)return ".";let joined;for(let i=0;i<args.length;++i){const arg=args[i];arg&&arg.length>0&&(void 0===joined?joined=arg:joined+=`/${arg}`);}return void 0===joined?".":function(path){if(0===path.length)return ".";const isUNCPath=(path=normalizeWindowsPath(path)).match(_UNC_REGEX),isPathAbsolute=isAbsolute(path),trailingSeparator="/"===path[path.length-1];return 0===(path=normalizeString(path,!isPathAbsolute)).length?isPathAbsolute?"/":trailingSeparator?"./":".":(trailingSeparator&&(path+="/"),_DRIVE_LETTER_RE.test(path)&&(path+="/"),isUNCPath?isPathAbsolute?`//${path}`:`//./${path}`:isPathAbsolute&&!isAbsolute(path)?`/${path}`:path)}(joined.replace(/\/\/+/g,"/"))};function normalizeString(path,allowAboveRoot){let res="",lastSegmentLength=0,lastSlash=-1,dots=0,char=null;for(let i=0;i<=path.length;++i){if(i<path.length)char=path[i];else {if("/"===char)break;char="/";}if("/"===char){if(lastSlash===i-1||1===dots);else if(2===dots){if(res.length<2||2!==lastSegmentLength||"."!==res[res.length-1]||"."!==res[res.length-2]){if(res.length>2){const lastSlashIndex=res.lastIndexOf("/");-1===lastSlashIndex?(res="",lastSegmentLength=0):(res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf("/")),lastSlash=i,dots=0;continue}if(0!==res.length){res="",lastSegmentLength=0,lastSlash=i,dots=0;continue}}allowAboveRoot&&(res+=res.length>0?"/..":"..",lastSegmentLength=2);}else res.length>0?res+=`/${path.slice(lastSlash+1,i)}`:res=path.slice(lastSlash+1,i),lastSegmentLength=i-lastSlash-1;lastSlash=i,dots=0;}else "."===char&&-1!==dots?++dots:dots=-1;}return res}const isAbsolute=function(p){return _IS_ABSOLUTE_RE.test(p)},_EXTNAME_RE=/.(\.[^/.]+)$/,pathe_f81973bb_extname=function(p){const match=_EXTNAME_RE.exec(normalizeWindowsPath(p));return match&&match[1]||""},pathe_f81973bb_dirname=function(p){const segments=normalizeWindowsPath(p).replace(/\/$/,"").split("/").slice(0,-1);return 1===segments.length&&_DRIVE_LETTER_RE.test(segments[0])&&(segments[0]+="/"),segments.join("/")||(isAbsolute(p)?"/":".")},basename=function(p,ext){const lastSegment=normalizeWindowsPath(p).split("/").pop();return ext&&lastSegment.endsWith(ext)?lastSegment.slice(0,-ext.length):lastSegment};var mkdirp=__webpack_require__("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/index.js");const suspectProtoRx=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,suspectConstructorRx=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,JsonSigRx=/^["{[]|^-?[0-9][0-9.]{0,14}$/;function jsonParseTransform(key,value){if("__proto__"!==key&&"constructor"!==key)return value}function destr(val){if("string"!=typeof val)return val;const _lval=val.toLowerCase();if("true"===_lval)return !0;if("false"===_lval)return !1;if("null"===_lval)return null;if("nan"===_lval)return NaN;if("infinity"===_lval)return 1/0;if("undefined"!==_lval){if(!JsonSigRx.test(val))return val;try{return suspectProtoRx.test(val)||suspectConstructorRx.test(val)?JSON.parse(val,jsonParseTransform):JSON.parse(val)}catch(_e){return val}}}function escapeStringRegexp(string){if("string"!=typeof string)throw new TypeError("Expected a string");return string.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var create_require=__webpack_require__("./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js"),create_require_default=__webpack_require__.n(create_require),semver=__webpack_require__("./node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js");const pathSeparators=["/","\\",void 0],normalizedAliasSymbol=Symbol.for("pathe:normalizedAlias");function normalizeAliases(_aliases){if(_aliases[normalizedAliasSymbol])return _aliases;const aliases=Object.fromEntries(Object.entries(_aliases).sort((([a],[b])=>function(a,b){return b.split("/").length-a.split("/").length}(a,b))));for(const key in aliases)for(const alias in aliases)alias===key||key.startsWith(alias)||aliases[key].startsWith(alias)&&pathSeparators.includes(aliases[key][alias.length])&&(aliases[key]=aliases[alias]+aliases[key].slice(alias.length));return Object.defineProperty(aliases,normalizedAliasSymbol,{value:!0,enumerable:!1}),aliases}var lib=__webpack_require__("./node_modules/.pnpm/pirates@4.0.5/node_modules/pirates/lib/index.js"),object_hash=__webpack_require__("./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js"),object_hash_default=__webpack_require__.n(object_hash),astralIdentifierCodes=[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,154,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,161,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,19306,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[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,85,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,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,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={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"},ecma5AndLessKeywords="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",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function isInAstralSet(code,set){for(var pos=65536,i=0;i<set.length;i+=2){if((pos+=set[i])>code)return !1;if((pos+=set[i+1])>=code)return !0}}function isIdentifierStart(code,astral){return code<65?36===code:code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):!1!==astral&&isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code,astral){return code<48?36===code:code<58||!(code<65)&&(code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):!1!==astral&&(isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes)))))}var TokenType=function(label,conf){void 0===conf&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null;};function binop(name,prec){return new TokenType(name,{beforeExpr:!0,binop:prec})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(name,options){return void 0===options&&(options={}),options.keyword=name,keywords[name]=new TokenType(name,options)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code){return 10===code||13===code||8232===code||8233===code}function nextLineBreak(code,from,end){void 0===end&&(end=code.length);for(var i=from;i<end;i++){var next=code.charCodeAt(i);if(isNewLine(next))return i<end-1&&13===next&&10===code.charCodeAt(i+1)?i+2:i+1}return -1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,acorn_hasOwnProperty=ref.hasOwnProperty,acorn_toString=ref.toString,hasOwn=Object.hasOwn||function(obj,propName){return acorn_hasOwnProperty.call(obj,propName)},isArray=Array.isArray||function(obj){return "[object Array]"===acorn_toString.call(obj)};function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}function codePointToString(code){return code<=65535?String.fromCharCode(code):(code-=65536,String.fromCharCode(55296+(code>>10),56320+(1023&code)))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function(line,col){this.line=line,this.column=col;};Position.prototype.offset=function(n){return new Position(this.line,this.column+n)};var SourceLocation=function(p,start,end){this.start=start,this.end=end,null!==p.sourceFile&&(this.source=p.sourceFile);};function getLineInfo(input,offset){for(var line=1,cur=0;;){var nextBreak=nextLineBreak(input,cur,offset);if(nextBreak<0)return new Position(line,offset-cur);++line,cur=nextBreak;}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(opts){var options={};for(var opt in defaultOptions)options[opt]=opts&&hasOwn(opts,opt)?opts[opt]:defaultOptions[opt];if("latest"===options.ecmaVersion?options.ecmaVersion=1e8:null==options.ecmaVersion?(!warnedAboutEcmaVersion&&"object"==typeof console&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),options.ecmaVersion=11):options.ecmaVersion>=2015&&(options.ecmaVersion-=2009),null==options.allowReserved&&(options.allowReserved=options.ecmaVersion<5),null==opts.allowHashBang&&(options.allowHashBang=options.ecmaVersion>=14),isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)};}return isArray(options.onComment)&&(options.onComment=function(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start,end};options.locations&&(comment.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment.range=[start,end]),array.push(comment);}}(options,options.onComment)),options}function functionFlags(async,generator){return 2|(async?4:0)|(generator?8:0)}var Parser=function(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords$1[options.ecmaVersion>=6?6:"module"===options.sourceType?"5module":5]);var reserved="";!0!==options.allowReserved&&(reserved=reservedWords[options.ecmaVersion>=6?6:5===options.ecmaVersion?5:3],"module"===options.sourceType&&(reserved+=" await")),this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.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="module"===options.sourceType,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),0===this.pos&&options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[];},prototypeAccessors={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}};Parser.prototype.parse=function(){var node=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node)},prototypeAccessors.inFunction.get=function(){return (2&this.currentVarScope().flags)>0},prototypeAccessors.inGenerator.get=function(){return (8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.inAsync.get=function(){return (4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.canAwait.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var scope=this.scopeStack[i];if(scope.inClassFieldInit||256&scope.flags)return !1;if(2&scope.flags)return (4&scope.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},prototypeAccessors.allowSuper.get=function(){var ref=this.currentThisScope(),flags=ref.flags,inClassFieldInit=ref.inClassFieldInit;return (64&flags)>0||inClassFieldInit||this.options.allowSuperOutsideMethod},prototypeAccessors.allowDirectSuper.get=function(){return (128&this.currentThisScope().flags)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},prototypeAccessors.allowNewDotTarget.get=function(){var ref=this.currentThisScope(),flags=ref.flags,inClassFieldInit=ref.inClassFieldInit;return (258&flags)>0||inClassFieldInit},prototypeAccessors.inClassStaticBlock.get=function(){return (256&this.currentVarScope().flags)>0},Parser.extend=function(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i<plugins.length;i++)cls=plugins[i](cls);return cls},Parser.parse=function(input,options){return new this(options,input).parse()},Parser.parseExpressionAt=function(input,pos,options){var parser=new this(options,input,pos);return parser.nextToken(),parser.parseExpression()},Parser.tokenizer=function(input,options){return new this(options,input)},Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype,literal=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;pp$9.strictDirective=function(start){if(this.options.ecmaVersion<5)return !1;for(;;){skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length;var match=literal.exec(this.input.slice(start));if(!match)return !1;if("use strict"===(match[1]||match[2])){skipWhiteSpace.lastIndex=start+match[0].length;var spaceAfter=skipWhiteSpace.exec(this.input),end=spaceAfter.index+spaceAfter[0].length,next=this.input.charAt(end);return ";"===next||"}"===next||lineBreak.test(spaceAfter[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(next)||"!"===next&&"="===this.input.charAt(end+1))}start+=match[0].length,skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[start]&&start++;}},pp$9.eat=function(type){return this.type===type&&(this.next(),!0)},pp$9.isContextual=function(name){return this.type===types$1.name&&this.value===name&&!this.containsEsc},pp$9.eatContextual=function(name){return !!this.isContextual(name)&&(this.next(),!0)},pp$9.expectContextual=function(name){this.eatContextual(name)||this.unexpected();},pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp$9.semicolon=function(){this.eat(types$1.semi)||this.insertSemicolon()||this.unexpected();},pp$9.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0},pp$9.expect=function(type){this.eat(type)||this.unexpected();},pp$9.unexpected=function(pos){this.raise(null!=pos?pos:this.start,"Unexpected token");};var DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1;};pp$9.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,isAssign?"Assigning to rvalue":"Parenthesized pattern");}},pp$9.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return !1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property");},pp$9.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");},pp$9.isSimpleAssignTarget=function(expr){return "ParenthesizedExpression"===expr.type?this.isSimpleAssignTarget(expr.expression):"Identifier"===expr.type||"MemberExpression"===expr.type};var pp$8=Parser.prototype;pp$8.parseTopLevel=function(node){var exports=Object.create(null);for(node.body||(node.body=[]);this.type!==types$1.eof;){var stmt=this.parseStatement(null,!0,exports);node.body.push(stmt);}if(this.inModule)for(var i=0,list=Object.keys(this.undefinedExports);i<list.length;i+=1){var name=list[i];this.raiseRecoverable(this.undefinedExports[name].start,"Export '"+name+"' is not defined");}return this.adaptDirectivePrologue(node.body),this.next(),node.sourceType=this.options.sourceType,this.finishNode(node,"Program")};var loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$8.isLet=function(context){if(this.options.ecmaVersion<6||!this.isContextual("let"))return !1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(91===nextCh||92===nextCh||nextCh>55295&&nextCh<56320)return !0;if(context)return !1;if(123===nextCh)return !0;if(isIdentifierStart(nextCh,!0)){for(var pos=next+1;isIdentifierChar(nextCh=this.input.charCodeAt(pos),!0);)++pos;if(92===nextCh||nextCh>55295&&nextCh<56320)return !0;var ident=this.input.slice(next,pos);if(!keywordRelationalOperator.test(ident))return !0}return !1},pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return !1;skipWhiteSpace.lastIndex=this.pos;var after,skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length;return !(lineBreak.test(this.input.slice(this.pos,next))||"function"!==this.input.slice(next,next+8)||next+8!==this.input.length&&(isIdentifierChar(after=this.input.charCodeAt(next+8))||after>55295&&after<56320))},pp$8.parseStatement=function(context,topLevel,exports){var kind,starttype=this.type,node=this.startNode();switch(this.isLet(context)&&(starttype=types$1._var,kind="let"),starttype){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(node,starttype.keyword);case types$1._debugger:return this.parseDebuggerStatement(node);case types$1._do:return this.parseDoStatement(node);case types$1._for:return this.parseForStatement(node);case types$1._function:return context&&(this.strict||"if"!==context&&"label"!==context)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(node,!1,!context);case types$1._class:return context&&this.unexpected(),this.parseClass(node,!0);case types$1._if:return this.parseIfStatement(node);case types$1._return:return this.parseReturnStatement(node);case types$1._switch:return this.parseSwitchStatement(node);case types$1._throw:return this.parseThrowStatement(node);case types$1._try:return this.parseTryStatement(node);case types$1._const:case types$1._var:return kind=kind||this.value,context&&"var"!==kind&&this.unexpected(),this.parseVarStatement(node,kind);case types$1._while:return this.parseWhileStatement(node);case types$1._with:return this.parseWithStatement(node);case types$1.braceL:return this.parseBlock(!0,node);case types$1.semi:return this.parseEmptyStatement(node);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&starttype===types$1._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(40===nextCh||46===nextCh)return this.parseExpressionStatement(node,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||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'")),starttype===types$1._import?this.parseImport(node):this.parseExport(node,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types$1.name&&"Identifier"===expr.type&&this.eat(types$1.colon)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}},pp$8.parseBreakContinueStatement=function(node,keyword){var isBreak="break"===keyword;this.next(),this.eat(types$1.semi)||this.insertSemicolon()?node.label=null:this.type!==types$1.name?this.unexpected():(node.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var lab=this.labels[i];if(null==node.label||lab.name===node.label.name){if(null!=lab.kind&&(isBreak||"loop"===lab.kind))break;if(node.label&&isBreak)break}}return i===this.labels.length&&this.raise(node.start,"Unsyntactic "+keyword),this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")},pp$8.parseDebuggerStatement=function(node){return this.next(),this.semicolon(),this.finishNode(node,"DebuggerStatement")},pp$8.parseDoStatement=function(node){return this.next(),this.labels.push(loopLabel),node.body=this.parseStatement("do"),this.labels.pop(),this.expect(types$1._while),node.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(node,"DoWhileStatement")},pp$8.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,null);var isLet=this.isLet();if(this.type===types$1._var||this.type===types$1._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===init$1.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types$1._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.parseForIn(node,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init$1))}var startsWithLet=this.isContextual("let"),isForOf=!1,refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!(awaitAt>-1)||"await",refDestructuringErrors);return this.type===types$1._in||(isForOf=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===types$1._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),startsWithLet&&isForOf&&this.raise(init.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(init,!1,refDestructuringErrors),this.checkLValPattern(init),this.parseForIn(node,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init))},pp$8.parseFunctionStatement=function(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)},pp$8.parseIfStatement=function(node){return this.next(),node.test=this.parseParenExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")},pp$8.parseReturnStatement=function(node){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")},pp$8.parseSwitchStatement=function(node){var cur;this.next(),node.discriminant=this.parseParenExpression(),node.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var sawDefault=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var isCase=this.type===types$1._case;cur&&this.finishNode(cur,"SwitchCase"),node.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types$1.colon);}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node,"SwitchStatement")},pp$8.parseThrowStatement=function(node){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")};var empty$1=[];pp$8.parseTryStatement=function(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.type===types$1._catch){var clause=this.startNode();if(this.next(),this.eat(types$1.parenL)){clause.param=this.parseBindingAtom();var simple="Identifier"===clause.param.type;this.enterScope(simple?32:0),this.checkLValPattern(clause.param,simple?4:2),this.expect(types$1.parenR);}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node.handler=this.finishNode(clause,"CatchClause");}return node.finalizer=this.eat(types$1._finally)?this.parseBlock():null,node.handler||node.finalizer||this.raise(node.start,"Missing catch or finally clause"),this.finishNode(node,"TryStatement")},pp$8.parseVarStatement=function(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")},pp$8.parseWhileStatement=function(node){return this.next(),node.test=this.parseParenExpression(),this.labels.push(loopLabel),node.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node,"WhileStatement")},pp$8.parseWithStatement=function(node){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node.object=this.parseParenExpression(),node.body=this.parseStatement("with"),this.finishNode(node,"WithStatement")},pp$8.parseEmptyStatement=function(node){return this.next(),this.finishNode(node,"EmptyStatement")},pp$8.parseLabeledStatement=function(node,maybeName,expr,context){for(var i$1=0,list=this.labels;i$1<list.length;i$1+=1){list[i$1].name===maybeName&&this.raise(expr.start,"Label '"+maybeName+"' is already declared");}for(var kind=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null,i=this.labels.length-1;i>=0;i--){var label$1=this.labels[i];if(label$1.statementStart!==node.start)break;label$1.statementStart=this.start,label$1.kind=kind;}return this.labels.push({name:maybeName,kind,statementStart:this.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")},pp$8.parseExpressionStatement=function(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")},pp$8.parseBlock=function(createNewLexicalScope,node,exitStrict){for(void 0===createNewLexicalScope&&(createNewLexicalScope=!0),void 0===node&&(node=this.startNode()),node.body=[],this.expect(types$1.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types$1.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt);}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node,"BlockStatement")},pp$8.parseFor=function(node,init){return node.init=init,this.expect(types$1.semi),node.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),node.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,"ForStatement")},pp$8.parseForIn=function(node,init){var isForIn=this.type===types$1._in;return this.next(),"VariableDeclaration"===init.type&&null!=init.declarations[0].init&&(!isForIn||this.options.ecmaVersion<8||this.strict||"var"!==init.kind||"Identifier"!==init.declarations[0].id.type)&&this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")},pp$8.parseVar=function(node,isFor,kind){for(node.declarations=[],node.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types$1.eq)?decl.init=this.parseMaybeAssign(isFor):"const"!==kind||this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===decl.id.type||isFor&&(this.type===types$1._in||this.isContextual("of"))?decl.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),node.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types$1.comma))break}return node},pp$8.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLValPattern(decl.id,"var"===kind?1:2,!1);};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2;function isPrivateNameConflicted(privateNameMap,element){var name=element.key.name,curr=privateNameMap[name],next="true";return "MethodDefinition"!==element.type||"get"!==element.kind&&"set"!==element.kind||(next=(element.static?"s":"i")+element.kind),"iget"===curr&&"iset"===next||"iset"===curr&&"iget"===next||"sget"===curr&&"sset"===next||"sset"===curr&&"sget"===next?(privateNameMap[name]="true",!1):!!curr||(privateNameMap[name]=next,!1)}function checkKeyName(node,name){var computed=node.computed,key=node.key;return !computed&&("Identifier"===key.type&&key.name===name||"Literal"===key.type&&key.value===name)}pp$8.parseFunction=function(node,statement,allowExpressionBody,isAsync,forInit){this.initFunction(node),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types$1.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(node.async=!!isAsync),statement&FUNC_STATEMENT&&(node.id=4&statement&&this.type!==types$1.name?null:this.parseIdent(),!node.id||statement&FUNC_HANGING_STATEMENT||this.checkLValSimple(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?1:2:3));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node.async,node.generator)),statement&FUNC_STATEMENT||(node.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(node),this.parseFunctionBody(node,allowExpressionBody,!1,forInit),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$8.parseFunctionParams=function(node){this.expect(types$1.parenL),node.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams();},pp$8.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node,isStatement),this.parseClassSuper(node);var privateNameMap=this.enterClassBody(),classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var element=this.parseClassElement(null!==node.superClass);element&&(classBody.body.push(element),"MethodDefinition"===element.type&&"constructor"===element.kind?(hadConstructor&&this.raise(element.start,"Duplicate constructor in the same class"),hadConstructor=!0):element.key&&"PrivateIdentifier"===element.key.type&&isPrivateNameConflicted(privateNameMap,element)&&this.raiseRecoverable(element.key.start,"Identifier '#"+element.key.name+"' has already been declared"));}return this.strict=oldStrict,this.next(),node.body=this.finishNode(classBody,"ClassBody"),this.exitClassBody(),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")},pp$8.parseClassElement=function(constructorAllowsSuper){if(this.eat(types$1.semi))return null;var ecmaVersion=this.options.ecmaVersion,node=this.startNode(),keyName="",isGenerator=!1,isAsync=!1,kind="method",isStatic=!1;if(this.eatContextual("static")){if(ecmaVersion>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(node),node;this.isClassElementNameStart()||this.type===types$1.star?isStatic=!0:keyName="static";}if(node.static=isStatic,!keyName&&ecmaVersion>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==types$1.star||this.canInsertSemicolon()?keyName="async":isAsync=!0),!keyName&&(ecmaVersion>=9||!isAsync)&&this.eat(types$1.star)&&(isGenerator=!0),!keyName&&!isAsync&&!isGenerator){var lastValue=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?kind=lastValue:keyName=lastValue);}if(keyName?(node.computed=!1,node.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),node.key.name=keyName,this.finishNode(node.key,"Identifier")):this.parseClassElementName(node),ecmaVersion<13||this.type===types$1.parenL||"method"!==kind||isGenerator||isAsync){var isConstructor=!node.static&&checkKeyName(node,"constructor"),allowsDirectSuper=isConstructor&&constructorAllowsSuper;isConstructor&&"method"!==kind&&this.raise(node.key.start,"Constructor can't have get/set modifier"),node.kind=isConstructor?"constructor":kind,this.parseClassMethod(node,isGenerator,isAsync,allowsDirectSuper);}else this.parseClassField(node);return node},pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword},pp$8.parseClassElementName=function(element){this.type===types$1.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),element.computed=!1,element.key=this.parsePrivateIdent()):this.parsePropertyName(element);},pp$8.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){var key=method.key;"constructor"===method.kind?(isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method")):method.static&&checkKeyName(method,"prototype")&&this.raise(key.start,"Classes may not have a static property named prototype");var value=method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper);return "get"===method.kind&&0!==value.params.length&&this.raiseRecoverable(value.start,"getter should have no params"),"set"===method.kind&&1!==value.params.length&&this.raiseRecoverable(value.start,"setter should have exactly one param"),"set"===method.kind&&"RestElement"===value.params[0].type&&this.raiseRecoverable(value.params[0].start,"Setter cannot use rest params"),this.finishNode(method,"MethodDefinition")},pp$8.parseClassField=function(field){if(checkKeyName(field,"constructor")?this.raise(field.key.start,"Classes can't have a field named 'constructor'"):field.static&&checkKeyName(field,"prototype")&&this.raise(field.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)){var scope=this.currentThisScope(),inClassFieldInit=scope.inClassFieldInit;scope.inClassFieldInit=!0,field.value=this.parseMaybeAssign(),scope.inClassFieldInit=inClassFieldInit;}else field.value=null;return this.semicolon(),this.finishNode(field,"PropertyDefinition")},pp$8.parseClassStaticBlock=function(node){node.body=[];var oldLabels=this.labels;for(this.labels=[],this.enterScope(320);this.type!==types$1.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt);}return this.next(),this.exitScope(),this.labels=oldLabels,this.finishNode(node,"StaticBlock")},pp$8.parseClassId=function(node,isStatement){this.type===types$1.name?(node.id=this.parseIdent(),isStatement&&this.checkLValSimple(node.id,2,!1)):(!0===isStatement&&this.unexpected(),node.id=null);},pp$8.parseClassSuper=function(node){node.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(!1):null;},pp$8.enterClassBody=function(){var element={declared:Object.create(null),used:[]};return this.privateNameStack.push(element),element.declared},pp$8.exitClassBody=function(){for(var ref=this.privateNameStack.pop(),declared=ref.declared,used=ref.used,len=this.privateNameStack.length,parent=0===len?null:this.privateNameStack[len-1],i=0;i<used.length;++i){var id=used[i];hasOwn(declared,id.name)||(parent?parent.used.push(id):this.raiseRecoverable(id.start,"Private field '#"+id.name+"' must be declared in an enclosing class"));}},pp$8.parseExport=function(node,exports){if(this.next(),this.eat(types$1.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node.exported=this.parseModuleExportName(),this.checkExport(exports,node.exported,this.lastTokStart)):node.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),node.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node,"ExportAllDeclaration");if(this.eat(types$1._default)){var isAsync;if(this.checkExport(exports,"default",this.lastTokStart),this.type===types$1._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node.declaration=this.parseFunction(fNode,4|FUNC_STATEMENT,!1,isAsync);}else if(this.type===types$1._class){var cNode=this.startNode();node.declaration=this.parseClass(cNode,"nullableID");}else node.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node.declaration=this.parseStatement(null),"VariableDeclaration"===node.declaration.type?this.checkVariableExport(exports,node.declaration.declarations):this.checkExport(exports,node.declaration.id,node.declaration.id.start),node.specifiers=[],node.source=null;else {if(node.declaration=null,node.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),node.source=this.parseExprAtom();else {for(var i=0,list=node.specifiers;i<list.length;i+=1){var spec=list[i];this.checkUnreserved(spec.local),this.checkLocalExport(spec.local),"Literal"===spec.local.type&&this.raise(spec.local.start,"A string literal cannot be used as an exported binding without `from`.");}node.source=null;}this.semicolon();}return this.finishNode(node,"ExportNamedDeclaration")},pp$8.checkExport=function(exports,name,pos){exports&&("string"!=typeof name&&(name="Identifier"===name.type?name.name:name.value),hasOwn(exports,name)&&this.raiseRecoverable(pos,"Duplicate export '"+name+"'"),exports[name]=!0);},pp$8.checkPatternExport=function(exports,pat){var type=pat.type;if("Identifier"===type)this.checkExport(exports,pat,pat.start);else if("ObjectPattern"===type)for(var i=0,list=pat.properties;i<list.length;i+=1){var prop=list[i];this.checkPatternExport(exports,prop);}else if("ArrayPattern"===type)for(var i$1=0,list$1=pat.elements;i$1<list$1.length;i$1+=1){var elt=list$1[i$1];elt&&this.checkPatternExport(exports,elt);}else "Property"===type?this.checkPatternExport(exports,pat.value):"AssignmentPattern"===type?this.checkPatternExport(exports,pat.left):"RestElement"===type?this.checkPatternExport(exports,pat.argument):"ParenthesizedExpression"===type&&this.checkPatternExport(exports,pat.expression);},pp$8.checkVariableExport=function(exports,decls){if(exports)for(var i=0,list=decls;i<list.length;i+=1){var decl=list[i];this.checkPatternExport(exports,decl.id);}},pp$8.shouldParseExportStatement=function(){return "var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},pp$8.parseExportSpecifiers=function(exports){var nodes=[],first=!0;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(first)first=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;var node=this.startNode();node.local=this.parseModuleExportName(),node.exported=this.eatContextual("as")?this.parseModuleExportName():node.local,this.checkExport(exports,node.exported,node.exported.start),nodes.push(this.finishNode(node,"ExportSpecifier"));}return nodes},pp$8.parseImport=function(node){return this.next(),this.type===types$1.string?(node.specifiers=empty$1,node.source=this.parseExprAtom()):(node.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),node.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(node,"ImportDeclaration")},pp$8.parseImportSpecifiers=function(){var nodes=[],first=!0;if(this.type===types$1.name){var node=this.startNode();if(node.local=this.parseIdent(),this.checkLValSimple(node.local,2),nodes.push(this.finishNode(node,"ImportDefaultSpecifier")),!this.eat(types$1.comma))return nodes}if(this.type===types$1.star){var node$1=this.startNode();return this.next(),this.expectContextual("as"),node$1.local=this.parseIdent(),this.checkLValSimple(node$1.local,2),nodes.push(this.finishNode(node$1,"ImportNamespaceSpecifier")),nodes}for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(first)first=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;var node$2=this.startNode();node$2.imported=this.parseModuleExportName(),this.eatContextual("as")?node$2.local=this.parseIdent():(this.checkUnreserved(node$2.imported),node$2.local=node$2.imported),this.checkLValSimple(node$2.local,2),nodes.push(this.finishNode(node$2,"ImportSpecifier"));}return nodes},pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var stringLiteral=this.parseLiteral(this.value);return loneSurrogate.test(stringLiteral.value)&&this.raise(stringLiteral.start,"An export name cannot include a lone surrogate."),stringLiteral}return this.parseIdent(!0)},pp$8.adaptDirectivePrologue=function(statements){for(var i=0;i<statements.length&&this.isDirectiveCandidate(statements[i]);++i)statements[i].directive=statements[i].expression.raw.slice(1,-1);},pp$8.isDirectiveCandidate=function(statement){return this.options.ecmaVersion>=5&&"ExpressionStatement"===statement.type&&"Literal"===statement.expression.type&&"string"==typeof statement.expression.value&&('"'===this.input[statement.start]||"'"===this.input[statement.start])};var pp$7=Parser.prototype;pp$7.toAssignable=function(node,isBinding,refDestructuringErrors){if(this.options.ecmaVersion>=6&&node)switch(node.type){case"Identifier":this.inAsync&&"await"===node.name&&this.raise(node.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list=node.properties;i<list.length;i+=1){var prop=list[i];this.toAssignable(prop,isBinding),"RestElement"!==prop.type||"ArrayPattern"!==prop.argument.type&&"ObjectPattern"!==prop.argument.type||this.raise(prop.argument.start,"Unexpected token");}break;case"Property":"init"!==node.kind&&this.raise(node.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(node.value,isBinding);break;case"ArrayExpression":node.type="ArrayPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0),this.toAssignableList(node.elements,isBinding);break;case"SpreadElement":node.type="RestElement",this.toAssignable(node.argument,isBinding),"AssignmentPattern"===node.argument.type&&this.raise(node.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==node.operator&&this.raise(node.left.end,"Only '=' operator can be used for specifying default value."),node.type="AssignmentPattern",delete node.operator,this.toAssignable(node.left,isBinding);break;case"ParenthesizedExpression":this.toAssignable(node.expression,isBinding,refDestructuringErrors);break;case"ChainExpression":this.raiseRecoverable(node.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!isBinding)break;default:this.raise(node.start,"Assigning to rvalue");}else refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);return node},pp$7.toAssignableList=function(exprList,isBinding){for(var end=exprList.length,i=0;i<end;i++){var elt=exprList[i];elt&&this.toAssignable(elt,isBinding);}if(end){var last=exprList[end-1];6===this.options.ecmaVersion&&isBinding&&last&&"RestElement"===last.type&&"Identifier"!==last.argument.type&&this.unexpected(last.argument.start);}return exprList},pp$7.parseSpread=function(refDestructuringErrors){var node=this.startNode();return this.next(),node.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.finishNode(node,"SpreadElement")},pp$7.parseRestBinding=function(){var node=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==types$1.name&&this.unexpected(),node.argument=this.parseBindingAtom(),this.finishNode(node,"RestElement")},pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types$1.bracketL:var node=this.startNode();return this.next(),node.elements=this.parseBindingList(types$1.bracketR,!0,!0),this.finishNode(node,"ArrayPattern");case types$1.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$7.parseBindingList=function(close,allowEmpty,allowTrailingComma){for(var elts=[],first=!0;!this.eat(close);)if(first?first=!1:this.expect(types$1.comma),allowEmpty&&this.type===types$1.comma)elts.push(null);else {if(allowTrailingComma&&this.afterTrailingComma(close))break;if(this.type===types$1.ellipsis){var rest=this.parseRestBinding();this.parseBindingListItem(rest),elts.push(rest),this.type===types$1.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(close);break}var elem=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(elem),elts.push(elem);}return elts},pp$7.parseBindingListItem=function(param){return param},pp$7.parseMaybeDefault=function(startPos,startLoc,left){if(left=left||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types$1.eq))return left;var node=this.startNodeAt(startPos,startLoc);return node.left=left,node.right=this.parseMaybeAssign(),this.finishNode(node,"AssignmentPattern")},pp$7.checkLValSimple=function(expr,bindingType,checkClashes){void 0===bindingType&&(bindingType=0);var isBind=0!==bindingType;switch(expr.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(expr.name)&&this.raiseRecoverable(expr.start,(isBind?"Binding ":"Assigning to ")+expr.name+" in strict mode"),isBind&&(2===bindingType&&"let"===expr.name&&this.raiseRecoverable(expr.start,"let is disallowed as a lexically bound name"),checkClashes&&(hasOwn(checkClashes,expr.name)&&this.raiseRecoverable(expr.start,"Argument name clash"),checkClashes[expr.name]=!0),5!==bindingType&&this.declareName(expr.name,bindingType,expr.start));break;case"ChainExpression":this.raiseRecoverable(expr.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":isBind&&this.raiseRecoverable(expr.start,"Binding member expression");break;case"ParenthesizedExpression":return isBind&&this.raiseRecoverable(expr.start,"Binding parenthesized expression"),this.checkLValSimple(expr.expression,bindingType,checkClashes);default:this.raise(expr.start,(isBind?"Binding":"Assigning to")+" rvalue");}},pp$7.checkLValPattern=function(expr,bindingType,checkClashes){switch(void 0===bindingType&&(bindingType=0),expr.type){case"ObjectPattern":for(var i=0,list=expr.properties;i<list.length;i+=1){var prop=list[i];this.checkLValInnerPattern(prop,bindingType,checkClashes);}break;case"ArrayPattern":for(var i$1=0,list$1=expr.elements;i$1<list$1.length;i$1+=1){var elem=list$1[i$1];elem&&this.checkLValInnerPattern(elem,bindingType,checkClashes);}break;default:this.checkLValSimple(expr,bindingType,checkClashes);}},pp$7.checkLValInnerPattern=function(expr,bindingType,checkClashes){switch(void 0===bindingType&&(bindingType=0),expr.type){case"Property":this.checkLValInnerPattern(expr.value,bindingType,checkClashes);break;case"AssignmentPattern":this.checkLValPattern(expr.left,bindingType,checkClashes);break;case"RestElement":this.checkLValPattern(expr.argument,bindingType,checkClashes);break;default:this.checkLValPattern(expr,bindingType,checkClashes);}};var TokContext=function(token,isExpr,preserveSpace,override,generator){this.token=token,this.isExpr=!!isExpr,this.preserveSpace=!!preserveSpace,this.override=override,this.generator=!!generator;},types={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,(function(p){return p.tryReadTemplateToken()})),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$6=Parser.prototype;pp$6.initialContext=function(){return [types.b_stat]},pp$6.curContext=function(){return this.context[this.context.length-1]},pp$6.braceIsBlock=function(prevType){var parent=this.curContext();return parent===types.f_expr||parent===types.f_stat||(prevType!==types$1.colon||parent!==types.b_stat&&parent!==types.b_expr?prevType===types$1._return||prevType===types$1.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):prevType===types$1._else||prevType===types$1.semi||prevType===types$1.eof||prevType===types$1.parenR||prevType===types$1.arrow||(prevType===types$1.braceL?parent===types.b_stat:prevType!==types$1._var&&prevType!==types$1._const&&prevType!==types$1.name&&!this.exprAllowed):!parent.isExpr)},pp$6.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var context=this.context[i];if("function"===context.token)return context.generator}return !1},pp$6.updateContext=function(prevType){var update,type=this.type;type.keyword&&prevType===types$1.dot?this.exprAllowed=!1:(update=type.updateContext)?update.call(this,prevType):this.exprAllowed=type.beforeExpr;},pp$6.overrideContext=function(tokenCtx){this.curContext()!==tokenCtx&&(this.context[this.context.length-1]=tokenCtx);},types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(1!==this.context.length){var out=this.context.pop();out===types.b_stat&&"function"===this.curContext().token&&(out=this.context.pop()),this.exprAllowed=!out.isExpr;}else this.exprAllowed=!0;},types$1.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types.b_stat:types.b_expr),this.exprAllowed=!0;},types$1.dollarBraceL.updateContext=function(){this.context.push(types.b_tmpl),this.exprAllowed=!0;},types$1.parenL.updateContext=function(prevType){var statementParens=prevType===types$1._if||prevType===types$1._for||prevType===types$1._with||prevType===types$1._while;this.context.push(statementParens?types.p_stat:types.p_expr),this.exprAllowed=!0;},types$1.incDec.updateContext=function(){},types$1._function.updateContext=types$1._class.updateContext=function(prevType){!prevType.beforeExpr||prevType===types$1._else||prevType===types$1.semi&&this.curContext()!==types.p_stat||prevType===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(prevType===types$1.colon||prevType===types$1.braceL)&&this.curContext()===types.b_stat?this.context.push(types.f_stat):this.context.push(types.f_expr),this.exprAllowed=!1;},types$1.backQuote.updateContext=function(){this.curContext()===types.q_tmpl?this.context.pop():this.context.push(types.q_tmpl),this.exprAllowed=!1;},types$1.star.updateContext=function(prevType){if(prevType===types$1._function){var index=this.context.length-1;this.context[index]===types.f_expr?this.context[index]=types.f_expr_gen:this.context[index]=types.f_gen;}this.exprAllowed=!0;},types$1.name.updateContext=function(prevType){var allowed=!1;this.options.ecmaVersion>=6&&prevType!==types$1.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(allowed=!0),this.exprAllowed=allowed;};var pp$5=Parser.prototype;function isPrivateFieldAccess(node){return "MemberExpression"===node.type&&"PrivateIdentifier"===node.property.type||"ChainExpression"===node.type&&isPrivateFieldAccess(node.expression)}pp$5.checkPropClash=function(prop,propHash,refDestructuringErrors){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===prop.type||this.options.ecmaVersion>=6&&(prop.computed||prop.method||prop.shorthand))){var name,key=prop.key;switch(key.type){case"Identifier":name=key.name;break;case"Literal":name=String(key.value);break;default:return}var kind=prop.kind;if(this.options.ecmaVersion>=6)"__proto__"===name&&"init"===kind&&(propHash.proto&&(refDestructuringErrors?refDestructuringErrors.doubleProto<0&&(refDestructuringErrors.doubleProto=key.start):this.raiseRecoverable(key.start,"Redefinition of __proto__ property")),propHash.proto=!0);else {var other=propHash[name="$"+name];if(other)("init"===kind?this.strict&&other.init||other.get||other.set:other.init||other[kind])&&this.raiseRecoverable(key.start,"Redefinition of property");else other=propHash[name]={init:!1,get:!1,set:!1};other[kind]=!0;}}},pp$5.parseExpression=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeAssign(forInit,refDestructuringErrors);if(this.type===types$1.comma){var node=this.startNodeAt(startPos,startLoc);for(node.expressions=[expr];this.eat(types$1.comma);)node.expressions.push(this.parseMaybeAssign(forInit,refDestructuringErrors));return this.finishNode(node,"SequenceExpression")}return expr},pp$5.parseMaybeAssign=function(forInit,refDestructuringErrors,afterLeftParse){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(forInit);this.exprAllowed=!1;}var ownDestructuringErrors=!1,oldParenAssign=-1,oldTrailingComma=-1,oldDoubleProto=-1;refDestructuringErrors?(oldParenAssign=refDestructuringErrors.parenthesizedAssign,oldTrailingComma=refDestructuringErrors.trailingComma,oldDoubleProto=refDestructuringErrors.doubleProto,refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=-1):(refDestructuringErrors=new DestructuringErrors,ownDestructuringErrors=!0);var startPos=this.start,startLoc=this.startLoc;this.type!==types$1.parenL&&this.type!==types$1.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===forInit);var left=this.parseMaybeConditional(forInit,refDestructuringErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),this.type.isAssign){var node=this.startNodeAt(startPos,startLoc);return node.operator=this.value,this.type===types$1.eq&&(left=this.toAssignable(left,!1,refDestructuringErrors)),ownDestructuringErrors||(refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=refDestructuringErrors.doubleProto=-1),refDestructuringErrors.shorthandAssign>=left.start&&(refDestructuringErrors.shorthandAssign=-1),this.type===types$1.eq?this.checkLValPattern(left):this.checkLValSimple(left),node.left=left,this.next(),node.right=this.parseMaybeAssign(forInit),oldDoubleProto>-1&&(refDestructuringErrors.doubleProto=oldDoubleProto),this.finishNode(node,"AssignmentExpression")}return ownDestructuringErrors&&this.checkExpressionErrors(refDestructuringErrors,!0),oldParenAssign>-1&&(refDestructuringErrors.parenthesizedAssign=oldParenAssign),oldTrailingComma>-1&&(refDestructuringErrors.trailingComma=oldTrailingComma),left},pp$5.parseMaybeConditional=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprOps(forInit,refDestructuringErrors);if(this.checkExpressionErrors(refDestructuringErrors))return expr;if(this.eat(types$1.question)){var node=this.startNodeAt(startPos,startLoc);return node.test=expr,node.consequent=this.parseMaybeAssign(),this.expect(types$1.colon),node.alternate=this.parseMaybeAssign(forInit),this.finishNode(node,"ConditionalExpression")}return expr},pp$5.parseExprOps=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeUnary(refDestructuringErrors,!1,!1,forInit);return this.checkExpressionErrors(refDestructuringErrors)||expr.start===startPos&&"ArrowFunctionExpression"===expr.type?expr:this.parseExprOp(expr,startPos,startLoc,-1,forInit)},pp$5.parseExprOp=function(left,leftStartPos,leftStartLoc,minPrec,forInit){var prec=this.type.binop;if(null!=prec&&(!forInit||this.type!==types$1._in)&&prec>minPrec){var logical=this.type===types$1.logicalOR||this.type===types$1.logicalAND,coalesce=this.type===types$1.coalesce;coalesce&&(prec=types$1.logicalAND.binop);var op=this.value;this.next();var startPos=this.start,startLoc=this.startLoc,right=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,forInit),startPos,startLoc,prec,forInit),node=this.buildBinary(leftStartPos,leftStartLoc,left,right,op,logical||coalesce);return (logical&&this.type===types$1.coalesce||coalesce&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec,forInit)}return left},pp$5.buildBinary=function(startPos,startLoc,left,right,op,logical){"PrivateIdentifier"===right.type&&this.raise(right.start,"Private identifier can only be left side of binary expression");var node=this.startNodeAt(startPos,startLoc);return node.left=left,node.operator=op,node.right=right,this.finishNode(node,logical?"LogicalExpression":"BinaryExpression")},pp$5.parseMaybeUnary=function(refDestructuringErrors,sawUnary,incDec,forInit){var expr,startPos=this.start,startLoc=this.startLoc;if(this.isContextual("await")&&this.canAwait)expr=this.parseAwait(forInit),sawUnary=!0;else if(this.type.prefix){var node=this.startNode(),update=this.type===types$1.incDec;node.operator=this.value,node.prefix=!0,this.next(),node.argument=this.parseMaybeUnary(null,!0,update,forInit),this.checkExpressionErrors(refDestructuringErrors,!0),update?this.checkLValSimple(node.argument):this.strict&&"delete"===node.operator&&"Identifier"===node.argument.type?this.raiseRecoverable(node.start,"Deleting local variable in strict mode"):"delete"===node.operator&&isPrivateFieldAccess(node.argument)?this.raiseRecoverable(node.start,"Private fields can not be deleted"):sawUnary=!0,expr=this.finishNode(node,update?"UpdateExpression":"UnaryExpression");}else if(sawUnary||this.type!==types$1.privateId){if(expr=this.parseExprSubscripts(refDestructuringErrors,forInit),this.checkExpressionErrors(refDestructuringErrors))return expr;for(;this.type.postfix&&!this.canInsertSemicolon();){var node$1=this.startNodeAt(startPos,startLoc);node$1.operator=this.value,node$1.prefix=!1,node$1.argument=expr,this.checkLValSimple(expr),this.next(),expr=this.finishNode(node$1,"UpdateExpression");}}else (forInit||0===this.privateNameStack.length)&&this.unexpected(),expr=this.parsePrivateIdent(),this.type!==types$1._in&&this.unexpected();return incDec||!this.eat(types$1.starstar)?expr:sawUnary?void this.unexpected(this.lastTokStart):this.buildBinary(startPos,startLoc,expr,this.parseMaybeUnary(null,!1,!1,forInit),"**",!1)},pp$5.parseExprSubscripts=function(refDestructuringErrors,forInit){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprAtom(refDestructuringErrors,forInit);if("ArrowFunctionExpression"===expr.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return expr;var result=this.parseSubscripts(expr,startPos,startLoc,!1,forInit);return refDestructuringErrors&&"MemberExpression"===result.type&&(refDestructuringErrors.parenthesizedAssign>=result.start&&(refDestructuringErrors.parenthesizedAssign=-1),refDestructuringErrors.parenthesizedBind>=result.start&&(refDestructuringErrors.parenthesizedBind=-1),refDestructuringErrors.trailingComma>=result.start&&(refDestructuringErrors.trailingComma=-1)),result},pp$5.parseSubscripts=function(base,startPos,startLoc,noCalls,forInit){for(var maybeAsyncArrow=this.options.ecmaVersion>=8&&"Identifier"===base.type&&"async"===base.name&&this.lastTokEnd===base.end&&!this.canInsertSemicolon()&&base.end-base.start==5&&this.potentialArrowAt===base.start,optionalChained=!1;;){var element=this.parseSubscript(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained,forInit);if(element.optional&&(optionalChained=!0),element===base||"ArrowFunctionExpression"===element.type){if(optionalChained){var chainNode=this.startNodeAt(startPos,startLoc);chainNode.expression=element,element=this.finishNode(chainNode,"ChainExpression");}return element}base=element;}},pp$5.parseSubscript=function(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained,forInit){var optionalSupported=this.options.ecmaVersion>=11,optional=optionalSupported&&this.eat(types$1.questionDot);noCalls&&optional&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var computed=this.eat(types$1.bracketL);if(computed||optional&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var node=this.startNodeAt(startPos,startLoc);node.object=base,computed?(node.property=this.parseExpression(),this.expect(types$1.bracketR)):this.type===types$1.privateId&&"Super"!==base.type?node.property=this.parsePrivateIdent():node.property=this.parseIdent("never"!==this.options.allowReserved),node.computed=!!computed,optionalSupported&&(node.optional=optional),base=this.finishNode(node,"MemberExpression");}else if(!noCalls&&this.eat(types$1.parenL)){var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var exprList=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1,refDestructuringErrors);if(maybeAsyncArrow&&!optional&&!this.canInsertSemicolon()&&this.eat(types$1.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,!0,forInit);this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,this.awaitIdentPos=oldAwaitIdentPos||this.awaitIdentPos;var node$1=this.startNodeAt(startPos,startLoc);node$1.callee=base,node$1.arguments=exprList,optionalSupported&&(node$1.optional=optional),base=this.finishNode(node$1,"CallExpression");}else if(this.type===types$1.backQuote){(optional||optionalChained)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var node$2=this.startNodeAt(startPos,startLoc);node$2.tag=base,node$2.quasi=this.parseTemplate({isTagged:!0}),base=this.finishNode(node$2,"TaggedTemplateExpression");}return base},pp$5.parseExprAtom=function(refDestructuringErrors,forInit){this.type===types$1.slash&&this.readRegexp();var node,canBeArrow=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),node=this.startNode(),this.next(),this.type!==types$1.parenL||this.allowDirectSuper||this.raise(node.start,"super() call outside constructor of a subclass"),this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL&&this.unexpected(),this.finishNode(node,"Super");case types$1._this:return node=this.startNode(),this.next(),this.finishNode(node,"ThisExpression");case types$1.name:var startPos=this.start,startLoc=this.startLoc,containsEsc=this.containsEsc,id=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types.f_expr),this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0,forInit);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1,forInit);if(this.options.ecmaVersion>=8&&"async"===id.name&&this.type===types$1.name&&!containsEsc&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return id=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(types$1.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0,forInit)}return id;case types$1.regexp:var value=this.value;return (node=this.parseLiteral(value.value)).regex={pattern:value.pattern,flags:value.flags},node;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return (node=this.startNode()).value=this.type===types$1._null?null:this.type===types$1._true,node.raw=this.type.keyword,this.next(),this.finishNode(node,"Literal");case types$1.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow,forInit);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start)),expr;case types$1.bracketL:return node=this.startNode(),this.next(),node.elements=this.parseExprList(types$1.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node,"ArrayExpression");case types$1.braceL:return this.overrideContext(types.b_expr),this.parseObj(!1,refDestructuringErrors);case types$1._function:return node=this.startNode(),this.next(),this.parseFunction(node,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected();}},pp$5.parseExprImport=function(){var node=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types$1.parenL:return this.parseDynamicImport(node);case types$1.dot:return node.meta=meta,this.parseImportMeta(node);default:this.unexpected();}},pp$5.parseDynamicImport=function(node){if(this.next(),node.source=this.parseMaybeAssign(),!this.eat(types$1.parenR)){var errorPos=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos);}return this.finishNode(node,"ImportExpression")},pp$5.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"meta"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node,"MetaProperty")},pp$5.parseLiteral=function(value){var node=this.startNode();return node.value=value,node.raw=this.input.slice(this.start,this.end),110===node.raw.charCodeAt(node.raw.length-1)&&(node.bigint=node.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node,"Literal")},pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var val=this.parseExpression();return this.expect(types$1.parenR),val},pp$5.parseParenAndDistinguishExpression=function(canBeArrow,forInit){var val,startPos=this.start,startLoc=this.startLoc,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var spreadStart,innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;){if(first?first=!1:this.expect(types$1.comma),allowTrailingComma&&this.afterTrailingComma(types$1.parenR,!0)){lastIsComma=!0;break}if(this.type===types$1.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem));}var innerEndPos=this.lastTokEnd,innerEndLoc=this.lastTokEndLoc;if(this.expect(types$1.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types$1.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList,forInit);exprList.length&&!lastIsComma||this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?((val=this.startNodeAt(innerStartPos,innerStartLoc)).expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0];}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}return val},pp$5.parseParenItem=function(item){return item},pp$5.parseParenArrowList=function(startPos,startLoc,exprList,forInit){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,!1,forInit)};var empty=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types$1.dot)){node.meta=meta;var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"target"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(node.start,"'new.target' can only be used in functions and class static block"),this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types$1._import;return node.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0,!1),isImport&&"ImportExpression"===node.callee.type&&this.raise(startPos,"Cannot use new with import()"),this.eat(types$1.parenL)?node.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):node.arguments=empty,this.finishNode(node,"NewExpression")},pp$5.parseTemplateElement=function(ref){var isTagged=ref.isTagged,elem=this.startNode();return this.type===types$1.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),elem.tail=this.type===types$1.backQuote,this.finishNode(elem,"TemplateElement")},pp$5.parseTemplate=function(ref){void 0===ref&&(ref={});var isTagged=ref.isTagged;void 0===isTagged&&(isTagged=!1);var node=this.startNode();this.next(),node.expressions=[];var curElt=this.parseTemplateElement({isTagged});for(node.quasis=[curElt];!curElt.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),node.expressions.push(this.parseExpression()),this.expect(types$1.braceR),node.quasis.push(curElt=this.parseTemplateElement({isTagged}));return this.next(),this.finishNode(node,"TemplateLiteral")},pp$5.isAsyncProp=function(prop){return !prop.computed&&"Identifier"===prop.key.type&&"async"===prop.key.name&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$5.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=!0,propHash={};for(node.properties=[],this.next();!this.eat(types$1.braceR);){if(first)first=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var prop=this.parseProperty(isPattern,refDestructuringErrors);isPattern||this.checkPropClash(prop,propHash,refDestructuringErrors),node.properties.push(prop);}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")},pp$5.parseProperty=function(isPattern,refDestructuringErrors){var isGenerator,isAsync,startPos,startLoc,prop=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return isPattern?(prop.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(prop,"RestElement")):(prop.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.type===types$1.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start),this.finishNode(prop,"SpreadElement"));this.options.ecmaVersion>=6&&(prop.method=!1,prop.shorthand=!1,(isPattern||refDestructuringErrors)&&(startPos=this.start,startLoc=this.startLoc),isPattern||(isGenerator=this.eat(types$1.star)));var containsEsc=this.containsEsc;return this.parsePropertyName(prop),!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(prop,refDestructuringErrors)):isAsync=!1,this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc),this.finishNode(prop,"Property")},pp$5.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon))prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,refDestructuringErrors),prop.kind="init";else if(this.options.ecmaVersion>=6&&this.type===types$1.parenL)isPattern&&this.unexpected(),prop.kind="init",prop.method=!0,prop.value=this.parseMethod(isGenerator,isAsync);else if(isPattern||containsEsc||!(this.options.ecmaVersion>=5)||prop.computed||"Identifier"!==prop.key.type||"get"!==prop.key.name&&"set"!==prop.key.name||this.type===types$1.comma||this.type===types$1.braceR||this.type===types$1.eq)this.options.ecmaVersion>=6&&!prop.computed&&"Identifier"===prop.key.type?((isGenerator||isAsync)&&this.unexpected(),this.checkUnreserved(prop.key),"await"!==prop.key.name||this.awaitIdentPos||(this.awaitIdentPos=startPos),prop.kind="init",isPattern?prop.value=this.parseMaybeDefault(startPos,startLoc,this.copyNode(prop.key)):this.type===types$1.eq&&refDestructuringErrors?(refDestructuringErrors.shorthandAssign<0&&(refDestructuringErrors.shorthandAssign=this.start),prop.value=this.parseMaybeDefault(startPos,startLoc,this.copyNode(prop.key))):prop.value=this.copyNode(prop.key),prop.shorthand=!0):this.unexpected();else {(isGenerator||isAsync)&&this.unexpected(),prop.kind=prop.key.name,this.parsePropertyName(prop),prop.value=this.parseMethod(!1);var paramCount="get"===prop.kind?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;"get"===prop.kind?this.raiseRecoverable(start,"getter should have no params"):this.raiseRecoverable(start,"setter should have exactly one param");}else "set"===prop.kind&&"RestElement"===prop.value.params[0].type&&this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params");}},pp$5.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return prop.computed=!0,prop.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),prop.key;prop.computed=!1;}return prop.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$5.initFunction=function(node){node.id=null,this.options.ecmaVersion>=6&&(node.generator=node.expression=!1),this.options.ecmaVersion>=8&&(node.async=!1);},pp$5.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.initFunction(node),this.options.ecmaVersion>=6&&(node.generator=isGenerator),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(isAsync,node.generator)|(allowDirectSuper?128:0)),this.expect(types$1.parenL),node.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(node,!1,!0,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"FunctionExpression")},pp$5.parseArrowExpression=function(node,params,isAsync,forInit){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.enterScope(16|functionFlags(isAsync,!1)),this.initFunction(node),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,node.params=this.toAssignableList(params,!0),this.parseFunctionBody(node,!0,!1,forInit),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"ArrowFunctionExpression")},pp$5.parseFunctionBody=function(node,isArrowFunction,isMethod,forInit){var isExpression=isArrowFunction&&this.type!==types$1.braceL,oldStrict=this.strict,useStrict=!1;if(isExpression)node.body=this.parseMaybeAssign(forInit),node.expression=!0,this.checkParams(node,!1);else {var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);oldStrict&&!nonSimple||(useStrict=this.strictDirective(this.end))&&nonSimple&&this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list");var oldLabels=this.labels;this.labels=[],useStrict&&(this.strict=!0),this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params)),this.strict&&node.id&&this.checkLValSimple(node.id,5),node.body=this.parseBlock(!1,void 0,useStrict&&!oldStrict),node.expression=!1,this.adaptDirectivePrologue(node.body.body),this.labels=oldLabels;}this.exitScope();},pp$5.isSimpleParamList=function(params){for(var i=0,list=params;i<list.length;i+=1){if("Identifier"!==list[i].type)return !1}return !0},pp$5.checkParams=function(node,allowDuplicates){for(var nameHash=Object.create(null),i=0,list=node.params;i<list.length;i+=1){var param=list[i];this.checkLValInnerPattern(param,1,allowDuplicates?null:nameHash);}},pp$5.parseExprList=function(close,allowTrailingComma,allowEmpty,refDestructuringErrors){for(var elts=[],first=!0;!this.eat(close);){if(first)first=!1;else if(this.expect(types$1.comma),allowTrailingComma&&this.afterTrailingComma(close))break;var elt=void 0;allowEmpty&&this.type===types$1.comma?elt=null:this.type===types$1.ellipsis?(elt=this.parseSpread(refDestructuringErrors),refDestructuringErrors&&this.type===types$1.comma&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start)):elt=this.parseMaybeAssign(!1,refDestructuringErrors),elts.push(elt);}return elts},pp$5.checkUnreserved=function(ref){var start=ref.start,end=ref.end,name=ref.name;(this.inGenerator&&"yield"===name&&this.raiseRecoverable(start,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===name&&this.raiseRecoverable(start,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===name&&this.raiseRecoverable(start,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==name&&"await"!==name||this.raise(start,"Cannot use "+name+" in class static initialization block"),this.keywords.test(name)&&this.raise(start,"Unexpected keyword '"+name+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(start,end).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(name)&&(this.inAsync||"await"!==name||this.raiseRecoverable(start,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(start,"The keyword '"+name+"' is reserved"));},pp$5.parseIdent=function(liberal,isBinding){var node=this.startNode();return this.type===types$1.name?node.name=this.value:this.type.keyword?(node.name=this.type.keyword,"class"!==node.name&&"function"!==node.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!liberal),this.finishNode(node,"Identifier"),liberal||(this.checkUnreserved(node),"await"!==node.name||this.awaitIdentPos||(this.awaitIdentPos=node.start)),node},pp$5.parsePrivateIdent=function(){var node=this.startNode();return this.type===types$1.privateId?node.name=this.value:this.unexpected(),this.next(),this.finishNode(node,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(node.start,"Private field '#"+node.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(node),node},pp$5.parseYield=function(forInit){this.yieldPos||(this.yieldPos=this.start);var node=this.startNode();return this.next(),this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr?(node.delegate=!1,node.argument=null):(node.delegate=this.eat(types$1.star),node.argument=this.parseMaybeAssign(forInit)),this.finishNode(node,"YieldExpression")},pp$5.parseAwait=function(forInit){this.awaitPos||(this.awaitPos=this.start);var node=this.startNode();return this.next(),node.argument=this.parseMaybeUnary(null,!0,!1,forInit),this.finishNode(node,"AwaitExpression")};var pp$4=Parser.prototype;pp$4.raise=function(pos,message){var loc=getLineInfo(this.input,pos);message+=" ("+loc.line+":"+loc.column+")";var err=new SyntaxError(message);throw err.pos=pos,err.loc=loc,err.raisedAt=this.pos,err},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)};var pp$3=Parser.prototype,Scope=function(flags){this.flags=flags,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1;};pp$3.enterScope=function(flags){this.scopeStack.push(new Scope(flags));},pp$3.exitScope=function(){this.scopeStack.pop();},pp$3.treatFunctionsAsVarInScope=function(scope){return 2&scope.flags||!this.inModule&&1&scope.flags},pp$3.declareName=function(name,bindingType,pos){var redeclared=!1;if(2===bindingType){var scope=this.currentScope();redeclared=scope.lexical.indexOf(name)>-1||scope.functions.indexOf(name)>-1||scope.var.indexOf(name)>-1,scope.lexical.push(name),this.inModule&&1&scope.flags&&delete this.undefinedExports[name];}else if(4===bindingType){this.currentScope().lexical.push(name);}else if(3===bindingType){var scope$2=this.currentScope();redeclared=this.treatFunctionsAsVar?scope$2.lexical.indexOf(name)>-1:scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1,scope$2.functions.push(name);}else for(var i=this.scopeStack.length-1;i>=0;--i){var scope$3=this.scopeStack[i];if(scope$3.lexical.indexOf(name)>-1&&!(32&scope$3.flags&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=!0;break}if(scope$3.var.push(name),this.inModule&&1&scope$3.flags&&delete this.undefinedExports[name],259&scope$3.flags)break}redeclared&&this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared");},pp$3.checkLocalExport=function(id){-1===this.scopeStack[0].lexical.indexOf(id.name)&&-1===this.scopeStack[0].var.indexOf(id.name)&&(this.undefinedExports[id.name]=id);},pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$3.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(259&scope.flags)return scope}},pp$3.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(259&scope.flags&&!(16&scope.flags))return scope}};var Node=function(parser,pos,loc){this.type="",this.start=pos,this.end=0,parser.options.locations&&(this.loc=new SourceLocation(parser,loc)),parser.options.directSourceFile&&(this.sourceFile=parser.options.directSourceFile),parser.options.ranges&&(this.range=[pos,0]);},pp$2=Parser.prototype;function finishNodeAt(node,type,pos,loc){return node.type=type,node.end=pos,this.options.locations&&(node.loc.end=loc),this.options.ranges&&(node.range[1]=pos),node}pp$2.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$2.startNodeAt=function(pos,loc){return new Node(this,pos,loc)},pp$2.finishNode=function(node,type){return finishNodeAt.call(this,node,type,this.lastTokEnd,this.lastTokEndLoc)},pp$2.finishNodeAt=function(node,type,pos,loc){return finishNodeAt.call(this,node,type,pos,loc)},pp$2.copyNode=function(node){var newNode=new Node(this,node.start,this.startLoc);for(var prop in node)newNode[prop]=node[prop];return newNode};var ecma9BinaryProperties="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",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma12BinaryProperties=ecma10BinaryProperties+" EBase EComp EMod EPres ExtPict",unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma10BinaryProperties,12:ecma12BinaryProperties,13:"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 Extended_Pictographic EBase EComp EMod EPres ExtPict"},unicodeGeneralCategoryValues="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",ecma9ScriptValues="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",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:"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 Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith"},data={};function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions;}for(var i=0,list=[9,10,11,12,13];i<list.length;i+=1){buildUnicodeData(list[i]);}var pp$1=Parser.prototype,RegExpValidationState=function(parser){this.parser=parser,this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":"")+(parser.options.ecmaVersion>=13?"d":""),this.unicodeProperties=data[parser.options.ecmaVersion>=13?13:parser.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!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=[];};function isSyntaxCharacter(ch){return 36===ch||ch>=40&&ch<=43||46===ch||63===ch||ch>=91&&ch<=94||ch>=123&&ch<=125}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||95===ch}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?ch-65+10:ch>=97&&ch<=102?ch-97+10:ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}RegExpValidationState.prototype.reset=function(start,pattern,flags){var unicode=-1!==flags.indexOf("u");this.start=0|start,this.source=pattern+"",this.flags=flags,this.switchU=unicode&&this.parser.options.ecmaVersion>=6,this.switchN=unicode&&this.parser.options.ecmaVersion>=9;},RegExpValidationState.prototype.raise=function(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message);},RegExpValidationState.prototype.at=function(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return -1;var c=s.charCodeAt(i);if(!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l)return c;var next=s.charCodeAt(i+1);return next>=56320&&next<=57343?(c<<10)+next-56613888:c},RegExpValidationState.prototype.nextIndex=function(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return l;var next,c=s.charCodeAt(i);return !forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l||(next=s.charCodeAt(i+1))<56320||next>57343?i+1:i+2},RegExpValidationState.prototype.current=function(forceU){return void 0===forceU&&(forceU=!1),this.at(this.pos,forceU)},RegExpValidationState.prototype.lookahead=function(forceU){return void 0===forceU&&(forceU=!1),this.at(this.nextIndex(this.pos,forceU),forceU)},RegExpValidationState.prototype.advance=function(forceU){void 0===forceU&&(forceU=!1),this.pos=this.nextIndex(this.pos,forceU);},RegExpValidationState.prototype.eat=function(ch,forceU){return void 0===forceU&&(forceU=!1),this.current(forceU)===ch&&(this.advance(forceU),!0)},pp$1.validateRegExpFlags=function(state){for(var validFlags=state.validFlags,flags=state.flags,i=0;i<flags.length;i++){var flag=flags.charAt(i);-1===validFlags.indexOf(flag)&&this.raise(state.start,"Invalid regular expression flag"),flags.indexOf(flag,i+1)>-1&&this.raise(state.start,"Duplicate regular expression flag");}},pp$1.validateRegExpPattern=function(state){this.regexp_pattern(state),!state.switchN&&this.options.ecmaVersion>=9&&state.groupNames.length>0&&(state.switchN=!0,this.regexp_pattern(state));},pp$1.regexp_pattern=function(state){state.pos=0,state.lastIntValue=0,state.lastStringValue="",state.lastAssertionIsQuantifiable=!1,state.numCapturingParens=0,state.maxBackReference=0,state.groupNames.length=0,state.backReferenceNames.length=0,this.regexp_disjunction(state),state.pos!==state.source.length&&(state.eat(41)&&state.raise("Unmatched ')'"),(state.eat(93)||state.eat(125))&&state.raise("Lone quantifier brackets")),state.maxBackReference>state.numCapturingParens&&state.raise("Invalid escape");for(var i=0,list=state.backReferenceNames;i<list.length;i+=1){var name=list[i];-1===state.groupNames.indexOf(name)&&state.raise("Invalid named capture referenced");}},pp$1.regexp_disjunction=function(state){for(this.regexp_alternative(state);state.eat(124);)this.regexp_alternative(state);this.regexp_eatQuantifier(state,!0)&&state.raise("Nothing to repeat"),state.eat(123)&&state.raise("Lone quantifier brackets");},pp$1.regexp_alternative=function(state){for(;state.pos<state.source.length&&this.regexp_eatTerm(state););},pp$1.regexp_eatTerm=function(state){return this.regexp_eatAssertion(state)?(state.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(state)&&state.switchU&&state.raise("Invalid quantifier"),!0):!!(state.switchU?this.regexp_eatAtom(state):this.regexp_eatExtendedAtom(state))&&(this.regexp_eatQuantifier(state),!0)},pp$1.regexp_eatAssertion=function(state){var start=state.pos;if(state.lastAssertionIsQuantifiable=!1,state.eat(94)||state.eat(36))return !0;if(state.eat(92)){if(state.eat(66)||state.eat(98))return !0;state.pos=start;}if(state.eat(40)&&state.eat(63)){var lookbehind=!1;if(this.options.ecmaVersion>=9&&(lookbehind=state.eat(60)),state.eat(61)||state.eat(33))return this.regexp_disjunction(state),state.eat(41)||state.raise("Unterminated group"),state.lastAssertionIsQuantifiable=!lookbehind,!0}return state.pos=start,!1},pp$1.regexp_eatQuantifier=function(state,noError){return void 0===noError&&(noError=!1),!!this.regexp_eatQuantifierPrefix(state,noError)&&(state.eat(63),!0)},pp$1.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)},pp$1.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min=0,max=-1;if(this.regexp_eatDecimalDigits(state)&&(min=state.lastIntValue,state.eat(44)&&this.regexp_eatDecimalDigits(state)&&(max=state.lastIntValue),state.eat(125)))return -1!==max&&max<min&&!noError&&state.raise("numbers out of order in {} quantifier"),!0;state.switchU&&!noError&&state.raise("Incomplete quantifier"),state.pos=start;}return !1},pp$1.regexp_eatAtom=function(state){return this.regexp_eatPatternCharacters(state)||state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)},pp$1.regexp_eatReverseSolidusAtomEscape=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatAtomEscape(state))return !0;state.pos=start;}return !1},pp$1.regexp_eatUncapturingGroup=function(state){var start=state.pos;if(state.eat(40)){if(state.eat(63)&&state.eat(58)){if(this.regexp_disjunction(state),state.eat(41))return !0;state.raise("Unterminated group");}state.pos=start;}return !1},pp$1.regexp_eatCapturingGroup=function(state){if(state.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(state):63===state.current()&&state.raise("Invalid group"),this.regexp_disjunction(state),state.eat(41))return state.numCapturingParens+=1,!0;state.raise("Unterminated group");}return !1},pp$1.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)},pp$1.regexp_eatInvalidBracedQuantifier=function(state){return this.regexp_eatBracedQuantifier(state,!0)&&state.raise("Nothing to repeat"),!1},pp$1.regexp_eatSyntaxCharacter=function(state){var ch=state.current();return !!isSyntaxCharacter(ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$1.regexp_eatPatternCharacters=function(state){for(var start=state.pos,ch=0;-1!==(ch=state.current())&&!isSyntaxCharacter(ch);)state.advance();return state.pos!==start},pp$1.regexp_eatExtendedPatternCharacter=function(state){var ch=state.current();return !(-1===ch||36===ch||ch>=40&&ch<=43||46===ch||63===ch||91===ch||94===ch||124===ch)&&(state.advance(),!0)},pp$1.regexp_groupSpecifier=function(state){if(state.eat(63)){if(this.regexp_eatGroupName(state))return -1!==state.groupNames.indexOf(state.lastStringValue)&&state.raise("Duplicate capture group name"),void state.groupNames.push(state.lastStringValue);state.raise("Invalid group");}},pp$1.regexp_eatGroupName=function(state){if(state.lastStringValue="",state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62))return !0;state.raise("Invalid capture group name");}return !1},pp$1.regexp_eatRegExpIdentifierName=function(state){if(state.lastStringValue="",this.regexp_eatRegExpIdentifierStart(state)){for(state.lastStringValue+=codePointToString(state.lastIntValue);this.regexp_eatRegExpIdentifierPart(state);)state.lastStringValue+=codePointToString(state.lastIntValue);return !0}return !1},pp$1.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function(ch){return isIdentifierStart(ch,!0)||36===ch||95===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$1.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function(ch){return isIdentifierChar(ch,!0)||36===ch||95===ch||8204===ch||8205===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$1.regexp_eatAtomEscape=function(state){return !!(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state))||(state.switchU&&(99===state.current()&&state.raise("Invalid unicode escape"),state.raise("Invalid escape")),!1)},pp$1.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n=state.lastIntValue;if(state.switchU)return n>state.maxBackReference&&(state.maxBackReference=n),!0;if(n<=state.numCapturingParens)return !0;state.pos=start;}return !1},pp$1.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state))return state.backReferenceNames.push(state.lastStringValue),!0;state.raise("Invalid named reference");}return !1},pp$1.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,!1)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)},pp$1.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state))return !0;state.pos=start;}return !1},pp$1.regexp_eatZero=function(state){return 48===state.current()&&!isDecimalDigit(state.lookahead())&&(state.lastIntValue=0,state.advance(),!0)},pp$1.regexp_eatControlEscape=function(state){var ch=state.current();return 116===ch?(state.lastIntValue=9,state.advance(),!0):110===ch?(state.lastIntValue=10,state.advance(),!0):118===ch?(state.lastIntValue=11,state.advance(),!0):102===ch?(state.lastIntValue=12,state.advance(),!0):114===ch&&(state.lastIntValue=13,state.advance(),!0)},pp$1.regexp_eatControlLetter=function(state){var ch=state.current();return !!isControlLetter(ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){void 0===forceU&&(forceU=!1);var ch,start=state.pos,switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343)return state.lastIntValue=1024*(lead-55296)+(trail-56320)+65536,!0}state.pos=leadSurrogateEnd,state.lastIntValue=lead;}return !0}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&((ch=state.lastIntValue)>=0&&ch<=1114111))return !0;switchU&&state.raise("Invalid unicode escape"),state.pos=start;}return !1},pp$1.regexp_eatIdentityEscape=function(state){if(state.switchU)return !!this.regexp_eatSyntaxCharacter(state)||!!state.eat(47)&&(state.lastIntValue=47,!0);var ch=state.current();return !(99===ch||state.switchN&&107===ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$1.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch=state.current();if(ch>=49&&ch<=57){do{state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();}while((ch=state.current())>=48&&ch<=57);return !0}return !1},pp$1.regexp_eatCharacterClassEscape=function(state){var ch=state.current();if(function(ch){return 100===ch||68===ch||115===ch||83===ch||119===ch||87===ch}(ch))return state.lastIntValue=-1,state.advance(),!0;if(state.switchU&&this.options.ecmaVersion>=9&&(80===ch||112===ch)){if(state.lastIntValue=-1,state.advance(),state.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(state)&&state.eat(125))return !0;state.raise("Invalid property name");}return !1},pp$1.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(state,name,value),!0}}if(state.pos=start,this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue),!0}return !1},pp$1.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){hasOwn(state.unicodeProperties.nonBinary,name)||state.raise("Invalid property name"),state.unicodeProperties.nonBinary[name].test(value)||state.raise("Invalid property value");},pp$1.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){state.unicodeProperties.binary.test(nameOrValue)||state.raise("Invalid property name");},pp$1.regexp_eatUnicodePropertyName=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyNameCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return ""!==state.lastStringValue},pp$1.regexp_eatUnicodePropertyValue=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyValueCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return ""!==state.lastStringValue},pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)},pp$1.regexp_eatCharacterClass=function(state){if(state.eat(91)){if(state.eat(94),this.regexp_classRanges(state),state.eat(93))return !0;state.raise("Unterminated character class");}return !1},pp$1.regexp_classRanges=function(state){for(;this.regexp_eatClassAtom(state);){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;!state.switchU||-1!==left&&-1!==right||state.raise("Invalid character class"),-1!==left&&-1!==right&&left>right&&state.raise("Range out of order in character class");}}},pp$1.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state))return !0;if(state.switchU){var ch$1=state.current();(99===ch$1||isOctalDigit(ch$1))&&state.raise("Invalid class escape"),state.raise("Invalid escape");}state.pos=start;}var ch=state.current();return 93!==ch&&(state.lastIntValue=ch,state.advance(),!0)},pp$1.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98))return state.lastIntValue=8,!0;if(state.switchU&&state.eat(45))return state.lastIntValue=45,!0;if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state))return !0;state.pos=start;}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)},pp$1.regexp_eatClassControlLetter=function(state){var ch=state.current();return !(!isDecimalDigit(ch)&&95!==ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$1.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2))return !0;state.switchU&&state.raise("Invalid escape"),state.pos=start;}return !1},pp$1.regexp_eatDecimalDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isDecimalDigit(ch=state.current());)state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();return state.pos!==start},pp$1.regexp_eatHexDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isHexDigit(ch=state.current());)state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();return state.pos!==start},pp$1.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n1=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n2=state.lastIntValue;n1<=3&&this.regexp_eatOctalDigit(state)?state.lastIntValue=64*n1+8*n2+state.lastIntValue:state.lastIntValue=8*n1+n2;}else state.lastIntValue=n1;return !0}return !1},pp$1.regexp_eatOctalDigit=function(state){var ch=state.current();return isOctalDigit(ch)?(state.lastIntValue=ch-48,state.advance(),!0):(state.lastIntValue=0,!1)},pp$1.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i=0;i<length;++i){var ch=state.current();if(!isHexDigit(ch))return state.pos=start,!1;state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();}return !0};var Token=function(p){this.type=p.type,this.value=p.value,this.start=p.start,this.end=p.end,p.options.locations&&(this.loc=new SourceLocation(p,p.startLoc,p.endLoc)),p.options.ranges&&(this.range=[p.start,p.end]);},pp=Parser.prototype;function stringToBigInt(str){return "function"!=typeof BigInt?null:BigInt(str.replace(/_/g,""))}pp.next=function(ignoreEscapeSequenceInKeyword){!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken();},pp.getToken=function(){return this.next(),new Token(this)},"undefined"!=typeof Symbol&&(pp[Symbol.iterator]=function(){var this$1$1=this;return {next:function(){var token=this$1$1.getToken();return {done:token.type===types$1.eof,value:token}}}}),pp.nextToken=function(){var curContext=this.curContext();return curContext&&curContext.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(types$1.eof):curContext.override?curContext.override(this):void this.readToken(this.fullCharCodeAtPos())},pp.readToken=function(code){return isIdentifierStart(code,this.options.ecmaVersion>=6)||92===code?this.readWord():this.getTokenFromCode(code)},pp.fullCharCodeAtPos=function(){var code=this.input.charCodeAt(this.pos);if(code<=55295||code>=56320)return code;var next=this.input.charCodeAt(this.pos+1);return next<=56319||next>=57344?code:(code<<10)+next-56613888},pp.skipBlockComment=function(){var startLoc=this.options.onComment&&this.curPosition(),start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(-1===end&&this.raise(this.pos-2,"Unterminated comment"),this.pos=end+2,this.options.locations)for(var nextBreak=void 0,pos=start;(nextBreak=nextLineBreak(this.input,pos,this.pos))>-1;)++this.curLine,pos=this.lineStart=nextBreak;this.options.onComment&&this.options.onComment(!0,this.input.slice(start+2,end),start,this.pos,startLoc,this.curPosition());},pp.skipLineComment=function(startSkip){for(var start=this.pos,startLoc=this.options.onComment&&this.curPosition(),ch=this.input.charCodeAt(this.pos+=startSkip);this.pos<this.input.length&&!isNewLine(ch);)ch=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(start+startSkip,this.pos),start,this.pos,startLoc,this.curPosition());},pp.skipSpace=function(){loop:for(;this.pos<this.input.length;){var ch=this.input.charCodeAt(this.pos);switch(ch){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++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 loop}break;default:if(!(ch>8&&ch<14||ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))))break loop;++this.pos;}}},pp.finishToken=function(type,val){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var prevType=this.type;this.type=type,this.value=val,this.updateContext(prevType);},pp.readToken_dot=function(){var next=this.input.charCodeAt(this.pos+1);if(next>=48&&next<=57)return this.readNumber(!0);var next2=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===next&&46===next2?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))},pp.readToken_slash=function(){var next=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===next?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)},pp.readToken_mult_modulo_exp=function(code){var next=this.input.charCodeAt(this.pos+1),size=1,tokentype=42===code?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&42===code&&42===next&&(++size,tokentype=types$1.starstar,next=this.input.charCodeAt(this.pos+2)),61===next?this.finishOp(types$1.assign,size+1):this.finishOp(tokentype,size)},pp.readToken_pipe_amp=function(code){var next=this.input.charCodeAt(this.pos+1);if(next===code){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types$1.assign,3);return this.finishOp(124===code?types$1.logicalOR:types$1.logicalAND,2)}return 61===next?this.finishOp(types$1.assign,2):this.finishOp(124===code?types$1.bitwiseOR:types$1.bitwiseAND,1)},pp.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)},pp.readToken_plus_min=function(code){var next=this.input.charCodeAt(this.pos+1);return next===code?45!==next||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types$1.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===next?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)},pp.readToken_lt_gt=function(code){var next=this.input.charCodeAt(this.pos+1),size=1;return next===code?(size=62===code&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+size)?this.finishOp(types$1.assign,size+1):this.finishOp(types$1.bitShift,size)):33!==next||60!==code||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===next&&(size=2),this.finishOp(types$1.relational,size)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp.readToken_eq_excl=function(code){var next=this.input.charCodeAt(this.pos+1);return 61===next?this.finishOp(types$1.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===code&&62===next&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(61===code?types$1.eq:types$1.prefix,1)},pp.readToken_question=function(){var ecmaVersion=this.options.ecmaVersion;if(ecmaVersion>=11){var next=this.input.charCodeAt(this.pos+1);if(46===next){var next2=this.input.charCodeAt(this.pos+2);if(next2<48||next2>57)return this.finishOp(types$1.questionDot,2)}if(63===next){if(ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types$1.assign,3);return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)},pp.readToken_numberSign=function(){var code=35;if(this.options.ecmaVersion>=13&&(++this.pos,isIdentifierStart(code=this.fullCharCodeAtPos(),!0)||92===code))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(code)+"'");},pp.getTokenFromCode=function(code){switch(code){case 46:return this.readToken_dot();case 40:return ++this.pos,this.finishToken(types$1.parenL);case 41:return ++this.pos,this.finishToken(types$1.parenR);case 59:return ++this.pos,this.finishToken(types$1.semi);case 44:return ++this.pos,this.finishToken(types$1.comma);case 91:return ++this.pos,this.finishToken(types$1.bracketL);case 93:return ++this.pos,this.finishToken(types$1.bracketR);case 123:return ++this.pos,this.finishToken(types$1.braceL);case 125:return ++this.pos,this.finishToken(types$1.braceR);case 58:return ++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return ++this.pos,this.finishToken(types$1.backQuote);case 48:var next=this.input.charCodeAt(this.pos+1);if(120===next||88===next)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===next||79===next)return this.readRadixNumber(8);if(98===next||66===next)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(code);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code);case 124:case 38:return this.readToken_pipe_amp(code);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code);case 60:case 62:return this.readToken_lt_gt(code);case 61:case 33:return this.readToken_eq_excl(code);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(code)+"'");},pp.finishOp=function(type,size){var str=this.input.slice(this.pos,this.pos+size);return this.pos+=size,this.finishToken(type,str)},pp.readRegexp=function(){for(var escaped,inClass,start=this.pos;;){this.pos>=this.input.length&&this.raise(start,"Unterminated regular expression");var ch=this.input.charAt(this.pos);if(lineBreak.test(ch)&&this.raise(start,"Unterminated regular expression"),escaped)escaped=!1;else {if("["===ch)inClass=!0;else if("]"===ch&&inClass)inClass=!1;else if("/"===ch&&!inClass)break;escaped="\\"===ch;}++this.pos;}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos,flags=this.readWord1();this.containsEsc&&this.unexpected(flagsStart);var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags),this.validateRegExpFlags(state),this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags);}catch(e){}return this.finishToken(types$1.regexp,{pattern,flags,value})},pp.readInt=function(radix,len,maybeLegacyOctalNumericLiteral){for(var allowSeparators=this.options.ecmaVersion>=12&&void 0===len,isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&48===this.input.charCodeAt(this.pos),start=this.pos,total=0,lastCode=0,i=0,e=null==len?1/0:len;i<e;++i,++this.pos){var code=this.input.charCodeAt(this.pos),val=void 0;if(allowSeparators&&95===code)isLegacyOctalNumericLiteral&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===lastCode&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),lastCode=code;else {if((val=code>=97?code-97+10:code>=65?code-65+10:code>=48&&code<=57?code-48:1/0)>=radix)break;lastCode=code,total=total*radix+val;}}return allowSeparators&&95===lastCode&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===start||null!=len&&this.pos-start!==len?null:total},pp.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);return null==val&&this.raise(this.start+2,"Expected number in radix "+radix),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(val=stringToBigInt(this.input.slice(start,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,val)},pp.readNumber=function(startsWithDot){var start=this.pos;startsWithDot||null!==this.readInt(10,void 0,!0)||this.raise(start,"Invalid number");var octal=this.pos-start>=2&&48===this.input.charCodeAt(start);octal&&this.strict&&this.raise(start,"Invalid number");var next=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&110===next){var val$1=stringToBigInt(this.input.slice(start,this.pos));return ++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,val$1)}octal&&/[89]/.test(this.input.slice(start,this.pos))&&(octal=!1),46!==next||octal||(++this.pos,this.readInt(10),next=this.input.charCodeAt(this.pos)),69!==next&&101!==next||octal||(43!==(next=this.input.charCodeAt(++this.pos))&&45!==next||++this.pos,null===this.readInt(10)&&this.raise(start,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var str,val=(str=this.input.slice(start,this.pos),octal?parseInt(str,8):parseFloat(str.replace(/_/g,"")));return this.finishToken(types$1.num,val)},pp.readCodePoint=function(){var code;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var codePos=++this.pos;code=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,code>1114111&&this.invalidStringToken(codePos,"Code point out of bounds");}else code=this.readHexChar(4);return code},pp.readString=function(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;92===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!1),chunkStart=this.pos):8232===ch||8233===ch?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(ch)&&this.raise(this.start,"Unterminated string constant"),++this.pos);}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(types$1.string,out)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken();}catch(err){if(err!==INVALID_TEMPLATE_ESCAPE_ERROR)throw err;this.readInvalidTemplateToken();}this.inTemplateElement=!1;},pp.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(position,message);},pp.readTmplToken=function(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var ch=this.input.charCodeAt(this.pos);if(96===ch||36===ch&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types$1.template&&this.type!==types$1.invalidTemplate?(out+=this.input.slice(chunkStart,this.pos),this.finishToken(types$1.template,out)):36===ch?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote));if(92===ch)out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!0),chunkStart=this.pos;else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.pos),++this.pos,ch){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch);}this.options.locations&&(++this.curLine,this.lineStart=this.pos),chunkStart=this.pos;}else ++this.pos;}},pp.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(types$1.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template");},pp.readEscapedChar=function(inTemplate){var ch=this.input.charCodeAt(++this.pos);switch(++this.pos,ch){case 110:return "\n";case 114:return "\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return "\t";case 98:return "\b";case 118:return "\v";case 102:return "\f";case 13:10===this.input.charCodeAt(this.pos)&&++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"),inTemplate){var codePos=this.pos-1;return this.invalidStringToken(codePos,"Invalid escape sequence in template string"),null}default:if(ch>=48&&ch<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);return octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.pos+=octalStr.length-1,ch=this.input.charCodeAt(this.pos),"0"===octalStr&&56!==ch&&57!==ch||!this.strict&&!inTemplate||this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(octal)}return isNewLine(ch)?"":String.fromCharCode(ch)}},pp.readHexChar=function(len){var codePos=this.pos,n=this.readInt(16,len);return null===n&&this.invalidStringToken(codePos,"Bad character escape sequence"),n},pp.readWord1=function(){this.containsEsc=!1;for(var word="",first=!0,chunkStart=this.pos,astral=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ch=this.fullCharCodeAtPos();if(isIdentifierChar(ch,astral))this.pos+=ch<=65535?1:2;else {if(92!==ch)break;this.containsEsc=!0,word+=this.input.slice(chunkStart,this.pos);var escStart=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var esc=this.readCodePoint();(first?isIdentifierStart:isIdentifierChar)(esc,astral)||this.invalidStringToken(escStart,"Invalid Unicode escape"),word+=codePointToString(esc),chunkStart=this.pos;}first=!1;}return word+this.input.slice(chunkStart,this.pos)},pp.readWord=function(){var word=this.readWord1(),type=types$1.name;return this.keywords.test(word)&&(type=keywords[word]),this.finishToken(type,word)};Parser.acorn={Parser,version:"8.8.0",defaultOptions,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};const TRAILING_SLASH_RE=/\/$|\/\?/;function hasTrailingSlash(input="",queryParams=!1){return queryParams?TRAILING_SLASH_RE.test(input):input.endsWith("/")}function withTrailingSlash(input="",queryParams=!1){if(!queryParams)return input.endsWith("/")?input:input+"/";if(hasTrailingSlash(input,!0))return input||"/";const[s0,...s]=input.split("?");return s0+"/"+(s.length?`?${s.join("?")}`:"")}function hasLeadingSlash(input=""){return input.startsWith("/")}function withoutLeadingSlash(input=""){return (hasLeadingSlash(input)?input.substr(1):input)||"/"}function isNonEmptyURL(url){return url&&"/"!==url}function joinURL(base,...input){let url=base||"";for(const i of input.filter(isNonEmptyURL))url=url?withTrailingSlash(url)+withoutLeadingSlash(i):i;return url}var external_path_=__webpack_require__("path");const external_assert_namespaceObject=require$$9;var external_util_=__webpack_require__("util");const BUILTIN_MODULES=new Set(external_module_.builtinModules);function normalizeSlash(str){return str.replace(/\\/g,"/")}const reader={read:function(jsonPath){return find(external_path_.dirname(jsonPath))}};function find(dir){try{return {string:external_fs_.readFileSync(external_path_.toNamespacedPath(external_path_.join(dir,"package.json")),"utf8")}}catch(error){if("ENOENT"===error.code){const parent=external_path_.dirname(dir);return dir!==parent?find(parent):{string:void 0}}throw error}}const isWindows="win32"===process.platform,own$1={}.hasOwnProperty,codes={},messages=new Map;let userStackTraceLimit;function createError(sym,value,def){return messages.set(sym,value),function(Base,key){return NodeError;function NodeError(...args){const limit=Error.stackTraceLimit;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=0);const error=new Base;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=limit);const message=function(key,args,self){const message=messages.get(key);if("function"==typeof message)return external_assert_namespaceObject(message.length<=args.length,`Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`),Reflect.apply(message,self,args);const expectedLength=(message.match(/%[dfijoOs]/g)||[]).length;if(external_assert_namespaceObject(expectedLength===args.length,`Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`),0===args.length)return message;return args.unshift(message),Reflect.apply(external_util_.format,null,args)}(key,args,error);return Object.defineProperty(error,"message",{value:message,enumerable:!1,writable:!0,configurable:!0}),Object.defineProperty(error,"toString",{value(){return `${this.name} [${key}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}),addCodeToName(error,Base.name,key),error.code=key,error}}(def,sym)}codes.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",((request,reason,base)=>`Invalid module "${request}" ${reason}${base?` imported from ${base}`:""}`),TypeError),codes.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",((path,base,message)=>`Invalid package config ${path}${base?` while importing ${base}`:""}${message?`. ${message}`:""}`),Error),codes.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",((pkgPath,key,target,isImport=!1,base)=>{const relError="string"==typeof target&&!isImport&&target.length>0&&!target.startsWith("./");return "."===key?(external_assert_namespaceObject(!1===isImport),`Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base?` imported from ${base}`:""}${relError?'; targets must start with "./"':""}`):`Invalid "${isImport?"imports":"exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${pkgPath}package.json${base?` imported from ${base}`:""}${relError?'; targets must start with "./"':""}`}),Error),codes.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",((path,base,type="package")=>`Cannot find ${type} '${path}' imported from ${base}`),Error),codes.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",((specifier,packagePath,base)=>`Package import specifier "${specifier}" is not defined${packagePath?` in package ${packagePath}package.json`:""} imported from ${base}`),TypeError),codes.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",((pkgPath,subpath,base)=>"."===subpath?`No "exports" main defined in ${pkgPath}package.json${base?` imported from ${base}`:""}`:`Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base?` imported from ${base}`:""}`),Error),codes.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),codes.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",'Unknown file extension "%s" for %s',TypeError),codes.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",((name,value,reason="is invalid")=>{let inspected=(0, external_util_.inspect)(value);inspected.length>128&&(inspected=`${inspected.slice(0,128)}...`);return `The ${name.includes(".")?"property":"argument"} '${name}' ${reason}. Received ${inspected}`}),TypeError),codes.ERR_UNSUPPORTED_ESM_URL_SCHEME=createError("ERR_UNSUPPORTED_ESM_URL_SCHEME",(url=>{let message="Only file and data URLs are supported by the default ESM loader";return isWindows&&2===url.protocol.length&&(message+=". On Windows, absolute paths must be valid file:// URLs"),message+=`. Received protocol '${url.protocol}'`,message}),Error);const addCodeToName=hideStackFrames((function(error,name,code){(error=captureLargerStackTrace(error)).name=`${name} [${code}]`,error.stack,"SystemError"===name?Object.defineProperty(error,"name",{value:name,enumerable:!1,writable:!0,configurable:!0}):delete error.name;}));function isErrorStackTraceLimitWritable(){const desc=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===desc?Object.isExtensible(Error):own$1.call(desc,"writable")?desc.writable:void 0!==desc.set}function hideStackFrames(fn){const hidden="__node_internal_"+fn.name;return Object.defineProperty(fn,"name",{value:hidden}),fn}const captureLargerStackTrace=hideStackFrames((function(error){const stackTraceLimitIsWritable=isErrorStackTraceLimitWritable();return stackTraceLimitIsWritable&&(userStackTraceLimit=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(error),stackTraceLimitIsWritable&&(Error.stackTraceLimit=userStackTraceLimit),error}));const{ERR_UNKNOWN_FILE_EXTENSION}=codes,extensionFormatMap={__proto__:null,".cjs":"commonjs",".js":"module",".mjs":"module"};function defaultGetFormat(url){if(url.startsWith("node:"))return {format:"builtin"};const parsed=new external_url_namespaceObject.URL(url);if("data:"===parsed.protocol){const{1:mime}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname)||[null,null];return {format:"text/javascript"===mime?"module":null}}if("file:"===parsed.protocol){const ext=external_path_.extname(parsed.pathname);let format;if(format=".js"===ext?"module"===function(url){return getPackageScopeConfig(url).type}(parsed.href)?"module":"commonjs":extensionFormatMap[ext],!format)throw new ERR_UNKNOWN_FILE_EXTENSION(ext,(0, external_url_namespaceObject.fileURLToPath)(url));return {format:format||null}}return {format:null}}const{ERR_INVALID_MODULE_SPECIFIER,ERR_INVALID_PACKAGE_CONFIG,ERR_INVALID_PACKAGE_TARGET,ERR_MODULE_NOT_FOUND,ERR_PACKAGE_IMPORT_NOT_DEFINED,ERR_PACKAGE_PATH_NOT_EXPORTED,ERR_UNSUPPORTED_DIR_IMPORT,ERR_UNSUPPORTED_ESM_URL_SCHEME,ERR_INVALID_ARG_VALUE}=codes,own={}.hasOwnProperty;Object.freeze(["node","import"]);const invalidSegmentRegEx=/(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/,patternRegEx=/\*/g,encodedSepRegEx=/%2f|%2c/i,emittedPackageWarnings=new Set,packageJsonCache=new Map;function emitFolderMapDeprecation(match,pjsonUrl,isExports,base){const pjsonPath=(0, external_url_namespaceObject.fileURLToPath)(pjsonUrl);emittedPackageWarnings.has(pjsonPath+"|"+match)||(emittedPackageWarnings.add(pjsonPath+"|"+match),process.emitWarning(`Use of deprecated folder mapping "${match}" in the ${isExports?'"exports"':'"imports"'} field module resolution of the package at ${pjsonPath}${base?` imported from ${(0, external_url_namespaceObject.fileURLToPath)(base)}`:""}.\nUpdate this package.json to use a subpath pattern like "${match}*".`,"DeprecationWarning","DEP0148"));}function emitLegacyIndexDeprecation(url,packageJsonUrl,base,main){const{format}=defaultGetFormat(url.href);if("module"!==format)return;const path2=(0, external_url_namespaceObject.fileURLToPath)(url.href),pkgPath=(0, external_url_namespaceObject.fileURLToPath)(new URL(".",packageJsonUrl)),basePath=(0, external_url_namespaceObject.fileURLToPath)(base);main?process.emitWarning(`Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, excluding the full filename and extension to the resolved file at "${path2.slice(pkgPath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):process.emitWarning(`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path2.slice(pkgPath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151");}function tryStatSync(path2){try{return (0,external_fs_.statSync)(path2)}catch{return new external_fs_.Stats}}function getPackageConfig(path2,specifier,base){const existing=packageJsonCache.get(path2);if(void 0!==existing)return existing;const source=reader.read(path2).string;if(void 0===source){const packageConfig2={pjsonPath:path2,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return packageJsonCache.set(path2,packageConfig2),packageConfig2}let packageJson;try{packageJson=JSON.parse(source);}catch(error){throw new ERR_INVALID_PACKAGE_CONFIG(path2,(base?`"${specifier}" from `:"")+(0, external_url_namespaceObject.fileURLToPath)(base||specifier),error.message)}const{exports,imports,main,name,type}=packageJson,packageConfig={pjsonPath:path2,exists:!0,main:"string"==typeof main?main:void 0,name:"string"==typeof name?name:void 0,type:"module"===type||"commonjs"===type?type:"none",exports,imports:imports&&"object"==typeof imports?imports:void 0};return packageJsonCache.set(path2,packageConfig),packageConfig}function getPackageScopeConfig(resolved){let packageJsonUrl=new URL("./package.json",resolved);for(;;){if(packageJsonUrl.pathname.endsWith("node_modules/package.json"))break;const packageConfig2=getPackageConfig((0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl),resolved);if(packageConfig2.exists)return packageConfig2;const lastPackageJsonUrl=packageJsonUrl;if(packageJsonUrl=new URL("../package.json",packageJsonUrl),packageJsonUrl.pathname===lastPackageJsonUrl.pathname)break}const packageJsonPath=(0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl),packageConfig={pjsonPath:packageJsonPath,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return packageJsonCache.set(packageJsonPath,packageConfig),packageConfig}function fileExists(url){return tryStatSync((0, external_url_namespaceObject.fileURLToPath)(url)).isFile()}function legacyMainResolve(packageJsonUrl,packageConfig,base){let guess;if(void 0!==packageConfig.main){if(guess=new URL(`./${packageConfig.main}`,packageJsonUrl),fileExists(guess))return guess;const tries2=[`./${packageConfig.main}.js`,`./${packageConfig.main}.json`,`./${packageConfig.main}.node`,`./${packageConfig.main}/index.js`,`./${packageConfig.main}/index.json`,`./${packageConfig.main}/index.node`];let i2=-1;for(;++i2<tries2.length&&(guess=new URL(tries2[i2],packageJsonUrl),!fileExists(guess));)guess=void 0;if(guess)return emitLegacyIndexDeprecation(guess,packageJsonUrl,base,packageConfig.main),guess}const tries=["./index.js","./index.json","./index.node"];let i=-1;for(;++i<tries.length&&(guess=new URL(tries[i],packageJsonUrl),!fileExists(guess));)guess=void 0;if(guess)return emitLegacyIndexDeprecation(guess,packageJsonUrl,base,packageConfig.main),guess;throw new ERR_MODULE_NOT_FOUND((0, external_url_namespaceObject.fileURLToPath)(new URL(".",packageJsonUrl)),(0, external_url_namespaceObject.fileURLToPath)(base))}function throwExportsNotFound(subpath,packageJsonUrl,base){throw new ERR_PACKAGE_PATH_NOT_EXPORTED((0, external_url_namespaceObject.fileURLToPath)(new URL(".",packageJsonUrl)),subpath,base&&(0, external_url_namespaceObject.fileURLToPath)(base))}function throwInvalidPackageTarget(subpath,target,packageJsonUrl,internal,base){throw target="object"==typeof target&&null!==target?JSON.stringify(target,null,""):`${target}`,new ERR_INVALID_PACKAGE_TARGET((0, external_url_namespaceObject.fileURLToPath)(new URL(".",packageJsonUrl)),subpath,target,internal,base&&(0, external_url_namespaceObject.fileURLToPath)(base))}function resolvePackageTargetString(target,subpath,match,packageJsonUrl,base,pattern,internal,conditions){if(""===subpath||pattern||"/"===target[target.length-1]||throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base),!target.startsWith("./")){if(internal&&!target.startsWith("../")&&!target.startsWith("/")){let isURL=!1;try{new URL(target),isURL=!0;}catch{}if(!isURL){return packageResolve(pattern?target.replace(patternRegEx,subpath):target+subpath,packageJsonUrl,conditions)}}throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base);}invalidSegmentRegEx.test(target.slice(2))&&throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base);const resolved=new URL(target,packageJsonUrl),resolvedPath=resolved.pathname,packagePath=new URL(".",packageJsonUrl).pathname;return resolvedPath.startsWith(packagePath)||throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base),""===subpath?resolved:(invalidSegmentRegEx.test(subpath)&&function(subpath,packageJsonUrl,internal,base){const reason=`request is not a valid subpath for the "${internal?"imports":"exports"}" resolution of ${(0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl)}`;throw new ERR_INVALID_MODULE_SPECIFIER(subpath,reason,base&&(0, external_url_namespaceObject.fileURLToPath)(base))}(match+subpath,packageJsonUrl,internal,base),pattern?new URL(resolved.href.replace(patternRegEx,subpath)):new URL(subpath,resolved))}function isArrayIndex(key){const keyNumber=Number(key);return `${keyNumber}`===key&&(keyNumber>=0&&keyNumber<4294967295)}function resolvePackageTarget(packageJsonUrl,target,subpath,packageSubpath,base,pattern,internal,conditions){if("string"==typeof target)return resolvePackageTargetString(target,subpath,packageSubpath,packageJsonUrl,base,pattern,internal,conditions);if(Array.isArray(target)){const targetList=target;if(0===targetList.length)return null;let lastException,i=-1;for(;++i<targetList.length;){const targetItem=targetList[i];let resolved;try{resolved=resolvePackageTarget(packageJsonUrl,targetItem,subpath,packageSubpath,base,pattern,internal,conditions);}catch(error){if(lastException=error,"ERR_INVALID_PACKAGE_TARGET"===error.code)continue;throw error}if(void 0!==resolved){if(null!==resolved)return resolved;lastException=null;}}if(null==lastException)return lastException;throw lastException}if("object"!=typeof target||null===target){if(null===target)return null;throwInvalidPackageTarget(packageSubpath,target,packageJsonUrl,internal,base);}else {const keys=Object.getOwnPropertyNames(target);let i=-1;for(;++i<keys.length;){if(isArrayIndex(keys[i]))throw new ERR_INVALID_PACKAGE_CONFIG((0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl),base,'"exports" cannot contain numeric property keys.')}for(i=-1;++i<keys.length;){const key=keys[i];if("default"===key||conditions&&conditions.has(key)){const resolved=resolvePackageTarget(packageJsonUrl,target[key],subpath,packageSubpath,base,pattern,internal,conditions);if(void 0===resolved)continue;return resolved}}}}function packageExportsResolve(packageJsonUrl,packageSubpath,packageConfig,base,conditions){let exports=packageConfig.exports;if(function(exports,packageJsonUrl,base){if("string"==typeof exports||Array.isArray(exports))return !0;if("object"!=typeof exports||null===exports)return !1;const keys=Object.getOwnPropertyNames(exports);let isConditionalSugar=!1,i=0,j=-1;for(;++j<keys.length;){const key=keys[j],curIsConditionalSugar=""===key||"."!==key[0];if(0==i++)isConditionalSugar=curIsConditionalSugar;else if(isConditionalSugar!==curIsConditionalSugar)throw new ERR_INVALID_PACKAGE_CONFIG((0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl),base,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return isConditionalSugar}(exports,packageJsonUrl,base)&&(exports={".":exports}),own.call(exports,packageSubpath)){const resolved=resolvePackageTarget(packageJsonUrl,exports[packageSubpath],"",packageSubpath,base,!1,!1,conditions);return null==resolved&&throwExportsNotFound(packageSubpath,packageJsonUrl,base),{resolved,exact:!0}}let bestMatch="";const keys=Object.getOwnPropertyNames(exports);let i=-1;for(;++i<keys.length;){const key=keys[i];("*"===key[key.length-1]&&packageSubpath.startsWith(key.slice(0,-1))&&packageSubpath.length>=key.length&&key.length>bestMatch.length||"/"===key[key.length-1]&&packageSubpath.startsWith(key)&&key.length>bestMatch.length)&&(bestMatch=key);}if(bestMatch){const target=exports[bestMatch],pattern="*"===bestMatch[bestMatch.length-1],resolved=resolvePackageTarget(packageJsonUrl,target,packageSubpath.slice(bestMatch.length-(pattern?1:0)),bestMatch,base,pattern,!1,conditions);return null==resolved&&throwExportsNotFound(packageSubpath,packageJsonUrl,base),pattern||emitFolderMapDeprecation(bestMatch,packageJsonUrl,!0,base),{resolved,exact:pattern}}throwExportsNotFound(packageSubpath,packageJsonUrl,base);}function packageImportsResolve(name,base,conditions){if("#"===name||name.startsWith("#/")){throw new ERR_INVALID_MODULE_SPECIFIER(name,"is not a valid internal imports specifier name",(0, external_url_namespaceObject.fileURLToPath)(base))}let packageJsonUrl;const packageConfig=getPackageScopeConfig(base);if(packageConfig.exists){packageJsonUrl=(0, external_url_namespaceObject.pathToFileURL)(packageConfig.pjsonPath);const imports=packageConfig.imports;if(imports)if(own.call(imports,name)){const resolved=resolvePackageTarget(packageJsonUrl,imports[name],"",name,base,!1,!0,conditions);if(null!==resolved)return {resolved,exact:!0}}else {let bestMatch="";const keys=Object.getOwnPropertyNames(imports);let i=-1;for(;++i<keys.length;){const key=keys[i];("*"===key[key.length-1]&&name.startsWith(key.slice(0,-1))&&name.length>=key.length&&key.length>bestMatch.length||"/"===key[key.length-1]&&name.startsWith(key)&&key.length>bestMatch.length)&&(bestMatch=key);}if(bestMatch){const target=imports[bestMatch],pattern="*"===bestMatch[bestMatch.length-1],resolved=resolvePackageTarget(packageJsonUrl,target,name.slice(bestMatch.length-(pattern?1:0)),bestMatch,base,pattern,!0,conditions);if(null!==resolved)return pattern||emitFolderMapDeprecation(bestMatch,packageJsonUrl,!1,base),{resolved,exact:pattern}}}}!function(specifier,packageJsonUrl,base){throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier,packageJsonUrl&&(0, external_url_namespaceObject.fileURLToPath)(new URL(".",packageJsonUrl)),(0, external_url_namespaceObject.fileURLToPath)(base))}(name,packageJsonUrl,base);}function packageResolve(specifier,base,conditions){const{packageName,packageSubpath,isScoped}=function(specifier,base){let separatorIndex=specifier.indexOf("/"),validPackageName=!0,isScoped=!1;"@"===specifier[0]&&(isScoped=!0,-1===separatorIndex||0===specifier.length?validPackageName=!1:separatorIndex=specifier.indexOf("/",separatorIndex+1));const packageName=-1===separatorIndex?specifier:specifier.slice(0,separatorIndex);let i=-1;for(;++i<packageName.length;)if("%"===packageName[i]||"\\"===packageName[i]){validPackageName=!1;break}if(!validPackageName)throw new ERR_INVALID_MODULE_SPECIFIER(specifier,"is not a valid package name",(0, external_url_namespaceObject.fileURLToPath)(base));return {packageName,packageSubpath:"."+(-1===separatorIndex?"":specifier.slice(separatorIndex)),isScoped}}(specifier,base),packageConfig=getPackageScopeConfig(base);if(packageConfig.exists){const packageJsonUrl2=(0, external_url_namespaceObject.pathToFileURL)(packageConfig.pjsonPath);if(packageConfig.name===packageName&&void 0!==packageConfig.exports&&null!==packageConfig.exports)return packageExportsResolve(packageJsonUrl2,packageSubpath,packageConfig,base,conditions).resolved}let lastPath,packageJsonUrl=new URL("./node_modules/"+packageName+"/package.json",base),packageJsonPath=(0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl);do{if(!tryStatSync(packageJsonPath.slice(0,-13)).isDirectory()){lastPath=packageJsonPath,packageJsonUrl=new URL((isScoped?"../../../../node_modules/":"../../../node_modules/")+packageName+"/package.json",packageJsonUrl),packageJsonPath=(0, external_url_namespaceObject.fileURLToPath)(packageJsonUrl);continue}const packageConfig2=getPackageConfig(packageJsonPath,specifier,base);return void 0!==packageConfig2.exports&&null!==packageConfig2.exports?packageExportsResolve(packageJsonUrl,packageSubpath,packageConfig2,base,conditions).resolved:"."===packageSubpath?legacyMainResolve(packageJsonUrl,packageConfig2,base):new URL(packageSubpath,packageJsonUrl)}while(packageJsonPath.length!==lastPath.length);throw new ERR_MODULE_NOT_FOUND(packageName,(0, external_url_namespaceObject.fileURLToPath)(base))}function moduleResolve(specifier,base,conditions){let resolved;if(function(specifier){return ""!==specifier&&("/"===specifier[0]||function(specifier){if("."===specifier[0]){if(1===specifier.length||"/"===specifier[1])return !0;if("."===specifier[1]&&(2===specifier.length||"/"===specifier[2]))return !0}return !1}(specifier))}(specifier))resolved=new URL(specifier,base);else if("#"===specifier[0])({resolved}=packageImportsResolve(specifier,base,conditions));else try{resolved=new URL(specifier);}catch{resolved=packageResolve(specifier,base,conditions);}return function(resolved,base){if(encodedSepRegEx.test(resolved.pathname))throw new ERR_INVALID_MODULE_SPECIFIER(resolved.pathname,'must not include encoded "/" or "\\" characters',(0, external_url_namespaceObject.fileURLToPath)(base));const path2=(0, external_url_namespaceObject.fileURLToPath)(resolved),stats=tryStatSync(path2.endsWith("/")?path2.slice(-1):path2);if(stats.isDirectory()){const error=new ERR_UNSUPPORTED_DIR_IMPORT(path2,(0, external_url_namespaceObject.fileURLToPath)(base));throw error.url=String(resolved),error}if(!stats.isFile())throw new ERR_MODULE_NOT_FOUND(path2||resolved.pathname,base&&(0, external_url_namespaceObject.fileURLToPath)(base),"module");return resolved}(resolved,base)}function fileURLToPath(id){return "string"!=typeof id||id.startsWith("file://")?normalizeSlash((0, external_url_namespaceObject.fileURLToPath)(id)):normalizeSlash(id)}const DEFAULT_CONDITIONS_SET=new Set(["node","import"]),DEFAULT_URL=(0, external_url_namespaceObject.pathToFileURL)(process.cwd()),DEFAULT_EXTENSIONS=[".mjs",".cjs",".js",".json"],NOT_FOUND_ERRORS=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function _tryModuleResolve(id,url,conditions){try{return moduleResolve(id,url,conditions)}catch(err){if(!NOT_FOUND_ERRORS.has(err.code))throw err;return null}}function _resolve(id,opts={}){if(/(node|data|http|https):/.test(id))return id;if(BUILTIN_MODULES.has(id))return "node:"+id;if(isAbsolute(id)&&(0, external_fs_.existsSync)(id)){const realPath2=(0, external_fs_.realpathSync)(fileURLToPath(id));return (0, external_url_namespaceObject.pathToFileURL)(realPath2).toString()}const conditionsSet=opts.conditions?new Set(opts.conditions):DEFAULT_CONDITIONS_SET,_urls=(Array.isArray(opts.url)?opts.url:[opts.url]).filter(Boolean).map((u=>new URL(function(id){return "string"!=typeof id&&(id=id.toString()),/(node|data|http|https|file):/.test(id)?id:BUILTIN_MODULES.has(id)?"node:"+id:"file://"+encodeURI(normalizeSlash(id))}(u.toString()))));_urls.length||_urls.push(DEFAULT_URL);const urls=[..._urls];for(const url of _urls)"file:"===url.protocol&&(urls.push(new URL("./",url)),urls.push(new URL(joinURL(url.pathname,"_index.js"),url)),urls.push(new URL("./node_modules",url)));let resolved;for(const url of urls){if(resolved=_tryModuleResolve(id,url,conditionsSet),resolved)break;for(const prefix of ["","/index"]){for(const ext of opts.extensions||DEFAULT_EXTENSIONS)if(resolved=_tryModuleResolve(id+prefix+ext,url,conditionsSet),resolved)break;if(resolved)break}}if(!resolved){const err=new Error(`Cannot find module ${id} imported from ${urls.join(", ")}`);throw err.code="ERR_MODULE_NOT_FOUND",err}const realPath=(0, external_fs_.realpathSync)(fileURLToPath(resolved));return (0, external_url_namespaceObject.pathToFileURL)(realPath).toString()}function resolveSync(id,opts){return _resolve(id,opts)}function resolvePathSync(id,opts){return fileURLToPath(resolveSync(id,opts))}const ESM_RE=/([\s;]|^)(import[\w,{}\s*]*from|import\s*['"*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m;function hasESMSyntax(code){return ESM_RE.test(code)}var external_crypto_=__webpack_require__("crypto");function md5(content,len=8){return (0, external_crypto_.createHash)("md5").update(content).digest("hex").slice(0,len)}const _EnvDebug=destr(process.env.JITI_DEBUG),_EnvCache=destr(process.env.JITI_CACHE),_EnvESMResolve=destr(process.env.JITI_ESM_RESOLVE),_EnvRequireCache=destr(process.env.JITI_REQUIRE_CACHE),_EnvSourceMaps=destr(process.env.JITI_SOURCE_MAPS),_EnvAlias=destr(process.env.JITI_ALIAS),_EnvTransform=destr(process.env.JITI_TRANSFORM_MODULES),_EnvNative=destr(process.env.JITI_NATIVE_MODULES),jiti_isWindows="win32"===(0, external_os_namespaceObject.platform)(),defaults={debug:_EnvDebug,cache:void 0===_EnvCache||!!_EnvCache,requireCache:void 0===_EnvRequireCache||!!_EnvRequireCache,sourceMaps:void 0!==_EnvSourceMaps&&!!_EnvSourceMaps,interopDefault:!1,esmResolve:_EnvESMResolve||!1,cacheVersion:"7",legacy:(0, semver.lt)(process.version||"0.0.0","14.0.0"),extensions:[".js",".mjs",".cjs",".ts"],alias:_EnvAlias,nativeModules:_EnvNative||[],transformModules:_EnvTransform||[]};function createJITI(_filename,opts={},parentModule){(opts=Object.assign(Object.assign({},defaults),opts)).legacy&&(opts.cacheVersion+="-legacy"),opts.transformOptions&&(opts.cacheVersion+="-"+object_hash_default()(opts.transformOptions));const alias=opts.alias&&Object.keys(opts.alias).length?normalizeAliases(opts.alias||{}):null,nativeModules=["typescript","jiti"].concat(opts.nativeModules||[]),transformModules=[].concat(opts.transformModules||[]),isNativeRe=new RegExp(`node_modules/(${nativeModules.map((m=>escapeStringRegexp(m))).join("|")})/`),isTransformRe=new RegExp(`node_modules/(${transformModules.map((m=>escapeStringRegexp(m))).join("|")})/`);function debug(...args){opts.debug&&console.log("[jiti]",...args);}if(_filename||(_filename=process.cwd()),function(filename){try{return (0,external_fs_.lstatSync)(filename).isDirectory()}catch(e){return !1}}(_filename)&&(_filename=join(_filename,"index.js")),!0===opts.cache&&(opts.cache=join((0, external_os_namespaceObject.tmpdir)(),"node-jiti")),opts.cache)try{if((0,mkdirp.sync)(opts.cache),!function(filename){try{return (0,external_fs_.accessSync)(filename,external_fs_.constants.W_OK),!0}catch(e){return !1}}(opts.cache))throw new Error("directory is not writable")}catch(err){debug("Error creating cache directory at ",opts.cache,err),opts.cache=!1;}const nativeRequire=create_require_default()(jiti_isWindows?_filename.replace(/\//g,"\\"):_filename),tryResolve=(id,options)=>{try{return nativeRequire.resolve(id,options)}catch(e){}},_url=(0, external_url_namespaceObject.pathToFileURL)(_filename),_additionalExts=[...opts.extensions].filter((ext=>".js"!==ext)),_resolve=(id,options)=>{let resolved,err;if(alias&&(id=function(path,aliases){const _path=normalizeWindowsPath(path);aliases=normalizeAliases(aliases);for(const alias in aliases)if(_path.startsWith(alias))return join(aliases[alias],_path.slice(alias.length));return _path}(id,alias)),opts.esmResolve){try{resolved=resolvePathSync(id,{url:_url,conditions:["node","require","import"]});}catch(_err){err=_err;}if(resolved)return resolved}if(opts.extensions.includes(pathe_f81973bb_extname(id)))return nativeRequire.resolve(id,options);try{return nativeRequire.resolve(id,options)}catch(_err){err=_err;}for(const ext of _additionalExts)if(resolved=tryResolve(id+ext,options)||tryResolve(id+"/index"+ext,options),resolved)return resolved;throw err};function transform(topts){let code=function(filename,source,get){if(!opts.cache||!filename)return get();const sourceHash=` /* v${opts.cacheVersion}-${md5(source,16)} */`,filebase=basename(pathe_f81973bb_dirname(filename))+"-"+basename(filename),cacheFile=join(opts.cache,filebase+"."+md5(filename)+".js");if((0, external_fs_.existsSync)(cacheFile)){const cacheSource=(0, external_fs_.readFileSync)(cacheFile,"utf-8");if(cacheSource.endsWith(sourceHash))return debug("[cache hit]",filename,"~>",cacheFile),cacheSource}debug("[cache miss]",filename);const result=get();return result.includes("__JITI_ERROR__")||(0, external_fs_.writeFileSync)(cacheFile,result+sourceHash,"utf-8"),result}(topts.filename,topts.source,(()=>{var _a;const res=opts.transform(Object.assign(Object.assign(Object.assign({legacy:opts.legacy},opts.transformOptions),{babel:Object.assign(Object.assign({},opts.sourceMaps?{sourceFileName:topts.filename,sourceMaps:"inline"}:{}),null===(_a=opts.transformOptions)||void 0===_a?void 0:_a.babel)}),topts));return res.error&&opts.debug&&debug(res.error),res.code}));return code.startsWith("#!")&&(code="// "+code),code}function _interopDefault(mod){return opts.interopDefault?function(sourceModule){if(null===(val=sourceModule)||"object"!=typeof val||!("default"in sourceModule))return sourceModule;var val;const newModule=sourceModule.default;for(const key in sourceModule)if("default"===key)try{key in newModule||Object.defineProperty(newModule,key,{enumerable:!1,configurable:!1,get:()=>newModule});}catch(_err){}else try{key in newModule||Object.defineProperty(newModule,key,{enumerable:!0,configurable:!0,get:()=>sourceModule[key]});}catch(_err){}return newModule}(mod):mod}function jiti(id){var _a,_b;if(id.startsWith("node:")?id=id.substr(5):id.startsWith("file:")&&(id=(0, external_url_namespaceObject.fileURLToPath)(id)),external_module_.builtinModules.includes(id)||".pnp.js"===id)return nativeRequire(id);const filename=_resolve(id),ext=pathe_f81973bb_extname(filename);if(ext&&!opts.extensions.includes(ext))return debug("[unknown]",filename),nativeRequire(id);if(isNativeRe.test(filename))return debug("[native]",filename),nativeRequire(id);if(opts.requireCache&&nativeRequire.cache[filename])return _interopDefault(null===(_a=nativeRequire.cache[filename])||void 0===_a?void 0:_a.exports);let source=(0, external_fs_.readFileSync)(filename,"utf-8");const isTypescript=".ts"===ext,isNativeModule=".mjs"===ext||".js"===ext&&"module"===(null===(_b=function(path){for(;path&&"."!==path&&"/"!==path;){path=join(path,"..");try{const pkg=(0,external_fs_.readFileSync)(join(path,"package.json"),"utf-8");try{return JSON.parse(pkg)}catch(_a){}break}catch(_b){}}}(filename))||void 0===_b?void 0:_b.type),needsTranspile=!(".cjs"===ext)&&(isTypescript||isNativeModule||isTransformRe.test(filename)||hasESMSyntax(source)||opts.legacy&&source.match(/\?\.|\?\?/));const start=external_perf_hooks_namespaceObject.performance.now();if(needsTranspile){source=transform({filename,source,ts:isTypescript});debug("[transpile]"+(isNativeModule?" [esm]":""),filename,`(${Math.round(1e3*(external_perf_hooks_namespaceObject.performance.now()-start))/1e3}ms)`);}else try{return debug("[native]",filename),_interopDefault(nativeRequire(id))}catch(err){debug("Native require error:",err),debug("[fallback]",filename),source=transform({filename,source,ts:isTypescript});}const mod=new external_module_.Module(filename);let compiled;mod.filename=filename,parentModule&&(mod.parent=parentModule,Array.isArray(parentModule.children)&&!parentModule.children.includes(mod)&&parentModule.children.push(mod)),mod.require=createJITI(filename,opts,mod),mod.path=pathe_f81973bb_dirname(filename),mod.paths=external_module_.Module._nodeModulePaths(mod.path),opts.requireCache&&(nativeRequire.cache[filename]=mod);try{compiled=external_vm_default().runInThisContext(external_module_.Module.wrap(source),{filename,lineOffset:0,displayErrors:!1});}catch(err){opts.requireCache&&delete nativeRequire.cache[filename],opts.onError(err);}try{compiled(mod.exports,mod.require,mod,mod.filename,pathe_f81973bb_dirname(mod.filename));}catch(err){opts.requireCache&&delete nativeRequire.cache[filename],opts.onError(err);}if(mod.exports&&mod.exports.__JITI_ERROR__){const{filename,line,column,code,message}=mod.exports.__JITI_ERROR__,err=new Error(`${code}: ${message} \n ${`${filename}:${line}:${column}`}`);Error.captureStackTrace(err,jiti),opts.onError(err);}mod.loaded=!0;return _interopDefault(mod.exports)}return _resolve.paths=nativeRequire.resolve.paths,jiti.resolve=_resolve,jiti.cache=opts.requireCache?nativeRequire.cache:{},jiti.extensions=nativeRequire.extensions,jiti.main=nativeRequire.main,jiti.transform=transform,jiti.register=function(){return (0, lib.addHook)(((source,filename)=>jiti.transform({source,filename,ts:!!filename.match(/\.[cm]?ts$/)})),{exts:opts.extensions})},jiti}})(),module.exports=__webpack_exports__.default;})();
374} (jiti));
375 return jiti.exports;
376}
377
378var babel = {exports: {}};
379
380var hasRequiredBabel;
381
382function requireBabel () {
383 if (hasRequiredBabel) return babel.exports;
384 hasRequiredBabel = 1;
385 (function (module) {
386 (()=>{var __webpack_modules__={"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files lazy recursive":module=>{function webpackEmptyAsyncContext(req){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}))}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files lazy recursive",module.exports=webpackEmptyAsyncContext;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files sync recursive",module.exports=webpackEmptyContext;},"./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-class-properties/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.18.9/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("classProperties","classPrivateProperties","classPrivateMethods");}})));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-export-namespace-from",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("exportNamespaceFrom");}})));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-nullish-coalescing-operator",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("nullishCoalescingOperator");}})));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-optional-chaining",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("optionalChaining");}})));exports.default=_default;},"./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.2/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js":function(__unused_webpack_module,exports,__webpack_require__){!function(exports,setArray,sourcemapCodec,traceMapping){const COLUMN=0,SOURCES_INDEX=1,SOURCE_LINE=2,SOURCE_COLUMN=3,NAMES_INDEX=4,NO_NAME=-1;let addSegmentInternal;exports.addSegment=void 0,exports.addMapping=void 0,exports.maybeAddSegment=void 0,exports.maybeAddMapping=void 0,exports.setSourceContent=void 0,exports.toDecodedMap=void 0,exports.toEncodedMap=void 0,exports.fromMap=void 0,exports.allMappings=void 0;class GenMapping{constructor({file,sourceRoot}={}){this._names=new setArray.SetArray,this._sources=new setArray.SetArray,this._sourcesContent=[],this._mappings=[],this.file=file,this.sourceRoot=sourceRoot;}}function getLine(mappings,index){for(let i=mappings.length;i<=index;i++)mappings[i]=[];return mappings[index]}function getColumnIndex(line,genColumn){let index=line.length;for(let i=index-1;i>=0&&!(genColumn>=line[i][COLUMN]);index=i--);return index}function insert(array,index,value){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value;}function removeEmptyFinalLines(mappings){const{length}=mappings;let len=length;for(let i=len-1;i>=0&&!(mappings[i].length>0);len=i,i--);len<length&&(mappings.length=len);}function putAll(strarr,array){for(let i=0;i<array.length;i++)setArray.put(strarr,array[i]);}function skipSourceless(line,index){return 0===index||1===line[index-1].length}function skipSource(line,index,sourcesIndex,sourceLine,sourceColumn,namesIndex){if(0===index)return !1;const prev=line[index-1];return 1!==prev.length&&sourcesIndex===prev[SOURCES_INDEX]&&sourceLine===prev[SOURCE_LINE]&&sourceColumn===prev[SOURCE_COLUMN]&&namesIndex===(5===prev.length?prev[NAMES_INDEX]:NO_NAME)}function addMappingInternal(skipable,map,mapping){const{generated,source,original,name,content}=mapping;if(!source)return addSegmentInternal(skipable,map,generated.line-1,generated.column,null,null,null,null,null);const s=source;return addSegmentInternal(skipable,map,generated.line-1,generated.column,s,original.line-1,original.column,name,content)}exports.addSegment=(map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)=>addSegmentInternal(!1,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content),exports.maybeAddSegment=(map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)=>addSegmentInternal(!0,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content),exports.addMapping=(map,mapping)=>addMappingInternal(!1,map,mapping),exports.maybeAddMapping=(map,mapping)=>addMappingInternal(!0,map,mapping),exports.setSourceContent=(map,source,content)=>{const{_sources:sources,_sourcesContent:sourcesContent}=map;sourcesContent[setArray.put(sources,source)]=content;},exports.toDecodedMap=map=>{const{file,sourceRoot,_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names}=map;return removeEmptyFinalLines(mappings),{version:3,file:file||void 0,names:names.array,sourceRoot:sourceRoot||void 0,sources:sources.array,sourcesContent,mappings}},exports.toEncodedMap=map=>{const decoded=exports.toDecodedMap(map);return Object.assign(Object.assign({},decoded),{mappings:sourcemapCodec.encode(decoded.mappings)})},exports.allMappings=map=>{const out=[],{_mappings:mappings,_sources:sources,_names:names}=map;for(let i=0;i<mappings.length;i++){const line=mappings[i];for(let j=0;j<line.length;j++){const seg=line[j],generated={line:i+1,column:seg[COLUMN]};let source,original,name;1!==seg.length&&(source=sources.array[seg[SOURCES_INDEX]],original={line:seg[SOURCE_LINE]+1,column:seg[SOURCE_COLUMN]},5===seg.length&&(name=names.array[seg[NAMES_INDEX]])),out.push({generated,source,original,name});}}return out},exports.fromMap=input=>{const map=new traceMapping.TraceMap(input),gen=new GenMapping({file:map.file,sourceRoot:map.sourceRoot});return putAll(gen._names,map.names),putAll(gen._sources,map.sources),gen._sourcesContent=map.sourcesContent||map.sources.map((()=>null)),gen._mappings=traceMapping.decodedMappings(map),gen},addSegmentInternal=(skipable,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)=>{const{_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names}=map,line=getLine(mappings,genLine),index=getColumnIndex(line,genColumn);if(!source){if(skipable&&skipSourceless(line,index))return;return insert(line,index,[genColumn])}const sourcesIndex=setArray.put(sources,source),namesIndex=name?setArray.put(names,name):NO_NAME;if(sourcesIndex===sourcesContent.length&&(sourcesContent[sourcesIndex]=null!=content?content:null),!skipable||!skipSource(line,index,sourcesIndex,sourceLine,sourceColumn,namesIndex))return insert(line,index,name?[genColumn,sourcesIndex,sourceLine,sourceColumn,namesIndex]:[genColumn,sourcesIndex,sourceLine,sourceColumn])},exports.GenMapping=GenMapping,Object.defineProperty(exports,"__esModule",{value:!0});}(exports,__webpack_require__("./node_modules/.pnpm/@jridgewell+set-array@1.1.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js"),__webpack_require__("./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.13/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"),__webpack_require__("./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.15/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"));},"./node_modules/.pnpm/@jridgewell+resolve-uri@3.0.7/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js":function(module){module.exports=function(){const schemeRegex=/^[\w+.-]+:\/\//,urlRegex=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/,fileRegex=/^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;function isAbsoluteUrl(input){return schemeRegex.test(input)}function isSchemeRelativeUrl(input){return input.startsWith("//")}function isAbsolutePath(input){return input.startsWith("/")}function isFileUrl(input){return input.startsWith("file:")}function parseAbsoluteUrl(input){const match=urlRegex.exec(input);return makeUrl(match[1],match[2]||"",match[3],match[4]||"",match[5]||"/")}function parseFileUrl(input){const match=fileRegex.exec(input),path=match[2];return makeUrl("file:","",match[1]||"","",isAbsolutePath(path)?path:"/"+path)}function makeUrl(scheme,user,host,port,path){return {scheme,user,host,port,path,relativePath:!1}}function parseUrl(input){if(isSchemeRelativeUrl(input)){const url=parseAbsoluteUrl("http:"+input);return url.scheme="",url}if(isAbsolutePath(input)){const url=parseAbsoluteUrl("http://foo.com"+input);return url.scheme="",url.host="",url}if(isFileUrl(input))return parseFileUrl(input);if(isAbsoluteUrl(input))return parseAbsoluteUrl(input);const url=parseAbsoluteUrl("http://foo.com/"+input);return url.scheme="",url.host="",url.relativePath=!0,url}function stripPathFilename(path){if(path.endsWith("/.."))return path;const index=path.lastIndexOf("/");return path.slice(0,index+1)}function mergePaths(url,base){url.relativePath&&(normalizePath(base),"/"===url.path?url.path=base.path:url.path=stripPathFilename(base.path)+url.path,url.relativePath=base.relativePath);}function normalizePath(url){const{relativePath}=url,pieces=url.path.split("/");let pointer=1,positive=0,addTrailingSlash=!1;for(let i=1;i<pieces.length;i++){const piece=pieces[i];piece?(addTrailingSlash=!1,"."!==piece&&(".."!==piece?(pieces[pointer++]=piece,positive++):positive?(addTrailingSlash=!0,positive--,pointer--):relativePath&&(pieces[pointer++]=piece))):addTrailingSlash=!0;}let path="";for(let i=1;i<pointer;i++)path+="/"+pieces[i];(!path||addTrailingSlash&&!path.endsWith("/.."))&&(path+="/"),url.path=path;}function resolve(input,base){if(!input&&!base)return "";const url=parseUrl(input);if(base&&!url.scheme){const baseUrl=parseUrl(base);url.scheme=baseUrl.scheme,url.host||(url.user=baseUrl.user,url.host=baseUrl.host,url.port=baseUrl.port),mergePaths(url,baseUrl);}if(normalizePath(url),url.relativePath){const path=url.path.slice(1);return path?!(base||input).startsWith(".")||path.startsWith(".")?path:"./"+path:"."}return url.scheme||url.host?`${url.scheme}//${url.user}${url.host}${url.port}${url.path}`:url.path}return resolve}();},"./node_modules/.pnpm/@jridgewell+set-array@1.1.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js":function(__unused_webpack_module,exports){!function(exports){exports.get=void 0,exports.put=void 0,exports.pop=void 0;class SetArray{constructor(){this._indexes={__proto__:null},this.array=[];}}exports.get=(strarr,key)=>strarr._indexes[key],exports.put=(strarr,key)=>{const index=exports.get(strarr,key);if(void 0!==index)return index;const{array,_indexes:indexes}=strarr;return indexes[key]=array.push(key)-1},exports.pop=strarr=>{const{array,_indexes:indexes}=strarr;0!==array.length&&(indexes[array.pop()]=void 0);},exports.SetArray=SetArray,Object.defineProperty(exports,"__esModule",{value:!0});}(exports);},"./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.13/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js":function(__unused_webpack_module,exports){!function(exports){const comma=",".charCodeAt(0),semicolon=";".charCodeAt(0),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",intToChar=new Uint8Array(64),charToInt=new Uint8Array(128);for(let i=0;i<chars.length;i++){const c=chars.charCodeAt(i);intToChar[i]=c,charToInt[c]=i;}const td="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:buf=>Buffer.from(buf.buffer,buf.byteOffset,buf.byteLength).toString()}:{decode(buf){let out="";for(let i=0;i<buf.length;i++)out+=String.fromCharCode(buf[i]);return out}};function decode(mappings){const state=new Int32Array(5),decoded=[];let index=0;do{const semi=indexOf(mappings,index),line=[];let sorted=!0,lastCol=0;state[0]=0;for(let i=index;i<semi;i++){let seg;i=decodeInteger(mappings,i,state,0);const col=state[0];col<lastCol&&(sorted=!1),lastCol=col,hasMoreVlq(mappings,i,semi)?(i=decodeInteger(mappings,i,state,1),i=decodeInteger(mappings,i,state,2),i=decodeInteger(mappings,i,state,3),hasMoreVlq(mappings,i,semi)?(i=decodeInteger(mappings,i,state,4),seg=[col,state[1],state[2],state[3],state[4]]):seg=[col,state[1],state[2],state[3]]):seg=[col],line.push(seg);}sorted||sort(line),decoded.push(line),index=semi+1;}while(index<=mappings.length);return decoded}function indexOf(mappings,index){const idx=mappings.indexOf(";",index);return -1===idx?mappings.length:idx}function decodeInteger(mappings,pos,state,j){let value=0,shift=0,integer=0;do{const c=mappings.charCodeAt(pos++);integer=charToInt[c],value|=(31&integer)<<shift,shift+=5;}while(32&integer);const shouldNegate=1&value;return value>>>=1,shouldNegate&&(value=-2147483648|-value),state[j]+=value,pos}function hasMoreVlq(mappings,i,length){return !(i>=length)&&mappings.charCodeAt(i)!==comma}function sort(line){line.sort(sortComparator);}function sortComparator(a,b){return a[0]-b[0]}function encode(decoded){const state=new Int32Array(5),bufLength=16384,subLength=bufLength-36,buf=new Uint8Array(bufLength),sub=buf.subarray(0,subLength);let pos=0,out="";for(let i=0;i<decoded.length;i++){const line=decoded[i];if(i>0&&(pos===bufLength&&(out+=td.decode(buf),pos=0),buf[pos++]=semicolon),0!==line.length){state[0]=0;for(let j=0;j<line.length;j++){const segment=line[j];pos>subLength&&(out+=td.decode(sub),buf.copyWithin(0,subLength,pos),pos-=subLength),j>0&&(buf[pos++]=comma),pos=encodeInteger(buf,pos,state,segment,0),1!==segment.length&&(pos=encodeInteger(buf,pos,state,segment,1),pos=encodeInteger(buf,pos,state,segment,2),pos=encodeInteger(buf,pos,state,segment,3),4!==segment.length&&(pos=encodeInteger(buf,pos,state,segment,4)));}}}return out+td.decode(buf.subarray(0,pos))}function encodeInteger(buf,pos,state,segment,j){const next=segment[j];let num=next-state[j];state[j]=next,num=num<0?-num<<1|1:num<<1;do{let clamped=31&num;num>>>=5,num>0&&(clamped|=32),buf[pos++]=intToChar[clamped];}while(num>0);return pos}exports.decode=decode,exports.encode=encode,Object.defineProperty(exports,"__esModule",{value:!0});}(exports);},"./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.15/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js":function(__unused_webpack_module,exports,__webpack_require__){!function(exports,sourcemapCodec,resolveUri){function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var resolveUri__default=_interopDefaultLegacy(resolveUri);function resolve(input,base){return base&&!base.endsWith("/")&&(base+="/"),resolveUri__default.default(input,base)}function stripFilename(path){if(!path)return "";const index=path.lastIndexOf("/");return path.slice(0,index+1)}const COLUMN=0,SOURCES_INDEX=1,SOURCE_LINE=2,SOURCE_COLUMN=3,NAMES_INDEX=4,REV_GENERATED_LINE=1,REV_GENERATED_COLUMN=2;function maybeSort(mappings,owned){const unsortedIndex=nextUnsortedSegmentLine(mappings,0);if(unsortedIndex===mappings.length)return mappings;owned||(mappings=mappings.slice());for(let i=unsortedIndex;i<mappings.length;i=nextUnsortedSegmentLine(mappings,i+1))mappings[i]=sortSegments(mappings[i],owned);return mappings}function nextUnsortedSegmentLine(mappings,start){for(let i=start;i<mappings.length;i++)if(!isSorted(mappings[i]))return i;return mappings.length}function isSorted(line){for(let j=1;j<line.length;j++)if(line[j][COLUMN]<line[j-1][COLUMN])return !1;return !0}function sortSegments(line,owned){return owned||(line=line.slice()),line.sort(sortComparator)}function sortComparator(a,b){return a[COLUMN]-b[COLUMN]}let found=!1;function binarySearch(haystack,needle,low,high){for(;low<=high;){const mid=low+(high-low>>1),cmp=haystack[mid][COLUMN]-needle;if(0===cmp)return found=!0,mid;cmp<0?low=mid+1:high=mid-1;}return found=!1,low-1}function upperBound(haystack,needle,index){for(let i=index+1;i<haystack.length&&haystack[i][COLUMN]===needle;index=i++);return index}function lowerBound(haystack,needle,index){for(let i=index-1;i>=0&&haystack[i][COLUMN]===needle;index=i--);return index}function memoizedState(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(haystack,needle,state,key){const{lastKey,lastNeedle,lastIndex}=state;let low=0,high=haystack.length-1;if(key===lastKey){if(needle===lastNeedle)return found=-1!==lastIndex&&haystack[lastIndex][COLUMN]===needle,lastIndex;needle>=lastNeedle?low=-1===lastIndex?0:lastIndex:high=lastIndex;}return state.lastKey=key,state.lastNeedle=needle,state.lastIndex=binarySearch(haystack,needle,low,high)}function buildBySources(decoded,memos){const sources=memos.map(buildNullArray);for(let i=0;i<decoded.length;i++){const line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j];if(1===seg.length)continue;const sourceIndex=seg[SOURCES_INDEX],sourceLine=seg[SOURCE_LINE],sourceColumn=seg[SOURCE_COLUMN],originalSource=sources[sourceIndex],originalLine=originalSource[sourceLine]||(originalSource[sourceLine]=[]),memo=memos[sourceIndex],index=upperBound(originalLine,sourceColumn,memoizedBinarySearch(originalLine,sourceColumn,memo,sourceLine));insert(originalLine,memo.lastIndex=index+1,[sourceColumn,i,seg[COLUMN]]);}}return sources}function insert(array,index,value){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value;}function buildNullArray(){return {__proto__:null}}const AnyMap=function(map,mapUrl){const parsed="string"==typeof map?JSON.parse(map):map;if(!("sections"in parsed))return new TraceMap(parsed,mapUrl);const mappings=[],sources=[],sourcesContent=[],names=[];recurse(parsed,mapUrl,mappings,sources,sourcesContent,names,0,0,1/0,1/0);const joined={version:3,file:parsed.file,names,sources,sourcesContent,mappings};return exports.presortedDecodedMap(joined)};function recurse(input,mapUrl,mappings,sources,sourcesContent,names,lineOffset,columnOffset,stopLine,stopColumn){const{sections}=input;for(let i=0;i<sections.length;i++){const{map,offset}=sections[i];let sl=stopLine,sc=stopColumn;if(i+1<sections.length){const nextOffset=sections[i+1].offset;sl=Math.min(stopLine,lineOffset+nextOffset.line),sl===stopLine?sc=Math.min(stopColumn,columnOffset+nextOffset.column):sl<stopLine&&(sc=columnOffset+nextOffset.column);}addSection(map,mapUrl,mappings,sources,sourcesContent,names,lineOffset+offset.line,columnOffset+offset.column,sl,sc);}}function addSection(input,mapUrl,mappings,sources,sourcesContent,names,lineOffset,columnOffset,stopLine,stopColumn){if("sections"in input)return recurse(...arguments);const map=new TraceMap(input,mapUrl),sourcesOffset=sources.length,namesOffset=names.length,decoded=exports.decodedMappings(map),{resolvedSources,sourcesContent:contents}=map;if(append(sources,resolvedSources),append(names,map.names),contents)append(sourcesContent,contents);else for(let i=0;i<resolvedSources.length;i++)sourcesContent.push(null);for(let i=0;i<decoded.length;i++){const lineI=lineOffset+i;if(lineI>stopLine)return;const out=getLine(mappings,lineI),cOffset=0===i?columnOffset:0,line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j],column=cOffset+seg[COLUMN];if(lineI===stopLine&&column>=stopColumn)return;if(1===seg.length){out.push([column]);continue}const sourcesIndex=sourcesOffset+seg[SOURCES_INDEX],sourceLine=seg[SOURCE_LINE],sourceColumn=seg[SOURCE_COLUMN];out.push(4===seg.length?[column,sourcesIndex,sourceLine,sourceColumn]:[column,sourcesIndex,sourceLine,sourceColumn,namesOffset+seg[NAMES_INDEX]]);}}}function append(arr,other){for(let i=0;i<other.length;i++)arr.push(other[i]);}function getLine(arr,index){for(let i=arr.length;i<=index;i++)arr[i]=[];return arr[index]}const LINE_GTR_ZERO="`line` must be greater than 0 (lines start at line 1)",COL_GTR_EQ_ZERO="`column` must be greater than or equal to 0 (columns start at column 0)",LEAST_UPPER_BOUND=-1,GREATEST_LOWER_BOUND=1;exports.encodedMappings=void 0,exports.decodedMappings=void 0,exports.traceSegment=void 0,exports.originalPositionFor=void 0,exports.generatedPositionFor=void 0,exports.eachMapping=void 0,exports.sourceContentFor=void 0,exports.presortedDecodedMap=void 0,exports.decodedMap=void 0,exports.encodedMap=void 0;class TraceMap{constructor(map,mapUrl){const isString="string"==typeof map;if(!isString&&map._decodedMemo)return map;const parsed=isString?JSON.parse(map):map,{version,file,names,sourceRoot,sources,sourcesContent}=parsed;this.version=version,this.file=file,this.names=names,this.sourceRoot=sourceRoot,this.sources=sources,this.sourcesContent=sourcesContent;const from=resolve(sourceRoot||"",stripFilename(mapUrl));this.resolvedSources=sources.map((s=>resolve(s||"",from)));const{mappings}=parsed;"string"==typeof mappings?(this._encoded=mappings,this._decoded=void 0):(this._encoded=void 0,this._decoded=maybeSort(mappings,isString)),this._decodedMemo=memoizedState(),this._bySources=void 0,this._bySourceMemos=void 0;}}function clone(map,mappings){return {version:map.version,file:map.file,names:map.names,sourceRoot:map.sourceRoot,sources:map.sources,sourcesContent:map.sourcesContent,mappings}}function OMapping(source,line,column,name){return {source,line,column,name}}function GMapping(line,column){return {line,column}}function traceSegmentInternal(segments,memo,line,column,bias){let index=memoizedBinarySearch(segments,column,memo,line);return found?index=(bias===LEAST_UPPER_BOUND?upperBound:lowerBound)(segments,column,index):bias===LEAST_UPPER_BOUND&&index++,-1===index||index===segments.length?null:segments[index]}exports.encodedMappings=map=>{var _a;return null!==(_a=map._encoded)&&void 0!==_a?_a:map._encoded=sourcemapCodec.encode(map._decoded)},exports.decodedMappings=map=>map._decoded||(map._decoded=sourcemapCodec.decode(map._encoded)),exports.traceSegment=(map,line,column)=>{const decoded=exports.decodedMappings(map);return line>=decoded.length?null:traceSegmentInternal(decoded[line],map._decodedMemo,line,column,GREATEST_LOWER_BOUND)},exports.originalPositionFor=(map,{line,column,bias})=>{if(--line<0)throw new Error(LINE_GTR_ZERO);if(column<0)throw new Error(COL_GTR_EQ_ZERO);const decoded=exports.decodedMappings(map);if(line>=decoded.length)return OMapping(null,null,null,null);const segment=traceSegmentInternal(decoded[line],map._decodedMemo,line,column,bias||GREATEST_LOWER_BOUND);if(null==segment)return OMapping(null,null,null,null);if(1==segment.length)return OMapping(null,null,null,null);const{names,resolvedSources}=map;return OMapping(resolvedSources[segment[SOURCES_INDEX]],segment[SOURCE_LINE]+1,segment[SOURCE_COLUMN],5===segment.length?names[segment[NAMES_INDEX]]:null)},exports.generatedPositionFor=(map,{source,line,column,bias})=>{if(--line<0)throw new Error(LINE_GTR_ZERO);if(column<0)throw new Error(COL_GTR_EQ_ZERO);const{sources,resolvedSources}=map;let sourceIndex=sources.indexOf(source);if(-1===sourceIndex&&(sourceIndex=resolvedSources.indexOf(source)),-1===sourceIndex)return GMapping(null,null);const generated=map._bySources||(map._bySources=buildBySources(exports.decodedMappings(map),map._bySourceMemos=sources.map(memoizedState))),memos=map._bySourceMemos,segments=generated[sourceIndex][line];if(null==segments)return GMapping(null,null);const segment=traceSegmentInternal(segments,memos[sourceIndex],line,column,bias||GREATEST_LOWER_BOUND);return null==segment?GMapping(null,null):GMapping(segment[REV_GENERATED_LINE]+1,segment[REV_GENERATED_COLUMN])},exports.eachMapping=(map,cb)=>{const decoded=exports.decodedMappings(map),{names,resolvedSources}=map;for(let i=0;i<decoded.length;i++){const line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j],generatedLine=i+1,generatedColumn=seg[0];let source=null,originalLine=null,originalColumn=null,name=null;1!==seg.length&&(source=resolvedSources[seg[1]],originalLine=seg[2]+1,originalColumn=seg[3]),5===seg.length&&(name=names[seg[4]]),cb({generatedLine,generatedColumn,source,originalLine,originalColumn,name});}}},exports.sourceContentFor=(map,source)=>{const{sources,resolvedSources,sourcesContent}=map;if(null==sourcesContent)return null;let index=sources.indexOf(source);return -1===index&&(index=resolvedSources.indexOf(source)),-1===index?null:sourcesContent[index]},exports.presortedDecodedMap=(map,mapUrl)=>{const tracer=new TraceMap(clone(map,[]),mapUrl);return tracer._decoded=map.mappings,tracer},exports.decodedMap=map=>clone(map,exports.decodedMappings(map)),exports.encodedMap=map=>clone(map,exports.encodedMappings(map)),exports.AnyMap=AnyMap,exports.GREATEST_LOWER_BOUND=GREATEST_LOWER_BOUND,exports.LEAST_UPPER_BOUND=LEAST_UPPER_BOUND,exports.TraceMap=TraceMap,Object.defineProperty(exports,"__esModule",{value:!0});}(exports,__webpack_require__("./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.13/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"),__webpack_require__("./node_modules/.pnpm/@jridgewell+resolve-uri@3.0.7/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"));},"./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js":(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(api){var transformImport=(0, _utils.createDynamicImportTransform)(api);return {manipulateOptions:function(opts,parserOpts){parserOpts.plugins.push("dynamicImport");},visitor:{Import:function(path){transformImport(this,path);}}}};var _utils=__webpack_require__("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js");module.exports=exports.default;},"./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0});var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{!_n&&_i.return&&_i.return();}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function getImportSource(t,callNode){var importArguments=callNode.arguments,importPath=_slicedToArray(importArguments,1)[0];return t.isStringLiteral(importPath)||t.isTemplateLiteral(importPath)?(t.removeComments(importPath),importPath):t.templateLiteral([t.templateElement({raw:"",cooked:""}),t.templateElement({raw:"",cooked:""},!0)],importArguments)}exports.getImportSource=getImportSource,exports.createDynamicImportTransform=function(_ref){var template=_ref.template,t=_ref.types,builders={static:{interop:template("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:template("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:template("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:template("Promise.resolve(SOURCE).then(s => require(s))")}},visited="function"==typeof WeakSet&&new WeakSet;return function(context,path){if(visited){if(visited.has(path))return;visited.add(path);}var node,SOURCE=getImportSource(t,path.parent),builder=(node=SOURCE,t.isStringLiteral(node)||t.isTemplateLiteral(node)&&0===node.expressions.length?builders.static:builders.dynamic),newImport=context.opts.noInterop?builder.noInterop({SOURCE}):builder.interop({SOURCE,INTEROP:context.addHelper("interopRequireWildcard")});path.parentPath.replaceWith(newImport);}};},"./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/utils.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js");},"./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{var _path=__webpack_require__("path");function isInType(path){switch(path.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return !0;default:return !1}}module.exports=function(_ref){var types=_ref.types,decoratorExpressionForConstructor=function(decorator,param){return function(className){var resultantDecorator=types.callExpression(decorator.expression,[types.Identifier(className),types.Identifier("undefined"),types.NumericLiteral(param.key)]),resultantDecoratorWithFallback=types.logicalExpression("||",resultantDecorator,types.Identifier(className)),assignment=types.assignmentExpression("=",types.Identifier(className),resultantDecoratorWithFallback);return types.expressionStatement(assignment)}},decoratorExpressionForMethod=function(decorator,param){return function(className,functionName){var resultantDecorator=types.callExpression(decorator.expression,[types.Identifier("".concat(className,".prototype")),types.StringLiteral(functionName),types.NumericLiteral(param.key)]);return types.expressionStatement(resultantDecorator)}};return {visitor:{Program:function(path,state){var extension=(0, _path.extname)(state.file.opts.filename);".ts"!==extension&&".tsx"!==extension||function(){var decorators=Object.create(null);path.node.body.filter((function(it){var type=it.type,declaration=it.declaration;switch(type){case"ClassDeclaration":return !0;case"ExportNamedDeclaration":case"ExportDefaultDeclaration":return declaration&&"ClassDeclaration"===declaration.type;default:return !1}})).map((function(it){return "ClassDeclaration"===it.type?it:it.declaration})).forEach((function(clazz){clazz.body.body.forEach((function(body){(body.params||[]).forEach((function(param){(param.decorators||[]).forEach((function(decorator){decorator.expression.callee?decorators[decorator.expression.callee.name]=decorator:decorators[decorator.expression.name]=decorator;}));}));}));}));var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=path.get("body")[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var stmt=_step.value;if("ImportDeclaration"===stmt.node.type){if(0===stmt.node.specifiers.length)continue;var _iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _step2,_loop=function(){var specifier=_step2.value,binding=stmt.scope.getBinding(specifier.local.name);binding.referencePaths.length?binding.referencePaths.reduce((function(prev,next){return prev||isInType(next)}),!1)&&Object.keys(decorators).forEach((function(k){var decorator=decorators[k];(decorator.expression.arguments||[]).forEach((function(arg){arg.name===specifier.local.name&&binding.referencePaths.push({parent:decorator.expression});}));})):decorators[specifier.local.name]&&binding.referencePaths.push({parent:decorators[specifier.local.name]});},_iterator2=stmt.node.specifiers[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0)_loop();}catch(err){_didIteratorError2=!0,_iteratorError2=err;}finally{try{_iteratorNormalCompletion2||null==_iterator2.return||_iterator2.return();}finally{if(_didIteratorError2)throw _iteratorError2}}}}}catch(err){_didIteratorError=!0,_iteratorError=err;}finally{try{_iteratorNormalCompletion||null==_iterator.return||_iterator.return();}finally{if(_didIteratorError)throw _iteratorError}}}();},Function:function(path){var functionName="";path.node.id?functionName=path.node.id.name:path.node.key&&(functionName=path.node.key.name),(path.get("params")||[]).slice().forEach((function(param){var decorators=param.node.decorators||[],transformable=decorators.length;if(decorators.slice().forEach((function(decorator){if("ClassMethod"===path.type){var classIdentifier,parentNode=path.parentPath.parentPath,classDeclaration=path.findParent((function(p){return "ClassDeclaration"===p.type}));if(classDeclaration?classIdentifier=classDeclaration.node.id.name:(parentNode.insertAfter(null),classIdentifier=function(path){var assignment=path.findParent((function(p){return "AssignmentExpression"===p.node.type}));return "SequenceExpression"===assignment.node.right.type?assignment.node.right.expressions[1].name:"ClassExpression"===assignment.node.right.type?assignment.node.left.name:null}(path)),"constructor"===functionName){var expression=decoratorExpressionForConstructor(decorator,param)(classIdentifier);parentNode.insertAfter(expression);}else {var _expression=decoratorExpressionForMethod(decorator,param)(classIdentifier,functionName);parentNode.insertAfter(_expression);}}else {var className=path.findParent((function(p){return "VariableDeclarator"===p.node.type})).node.id.name;if(functionName===className){var _expression2=decoratorExpressionForConstructor(decorator,param)(className);if("body"===path.parentKey)path.insertAfter(_expression2);else path.findParent((function(p){return "body"===p.parentKey})).insertAfter(_expression2);}else {var classParent=path.findParent((function(p){return "CallExpression"===p.node.type})),_expression3=decoratorExpressionForMethod(decorator,param)(className,functionName);classParent.insertAfter(_expression3);}}})),transformable){var replacement=function(path){switch(path.node.type){case"ObjectPattern":return types.ObjectPattern(path.node.properties);case"AssignmentPattern":return types.AssignmentPattern(path.node.left,path.node.right);case"TSParameterProperty":return types.Identifier(path.node.parameter.name);default:return types.Identifier(path.node.name)}}(param);param.replaceWith(replacement);}}));}}}};},"./node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{var fs=__webpack_require__("fs"),path=__webpack_require__("path"),SafeBuffer=__webpack_require__("./node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js");function Converter(sm,opts){var base64;(opts=opts||{}).isFileComment&&(sm=function(sm,dir){var r=exports.mapFileCommentRegex.exec(sm),filename=r[1]||r[2],filepath=path.resolve(dir,filename);try{return fs.readFileSync(filepath,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+filepath+"\n"+e)}}(sm,opts.commentFileDir)),opts.hasComment&&(sm=function(sm){return sm.split(",").pop()}(sm)),opts.isEncoded&&(base64=sm,sm=(SafeBuffer.Buffer.from(base64,"base64")||"").toString()),(opts.isJSON||opts.isEncoded)&&(sm=JSON.parse(sm)),this.sourcemap=sm;}Object.defineProperty(exports,"commentRegex",{get:function(){return /^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}}),Object.defineProperty(exports,"mapFileCommentRegex",{get:function(){return /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}}),Converter.prototype.toJSON=function(space){return JSON.stringify(this.sourcemap,null,space)},Converter.prototype.toBase64=function(){var json=this.toJSON();return (SafeBuffer.Buffer.from(json,"utf8")||"").toString("base64")},Converter.prototype.toComment=function(options){var data="sourceMappingURL=data:application/json;charset=utf-8;base64,"+this.toBase64();return options&&options.multiline?"/*# "+data+" */":"//# "+data},Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())},Converter.prototype.addProperty=function(key,value){if(this.sourcemap.hasOwnProperty(key))throw new Error('property "'+key+'" already exists on the sourcemap, use set property instead');return this.setProperty(key,value)},Converter.prototype.setProperty=function(key,value){return this.sourcemap[key]=value,this},Converter.prototype.getProperty=function(key){return this.sourcemap[key]},exports.fromObject=function(obj){return new Converter(obj)},exports.fromJSON=function(json){return new Converter(json,{isJSON:!0})},exports.fromBase64=function(base64){return new Converter(base64,{isEncoded:!0})},exports.fromComment=function(comment){return new Converter(comment=comment.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{isEncoded:!0,hasComment:!0})},exports.fromMapFileComment=function(comment,dir){return new Converter(comment,{commentFileDir:dir,isFileComment:!0,isJSON:!0})},exports.fromSource=function(content){var m=content.match(exports.commentRegex);return m?exports.fromComment(m.pop()):null},exports.fromMapFileSource=function(content,dir){var m=content.match(exports.mapFileCommentRegex);return m?exports.fromMapFileComment(m.pop(),dir):null},exports.removeComments=function(src){return src.replace(exports.commentRegex,"")},exports.removeMapFileComments=function(src){return src.replace(exports.mapFileCommentRegex,"")},exports.generateMapFileComment=function(file,options){var data="sourceMappingURL="+file;return options&&options.multiline?"/*# "+data+" */":"//# "+data};},"./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js":(module,exports,__webpack_require__)=>{exports.formatArgs=function(args){if(args[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+args[0]+(this.useColors?"%c ":" ")+"+"+module.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;args.splice(1,0,c,"color: inherit");let index=0,lastC=0;args[0].replace(/%[a-zA-Z%]/g,(match=>{"%%"!==match&&(index++,"%c"===match&&(lastC=index));})),args.splice(lastC,0,c);},exports.save=function(namespaces){try{namespaces?exports.storage.setItem("debug",namespaces):exports.storage.removeItem("debug");}catch(error){}},exports.load=function(){let r;try{r=exports.storage.getItem("debug");}catch(error){}!r&&"undefined"!=typeof process&&"env"in process&&(r=process.env.DEBUG);return r},exports.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return !0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return !1;return "undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},exports.storage=function(){try{return localStorage}catch(error){}}(),exports.destroy=(()=>{let warned=!1;return ()=>{warned||(warned=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),exports.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],exports.log=console.debug||console.log||(()=>{}),module.exports=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js")(exports);const{formatters}=module.exports;formatters.j=function(v){try{return JSON.stringify(v)}catch(error){return "[UnexpectedJSONParseError]: "+error.message}};},"./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function(env){function createDebug(namespace){let prevTime,namespacesCache,enabledCache,enableOverride=null;function debug(...args){if(!debug.enabled)return;const self=debug,curr=Number(new Date),ms=curr-(prevTime||curr);self.diff=ms,self.prev=prevTime,self.curr=curr,prevTime=curr,args[0]=createDebug.coerce(args[0]),"string"!=typeof args[0]&&args.unshift("%O");let index=0;args[0]=args[0].replace(/%([a-zA-Z%])/g,((match,format)=>{if("%%"===match)return "%";index++;const formatter=createDebug.formatters[format];if("function"==typeof formatter){const val=args[index];match=formatter.call(self,val),args.splice(index,1),index--;}return match})),createDebug.formatArgs.call(self,args);(self.log||createDebug.log).apply(self,args);}return debug.namespace=namespace,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(namespace),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==enableOverride?enableOverride:(namespacesCache!==createDebug.namespaces&&(namespacesCache=createDebug.namespaces,enabledCache=createDebug.enabled(namespace)),enabledCache),set:v=>{enableOverride=v;}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(namespace,delimiter){const newDebug=createDebug(this.namespace+(void 0===delimiter?":":delimiter)+namespace);return newDebug.log=this.log,newDebug}function toNamespace(regexp){return regexp.toString().substring(2,regexp.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function(val){if(val instanceof Error)return val.stack||val.message;return val},createDebug.disable=function(){const namespaces=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((namespace=>"-"+namespace))].join(",");return createDebug.enable(""),namespaces},createDebug.enable=function(namespaces){let i;createDebug.save(namespaces),createDebug.namespaces=namespaces,createDebug.names=[],createDebug.skips=[];const split=("string"==typeof namespaces?namespaces:"").split(/[\s,]+/),len=split.length;for(i=0;i<len;i++)split[i]&&("-"===(namespaces=split[i].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+namespaces.slice(1)+"$")):createDebug.names.push(new RegExp("^"+namespaces+"$")));},createDebug.enabled=function(name){if("*"===name[name.length-1])return !0;let i,len;for(i=0,len=createDebug.skips.length;i<len;i++)if(createDebug.skips[i].test(name))return !1;for(i=0,len=createDebug.names.length;i<len;i++)if(createDebug.names[i].test(name))return !0;return !1},createDebug.humanize=__webpack_require__("./node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"),createDebug.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(env).forEach((key=>{createDebug[key]=env[key];})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function(namespace){let hash=0;for(let i=0;i<namespace.length;i++)hash=(hash<<5)-hash+namespace.charCodeAt(i),hash|=0;return createDebug.colors[Math.abs(hash)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug};},"./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?module.exports=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js"):module.exports=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js");},"./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js":(module,exports,__webpack_require__)=>{const tty=__webpack_require__("tty"),util=__webpack_require__("util");exports.init=function(debug){debug.inspectOpts={};const keys=Object.keys(exports.inspectOpts);for(let i=0;i<keys.length;i++)debug.inspectOpts[keys[i]]=exports.inspectOpts[keys[i]];},exports.log=function(...args){return process.stderr.write(util.format(...args)+"\n")},exports.formatArgs=function(args){const{namespace:name,useColors}=this;if(useColors){const c=this.color,colorCode="[3"+(c<8?c:"8;5;"+c),prefix=` ${colorCode};1m${name} `;args[0]=prefix+args[0].split("\n").join("\n"+prefix),args.push(colorCode+"m+"+module.exports.humanize(this.diff)+"");}else args[0]=function(){if(exports.inspectOpts.hideDate)return "";return (new Date).toISOString()+" "}()+name+" "+args[0];},exports.save=function(namespaces){namespaces?process.env.DEBUG=namespaces:delete process.env.DEBUG;},exports.load=function(){return process.env.DEBUG},exports.useColors=function(){return "colors"in exports.inspectOpts?Boolean(exports.inspectOpts.colors):tty.isatty(process.stderr.fd)},exports.destroy=util.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),exports.colors=[6,2,3,4,5,1];try{const supportsColor=__webpack_require__("./node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js");supportsColor&&(supportsColor.stderr||supportsColor).level>=2&&(exports.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]);}catch(error){}exports.inspectOpts=Object.keys(process.env).filter((key=>/^debug_/i.test(key))).reduce(((obj,key)=>{const prop=key.substring(6).toLowerCase().replace(/_([a-z])/g,((_,k)=>k.toUpperCase()));let val=process.env[key];return val=!!/^(yes|on|true|enabled)$/i.test(val)||!/^(no|off|false|disabled)$/i.test(val)&&("null"===val?null:Number(val)),obj[prop]=val,obj}),{}),module.exports=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js")(exports);const{formatters}=module.exports;formatters.o=function(v){return this.inspectOpts.colors=this.useColors,util.inspect(v,this.inspectOpts).split("\n").map((str=>str.trim())).join(" ")},formatters.O=function(v){return this.inspectOpts.colors=this.useColors,util.inspect(v,this.inspectOpts)};},"./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js":module=>{const GENSYNC_START=Symbol.for("gensync:v1:start"),GENSYNC_SUSPEND=Symbol.for("gensync:v1:suspend");function assertTypeof(type,name,value,allowUndefined){if(typeof value===type||allowUndefined&&void 0===value)return;let msg;throw msg=allowUndefined?`Expected opts.${name} to be either a ${type}, or undefined.`:`Expected opts.${name} to be a ${type}.`,makeError(msg,"GENSYNC_OPTIONS_ERROR")}function makeError(msg,code){return Object.assign(new Error(msg),{code})}function buildOperation({name,arity,sync,async}){return setFunctionMetadata(name,arity,(function*(...args){const resume=yield GENSYNC_START;if(!resume){return sync.call(this,args)}let result;try{async.call(this,args,(value=>{result||(result={value},resume());}),(err=>{result||(result={err},resume());}));}catch(err){result={err},resume();}if(yield GENSYNC_SUSPEND,result.hasOwnProperty("err"))throw result.err;return result.value}))}function evaluateSync(gen){let value;for(;!({value}=gen.next()).done;)assertStart(value,gen);return value}function evaluateAsync(gen,resolve,reject){!function step(){try{let value;for(;!({value}=gen.next()).done;){assertStart(value,gen);let sync=!0,didSyncResume=!1;const out=gen.next((()=>{sync?didSyncResume=!0:step();}));if(sync=!1,assertSuspend(out,gen),!didSyncResume)return}return resolve(value)}catch(err){return reject(err)}}();}function assertStart(value,gen){value!==GENSYNC_START&&throwError(gen,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(value)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,"GENSYNC_EXPECTED_START"));}function assertSuspend({value,done},gen){(done||value!==GENSYNC_SUSPEND)&&throwError(gen,makeError(done?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(value)}. If you get this, it is probably a gensync bug.`,"GENSYNC_EXPECTED_SUSPEND"));}function throwError(gen,err){throw gen.throw&&gen.throw(err),err}function setFunctionMetadata(name,arity,fn){if("string"==typeof name){const nameDesc=Object.getOwnPropertyDescriptor(fn,"name");nameDesc&&!nameDesc.configurable||Object.defineProperty(fn,"name",Object.assign(nameDesc||{},{configurable:!0,value:name}));}if("number"==typeof arity){const lengthDesc=Object.getOwnPropertyDescriptor(fn,"length");lengthDesc&&!lengthDesc.configurable||Object.defineProperty(fn,"length",Object.assign(lengthDesc||{},{configurable:!0,value:arity}));}return fn}module.exports=Object.assign((function(optsOrFn){let genFn=optsOrFn;return genFn="function"!=typeof optsOrFn?function({name,arity,sync,async,errback}){if(assertTypeof("string","name",name,!0),assertTypeof("number","arity",arity,!0),assertTypeof("function","sync",sync),assertTypeof("function","async",async,!0),assertTypeof("function","errback",errback,!0),async&&errback)throw makeError("Expected one of either opts.async or opts.errback, but got _both_.","GENSYNC_OPTIONS_ERROR");if("string"!=typeof name){let fnName;errback&&errback.name&&"errback"!==errback.name&&(fnName=errback.name),async&&async.name&&"async"!==async.name&&(fnName=async.name.replace(/Async$/,"")),sync&&sync.name&&"sync"!==sync.name&&(fnName=sync.name.replace(/Sync$/,"")),"string"==typeof fnName&&(name=fnName);}"number"!=typeof arity&&(arity=sync.length);return buildOperation({name,arity,sync:function(args){return sync.apply(this,args)},async:function(args,resolve,reject){async?async.apply(this,args).then(resolve,reject):errback?errback.call(this,...args,((err,value)=>{null==err?resolve(value):reject(err);})):resolve(sync.apply(this,args));}})}(optsOrFn):function(genFn){return setFunctionMetadata(genFn.name,genFn.length,(function(...args){return genFn.apply(this,args)}))}(optsOrFn),Object.assign(genFn,function(genFn){return {sync:function(...args){return evaluateSync(genFn.apply(this,args))},async:function(...args){return new Promise(((resolve,reject)=>{evaluateAsync(genFn.apply(this,args),resolve,reject);}))},errback:function(...args){const cb=args.pop();if("function"!=typeof cb)throw makeError("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let gen;try{gen=genFn.apply(this,args);}catch(err){return void cb(err)}evaluateAsync(gen,(val=>cb(void 0,val)),(err=>cb(err)));}}}(genFn))}),{all:buildOperation({name:"all",arity:1,sync:function(args){return Array.from(args[0]).map((item=>evaluateSync(item)))},async:function(args,resolve,reject){const items=Array.from(args[0]);if(0===items.length)return void Promise.resolve().then((()=>resolve([])));let count=0;const results=items.map((()=>{}));items.forEach(((item,i)=>{evaluateAsync(item,(val=>{results[i]=val,count+=1,count===results.length&&resolve(results);}),reject);}));}}),race:buildOperation({name:"race",arity:1,sync:function(args){const items=Array.from(args[0]);if(0===items.length)throw makeError("Must race at least 1 item","GENSYNC_RACE_NONEMPTY");return evaluateSync(items[0])},async:function(args,resolve,reject){const items=Array.from(args[0]);if(0===items.length)throw makeError("Must race at least 1 item","GENSYNC_RACE_NONEMPTY");for(const item of items)evaluateAsync(item,resolve,reject);}})});},"./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/.pnpm/globals@11.12.0/node_modules/globals/globals.json");},"./node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js":module=>{module.exports=(flag,argv)=>{argv=argv||process.argv;const prefix=flag.startsWith("-")?"":1===flag.length?"-":"--",pos=argv.indexOf(prefix+flag),terminatorPos=argv.indexOf("--");return -1!==pos&&(-1===terminatorPos||pos<terminatorPos)};},"./node_modules/.pnpm/jsesc@2.5.2/node_modules/jsesc/jsesc.js":module=>{const object={},hasOwnProperty=object.hasOwnProperty,forOwn=(object,callback)=>{for(const key in object)hasOwnProperty.call(object,key)&&callback(key,object[key]);},toString=object.toString,isArray=Array.isArray,isBuffer=Buffer.isBuffer,singleEscapes={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},regexSingleEscape=/["'\\\b\f\n\r\t]/,regexDigit=/[0-9]/,regexWhitelist=/[ !#-&\(-\[\]-_a-~]/,jsesc=(argument,options)=>{const increaseIndentation=()=>{oldIndent=indent,++options.indentLevel,indent=options.indent.repeat(options.indentLevel);},defaults={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},json=options&&options.json;var destination,source;json&&(defaults.quotes="double",defaults.wrap=!0),destination=defaults,options=(source=options)?(forOwn(source,((key,value)=>{destination[key]=value;})),destination):destination,"single"!=options.quotes&&"double"!=options.quotes&&"backtick"!=options.quotes&&(options.quotes="single");const quote="double"==options.quotes?'"':"backtick"==options.quotes?"`":"'",compact=options.compact,lowercaseHex=options.lowercaseHex;let indent=options.indent.repeat(options.indentLevel),oldIndent="";const inline1=options.__inline1__,inline2=options.__inline2__,newLine=compact?"":"\n";let result,isEmpty=!0;const useBinNumbers="binary"==options.numbers,useOctNumbers="octal"==options.numbers,useDecNumbers="decimal"==options.numbers,useHexNumbers="hexadecimal"==options.numbers;if(json&&argument&&"function"==typeof argument.toJSON&&(argument=argument.toJSON()),!(value=>"string"==typeof value||"[object String]"==toString.call(value))(argument)){if((value=>"[object Map]"==toString.call(value))(argument))return 0==argument.size?"new Map()":(compact||(options.__inline1__=!0,options.__inline2__=!1),"new Map("+jsesc(Array.from(argument),options)+")");if((value=>"[object Set]"==toString.call(value))(argument))return 0==argument.size?"new Set()":"new Set("+jsesc(Array.from(argument),options)+")";if(isBuffer(argument))return 0==argument.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(argument),options)+")";if(isArray(argument))return result=[],options.wrap=!0,inline1&&(options.__inline1__=!1,options.__inline2__=!0),inline2||increaseIndentation(),((array,callback)=>{const length=array.length;let index=-1;for(;++index<length;)callback(array[index]);})(argument,(value=>{isEmpty=!1,inline2&&(options.__inline2__=!1),result.push((compact||inline2?"":indent)+jsesc(value,options));})),isEmpty?"[]":inline2?"["+result.join(", ")+"]":"["+newLine+result.join(","+newLine)+newLine+(compact?"":oldIndent)+"]";if(!(value=>"number"==typeof value||"[object Number]"==toString.call(value))(argument))return (value=>"[object Object]"==toString.call(value))(argument)?(result=[],options.wrap=!0,increaseIndentation(),forOwn(argument,((key,value)=>{isEmpty=!1,result.push((compact?"":indent)+jsesc(key,options)+":"+(compact?"":" ")+jsesc(value,options));})),isEmpty?"{}":"{"+newLine+result.join(","+newLine)+newLine+(compact?"":oldIndent)+"}"):json?JSON.stringify(argument)||"null":String(argument);if(json)return JSON.stringify(argument);if(useDecNumbers)return String(argument);if(useHexNumbers){let hexadecimal=argument.toString(16);return lowercaseHex||(hexadecimal=hexadecimal.toUpperCase()),"0x"+hexadecimal}if(useBinNumbers)return "0b"+argument.toString(2);if(useOctNumbers)return "0o"+argument.toString(8)}const string=argument;let index=-1;const length=string.length;for(result="";++index<length;){const character=string.charAt(index);if(options.es6){const first=string.charCodeAt(index);if(first>=55296&&first<=56319&&length>index+1){const second=string.charCodeAt(index+1);if(second>=56320&&second<=57343){let hexadecimal=(1024*(first-55296)+second-56320+65536).toString(16);lowercaseHex||(hexadecimal=hexadecimal.toUpperCase()),result+="\\u{"+hexadecimal+"}",++index;continue}}}if(!options.escapeEverything){if(regexWhitelist.test(character)){result+=character;continue}if('"'==character){result+=quote==character?'\\"':character;continue}if("`"==character){result+=quote==character?"\\`":character;continue}if("'"==character){result+=quote==character?"\\'":character;continue}}if("\0"==character&&!json&&!regexDigit.test(string.charAt(index+1))){result+="\\0";continue}if(regexSingleEscape.test(character)){result+=singleEscapes[character];continue}const charCode=character.charCodeAt(0);if(options.minimal&&8232!=charCode&&8233!=charCode){result+=character;continue}let hexadecimal=charCode.toString(16);lowercaseHex||(hexadecimal=hexadecimal.toUpperCase());const longhand=hexadecimal.length>2||json,escaped="\\"+(longhand?"u":"x")+("0000"+hexadecimal).slice(longhand?-4:-2);result+=escaped;}return options.wrap&&(result=quote+result+quote),"`"==quote&&(result=result.replace(/\$\{/g,"\\${")),options.isScriptContext?result.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,json?"\\u003C!--":"\\x3C!--"):result};jsesc.version="2.5.2",module.exports=jsesc;},"./node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js":module=>{var s=1e3,m=60*s,h=60*m,d=24*h,w=7*d,y=365.25*d;function plural(ms,msAbs,n,name){var isPlural=msAbs>=1.5*n;return Math.round(ms/n)+" "+name+(isPlural?"s":"")}module.exports=function(val,options){options=options||{};var type=typeof val;if("string"===type&&val.length>0)return function(str){if((str=String(str)).length>100)return;var match=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);if(!match)return;var n=parseFloat(match[1]);switch((match[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(val);if("number"===type&&isFinite(val))return options.long?function(ms){var msAbs=Math.abs(ms);if(msAbs>=d)return plural(ms,msAbs,d,"day");if(msAbs>=h)return plural(ms,msAbs,h,"hour");if(msAbs>=m)return plural(ms,msAbs,m,"minute");if(msAbs>=s)return plural(ms,msAbs,s,"second");return ms+" ms"}(val):function(ms){var msAbs=Math.abs(ms);if(msAbs>=d)return Math.round(ms/d)+"d";if(msAbs>=h)return Math.round(ms/h)+"h";if(msAbs>=m)return Math.round(ms/m)+"m";if(msAbs>=s)return Math.round(ms/s)+"s";return ms+"ms"}(val);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(val))};},"./node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js":(module,exports,__webpack_require__)=>{var buffer=__webpack_require__("buffer"),Buffer=buffer.Buffer;function copyProps(src,dst){for(var key in src)dst[key]=src[key];}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,exports),exports.Buffer=SafeBuffer),copyProps(Buffer,SafeBuffer),SafeBuffer.from=function(arg,encodingOrOffset,length){if("number"==typeof arg)throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)},SafeBuffer.alloc=function(size,fill,encoding){if("number"!=typeof size)throw new TypeError("Argument must be a number");var buf=Buffer(size);return void 0!==fill?"string"==typeof encoding?buf.fill(fill,encoding):buf.fill(fill):buf.fill(0),buf},SafeBuffer.allocUnsafe=function(size){if("number"!=typeof size)throw new TypeError("Argument must be a number");return Buffer(size)},SafeBuffer.allocUnsafeSlow=function(size){if("number"!=typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)};},"./node_modules/.pnpm/semver@6.3.0/node_modules/semver/semver.js":(module,exports)=>{var debug;exports=module.exports=SemVer,debug="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var args=Array.prototype.slice.call(arguments,0);args.unshift("SEMVER"),console.log.apply(console,args);}:function(){},exports.SEMVER_SPEC_VERSION="2.0.0";var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,re=exports.re=[],src=exports.src=[],t=exports.tokens={},R=0;function tok(n){t[n]=R++;}tok("NUMERICIDENTIFIER"),src[t.NUMERICIDENTIFIER]="0|[1-9]\\d*",tok("NUMERICIDENTIFIERLOOSE"),src[t.NUMERICIDENTIFIERLOOSE]="[0-9]+",tok("NONNUMERICIDENTIFIER"),src[t.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",tok("MAINVERSION"),src[t.MAINVERSION]="("+src[t.NUMERICIDENTIFIER]+")\\.("+src[t.NUMERICIDENTIFIER]+")\\.("+src[t.NUMERICIDENTIFIER]+")",tok("MAINVERSIONLOOSE"),src[t.MAINVERSIONLOOSE]="("+src[t.NUMERICIDENTIFIERLOOSE]+")\\.("+src[t.NUMERICIDENTIFIERLOOSE]+")\\.("+src[t.NUMERICIDENTIFIERLOOSE]+")",tok("PRERELEASEIDENTIFIER"),src[t.PRERELEASEIDENTIFIER]="(?:"+src[t.NUMERICIDENTIFIER]+"|"+src[t.NONNUMERICIDENTIFIER]+")",tok("PRERELEASEIDENTIFIERLOOSE"),src[t.PRERELEASEIDENTIFIERLOOSE]="(?:"+src[t.NUMERICIDENTIFIERLOOSE]+"|"+src[t.NONNUMERICIDENTIFIER]+")",tok("PRERELEASE"),src[t.PRERELEASE]="(?:-("+src[t.PRERELEASEIDENTIFIER]+"(?:\\."+src[t.PRERELEASEIDENTIFIER]+")*))",tok("PRERELEASELOOSE"),src[t.PRERELEASELOOSE]="(?:-?("+src[t.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+src[t.PRERELEASEIDENTIFIERLOOSE]+")*))",tok("BUILDIDENTIFIER"),src[t.BUILDIDENTIFIER]="[0-9A-Za-z-]+",tok("BUILD"),src[t.BUILD]="(?:\\+("+src[t.BUILDIDENTIFIER]+"(?:\\."+src[t.BUILDIDENTIFIER]+")*))",tok("FULL"),tok("FULLPLAIN"),src[t.FULLPLAIN]="v?"+src[t.MAINVERSION]+src[t.PRERELEASE]+"?"+src[t.BUILD]+"?",src[t.FULL]="^"+src[t.FULLPLAIN]+"$",tok("LOOSEPLAIN"),src[t.LOOSEPLAIN]="[v=\\s]*"+src[t.MAINVERSIONLOOSE]+src[t.PRERELEASELOOSE]+"?"+src[t.BUILD]+"?",tok("LOOSE"),src[t.LOOSE]="^"+src[t.LOOSEPLAIN]+"$",tok("GTLT"),src[t.GTLT]="((?:<|>)?=?)",tok("XRANGEIDENTIFIERLOOSE"),src[t.XRANGEIDENTIFIERLOOSE]=src[t.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",tok("XRANGEIDENTIFIER"),src[t.XRANGEIDENTIFIER]=src[t.NUMERICIDENTIFIER]+"|x|X|\\*",tok("XRANGEPLAIN"),src[t.XRANGEPLAIN]="[v=\\s]*("+src[t.XRANGEIDENTIFIER]+")(?:\\.("+src[t.XRANGEIDENTIFIER]+")(?:\\.("+src[t.XRANGEIDENTIFIER]+")(?:"+src[t.PRERELEASE]+")?"+src[t.BUILD]+"?)?)?",tok("XRANGEPLAINLOOSE"),src[t.XRANGEPLAINLOOSE]="[v=\\s]*("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:"+src[t.PRERELEASELOOSE]+")?"+src[t.BUILD]+"?)?)?",tok("XRANGE"),src[t.XRANGE]="^"+src[t.GTLT]+"\\s*"+src[t.XRANGEPLAIN]+"$",tok("XRANGELOOSE"),src[t.XRANGELOOSE]="^"+src[t.GTLT]+"\\s*"+src[t.XRANGEPLAINLOOSE]+"$",tok("COERCE"),src[t.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",tok("COERCERTL"),re[t.COERCERTL]=new RegExp(src[t.COERCE],"g"),tok("LONETILDE"),src[t.LONETILDE]="(?:~>?)",tok("TILDETRIM"),src[t.TILDETRIM]="(\\s*)"+src[t.LONETILDE]+"\\s+",re[t.TILDETRIM]=new RegExp(src[t.TILDETRIM],"g");tok("TILDE"),src[t.TILDE]="^"+src[t.LONETILDE]+src[t.XRANGEPLAIN]+"$",tok("TILDELOOSE"),src[t.TILDELOOSE]="^"+src[t.LONETILDE]+src[t.XRANGEPLAINLOOSE]+"$",tok("LONECARET"),src[t.LONECARET]="(?:\\^)",tok("CARETTRIM"),src[t.CARETTRIM]="(\\s*)"+src[t.LONECARET]+"\\s+",re[t.CARETTRIM]=new RegExp(src[t.CARETTRIM],"g");tok("CARET"),src[t.CARET]="^"+src[t.LONECARET]+src[t.XRANGEPLAIN]+"$",tok("CARETLOOSE"),src[t.CARETLOOSE]="^"+src[t.LONECARET]+src[t.XRANGEPLAINLOOSE]+"$",tok("COMPARATORLOOSE"),src[t.COMPARATORLOOSE]="^"+src[t.GTLT]+"\\s*("+src[t.LOOSEPLAIN]+")$|^$",tok("COMPARATOR"),src[t.COMPARATOR]="^"+src[t.GTLT]+"\\s*("+src[t.FULLPLAIN]+")$|^$",tok("COMPARATORTRIM"),src[t.COMPARATORTRIM]="(\\s*)"+src[t.GTLT]+"\\s*("+src[t.LOOSEPLAIN]+"|"+src[t.XRANGEPLAIN]+")",re[t.COMPARATORTRIM]=new RegExp(src[t.COMPARATORTRIM],"g");tok("HYPHENRANGE"),src[t.HYPHENRANGE]="^\\s*("+src[t.XRANGEPLAIN]+")\\s+-\\s+("+src[t.XRANGEPLAIN]+")\\s*$",tok("HYPHENRANGELOOSE"),src[t.HYPHENRANGELOOSE]="^\\s*("+src[t.XRANGEPLAINLOOSE]+")\\s+-\\s+("+src[t.XRANGEPLAINLOOSE]+")\\s*$",tok("STAR"),src[t.STAR]="(<|>)?=?\\s*\\*";for(var i=0;i<R;i++)debug(i,src[i]),re[i]||(re[i]=new RegExp(src[i]));function parse(version,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),version instanceof SemVer)return version;if("string"!=typeof version)return null;if(version.length>256)return null;if(!(options.loose?re[t.LOOSE]:re[t.FULL]).test(version))return null;try{return new SemVer(version,options)}catch(er){return null}}function SemVer(version,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),version instanceof SemVer){if(version.loose===options.loose)return version;version=version.version;}else if("string"!=typeof version)throw new TypeError("Invalid Version: "+version);if(version.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof SemVer))return new SemVer(version,options);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose;var m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError("Invalid Version: "+version);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((function(id){if(/^[0-9]+$/.test(id)){var num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id})):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format();}exports.parse=parse,exports.valid=function(version,options){var v=parse(version,options);return v?v.version:null},exports.clean=function(version,options){var s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null},exports.SemVer=SemVer,SemVer.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},SemVer.prototype.toString=function(){return this.version},SemVer.prototype.compare=function(other){return debug("SemVer.compare",this.version,this.options,other),other instanceof SemVer||(other=new SemVer(other,this.options)),this.compareMain(other)||this.comparePre(other)},SemVer.prototype.compareMain=function(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)},SemVer.prototype.comparePre=function(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return -1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;var i=0;do{var a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return -1;if(a!==b)return compareIdentifiers(a,b)}while(++i)},SemVer.prototype.compareBuild=function(other){other instanceof SemVer||(other=new SemVer(other,this.options));var i=0;do{var a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return -1;if(a!==b)return compareIdentifiers(a,b)}while(++i)},SemVer.prototype.inc=function(release,identifier){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier),this.inc("pre",identifier);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",identifier),this.inc("pre",identifier);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else {for(var i=this.prerelease.length;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0);}identifier&&(this.prerelease[0]===identifier?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error("invalid increment argument: "+release)}return this.format(),this.raw=this.version,this},exports.inc=function(version,release,loose,identifier){"string"==typeof loose&&(identifier=loose,loose=void 0);try{return new SemVer(version,loose).inc(release,identifier).version}catch(er){return null}},exports.diff=function(version1,version2){if(eq(version1,version2))return null;var v1=parse(version1),v2=parse(version2),prefix="";if(v1.prerelease.length||v2.prerelease.length){prefix="pre";var defaultResult="prerelease";}for(var key in v1)if(("major"===key||"minor"===key||"patch"===key)&&v1[key]!==v2[key])return prefix+key;return defaultResult},exports.compareIdentifiers=compareIdentifiers;var numeric=/^[0-9]+$/;function compareIdentifiers(a,b){var anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1}function compare(a,b,loose){return new SemVer(a,loose).compare(new SemVer(b,loose))}function gt(a,b,loose){return compare(a,b,loose)>0}function lt(a,b,loose){return compare(a,b,loose)<0}function eq(a,b,loose){return 0===compare(a,b,loose)}function neq(a,b,loose){return 0!==compare(a,b,loose)}function gte(a,b,loose){return compare(a,b,loose)>=0}function lte(a,b,loose){return compare(a,b,loose)<=0}function cmp(a,op,b,loose){switch(op){case"===":return "object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return "object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError("Invalid operator: "+op)}}function Comparator(comp,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value;}if(!(this instanceof Comparator))return new Comparator(comp,options);debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this);}exports.rcompareIdentifiers=function(a,b){return compareIdentifiers(b,a)},exports.major=function(a,loose){return new SemVer(a,loose).major},exports.minor=function(a,loose){return new SemVer(a,loose).minor},exports.patch=function(a,loose){return new SemVer(a,loose).patch},exports.compare=compare,exports.compareLoose=function(a,b){return compare(a,b,!0)},exports.compareBuild=function(a,b,loose){var versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)},exports.rcompare=function(a,b,loose){return compare(b,a,loose)},exports.sort=function(list,loose){return list.sort((function(a,b){return exports.compareBuild(a,b,loose)}))},exports.rsort=function(list,loose){return list.sort((function(a,b){return exports.compareBuild(b,a,loose)}))},exports.gt=gt,exports.lt=lt,exports.eq=eq,exports.neq=neq,exports.gte=gte,exports.lte=lte,exports.cmp=cmp,exports.Comparator=Comparator;var ANY={};function Range(range,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return new Range(range.value,options);if(!(this instanceof Range))return new Range(range,options);if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split(/\s*\|\|\s*/).map((function(range){return this.parseRange(range.trim())}),this).filter((function(c){return c.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+range);this.format();}function isSatisfiable(comparators,options){for(var result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();result&&remainingComparators.length;)result=remainingComparators.every((function(otherComparator){return testComparator.intersects(otherComparator,options)})),testComparator=remainingComparators.pop();return result}function isX(id){return !id||"x"===id.toLowerCase()||"*"===id}function hyphenReplace($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb){return ((from=isX(fM)?"":isX(fm)?">="+fM+".0.0":isX(fp)?">="+fM+"."+fm+".0":">="+from)+" "+(to=isX(tM)?"":isX(tm)?"<"+(+tM+1)+".0.0":isX(tp)?"<"+tM+"."+(+tm+1)+".0":tpr?"<="+tM+"."+tm+"."+tp+"-"+tpr:"<="+to)).trim()}function testSet(set,version,options){for(var i=0;i<set.length;i++)if(!set[i].test(version))return !1;if(version.prerelease.length&&!options.includePrerelease){for(i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==ANY&&set[i].semver.prerelease.length>0){var allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return !0}return !1}return !0}function satisfies(version,range,options){try{range=new Range(range,options);}catch(er){return !1}return range.test(version)}function outside(version,range,hilo,options){var gtfn,ltefn,ltfn,comp,ecomp;switch(version=new SemVer(version,options),range=new Range(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return !1;for(var i=0;i<range.set.length;++i){var comparators=range.set[i],high=null,low=null;if(comparators.forEach((function(comparator){comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator);})),high.operator===comp||high.operator===ecomp)return !1;if((!low.operator||low.operator===comp)&&ltefn(version,low.semver))return !1;if(low.operator===ecomp&&ltfn(version,low.semver))return !1}return !0}Comparator.prototype.parse=function(comp){var r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError("Invalid comparator: "+comp);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY;},Comparator.prototype.toString=function(){return this.value},Comparator.prototype.test=function(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return !0;if("string"==typeof version)try{version=new SemVer(version,this.options);}catch(er){return !1}return cmp(version,this.operator,this.semver,this.options)},Comparator.prototype.intersects=function(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");var rangeTmp;if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),""===this.operator)return ""===this.value||(rangeTmp=new Range(comp.value,options),satisfies(this.value,rangeTmp,options));if(""===comp.operator)return ""===comp.value||(rangeTmp=new Range(this.value,options),satisfies(comp.semver,rangeTmp,options));var sameDirectionIncreasing=!(">="!==this.operator&&">"!==this.operator||">="!==comp.operator&&">"!==comp.operator),sameDirectionDecreasing=!("<="!==this.operator&&"<"!==this.operator||"<="!==comp.operator&&"<"!==comp.operator),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=!(">="!==this.operator&&"<="!==this.operator||">="!==comp.operator&&"<="!==comp.operator),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(">="===this.operator||">"===this.operator)&&("<="===comp.operator||"<"===comp.operator),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&("<="===this.operator||"<"===this.operator)&&(">="===comp.operator||">"===comp.operator);return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan},exports.Range=Range,Range.prototype.format=function(){return this.range=this.set.map((function(comps){return comps.join(" ").trim()})).join("||").trim(),this.range},Range.prototype.toString=function(){return this.range},Range.prototype.parseRange=function(range){var loose=this.options.loose;range=range.trim();var hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],"$1$2$3"),debug("comparator trim",range,re[t.COMPARATORTRIM]),range=(range=(range=range.replace(re[t.TILDETRIM],"$1~")).replace(re[t.CARETTRIM],"$1^")).split(/\s+/).join(" ");var compRe=loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],set=range.split(" ").map((function(comp){return function(comp,options){return debug("comp",comp,options),comp=function(comp,options){return comp.trim().split(/\s+/).map((function(comp){return function(comp,options){debug("caret",comp,options);var r=options.loose?re[t.CARETLOOSE]:re[t.CARET];return comp.replace(r,(function(_,M,m,p,pr){var ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=">="+M+".0.0 <"+(+M+1)+".0.0":isX(p)?ret="0"===M?">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0":">="+M+"."+m+".0 <"+(+M+1)+".0.0":pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+m+"."+(+p+1):">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0":">="+M+"."+m+"."+p+"-"+pr+" <"+(+M+1)+".0.0"):(debug("no pr"),ret="0"===M?"0"===m?">="+M+"."+m+"."+p+" <"+M+"."+m+"."+(+p+1):">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0":">="+M+"."+m+"."+p+" <"+(+M+1)+".0.0"),debug("caret return",ret),ret}))}(comp,options)})).join(" ")}(comp,options),debug("caret",comp),comp=function(comp,options){return comp.trim().split(/\s+/).map((function(comp){return function(comp,options){var r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(function(_,M,m,p,pr){var ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=">="+M+".0.0 <"+(+M+1)+".0.0":isX(p)?ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0":pr?(debug("replaceTilde pr",pr),ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0"):ret=">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0",debug("tilde return",ret),ret}))}(comp,options)})).join(" ")}(comp,options),debug("tildes",comp),comp=function(comp,options){return debug("replaceXRanges",comp,options),comp.split(/\s+/).map((function(comp){return function(comp,options){comp=comp.trim();var r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(function(ret,gtlt,M,m,p,pr){debug("xRange",comp,ret,gtlt,M,m,p,pr);var xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return "="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),ret=gtlt+M+"."+m+"."+p+pr):xm?ret=">="+M+".0.0"+pr+" <"+(+M+1)+".0.0"+pr:xp&&(ret=">="+M+"."+m+".0"+pr+" <"+M+"."+(+m+1)+".0"+pr),debug("xRange return",ret),ret}))}(comp,options)})).join(" ")}(comp,options),debug("xrange",comp),comp=function(comp,options){return debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")}(comp,options),debug("stars",comp),comp}(comp,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(set=set.filter((function(comp){return !!comp.match(compRe)}))),set=set.map((function(comp){return new Comparator(comp,this.options)}),this)},Range.prototype.intersects=function(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((function(thisComparators){return isSatisfiable(thisComparators,options)&&range.set.some((function(rangeComparators){return isSatisfiable(rangeComparators,options)&&thisComparators.every((function(thisComparator){return rangeComparators.every((function(rangeComparator){return thisComparator.intersects(rangeComparator,options)}))}))}))}))},exports.toComparators=function(range,options){return new Range(range,options).set.map((function(comp){return comp.map((function(c){return c.value})).join(" ").trim().split(" ")}))},Range.prototype.test=function(version){if(!version)return !1;if("string"==typeof version)try{version=new SemVer(version,this.options);}catch(er){return !1}for(var i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return !0;return !1},exports.satisfies=satisfies,exports.maxSatisfying=function(versions,range,options){var max=null,maxSV=null;try{var rangeObj=new Range(range,options);}catch(er){return null}return versions.forEach((function(v){rangeObj.test(v)&&(max&&-1!==maxSV.compare(v)||(maxSV=new SemVer(max=v,options)));})),max},exports.minSatisfying=function(versions,range,options){var min=null,minSV=null;try{var rangeObj=new Range(range,options);}catch(er){return null}return versions.forEach((function(v){rangeObj.test(v)&&(min&&1!==minSV.compare(v)||(minSV=new SemVer(min=v,options)));})),min},exports.minVersion=function(range,loose){range=new Range(range,loose);var minver=new SemVer("0.0.0");if(range.test(minver))return minver;if(minver=new SemVer("0.0.0-0"),range.test(minver))return minver;minver=null;for(var i=0;i<range.set.length;++i){range.set[i].forEach((function(comparator){var compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":minver&&!gt(minver,compver)||(minver=compver);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+comparator.operator)}}));}if(minver&&range.test(minver))return minver;return null},exports.validRange=function(range,options){try{return new Range(range,options).range||"*"}catch(er){return null}},exports.ltr=function(version,range,options){return outside(version,range,"<",options)},exports.gtr=function(version,range,options){return outside(version,range,">",options)},exports.outside=outside,exports.prerelease=function(version,options){var parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null},exports.intersects=function(r1,r2,options){return r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2)},exports.coerce=function(version,options){if(version instanceof SemVer)return version;"number"==typeof version&&(version=String(version));if("string"!=typeof version)return null;var match=null;if((options=options||{}).rtl){for(var next;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)match&&next.index+next[0].length===match.index+match[0].length||(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1;}else match=version.match(re[t.COERCE]);if(null===match)return null;return parse(match[2]+"."+(match[3]||"0")+"."+(match[4]||"0"),options)};},"./node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{const os=__webpack_require__("os"),hasFlag=__webpack_require__("./node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"),env=process.env;let forceColor;function getSupportLevel(stream){const level=function(stream){if(!1===forceColor)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(stream&&!stream.isTTY&&!0!==forceColor)return 0;const min=forceColor?1:0;if("win32"===process.platform){const osRelease=os.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(osRelease[0])>=10&&Number(osRelease[2])>=10586?Number(osRelease[2])>=14931?3:2:1}if("CI"in env)return ["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((sign=>sign in env))||"codeship"===env.CI_NAME?1:min;if("TEAMCITY_VERSION"in env)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;if("truecolor"===env.COLORTERM)return 3;if("TERM_PROGRAM"in env){const version=parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":return version>=3?3:2;case"Apple_Terminal":return 2}}return /-256(color)?$/i.test(env.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)||"COLORTERM"in env?1:(env.TERM,min)}(stream);return function(level){return 0!==level&&{level,hasBasic:!0,has256:level>=2,has16m:level>=3}}(level)}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")?forceColor=!1:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(forceColor=!0),"FORCE_COLOR"in env&&(forceColor=0===env.FORCE_COLOR.length||0!==parseInt(env.FORCE_COLOR,10)),module.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)};},"./node_modules/.pnpm/to-fast-properties@2.0.0/node_modules/to-fast-properties/index.js":module=>{let fastProto=null;function FastObject(o){if(null!==fastProto&&(fastProto.property,1)){const result=fastProto;return fastProto=FastObject.prototype=null,result}return fastProto=FastObject.prototype=null==o?Object.create(null):o,new FastObject}FastObject(),module.exports=function(o){return FastObject(o)};},"./stubs/babel_codeframe.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function codeFrameColumns(){return ""}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{codeFrameColumns:()=>codeFrameColumns});},"./stubs/helper_compilation_targets.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function getTargets(){return {}}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>getTargets});},assert:module=>{module.exports=require$$9;},buffer:module=>{module.exports=require$$1$1;},fs:module=>{module.exports=require$$1;},module:module=>{module.exports=require$$2;},os:module=>{module.exports=require$$6;},path:module=>{module.exports=require$$3;},tty:module=>{module.exports=require$$6$1;},url:module=>{module.exports=require$$8;},util:module=>{module.exports=require$$4;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertSimpleType=assertSimpleType,exports.makeStrongCache=makeStrongCache,exports.makeStrongCacheSync=function(handler){return synchronize(makeStrongCache(handler))},exports.makeWeakCache=makeWeakCache,exports.makeWeakCacheSync=function(handler){return synchronize(makeWeakCache(handler))};var _async=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/async.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/util.js");const synchronize=gen=>_gensync()(gen).sync;function*genTrue(){return !0}function makeWeakCache(handler){return makeCachedFunction(WeakMap,handler)}function makeStrongCache(handler){return makeCachedFunction(Map,handler)}function makeCachedFunction(CallCache,handler){const callCacheSync=new CallCache,callCacheAsync=new CallCache,futureCache=new CallCache;return function*(arg,data){const asyncContext=yield*(0, _async.isAsync)(),callCache=asyncContext?callCacheAsync:callCacheSync,cached=yield*function*(asyncContext,callCache,futureCache,arg,data){const cached=yield*getCachedValue(callCache,arg,data);if(cached.valid)return cached;if(asyncContext){const cached=yield*getCachedValue(futureCache,arg,data);if(cached.valid){return {valid:!0,value:yield*(0, _async.waitFor)(cached.value.promise)}}}return {valid:!1,value:null}}(asyncContext,callCache,futureCache,arg,data);if(cached.valid)return cached.value;const cache=new CacheConfigurator(data),handlerResult=handler(arg,cache);let finishLock,value;return value=(0, _util.isIterableIterator)(handlerResult)?yield*(0, _async.onFirstPause)(handlerResult,(()=>{finishLock=function(config,futureCache,arg){const finishLock=new Lock;return updateFunctionCache(futureCache,config,arg,finishLock),finishLock}(cache,futureCache,arg);})):handlerResult,updateFunctionCache(callCache,cache,arg,value),finishLock&&(futureCache.delete(arg),finishLock.release(value)),value}}function*getCachedValue(cache,arg,data){const cachedValue=cache.get(arg);if(cachedValue)for(const{value,valid}of cachedValue)if(yield*valid(data))return {valid:!0,value};return {valid:!1,value:null}}function updateFunctionCache(cache,config,arg,value){config.configured()||config.forever();let cachedValue=cache.get(arg);switch(config.deactivate(),config.mode()){case"forever":cachedValue=[{value,valid:genTrue}],cache.set(arg,cachedValue);break;case"invalidate":cachedValue=[{value,valid:config.validator()}],cache.set(arg,cachedValue);break;case"valid":cachedValue?cachedValue.push({value,valid:config.validator()}):(cachedValue=[{value,valid:config.validator()}],cache.set(arg,cachedValue));}}class CacheConfigurator{constructor(data){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=data;}simple(){return function(cache){function cacheFn(val){if("boolean"!=typeof val)return cache.using((()=>assertSimpleType(val())));val?cache.forever():cache.never();}return cacheFn.forever=()=>cache.forever(),cacheFn.never=()=>cache.never(),cacheFn.using=cb=>cache.using((()=>assertSimpleType(cb()))),cacheFn.invalidate=cb=>cache.invalidate((()=>assertSimpleType(cb()))),cacheFn}(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0;}never(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0;}using(handler){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;const key=handler(this._data),fn=(0, _async.maybeAsync)(handler,"You appear to be using an async cache handler, but Babel has been called synchronously");return (0, _async.isThenable)(key)?key.then((key=>(this._pairs.push([key,fn]),key))):(this._pairs.push([key,fn]),key)}invalidate(handler){return this._invalidate=!0,this.using(handler)}validator(){const pairs=this._pairs;return function*(data){for(const[key,fn]of pairs)if(key!==(yield*fn(data)))return !1;return !0}}deactivate(){this._active=!1;}configured(){return this._configured}}function assertSimpleType(value){if((0, _async.isThenable)(value))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(null!=value&&"string"!=typeof value&&"boolean"!=typeof value&&"number"!=typeof value)throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return value}class Lock{constructor(){this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise((resolve=>{this._resolve=resolve;}));}release(value){this.released=!0,this._resolve(value);}}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/config-chain.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _debug(){const data=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return _debug=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildPresetChain=function*(arg,context){const chain=yield*buildPresetChainWalker(arg,context);return chain?{plugins:dedupDescriptors(chain.plugins),presets:dedupDescriptors(chain.presets),options:chain.options.map((o=>normalizeOptions(o))),files:new Set}:null},exports.buildPresetChainWalker=void 0,exports.buildRootChain=function*(opts,context){let configReport,babelRcReport;const programmaticLogger=new _printer.ConfigPrinter,programmaticChain=yield*loadProgrammaticChain({options:opts,dirname:context.cwd},context,void 0,programmaticLogger);if(!programmaticChain)return null;const programmaticReport=yield*programmaticLogger.output();let configFile;"string"==typeof opts.configFile?configFile=yield*(0, _files.loadConfig)(opts.configFile,context.cwd,context.envName,context.caller):!1!==opts.configFile&&(configFile=yield*(0, _files.findRootConfig)(context.root,context.envName,context.caller));let{babelrc,babelrcRoots}=opts,babelrcRootsDirectory=context.cwd;const configFileChain=emptyChain(),configFileLogger=new _printer.ConfigPrinter;if(configFile){const validatedFile=validateConfigFile(configFile),result=yield*loadFileChain(validatedFile,context,void 0,configFileLogger);if(!result)return null;configReport=yield*configFileLogger.output(),void 0===babelrc&&(babelrc=validatedFile.options.babelrc),void 0===babelrcRoots&&(babelrcRootsDirectory=validatedFile.dirname,babelrcRoots=validatedFile.options.babelrcRoots),mergeChain(configFileChain,result);}let ignoreFile,babelrcFile,isIgnored=!1;const fileChain=emptyChain();if((!0===babelrc||void 0===babelrc)&&"string"==typeof context.filename){const pkgData=yield*(0, _files.findPackageData)(context.filename);if(pkgData&&function(context,pkgData,babelrcRoots,babelrcRootsDirectory){if("boolean"==typeof babelrcRoots)return babelrcRoots;const absoluteRoot=context.root;if(void 0===babelrcRoots)return -1!==pkgData.directories.indexOf(absoluteRoot);let babelrcPatterns=babelrcRoots;Array.isArray(babelrcPatterns)||(babelrcPatterns=[babelrcPatterns]);if(babelrcPatterns=babelrcPatterns.map((pat=>"string"==typeof pat?_path().resolve(babelrcRootsDirectory,pat):pat)),1===babelrcPatterns.length&&babelrcPatterns[0]===absoluteRoot)return -1!==pkgData.directories.indexOf(absoluteRoot);return babelrcPatterns.some((pat=>("string"==typeof pat&&(pat=(0, _patternToRegex.default)(pat,babelrcRootsDirectory)),pkgData.directories.some((directory=>matchPattern(pat,babelrcRootsDirectory,directory,context))))))}(context,pkgData,babelrcRoots,babelrcRootsDirectory)){if(({ignore:ignoreFile,config:babelrcFile}=yield*(0, _files.findRelativeConfig)(pkgData,context.envName,context.caller)),ignoreFile&&fileChain.files.add(ignoreFile.filepath),ignoreFile&&shouldIgnore(context,ignoreFile.ignore,null,ignoreFile.dirname)&&(isIgnored=!0),babelrcFile&&!isIgnored){const validatedFile=validateBabelrcFile(babelrcFile),babelrcLogger=new _printer.ConfigPrinter,result=yield*loadFileChain(validatedFile,context,void 0,babelrcLogger);result?(babelRcReport=yield*babelrcLogger.output(),mergeChain(fileChain,result)):isIgnored=!0;}babelrcFile&&isIgnored&&fileChain.files.add(babelrcFile.filepath);}}context.showConfig&&console.log(`Babel configs on "${context.filename}" (ascending priority):\n`+[configReport,babelRcReport,programmaticReport].filter((x=>!!x)).join("\n\n")+"\n-----End Babel configs-----");const chain=mergeChain(mergeChain(mergeChain(emptyChain(),configFileChain),fileChain),programmaticChain);return {plugins:isIgnored?[]:dedupDescriptors(chain.plugins),presets:isIgnored?[]:dedupDescriptors(chain.presets),options:isIgnored?[]:chain.options.map((o=>normalizeOptions(o))),fileHandling:isIgnored?"ignored":"transpile",ignore:ignoreFile||void 0,babelrc:babelrcFile||void 0,config:configFile||void 0,files:chain.files}};var _options=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/options.js"),_patternToRegex=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/pattern-to-regex.js"),_printer=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/printer.js"),_rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),_configError=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js"),_files=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/index.js"),_caching=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js"),_configDescriptors=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/config-descriptors.js");const debug=_debug()("babel:config:config-chain");const buildPresetChainWalker=makeChainWalker({root:preset=>loadPresetDescriptors(preset),env:(preset,envName)=>loadPresetEnvDescriptors(preset)(envName),overrides:(preset,index)=>loadPresetOverridesDescriptors(preset)(index),overridesEnv:(preset,index,envName)=>loadPresetOverridesEnvDescriptors(preset)(index)(envName),createLogger:()=>()=>{}});exports.buildPresetChainWalker=buildPresetChainWalker;const loadPresetDescriptors=(0, _caching.makeWeakCacheSync)((preset=>buildRootDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors))),loadPresetEnvDescriptors=(0, _caching.makeWeakCacheSync)((preset=>(0, _caching.makeStrongCacheSync)((envName=>buildEnvDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors,envName))))),loadPresetOverridesDescriptors=(0, _caching.makeWeakCacheSync)((preset=>(0, _caching.makeStrongCacheSync)((index=>buildOverrideDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors,index))))),loadPresetOverridesEnvDescriptors=(0, _caching.makeWeakCacheSync)((preset=>(0, _caching.makeStrongCacheSync)((index=>(0, _caching.makeStrongCacheSync)((envName=>buildOverrideEnvDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors,index,envName)))))));const validateConfigFile=(0, _caching.makeWeakCacheSync)((file=>({filepath:file.filepath,dirname:file.dirname,options:(0, _options.validate)("configfile",file.options,file.filepath)}))),validateBabelrcFile=(0, _caching.makeWeakCacheSync)((file=>({filepath:file.filepath,dirname:file.dirname,options:(0, _options.validate)("babelrcfile",file.options,file.filepath)}))),validateExtendFile=(0, _caching.makeWeakCacheSync)((file=>({filepath:file.filepath,dirname:file.dirname,options:(0, _options.validate)("extendsfile",file.options,file.filepath)}))),loadProgrammaticChain=makeChainWalker({root:input=>buildRootDescriptors(input,"base",_configDescriptors.createCachedDescriptors),env:(input,envName)=>buildEnvDescriptors(input,"base",_configDescriptors.createCachedDescriptors,envName),overrides:(input,index)=>buildOverrideDescriptors(input,"base",_configDescriptors.createCachedDescriptors,index),overridesEnv:(input,index,envName)=>buildOverrideEnvDescriptors(input,"base",_configDescriptors.createCachedDescriptors,index,envName),createLogger:(input,context,baseLogger)=>function(_,context,baseLogger){var _context$caller;if(!baseLogger)return ()=>{};return baseLogger.configure(context.showConfig,_printer.ChainFormatter.Programmatic,{callerName:null==(_context$caller=context.caller)?void 0:_context$caller.name})}(0,context,baseLogger)}),loadFileChainWalker=makeChainWalker({root:file=>loadFileDescriptors(file),env:(file,envName)=>loadFileEnvDescriptors(file)(envName),overrides:(file,index)=>loadFileOverridesDescriptors(file)(index),overridesEnv:(file,index,envName)=>loadFileOverridesEnvDescriptors(file)(index)(envName),createLogger:(file,context,baseLogger)=>function(filepath,context,baseLogger){if(!baseLogger)return ()=>{};return baseLogger.configure(context.showConfig,_printer.ChainFormatter.Config,{filepath})}(file.filepath,context,baseLogger)});function*loadFileChain(input,context,files,baseLogger){const chain=yield*loadFileChainWalker(input,context,files,baseLogger);return chain&&chain.files.add(input.filepath),chain}const loadFileDescriptors=(0, _caching.makeWeakCacheSync)((file=>buildRootDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors))),loadFileEnvDescriptors=(0, _caching.makeWeakCacheSync)((file=>(0, _caching.makeStrongCacheSync)((envName=>buildEnvDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors,envName))))),loadFileOverridesDescriptors=(0, _caching.makeWeakCacheSync)((file=>(0, _caching.makeStrongCacheSync)((index=>buildOverrideDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors,index))))),loadFileOverridesEnvDescriptors=(0, _caching.makeWeakCacheSync)((file=>(0, _caching.makeStrongCacheSync)((index=>(0, _caching.makeStrongCacheSync)((envName=>buildOverrideEnvDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors,index,envName)))))));function buildRootDescriptors({dirname,options},alias,descriptors){return descriptors(dirname,options,alias)}function buildEnvDescriptors({dirname,options},alias,descriptors,envName){const opts=options.env&&options.env[envName];return opts?descriptors(dirname,opts,`${alias}.env["${envName}"]`):null}function buildOverrideDescriptors({dirname,options},alias,descriptors,index){const opts=options.overrides&&options.overrides[index];if(!opts)throw new Error("Assertion failure - missing override");return descriptors(dirname,opts,`${alias}.overrides[${index}]`)}function buildOverrideEnvDescriptors({dirname,options},alias,descriptors,index,envName){const override=options.overrides&&options.overrides[index];if(!override)throw new Error("Assertion failure - missing override");const opts=override.env&&override.env[envName];return opts?descriptors(dirname,opts,`${alias}.overrides[${index}].env["${envName}"]`):null}function makeChainWalker({root,env,overrides,overridesEnv,createLogger}){return function*(input,context,files=new Set,baseLogger){const{dirname}=input,flattenedConfigs=[],rootOpts=root(input);if(configIsApplicable(rootOpts,dirname,context,input.filepath)){flattenedConfigs.push({config:rootOpts,envName:void 0,index:void 0});const envOpts=env(input,context.envName);envOpts&&configIsApplicable(envOpts,dirname,context,input.filepath)&&flattenedConfigs.push({config:envOpts,envName:context.envName,index:void 0}),(rootOpts.options.overrides||[]).forEach(((_,index)=>{const overrideOps=overrides(input,index);if(configIsApplicable(overrideOps,dirname,context,input.filepath)){flattenedConfigs.push({config:overrideOps,index,envName:void 0});const overrideEnvOpts=overridesEnv(input,index,context.envName);overrideEnvOpts&&configIsApplicable(overrideEnvOpts,dirname,context,input.filepath)&&flattenedConfigs.push({config:overrideEnvOpts,index,envName:context.envName});}}));}if(flattenedConfigs.some((({config:{options:{ignore,only}}})=>shouldIgnore(context,ignore,only,dirname))))return null;const chain=emptyChain(),logger=createLogger(input,context,baseLogger);for(const{config,index,envName}of flattenedConfigs){if(!(yield*mergeExtendsChain(chain,config.options,dirname,context,files,baseLogger)))return null;logger(config,index,envName),yield*mergeChainOpts(chain,config);}return chain}}function*mergeExtendsChain(chain,opts,dirname,context,files,baseLogger){if(void 0===opts.extends)return !0;const file=yield*(0, _files.loadConfig)(opts.extends,dirname,context.envName,context.caller);if(files.has(file))throw new Error(`Configuration cycle detected loading ${file.filepath}.\nFile already loaded following the config chain:\n`+Array.from(files,(file=>` - ${file.filepath}`)).join("\n"));files.add(file);const fileChain=yield*loadFileChain(validateExtendFile(file),context,files,baseLogger);return files.delete(file),!!fileChain&&(mergeChain(chain,fileChain),!0)}function mergeChain(target,source){target.options.push(...source.options),target.plugins.push(...source.plugins),target.presets.push(...source.presets);for(const file of source.files)target.files.add(file);return target}function*mergeChainOpts(target,{options,plugins,presets}){return target.options.push(options),target.plugins.push(...yield*plugins()),target.presets.push(...yield*presets()),target}function emptyChain(){return {options:[],presets:[],plugins:[],files:new Set}}function normalizeOptions(opts){const options=Object.assign({},opts);return delete options.extends,delete options.env,delete options.overrides,delete options.plugins,delete options.presets,delete options.passPerPreset,delete options.ignore,delete options.only,delete options.test,delete options.include,delete options.exclude,Object.prototype.hasOwnProperty.call(options,"sourceMap")&&(options.sourceMaps=options.sourceMap,delete options.sourceMap),options}function dedupDescriptors(items){const map=new Map,descriptors=[];for(const item of items)if("function"==typeof item.value){const fnKey=item.value;let nameMap=map.get(fnKey);nameMap||(nameMap=new Map,map.set(fnKey,nameMap));let desc=nameMap.get(item.name);desc?desc.value=item:(desc={value:item},descriptors.push(desc),item.ownPass||nameMap.set(item.name,desc));}else descriptors.push({value:item});return descriptors.reduce(((acc,desc)=>(acc.push(desc.value),acc)),[])}function configIsApplicable({options},dirname,context,configName){return (void 0===options.test||configFieldIsApplicable(context,options.test,dirname,configName))&&(void 0===options.include||configFieldIsApplicable(context,options.include,dirname,configName))&&(void 0===options.exclude||!configFieldIsApplicable(context,options.exclude,dirname,configName))}function configFieldIsApplicable(context,test,dirname,configName){return matchesPatterns(context,Array.isArray(test)?test:[test],dirname,configName)}function ignoreListReplacer(_key,value){return value instanceof RegExp?String(value):value}function shouldIgnore(context,ignore,only,dirname){if(ignore&&matchesPatterns(context,ignore,dirname)){var _context$filename;const message=`No config is applied to "${null!=(_context$filename=context.filename)?_context$filename:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore,ignoreListReplacer)}\` from "${dirname}"`;return debug(message),context.showConfig&&console.log(message),!0}if(only&&!matchesPatterns(context,only,dirname)){var _context$filename2;const message=`No config is applied to "${null!=(_context$filename2=context.filename)?_context$filename2:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only,ignoreListReplacer)}\` from "${dirname}"`;return debug(message),context.showConfig&&console.log(message),!0}return !1}function matchesPatterns(context,patterns,dirname,configName){return patterns.some((pattern=>matchPattern(pattern,dirname,context.filename,context,configName)))}function matchPattern(pattern,dirname,pathToTest,context,configName){if("function"==typeof pattern)return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest,{dirname,envName:context.envName,caller:context.caller});if("string"!=typeof pathToTest)throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",configName);return "string"==typeof pattern&&(pattern=(0, _patternToRegex.default)(pattern,dirname)),pattern.test(pathToTest)}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/config-descriptors.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createCachedDescriptors=function(dirname,options,alias){const{plugins,presets,passPerPreset}=options;return {options:optionsWithResolvedBrowserslistConfigFile(options,dirname),plugins:plugins?()=>createCachedPluginDescriptors(plugins,dirname)(alias):()=>handlerOf([]),presets:presets?()=>createCachedPresetDescriptors(presets,dirname)(alias)(!!passPerPreset):()=>handlerOf([])}},exports.createDescriptor=createDescriptor,exports.createUncachedDescriptors=function(dirname,options,alias){return {options:optionsWithResolvedBrowserslistConfigFile(options,dirname),plugins:(0, _functional.once)((()=>createPluginDescriptors(options.plugins||[],dirname,alias))),presets:(0, _functional.once)((()=>createPresetDescriptors(options.presets||[],dirname,alias,!!options.passPerPreset)))}};var _functional=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/functional.js"),_files=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/index.js"),_item=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/item.js"),_caching=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js"),_resolveTargets=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/resolve-targets.js");function*handlerOf(value){return value}function optionsWithResolvedBrowserslistConfigFile(options,dirname){return "string"==typeof options.browserslistConfigFile&&(options.browserslistConfigFile=(0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,dirname)),options}const PRESET_DESCRIPTOR_CACHE=new WeakMap,createCachedPresetDescriptors=(0, _caching.makeWeakCacheSync)(((items,cache)=>{const dirname=cache.using((dir=>dir));return (0, _caching.makeStrongCacheSync)((alias=>(0, _caching.makeStrongCache)((function*(passPerPreset){return (yield*createPresetDescriptors(items,dirname,alias,passPerPreset)).map((desc=>loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE,desc)))}))))})),PLUGIN_DESCRIPTOR_CACHE=new WeakMap,createCachedPluginDescriptors=(0, _caching.makeWeakCacheSync)(((items,cache)=>{const dirname=cache.using((dir=>dir));return (0, _caching.makeStrongCache)((function*(alias){return (yield*createPluginDescriptors(items,dirname,alias)).map((desc=>loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE,desc)))}))})),DEFAULT_OPTIONS={};function loadCachedDescriptor(cache,desc){const{value,options=DEFAULT_OPTIONS}=desc;if(!1===options)return desc;let cacheByOptions=cache.get(value);cacheByOptions||(cacheByOptions=new WeakMap,cache.set(value,cacheByOptions));let possibilities=cacheByOptions.get(options);if(possibilities||(possibilities=[],cacheByOptions.set(options,possibilities)),-1===possibilities.indexOf(desc)){const matches=possibilities.filter((possibility=>{return b=desc,(a=possibility).name===b.name&&a.value===b.value&&a.options===b.options&&a.dirname===b.dirname&&a.alias===b.alias&&a.ownPass===b.ownPass&&(a.file&&a.file.request)===(b.file&&b.file.request)&&(a.file&&a.file.resolved)===(b.file&&b.file.resolved);var a,b;}));if(matches.length>0)return matches[0];possibilities.push(desc);}return desc}function*createPresetDescriptors(items,dirname,alias,passPerPreset){return yield*createDescriptors("preset",items,dirname,alias,passPerPreset)}function*createPluginDescriptors(items,dirname,alias){return yield*createDescriptors("plugin",items,dirname,alias)}function*createDescriptors(type,items,dirname,alias,ownPass){const descriptors=yield*_gensync().all(items.map(((item,index)=>createDescriptor(item,dirname,{type,alias:`${alias}$${index}`,ownPass:!!ownPass}))));return function(items){const map=new Map;for(const item of items){if("function"!=typeof item.value)continue;let nameMap=map.get(item.value);if(nameMap||(nameMap=new Set,map.set(item.value,nameMap)),nameMap.has(item.name)){const conflicts=items.filter((i=>i.value===item.value));throw new Error(["Duplicate plugin/preset detected.","If you'd like to use two separate instances of a plugin,","they need separate names, e.g.",""," plugins: ["," ['some-plugin', {}],"," ['some-plugin', {}, 'some unique name'],"," ]","","Duplicates detected are:",`${JSON.stringify(conflicts,null,2)}`].join("\n"))}nameMap.add(item.name);}}(descriptors),descriptors}function*createDescriptor(pair,dirname,{type,alias,ownPass}){const desc=(0, _item.getItemDescriptor)(pair);if(desc)return desc;let name,options,file,value=pair;Array.isArray(value)&&(3===value.length?[value,options,name]=value:[value,options]=value);let filepath=null;if("string"==typeof value){if("string"!=typeof type)throw new Error("To resolve a string-based item, the type of item must be given");const resolver="plugin"===type?_files.loadPlugin:_files.loadPreset,request=value;(({filepath,value}=yield*resolver(value,dirname))),file={request,resolved:filepath};}if(!value)throw new Error(`Unexpected falsy value: ${String(value)}`);if("object"==typeof value&&value.__esModule){if(!value.default)throw new Error("Must export a default export when using ES6 modules.");value=value.default;}if("object"!=typeof value&&"function"!=typeof value)throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`);if(null!==filepath&&"object"==typeof value&&value)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);return {name,alias:filepath||alias,value,options,dirname,ownPass,file}}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/configuration.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _debug(){const data=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return _debug=function(){return data},data}function _fs(){const data=__webpack_require__("fs");return _fs=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _json(){const data=__webpack_require__("./node_modules/.pnpm/json5@2.2.1/node_modules/json5/dist/index.mjs");return _json=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ROOT_CONFIG_FILENAMES=void 0,exports.findConfigUpwards=function(rootDir){let dirname=rootDir;for(;;){for(const filename of ROOT_CONFIG_FILENAMES)if(_fs().existsSync(_path().join(dirname,filename)))return dirname;const nextDir=_path().dirname(dirname);if(dirname===nextDir)break;dirname=nextDir;}return null},exports.findRelativeConfig=function*(packageData,envName,caller){let config=null,ignore=null;const dirname=_path().dirname(packageData.filepath);for(const loc of packageData.directories){var _packageData$pkg;if(!config)config=yield*loadOneConfig(RELATIVE_CONFIG_FILENAMES,loc,envName,caller,(null==(_packageData$pkg=packageData.pkg)?void 0:_packageData$pkg.dirname)===loc?packageToBabelConfig(packageData.pkg):null);if(!ignore){const ignoreLoc=_path().join(loc,".babelignore");ignore=yield*readIgnoreConfig(ignoreLoc),ignore&&debug("Found ignore %o from %o.",ignore.filepath,dirname);}}return {config,ignore}},exports.findRootConfig=function(dirname,envName,caller){return loadOneConfig(ROOT_CONFIG_FILENAMES,dirname,envName,caller)},exports.loadConfig=function*(name,dirname,envName,caller){const filepath=(v=process.versions.node,w="8.9",v=v.split("."),w=w.split("."),+v[0]>+w[0]||v[0]==w[0]&&+v[1]>=+w[1]?__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files sync recursive").resolve:(r,{paths:[b]},M=__webpack_require__("module"))=>{let f=M._findPath(r,M._nodeModulePaths(b).concat(b));if(f)return f;throw f=new Error(`Cannot resolve module '${r}'`),f.code="MODULE_NOT_FOUND",f})(name,{paths:[dirname]}),conf=yield*readConfig(filepath,envName,caller);var v,w;if(!conf)throw new _configError.default("Config file contains no configuration data",filepath);return debug("Loaded config %o from %o.",name,dirname),conf},exports.resolveShowConfigPath=function*(dirname){const targetPath=process.env.BABEL_SHOW_CONFIG_FOR;if(null!=targetPath){const absolutePath=_path().resolve(dirname,targetPath);if(!(yield*fs.stat(absolutePath)).isFile())throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return absolutePath}return null};var _caching=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js"),_configApi=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/config-api.js"),_utils=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/utils.js"),_moduleTypes=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/module-types.js"),_patternToRegex=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/pattern-to-regex.js"),_configError=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js"),fs=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/fs.js");var _rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const debug=_debug()("babel:config:loading:files:configuration"),ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json"];exports.ROOT_CONFIG_FILENAMES=ROOT_CONFIG_FILENAMES;const RELATIVE_CONFIG_FILENAMES=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json"];function*loadOneConfig(names,dirname,envName,caller,previousConfig=null){const config=(yield*_gensync().all(names.map((filename=>readConfig(_path().join(dirname,filename),envName,caller))))).reduce(((previousConfig,config)=>{if(config&&previousConfig)throw new _configError.default(`Multiple configuration files found. Please remove one:\n - ${_path().basename(previousConfig.filepath)}\n - ${config.filepath}\nfrom ${dirname}`);return config||previousConfig}),previousConfig);return config&&debug("Found configuration %o from %o.",config.filepath,dirname),config}function readConfig(filepath,envName,caller){const ext=_path().extname(filepath);return ".js"===ext||".cjs"===ext||".mjs"===ext?readConfigJS(filepath,{envName,caller}):readConfigJSON5(filepath)}const LOADING_CONFIGS=new Set,readConfigJS=(0, _caching.makeStrongCache)((function*(filepath,cache){if(!_fs().existsSync(filepath))return cache.never(),null;if(LOADING_CONFIGS.has(filepath))return cache.never(),debug("Auto-ignoring usage of config %o.",filepath),{filepath,dirname:_path().dirname(filepath),options:{}};let options;try{LOADING_CONFIGS.add(filepath),options=yield*(0,_moduleTypes.default)(filepath,"You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously.");}finally{LOADING_CONFIGS.delete(filepath);}let assertCache=!1;if("function"==typeof options&&(yield*[],options=(0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache)),assertCache=!0),!options||"object"!=typeof options||Array.isArray(options))throw new _configError.default("Configuration should be an exported JavaScript object.",filepath);if("function"==typeof options.then)throw new _configError.default("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.",filepath);return assertCache&&!cache.configured()&&function(filepath){throw new _configError.default('Caching was left unconfigured. Babel\'s plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don\'t call this function again.\n api.cache(true);\n\n // Don\'t cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === "production");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};',filepath)}(filepath),{filepath,dirname:_path().dirname(filepath),options}})),packageToBabelConfig=(0, _caching.makeWeakCacheSync)((file=>{const babel=file.options.babel;if(void 0===babel)return null;if("object"!=typeof babel||Array.isArray(babel)||null===babel)throw new _configError.default(".babel property must be an object",file.filepath);return {filepath:file.filepath,dirname:file.dirname,options:babel}})),readConfigJSON5=(0, _utils.makeStaticFileCache)(((filepath,content)=>{let options;try{options=_json().parse(content);}catch(err){throw new _configError.default(`Error while parsing config - ${err.message}`,filepath)}if(!options)throw new _configError.default("No config detected",filepath);if("object"!=typeof options)throw new _configError.default("Config returned typeof "+typeof options,filepath);if(Array.isArray(options))throw new _configError.default("Expected config object but found array",filepath);return delete options.$schema,{filepath,dirname:_path().dirname(filepath),options}})),readIgnoreConfig=(0, _utils.makeStaticFileCache)(((filepath,content)=>{const ignoreDir=_path().dirname(filepath),ignorePatterns=content.split("\n").map((line=>line.replace(/#(.*?)$/,"").trim())).filter((line=>!!line));for(const pattern of ignorePatterns)if("!"===pattern[0])throw new _configError.default("Negation of file paths is not supported.",filepath);return {filepath,dirname:_path().dirname(filepath),ignore:ignorePatterns.map((pattern=>(0, _patternToRegex.default)(pattern,ignoreDir)))}}));},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/import-meta-resolve.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(_x,_x2){return _resolve.apply(this,arguments)};var _importMetaResolve=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/vendor/import-meta-resolve.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value;}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw);}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(void 0);}))}}let import_;try{import_=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/import.cjs");}catch(_unused){}const importMetaResolveP=import_&&process.execArgv.includes("--experimental-import-meta-resolve")?import_("data:text/javascript,export default import.meta.resolve").then((m=>m.default||_importMetaResolve.resolve),(()=>_importMetaResolve.resolve)):Promise.resolve(_importMetaResolve.resolve);function _resolve(){return (_resolve=_asyncToGenerator((function*(specifier,parent){return (yield importMetaResolveP)(specifier,parent)}))).apply(this,arguments)}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/import.cjs":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function(filepath){return __webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files lazy recursive")(filepath)};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return _configuration.ROOT_CONFIG_FILENAMES}}),Object.defineProperty(exports,"findConfigUpwards",{enumerable:!0,get:function(){return _configuration.findConfigUpwards}}),Object.defineProperty(exports,"findPackageData",{enumerable:!0,get:function(){return _package.findPackageData}}),Object.defineProperty(exports,"findRelativeConfig",{enumerable:!0,get:function(){return _configuration.findRelativeConfig}}),Object.defineProperty(exports,"findRootConfig",{enumerable:!0,get:function(){return _configuration.findRootConfig}}),Object.defineProperty(exports,"loadConfig",{enumerable:!0,get:function(){return _configuration.loadConfig}}),Object.defineProperty(exports,"loadPlugin",{enumerable:!0,get:function(){return plugins.loadPlugin}}),Object.defineProperty(exports,"loadPreset",{enumerable:!0,get:function(){return plugins.loadPreset}}),exports.resolvePreset=exports.resolvePlugin=void 0,Object.defineProperty(exports,"resolveShowConfigPath",{enumerable:!0,get:function(){return _configuration.resolveShowConfigPath}});var _package=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/package.js"),_configuration=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/configuration.js"),plugins=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/plugins.js");function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}const resolvePlugin=_gensync()(plugins.resolvePlugin).sync;exports.resolvePlugin=resolvePlugin;const resolvePreset=_gensync()(plugins.resolvePreset).sync;exports.resolvePreset=resolvePreset;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/module-types.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function*(filepath,asyncError,fallbackToTranspiledModule=!1){switch(function(filename){switch(_path().extname(filename)){case".cjs":return "cjs";case".mjs":return "mjs";default:return "unknown"}}(filepath)){case"cjs":return loadCjsDefault(filepath,fallbackToTranspiledModule);case"unknown":try{return loadCjsDefault(filepath,fallbackToTranspiledModule)}catch(e){if("ERR_REQUIRE_ESM"!==e.code)throw e}case"mjs":if(yield*(0, _async.isAsync)())return yield*(0, _async.waitFor)(function(_x){return _loadMjsDefault.apply(this,arguments)}(filepath));throw new _configError.default(asyncError,filepath)}},exports.supportsESM=void 0;var _async=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/async.js");function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _url(){const data=__webpack_require__("url");return _url=function(){return data},data}function _semver(){const data=__webpack_require__("./node_modules/.pnpm/semver@6.3.0/node_modules/semver/semver.js");return _semver=function(){return data},data}var _rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),_configError=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value;}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw);}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(void 0);}))}}let import_;try{import_=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/import.cjs");}catch(_unused){}const supportsESM=_semver().satisfies(process.versions.node,"^12.17 || >=13.2");function loadCjsDefault(filepath,fallbackToTranspiledModule){const module=(0, _rewriteStackTrace.endHiddenCallStack)(__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files sync recursive"))(filepath);return null!=module&&module.__esModule?module.default||(fallbackToTranspiledModule?module:void 0):module}function _loadMjsDefault(){return (_loadMjsDefault=_asyncToGenerator((function*(filepath){if(!import_)throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n",filepath);return (yield (0, _rewriteStackTrace.endHiddenCallStack)(import_)((0, _url().pathToFileURL)(filepath))).default}))).apply(this,arguments)}exports.supportsESM=supportsESM;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/package.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.findPackageData=function*(filepath){let pkg=null;const directories=[];let isPackage=!0,dirname=_path().dirname(filepath);for(;!pkg&&"node_modules"!==_path().basename(dirname);){directories.push(dirname),pkg=yield*readConfigPackage(_path().join(dirname,"package.json"));const nextLoc=_path().dirname(dirname);if(dirname===nextLoc){isPackage=!1;break}dirname=nextLoc;}return {filepath,directories,pkg,isPackage}};var _utils=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/utils.js"),_configError=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js");const readConfigPackage=(0, _utils.makeStaticFileCache)(((filepath,content)=>{let options;try{options=JSON.parse(content);}catch(err){throw new _configError.default(`Error while parsing JSON - ${err.message}`,filepath)}if(!options)throw new Error(`${filepath}: No config detected`);if("object"!=typeof options)throw new _configError.default("Config returned typeof "+typeof options,filepath);if(Array.isArray(options))throw new _configError.default("Expected config object but found array",filepath);return {filepath,dirname:_path().dirname(filepath),options}}));},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/plugins.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _debug(){const data=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return _debug=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadPlugin=function*(name,dirname){const filepath=yield*resolvePlugin(name,dirname),value=yield*requireModule("plugin",filepath);return debug("Loaded plugin %o from %o.",name,dirname),{filepath,value}},exports.loadPreset=function*(name,dirname){const filepath=yield*resolvePreset(name,dirname),value=yield*requireModule("preset",filepath);return debug("Loaded preset %o from %o.",name,dirname),{filepath,value}},exports.resolvePlugin=resolvePlugin,exports.resolvePreset=resolvePreset;var _async=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/async.js"),_moduleTypes=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/module-types.js");function _url(){const data=__webpack_require__("url");return _url=function(){return data},data}var _importMetaResolve=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/import-meta-resolve.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value;}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw);}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(void 0);}))}}const debug=_debug()("babel:config:loading:files:plugins"),EXACT_RE=/^module:/,BABEL_PLUGIN_PREFIX_RE=/^(?!@|module:|[^/]+\/|babel-plugin-)/,BABEL_PRESET_PREFIX_RE=/^(?!@|module:|[^/]+\/|babel-preset-)/,BABEL_PLUGIN_ORG_RE=/^(@babel\/)(?!plugin-|[^/]+\/)/,BABEL_PRESET_ORG_RE=/^(@babel\/)(?!preset-|[^/]+\/)/,OTHER_PLUGIN_ORG_RE=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,OTHER_PRESET_ORG_RE=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/,OTHER_ORG_DEFAULT_RE=/^(@(?!babel$)[^/]+)$/;function*resolvePlugin(name,dirname){return yield*resolveStandardizedName("plugin",name,dirname)}function*resolvePreset(name,dirname){return yield*resolveStandardizedName("preset",name,dirname)}function standardizeName(type,name){if(_path().isAbsolute(name))return name;const isPreset="preset"===type;return name.replace(isPreset?BABEL_PRESET_PREFIX_RE:BABEL_PLUGIN_PREFIX_RE,`babel-${type}-`).replace(isPreset?BABEL_PRESET_ORG_RE:BABEL_PLUGIN_ORG_RE,`$1${type}-`).replace(isPreset?OTHER_PRESET_ORG_RE:OTHER_PLUGIN_ORG_RE,`$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE,`$1/babel-${type}`).replace(EXACT_RE,"")}function*resolveAlternativesHelper(type,name){const standardizedName=standardizeName(type,name),{error,value}=yield standardizedName;if(!error)return value;if("MODULE_NOT_FOUND"!==error.code)throw error;standardizedName===name||(yield name).error||(error.message+=`\n- If you want to resolve "${name}", use "module:${name}"`),(yield standardizeName(type,"@babel/"+name)).error||(error.message+=`\n- Did you mean "@babel/${name}"?`);const oppositeType="preset"===type?"plugin":"preset";throw (yield standardizeName(oppositeType,name)).error||(error.message+=`\n- Did you accidentally pass a ${oppositeType} as a ${type}?`),error}function tryRequireResolve(id,{paths:[dirname]}){try{return {error:null,value:(v=process.versions.node,w="8.9",v=v.split("."),w=w.split("."),+v[0]>+w[0]||v[0]==w[0]&&+v[1]>=+w[1]?__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files sync recursive").resolve:(r,{paths:[b]},M=__webpack_require__("module"))=>{let f=M._findPath(r,M._nodeModulePaths(b).concat(b));if(f)return f;throw f=new Error(`Cannot resolve module '${r}'`),f.code="MODULE_NOT_FOUND",f})(id,{paths:[dirname]})}}catch(error){return {error,value:null}}var v,w;}function tryImportMetaResolve(_x,_x2){return _tryImportMetaResolve.apply(this,arguments)}function _tryImportMetaResolve(){return (_tryImportMetaResolve=_asyncToGenerator((function*(id,options){try{return {error:null,value:yield (0,_importMetaResolve.default)(id,options)}}catch(error){return {error,value:null}}}))).apply(this,arguments)}function resolveStandardizedNameForRequire(type,name,dirname){const it=resolveAlternativesHelper(type,name);let res=it.next();for(;!res.done;)res=it.next(tryRequireResolve(res.value,{paths:[dirname]}));return res.value}function _resolveStandardizedNameForImport(){return (_resolveStandardizedNameForImport=_asyncToGenerator((function*(type,name,dirname){const parentUrl=(0, _url().pathToFileURL)(_path().join(dirname,"./babel-virtual-resolve-base.js")).href,it=resolveAlternativesHelper(type,name);let res=it.next();for(;!res.done;)res=it.next(yield tryImportMetaResolve(res.value,parentUrl));return (0, _url().fileURLToPath)(res.value)}))).apply(this,arguments)}const resolveStandardizedName=_gensync()({sync:(type,name,dirname=process.cwd())=>resolveStandardizedNameForRequire(type,name,dirname),async:(type,name,dirname=process.cwd())=>_asyncToGenerator((function*(){if(!_moduleTypes.supportsESM)return resolveStandardizedNameForRequire(type,name,dirname);try{return yield function(_x3,_x4,_x5){return _resolveStandardizedNameForImport.apply(this,arguments)}(type,name,dirname)}catch(e){try{return resolveStandardizedNameForRequire(type,name,dirname)}catch(e2){if("MODULE_NOT_FOUND"===e.type)throw e;if("MODULE_NOT_FOUND"===e2.type)throw e2;throw e}}}))()});var LOADING_MODULES=new Set;function*requireModule(type,name){if(!(yield*(0, _async.isAsync)())&&LOADING_MODULES.has(name))throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return LOADING_MODULES.add(name),yield*(0,_moduleTypes.default)(name,`You appear to be using a native ECMAScript module ${type}, which is only supported when running Babel asynchronously.`,!0)}catch(err){throw err.message=`[BABEL]: ${err.message} (While processing: ${name})`,err}finally{LOADING_MODULES.delete(name);}}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeStaticFileCache=function(fn){return (0, _caching.makeStrongCache)((function*(filepath,cache){const cached=cache.invalidate((()=>function(filepath){if(!_fs2().existsSync(filepath))return null;try{return +_fs2().statSync(filepath).mtime}catch(e){if("ENOENT"!==e.code&&"ENOTDIR"!==e.code)throw e}return null}(filepath)));return null===cached?null:fn(filepath,yield*fs.readFile(filepath,"utf8"))}))};var _caching=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js"),fs=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/fs.js");function _fs2(){const data=__webpack_require__("fs");return _fs2=function(){return data},data}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/full.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _async=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/async.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/util.js"),context=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_plugin=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/plugin.js"),_item=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/item.js"),_configChain=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/config-chain.js"),_deepArray=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/deep-array.js");function _traverse(){const data=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}var _caching=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js"),_options=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/options.js"),_plugins=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/plugins.js"),_configApi=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/config-api.js"),_partial=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/partial.js"),_configError=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js"),_default=_gensync()((function*(inputOpts){var _opts$assumptions;const result=yield*(0, _partial.default)(inputOpts);if(!result)return null;const{options,context,fileHandling}=result;if("ignored"===fileHandling)return null;const optionDefaults={},{plugins,presets}=options;if(!plugins||!presets)throw new Error("Assertion failure - plugins and presets exist");const presetContext=Object.assign({},context,{targets:options.targets}),toDescriptor=item=>{const desc=(0, _item.getItemDescriptor)(item);if(!desc)throw new Error("Assertion failure - must be config item");return desc},presetsDescriptors=presets.map(toDescriptor),initialPluginsDescriptors=plugins.map(toDescriptor),pluginDescriptorsByPass=[[]],passes=[],externalDependencies=[],ignored=yield*enhanceError(context,(function*recursePresetDescriptors(rawPresets,pluginDescriptorsPass){const presets=[];for(let i=0;i<rawPresets.length;i++){const descriptor=rawPresets[i];if(!1!==descriptor.options){try{var preset=yield*loadPresetDescriptor(descriptor,presetContext);}catch(e){throw "BABEL_UNKNOWN_OPTION"===e.code&&(0,_options.checkNoUnwrappedItemOptionPairs)(rawPresets,i,"preset",e),e}externalDependencies.push(preset.externalDependencies),descriptor.ownPass?presets.push({preset:preset.chain,pass:[]}):presets.unshift({preset:preset.chain,pass:pluginDescriptorsPass});}}if(presets.length>0){pluginDescriptorsByPass.splice(1,0,...presets.map((o=>o.pass)).filter((p=>p!==pluginDescriptorsPass)));for(const{preset,pass}of presets){if(!preset)return !0;pass.push(...preset.plugins);if(yield*recursePresetDescriptors(preset.presets,pass))return !0;preset.options.forEach((opts=>{(0,_util.mergeOptions)(optionDefaults,opts);}));}}}))(presetsDescriptors,pluginDescriptorsByPass[0]);if(ignored)return null;const opts=optionDefaults;(0, _util.mergeOptions)(opts,options);const pluginContext=Object.assign({},presetContext,{assumptions:null!=(_opts$assumptions=opts.assumptions)?_opts$assumptions:{}});return yield*enhanceError(context,(function*(){pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);for(const descs of pluginDescriptorsByPass){const pass=[];passes.push(pass);for(let i=0;i<descs.length;i++){const descriptor=descs[i];if(!1!==descriptor.options){try{var plugin=yield*loadPluginDescriptor(descriptor,pluginContext);}catch(e){throw "BABEL_UNKNOWN_PLUGIN_PROPERTY"===e.code&&(0,_options.checkNoUnwrappedItemOptionPairs)(descs,i,"plugin",e),e}pass.push(plugin),externalDependencies.push(plugin.externalDependencies);}}}}))(),opts.plugins=passes[0],opts.presets=passes.slice(1).filter((plugins=>plugins.length>0)).map((plugins=>({plugins}))),opts.passPerPreset=opts.presets.length>0,{options:opts,passes,externalDependencies:(0, _deepArray.finalize)(externalDependencies)}}));function enhanceError(context,fn){return function*(arg1,arg2){try{return yield*fn(arg1,arg2)}catch(e){var _context$filename;if(!/^\[BABEL\]/.test(e.message))e.message=`[BABEL] ${null!=(_context$filename=context.filename)?_context$filename:"unknown file"}: ${e.message}`;throw e}}}exports.default=_default;const makeDescriptorLoader=apiFactory=>(0, _caching.makeWeakCache)((function*({value,options,dirname,alias},cache){if(!1===options)throw new Error("Assertion failure");options=options||{};const externalDependencies=[];let item=value;if("function"==typeof value){const factory=(0, _async.maybeAsync)(value,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),api=Object.assign({},context,apiFactory(cache,externalDependencies));try{item=yield*factory(api,options,dirname);}catch(e){throw alias&&(e.message+=` (While processing: ${JSON.stringify(alias)})`),e}}if(!item||"object"!=typeof item)throw new Error("Plugin/Preset did not return an object.");if((0, _async.isThenable)(item))throw yield*[],new Error(`You appear to be using a promise as a plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". (While processing: ${JSON.stringify(alias)})`);if(externalDependencies.length>0&&(!cache.configured()||"forever"===cache.mode())){let error=`A plugin/preset has external untracked dependencies (${externalDependencies[0]}), but the cache `;throw cache.configured()?error+=" has been configured to never be invalidated. ":error+="has not been configured to be invalidated when the external dependencies change. ",error+=`Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n(While processing: ${JSON.stringify(alias)})`,new Error(error)}return {value:item,options,dirname,alias,externalDependencies:(0, _deepArray.finalize)(externalDependencies)}})),pluginDescriptorLoader=makeDescriptorLoader(_configApi.makePluginAPI),presetDescriptorLoader=makeDescriptorLoader(_configApi.makePresetAPI);function*loadPluginDescriptor(descriptor,context){if(descriptor.value instanceof _plugin.default){if(descriptor.options)throw new Error("Passed options to an existing Plugin instance will not work.");return descriptor.value}return yield*instantiatePlugin(yield*pluginDescriptorLoader(descriptor,context),context)}const instantiatePlugin=(0, _caching.makeWeakCache)((function*({value,options,dirname,alias,externalDependencies},cache){const pluginObj=(0, _plugins.validatePluginObject)(value),plugin=Object.assign({},pluginObj);if(plugin.visitor&&(plugin.visitor=_traverse().default.explode(Object.assign({},plugin.visitor))),plugin.inherits){const inheritsDescriptor={name:void 0,alias:`${alias}$inherits`,value:plugin.inherits,options,dirname},inherits=yield*(0, _async.forwardAsync)(loadPluginDescriptor,(run=>cache.invalidate((data=>run(inheritsDescriptor,data)))));plugin.pre=chain(inherits.pre,plugin.pre),plugin.post=chain(inherits.post,plugin.post),plugin.manipulateOptions=chain(inherits.manipulateOptions,plugin.manipulateOptions),plugin.visitor=_traverse().default.visitors.merge([inherits.visitor||{},plugin.visitor||{}]),inherits.externalDependencies.length>0&&(externalDependencies=0===externalDependencies.length?inherits.externalDependencies:(0, _deepArray.finalize)([externalDependencies,inherits.externalDependencies]));}return new _plugin.default(plugin,options,alias,externalDependencies)})),validateIfOptionNeedsFilename=(options,descriptor)=>{if(options.test||options.include||options.exclude){const formattedPresetName=descriptor.name?`"${descriptor.name}"`:"/* your preset */";throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}};function*loadPresetDescriptor(descriptor,context){const preset=instantiatePreset(yield*presetDescriptorLoader(descriptor,context));return ((preset,context,descriptor)=>{if(!context.filename){const{options}=preset;validateIfOptionNeedsFilename(options,descriptor),options.overrides&&options.overrides.forEach((overrideOptions=>validateIfOptionNeedsFilename(overrideOptions,descriptor)));}})(preset,context,descriptor),{chain:yield*(0, _configChain.buildPresetChain)(preset,context),externalDependencies:preset.externalDependencies}}const instantiatePreset=(0, _caching.makeWeakCacheSync)((({value,dirname,alias,externalDependencies})=>({options:(0, _options.validate)("preset",value),alias,dirname,externalDependencies})));function chain(a,b){const fns=[a,b].filter(Boolean);return fns.length<=1?fns[0]:function(...args){for(const fn of fns)fn.apply(this,args);}}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/config-api.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _semver(){const data=__webpack_require__("./node_modules/.pnpm/semver@6.3.0/node_modules/semver/semver.js");return _semver=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeConfigAPI=makeConfigAPI,exports.makePluginAPI=function(cache,externalDependencies){return Object.assign({},makePresetAPI(cache,externalDependencies),{assumption:name=>cache.using((data=>data.assumptions[name]))})},exports.makePresetAPI=makePresetAPI;var _=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_caching=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/caching.js");function makeConfigAPI(cache){return {version:_.version,cache:cache.simple(),env:value=>cache.using((data=>void 0===value?data.envName:"function"==typeof value?(0, _caching.assertSimpleType)(value(data.envName)):(Array.isArray(value)?value:[value]).some((entry=>{if("string"!=typeof entry)throw new Error("Unexpected non-string value");return entry===data.envName})))),async:()=>!1,caller:cb=>cache.using((data=>(0, _caching.assertSimpleType)(cb(data.caller)))),assertVersion}}function makePresetAPI(cache,externalDependencies){return Object.assign({},makeConfigAPI(cache),{targets:()=>JSON.parse(cache.using((data=>JSON.stringify(data.targets)))),addExternalDependency:ref=>{externalDependencies.push(ref);}})}function assertVersion(range){if("number"==typeof range){if(!Number.isInteger(range))throw new Error("Expected string or integer value.");range=`^${range}.0.0-0`;}if("string"!=typeof range)throw new Error("Expected string or integer value.");if(_semver().satisfies(_.version,range))return;const limit=Error.stackTraceLimit;"number"==typeof limit&&limit<25&&(Error.stackTraceLimit=25);const err=new Error(`Requires Babel "${range}", but was loaded with "${_.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw "number"==typeof limit&&(Error.stackTraceLimit=limit),Object.assign(err,{code:"BABEL_VERSION_UNSUPPORTED",version:_.version,range})}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/deep-array.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.finalize=function(deepArr){return Object.freeze(deepArr)},exports.flattenToSet=function(arr){const result=new Set,stack=[arr];for(;stack.length>0;)for(const el of stack.pop())Array.isArray(el)?stack.push(el):result.add(el);return result};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/environment.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.getEnv=function(defaultValue="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||defaultValue};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createConfigItem=function(target,options,callback){return void 0!==callback?createConfigItemRunner.errback(target,options,callback):"function"==typeof options?createConfigItemRunner.errback(target,void 0,callback):createConfigItemRunner.sync(target,options)},exports.createConfigItemSync=exports.createConfigItemAsync=void 0,Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _full.default}}),exports.loadPartialConfigSync=exports.loadPartialConfigAsync=exports.loadPartialConfig=exports.loadOptionsSync=exports.loadOptionsAsync=exports.loadOptions=void 0;var _full=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/full.js"),_partial=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/partial.js"),_item=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/item.js");const loadOptionsRunner=_gensync()((function*(opts){var _config$options;const config=yield*(0, _full.default)(opts);return null!=(_config$options=null==config?void 0:config.options)?_config$options:null})),createConfigItemRunner=_gensync()(_item.createConfigItem),maybeErrback=runner=>(argOrCallback,maybeCallback)=>{let arg,callback;return void 0===maybeCallback&&"function"==typeof argOrCallback?(callback=argOrCallback,arg=void 0):(callback=maybeCallback,arg=argOrCallback),callback?runner.errback(arg,callback):runner.sync(arg)},loadPartialConfig=maybeErrback(_partial.loadPartialConfig);exports.loadPartialConfig=loadPartialConfig;const loadPartialConfigSync=_partial.loadPartialConfig.sync;exports.loadPartialConfigSync=loadPartialConfigSync;const loadPartialConfigAsync=_partial.loadPartialConfig.async;exports.loadPartialConfigAsync=loadPartialConfigAsync;const loadOptions=maybeErrback(loadOptionsRunner);exports.loadOptions=loadOptions;const loadOptionsSync=loadOptionsRunner.sync;exports.loadOptionsSync=loadOptionsSync;const loadOptionsAsync=loadOptionsRunner.async;exports.loadOptionsAsync=loadOptionsAsync;const createConfigItemSync=createConfigItemRunner.sync;exports.createConfigItemSync=createConfigItemSync;const createConfigItemAsync=createConfigItemRunner.async;exports.createConfigItemAsync=createConfigItemAsync;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/item.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createConfigItem=function*(value,{dirname=".",type}={}){return createItemFromDescriptor(yield*(0, _configDescriptors.createDescriptor)(value,_path().resolve(dirname),{type,alias:"programmatic item"}))},exports.createItemFromDescriptor=createItemFromDescriptor,exports.getItemDescriptor=function(item){if(null!=item&&item[CONFIG_ITEM_BRAND])return item._descriptor;return};var _configDescriptors=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/config-descriptors.js");function createItemFromDescriptor(desc){return new ConfigItem(desc)}const CONFIG_ITEM_BRAND=Symbol.for("@babel/core@7 - ConfigItem");class ConfigItem{constructor(descriptor){this._descriptor=void 0,this[CONFIG_ITEM_BRAND]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=descriptor,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,CONFIG_ITEM_BRAND,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this);}}Object.freeze(ConfigItem.prototype);},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/partial.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=loadPrivatePartialConfig,exports.loadPartialConfig=void 0;var _plugin=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/plugin.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/util.js"),_item=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/item.js"),_configChain=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/config-chain.js"),_environment=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/environment.js"),_options=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/options.js"),_files=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/index.js"),_resolveTargets=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/resolve-targets.js");const _excluded=["showIgnoredFiles"];function*loadPrivatePartialConfig(inputOpts){if(null!=inputOpts&&("object"!=typeof inputOpts||Array.isArray(inputOpts)))throw new Error("Babel options must be an object, null, or undefined");const args=inputOpts?(0, _options.validate)("arguments",inputOpts):{},{envName=(0, _environment.getEnv)(),cwd=".",root:rootDir=".",rootMode="root",caller,cloneInputAst=!0}=args,absoluteCwd=_path().resolve(cwd),absoluteRootDir=function(rootDir,rootMode){switch(rootMode){case"root":return rootDir;case"upward-optional":{const upwardRootDir=(0, _files.findConfigUpwards)(rootDir);return null===upwardRootDir?rootDir:upwardRootDir}case"upward":{const upwardRootDir=(0, _files.findConfigUpwards)(rootDir);if(null!==upwardRootDir)return upwardRootDir;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not be found when searching upward from "${rootDir}".\nOne of the following config files must be in the directory tree: "${_files.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:rootDir})}default:throw new Error("Assertion failure - unknown rootMode value.")}}(_path().resolve(absoluteCwd,rootDir),rootMode),filename="string"==typeof args.filename?_path().resolve(cwd,args.filename):void 0,context={filename,cwd:absoluteCwd,root:absoluteRootDir,envName,caller,showConfig:(yield*(0, _files.resolveShowConfigPath)(absoluteCwd))===filename},configChain=yield*(0, _configChain.buildRootChain)(args,context);if(!configChain)return null;const merged={assumptions:{}};configChain.options.forEach((opts=>{(0, _util.mergeOptions)(merged,opts);}));return {options:Object.assign({},merged,{targets:(0, _resolveTargets.resolveTargets)(merged,absoluteRootDir),cloneInputAst,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:context.envName,cwd:context.cwd,root:context.root,rootMode:"root",filename:"string"==typeof context.filename?context.filename:void 0,plugins:configChain.plugins.map((descriptor=>(0, _item.createItemFromDescriptor)(descriptor))),presets:configChain.presets.map((descriptor=>(0, _item.createItemFromDescriptor)(descriptor)))}),context,fileHandling:configChain.fileHandling,ignore:configChain.ignore,babelrc:configChain.babelrc,config:configChain.config,files:configChain.files}}const loadPartialConfig=_gensync()((function*(opts){let showIgnoredFiles=!1;if("object"==typeof opts&&null!==opts&&!Array.isArray(opts)){var _opts=opts;(({showIgnoredFiles}=_opts)),opts=function(source,excluded){if(null==source)return {};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}(_opts,_excluded);}const result=yield*loadPrivatePartialConfig(opts);if(!result)return null;const{options,babelrc,ignore,config,fileHandling,files}=result;return "ignored"!==fileHandling||showIgnoredFiles?((options.plugins||[]).forEach((item=>{if(item.value instanceof _plugin.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")})),new PartialConfig(options,babelrc?babelrc.filepath:void 0,ignore?ignore.filepath:void 0,config?config.filepath:void 0,fileHandling,files)):null}));exports.loadPartialConfig=loadPartialConfig;class PartialConfig{constructor(options,babelrc,ignore,config,fileHandling,files){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=options,this.babelignore=ignore,this.babelrc=babelrc,this.config=config,this.fileHandling=fileHandling,this.files=files,Object.freeze(this);}hasFilesystemConfig(){return void 0!==this.babelrc||void 0!==this.config}}Object.freeze(PartialConfig.prototype);},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/pattern-to-regex.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(pattern,dirname){const parts=_path().resolve(dirname,pattern).split(_path().sep);return new RegExp(["^",...parts.map(((part,i)=>{const last=i===parts.length-1;return "**"===part?last?starStarPatLast:starStarPat:"*"===part?last?starPatLast:starPat:0===part.indexOf("*.")?substitution+escapeRegExp(part.slice(1))+(last?endSep:sep):escapeRegExp(part)+(last?endSep:sep)}))].join(""))};const sep=`\\${_path().sep}`,endSep=`(?:${sep}|$)`,substitution=`[^${sep}]+`,starPat=`(?:${substitution}${sep})`,starPatLast=`(?:${substitution}${endSep})`,starStarPat=`${starPat}*?`,starStarPatLast=`${starPat}*?${starPatLast}?`;function escapeRegExp(string){return string.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/plugin.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _deepArray=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/deep-array.js");exports.default=class{constructor(plugin,options,key,externalDependencies=(0, _deepArray.finalize)([])){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=plugin.name||key,this.manipulateOptions=plugin.manipulateOptions,this.post=plugin.post,this.pre=plugin.pre,this.visitor=plugin.visitor||{},this.parserOverride=plugin.parserOverride,this.generatorOverride=plugin.generatorOverride,this.options=options,this.externalDependencies=externalDependencies;}};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/printer.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfigPrinter=exports.ChainFormatter=void 0;const ChainFormatter={Programmatic:0,Config:1};exports.ChainFormatter=ChainFormatter;const Formatter={title(type,callerName,filepath){let title="";return type===ChainFormatter.Programmatic?(title="programmatic options",callerName&&(title+=" from "+callerName)):title="config "+filepath,title},loc(index,envName){let loc="";return null!=index&&(loc+=`.overrides[${index}]`),null!=envName&&(loc+=`.env["${envName}"]`),loc},*optionsAndDescriptors(opt){const content=Object.assign({},opt.options);delete content.overrides,delete content.env;const pluginDescriptors=[...yield*opt.plugins()];pluginDescriptors.length&&(content.plugins=pluginDescriptors.map((d=>descriptorToConfig(d))));const presetDescriptors=[...yield*opt.presets()];return presetDescriptors.length&&(content.presets=[...presetDescriptors].map((d=>descriptorToConfig(d)))),JSON.stringify(content,void 0,2)}};function descriptorToConfig(d){var _d$file;let name=null==(_d$file=d.file)?void 0:_d$file.request;return null==name&&("object"==typeof d.value?name=d.value:"function"==typeof d.value&&(name=`[Function: ${d.value.toString().slice(0,50)} ... ]`)),null==name&&(name="[Unknown]"),void 0===d.options?name:null==d.name?[name,d.options]:[name,d.options,d.name]}class ConfigPrinter{constructor(){this._stack=[];}configure(enabled,type,{callerName,filepath}){return enabled?(content,index,envName)=>{this._stack.push({type,callerName,filepath,content,index,envName});}:()=>{}}static*format(config){let title=Formatter.title(config.type,config.callerName,config.filepath);const loc=Formatter.loc(config.index,config.envName);loc&&(title+=` ${loc}`);return `${title}\n${yield*Formatter.optionsAndDescriptors(config.content)}`}*output(){if(0===this._stack.length)return "";return (yield*_gensync().all(this._stack.map((s=>ConfigPrinter.format(s))))).join("\n\n")}}exports.ConfigPrinter=ConfigPrinter;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/resolve-targets.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _helperCompilationTargets(){const data=__webpack_require__("./stubs/helper_compilation_targets.js");return _helperCompilationTargets=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveBrowserslistConfigFile=function(browserslistConfigFile,configFileDir){return _path().resolve(configFileDir,browserslistConfigFile)},exports.resolveTargets=function(options,root){const optTargets=options.targets;let targets;"string"==typeof optTargets||Array.isArray(optTargets)?targets={browsers:optTargets}:optTargets&&(targets="esmodules"in optTargets?Object.assign({},optTargets,{esmodules:"intersect"}):optTargets);const{browserslistConfigFile}=options;let configFile,ignoreBrowserslistConfig=!1;"string"==typeof browserslistConfigFile?configFile=browserslistConfigFile:ignoreBrowserslistConfig=!1===browserslistConfigFile;return (0, _helperCompilationTargets().default)(targets,{ignoreBrowserslistConfig,configFile,configPath:root,browserslistEnv:options.browserslistEnv})};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/util.js":(__unused_webpack_module,exports)=>{function mergeDefaultFields(target,source){for(const k of Object.keys(source)){const val=source[k];void 0!==val&&(target[k]=val);}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIterableIterator=function(value){return !!value&&"function"==typeof value.next&&"function"==typeof value[Symbol.iterator]},exports.mergeOptions=function(target,source){for(const k of Object.keys(source))if("parserOpts"!==k&&"generatorOpts"!==k&&"assumptions"!==k||!source[k]){const val=source[k];void 0!==val&&(target[k]=val);}else {const parserOpts=source[k];mergeDefaultFields(target[k]||(target[k]={}),parserOpts);}};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/option-assertions.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _helperCompilationTargets(){const data=__webpack_require__("./stubs/helper_compilation_targets.js");return _helperCompilationTargets=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.access=access,exports.assertArray=assertArray,exports.assertAssumptions=function(loc,value){if(void 0===value)return;if("object"!=typeof value||null===value)throw new Error(`${msg(loc)} must be an object or undefined.`);let root=loc;do{root=root.parent;}while("root"!==root.type);const inPreset="preset"===root.source;for(const name of Object.keys(value)){const subLoc=access(loc,name);if(!_options.assumptionsNames.has(name))throw new Error(`${msg(subLoc)} is not a supported assumption.`);if("boolean"!=typeof value[name])throw new Error(`${msg(subLoc)} must be a boolean.`);if(inPreset&&!1===value[name])throw new Error(`${msg(subLoc)} cannot be set to 'false' inside presets.`)}return value},exports.assertBabelrcSearch=function(loc,value){if(void 0===value||"boolean"==typeof value)return value;if(Array.isArray(value))value.forEach(((item,i)=>{if(!checkValidTest(item))throw new Error(`${msg(access(loc,i))} must be a string/Function/RegExp.`)}));else if(!checkValidTest(value))throw new Error(`${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(value)}`);return value},exports.assertBoolean=assertBoolean,exports.assertCallerMetadata=function(loc,value){const obj=assertObject(loc,value);if(obj){if("string"!=typeof obj.name)throw new Error(`${msg(loc)} set but does not contain "name" property string`);for(const prop of Object.keys(obj)){const propLoc=access(loc,prop),value=obj[prop];if(null!=value&&"boolean"!=typeof value&&"string"!=typeof value&&"number"!=typeof value)throw new Error(`${msg(propLoc)} must be null, undefined, a boolean, a string, or a number.`)}}return value},exports.assertCompact=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&"auto"!==value)throw new Error(`${msg(loc)} must be a boolean, "auto", or undefined`);return value},exports.assertConfigApplicableTest=function(loc,value){if(void 0===value)return value;if(Array.isArray(value))value.forEach(((item,i)=>{if(!checkValidTest(item))throw new Error(`${msg(access(loc,i))} must be a string/Function/RegExp.`)}));else if(!checkValidTest(value))throw new Error(`${msg(loc)} must be a string/Function/RegExp, or an array of those`);return value},exports.assertConfigFileSearch=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&"string"!=typeof value)throw new Error(`${msg(loc)} must be a undefined, a boolean, a string, got ${JSON.stringify(value)}`);return value},exports.assertFunction=function(loc,value){if(void 0!==value&&"function"!=typeof value)throw new Error(`${msg(loc)} must be a function, or undefined`);return value},exports.assertIgnoreList=function(loc,value){const arr=assertArray(loc,value);arr&&arr.forEach(((item,i)=>function(loc,value){if("string"!=typeof value&&"function"!=typeof value&&!(value instanceof RegExp))throw new Error(`${msg(loc)} must be an array of string/Function/RegExp values, or undefined`);return value}(access(loc,i),item)));return arr},exports.assertInputSourceMap=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&("object"!=typeof value||!value))throw new Error(`${msg(loc)} must be a boolean, object, or undefined`);return value},exports.assertObject=assertObject,exports.assertPluginList=function(loc,value){const arr=assertArray(loc,value);arr&&arr.forEach(((item,i)=>function(loc,value){if(Array.isArray(value)){if(0===value.length)throw new Error(`${msg(loc)} must include an object`);if(value.length>3)throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`);if(assertPluginTarget(access(loc,0),value[0]),value.length>1){const opts=value[1];if(void 0!==opts&&!1!==opts&&("object"!=typeof opts||Array.isArray(opts)||null===opts))throw new Error(`${msg(access(loc,1))} must be an object, false, or undefined`)}if(3===value.length){const name=value[2];if(void 0!==name&&"string"!=typeof name)throw new Error(`${msg(access(loc,2))} must be a string, or undefined`)}}else assertPluginTarget(loc,value);return value}(access(loc,i),item)));return arr},exports.assertRootMode=function(loc,value){if(void 0!==value&&"root"!==value&&"upward"!==value&&"upward-optional"!==value)throw new Error(`${msg(loc)} must be a "root", "upward", "upward-optional" or undefined`);return value},exports.assertSourceMaps=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&"inline"!==value&&"both"!==value)throw new Error(`${msg(loc)} must be a boolean, "inline", "both", or undefined`);return value},exports.assertSourceType=function(loc,value){if(void 0!==value&&"module"!==value&&"script"!==value&&"unambiguous"!==value)throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`);return value},exports.assertString=function(loc,value){if(void 0!==value&&"string"!=typeof value)throw new Error(`${msg(loc)} must be a string, or undefined`);return value},exports.assertTargets=function(loc,value){if((0, _helperCompilationTargets().isBrowsersQueryValid)(value))return value;if("object"!=typeof value||!value||Array.isArray(value))throw new Error(`${msg(loc)} must be a string, an array of strings or an object`);const browsersLoc=access(loc,"browsers"),esmodulesLoc=access(loc,"esmodules");assertBrowsersList(browsersLoc,value.browsers),assertBoolean(esmodulesLoc,value.esmodules);for(const key of Object.keys(value)){const val=value[key],subLoc=access(loc,key);if("esmodules"===key)assertBoolean(subLoc,val);else if("browsers"===key)assertBrowsersList(subLoc,val);else {if(!Object.hasOwnProperty.call(_helperCompilationTargets().TargetNames,key)){const validTargets=Object.keys(_helperCompilationTargets().TargetNames).join(", ");throw new Error(`${msg(subLoc)} is not a valid target. Supported targets are ${validTargets}`)}assertBrowserVersion(subLoc,val);}}return value},exports.msg=msg;var _options=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/options.js");function msg(loc){switch(loc.type){case"root":return "";case"env":return `${msg(loc.parent)}.env["${loc.name}"]`;case"overrides":return `${msg(loc.parent)}.overrides[${loc.index}]`;case"option":return `${msg(loc.parent)}.${loc.name}`;case"access":return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${loc.type}`)}}function access(loc,name){return {type:"access",name,parent:loc}}function assertBoolean(loc,value){if(void 0!==value&&"boolean"!=typeof value)throw new Error(`${msg(loc)} must be a boolean, or undefined`);return value}function assertObject(loc,value){if(void 0!==value&&("object"!=typeof value||Array.isArray(value)||!value))throw new Error(`${msg(loc)} must be an object, or undefined`);return value}function assertArray(loc,value){if(null!=value&&!Array.isArray(value))throw new Error(`${msg(loc)} must be an array, or undefined`);return value}function checkValidTest(value){return "string"==typeof value||"function"==typeof value||value instanceof RegExp}function assertPluginTarget(loc,value){if(("object"!=typeof value||!value)&&"string"!=typeof value&&"function"!=typeof value)throw new Error(`${msg(loc)} must be a string, object, function`);return value}function assertBrowsersList(loc,value){if(void 0!==value&&!(0, _helperCompilationTargets().isBrowsersQueryValid)(value))throw new Error(`${msg(loc)} must be undefined, a string or an array of strings`)}function assertBrowserVersion(loc,value){if(("number"!=typeof value||Math.round(value)!==value)&&"string"!=typeof value)throw new Error(`${msg(loc)} must be a string or an integer number`)}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/options.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.assumptionsNames=void 0,exports.checkNoUnwrappedItemOptionPairs=function(items,index,type,e){if(0===index)return;const lastItem=items[index-1],thisItem=items[index];lastItem.file&&void 0===lastItem.options&&"object"==typeof thisItem.value&&(e.message+=`\n- Maybe you meant to use\n"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(thisItem.value,void 0,2)}]\n]\nTo be a valid ${type}, its name and options should be wrapped in a pair of brackets`);},exports.validate=function(type,opts,filename){try{return validateNested({type:"root",source:type},opts)}catch(error){const configError=new _configError.default(error.message,filename);throw error.code&&(configError.code=error.code),configError}};var _removed=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/removed.js"),_optionAssertions=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/option-assertions.js"),_configError=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js");const ROOT_VALIDATORS={cwd:_optionAssertions.assertString,root:_optionAssertions.assertString,rootMode:_optionAssertions.assertRootMode,configFile:_optionAssertions.assertConfigFileSearch,caller:_optionAssertions.assertCallerMetadata,filename:_optionAssertions.assertString,filenameRelative:_optionAssertions.assertString,code:_optionAssertions.assertBoolean,ast:_optionAssertions.assertBoolean,cloneInputAst:_optionAssertions.assertBoolean,envName:_optionAssertions.assertString},BABELRC_VALIDATORS={babelrc:_optionAssertions.assertBoolean,babelrcRoots:_optionAssertions.assertBabelrcSearch},NONPRESET_VALIDATORS={extends:_optionAssertions.assertString,ignore:_optionAssertions.assertIgnoreList,only:_optionAssertions.assertIgnoreList,targets:_optionAssertions.assertTargets,browserslistConfigFile:_optionAssertions.assertConfigFileSearch,browserslistEnv:_optionAssertions.assertString},COMMON_VALIDATORS={inputSourceMap:_optionAssertions.assertInputSourceMap,presets:_optionAssertions.assertPluginList,plugins:_optionAssertions.assertPluginList,passPerPreset:_optionAssertions.assertBoolean,assumptions:_optionAssertions.assertAssumptions,env:function(loc,value){if("env"===loc.parent.type)throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside of another .env block`);const parent=loc.parent,obj=(0, _optionAssertions.assertObject)(loc,value);if(obj)for(const envName of Object.keys(obj)){const env=(0, _optionAssertions.assertObject)((0, _optionAssertions.access)(loc,envName),obj[envName]);if(!env)continue;validateNested({type:"env",name:envName,parent},env);}return obj},overrides:function(loc,value){if("env"===loc.parent.type)throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .env block`);if("overrides"===loc.parent.type)throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .overrides block`);const parent=loc.parent,arr=(0, _optionAssertions.assertArray)(loc,value);if(arr)for(const[index,item]of arr.entries()){const objLoc=(0, _optionAssertions.access)(loc,index),env=(0, _optionAssertions.assertObject)(objLoc,item);if(!env)throw new Error(`${(0, _optionAssertions.msg)(objLoc)} must be an object`);validateNested({type:"overrides",index,parent},env);}return arr},test:_optionAssertions.assertConfigApplicableTest,include:_optionAssertions.assertConfigApplicableTest,exclude:_optionAssertions.assertConfigApplicableTest,retainLines:_optionAssertions.assertBoolean,comments:_optionAssertions.assertBoolean,shouldPrintComment:_optionAssertions.assertFunction,compact:_optionAssertions.assertCompact,minified:_optionAssertions.assertBoolean,auxiliaryCommentBefore:_optionAssertions.assertString,auxiliaryCommentAfter:_optionAssertions.assertString,sourceType:_optionAssertions.assertSourceType,wrapPluginVisitorMethod:_optionAssertions.assertFunction,highlightCode:_optionAssertions.assertBoolean,sourceMaps:_optionAssertions.assertSourceMaps,sourceMap:_optionAssertions.assertSourceMaps,sourceFileName:_optionAssertions.assertString,sourceRoot:_optionAssertions.assertString,parserOpts:_optionAssertions.assertObject,generatorOpts:_optionAssertions.assertObject};Object.assign(COMMON_VALIDATORS,{getModuleId:_optionAssertions.assertFunction,moduleRoot:_optionAssertions.assertString,moduleIds:_optionAssertions.assertBoolean,moduleId:_optionAssertions.assertString});const assumptionsNames=new Set(["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","objectRestNoSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"]);function getSource(loc){return "root"===loc.type?loc.source:getSource(loc.parent)}function validateNested(loc,opts){const type=getSource(loc);return function(opts){if(has(opts,"sourceMap")&&has(opts,"sourceMaps"))throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}(opts),Object.keys(opts).forEach((key=>{const optLoc={type:"option",name:key,parent:loc};if("preset"===type&&NONPRESET_VALIDATORS[key])throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in preset options`);if("arguments"!==type&&ROOT_VALIDATORS[key])throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options`);if("arguments"!==type&&"configfile"!==type&&BABELRC_VALIDATORS[key]){if("babelrcfile"===type||"extendsfile"===type)throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, or babel.config.js/config file options`);throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options, or babel.config.js/config file options`)}(COMMON_VALIDATORS[key]||NONPRESET_VALIDATORS[key]||BABELRC_VALIDATORS[key]||ROOT_VALIDATORS[key]||throwUnknownError)(optLoc,opts[key]);})),opts}function throwUnknownError(loc){const key=loc.name;if(_removed.default[key]){const{message,version=5}=_removed.default[key];throw new Error(`Using removed Babel ${version} option: ${(0, _optionAssertions.msg)(loc)} - ${message}`)}{const unknownOptErr=new Error(`Unknown option: ${(0, _optionAssertions.msg)(loc)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);throw unknownOptErr.code="BABEL_UNKNOWN_OPTION",unknownOptErr}}function has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}exports.assumptionsNames=assumptionsNames;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/plugins.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.validatePluginObject=function(obj){const rootPath={type:"root",source:"plugin"};return Object.keys(obj).forEach((key=>{const validator=VALIDATORS[key];if(!validator){const invalidPluginPropertyError=new Error(`.${key} is not a valid Plugin property`);throw invalidPluginPropertyError.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",invalidPluginPropertyError}validator({type:"option",name:key,parent:rootPath},obj[key]);})),obj};var _optionAssertions=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/option-assertions.js");const VALIDATORS={name:_optionAssertions.assertString,manipulateOptions:_optionAssertions.assertFunction,pre:_optionAssertions.assertFunction,post:_optionAssertions.assertFunction,inherits:_optionAssertions.assertFunction,visitor:function(loc,value){const obj=(0, _optionAssertions.assertObject)(loc,value);if(obj&&(Object.keys(obj).forEach((prop=>function(key,value){if(value&&"object"==typeof value)Object.keys(value).forEach((handler=>{if("enter"!==handler&&"exit"!==handler)throw new Error(`.visitor["${key}"] may only have .enter and/or .exit handlers.`)}));else if("function"!=typeof value)throw new Error(`.visitor["${key}"] must be a function`);return value}(prop,obj[prop]))),obj.enter||obj.exit))throw new Error(`${(0, _optionAssertions.msg)(loc)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return obj},parserOverride:_optionAssertions.assertFunction,generatorOverride:_optionAssertions.assertFunction};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/validation/removed.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/config-error.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");class ConfigError extends Error{constructor(message,filename){super(message),(0, _rewriteStackTrace.expectedError)(this),filename&&(0, _rewriteStackTrace.injcectVirtualStackFrame)(this,filename);}}exports.default=ConfigError;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.beginHiddenCallStack=function(fn){return SUPPORTED?Object.defineProperty((function(...args){return setupPrepareStackTrace(),fn(...args)}),"name",{value:STOP_HIDNG}):fn},exports.endHiddenCallStack=function(fn){return SUPPORTED?Object.defineProperty((function(...args){return fn(...args)}),"name",{value:START_HIDNG}):fn},exports.expectedError=function(error){if(!SUPPORTED)return;return expectedErrors.add(error),error},exports.injcectVirtualStackFrame=function(error,filename){if(!SUPPORTED)return;let frames=virtualFrames.get(error);frames||virtualFrames.set(error,frames=[]);return frames.push(function(filename){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>filename,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>filename})}(filename)),error};const ErrorToString=Function.call.bind(Error.prototype.toString),SUPPORTED=!!Error.captureStackTrace,START_HIDNG="startHiding - secret - don't use this - v1",STOP_HIDNG="stopHiding - secret - don't use this - v1",expectedErrors=new WeakSet,virtualFrames=new WeakMap;function setupPrepareStackTrace(){setupPrepareStackTrace=()=>{};const{prepareStackTrace=defaultPrepareStackTrace}=Error;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(err,trace){let newTrace=[];let status=expectedErrors.has(err)?"hiding":"unknown";for(let i=0;i<trace.length;i++){const name=trace[i].getFunctionName();if(name===START_HIDNG)status="hiding";else if(name===STOP_HIDNG){if("hiding"===status)status="showing",virtualFrames.has(err)&&newTrace.unshift(...virtualFrames.get(err));else if("unknown"===status){newTrace=trace;break}}else "hiding"!==status&&newTrace.push(trace[i]);}return prepareStackTrace(err,newTrace)};}function defaultPrepareStackTrace(err,trace){return 0===trace.length?ErrorToString(err):`${ErrorToString(err)}\n at ${trace.join("\n at ")}`}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/async.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value;}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw);}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(void 0);}))}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.forwardAsync=function(action,cb){const g=_gensync()(action);return withKind((kind=>{const adapted=g[kind];return cb(adapted)}))},exports.isAsync=void 0,exports.isThenable=isThenable,exports.maybeAsync=function(fn,message){return _gensync()({sync(...args){const result=fn.apply(this,args);if(isThenable(result))throw new Error(message);return result},async(...args){return Promise.resolve(fn.apply(this,args))}})},exports.waitFor=exports.onFirstPause=void 0;const runGenerator=_gensync()((function*(item){return yield*item})),isAsync=_gensync()({sync:()=>!1,errback:cb=>cb(null,!0)});exports.isAsync=isAsync;const withKind=_gensync()({sync:cb=>cb("sync"),async:(_ref=_asyncToGenerator((function*(cb){return cb("async")})),function(_x){return _ref.apply(this,arguments)})});var _ref;const onFirstPause=_gensync()({name:"onFirstPause",arity:2,sync:function(item){return runGenerator.sync(item)},errback:function(item,firstPause,cb){let completed=!1;runGenerator.errback(item,((err,value)=>{completed=!0,cb(err,value);})),completed||firstPause();}});exports.onFirstPause=onFirstPause;const waitFor=_gensync()({sync:x=>x,async:(_ref2=_asyncToGenerator((function*(x){return x})),function(_x2){return _ref2.apply(this,arguments)})});var _ref2;function isThenable(val){return !(!val||"object"!=typeof val&&"function"!=typeof val||!val.then||"function"!=typeof val.then)}exports.waitFor=waitFor;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/fs.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _fs(){const data=__webpack_require__("fs");return _fs=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stat=exports.readFile=void 0;const readFile=_gensync()({sync:_fs().readFileSync,errback:_fs().readFile});exports.readFile=readFile;const stat=_gensync()({sync:_fs().statSync,errback:_fs().stat});exports.stat=stat;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/functional.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.once=function(fn){let result,resultP;return function*(){if(result)return result;if(!(yield*(0, _async.isAsync)()))return result=yield*fn();if(resultP)return yield*(0, _async.waitFor)(resultP);let resolve,reject;resultP=new Promise(((res,rej)=>{resolve=res,reject=rej;}));try{return result=yield*fn(),resultP=null,resolve(result),result}catch(error){throw reject(error),error}}};var _async=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/async.js");},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(exports,"File",{enumerable:!0,get:function(){return _file.default}}),exports.OptionManager=void 0,exports.Plugin=function(alias){throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`)},Object.defineProperty(exports,"buildExternalHelpers",{enumerable:!0,get:function(){return _buildExternalHelpers.default}}),Object.defineProperty(exports,"createConfigItem",{enumerable:!0,get:function(){return _config.createConfigItem}}),Object.defineProperty(exports,"createConfigItemAsync",{enumerable:!0,get:function(){return _config.createConfigItemAsync}}),Object.defineProperty(exports,"createConfigItemSync",{enumerable:!0,get:function(){return _config.createConfigItemSync}}),Object.defineProperty(exports,"getEnv",{enumerable:!0,get:function(){return _environment.getEnv}}),Object.defineProperty(exports,"loadOptions",{enumerable:!0,get:function(){return _config.loadOptions}}),Object.defineProperty(exports,"loadOptionsAsync",{enumerable:!0,get:function(){return _config.loadOptionsAsync}}),Object.defineProperty(exports,"loadOptionsSync",{enumerable:!0,get:function(){return _config.loadOptionsSync}}),Object.defineProperty(exports,"loadPartialConfig",{enumerable:!0,get:function(){return _config.loadPartialConfig}}),Object.defineProperty(exports,"loadPartialConfigAsync",{enumerable:!0,get:function(){return _config.loadPartialConfigAsync}}),Object.defineProperty(exports,"loadPartialConfigSync",{enumerable:!0,get:function(){return _config.loadPartialConfigSync}}),Object.defineProperty(exports,"parse",{enumerable:!0,get:function(){return _parse.parse}}),Object.defineProperty(exports,"parseAsync",{enumerable:!0,get:function(){return _parse.parseAsync}}),Object.defineProperty(exports,"parseSync",{enumerable:!0,get:function(){return _parse.parseSync}}),Object.defineProperty(exports,"resolvePlugin",{enumerable:!0,get:function(){return _files.resolvePlugin}}),Object.defineProperty(exports,"resolvePreset",{enumerable:!0,get:function(){return _files.resolvePreset}}),Object.defineProperty(exports,"template",{enumerable:!0,get:function(){return _template().default}}),Object.defineProperty(exports,"tokTypes",{enumerable:!0,get:function(){return _parser().tokTypes}}),Object.defineProperty(exports,"transform",{enumerable:!0,get:function(){return _transform.transform}}),Object.defineProperty(exports,"transformAsync",{enumerable:!0,get:function(){return _transform.transformAsync}}),Object.defineProperty(exports,"transformFile",{enumerable:!0,get:function(){return _transformFile.transformFile}}),Object.defineProperty(exports,"transformFileAsync",{enumerable:!0,get:function(){return _transformFile.transformFileAsync}}),Object.defineProperty(exports,"transformFileSync",{enumerable:!0,get:function(){return _transformFile.transformFileSync}}),Object.defineProperty(exports,"transformFromAst",{enumerable:!0,get:function(){return _transformAst.transformFromAst}}),Object.defineProperty(exports,"transformFromAstAsync",{enumerable:!0,get:function(){return _transformAst.transformFromAstAsync}}),Object.defineProperty(exports,"transformFromAstSync",{enumerable:!0,get:function(){return _transformAst.transformFromAstSync}}),Object.defineProperty(exports,"transformSync",{enumerable:!0,get:function(){return _transform.transformSync}}),Object.defineProperty(exports,"traverse",{enumerable:!0,get:function(){return _traverse().default}}),exports.version=exports.types=void 0;var _file=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/file.js"),_buildExternalHelpers=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/tools/build-external-helpers.js"),_files=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/files/index.js"),_environment=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/environment.js");function _types(){const data=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");return _types=function(){return data},data}function _parser(){const data=__webpack_require__("./node_modules/.pnpm/@babel+parser@7.19.1/node_modules/@babel/parser/lib/index.js");return _parser=function(){return data},data}function _traverse(){const data=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}function _template(){const data=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js");return _template=function(){return data},data}Object.defineProperty(exports,"types",{enumerable:!0,get:function(){return _types()}});var _config=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/index.js"),_transform=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transform.js"),_transformFile=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transform-file.js"),_transformAst=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transform-ast.js"),_parse=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parse.js");exports.version="7.19.1";const DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]);exports.DEFAULT_EXTENSIONS=DEFAULT_EXTENSIONS;exports.OptionManager=class{init(opts){return (0, _config.loadOptionsSync)(opts)}};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parse.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.parse=void 0,exports.parseAsync=function(...args){return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.async)(...args)},exports.parseSync=function(...args){return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(...args)};var _config=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/index.js"),_parser=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parser/index.js"),_normalizeOpts=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/normalize-opts.js"),_rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const parseRunner=_gensync()((function*(code,opts){const config=yield*(0, _config.default)(opts);return null===config?null:yield*(0, _parser.default)(config.passes,(0, _normalizeOpts.default)(config),code)}));exports.parse=function(code,opts,callback){if("function"==typeof opts&&(callback=opts,opts=void 0),void 0===callback)return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code,opts);(0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.errback)(code,opts,callback);};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parser/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _parser(){const data=__webpack_require__("./node_modules/.pnpm/@babel+parser@7.19.1/node_modules/@babel/parser/lib/index.js");return _parser=function(){return data},data}function _codeFrame(){const data=__webpack_require__("./stubs/babel_codeframe.js");return _codeFrame=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function*(pluginPasses,{parserOpts,highlightCode=!0,filename="unknown"},code){try{const results=[];for(const plugins of pluginPasses)for(const plugin of plugins){const{parserOverride}=plugin;if(parserOverride){const ast=parserOverride(code,parserOpts,_parser().parse);void 0!==ast&&results.push(ast);}}if(0===results.length)return (0,_parser().parse)(code,parserOpts);if(1===results.length){if(yield*[],"function"==typeof results[0].then)throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");return results[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(err){"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"===err.code&&(err.message+="\nConsider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.");const{loc,missingPlugin}=err;if(loc){const codeFrame=(0, _codeFrame().codeFrameColumns)(code,{start:{line:loc.line,column:loc.column+1}},{highlightCode});err.message=missingPlugin?`${filename}: `+(0, _missingPluginHelper.default)(missingPlugin[0],loc,codeFrame):`${filename}: ${err.message}\n\n`+codeFrame,err.code="BABEL_PARSE_ERROR";}throw err}};var _missingPluginHelper=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js");},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(missingPluginName,loc,codeFrame){let helpMessage=`Support for the experimental syntax '${missingPluginName}' isn't currently enabled (${loc.line}:${loc.column+1}):\n\n`+codeFrame;const pluginInfo=pluginNameMap[missingPluginName];if(pluginInfo){const{syntax:syntaxPlugin,transform:transformPlugin}=pluginInfo;if(syntaxPlugin){const syntaxPluginInfo=getNameURLCombination(syntaxPlugin);if(transformPlugin){const transformPluginInfo=getNameURLCombination(transformPlugin),sectionType=transformPlugin.name.startsWith("@babel/plugin")?"plugins":"presets";helpMessage+=`\n\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`;}else helpMessage+=`\n\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable parsing.`;}}return helpMessage};const pluginNameMap={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-class-properties"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-class-properties"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-proposal-private-methods",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-private-methods"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block"},transform:{name:"@babel/plugin-proposal-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-class-static-block"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from"},transform:{name:"@babel/plugin-proposal-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-namespace-from"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"},transform:{name:"@babel/preset-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-flow"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"},transform:{name:"@babel/preset-react",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-react"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator"},transform:{name:"@babel/plugin-proposal-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-numeric-separator"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining"},transform:{name:"@babel/plugin-proposal-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-optional-chaining"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object"},transform:{name:"@babel/plugin-proposal-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-private-property-in-object"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"}},regexpUnicodeSets:{syntax:{name:"@babel/plugin-syntax-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md"},transform:{name:"@babel/plugin-proposal-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"},transform:{name:"@babel/preset-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"}},asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"},transform:{name:"@babel/plugin-proposal-async-generator-functions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-async-generator-functions"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators"},transform:{name:"@babel/plugin-proposal-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-logical-assignment-operators"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator"},transform:{name:"@babel/plugin-proposal-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread"},transform:{name:"@babel/plugin-proposal-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-object-rest-spread"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding"},transform:{name:"@babel/plugin-proposal-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-optional-catch-binding"}}};pluginNameMap.privateIn.syntax=pluginNameMap.privateIn.transform;const getNameURLCombination=({name,url})=>`${name} (${url})`;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/tools/build-external-helpers.js":(__unused_webpack_module,exports,__webpack_require__)=>{function helpers(){const data=__webpack_require__("./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/index.js");return helpers=function(){return data},data}function _generator(){const data=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/index.js");return _generator=function(){return data},data}function _template(){const data=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js");return _template=function(){return data},data}function _t(){const data=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");return _t=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(allowlist,outputType="global"){let tree;const build={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[outputType];if(!build)throw new Error(`Unsupported output type ${outputType}`);tree=build(allowlist);return (0, _generator().default)(tree).code};var _file=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/file.js");const{arrayExpression,assignmentExpression,binaryExpression,blockStatement,callExpression,cloneNode,conditionalExpression,exportNamedDeclaration,exportSpecifier,expressionStatement,functionExpression,identifier,memberExpression,objectExpression,program,stringLiteral,unaryExpression,variableDeclaration,variableDeclarator}=_t();function buildGlobal(allowlist){const namespace=identifier("babelHelpers"),body=[],container=functionExpression(null,[identifier("global")],blockStatement(body)),tree=program([expressionStatement(callExpression(container,[conditionalExpression(binaryExpression("===",unaryExpression("typeof",identifier("global")),stringLiteral("undefined")),identifier("self"),identifier("global"))]))]);return body.push(variableDeclaration("var",[variableDeclarator(namespace,assignmentExpression("=",memberExpression(identifier("global"),namespace),objectExpression([])))])),buildHelpers(body,namespace,allowlist),tree}function buildModule(allowlist){const body=[],refs=buildHelpers(body,null,allowlist);return body.unshift(exportNamedDeclaration(null,Object.keys(refs).map((name=>exportSpecifier(cloneNode(refs[name]),identifier(name)))))),program(body,[],"module")}function buildUmd(allowlist){const namespace=identifier("babelHelpers"),body=[];return body.push(variableDeclaration("var",[variableDeclarator(namespace,identifier("global"))])),buildHelpers(body,namespace,allowlist),program([(replacements={FACTORY_PARAMETERS:identifier("global"),BROWSER_ARGUMENTS:assignmentExpression("=",memberExpression(identifier("root"),namespace),objectExpression([])),COMMON_ARGUMENTS:identifier("exports"),AMD_ARGUMENTS:arrayExpression([stringLiteral("exports")]),FACTORY_BODY:body,UMD_ROOT:identifier("this")},_template().default.statement`
387 (function (root, factory) {
388 if (typeof define === "function" && define.amd) {
389 define(AMD_ARGUMENTS, factory);
390 } else if (typeof exports === "object") {
391 factory(COMMON_ARGUMENTS);
392 } else {
393 factory(BROWSER_ARGUMENTS);
394 }
395 })(UMD_ROOT, function (FACTORY_PARAMETERS) {
396 FACTORY_BODY
397 });
398 `(replacements))]);var replacements;}function buildVar(allowlist){const namespace=identifier("babelHelpers"),body=[];body.push(variableDeclaration("var",[variableDeclarator(namespace,objectExpression([]))]));const tree=program(body);return buildHelpers(body,namespace,allowlist),body.push(expressionStatement(namespace)),tree}function buildHelpers(body,namespace,allowlist){const getHelperReference=name=>namespace?memberExpression(namespace,identifier(name)):identifier(`_${name}`),refs={};return helpers().list.forEach((function(name){if(allowlist&&allowlist.indexOf(name)<0)return;const ref=refs[name]=getHelperReference(name);helpers().ensure(name,_file.default);const{nodes}=helpers().get(name,getHelperReference,ref);body.push(...nodes);})),refs}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transform-ast.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformFromAst=void 0,exports.transformFromAstAsync=function(...args){return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.async)(...args)},exports.transformFromAstSync=function(...args){return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(...args)};var _config=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/index.js"),_transformation=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/index.js"),_rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const transformFromAstRunner=_gensync()((function*(ast,code,opts){const config=yield*(0, _config.default)(opts);if(null===config)return null;if(!ast)throw new Error("No AST given");return yield*(0, _transformation.run)(config,code,ast)}));exports.transformFromAst=function(ast,code,optsOrCallback,maybeCallback){let opts,callback;if("function"==typeof optsOrCallback?(callback=optsOrCallback,opts=void 0):(opts=optsOrCallback,callback=maybeCallback),void 0===callback)return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(ast,code,opts);(0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.errback)(ast,code,opts,callback);};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transform-file.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformFile=function(...args){return transformFileRunner.errback(...args)},exports.transformFileAsync=function(...args){return transformFileRunner.async(...args)},exports.transformFileSync=function(...args){return transformFileRunner.sync(...args)};var _config=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/index.js"),_transformation=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/index.js"),fs=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/gensync-utils/fs.js");const transformFileRunner=_gensync()((function*(filename,opts){const options=Object.assign({},opts,{filename}),config=yield*(0, _config.default)(options);if(null===config)return null;const code=yield*fs.readFile(filename,"utf8");return yield*(0, _transformation.run)(config,code)}));},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transform.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _gensync(){const data=__webpack_require__("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.transform=void 0,exports.transformAsync=function(...args){return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.async)(...args)},exports.transformSync=function(...args){return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args)};var _config=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/index.js"),_transformation=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/index.js"),_rewriteStackTrace=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const transformRunner=_gensync()((function*(code,opts){const config=yield*(0, _config.default)(opts);return null===config?null:yield*(0, _transformation.run)(config,code)}));exports.transform=function(code,optsOrCallback,maybeCallback){let opts,callback;if("function"==typeof optsOrCallback?(callback=optsOrCallback,opts=void 0):(opts=optsOrCallback,callback=maybeCallback),void 0===callback)return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code,opts);(0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code,opts,callback);};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _traverse(){const data=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){LOADED_PLUGIN||(LOADED_PLUGIN=new _plugin.default(Object.assign({},blockHoistPlugin,{visitor:_traverse().default.explode(blockHoistPlugin.visitor)}),{}));return LOADED_PLUGIN};var _plugin=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/plugin.js");let LOADED_PLUGIN;function priority(bodyNode){const priority=null==bodyNode?void 0:bodyNode._blockHoist;return null==priority?1:!0===priority?2:priority}const blockHoistPlugin={name:"internal.blockHoist",visitor:{Block:{exit({node}){const{body}=node;let max=Math.pow(2,30)-1,hasChange=!1;for(let i=0;i<body.length;i++){const p=priority(body[i]);if(p>max){hasChange=!0;break}max=p;}hasChange&&(node.body=function(body){const buckets=Object.create(null);for(let i=0;i<body.length;i++){const n=body[i],p=priority(n);(buckets[p]||(buckets[p]=[])).push(n);}const keys=Object.keys(buckets).map((k=>+k)).sort(((a,b)=>b-a));let index=0;for(const key of keys){const bucket=buckets[key];for(const n of bucket)body[index++]=n;}return body}(body.slice()));}}}};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/file.js":(__unused_webpack_module,exports,__webpack_require__)=>{function helpers(){const data=__webpack_require__("./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/index.js");return helpers=function(){return data},data}function _traverse(){const data=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}function _codeFrame(){const data=__webpack_require__("./stubs/babel_codeframe.js");return _codeFrame=function(){return data},data}function _t(){const data=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");return _t=function(){return data},data}function _helperModuleTransforms(){const data=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/index.js");return _helperModuleTransforms=function(){return data},data}function _semver(){const data=__webpack_require__("./node_modules/.pnpm/semver@6.3.0/node_modules/semver/semver.js");return _semver=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const{cloneNode,interpreterDirective}=_t(),errorVisitor={enter(path,state){const loc=path.node.loc;loc&&(state.loc=loc,path.stop());}};class File{constructor(options,{code,ast,inputMap}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=void 0,this.ast=void 0,this.scope=void 0,this.metadata={},this.code="",this.inputMap=void 0,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=options,this.code=code,this.ast=ast,this.inputMap=inputMap,this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope;}get shebang(){const{interpreter}=this.path.node;return interpreter?interpreter.value:""}set shebang(value){value?this.path.get("interpreter").replaceWith(interpreterDirective(value)):this.path.get("interpreter").remove();}set(key,val){if("helpersNamespace"===key)throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(key,val);}get(key){return this._map.get(key)}has(key){return this._map.has(key)}getModuleName(){return (0, _helperModuleTransforms().getModuleName)(this.opts,this.opts)}addImport(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")}availableHelper(name,versionRange){let minVersion;try{minVersion=helpers().minVersion(name);}catch(err){if("BABEL_HELPER_UNKNOWN"!==err.code)throw err;return !1}return "string"!=typeof versionRange||(_semver().valid(versionRange)&&(versionRange=`^${versionRange}`),!_semver().intersects(`<${minVersion}`,versionRange)&&!_semver().intersects(">=8.0.0",versionRange))}addHelper(name){const declar=this.declarations[name];if(declar)return cloneNode(declar);const generator=this.get("helperGenerator");if(generator){const res=generator(name);if(res)return res}helpers().ensure(name,File);const uid=this.declarations[name]=this.scope.generateUidIdentifier(name),dependencies={};for(const dep of helpers().getDependencies(name))dependencies[dep]=this.addHelper(dep);const{nodes,globals}=helpers().get(name,(dep=>dependencies[dep]),uid,Object.keys(this.scope.getAllBindings()));return globals.forEach((name=>{this.path.scope.hasBinding(name,!0)&&this.path.scope.rename(name);})),nodes.forEach((node=>{node._compact=!0;})),this.path.unshiftContainer("body",nodes),this.path.get("body").forEach((path=>{-1!==nodes.indexOf(path.node)&&path.isVariableDeclaration()&&this.scope.registerDeclaration(path);})),uid}addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")}buildCodeFrameError(node,msg,_Error=SyntaxError){let loc=node&&(node.loc||node._loc);if(!loc&&node){const state={loc:null};(0, _traverse().default)(node,errorVisitor,this.scope,state),loc=state.loc;let txt="This is an error on an internal node. Probably an internal error.";loc&&(txt+=" Location has been estimated."),msg+=` (${txt})`;}if(loc){const{highlightCode=!0}=this.opts;msg+="\n"+(0, _codeFrame().codeFrameColumns)(this.code,{start:{line:loc.start.line,column:loc.start.column+1},end:loc.end&&loc.start.line===loc.end.line?{line:loc.end.line,column:loc.end.column+1}:void 0},{highlightCode});}return new _Error(msg)}}exports.default=File;},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/generate.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _convertSourceMap(){const data=__webpack_require__("./node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js");return _convertSourceMap=function(){return data},data}function _generator(){const data=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/index.js");return _generator=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(pluginPasses,file){const{opts,ast,code,inputMap}=file,{generatorOpts}=opts,results=[];for(const plugins of pluginPasses)for(const plugin of plugins){const{generatorOverride}=plugin;if(generatorOverride){const result=generatorOverride(ast,generatorOpts,code,_generator().default);void 0!==result&&results.push(result);}}let result;if(0===results.length)result=(0, _generator().default)(ast,generatorOpts,code);else {if(1!==results.length)throw new Error("More than one plugin attempted to override codegen.");if(result=results[0],"function"==typeof result.then)throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}let{code:outputCode,decodedMap:outputMap=result.map}=result;outputMap&&(outputMap=inputMap?(0, _mergeMap.default)(inputMap.toObject(),outputMap,generatorOpts.sourceFileName):result.map);"inline"!==opts.sourceMaps&&"both"!==opts.sourceMaps||(outputCode+="\n"+_convertSourceMap().fromObject(outputMap).toComment());"inline"===opts.sourceMaps&&(outputMap=null);return {outputCode,outputMap}};var _mergeMap=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/merge-map.js");},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/merge-map.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _remapping(){const data=__webpack_require__("./node_modules/.pnpm/@ampproject+remapping@2.2.0/node_modules/@ampproject/remapping/dist/remapping.mjs");return _remapping=function(){return data},data}function rootless(map){return Object.assign({},map,{sourceRoot:null})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(inputMap,map,sourceFileName){const source=sourceFileName.replace(/\\/g,"/");let found=!1;const result=_remapping()(rootless(map),((s,ctx)=>s!==source||found?null:(found=!0,ctx.source="",rootless(inputMap))));"string"==typeof inputMap.sourceRoot&&(result.sourceRoot=inputMap.sourceRoot);return Object.assign({},result)};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _traverse(){const data=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.run=function*(config,code,ast){const file=yield*(0, _normalizeFile.default)(config.passes,(0, _normalizeOpts.default)(config),code,ast),opts=file.opts;try{yield*function*(file,pluginPasses){for(const pluginPairs of pluginPasses){const passPairs=[],passes=[],visitors=[];for(const plugin of pluginPairs.concat([(0,_blockHoistPlugin.default)()])){const pass=new _pluginPass.default(file,plugin.key,plugin.options);passPairs.push([plugin,pass]),passes.push(pass),visitors.push(plugin.visitor);}for(const[plugin,pass]of passPairs){const fn=plugin.pre;if(fn){const result=fn.call(pass,file);if(yield*[],isThenable(result))throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}const visitor=_traverse().default.visitors.merge(visitors,passes,file.opts.wrapPluginVisitorMethod);(0,_traverse().default)(file.ast,visitor,file.scope);for(const[plugin,pass]of passPairs){const fn=plugin.post;if(fn){const result=fn.call(pass,file);if(yield*[],isThenable(result))throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}}}(file,config.passes);}catch(e){var _opts$filename;throw e.message=`${null!=(_opts$filename=opts.filename)?_opts$filename:"unknown file"}: ${e.message}`,e.code||(e.code="BABEL_TRANSFORM_ERROR"),e}let outputCode,outputMap;try{!1!==opts.code&&({outputCode,outputMap}=(0,_generate.default)(config.passes,file));}catch(e){var _opts$filename2;throw e.message=`${null!=(_opts$filename2=opts.filename)?_opts$filename2:"unknown file"}: ${e.message}`,e.code||(e.code="BABEL_GENERATE_ERROR"),e}return {metadata:file.metadata,options:opts,ast:!0===opts.ast?file.ast:null,code:void 0===outputCode?null:outputCode,map:void 0===outputMap?null:outputMap,sourceType:file.ast.program.sourceType,externalDependencies:(0, _deepArray.flattenToSet)(config.externalDependencies)}};var _pluginPass=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/plugin-pass.js"),_blockHoistPlugin=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"),_normalizeOpts=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/normalize-opts.js"),_normalizeFile=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/normalize-file.js"),_generate=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/generate.js"),_deepArray=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/config/helpers/deep-array.js");function isThenable(val){return !(!val||"object"!=typeof val&&"function"!=typeof val||!val.then||"function"!=typeof val.then)}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/normalize-file.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _fs(){const data=__webpack_require__("fs");return _fs=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _debug(){const data=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return _debug=function(){return data},data}function _t(){const data=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");return _t=function(){return data},data}function _convertSourceMap(){const data=__webpack_require__("./node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js");return _convertSourceMap=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function*(pluginPasses,options,code,ast){if(code=`${code||""}`,ast){if("Program"===ast.type)ast=file(ast,[],[]);else if("File"!==ast.type)throw new Error("AST root must be a Program or File node");options.cloneInputAst&&(ast=(0, _cloneDeep.default)(ast));}else ast=yield*(0, _parser.default)(pluginPasses,options,code);let inputMap=null;if(!1!==options.inputSourceMap){if("object"==typeof options.inputSourceMap&&(inputMap=_convertSourceMap().fromObject(options.inputSourceMap)),!inputMap){const lastComment=extractComments(INLINE_SOURCEMAP_REGEX,ast);if(lastComment)try{inputMap=_convertSourceMap().fromComment(lastComment);}catch(err){debug("discarding unknown inline input sourcemap",err);}}if(!inputMap){const lastComment=extractComments(EXTERNAL_SOURCEMAP_REGEX,ast);if("string"==typeof options.filename&&lastComment)try{const match=EXTERNAL_SOURCEMAP_REGEX.exec(lastComment),inputMapContent=_fs().readFileSync(_path().resolve(_path().dirname(options.filename),match[1]));inputMapContent.length>3e6?debug("skip merging input map > 1 MB"):inputMap=_convertSourceMap().fromJSON(inputMapContent);}catch(err){debug("discarding unknown file input sourcemap",err);}else lastComment&&debug("discarding un-loadable file input sourcemap");}}return new _file.default(options,{code,ast,inputMap})};var _file=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/file/file.js"),_parser=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/parser/index.js"),_cloneDeep=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/util/clone-deep.js");const{file,traverseFast}=_t(),debug=_debug()("babel:transform:file");const INLINE_SOURCEMAP_REGEX=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,EXTERNAL_SOURCEMAP_REGEX=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function extractCommentsFromList(regex,comments,lastComment){return comments&&(comments=comments.filter((({value})=>!regex.test(value)||(lastComment=value,!1)))),[comments,lastComment]}function extractComments(regex,ast){let lastComment=null;return traverseFast(ast,(node=>{[node.leadingComments,lastComment]=extractCommentsFromList(regex,node.leadingComments,lastComment),[node.innerComments,lastComment]=extractCommentsFromList(regex,node.innerComments,lastComment),[node.trailingComments,lastComment]=extractCommentsFromList(regex,node.trailingComments,lastComment);})),lastComment}},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/normalize-opts.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(config){const{filename,cwd,filenameRelative="string"==typeof filename?_path().relative(cwd,filename):"unknown",sourceType="module",inputSourceMap,sourceMaps=!!inputSourceMap,sourceRoot=config.options.moduleRoot,sourceFileName=_path().basename(filenameRelative),comments=!0,compact="auto"}=config.options,opts=config.options,options=Object.assign({},opts,{parserOpts:Object.assign({sourceType:".mjs"===_path().extname(filenameRelative)?"module":sourceType,sourceFileName:filename,plugins:[]},opts.parserOpts),generatorOpts:Object.assign({filename,auxiliaryCommentBefore:opts.auxiliaryCommentBefore,auxiliaryCommentAfter:opts.auxiliaryCommentAfter,retainLines:opts.retainLines,comments,shouldPrintComment:opts.shouldPrintComment,compact,minified:opts.minified,sourceMaps,sourceRoot,sourceFileName},opts.generatorOpts)});for(const plugins of config.passes)for(const plugin of plugins)plugin.manipulateOptions&&plugin.manipulateOptions(options,options.parserOpts);return options};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/plugin-pass.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;class PluginPass{constructor(file,key,options){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=key,this.file=file,this.opts=options||{},this.cwd=file.opts.cwd,this.filename=file.opts.filename;}set(key,val){this._map.set(key,val);}get(key){return this._map.get(key)}availableHelper(name,versionRange){return this.file.availableHelper(name,versionRange)}addHelper(name){return this.file.addHelper(name)}addImport(){return this.file.addImport()}buildCodeFrameError(node,msg,_Error){return this.file.buildCodeFrameError(node,msg,_Error)}}exports.default=PluginPass,PluginPass.prototype.getModuleName=function(){return this.file.getModuleName()};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/transformation/util/clone-deep.js":(__unused_webpack_module,exports)=>{function deepClone(value,cache){if(null!==value){if(cache.has(value))return cache.get(value);let cloned;if(Array.isArray(value)){cloned=new Array(value.length);for(let i=0;i<value.length;i++)cloned[i]="object"!=typeof value[i]?value[i]:deepClone(value[i],cache);}else {cloned={};const keys=Object.keys(value);for(let i=0;i<keys.length;i++){const key=keys[i];cloned[key]="object"!=typeof value[key]?value[key]:deepClone(value[key],cache);}}return cache.set(value,cloned),cloned}return value}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(value){return "object"!=typeof value?value:deepClone(value,new Map)};},"./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/vendor/import-meta-resolve.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _url(){const data=__webpack_require__("url");return _url=function(){return data},data}function _fs(){const data=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return {default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key];}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("fs"),!0);return _fs=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _assert(){const data=__webpack_require__("assert");return _assert=function(){return data},data}function _util(){const data=__webpack_require__("util");return _util=function(){return data},data}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return (_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value;}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw);}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(void 0);}))}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.moduleResolve=moduleResolve,exports.resolve=function(_x,_x2){return _resolve.apply(this,arguments)};var re$3={exports:{}};var constants={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var debug_1="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};!function(module,exports){const{MAX_SAFE_COMPONENT_LENGTH}=constants,debug=debug_1,re=(exports=module.exports={}).re=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value,isGlobal)=>{const index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0);};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}(re$3,re$3.exports);const opts=["includePrerelease","loose","rtl"];var parseOptions_1=options=>options?"object"!=typeof options?{loose:!0}:opts.filter((k=>options[k])).reduce(((o,k)=>(o[k]=!0,o)),{}):{};const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1};var identifiers={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers:(a,b)=>compareIdentifiers$1(b,a)};const debug=debug_1,{MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_INTEGER}=constants,{re:re$2,t:t$2}=re$3.exports,parseOptions$1=parseOptions_1,{compareIdentifiers}=identifiers;class SemVer$c{constructor(version,options){if(options=parseOptions$1(options),version instanceof SemVer$c){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version;}else if("string"!=typeof version)throw new TypeError(`Invalid Version: ${version}`);if(version.length>MAX_LENGTH$1)throw new TypeError(`version is longer than ${MAX_LENGTH$1} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re$2[t$2.LOOSE]:re$2[t$2.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id})):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer$c)){if("string"==typeof other&&other===this.version)return 0;other=new SemVer$c(other,this.options);}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer$c||(other=new SemVer$c(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer$c||(other=new SemVer$c(other,this.options)),this.prerelease.length&&!other.prerelease.length)return -1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return -1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer$c||(other=new SemVer$c(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return -1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}inc(release,identifier){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier),this.inc("pre",identifier);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",identifier),this.inc("pre",identifier);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else {let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0);}identifier&&(0===compareIdentifiers(this.prerelease[0],identifier)?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error(`invalid increment argument: ${release}`)}return this.format(),this.raw=this.version,this}}var semver$2=SemVer$c;const{MAX_LENGTH}=constants,{re:re$1,t:t$1}=re$3.exports,SemVer$b=semver$2,parseOptions=parseOptions_1;var parse_1=(version,options)=>{if(options=parseOptions(options),version instanceof SemVer$b)return version;if("string"!=typeof version)return null;if(version.length>MAX_LENGTH)return null;if(!(options.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]).test(version))return null;try{return new SemVer$b(version,options)}catch(er){return null}};const parse$4=parse_1;var valid_1=(version,options)=>{const v=parse$4(version,options);return v?v.version:null};const parse$3=parse_1;var clean_1=(version,options)=>{const s=parse$3(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};const SemVer$a=semver$2;var inc_1=(version,release,options,identifier)=>{"string"==typeof options&&(identifier=options,options=void 0);try{return new SemVer$a(version instanceof SemVer$a?version.version:version,options).inc(release,identifier).version}catch(er){return null}};const SemVer$9=semver$2;var compare_1=(a,b,loose)=>new SemVer$9(a,loose).compare(new SemVer$9(b,loose));const compare$9=compare_1;var eq_1=(a,b,loose)=>0===compare$9(a,b,loose);const parse$2=parse_1,eq$1=eq_1;var diff_1=(version1,version2)=>{if(eq$1(version1,version2))return null;{const v1=parse$2(version1),v2=parse$2(version2),hasPre=v1.prerelease.length||v2.prerelease.length,prefix=hasPre?"pre":"",defaultResult=hasPre?"prerelease":"";for(const key in v1)if(("major"===key||"minor"===key||"patch"===key)&&v1[key]!==v2[key])return prefix+key;return defaultResult}};const SemVer$8=semver$2;var major_1=(a,loose)=>new SemVer$8(a,loose).major;const SemVer$7=semver$2;var minor_1=(a,loose)=>new SemVer$7(a,loose).minor;const SemVer$6=semver$2;var patch_1=(a,loose)=>new SemVer$6(a,loose).patch;const parse$1=parse_1;var prerelease_1=(version,options)=>{const parsed=parse$1(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};const compare$8=compare_1;var rcompare_1=(a,b,loose)=>compare$8(b,a,loose);const compare$7=compare_1;var compareLoose_1=(a,b)=>compare$7(a,b,!0);const SemVer$5=semver$2;var compareBuild_1=(a,b,loose)=>{const versionA=new SemVer$5(a,loose),versionB=new SemVer$5(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};const compareBuild$1=compareBuild_1;var sort_1=(list,loose)=>list.sort(((a,b)=>compareBuild$1(a,b,loose)));const compareBuild=compareBuild_1;var rsort_1=(list,loose)=>list.sort(((a,b)=>compareBuild(b,a,loose)));const compare$6=compare_1;var gt_1=(a,b,loose)=>compare$6(a,b,loose)>0;const compare$5=compare_1;var lt_1=(a,b,loose)=>compare$5(a,b,loose)<0;const compare$4=compare_1;var neq_1=(a,b,loose)=>0!==compare$4(a,b,loose);const compare$3=compare_1;var gte_1=(a,b,loose)=>compare$3(a,b,loose)>=0;const compare$2=compare_1;var lte_1=(a,b,loose)=>compare$2(a,b,loose)<=0;const eq=eq_1,neq=neq_1,gt$2=gt_1,gte$1=gte_1,lt$1=lt_1,lte$1=lte_1;var cmp_1=(a,op,b,loose)=>{switch(op){case"===":return "object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return "object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt$2(a,b,loose);case">=":return gte$1(a,b,loose);case"<":return lt$1(a,b,loose);case"<=":return lte$1(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};const SemVer$4=semver$2,parse=parse_1,{re,t}=re$3.exports;var iterator,hasRequiredIterator,yallist,hasRequiredYallist,lruCache,hasRequiredLruCache,range,hasRequiredRange,comparator,hasRequiredComparator,coerce_1=(version,options)=>{if(version instanceof SemVer$4)return version;if("number"==typeof version&&(version=String(version)),"string"!=typeof version)return null;let match=null;if((options=options||{}).rtl){let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)match&&next.index+next[0].length===match.index+match[0].length||(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1;}else match=version.match(re[t.COERCE]);return null===match?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};function requireYallist(){if(hasRequiredYallist)return yallist;function Yallist(list){var self=this;if(self instanceof Yallist||(self=new Yallist),self.tail=null,self.head=null,self.length=0,list&&"function"==typeof list.forEach)list.forEach((function(item){self.push(item);}));else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self.push(arguments[i]);return self}function insert(self,node,value){var inserted=node===self.head?new Node(value,null,node,self):new Node(value,node,node.next,self);return null===inserted.next&&(self.tail=inserted),null===inserted.prev&&(self.head=inserted),self.length++,inserted}function push(self,item){self.tail=new Node(item,self.tail,null,self),self.head||(self.head=self.tail),self.length++;}function unshift(self,item){self.head=new Node(item,null,self.head,self),self.tail||(self.tail=self.head),self.length++;}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null;}hasRequiredYallist=1,yallist=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++;}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++;}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;null!==walker;i++)fn.call(thisp,walker.value,i,this),walker=walker.next;},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;null!==walker;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev;},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;null!==walker&&i<n;i++)walker=walker.next;if(i===n&&null!==walker)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;null!==walker&&i<n;i++)walker=walker.prev;if(i===n&&null!==walker)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;null!==walker;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;null!==walker;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else {if(!this.head)throw new TypeError("Reduce of empty list with no initial value");walker=this.head.next,acc=this.head.value;}for(var i=0;null!==walker;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else {if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");walker=this.tail.prev,acc=this.tail.value;}for(var i=this.length-1;null!==walker;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;null!==walker;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;null!==walker;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){(to=to||this.length)<0&&(to+=this.length),(from=from||0)<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;null!==walker&&i<from;i++)walker=walker.next;for(;null!==walker&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){(to=to||this.length)<0&&(to+=this.length),(from=from||0)<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;null!==walker&&i>to;i--)walker=walker.prev;for(;null!==walker&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;null!==walker&&i<start;i++)walker=walker.next;var ret=[];for(i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);null===walker&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;null!==walker;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p;}return this.head=tail,this.tail=head,this};try{(hasRequiredIterator?iterator:(hasRequiredIterator=1,iterator=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value;};}))(Yallist);}catch(er){}return yallist}function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split("||").map((r=>this.parseRange(r.trim()))).filter((c=>c.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${range}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter((c=>!isNullSet(c[0]))),0===this.set.length)this.set=[first];else if(this.set.length>1)for(const c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.format();}format(){return this.range=this.set.map((comps=>comps.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(range){range=range.trim();const memoKey=`parseRange:${Object.keys(this.options).join(",")}:${range}`,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range);let rangeList=(range=(range=(range=range.replace(re[t.TILDETRIM],tildeTrimReplace)).replace(re[t.CARETTRIM],caretTrimReplace)).split(/\s+/).join(" ")).split(" ").map((comp=>parseComparator(comp,this.options))).join(" ").split(/\s+/).map((comp=>replaceGTE0(comp,this.options)));loose&&(rangeList=rangeList.filter((comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE]))))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map((comp=>new Comparator(comp,this.options)));for(const comp of comparators){if(isNullSet(comp))return [comp];rangeMap.set(comp.value,comp);}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some((rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every((thisComparator=>rangeComparators.every((rangeComparator=>thisComparator.intersects(rangeComparator,options)))))))))}test(version){if(!version)return !1;if("string"==typeof version)try{version=new SemVer(version,this.options);}catch(er){return !1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return !0;return !1}}range=Range;const LRU=function(){if(hasRequiredLruCache)return lruCache;hasRequiredLruCache=1;const Yallist=requireYallist(),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1,get=(self,key,doUse)=>{const node=self[CACHE].get(key);if(node){const hit=node.value;if(isStale(self,hit)){if(del(self,node),!self[ALLOW_STALE])return}else doUse&&(self[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self,hit)=>{if(!hit||!hit.maxAge&&!self[MAX_AGE])return !1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self[MAX_AGE]&&diff>self[MAX_AGE]},trim=self=>{if(self[LENGTH]>self[MAX])for(let walker=self[LRU_LIST].tail;self[LENGTH]>self[MAX]&&null!==walker;){const prev=walker.prev;del(self,walker),walker=prev;}},del=(self,node)=>{if(node){const hit=node.value;self[DISPOSE]&&self[DISPOSE](hit.key,hit.value),self[LENGTH]-=hit.length,self[CACHE].delete(hit.key),self[LRU_LIST].removeNode(node);}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0;}}const forEachStep=(self,fn,node,thisp)=>{let hit=node.value;isStale(self,hit)&&(del(self,node),self[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self);};return lruCache=class{constructor(options){if("number"==typeof options&&(options={max:options}),options||(options={}),options.max&&("number"!=typeof options.max||options.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options.max||1/0;const lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]="function"!=typeof lc?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&"number"!=typeof options.maxAge)throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset();}set max(mL){if("number"!=typeof mL||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this);}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale;}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if("number"!=typeof mA)throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this);}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){"function"!=typeof lC&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach((hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length;}))),trim(this);}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;null!==walker;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev;}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;null!==walker;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next;}}keys(){return this[LRU_LIST].toArray().map((k=>k.key))}values(){return this[LRU_LIST].toArray().map((k=>k.value))}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach((hit=>this[DISPOSE](hit.key,hit.value))),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0;}dump(){return this[LRU_LIST].map((hit=>!isStale(this,hit)&&{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)})).toArray().filter((h=>h))}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if((maxAge=maxAge||this[MAX_AGE])&&"number"!=typeof maxAge)throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return !1;const hit=this[CACHE].get(key).value;return !isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key));}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(0===expiresAt)this.set(hit.k,hit.v);else {const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge);}}}prune(){this[CACHE].forEach(((value,key)=>get(this,key,!1)));}}}(),cache=new LRU({max:1e3}),parseOptions=parseOptions_1,Comparator=requireComparator(),debug=debug_1,SemVer=semver$2,{re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=re$3.exports,isNullSet=c=>"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every((otherComparator=>testComparator.intersects(otherComparator,options))),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceTilde(c,options))).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret}))},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceCaret(c,options))).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret}))},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map((c=>replaceXRange(c,options))).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,((ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return "="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret}))},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return !1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return !0}return !1}return !0};return range}function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value;}debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this);}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY;}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return !0;if("string"==typeof version)try{version=new SemVer(version,this.options);}catch(er){return !1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),""===this.operator)return ""===this.value||new Range(comp.value,options).test(this.value);if(""===comp.operator)return ""===comp.value||new Range(this.value,options).test(comp.semver);const sameDirectionIncreasing=!(">="!==this.operator&&">"!==this.operator||">="!==comp.operator&&">"!==comp.operator),sameDirectionDecreasing=!("<="!==this.operator&&"<"!==this.operator||"<="!==comp.operator&&"<"!==comp.operator),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=!(">="!==this.operator&&"<="!==this.operator||">="!==comp.operator&&"<="!==comp.operator),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(">="===this.operator||">"===this.operator)&&("<="===comp.operator||"<"===comp.operator),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&("<="===this.operator||"<"===this.operator)&&(">="===comp.operator||">"===comp.operator);return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan}}comparator=Comparator;const parseOptions=parseOptions_1,{re,t}=re$3.exports,cmp=cmp_1,debug=debug_1,SemVer=semver$2,Range=requireRange();return comparator}const Range$8=requireRange();var satisfies_1=(version,range,options)=>{try{range=new Range$8(range,options);}catch(er){return !1}return range.test(version)};const Range$7=requireRange();var toComparators_1=(range,options)=>new Range$7(range,options).set.map((comp=>comp.map((c=>c.value)).join(" ").trim().split(" ")));const SemVer$3=semver$2,Range$6=requireRange();var maxSatisfying_1=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range$6(range,options);}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(max&&-1!==maxSV.compare(v)||(max=v,maxSV=new SemVer$3(max,options)));})),max};const SemVer$2=semver$2,Range$5=requireRange();var minSatisfying_1=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range$5(range,options);}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(min&&1!==minSV.compare(v)||(min=v,minSV=new SemVer$2(min,options)));})),min};const SemVer$1=semver$2,Range$4=requireRange(),gt$1=gt_1;var minVersion_1=(range,loose)=>{range=new Range$4(range,loose);let minver=new SemVer$1("0.0.0");if(range.test(minver))return minver;if(minver=new SemVer$1("0.0.0-0"),range.test(minver))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach((comparator=>{const compver=new SemVer$1(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":setMin&&!gt$1(compver,setMin)||(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}})),!setMin||minver&&!gt$1(minver,setMin)||(minver=setMin);}return minver&&range.test(minver)?minver:null};const Range$3=requireRange();var valid=(range,options)=>{try{return new Range$3(range,options).range||"*"}catch(er){return null}};const SemVer=semver$2,Comparator$1=requireComparator(),{ANY:ANY$1}=Comparator$1,Range$2=requireRange(),satisfies$2=satisfies_1,gt=gt_1,lt=lt_1,lte=lte_1,gte=gte_1;var outside_1=(version,range,hilo,options)=>{let gtfn,ltefn,ltfn,comp,ecomp;switch(version=new SemVer(version,options),range=new Range$2(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$2(version,range,options))return !1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach((comparator=>{comparator.semver===ANY$1&&(comparator=new Comparator$1(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator);})),high.operator===comp||high.operator===ecomp)return !1;if((!low.operator||low.operator===comp)&&ltefn(version,low.semver))return !1;if(low.operator===ecomp&&ltfn(version,low.semver))return !1}return !0};const outside$1=outside_1;var gtr_1=(version,range,options)=>outside$1(version,range,">",options);const outside=outside_1;var ltr_1=(version,range,options)=>outside(version,range,"<",options);const Range$1=requireRange();var intersects_1=(r1,r2,options)=>(r1=new Range$1(r1,options),r2=new Range$1(r2,options),r1.intersects(r2));const satisfies$1=satisfies_1,compare$1=compare_1;const Range=requireRange(),Comparator=requireComparator(),{ANY}=Comparator,satisfies=satisfies_1,compare=compare_1,simpleSubset=(sub,dom,options)=>{if(sub===dom)return !0;if(1===sub.length&&sub[0].semver===ANY){if(1===dom.length&&dom[0].semver===ANY)return !0;sub=options.includePrerelease?[new Comparator(">=0.0.0-0")]:[new Comparator(">=0.0.0")];}if(1===dom.length&&dom[0].semver===ANY){if(options.includePrerelease)return !0;dom=[new Comparator(">=0.0.0")];}const eqSet=new Set;let gt,lt,gtltComp,higher,lower,hasDomLT,hasDomGT;for(const c of sub)">"===c.operator||">="===c.operator?gt=higherGT(gt,c,options):"<"===c.operator||"<="===c.operator?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;if(gt&&lt){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(0===gtltComp&&(">="!==gt.operator||"<="!==lt.operator))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options))return null;if(lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return !1;return !0}let needDomLTPre=!(!lt||options.includePrerelease||!lt.semver.prerelease.length)&&lt.semver,needDomGTPre=!(!gt||options.includePrerelease||!gt.semver.prerelease.length)&&gt.semver;needDomLTPre&&1===needDomLTPre.prerelease.length&&"<"===lt.operator&&0===needDomLTPre.prerelease[0]&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||">"===c.operator||">="===c.operator,hasDomLT=hasDomLT||"<"===c.operator||"<="===c.operator,gt)if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),">"===c.operator||">="===c.operator){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return !1}else if(">="===gt.operator&&!satisfies(gt.semver,String(c),options))return !1;if(lt)if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),"<"===c.operator||"<="===c.operator){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return !1}else if("<="===lt.operator&&!satisfies(lt.semver,String(c),options))return !1;if(!c.operator&&(lt||gt)&&0!==gtltComp)return !1}return !(gt&&hasDomLT&&!lt&&0!==gtltComp)&&(!(lt&&hasDomGT&&!gt&&0!==gtltComp)&&(!needDomGTPre&&!needDomLTPre))},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||">"===b.operator&&">="===a.operator?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||"<"===b.operator&&"<="===a.operator?b:a};var subset_1=(sub,dom,options={})=>{if(sub===dom)return !0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||null!==isSub,isSub)continue OUTER}if(sawNonNull)return !1}return !0};const internalRe=re$3.exports;var semver$1={re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,SemVer:semver$2,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers,parse:parse_1,valid:valid_1,clean:clean_1,inc:inc_1,diff:diff_1,major:major_1,minor:minor_1,patch:patch_1,prerelease:prerelease_1,compare:compare_1,rcompare:rcompare_1,compareLoose:compareLoose_1,compareBuild:compareBuild_1,sort:sort_1,rsort:rsort_1,gt:gt_1,lt:lt_1,eq:eq_1,neq:neq_1,gte:gte_1,lte:lte_1,cmp:cmp_1,coerce:coerce_1,Comparator:requireComparator(),Range:requireRange(),satisfies:satisfies_1,toComparators:toComparators_1,maxSatisfying:maxSatisfying_1,minSatisfying:minSatisfying_1,minVersion:minVersion_1,validRange:valid,outside:outside_1,gtr:gtr_1,ltr:ltr_1,intersects:intersects_1,simplifyRange:(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort(((a,b)=>compare$1(a,b,options)));for(const version of v){satisfies$1(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);}first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):max||min!==v[0]?max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`):ranges.push("*");const simplified=ranges.join(" || "),original="string"==typeof range.raw?range.raw:String(range);return simplified.length<original.length?simplified:range},subset:subset_1},semver=semver$1;const reader={read:function(jsonPath){return find(_path().dirname(jsonPath))}};function find(dir){try{return {string:_fs().default.readFileSync(_path().toNamespacedPath(_path().join(dir,"package.json")),"utf8")}}catch(error){if("ENOENT"===error.code){const parent=_path().dirname(dir);return dir!==parent?find(parent):{string:void 0}}throw error}}const isWindows="win32"===process.platform,own$1={}.hasOwnProperty,codes={},messages=new Map;let userStackTraceLimit;function createError(sym,value,def){return messages.set(sym,value),function(Base,key){return NodeError;function NodeError(...args){const limit=Error.stackTraceLimit;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=0);const error=new Base;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=limit);const message=function(key,args,self){const message=messages.get(key);if("function"==typeof message)return _assert()(message.length<=args.length,`Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`),Reflect.apply(message,self,args);const expectedLength=(message.match(/%[dfijoOs]/g)||[]).length;return _assert()(expectedLength===args.length,`Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`),0===args.length?message:(args.unshift(message),Reflect.apply(_util().format,null,args))}(key,args,error);return Object.defineProperty(error,"message",{value:message,enumerable:!1,writable:!0,configurable:!0}),Object.defineProperty(error,"toString",{value(){return `${this.name} [${key}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}),addCodeToName(error,Base.name,key),error.code=key,error}}(def,sym)}codes.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",((request,reason,base)=>`Invalid module "${request}" ${reason}${base?` imported from ${base}`:""}`),TypeError),codes.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",((path,base,message)=>`Invalid package config ${path}${base?` while importing ${base}`:""}${message?`. ${message}`:""}`),Error),codes.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",((pkgPath,key,target,isImport=!1,base)=>{const relError="string"==typeof target&&!isImport&&target.length>0&&!target.startsWith("./");return "."===key?(_assert()(!1===isImport),`Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base?` imported from ${base}`:""}${relError?'; targets must start with "./"':""}`):`Invalid "${isImport?"imports":"exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${pkgPath}package.json${base?` imported from ${base}`:""}${relError?'; targets must start with "./"':""}`}),Error),codes.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",((path,base,type="package")=>`Cannot find ${type} '${path}' imported from ${base}`),Error),codes.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",((specifier,packagePath,base)=>`Package import specifier "${specifier}" is not defined${packagePath?` in package ${packagePath}package.json`:""} imported from ${base}`),TypeError),codes.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",((pkgPath,subpath,base)=>"."===subpath?`No "exports" main defined in ${pkgPath}package.json${base?` imported from ${base}`:""}`:`Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base?` imported from ${base}`:""}`),Error),codes.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),codes.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",'Unknown file extension "%s" for %s',TypeError),codes.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",((name,value,reason="is invalid")=>{let inspected=(0, _util().inspect)(value);inspected.length>128&&(inspected=`${inspected.slice(0,128)}...`);return `The ${name.includes(".")?"property":"argument"} '${name}' ${reason}. Received ${inspected}`}),TypeError),codes.ERR_UNSUPPORTED_ESM_URL_SCHEME=createError("ERR_UNSUPPORTED_ESM_URL_SCHEME",(url=>{let message="Only file and data URLs are supported by the default ESM loader";return isWindows&&2===url.protocol.length&&(message+=". On Windows, absolute paths must be valid file:// URLs"),message+=`. Received protocol '${url.protocol}'`,message}),Error);const addCodeToName=hideStackFrames((function(error,name,code){(error=captureLargerStackTrace(error)).name=`${name} [${code}]`,error.stack,"SystemError"===name?Object.defineProperty(error,"name",{value:name,enumerable:!1,writable:!0,configurable:!0}):delete error.name;}));function isErrorStackTraceLimitWritable(){const desc=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===desc?Object.isExtensible(Error):own$1.call(desc,"writable")?desc.writable:void 0!==desc.set}function hideStackFrames(fn){const hidden="__node_internal_"+fn.name;return Object.defineProperty(fn,"name",{value:hidden}),fn}const captureLargerStackTrace=hideStackFrames((function(error){const stackTraceLimitIsWritable=isErrorStackTraceLimitWritable();return stackTraceLimitIsWritable&&(userStackTraceLimit=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(error),stackTraceLimitIsWritable&&(Error.stackTraceLimit=userStackTraceLimit),error}));const{ERR_UNKNOWN_FILE_EXTENSION}=codes,extensionFormatMap={__proto__:null,".cjs":"commonjs",".js":"module",".mjs":"module"};function defaultGetFormat(url){if(url.startsWith("node:"))return {format:"builtin"};const parsed=new(_url().URL)(url);if("data:"===parsed.protocol){const{1:mime}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname)||[null,null];return {format:"text/javascript"===mime?"module":null}}if("file:"===parsed.protocol){const ext=_path().extname(parsed.pathname);let format;if(format=".js"===ext?"module"===function(url){return getPackageScopeConfig(url).type}(parsed.href)?"module":"commonjs":extensionFormatMap[ext],!format)throw new ERR_UNKNOWN_FILE_EXTENSION(ext,(0, _url().fileURLToPath)(url));return {format:format||null}}return {format:null}}const listOfBuiltins=function({version=process.version,experimental=!1}={}){var coreModules=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"];return semver.lt(version,"6.0.0")&&coreModules.push("freelist"),semver.gte(version,"1.0.0")&&coreModules.push("v8"),semver.gte(version,"1.1.0")&&coreModules.push("process"),semver.gte(version,"8.0.0")&&coreModules.push("inspector"),semver.gte(version,"8.1.0")&&coreModules.push("async_hooks"),semver.gte(version,"8.4.0")&&coreModules.push("http2"),semver.gte(version,"8.5.0")&&coreModules.push("perf_hooks"),semver.gte(version,"10.0.0")&&coreModules.push("trace_events"),semver.gte(version,"10.5.0")&&(experimental||semver.gte(version,"12.0.0"))&&coreModules.push("worker_threads"),semver.gte(version,"12.16.0")&&experimental&&coreModules.push("wasi"),coreModules}(),{ERR_INVALID_MODULE_SPECIFIER,ERR_INVALID_PACKAGE_CONFIG,ERR_INVALID_PACKAGE_TARGET,ERR_MODULE_NOT_FOUND,ERR_PACKAGE_IMPORT_NOT_DEFINED,ERR_PACKAGE_PATH_NOT_EXPORTED,ERR_UNSUPPORTED_DIR_IMPORT,ERR_UNSUPPORTED_ESM_URL_SCHEME,ERR_INVALID_ARG_VALUE}=codes,own={}.hasOwnProperty,DEFAULT_CONDITIONS=Object.freeze(["node","import"]),DEFAULT_CONDITIONS_SET=new Set(DEFAULT_CONDITIONS),invalidSegmentRegEx=/(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/,patternRegEx=/\*/g,encodedSepRegEx=/%2f|%2c/i,emittedPackageWarnings=new Set,packageJsonCache=new Map;function emitFolderMapDeprecation(match,pjsonUrl,isExports,base){const pjsonPath=(0, _url().fileURLToPath)(pjsonUrl);emittedPackageWarnings.has(pjsonPath+"|"+match)||(emittedPackageWarnings.add(pjsonPath+"|"+match),process.emitWarning(`Use of deprecated folder mapping "${match}" in the ${isExports?'"exports"':'"imports"'} field module resolution of the package at ${pjsonPath}${base?` imported from ${(0, _url().fileURLToPath)(base)}`:""}.\nUpdate this package.json to use a subpath pattern like "${match}*".`,"DeprecationWarning","DEP0148"));}function emitLegacyIndexDeprecation(url,packageJsonUrl,base,main){const{format}=defaultGetFormat(url.href);if("module"!==format)return;const path=(0, _url().fileURLToPath)(url.href),pkgPath=(0, _url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),basePath=(0, _url().fileURLToPath)(base);main?process.emitWarning(`Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, excluding the full filename and extension to the resolved file at "${path.slice(pkgPath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):process.emitWarning(`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path.slice(pkgPath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151");}function tryStatSync(path){try{return (0,_fs().statSync)(path)}catch(_unused){return new(_fs().Stats)}}function getPackageConfig(path,specifier,base){const existing=packageJsonCache.get(path);if(void 0!==existing)return existing;const source=reader.read(path).string;if(void 0===source){const packageConfig={pjsonPath:path,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return packageJsonCache.set(path,packageConfig),packageConfig}let packageJson;try{packageJson=JSON.parse(source);}catch(error){throw new ERR_INVALID_PACKAGE_CONFIG(path,(base?`"${specifier}" from `:"")+(0, _url().fileURLToPath)(base||specifier),error.message)}const{exports,imports,main,name,type}=packageJson,packageConfig={pjsonPath:path,exists:!0,main:"string"==typeof main?main:void 0,name:"string"==typeof name?name:void 0,type:"module"===type||"commonjs"===type?type:"none",exports,imports:imports&&"object"==typeof imports?imports:void 0};return packageJsonCache.set(path,packageConfig),packageConfig}function getPackageScopeConfig(resolved){let packageJsonUrl=new(_url().URL)("./package.json",resolved);for(;;){if(packageJsonUrl.pathname.endsWith("node_modules/package.json"))break;const packageConfig=getPackageConfig((0, _url().fileURLToPath)(packageJsonUrl),resolved);if(packageConfig.exists)return packageConfig;const lastPackageJsonUrl=packageJsonUrl;if(packageJsonUrl=new(_url().URL)("../package.json",packageJsonUrl),packageJsonUrl.pathname===lastPackageJsonUrl.pathname)break}const packageJsonPath=(0, _url().fileURLToPath)(packageJsonUrl),packageConfig={pjsonPath:packageJsonPath,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return packageJsonCache.set(packageJsonPath,packageConfig),packageConfig}function fileExists(url){return tryStatSync((0, _url().fileURLToPath)(url)).isFile()}function legacyMainResolve(packageJsonUrl,packageConfig,base){let guess;if(void 0!==packageConfig.main){if(guess=new(_url().URL)(`./${packageConfig.main}`,packageJsonUrl),fileExists(guess))return guess;const tries=[`./${packageConfig.main}.js`,`./${packageConfig.main}.json`,`./${packageConfig.main}.node`,`./${packageConfig.main}/index.js`,`./${packageConfig.main}/index.json`,`./${packageConfig.main}/index.node`];let i=-1;for(;++i<tries.length&&(guess=new(_url().URL)(tries[i],packageJsonUrl),!fileExists(guess));)guess=void 0;if(guess)return emitLegacyIndexDeprecation(guess,packageJsonUrl,base,packageConfig.main),guess}const tries=["./index.js","./index.json","./index.node"];let i=-1;for(;++i<tries.length&&(guess=new(_url().URL)(tries[i],packageJsonUrl),!fileExists(guess));)guess=void 0;if(guess)return emitLegacyIndexDeprecation(guess,packageJsonUrl,base,packageConfig.main),guess;throw new ERR_MODULE_NOT_FOUND((0, _url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),(0, _url().fileURLToPath)(base))}function throwExportsNotFound(subpath,packageJsonUrl,base){throw new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),subpath,base&&(0, _url().fileURLToPath)(base))}function throwInvalidPackageTarget(subpath,target,packageJsonUrl,internal,base){throw target="object"==typeof target&&null!==target?JSON.stringify(target,null,""):`${target}`,new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),subpath,target,internal,base&&(0, _url().fileURLToPath)(base))}function resolvePackageTargetString(target,subpath,match,packageJsonUrl,base,pattern,internal,conditions){if(""===subpath||pattern||"/"===target[target.length-1]||throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base),!target.startsWith("./")){if(internal&&!target.startsWith("../")&&!target.startsWith("/")){let isURL=!1;try{new(_url().URL)(target),isURL=!0;}catch(_unused2){}if(!isURL){return packageResolve(pattern?target.replace(patternRegEx,subpath):target+subpath,packageJsonUrl,conditions)}}throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base);}invalidSegmentRegEx.test(target.slice(2))&&throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base);const resolved=new(_url().URL)(target,packageJsonUrl),resolvedPath=resolved.pathname,packagePath=new(_url().URL)(".",packageJsonUrl).pathname;return resolvedPath.startsWith(packagePath)||throwInvalidPackageTarget(match,target,packageJsonUrl,internal,base),""===subpath?resolved:(invalidSegmentRegEx.test(subpath)&&function(subpath,packageJsonUrl,internal,base){const reason=`request is not a valid subpath for the "${internal?"imports":"exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;throw new ERR_INVALID_MODULE_SPECIFIER(subpath,reason,base&&(0, _url().fileURLToPath)(base))}(match+subpath,packageJsonUrl,internal,base),pattern?new(_url().URL)(resolved.href.replace(patternRegEx,subpath)):new(_url().URL)(subpath,resolved))}function isArrayIndex(key){const keyNumber=Number(key);return `${keyNumber}`===key&&(keyNumber>=0&&keyNumber<4294967295)}function resolvePackageTarget(packageJsonUrl,target,subpath,packageSubpath,base,pattern,internal,conditions){if("string"==typeof target)return resolvePackageTargetString(target,subpath,packageSubpath,packageJsonUrl,base,pattern,internal,conditions);if(Array.isArray(target)){const targetList=target;if(0===targetList.length)return null;let lastException,i=-1;for(;++i<targetList.length;){const targetItem=targetList[i];let resolved;try{resolved=resolvePackageTarget(packageJsonUrl,targetItem,subpath,packageSubpath,base,pattern,internal,conditions);}catch(error){if(lastException=error,"ERR_INVALID_PACKAGE_TARGET"===error.code)continue;throw error}if(void 0!==resolved){if(null!==resolved)return resolved;lastException=null;}}if(null==lastException)return lastException;throw lastException}if("object"!=typeof target||null===target){if(null===target)return null;throwInvalidPackageTarget(packageSubpath,target,packageJsonUrl,internal,base);}else {const keys=Object.getOwnPropertyNames(target);let i=-1;for(;++i<keys.length;){if(isArrayIndex(keys[i]))throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl),base,'"exports" cannot contain numeric property keys.')}for(i=-1;++i<keys.length;){const key=keys[i];if("default"===key||conditions&&conditions.has(key)){const resolved=resolvePackageTarget(packageJsonUrl,target[key],subpath,packageSubpath,base,pattern,internal,conditions);if(void 0===resolved)continue;return resolved}}}}function packageExportsResolve(packageJsonUrl,packageSubpath,packageConfig,base,conditions){let exports=packageConfig.exports;if(function(exports,packageJsonUrl,base){if("string"==typeof exports||Array.isArray(exports))return !0;if("object"!=typeof exports||null===exports)return !1;const keys=Object.getOwnPropertyNames(exports);let isConditionalSugar=!1,i=0,j=-1;for(;++j<keys.length;){const key=keys[j],curIsConditionalSugar=""===key||"."!==key[0];if(0==i++)isConditionalSugar=curIsConditionalSugar;else if(isConditionalSugar!==curIsConditionalSugar)throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl),base,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return isConditionalSugar}(exports,packageJsonUrl,base)&&(exports={".":exports}),own.call(exports,packageSubpath)){const resolved=resolvePackageTarget(packageJsonUrl,exports[packageSubpath],"",packageSubpath,base,!1,!1,conditions);return null==resolved&&throwExportsNotFound(packageSubpath,packageJsonUrl,base),{resolved,exact:!0}}let bestMatch="";const keys=Object.getOwnPropertyNames(exports);let i=-1;for(;++i<keys.length;){const key=keys[i];("*"===key[key.length-1]&&packageSubpath.startsWith(key.slice(0,-1))&&packageSubpath.length>=key.length&&key.length>bestMatch.length||"/"===key[key.length-1]&&packageSubpath.startsWith(key)&&key.length>bestMatch.length)&&(bestMatch=key);}if(bestMatch){const target=exports[bestMatch],pattern="*"===bestMatch[bestMatch.length-1],resolved=resolvePackageTarget(packageJsonUrl,target,packageSubpath.slice(bestMatch.length-(pattern?1:0)),bestMatch,base,pattern,!1,conditions);return null==resolved&&throwExportsNotFound(packageSubpath,packageJsonUrl,base),pattern||emitFolderMapDeprecation(bestMatch,packageJsonUrl,!0,base),{resolved,exact:pattern}}throwExportsNotFound(packageSubpath,packageJsonUrl,base);}function packageImportsResolve(name,base,conditions){if("#"===name||name.startsWith("#/")){throw new ERR_INVALID_MODULE_SPECIFIER(name,"is not a valid internal imports specifier name",(0, _url().fileURLToPath)(base))}let packageJsonUrl;const packageConfig=getPackageScopeConfig(base);if(packageConfig.exists){packageJsonUrl=(0, _url().pathToFileURL)(packageConfig.pjsonPath);const imports=packageConfig.imports;if(imports)if(own.call(imports,name)){const resolved=resolvePackageTarget(packageJsonUrl,imports[name],"",name,base,!1,!0,conditions);if(null!==resolved)return {resolved,exact:!0}}else {let bestMatch="";const keys=Object.getOwnPropertyNames(imports);let i=-1;for(;++i<keys.length;){const key=keys[i];("*"===key[key.length-1]&&name.startsWith(key.slice(0,-1))&&name.length>=key.length&&key.length>bestMatch.length||"/"===key[key.length-1]&&name.startsWith(key)&&key.length>bestMatch.length)&&(bestMatch=key);}if(bestMatch){const target=imports[bestMatch],pattern="*"===bestMatch[bestMatch.length-1],resolved=resolvePackageTarget(packageJsonUrl,target,name.slice(bestMatch.length-(pattern?1:0)),bestMatch,base,pattern,!0,conditions);if(null!==resolved)return pattern||emitFolderMapDeprecation(bestMatch,packageJsonUrl,!1,base),{resolved,exact:pattern}}}}!function(specifier,packageJsonUrl,base){throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier,packageJsonUrl&&(0, _url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),(0, _url().fileURLToPath)(base))}(name,packageJsonUrl,base);}function packageResolve(specifier,base,conditions){const{packageName,packageSubpath,isScoped}=function(specifier,base){let separatorIndex=specifier.indexOf("/"),validPackageName=!0,isScoped=!1;"@"===specifier[0]&&(isScoped=!0,-1===separatorIndex||0===specifier.length?validPackageName=!1:separatorIndex=specifier.indexOf("/",separatorIndex+1));const packageName=-1===separatorIndex?specifier:specifier.slice(0,separatorIndex);let i=-1;for(;++i<packageName.length;)if("%"===packageName[i]||"\\"===packageName[i]){validPackageName=!1;break}if(!validPackageName)throw new ERR_INVALID_MODULE_SPECIFIER(specifier,"is not a valid package name",(0, _url().fileURLToPath)(base));return {packageName,packageSubpath:"."+(-1===separatorIndex?"":specifier.slice(separatorIndex)),isScoped}}(specifier,base),packageConfig=getPackageScopeConfig(base);if(packageConfig.exists){const packageJsonUrl=(0, _url().pathToFileURL)(packageConfig.pjsonPath);if(packageConfig.name===packageName&&void 0!==packageConfig.exports&&null!==packageConfig.exports)return packageExportsResolve(packageJsonUrl,packageSubpath,packageConfig,base,conditions).resolved}let lastPath,packageJsonUrl=new(_url().URL)("./node_modules/"+packageName+"/package.json",base),packageJsonPath=(0, _url().fileURLToPath)(packageJsonUrl);do{if(!tryStatSync(packageJsonPath.slice(0,-13)).isDirectory()){lastPath=packageJsonPath,packageJsonUrl=new(_url().URL)((isScoped?"../../../../node_modules/":"../../../node_modules/")+packageName+"/package.json",packageJsonUrl),packageJsonPath=(0, _url().fileURLToPath)(packageJsonUrl);continue}const packageConfig=getPackageConfig(packageJsonPath,specifier,base);return void 0!==packageConfig.exports&&null!==packageConfig.exports?packageExportsResolve(packageJsonUrl,packageSubpath,packageConfig,base,conditions).resolved:"."===packageSubpath?legacyMainResolve(packageJsonUrl,packageConfig,base):new(_url().URL)(packageSubpath,packageJsonUrl)}while(packageJsonPath.length!==lastPath.length);throw new ERR_MODULE_NOT_FOUND(packageName,(0, _url().fileURLToPath)(base))}function moduleResolve(specifier,base,conditions){let resolved;if(function(specifier){return ""!==specifier&&("/"===specifier[0]||function(specifier){if("."===specifier[0]){if(1===specifier.length||"/"===specifier[1])return !0;if("."===specifier[1]&&(2===specifier.length||"/"===specifier[2]))return !0}return !1}(specifier))}(specifier))resolved=new(_url().URL)(specifier,base);else if("#"===specifier[0])({resolved}=packageImportsResolve(specifier,base,conditions));else try{resolved=new(_url().URL)(specifier);}catch(_unused3){resolved=packageResolve(specifier,base,conditions);}return function(resolved,base){if(encodedSepRegEx.test(resolved.pathname))throw new ERR_INVALID_MODULE_SPECIFIER(resolved.pathname,'must not include encoded "/" or "\\" characters',(0, _url().fileURLToPath)(base));const path=(0, _url().fileURLToPath)(resolved),stats=tryStatSync(path.endsWith("/")?path.slice(-1):path);if(stats.isDirectory()){const error=new ERR_UNSUPPORTED_DIR_IMPORT(path,(0, _url().fileURLToPath)(base));throw error.url=String(resolved),error}if(!stats.isFile())throw new ERR_MODULE_NOT_FOUND(path||resolved.pathname,base&&(0, _url().fileURLToPath)(base),"module");return resolved}(resolved,base)}function defaultResolve(specifier,context={}){const{parentURL}=context;let parsed;try{if(parsed=new(_url().URL)(specifier),"data:"===parsed.protocol)return {url:specifier}}catch(_unused4){}if(parsed&&"node:"===parsed.protocol)return {url:specifier};if(parsed&&"file:"!==parsed.protocol&&"data:"!==parsed.protocol)throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed);if(listOfBuiltins.includes(specifier))return {url:"node:"+specifier};parentURL.startsWith("data:")&&new(_url().URL)(specifier,parentURL);const conditions=function(conditions){if(void 0!==conditions&&conditions!==DEFAULT_CONDITIONS){if(!Array.isArray(conditions))throw new ERR_INVALID_ARG_VALUE("conditions",conditions,"expected an array");return new Set(conditions)}return DEFAULT_CONDITIONS_SET}(context.conditions);let url=moduleResolve(specifier,new(_url().URL)(parentURL),conditions);const urlPath=(0, _url().fileURLToPath)(url),real=(0, _fs().realpathSync)(urlPath),old=url;return url=(0, _url().pathToFileURL)(real+(urlPath.endsWith(_path().sep)?"/":"")),url.search=old.search,url.hash=old.hash,{url:`${url}`}}function _resolve(){return (_resolve=_asyncToGenerator((function*(specifier,parent){if(!parent)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return defaultResolve(specifier,{parentURL:parent}).url}catch(error){return "ERR_UNSUPPORTED_DIR_IMPORT"===error.code?error.url:Promise.reject(error)}}))).apply(this,arguments)}},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/buffer.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{constructor(map){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,line:void 0,column:void 0,filename:void 0},this._disallowedPop={identifierName:void 0,line:void 0,column:void 0,filename:void 0,objectReusable:!0},this._map=map,this._allocQueue();}_allocQueue(){const queue=this._queue;for(let i=0;i<16;i++)queue.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,filename:""});}_pushQueue(char,repeat,line,column,identifierName,filename){const cursor=this._queueCursor;cursor===this._queue.length&&this._allocQueue();const item=this._queue[cursor];item.char=char,item.repeat=repeat,item.line=line,item.column=column,item.identifierName=identifierName,item.filename=filename,this._queueCursor++;}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const map=this._map,result={code:(this._buf+this._str).trimRight(),decodedMap:null==map?void 0:map.getDecoded(),get map(){const resultMap=map?map.get():null;return result.map=resultMap,resultMap},set map(value){Object.defineProperty(result,"map",{value,writable:!0});},get rawMappings(){const mappings=null==map?void 0:map.getRawMappings();return result.rawMappings=mappings,mappings},set rawMappings(value){Object.defineProperty(result,"rawMappings",{value,writable:!0});}};return result}append(str,maybeNewline){this._flush(),this._append(str,this._sourcePosition,maybeNewline);}appendChar(char){this._flush(),this._appendChar(char,1,this._sourcePosition);}queue(char){if(10===char)for(;0!==this._queueCursor;){const char=this._queue[this._queueCursor-1].char;if(32!==char&&9!==char)break;this._queueCursor--;}const sourcePosition=this._sourcePosition;this._pushQueue(char,1,sourcePosition.line,sourcePosition.column,sourcePosition.identifierName,sourcePosition.filename);}queueIndentation(char,repeat){this._pushQueue(char,repeat,void 0,void 0,void 0,void 0);}_flush(){const queueCursor=this._queueCursor,queue=this._queue;for(let i=0;i<queueCursor;i++){const item=queue[i];this._appendChar(item.char,item.repeat,item);}this._queueCursor=0;}_appendChar(char,repeat,sourcePos){this._last=char,this._str+=repeat>1?String.fromCharCode(char).repeat(repeat):String.fromCharCode(char),10!==char?(this._mark(sourcePos.line,sourcePos.column,sourcePos.identifierName,sourcePos.filename),this._position.column+=repeat):(this._position.line++,this._position.column=0);}_append(str,sourcePos,maybeNewline){const len=str.length;if(this._last=str.charCodeAt(len-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=str,this._appendCount=0):this._str+=str,!maybeNewline&&!this._map)return void(this._position.column+=len);const{column,identifierName,filename}=sourcePos;let line=sourcePos.line,i=str.indexOf("\n"),last=0;for(0!==i&&this._mark(line,column,identifierName,filename);-1!==i;)this._position.line++,this._position.column=0,last=i+1,last<str.length&&this._mark(++line,0,identifierName,filename),i=str.indexOf("\n",last);this._position.column+=str.length-last;}_mark(line,column,identifierName,filename){var _this$_map;null==(_this$_map=this._map)||_this$_map.mark(this._position,line,column,identifierName,filename);}removeTrailingNewline(){const queueCursor=this._queueCursor;0!==queueCursor&&10===this._queue[queueCursor-1].char&&this._queueCursor--;}removeLastSemicolon(){const queueCursor=this._queueCursor;0!==queueCursor&&59===this._queue[queueCursor-1].char&&this._queueCursor--;}getLastChar(){const queueCursor=this._queueCursor;return 0!==queueCursor?this._queue[queueCursor-1].char:this._last}endsWithCharAndNewline(){const queue=this._queue,queueCursor=this._queueCursor;if(0!==queueCursor){if(10!==queue[queueCursor-1].char)return;return queueCursor>1?queue[queueCursor-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(loc,cb){if(!this._map)return cb();this.source("start",loc),cb(),this.source("end",loc),this._disallowPop("start",loc);}source(prop,loc){loc&&this._normalizePosition(prop,loc,this._sourcePosition);}withSource(prop,loc,cb){if(!this._map)return cb();const originalLine=this._sourcePosition.line,originalColumn=this._sourcePosition.column,originalFilename=this._sourcePosition.filename,originalIdentifierName=this._sourcePosition.identifierName;this.source(prop,loc),cb(),(this._disallowedPop.objectReusable||this._disallowedPop.line!==originalLine||this._disallowedPop.column!==originalColumn||this._disallowedPop.filename!==originalFilename)&&(this._sourcePosition.line=originalLine,this._sourcePosition.column=originalColumn,this._sourcePosition.filename=originalFilename,this._sourcePosition.identifierName=originalIdentifierName,this._disallowedPop.objectReusable=!0);}_disallowPop(prop,loc){if(!loc)return;const disallowedPop=this._disallowedPop;this._normalizePosition(prop,loc,disallowedPop),disallowedPop.objectReusable=!1;}_normalizePosition(prop,loc,targetObj){const pos=loc[prop];targetObj.identifierName="start"===prop&&loc.identifierName||void 0,pos?(targetObj.line=pos.line,targetObj.column=pos.column,targetObj.filename=loc.filename):(targetObj.line=null,targetObj.column=null,targetObj.filename=null);}getCurrentColumn(){const queue=this._queue;let lastIndex=-1,len=0;for(let i=0;i<this._queueCursor;i++){const item=queue[i];10===item.char&&(lastIndex=i,len+=item.repeat);}return -1===lastIndex?this._position.column+len:len-1-lastIndex}getCurrentLine(){let count=0;const queue=this._queue;for(let i=0;i<this._queueCursor;i++)10===queue[i].char&&count++;return this._position.line+count}};},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/base.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.BlockStatement=function(node){var _node$directives;this.tokenChar(123),this.printInnerComments(node);const hasDirectives=null==(_node$directives=node.directives)?void 0:_node$directives.length;node.body.length||hasDirectives?(this.newline(),this.printSequence(node.directives,node,{indent:!0}),hasDirectives&&this.newline(),this.printSequence(node.body,node,{indent:!0}),this.removeTrailingNewline(),this.source("end",node.loc),this.endsWith(10)||this.newline(),this.rightBrace()):(this.source("end",node.loc),this.tokenChar(125));},exports.Directive=function(node){this.print(node.value,node),this.semicolon();},exports.DirectiveLiteral=function(node){const raw=this.getPossibleRaw(node);if(!this.format.minified&&void 0!==raw)return void this.token(raw);const{value}=node;if(unescapedDoubleQuoteRE.test(value)){if(unescapedSingleQuoteRE.test(value))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${value}'`);}else this.token(`"${value}"`);},exports.File=function(node){node.program&&this.print(node.program.interpreter,node);this.print(node.program,node);},exports.InterpreterDirective=function(node){this.token(`#!${node.value}\n`,!0);},exports.Placeholder=function(node){this.token("%%"),this.print(node.name),this.token("%%"),"Statement"===node.expectedNode&&this.semicolon();},exports.Program=function(node){this.printInnerComments(node,!1),this.printSequence(node.directives,node),node.directives&&node.directives.length&&this.newline();this.printSequence(node.body,node);};const unescapedSingleQuoteRE=/(?:^|[^\\])(?:\\\\)*'/,unescapedDoubleQuoteRE=/(?:^|[^\\])(?:\\\\)*"/;},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/classes.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClassAccessorProperty=function(node){this.printJoin(node.decorators,node),this.source("end",node.key.loc),this.tsPrintClassMemberModifiers(node),this.word("accessor"),this.printInnerComments(node),this.space(),node.computed?(this.tokenChar(91),this.print(node.key,node),this.tokenChar(93)):(this._variance(node),this.print(node.key,node));node.optional&&this.tokenChar(63);node.definite&&this.tokenChar(33);this.print(node.typeAnnotation,node),node.value&&(this.space(),this.tokenChar(61),this.space(),this.print(node.value,node));this.semicolon();},exports.ClassBody=function(node){this.tokenChar(123),this.printInnerComments(node),0===node.body.length?this.tokenChar(125):(this.newline(),this.indent(),this.printSequence(node.body,node),this.dedent(),this.endsWith(10)||this.newline(),this.rightBrace());},exports.ClassExpression=exports.ClassDeclaration=function(node,parent){this.format.decoratorsBeforeExport&&(isExportDefaultDeclaration(parent)||isExportNamedDeclaration(parent))||this.printJoin(node.decorators,node);node.declare&&(this.word("declare"),this.space());node.abstract&&(this.word("abstract"),this.space());this.word("class"),this.printInnerComments(node),node.id&&(this.space(),this.print(node.id,node));this.print(node.typeParameters,node),node.superClass&&(this.space(),this.word("extends"),this.space(),this.print(node.superClass,node),this.print(node.superTypeParameters,node));node.implements&&(this.space(),this.word("implements"),this.space(),this.printList(node.implements,node));this.space(),this.print(node.body,node);},exports.ClassMethod=function(node){this._classMethodHead(node),this.space(),this.print(node.body,node);},exports.ClassPrivateMethod=function(node){this._classMethodHead(node),this.space(),this.print(node.body,node);},exports.ClassPrivateProperty=function(node){this.printJoin(node.decorators,node),node.static&&(this.word("static"),this.space());this.print(node.key,node),this.print(node.typeAnnotation,node),node.value&&(this.space(),this.tokenChar(61),this.space(),this.print(node.value,node));this.semicolon();},exports.ClassProperty=function(node){this.printJoin(node.decorators,node),this.source("end",node.key.loc),this.tsPrintClassMemberModifiers(node),node.computed?(this.tokenChar(91),this.print(node.key,node),this.tokenChar(93)):(this._variance(node),this.print(node.key,node));node.optional&&this.tokenChar(63);node.definite&&this.tokenChar(33);this.print(node.typeAnnotation,node),node.value&&(this.space(),this.tokenChar(61),this.space(),this.print(node.value,node));this.semicolon();},exports.StaticBlock=function(node){this.word("static"),this.space(),this.tokenChar(123),0===node.body.length?this.tokenChar(125):(this.newline(),this.printSequence(node.body,node,{indent:!0}),this.rightBrace());},exports._classMethodHead=function(node){this.printJoin(node.decorators,node),this.source("end",node.key.loc),this.tsPrintClassMemberModifiers(node),this._methodHead(node);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isExportDefaultDeclaration,isExportNamedDeclaration}=_t;},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/expressions.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogicalExpression=exports.BinaryExpression=exports.AssignmentExpression=function(node,parent){const parens=this.inForStatementInitCounter&&"in"===node.operator&&!n.needsParens(node,parent);parens&&this.tokenChar(40);this.print(node.left,node),this.space(),"in"===node.operator||"instanceof"===node.operator?this.word(node.operator):this.token(node.operator);this.space(),this.print(node.right,node),parens&&this.tokenChar(41);},exports.AssignmentPattern=function(node){this.print(node.left,node),node.left.optional&&this.tokenChar(63);this.print(node.left.typeAnnotation,node),this.space(),this.tokenChar(61),this.space(),this.print(node.right,node);},exports.AwaitExpression=function(node){this.word("await"),node.argument&&(this.space(),this.printTerminatorless(node.argument,node,!1));},exports.BindExpression=function(node){this.print(node.object,node),this.token("::"),this.print(node.callee,node);},exports.CallExpression=function(node){this.print(node.callee,node),this.print(node.typeArguments,node),this.print(node.typeParameters,node),this.tokenChar(40),this.printList(node.arguments,node),this.tokenChar(41);},exports.ConditionalExpression=function(node){this.print(node.test,node),this.space(),this.tokenChar(63),this.space(),this.print(node.consequent,node),this.space(),this.tokenChar(58),this.space(),this.print(node.alternate,node);},exports.Decorator=function(node){this.tokenChar(64);const{expression}=node;!function(node){if("ParenthesizedExpression"===node.type)return !1;return !isDecoratorMemberExpression("CallExpression"===node.type?node.callee:node)}(expression)?this.print(expression,node):(this.tokenChar(40),this.print(expression,node),this.tokenChar(41));this.newline();},exports.DoExpression=function(node){node.async&&(this.word("async"),this.space());this.word("do"),this.space(),this.print(node.body,node);},exports.EmptyStatement=function(){this.semicolon(!0);},exports.ExpressionStatement=function(node){this.print(node.expression,node),this.semicolon();},exports.Import=function(){this.word("import");},exports.MemberExpression=function(node){if(this.print(node.object,node),!node.computed&&isMemberExpression(node.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let computed=node.computed;isLiteral(node.property)&&"number"==typeof node.property.value&&(computed=!0);computed?(this.tokenChar(91),this.print(node.property,node),this.tokenChar(93)):(this.tokenChar(46),this.print(node.property,node));},exports.MetaProperty=function(node){this.print(node.meta,node),this.tokenChar(46),this.print(node.property,node);},exports.ModuleExpression=function(node){this.word("module"),this.space(),this.tokenChar(123),0===node.body.body.length?this.tokenChar(125):(this.newline(),this.printSequence(node.body.body,node,{indent:!0}),this.rightBrace());},exports.NewExpression=function(node,parent){if(this.word("new"),this.space(),this.print(node.callee,node),this.format.minified&&0===node.arguments.length&&!node.optional&&!isCallExpression(parent,{callee:node})&&!isMemberExpression(parent)&&!isNewExpression(parent))return;this.print(node.typeArguments,node),this.print(node.typeParameters,node),node.optional&&this.token("?.");this.tokenChar(40),this.printList(node.arguments,node),this.tokenChar(41);},exports.OptionalCallExpression=function(node){this.print(node.callee,node),this.print(node.typeArguments,node),this.print(node.typeParameters,node),node.optional&&this.token("?.");this.tokenChar(40),this.printList(node.arguments,node),this.tokenChar(41);},exports.OptionalMemberExpression=function(node){if(this.print(node.object,node),!node.computed&&isMemberExpression(node.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let computed=node.computed;isLiteral(node.property)&&"number"==typeof node.property.value&&(computed=!0);node.optional&&this.token("?.");computed?(this.tokenChar(91),this.print(node.property,node),this.tokenChar(93)):(node.optional||this.tokenChar(46),this.print(node.property,node));},exports.ParenthesizedExpression=function(node){this.tokenChar(40),this.print(node.expression,node),this.tokenChar(41);},exports.PrivateName=function(node){this.tokenChar(35),this.print(node.id,node);},exports.SequenceExpression=function(node){this.printList(node.expressions,node);},exports.Super=function(){this.word("super");},exports.ThisExpression=function(){this.word("this");},exports.UnaryExpression=function(node){"void"===node.operator||"delete"===node.operator||"typeof"===node.operator||"throw"===node.operator?(this.word(node.operator),this.space()):this.token(node.operator);this.print(node.argument,node);},exports.UpdateExpression=function(node){node.prefix?(this.token(node.operator),this.print(node.argument,node)):(this.printTerminatorless(node.argument,node,!0),this.token(node.operator));},exports.V8IntrinsicIdentifier=function(node){this.tokenChar(37),this.word(node.name);},exports.YieldExpression=function(node){this.word("yield"),node.delegate&&this.tokenChar(42);node.argument&&(this.space(),this.printTerminatorless(node.argument,node,!1));};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),n=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/index.js");const{isCallExpression,isLiteral,isMemberExpression,isNewExpression}=_t;function isDecoratorMemberExpression(node){switch(node.type){case"Identifier":return !0;case"MemberExpression":return !node.computed&&"Identifier"===node.property.type&&isDecoratorMemberExpression(node.object);default:return !1}}},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/flow.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.AnyTypeAnnotation=function(){this.word("any");},exports.ArrayTypeAnnotation=function(node){this.print(node.elementType,node,!0),this.tokenChar(91),this.tokenChar(93);},exports.BooleanLiteralTypeAnnotation=function(node){this.word(node.value?"true":"false");},exports.BooleanTypeAnnotation=function(){this.word("boolean");},exports.DeclareClass=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(node);},exports.DeclareExportAllDeclaration=function(node){this.word("declare"),this.space(),_modules.ExportAllDeclaration.call(this,node);},exports.DeclareExportDeclaration=function(node){this.word("declare"),this.space(),this.word("export"),this.space(),node.default&&(this.word("default"),this.space());FlowExportDeclaration.call(this,node);},exports.DeclareFunction=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(node.id,node),this.print(node.id.typeAnnotation.typeAnnotation,node),node.predicate&&(this.space(),this.print(node.predicate,node));this.semicolon();},exports.DeclareInterface=function(node){this.word("declare"),this.space(),this.InterfaceDeclaration(node);},exports.DeclareModule=function(node){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(node.id,node),this.space(),this.print(node.body,node);},exports.DeclareModuleExports=function(node){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(node.typeAnnotation,node);},exports.DeclareOpaqueType=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.OpaqueType(node);},exports.DeclareTypeAlias=function(node){this.word("declare"),this.space(),this.TypeAlias(node);},exports.DeclareVariable=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(node.id,node),this.print(node.id.typeAnnotation,node),this.semicolon();},exports.DeclaredPredicate=function(node){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(node.value,node),this.tokenChar(41);},exports.EmptyTypeAnnotation=function(){this.word("empty");},exports.EnumBooleanBody=function(node){const{explicitType}=node;enumExplicitType(this,"boolean",explicitType),enumBody(this,node);},exports.EnumBooleanMember=function(node){enumInitializedMember(this,node);},exports.EnumDeclaration=function(node){const{id,body}=node;this.word("enum"),this.space(),this.print(id,node),this.print(body,node);},exports.EnumDefaultedMember=function(node){const{id}=node;this.print(id,node),this.tokenChar(44);},exports.EnumNumberBody=function(node){const{explicitType}=node;enumExplicitType(this,"number",explicitType),enumBody(this,node);},exports.EnumNumberMember=function(node){enumInitializedMember(this,node);},exports.EnumStringBody=function(node){const{explicitType}=node;enumExplicitType(this,"string",explicitType),enumBody(this,node);},exports.EnumStringMember=function(node){enumInitializedMember(this,node);},exports.EnumSymbolBody=function(node){enumExplicitType(this,"symbol",!0),enumBody(this,node);},exports.ExistsTypeAnnotation=function(){this.tokenChar(42);},exports.FunctionTypeAnnotation=function(node,parent){this.print(node.typeParameters,node),this.tokenChar(40),node.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(node.this.typeAnnotation,node),(node.params.length||node.rest)&&(this.tokenChar(44),this.space()));this.printList(node.params,node),node.rest&&(node.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(node.rest,node));this.tokenChar(41),parent&&("ObjectTypeCallProperty"===parent.type||"DeclareFunction"===parent.type||"ObjectTypeProperty"===parent.type&&parent.method)?this.tokenChar(58):(this.space(),this.token("=>"));this.space(),this.print(node.returnType,node);},exports.FunctionTypeParam=function(node){this.print(node.name,node),node.optional&&this.tokenChar(63);node.name&&(this.tokenChar(58),this.space());this.print(node.typeAnnotation,node);},exports.IndexedAccessType=function(node){this.print(node.objectType,node,!0),this.tokenChar(91),this.print(node.indexType,node),this.tokenChar(93);},exports.InferredPredicate=function(){this.tokenChar(37),this.word("checks");},exports.InterfaceDeclaration=function(node){this.word("interface"),this.space(),this._interfaceish(node);},exports.GenericTypeAnnotation=exports.ClassImplements=exports.InterfaceExtends=function(node){this.print(node.id,node),this.print(node.typeParameters,node,!0);},exports.InterfaceTypeAnnotation=function(node){this.word("interface"),node.extends&&node.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(node.extends,node));this.space(),this.print(node.body,node);},exports.IntersectionTypeAnnotation=function(node){this.printJoin(node.types,node,{separator:andSeparator});},exports.MixedTypeAnnotation=function(){this.word("mixed");},exports.NullLiteralTypeAnnotation=function(){this.word("null");},exports.NullableTypeAnnotation=function(node){this.tokenChar(63),this.print(node.typeAnnotation,node);},Object.defineProperty(exports,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return _types2.NumericLiteral}}),exports.NumberTypeAnnotation=function(){this.word("number");},exports.ObjectTypeAnnotation=function(node){node.exact?this.token("{|"):this.tokenChar(123);const props=[...node.properties,...node.callProperties||[],...node.indexers||[],...node.internalSlots||[]];props.length&&(this.space(),this.printJoin(props,node,{addNewlines(leading){if(leading&&!props[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==props.length||node.inexact)&&(this.tokenChar(44),this.space());}}),this.space());node.inexact&&(this.indent(),this.token("..."),props.length&&this.newline(),this.dedent());node.exact?this.token("|}"):this.tokenChar(125);},exports.ObjectTypeCallProperty=function(node){node.static&&(this.word("static"),this.space());this.print(node.value,node);},exports.ObjectTypeIndexer=function(node){node.static&&(this.word("static"),this.space());this._variance(node),this.tokenChar(91),node.id&&(this.print(node.id,node),this.tokenChar(58),this.space());this.print(node.key,node),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(node.value,node);},exports.ObjectTypeInternalSlot=function(node){node.static&&(this.word("static"),this.space());this.tokenChar(91),this.tokenChar(91),this.print(node.id,node),this.tokenChar(93),this.tokenChar(93),node.optional&&this.tokenChar(63);node.method||(this.tokenChar(58),this.space());this.print(node.value,node);},exports.ObjectTypeProperty=function(node){node.proto&&(this.word("proto"),this.space());node.static&&(this.word("static"),this.space());"get"!==node.kind&&"set"!==node.kind||(this.word(node.kind),this.space());this._variance(node),this.print(node.key,node),node.optional&&this.tokenChar(63);node.method||(this.tokenChar(58),this.space());this.print(node.value,node);},exports.ObjectTypeSpreadProperty=function(node){this.token("..."),this.print(node.argument,node);},exports.OpaqueType=function(node){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(node.id,node),this.print(node.typeParameters,node),node.supertype&&(this.tokenChar(58),this.space(),this.print(node.supertype,node));node.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(node.impltype,node));this.semicolon();},exports.OptionalIndexedAccessType=function(node){this.print(node.objectType,node),node.optional&&this.token("?.");this.tokenChar(91),this.print(node.indexType,node),this.tokenChar(93);},exports.QualifiedTypeIdentifier=function(node){this.print(node.qualification,node),this.tokenChar(46),this.print(node.id,node);},Object.defineProperty(exports,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return _types2.StringLiteral}}),exports.StringTypeAnnotation=function(){this.word("string");},exports.SymbolTypeAnnotation=function(){this.word("symbol");},exports.ThisTypeAnnotation=function(){this.word("this");},exports.TupleTypeAnnotation=function(node){this.tokenChar(91),this.printList(node.types,node),this.tokenChar(93);},exports.TypeAlias=function(node){this.word("type"),this.space(),this.print(node.id,node),this.print(node.typeParameters,node),this.space(),this.tokenChar(61),this.space(),this.print(node.right,node),this.semicolon();},exports.TypeAnnotation=function(node){this.tokenChar(58),this.space(),node.optional&&this.tokenChar(63);this.print(node.typeAnnotation,node);},exports.TypeCastExpression=function(node){this.tokenChar(40),this.print(node.expression,node),this.print(node.typeAnnotation,node),this.tokenChar(41);},exports.TypeParameter=function(node){this._variance(node),this.word(node.name),node.bound&&this.print(node.bound,node);node.default&&(this.space(),this.tokenChar(61),this.space(),this.print(node.default,node));},exports.TypeParameterDeclaration=exports.TypeParameterInstantiation=function(node){this.tokenChar(60),this.printList(node.params,node,{}),this.tokenChar(62);},exports.TypeofTypeAnnotation=function(node){this.word("typeof"),this.space(),this.print(node.argument,node);},exports.UnionTypeAnnotation=function(node){this.printJoin(node.types,node,{separator:orSeparator});},exports.Variance=function(node){"plus"===node.kind?this.tokenChar(43):this.tokenChar(45);},exports.VoidTypeAnnotation=function(){this.word("void");},exports._interfaceish=function(node){var _node$extends;this.print(node.id,node),this.print(node.typeParameters,node),null!=(_node$extends=node.extends)&&_node$extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(node.extends,node));node.mixins&&node.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(node.mixins,node));node.implements&&node.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(node.implements,node));this.space(),this.print(node.body,node);},exports._variance=function(node){node.variance&&("plus"===node.variance.kind?this.tokenChar(43):"minus"===node.variance.kind&&this.tokenChar(45));};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_modules=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/modules.js"),_types2=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/types.js");const{isDeclareExportDeclaration,isStatement}=_t;function enumExplicitType(context,name,hasExplicitType){hasExplicitType&&(context.space(),context.word("of"),context.space(),context.word(name)),context.space();}function enumBody(context,node){const{members}=node;context.token("{"),context.indent(),context.newline();for(const member of members)context.print(member,node),context.newline();node.hasUnknownMembers&&(context.token("..."),context.newline()),context.dedent(),context.token("}");}function enumInitializedMember(context,node){const{id,init}=node;context.print(id,node),context.space(),context.token("="),context.space(),context.print(init,node),context.token(",");}function FlowExportDeclaration(node){if(node.declaration){const declar=node.declaration;this.print(declar,node),isStatement(declar)||this.semicolon();}else this.tokenChar(123),node.specifiers.length&&(this.space(),this.printList(node.specifiers,node),this.space()),this.tokenChar(125),node.source&&(this.space(),this.word("from"),this.space(),this.print(node.source,node)),this.semicolon();}function andSeparator(){this.space(),this.tokenChar(38),this.space();}function orSeparator(){this.space(),this.tokenChar(124),this.space();}},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var _templateLiterals=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/template-literals.js");Object.keys(_templateLiterals).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_templateLiterals[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _templateLiterals[key]}}));}));var _expressions=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/expressions.js");Object.keys(_expressions).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_expressions[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _expressions[key]}}));}));var _statements=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/statements.js");Object.keys(_statements).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_statements[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _statements[key]}}));}));var _classes=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/classes.js");Object.keys(_classes).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_classes[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _classes[key]}}));}));var _methods=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/methods.js");Object.keys(_methods).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_methods[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _methods[key]}}));}));var _modules=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/modules.js");Object.keys(_modules).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_modules[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _modules[key]}}));}));var _types=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/types.js");Object.keys(_types).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_types[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _types[key]}}));}));var _flow=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/flow.js");Object.keys(_flow).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_flow[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _flow[key]}}));}));var _base=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/base.js");Object.keys(_base).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_base[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _base[key]}}));}));var _jsx=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/jsx.js");Object.keys(_jsx).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_jsx[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _jsx[key]}}));}));var _typescript=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/typescript.js");Object.keys(_typescript).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_typescript[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _typescript[key]}}));}));},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/jsx.js":(__unused_webpack_module,exports)=>{function spaceSeparator(){this.space();}Object.defineProperty(exports,"__esModule",{value:!0}),exports.JSXAttribute=function(node){this.print(node.name,node),node.value&&(this.tokenChar(61),this.print(node.value,node));},exports.JSXClosingElement=function(node){this.token("</"),this.print(node.name,node),this.tokenChar(62);},exports.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62);},exports.JSXElement=function(node){const open=node.openingElement;if(this.print(open,node),open.selfClosing)return;this.indent();for(const child of node.children)this.print(child,node);this.dedent(),this.print(node.closingElement,node);},exports.JSXEmptyExpression=function(node){this.printInnerComments(node);},exports.JSXExpressionContainer=function(node){this.tokenChar(123),this.print(node.expression,node),this.tokenChar(125);},exports.JSXFragment=function(node){this.print(node.openingFragment,node),this.indent();for(const child of node.children)this.print(child,node);this.dedent(),this.print(node.closingFragment,node);},exports.JSXIdentifier=function(node){this.word(node.name);},exports.JSXMemberExpression=function(node){this.print(node.object,node),this.tokenChar(46),this.print(node.property,node);},exports.JSXNamespacedName=function(node){this.print(node.namespace,node),this.tokenChar(58),this.print(node.name,node);},exports.JSXOpeningElement=function(node){this.tokenChar(60),this.print(node.name,node),this.print(node.typeParameters,node),node.attributes.length>0&&(this.space(),this.printJoin(node.attributes,node,{separator:spaceSeparator}));node.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62);},exports.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62);},exports.JSXSpreadAttribute=function(node){this.tokenChar(123),this.token("..."),this.print(node.argument,node),this.tokenChar(125);},exports.JSXSpreadChild=function(node){this.tokenChar(123),this.token("..."),this.print(node.expression,node),this.tokenChar(125);},exports.JSXText=function(node){const raw=this.getPossibleRaw(node);void 0!==raw?this.token(raw,!0):this.token(node.value,!0);};},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/methods.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrowFunctionExpression=function(node){node.async&&(this.word("async"),this.space());const firstParam=node.params[0];this.format.retainLines||this.format.auxiliaryCommentBefore||this.format.auxiliaryCommentAfter||1!==node.params.length||!isIdentifier(firstParam)||function(node,param){var _param$leadingComment,_param$trailingCommen;return !!(node.typeParameters||node.returnType||node.predicate||param.typeAnnotation||param.optional||null!=(_param$leadingComment=param.leadingComments)&&_param$leadingComment.length||null!=(_param$trailingCommen=param.trailingComments)&&_param$trailingCommen.length)}(node,firstParam)?this._params(node):this.print(firstParam,node);this._predicate(node),this.space(),this.token("=>"),this.space(),this.print(node.body,node);},exports.FunctionDeclaration=exports.FunctionExpression=function(node){this._functionHead(node),this.space(),this.print(node.body,node);},exports._functionHead=function(node){node.async&&(this.word("async"),this.space());this.word("function"),node.generator&&this.tokenChar(42);this.printInnerComments(node),this.space(),node.id&&this.print(node.id,node);this._params(node),"TSDeclareFunction"!==node.type&&this._predicate(node);},exports._methodHead=function(node){const kind=node.kind,key=node.key;"get"!==kind&&"set"!==kind||(this.word(kind),this.space());node.async&&(this._catchUp("start",key.loc),this.word("async"),this.space());"method"!==kind&&"init"!==kind||node.generator&&this.tokenChar(42);node.computed?(this.tokenChar(91),this.print(key,node),this.tokenChar(93)):this.print(key,node);node.optional&&this.tokenChar(63);this._params(node);},exports._param=function(parameter,parent){this.printJoin(parameter.decorators,parameter),this.print(parameter,parent),parameter.optional&&this.tokenChar(63);this.print(parameter.typeAnnotation,parameter);},exports._parameters=function(parameters,parent){for(let i=0;i<parameters.length;i++)this._param(parameters[i],parent),i<parameters.length-1&&(this.tokenChar(44),this.space());},exports._params=function(node){this.print(node.typeParameters,node),this.tokenChar(40),this._parameters(node.params,node),this.tokenChar(41),this.print(node.returnType,node,"ArrowFunctionExpression"===node.type);},exports._predicate=function(node){node.predicate&&(node.returnType||this.tokenChar(58),this.space(),this.print(node.predicate,node));};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isIdentifier}=_t;},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/modules.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExportAllDeclaration=function(node){this.word("export"),this.space(),"type"===node.exportKind&&(this.word("type"),this.space());this.tokenChar(42),this.space(),this.word("from"),this.space(),this.print(node.source,node),this.printAssertions(node),this.semicolon();},exports.ExportDefaultDeclaration=function(node){this.format.decoratorsBeforeExport&&isClassDeclaration(node.declaration)&&this.printJoin(node.declaration.decorators,node);this.word("export"),this.space(),this.word("default"),this.space();const declar=node.declaration;this.print(declar,node),isStatement(declar)||this.semicolon();},exports.ExportDefaultSpecifier=function(node){this.print(node.exported,node);},exports.ExportNamedDeclaration=function(node){this.format.decoratorsBeforeExport&&isClassDeclaration(node.declaration)&&this.printJoin(node.declaration.decorators,node);if(this.word("export"),this.space(),node.declaration){const declar=node.declaration;this.print(declar,node),isStatement(declar)||this.semicolon();}else {"type"===node.exportKind&&(this.word("type"),this.space());const specifiers=node.specifiers.slice(0);let hasSpecial=!1;for(;;){const first=specifiers[0];if(!isExportDefaultSpecifier(first)&&!isExportNamespaceSpecifier(first))break;hasSpecial=!0,this.print(specifiers.shift(),node),specifiers.length&&(this.tokenChar(44),this.space());}(specifiers.length||!specifiers.length&&!hasSpecial)&&(this.tokenChar(123),specifiers.length&&(this.space(),this.printList(specifiers,node),this.space()),this.tokenChar(125)),node.source&&(this.space(),this.word("from"),this.space(),this.print(node.source,node),this.printAssertions(node)),this.semicolon();}},exports.ExportNamespaceSpecifier=function(node){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(node.exported,node);},exports.ExportSpecifier=function(node){"type"===node.exportKind&&(this.word("type"),this.space());this.print(node.local,node),node.exported&&node.local.name!==node.exported.name&&(this.space(),this.word("as"),this.space(),this.print(node.exported,node));},exports.ImportAttribute=function(node){this.print(node.key),this.tokenChar(58),this.space(),this.print(node.value);},exports.ImportDeclaration=function(node){this.word("import"),this.space();const isTypeKind="type"===node.importKind||"typeof"===node.importKind;isTypeKind&&(this.word(node.importKind),this.space());const specifiers=node.specifiers.slice(0),hasSpecifiers=!!specifiers.length;for(;hasSpecifiers;){const first=specifiers[0];if(!isImportDefaultSpecifier(first)&&!isImportNamespaceSpecifier(first))break;this.print(specifiers.shift(),node),specifiers.length&&(this.tokenChar(44),this.space());}specifiers.length?(this.tokenChar(123),this.space(),this.printList(specifiers,node),this.space(),this.tokenChar(125)):isTypeKind&&!hasSpecifiers&&(this.tokenChar(123),this.tokenChar(125));(hasSpecifiers||isTypeKind)&&(this.space(),this.word("from"),this.space());var _node$attributes;this.print(node.source,node),this.printAssertions(node),null!=(_node$attributes=node.attributes)&&_node$attributes.length&&(this.space(),this.word("with"),this.space(),this.printList(node.attributes,node));this.semicolon();},exports.ImportDefaultSpecifier=function(node){this.print(node.local,node);},exports.ImportNamespaceSpecifier=function(node){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(node.local,node);},exports.ImportSpecifier=function(node){"type"!==node.importKind&&"typeof"!==node.importKind||(this.word(node.importKind),this.space());this.print(node.imported,node),node.local&&node.local.name!==node.imported.name&&(this.space(),this.word("as"),this.space(),this.print(node.local,node));};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isClassDeclaration,isExportDefaultSpecifier,isExportNamespaceSpecifier,isImportDefaultSpecifier,isImportNamespaceSpecifier,isStatement}=_t;},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/statements.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.BreakStatement=function(node){this.word("break"),printStatementAfterKeyword(this,node.label,node,!0);},exports.CatchClause=function(node){this.word("catch"),this.space(),node.param&&(this.tokenChar(40),this.print(node.param,node),this.print(node.param.typeAnnotation,node),this.tokenChar(41),this.space());this.print(node.body,node);},exports.ContinueStatement=function(node){this.word("continue"),printStatementAfterKeyword(this,node.label,node,!0);},exports.DebuggerStatement=function(){this.word("debugger"),this.semicolon();},exports.DoWhileStatement=function(node){this.word("do"),this.space(),this.print(node.body,node),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(node.test,node),this.tokenChar(41),this.semicolon();},exports.ForOfStatement=exports.ForInStatement=void 0,exports.ForStatement=function(node){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(node.init,node),this.inForStatementInitCounter--,this.tokenChar(59),node.test&&(this.space(),this.print(node.test,node));this.tokenChar(59),node.update&&(this.space(),this.print(node.update,node));this.tokenChar(41),this.printBlock(node);},exports.IfStatement=function(node){this.word("if"),this.space(),this.tokenChar(40),this.print(node.test,node),this.tokenChar(41),this.space();const needsBlock=node.alternate&&isIfStatement(getLastStatement(node.consequent));needsBlock&&(this.tokenChar(123),this.newline(),this.indent());this.printAndIndentOnComments(node.consequent,node),needsBlock&&(this.dedent(),this.newline(),this.tokenChar(125));node.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(node.alternate,node));},exports.LabeledStatement=function(node){this.print(node.label,node),this.tokenChar(58),this.space(),this.print(node.body,node);},exports.ReturnStatement=function(node){this.word("return"),printStatementAfterKeyword(this,node.argument,node,!1);},exports.SwitchCase=function(node){node.test?(this.word("case"),this.space(),this.print(node.test,node),this.tokenChar(58)):(this.word("default"),this.tokenChar(58));node.consequent.length&&(this.newline(),this.printSequence(node.consequent,node,{indent:!0}));},exports.SwitchStatement=function(node){this.word("switch"),this.space(),this.tokenChar(40),this.print(node.discriminant,node),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(node.cases,node,{indent:!0,addNewlines(leading,cas){if(!leading&&node.cases[node.cases.length-1]===cas)return -1}}),this.tokenChar(125);},exports.ThrowStatement=function(node){this.word("throw"),printStatementAfterKeyword(this,node.argument,node,!1);},exports.TryStatement=function(node){this.word("try"),this.space(),this.print(node.block,node),this.space(),node.handlers?this.print(node.handlers[0],node):this.print(node.handler,node);node.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(node.finalizer,node));},exports.VariableDeclaration=function(node,parent){node.declare&&(this.word("declare"),this.space());this.word(node.kind),this.space();let separator,hasInits=!1;if(!isFor(parent))for(const declar of node.declarations)declar.init&&(hasInits=!0);hasInits&&(separator="const"===node.kind?constDeclarationIndent:variableDeclarationIndent);if(this.printList(node.declarations,node,{separator}),isFor(parent))if(isForStatement(parent)){if(parent.init===node)return}else if(parent.left===node)return;this.semicolon();},exports.VariableDeclarator=function(node){this.print(node.id,node),node.definite&&this.tokenChar(33);this.print(node.id.typeAnnotation,node),node.init&&(this.space(),this.tokenChar(61),this.space(),this.print(node.init,node));},exports.WhileStatement=function(node){this.word("while"),this.space(),this.tokenChar(40),this.print(node.test,node),this.tokenChar(41),this.printBlock(node);},exports.WithStatement=function(node){this.word("with"),this.space(),this.tokenChar(40),this.print(node.object,node),this.tokenChar(41),this.printBlock(node);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isFor,isForStatement,isIfStatement,isStatement}=_t;function getLastStatement(statement){const{body}=statement;return !1===isStatement(body)?statement:getLastStatement(body)}function ForXStatement(node){this.word("for"),this.space();const isForOf="ForOfStatement"===node.type;isForOf&&node.await&&(this.word("await"),this.space()),this.tokenChar(40),this.print(node.left,node),this.space(),this.word(isForOf?"of":"in"),this.space(),this.print(node.right,node),this.tokenChar(41),this.printBlock(node);}const ForInStatement=ForXStatement;exports.ForInStatement=ForInStatement;const ForOfStatement=ForXStatement;function printStatementAfterKeyword(printer,node,parent,isLabel){node&&(printer.space(),printer.printTerminatorless(node,parent,isLabel)),printer.semicolon();}function variableDeclarationIndent(){if(this.tokenChar(44),this.newline(),this.endsWith(10))for(let i=0;i<4;i++)this.space(!0);}function constDeclarationIndent(){if(this.tokenChar(44),this.newline(),this.endsWith(10))for(let i=0;i<6;i++)this.space(!0);}exports.ForOfStatement=ForOfStatement;},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/template-literals.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.TaggedTemplateExpression=function(node){this.print(node.tag,node),this.print(node.typeParameters,node),this.print(node.quasi,node);},exports.TemplateElement=function(node,parent){const isFirst=parent.quasis[0]===node,isLast=parent.quasis[parent.quasis.length-1]===node,value=(isFirst?"`":"}")+node.value.raw+(isLast?"`":"${");this.token(value,!0);},exports.TemplateLiteral=function(node){const quasis=node.quasis;for(let i=0;i<quasis.length;i++)this.print(quasis[i],node),i+1<quasis.length&&this.print(node.expressions[i],node);};},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/types.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArgumentPlaceholder=function(){this.tokenChar(63);},exports.ArrayPattern=exports.ArrayExpression=function(node){const elems=node.elements,len=elems.length;this.tokenChar(91),this.printInnerComments(node);for(let i=0;i<elems.length;i++){const elem=elems[i];elem?(i>0&&this.space(),this.print(elem,node),i<len-1&&this.tokenChar(44)):this.tokenChar(44);}this.tokenChar(93);},exports.BigIntLiteral=function(node){const raw=this.getPossibleRaw(node);if(!this.format.minified&&void 0!==raw)return void this.word(raw);this.word(node.value+"n");},exports.BooleanLiteral=function(node){this.word(node.value?"true":"false");},exports.DecimalLiteral=function(node){const raw=this.getPossibleRaw(node);if(!this.format.minified&&void 0!==raw)return void this.word(raw);this.word(node.value+"m");},exports.Identifier=function(node){this.exactSource(node.loc,(()=>{this.word(node.name);}));},exports.NullLiteral=function(){this.word("null");},exports.NumericLiteral=function(node){const raw=this.getPossibleRaw(node),opts=this.format.jsescOption,value=node.value+"";opts.numbers?this.number(_jsesc(node.value,opts)):null==raw?this.number(value):this.format.minified?this.number(raw.length<value.length?raw:value):this.number(raw);},exports.ObjectPattern=exports.ObjectExpression=function(node){const props=node.properties;this.tokenChar(123),this.printInnerComments(node),props.length&&(this.space(),this.printList(props,node,{indent:!0,statement:!0}),this.space());this.tokenChar(125);},exports.ObjectMethod=function(node){this.printJoin(node.decorators,node),this._methodHead(node),this.space(),this.print(node.body,node);},exports.ObjectProperty=function(node){if(this.printJoin(node.decorators,node),node.computed)this.tokenChar(91),this.print(node.key,node),this.tokenChar(93);else {if(isAssignmentPattern(node.value)&&isIdentifier(node.key)&&node.key.name===node.value.left.name)return void this.print(node.value,node);if(this.print(node.key,node),node.shorthand&&isIdentifier(node.key)&&isIdentifier(node.value)&&node.key.name===node.value.name)return}this.tokenChar(58),this.space(),this.print(node.value,node);},exports.PipelineBareFunction=function(node){this.print(node.callee,node);},exports.PipelinePrimaryTopicReference=function(){this.tokenChar(35);},exports.PipelineTopicExpression=function(node){this.print(node.expression,node);},exports.RecordExpression=function(node){const props=node.properties;let startToken,endToken;if("bar"===this.format.recordAndTupleSyntaxType)startToken="{|",endToken="|}";else {if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);startToken="#{",endToken="}";}this.token(startToken),this.printInnerComments(node),props.length&&(this.space(),this.printList(props,node,{indent:!0,statement:!0}),this.space());this.token(endToken);},exports.RegExpLiteral=function(node){this.word(`/${node.pattern}/${node.flags}`);},exports.SpreadElement=exports.RestElement=function(node){this.token("..."),this.print(node.argument,node);},exports.StringLiteral=function(node){const raw=this.getPossibleRaw(node);if(!this.format.minified&&void 0!==raw)return void this.token(raw);const val=_jsesc(node.value,Object.assign(this.format.jsescOption,this.format.jsonCompatibleStrings&&{json:!0}));return this.token(val)},exports.TopicReference=function(){const{topicToken}=this.format;if(!validTopicTokenSet.has(topicToken)){const givenTopicTokenJSON=JSON.stringify(topicToken),validTopics=Array.from(validTopicTokenSet,(v=>JSON.stringify(v)));throw new Error(`The "topicToken" generator option must be one of ${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`)}this.token(topicToken);},exports.TupleExpression=function(node){const elems=node.elements,len=elems.length;let startToken,endToken;if("bar"===this.format.recordAndTupleSyntaxType)startToken="[|",endToken="|]";else {if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);startToken="#[",endToken="]";}this.token(startToken),this.printInnerComments(node);for(let i=0;i<elems.length;i++){const elem=elems[i];elem&&(i>0&&this.space(),this.print(elem,node),i<len-1&&this.tokenChar(44));}this.token(endToken);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_jsesc=__webpack_require__("./node_modules/.pnpm/jsesc@2.5.2/node_modules/jsesc/jsesc.js");const{isAssignmentPattern,isIdentifier}=_t;const validTopicTokenSet=new Set(["^^","@@","^","%","#"]);},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/typescript.js":(__unused_webpack_module,exports)=>{function tsPrintBraced(printer,members,node){if(printer.token("{"),members.length){printer.indent(),printer.newline();for(const member of members)printer.print(member,node),printer.newline();printer.dedent(),printer.rightBrace();}else printer.token("}");}function tsPrintUnionOrIntersectionType(printer,node,sep){printer.printJoin(node.types,node,{separator(){this.space(),this.token(sep),this.space();}});}function tokenIfPlusMinus(self,tok){!0!==tok&&self.token(tok);}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TSAnyKeyword=function(){this.word("any");},exports.TSArrayType=function(node){this.print(node.elementType,node,!0),this.token("[]");},exports.TSAsExpression=function(node){const{expression,typeAnnotation}=node;this.print(expression,node),this.space(),this.word("as"),this.space(),this.print(typeAnnotation,node);},exports.TSBigIntKeyword=function(){this.word("bigint");},exports.TSBooleanKeyword=function(){this.word("boolean");},exports.TSCallSignatureDeclaration=function(node){this.tsPrintSignatureDeclarationBase(node),this.tokenChar(59);},exports.TSConditionalType=function(node){this.print(node.checkType),this.space(),this.word("extends"),this.space(),this.print(node.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(node.trueType),this.space(),this.tokenChar(58),this.space(),this.print(node.falseType);},exports.TSConstructSignatureDeclaration=function(node){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(node),this.tokenChar(59);},exports.TSConstructorType=function(node){node.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(node);},exports.TSDeclareFunction=function(node){node.declare&&(this.word("declare"),this.space());this._functionHead(node),this.tokenChar(59);},exports.TSDeclareMethod=function(node){this._classMethodHead(node),this.tokenChar(59);},exports.TSEnumDeclaration=function(node){const{declare,const:isConst,id,members}=node;declare&&(this.word("declare"),this.space());isConst&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(id,node),this.space(),tsPrintBraced(this,members,node);},exports.TSEnumMember=function(node){const{id,initializer}=node;this.print(id,node),initializer&&(this.space(),this.tokenChar(61),this.space(),this.print(initializer,node));this.tokenChar(44);},exports.TSExportAssignment=function(node){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(node.expression,node),this.tokenChar(59);},exports.TSExpressionWithTypeArguments=function(node){this.print(node.expression,node),this.print(node.typeParameters,node);},exports.TSExternalModuleReference=function(node){this.token("require("),this.print(node.expression,node),this.tokenChar(41);},exports.TSFunctionType=function(node){this.tsPrintFunctionOrConstructorType(node);},exports.TSImportEqualsDeclaration=function(node){const{isExport,id,moduleReference}=node;isExport&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(id,node),this.space(),this.tokenChar(61),this.space(),this.print(moduleReference,node),this.tokenChar(59);},exports.TSImportType=function(node){const{argument,qualifier,typeParameters}=node;this.word("import"),this.tokenChar(40),this.print(argument,node),this.tokenChar(41),qualifier&&(this.tokenChar(46),this.print(qualifier,node));typeParameters&&this.print(typeParameters,node);},exports.TSIndexSignature=function(node){const{readonly,static:isStatic}=node;isStatic&&(this.word("static"),this.space());readonly&&(this.word("readonly"),this.space());this.tokenChar(91),this._parameters(node.parameters,node),this.tokenChar(93),this.print(node.typeAnnotation,node),this.tokenChar(59);},exports.TSIndexedAccessType=function(node){this.print(node.objectType,node,!0),this.tokenChar(91),this.print(node.indexType,node),this.tokenChar(93);},exports.TSInferType=function(node){this.token("infer"),this.space(),this.print(node.typeParameter);},exports.TSInstantiationExpression=function(node){this.print(node.expression,node),this.print(node.typeParameters,node);},exports.TSInterfaceBody=function(node){this.tsPrintTypeLiteralOrInterfaceBody(node.body,node);},exports.TSInterfaceDeclaration=function(node){const{declare,id,typeParameters,extends:extendz,body}=node;declare&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(id,node),this.print(typeParameters,node),null!=extendz&&extendz.length&&(this.space(),this.word("extends"),this.space(),this.printList(extendz,node));this.space(),this.print(body,node);},exports.TSIntersectionType=function(node){tsPrintUnionOrIntersectionType(this,node,"&");},exports.TSIntrinsicKeyword=function(){this.word("intrinsic");},exports.TSLiteralType=function(node){this.print(node.literal,node);},exports.TSMappedType=function(node){const{nameType,optional,readonly,typeParameter}=node;this.tokenChar(123),this.space(),readonly&&(tokenIfPlusMinus(this,readonly),this.word("readonly"),this.space());this.tokenChar(91),this.word(typeParameter.name),this.space(),this.word("in"),this.space(),this.print(typeParameter.constraint,typeParameter),nameType&&(this.space(),this.word("as"),this.space(),this.print(nameType,node));this.tokenChar(93),optional&&(tokenIfPlusMinus(this,optional),this.tokenChar(63));this.tokenChar(58),this.space(),this.print(node.typeAnnotation,node),this.space(),this.tokenChar(125);},exports.TSMethodSignature=function(node){const{kind}=node;"set"!==kind&&"get"!==kind||(this.word(kind),this.space());this.tsPrintPropertyOrMethodName(node),this.tsPrintSignatureDeclarationBase(node),this.tokenChar(59);},exports.TSModuleBlock=function(node){tsPrintBraced(this,node.body,node);},exports.TSModuleDeclaration=function(node){const{declare,id}=node;declare&&(this.word("declare"),this.space());node.global||(this.word("Identifier"===id.type?"namespace":"module"),this.space());if(this.print(id,node),!node.body)return void this.tokenChar(59);let body=node.body;for(;"TSModuleDeclaration"===body.type;)this.tokenChar(46),this.print(body.id,body),body=body.body;this.space(),this.print(body,node);},exports.TSNamedTupleMember=function(node){this.print(node.label,node),node.optional&&this.tokenChar(63);this.tokenChar(58),this.space(),this.print(node.elementType,node);},exports.TSNamespaceExportDeclaration=function(node){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(node.id,node);},exports.TSNeverKeyword=function(){this.word("never");},exports.TSNonNullExpression=function(node){this.print(node.expression,node),this.tokenChar(33);},exports.TSNullKeyword=function(){this.word("null");},exports.TSNumberKeyword=function(){this.word("number");},exports.TSObjectKeyword=function(){this.word("object");},exports.TSOptionalType=function(node){this.print(node.typeAnnotation,node),this.tokenChar(63);},exports.TSParameterProperty=function(node){node.accessibility&&(this.word(node.accessibility),this.space());node.readonly&&(this.word("readonly"),this.space());this._param(node.parameter);},exports.TSParenthesizedType=function(node){this.tokenChar(40),this.print(node.typeAnnotation,node),this.tokenChar(41);},exports.TSPropertySignature=function(node){const{readonly,initializer}=node;readonly&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(node),this.print(node.typeAnnotation,node),initializer&&(this.space(),this.tokenChar(61),this.space(),this.print(initializer,node));this.tokenChar(59);},exports.TSQualifiedName=function(node){this.print(node.left,node),this.tokenChar(46),this.print(node.right,node);},exports.TSRestType=function(node){this.token("..."),this.print(node.typeAnnotation,node);},exports.TSStringKeyword=function(){this.word("string");},exports.TSSymbolKeyword=function(){this.word("symbol");},exports.TSThisType=function(){this.word("this");},exports.TSTupleType=function(node){this.tokenChar(91),this.printList(node.elementTypes,node),this.tokenChar(93);},exports.TSTypeAliasDeclaration=function(node){const{declare,id,typeParameters,typeAnnotation}=node;declare&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(id,node),this.print(typeParameters,node),this.space(),this.tokenChar(61),this.space(),this.print(typeAnnotation,node),this.tokenChar(59);},exports.TSTypeAnnotation=function(node){this.tokenChar(58),this.space(),node.optional&&this.tokenChar(63);this.print(node.typeAnnotation,node);},exports.TSTypeAssertion=function(node){const{typeAnnotation,expression}=node;this.tokenChar(60),this.print(typeAnnotation,node),this.tokenChar(62),this.space(),this.print(expression,node);},exports.TSTypeLiteral=function(node){this.tsPrintTypeLiteralOrInterfaceBody(node.members,node);},exports.TSTypeOperator=function(node){this.word(node.operator),this.space(),this.print(node.typeAnnotation,node);},exports.TSTypeParameter=function(node){node.in&&(this.word("in"),this.space());node.out&&(this.word("out"),this.space());this.word(node.name),node.constraint&&(this.space(),this.word("extends"),this.space(),this.print(node.constraint,node));node.default&&(this.space(),this.tokenChar(61),this.space(),this.print(node.default,node));},exports.TSTypeParameterDeclaration=exports.TSTypeParameterInstantiation=function(node,parent){this.tokenChar(60),this.printList(node.params,node,{}),"ArrowFunctionExpression"===parent.type&&1===node.params.length&&this.tokenChar(44);this.tokenChar(62);},exports.TSTypePredicate=function(node){node.asserts&&(this.word("asserts"),this.space());this.print(node.parameterName),node.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(node.typeAnnotation.typeAnnotation));},exports.TSTypeQuery=function(node){this.word("typeof"),this.space(),this.print(node.exprName),node.typeParameters&&this.print(node.typeParameters,node);},exports.TSTypeReference=function(node){this.print(node.typeName,node,!0),this.print(node.typeParameters,node,!0);},exports.TSUndefinedKeyword=function(){this.word("undefined");},exports.TSUnionType=function(node){tsPrintUnionOrIntersectionType(this,node,"|");},exports.TSUnknownKeyword=function(){this.word("unknown");},exports.TSVoidKeyword=function(){this.word("void");},exports.tsPrintClassMemberModifiers=function(node){const isField="ClassAccessorProperty"===node.type||"ClassProperty"===node.type;isField&&node.declare&&(this.word("declare"),this.space());node.accessibility&&(this.word(node.accessibility),this.space());node.static&&(this.word("static"),this.space());node.override&&(this.word("override"),this.space());node.abstract&&(this.word("abstract"),this.space());isField&&node.readonly&&(this.word("readonly"),this.space());},exports.tsPrintFunctionOrConstructorType=function(node){const{typeParameters}=node,parameters=node.parameters;this.print(typeParameters,node),this.tokenChar(40),this._parameters(parameters,node),this.tokenChar(41),this.space(),this.token("=>"),this.space();const returnType=node.typeAnnotation;this.print(returnType.typeAnnotation,node);},exports.tsPrintPropertyOrMethodName=function(node){node.computed&&this.tokenChar(91);this.print(node.key,node),node.computed&&this.tokenChar(93);node.optional&&this.tokenChar(63);},exports.tsPrintSignatureDeclarationBase=function(node){const{typeParameters}=node,parameters=node.parameters;this.print(typeParameters,node),this.tokenChar(40),this._parameters(parameters,node),this.tokenChar(41);const returnType=node.typeAnnotation;this.print(returnType,node);},exports.tsPrintTypeLiteralOrInterfaceBody=function(members,node){tsPrintBraced(this,members,node);};},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodeGenerator=void 0,exports.default=function(ast,opts,code){return new Generator(ast,opts,code).generate()};var _sourceMap=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/source-map.js"),_printer=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/printer.js");class Generator extends _printer.default{constructor(ast,opts={},code){const format=function(code,opts){const format={auxiliaryCommentBefore:opts.auxiliaryCommentBefore,auxiliaryCommentAfter:opts.auxiliaryCommentAfter,shouldPrintComment:opts.shouldPrintComment,retainLines:opts.retainLines,retainFunctionParens:opts.retainFunctionParens,comments:null==opts.comments||opts.comments,compact:opts.compact,minified:opts.minified,concise:opts.concise,indent:{adjustMultilineComment:!0,style:" ",base:0},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},opts.jsescOption),recordAndTupleSyntaxType:opts.recordAndTupleSyntaxType,topicToken:opts.topicToken};format.decoratorsBeforeExport=!!opts.decoratorsBeforeExport,format.jsonCompatibleStrings=opts.jsonCompatibleStrings,format.minified?(format.compact=!0,format.shouldPrintComment=format.shouldPrintComment||(()=>format.comments)):format.shouldPrintComment=format.shouldPrintComment||(value=>format.comments||value.includes("@license")||value.includes("@preserve"));"auto"===format.compact&&(format.compact=code.length>5e5,format.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`));format.compact&&(format.indent.adjustMultilineComment=!1);return format}(code,opts);super(format,opts.sourceMaps?new _sourceMap.default(opts,code):null),this.ast=void 0,this.ast=ast;}generate(){return super.generate(this.ast)}}exports.CodeGenerator=class{constructor(ast,opts,code){this._generator=void 0,this._generator=new Generator(ast,opts,code);}generate(){return this._generator.generate()}};},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.needsParens=function(node,parent,printStack){if(!parent)return !1;if(isNewExpression(parent)&&parent.callee===node&&isOrHasCallExpression(node))return !0;return find(expandedParens,node,parent,printStack)},exports.needsWhitespace=needsWhitespace,exports.needsWhitespaceAfter=function(node,parent){return needsWhitespace(node,parent,2)},exports.needsWhitespaceBefore=function(node,parent){return needsWhitespace(node,parent,1)};var whitespace=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/whitespace.js"),parens=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/parentheses.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{FLIPPED_ALIAS_KEYS,isCallExpression,isExpressionStatement,isMemberExpression,isNewExpression}=_t;function expandAliases(obj){const newObj={};function add(type,func){const fn=newObj[type];newObj[type]=fn?function(node,parent,stack){const result=fn(node,parent,stack);return null==result?func(node,parent,stack):result}:func;}for(const type of Object.keys(obj)){const aliases=FLIPPED_ALIAS_KEYS[type];if(aliases)for(const alias of aliases)add(alias,obj[type]);else add(type,obj[type]);}return newObj}const expandedParens=expandAliases(parens),expandedWhitespaceNodes=expandAliases(whitespace.nodes);function find(obj,node,parent,printStack){const fn=obj[node.type];return fn?fn(node,parent,printStack):null}function isOrHasCallExpression(node){return !!isCallExpression(node)||isMemberExpression(node)&&isOrHasCallExpression(node.object)}function needsWhitespace(node,parent,type){if(!node)return !1;isExpressionStatement(node)&&(node=node.expression);const flag=find(expandedWhitespaceNodes,node,parent);return "number"==typeof flag&&0!=(flag&type)}},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/parentheses.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrowFunctionExpression=function(node,parent){return isExportDeclaration(parent)||ConditionalExpression(node,parent)},exports.AssignmentExpression=function(node,parent){return !!isObjectPattern(node.left)||ConditionalExpression(node,parent)},exports.Binary=function(node,parent){if("**"===node.operator&&isBinaryExpression(parent,{operator:"**"}))return parent.left===node;if(isClassExtendsClause(node,parent))return !0;if(hasPostfixPart(node,parent)||isUnaryLike(parent)||isAwaitExpression(parent))return !0;if(isBinary(parent)){const parentOp=parent.operator,parentPos=PRECEDENCE[parentOp],nodeOp=node.operator,nodePos=PRECEDENCE[nodeOp];if(parentPos===nodePos&&parent.right===node&&!isLogicalExpression(parent)||parentPos>nodePos)return !0}},exports.BinaryExpression=function(node,parent){return "in"===node.operator&&(isVariableDeclarator(parent)||isFor(parent))},exports.ClassExpression=function(node,parent,printStack){return isFirstInContext(printStack,5)},exports.ConditionalExpression=ConditionalExpression,exports.DoExpression=function(node,parent,printStack){return !node.async&&isFirstInContext(printStack,1)},exports.FunctionExpression=function(node,parent,printStack){return isFirstInContext(printStack,5)},exports.FunctionTypeAnnotation=function(node,parent,printStack){if(printStack.length<3)return;return isUnionTypeAnnotation(parent)||isIntersectionTypeAnnotation(parent)||isArrayTypeAnnotation(parent)||isTypeAnnotation(parent)&&isArrowFunctionExpression(printStack[printStack.length-3])},exports.Identifier=function(node,parent,printStack){var _node$extra;if(null!=(_node$extra=node.extra)&&_node$extra.parenthesized&&isAssignmentExpression(parent,{left:node})&&(isFunctionExpression(parent.right)||isClassExpression(parent.right))&&null==parent.right.id)return !0;if("let"===node.name){const isFollowedByBracket=isMemberExpression(parent,{object:node,computed:!0})||isOptionalMemberExpression(parent,{object:node,computed:!0,optional:!1});return isFirstInContext(printStack,isFollowedByBracket?57:32)}return "async"===node.name&&isForOfStatement(parent)&&node===parent.left},exports.LogicalExpression=function(node,parent){switch(node.operator){case"||":return !!isLogicalExpression(parent)&&("??"===parent.operator||"&&"===parent.operator);case"&&":return isLogicalExpression(parent,{operator:"??"});case"??":return isLogicalExpression(parent)&&"??"!==parent.operator}},exports.NullableTypeAnnotation=function(node,parent){return isArrayTypeAnnotation(parent)},exports.ObjectExpression=function(node,parent,printStack){return isFirstInContext(printStack,3)},exports.OptionalIndexedAccessType=function(node,parent){return isIndexedAccessType(parent,{objectType:node})},exports.OptionalCallExpression=exports.OptionalMemberExpression=function(node,parent){return isCallExpression(parent,{callee:node})||isMemberExpression(parent,{object:node})},exports.SequenceExpression=function(node,parent){if(isForStatement(parent)||isThrowStatement(parent)||isReturnStatement(parent)||isIfStatement(parent)&&parent.test===node||isWhileStatement(parent)&&parent.test===node||isForInStatement(parent)&&parent.right===node||isSwitchStatement(parent)&&parent.discriminant===node||isExpressionStatement(parent)&&parent.expression===node)return !1;return !0},exports.TSAsExpression=function(){return !0},exports.TSInferType=function(node,parent){return isTSArrayType(parent)||isTSOptionalType(parent)},exports.TSInstantiationExpression=function(node,parent){return (isCallExpression(parent)||isOptionalCallExpression(parent)||isNewExpression(parent)||isTSInstantiationExpression(parent))&&!!parent.typeParameters},exports.TSTypeAssertion=function(){return !0},exports.TSIntersectionType=exports.TSUnionType=function(node,parent){return isTSArrayType(parent)||isTSOptionalType(parent)||isTSIntersectionType(parent)||isTSUnionType(parent)||isTSRestType(parent)},exports.UnaryLike=UnaryLike,exports.IntersectionTypeAnnotation=exports.UnionTypeAnnotation=function(node,parent){return isArrayTypeAnnotation(parent)||isNullableTypeAnnotation(parent)||isIntersectionTypeAnnotation(parent)||isUnionTypeAnnotation(parent)},exports.UpdateExpression=function(node,parent){return hasPostfixPart(node,parent)||isClassExtendsClause(node,parent)},exports.AwaitExpression=exports.YieldExpression=function(node,parent){return isBinary(parent)||isUnaryLike(parent)||hasPostfixPart(node,parent)||isAwaitExpression(parent)&&isYieldExpression(node)||isConditionalExpression(parent)&&node===parent.test||isClassExtendsClause(node,parent)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isArrayTypeAnnotation,isArrowFunctionExpression,isAssignmentExpression,isAwaitExpression,isBinary,isBinaryExpression,isUpdateExpression,isCallExpression,isClass,isClassExpression,isConditional,isConditionalExpression,isExportDeclaration,isExportDefaultDeclaration,isExpressionStatement,isFor,isForInStatement,isForOfStatement,isForStatement,isFunctionExpression,isIfStatement,isIndexedAccessType,isIntersectionTypeAnnotation,isLogicalExpression,isMemberExpression,isNewExpression,isNullableTypeAnnotation,isObjectPattern,isOptionalCallExpression,isOptionalMemberExpression,isReturnStatement,isSequenceExpression,isSwitchStatement,isTSArrayType,isTSAsExpression,isTSInstantiationExpression,isTSIntersectionType,isTSNonNullExpression,isTSOptionalType,isTSRestType,isTSTypeAssertion,isTSUnionType,isTaggedTemplateExpression,isThrowStatement,isTypeAnnotation,isUnaryLike,isUnionTypeAnnotation,isVariableDeclarator,isWhileStatement,isYieldExpression}=_t,PRECEDENCE={"||":0,"??":0,"|>":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},isClassExtendsClause=(node,parent)=>isClass(parent,{superClass:node}),hasPostfixPart=(node,parent)=>(isMemberExpression(parent)||isOptionalMemberExpression(parent))&&parent.object===node||(isCallExpression(parent)||isOptionalCallExpression(parent)||isNewExpression(parent))&&parent.callee===node||isTaggedTemplateExpression(parent)&&parent.tag===node||isTSNonNullExpression(parent);function UnaryLike(node,parent){return hasPostfixPart(node,parent)||isBinaryExpression(parent,{operator:"**",left:node})||isClassExtendsClause(node,parent)}function ConditionalExpression(node,parent){return !!(isUnaryLike(parent)||isBinary(parent)||isConditionalExpression(parent,{test:node})||isAwaitExpression(parent)||isTSTypeAssertion(parent)||isTSAsExpression(parent))||UnaryLike(node,parent)}function isFirstInContext(printStack,checkParam){const expressionStatement=1&checkParam,arrowBody=2&checkParam,exportDefault=4&checkParam,forHead=8&checkParam,forInHead=16&checkParam,forOfHead=32&checkParam;let i=printStack.length-1;if(i<=0)return;let node=printStack[i];i--;let parent=printStack[i];for(;i>=0;){if(expressionStatement&&isExpressionStatement(parent,{expression:node})||exportDefault&&isExportDefaultDeclaration(parent,{declaration:node})||arrowBody&&isArrowFunctionExpression(parent,{body:node})||forHead&&isForStatement(parent,{init:node})||forInHead&&isForInStatement(parent,{left:node})||forOfHead&&isForOfStatement(parent,{left:node}))return !0;if(!(i>0&&(hasPostfixPart(node,parent)&&!isNewExpression(parent)||isSequenceExpression(parent)&&parent.expressions[0]===node||isUpdateExpression(parent)&&!parent.prefix||isConditional(parent,{test:node})||isBinary(parent,{left:node})||isAssignmentExpression(parent,{left:node}))))return !1;node=parent,i--,parent=printStack[i];}return !1}},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/whitespace.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.nodes=void 0;var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{FLIPPED_ALIAS_KEYS,isArrayExpression,isAssignmentExpression,isBinary,isBlockStatement,isCallExpression,isFunction,isIdentifier,isLiteral,isMemberExpression,isObjectExpression,isOptionalCallExpression,isOptionalMemberExpression,isStringLiteral}=_t;function crawlInternal(node,state){return node?(isMemberExpression(node)||isOptionalMemberExpression(node)?(crawlInternal(node.object,state),node.computed&&crawlInternal(node.property,state)):isBinary(node)||isAssignmentExpression(node)?(crawlInternal(node.left,state),crawlInternal(node.right,state)):isCallExpression(node)||isOptionalCallExpression(node)?(state.hasCall=!0,crawlInternal(node.callee,state)):isFunction(node)?state.hasFunction=!0:isIdentifier(node)&&(state.hasHelper=state.hasHelper||node.callee&&isHelper(node.callee)),state):state}function crawl(node){return crawlInternal(node,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function isHelper(node){return !!node&&(isMemberExpression(node)?isHelper(node.object)||isHelper(node.property):isIdentifier(node)?"require"===node.name||95===node.name.charCodeAt(0):isCallExpression(node)?isHelper(node.callee):!(!isBinary(node)&&!isAssignmentExpression(node))&&(isIdentifier(node.left)&&isHelper(node.left)||isHelper(node.right)))}function isType(node){return isLiteral(node)||isObjectExpression(node)||isArrayExpression(node)||isIdentifier(node)||isMemberExpression(node)}const nodes={AssignmentExpression(node){const state=crawl(node.right);if(state.hasCall&&state.hasHelper||state.hasFunction)return state.hasFunction?3:2},SwitchCase:(node,parent)=>(node.consequent.length||parent.cases[0]===node?1:0)|(node.consequent.length||parent.cases[parent.cases.length-1]!==node?0:2),LogicalExpression(node){if(isFunction(node.left)||isFunction(node.right))return 2},Literal(node){if(isStringLiteral(node)&&"use strict"===node.value)return 2},CallExpression(node){if(isFunction(node.callee)||isHelper(node))return 3},OptionalCallExpression(node){if(isFunction(node.callee))return 3},VariableDeclaration(node){for(let i=0;i<node.declarations.length;i++){const declar=node.declarations[i];let enabled=isHelper(declar.id)&&!isType(declar.init);if(!enabled&&declar.init){const state=crawl(declar.init);enabled=isHelper(declar.init)&&state.hasCall||state.hasFunction;}if(enabled)return 3}},IfStatement(node){if(isBlockStatement(node.consequent))return 3}};exports.nodes=nodes,nodes.ObjectProperty=nodes.ObjectTypeProperty=nodes.ObjectMethod=function(node,parent){if(parent.properties[0]===node)return 1},nodes.ObjectTypeCallProperty=function(node,parent){var _parent$properties;if(parent.callProperties[0]===node&&(null==(_parent$properties=parent.properties)||!_parent$properties.length))return 1},nodes.ObjectTypeIndexer=function(node,parent){var _parent$properties2,_parent$callPropertie;if(!(parent.indexers[0]!==node||null!=(_parent$properties2=parent.properties)&&_parent$properties2.length||null!=(_parent$callPropertie=parent.callProperties)&&_parent$callPropertie.length))return 1},nodes.ObjectTypeInternalSlot=function(node,parent){var _parent$properties3,_parent$callPropertie2,_parent$indexers;if(!(parent.internalSlots[0]!==node||null!=(_parent$properties3=parent.properties)&&_parent$properties3.length||null!=(_parent$callPropertie2=parent.callProperties)&&_parent$callPropertie2.length||null!=(_parent$indexers=parent.indexers)&&_parent$indexers.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([type,amounts]){[type].concat(FLIPPED_ALIAS_KEYS[type]||[]).forEach((function(type){const ret=amounts?3:0;nodes[type]=()=>ret;}));}));},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/printer.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _buffer=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/buffer.js"),n=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/node/index.js"),generatorFunctions=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/generators/index.js");const SCIENTIFIC_NOTATION=/e/i,ZERO_DECIMAL_INTEGER=/\.0+$/,NON_DECIMAL_LITERAL=/^0[box]/,PURE_ANNOTATION_RE=/^\s*[@#]__PURE__\s*$/,{needsParens,needsWhitespaceAfter,needsWhitespaceBefore}=n;class Printer{constructor(format,map){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentChar=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=format,this._buf=new _buffer.default(map),this._indentChar=format.indent.style.charCodeAt(0),this._indentRepeat=format.indent.style.length;}generate(ast){return this.print(ast),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++;}dedent(){this.format.compact||this.format.concise||this._indent--;}semicolon(force=!1){this._maybeAddAuxComment(),force?this._appendChar(59):this._queue(59);}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.tokenChar(125);}space(force=!1){if(!this.format.compact)if(force)this._space();else if(this._buf.hasContent()){const lastCp=this.getLastChar();32!==lastCp&&10!==lastCp&&this._space();}}word(str){(this._endsWithWord||47===str.charCodeAt(0)&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(str,!1),this._endsWithWord=!0;}number(str){this.word(str),this._endsWithInteger=Number.isInteger(+str)&&!NON_DECIMAL_LITERAL.test(str)&&!SCIENTIFIC_NOTATION.test(str)&&!ZERO_DECIMAL_INTEGER.test(str)&&46!==str.charCodeAt(str.length-1);}token(str,maybeNewline=!1){const lastChar=this.getLastChar(),strFirst=str.charCodeAt(0);(33===lastChar&&"--"===str||43===strFirst&&43===lastChar||45===strFirst&&45===lastChar||46===strFirst&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(str,maybeNewline);}tokenChar(char){const lastChar=this.getLastChar();(43===char&&43===lastChar||45===char&&45===lastChar||46===char&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(char);}newline(i=1){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();const charBeforeNewline=this.endsWithCharAndNewline();if(10!==charBeforeNewline&&(123!==charBeforeNewline&&58!==charBeforeNewline||i--,!(i<=0)))for(let j=0;j<i;j++)this._newline();}endsWith(char){return this.getLastChar()===char}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline();}exactSource(loc,cb){this._catchUp("start",loc),this._buf.exactSource(loc,cb);}source(prop,loc){this._catchUp(prop,loc),this._buf.source(prop,loc);}withSource(prop,loc,cb){this._catchUp(prop,loc),this._buf.withSource(prop,loc,cb);}_space(){this._queue(32);}_newline(){this._queue(10);}_append(str,maybeNewline){this._maybeAddParen(str),this._maybeIndent(str.charCodeAt(0)),this._buf.append(str,maybeNewline),this._endsWithWord=!1,this._endsWithInteger=!1;}_appendChar(char){this._maybeAddParenChar(char),this._maybeIndent(char),this._buf.appendChar(char),this._endsWithWord=!1,this._endsWithInteger=!1;}_queue(char){this._maybeAddParenChar(char),this._maybeIndent(char),this._buf.queue(char),this._endsWithWord=!1,this._endsWithInteger=!1;}_maybeIndent(firstChar){this._indent&&10!==firstChar&&this.endsWith(10)&&this._buf.queueIndentation(this._indentChar,this._getIndent());}_maybeAddParenChar(char){const parenPushNewlineState=this._parenPushNewlineState;parenPushNewlineState&&32!==char&&(10===char?(this.tokenChar(40),this.indent(),parenPushNewlineState.printed=!0):this._parenPushNewlineState=null);}_maybeAddParen(str){const parenPushNewlineState=this._parenPushNewlineState;if(!parenPushNewlineState)return;const len=str.length;let i;for(i=0;i<len&&32===str.charCodeAt(i);i++)continue;if(i===len)return;const cha=str.charCodeAt(i);if(10!==cha){if(47!==cha||i+1===len)return void(this._parenPushNewlineState=null);const chaPost=str.charCodeAt(i+1);if(42===chaPost){if(PURE_ANNOTATION_RE.test(str.slice(i+2,len-2)))return}else if(47!==chaPost)return void(this._parenPushNewlineState=null)}this.tokenChar(40),this.indent(),parenPushNewlineState.printed=!0;}_catchUp(prop,loc){if(!this.format.retainLines)return;const pos=loc?loc[prop]:null;if(null!=(null==pos?void 0:pos.line)){const count=pos.line-this._buf.getCurrentLine();for(let i=0;i<count;i++)this._newline();}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(node,parent,isLabel){if(isLabel)this._noLineTerminator=!0,this.print(node,parent),this._noLineTerminator=!1;else {const terminatorState={printed:!1};this._parenPushNewlineState=terminatorState,this.print(node,parent),terminatorState.printed&&(this.dedent(),this.newline(),this.tokenChar(41));}}print(node,parent,noLineTerminator){if(!node)return;const nodeType=node.type,format=this.format,oldConcise=format.concise;node._compact&&(format.concise=!0);const printMethod=this[nodeType];if(void 0===printMethod)throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);this._printStack.push(node);const oldInAux=this._insideAux;let shouldPrintParens;this._insideAux=null==node.loc,this._maybeAddAuxComment(this._insideAux&&!oldInAux),shouldPrintParens=!!(format.retainFunctionParens&&"FunctionExpression"===nodeType&&node.extra&&node.extra.parenthesized)||needsParens(node,parent,this._printStack),shouldPrintParens&&this.tokenChar(40),this._printLeadingComments(node);const loc="Program"===nodeType||"File"===nodeType?null:node.loc;this.withSource("start",loc,printMethod.bind(this,node,parent)),noLineTerminator&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(node),this._noLineTerminator=!1):this._printTrailingComments(node),shouldPrintParens&&this.tokenChar(41),this._printStack.pop(),format.concise=oldConcise,this._insideAux=oldInAux;}_maybeAddAuxComment(enteredPositionlessNode){enteredPositionlessNode&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment();}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const comment=this.format.auxiliaryCommentBefore;comment&&this._printComment({type:"CommentBlock",value:comment});}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const comment=this.format.auxiliaryCommentAfter;comment&&this._printComment({type:"CommentBlock",value:comment});}getPossibleRaw(node){const extra=node.extra;if(extra&&null!=extra.raw&&null!=extra.rawValue&&node.value===extra.rawValue)return extra.raw}printJoin(nodes,parent,opts={}){if(null==nodes||!nodes.length)return;opts.indent&&this.indent();const newlineOpts={addNewlines:opts.addNewlines},len=nodes.length;for(let i=0;i<len;i++){const node=nodes[i];node&&(opts.statement&&this._printNewline(!0,node,parent,newlineOpts),this.print(node,parent),opts.iterator&&opts.iterator(node,i),opts.separator&&i<len-1&&opts.separator.call(this),opts.statement&&this._printNewline(!1,node,parent,newlineOpts));}opts.indent&&this.dedent();}printAndIndentOnComments(node,parent){const indent=node.leadingComments&&node.leadingComments.length>0;indent&&this.indent(),this.print(node,parent),indent&&this.dedent();}printBlock(parent){const node=parent.body;"EmptyStatement"!==node.type&&this.space(),this.print(node,parent);}_printTrailingComments(node){this._printComments(this._getComments(!1,node));}_printLeadingComments(node){this._printComments(this._getComments(!0,node),!0);}printInnerComments(node,indent=!0){var _node$innerComments;null!=(_node$innerComments=node.innerComments)&&_node$innerComments.length&&(indent&&this.indent(),this._printComments(node.innerComments),indent&&this.dedent());}printSequence(nodes,parent,opts={}){return opts.statement=!0,this.printJoin(nodes,parent,opts)}printList(items,parent,opts={}){return null==opts.separator&&(opts.separator=commaSeparator),this.printJoin(items,parent,opts)}_printNewline(leading,node,parent,opts){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let lines=0;if(this._buf.hasContent()){leading||lines++,opts.addNewlines&&(lines+=opts.addNewlines(leading,node)||0);(leading?needsWhitespaceBefore:needsWhitespaceAfter)(node,parent)&&lines++;}this.newline(Math.min(2,lines));}_getComments(leading,node){return node&&(leading?node.leadingComments:node.trailingComments)||null}_printComment(comment,skipNewLines){if(comment.ignore)return;if(this._printedComments.has(comment))return;if(!this.format.shouldPrintComment(comment.value))return;this._printedComments.add(comment);const isBlockComment="CommentBlock"===comment.type,printNewLines=isBlockComment&&!skipNewLines&&!this._noLineTerminator;printNewLines&&this._buf.hasContent()&&this.newline(1);const lastCharCode=this.getLastChar();let val;91!==lastCharCode&&123!==lastCharCode&&this.space();let maybeNewline=!1;if(isBlockComment){if(val=`/*${comment.value}*/`,this.format.indent.adjustMultilineComment){var _comment$loc;const offset=null==(_comment$loc=comment.loc)?void 0:_comment$loc.start.column;if(offset){const newlineRegex=new RegExp("\\n\\s{1,"+offset+"}","g");val=val.replace(newlineRegex,"\n");}const indentSize=Math.max(this._getIndent(),this.format.retainLines?0:this._buf.getCurrentColumn());val=val.replace(/\n(?!$)/g,`\n${" ".repeat(indentSize)}`),maybeNewline=!0;}}else this._noLineTerminator?val=`/*${comment.value}*/`:(val=`//${comment.value}\n`,maybeNewline=!0);this.endsWith(47)&&this._space(),this.withSource("start",comment.loc,this._append.bind(this,val,maybeNewline)),printNewLines&&this.newline(1);}_printComments(comments,inlinePureAnnotation){if(null!=comments&&comments.length)if(inlinePureAnnotation&&1===comments.length&&PURE_ANNOTATION_RE.test(comments[0].value))this._printComment(comments[0],this._buf.hasContent()&&!this.endsWith(10));else for(const comment of comments)this._printComment(comment);}printAssertions(node){var _node$assertions;null!=(_node$assertions=node.assertions)&&_node$assertions.length&&(this.space(),this.word("assert"),this.space(),this.tokenChar(123),this.space(),this.printList(node.assertions,node),this.space(),this.tokenChar(125));}}Object.assign(Printer.prototype,generatorFunctions),Printer.prototype.Noop=function(){};var _default=Printer;function commaSeparator(){this.tokenChar(44),this.space();}exports.default=_default;},"./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/source-map.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _genMapping=__webpack_require__("./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.2/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js");exports.default=class{constructor(opts,code){var _opts$sourceFileName;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0;const map=this._map=new _genMapping.GenMapping({sourceRoot:opts.sourceRoot});this._sourceFileName=null==(_opts$sourceFileName=opts.sourceFileName)?void 0:_opts$sourceFileName.replace(/\\/g,"/"),this._rawMappings=void 0,"string"==typeof code?(0, _genMapping.setSourceContent)(map,this._sourceFileName,code):"object"==typeof code&&Object.keys(code).forEach((sourceFileName=>{(0, _genMapping.setSourceContent)(map,sourceFileName.replace(/\\/g,"/"),code[sourceFileName]);}));}get(){return (0, _genMapping.toEncodedMap)(this._map)}getDecoded(){return (0, _genMapping.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0, _genMapping.allMappings)(this._map))}mark(generated,line,column,identifierName,filename){this._rawMappings=void 0,(0, _genMapping.maybeAddMapping)(this._map,{name:identifierName,generated,source:null==line?void 0:(null==filename?void 0:filename.replace(/\\/g,"/"))||this._sourceFileName,original:null==line?void 0:{line,column}});}};},"./node_modules/.pnpm/@babel+helper-annotate-as-pure@7.18.6/node_modules/@babel/helper-annotate-as-pure/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(pathOrNode){const node=pathOrNode.node||pathOrNode;if((({leadingComments})=>!!leadingComments&&leadingComments.some((comment=>/[@#]__PURE__/.test(comment.value))))(node))return;addComment(node,"leading","#__PURE__");};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{addComment}=_t;},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildDecoratedClass=function(ref,path,elements,file){const{node,scope}=path,initializeId=scope.generateUidIdentifier("initialize"),isDeclaration=node.id&&path.isDeclaration(),isStrict=path.isInStrictMode(),{superClass}=node;node.type="ClassDeclaration",node.id||(node.id=_core.types.cloneNode(ref));let superId;superClass&&(superId=scope.generateUidIdentifierBasedOnNode(node.superClass,"super"),node.superClass=superId);const classDecorators=takeDecorators(node),definitions=_core.types.arrayExpression(elements.filter((element=>!element.node.abstract&&"TSIndexSignature"!==element.node.type)).map((path=>function(file,classRef,superRef,path){const isMethod=path.isClassMethod();if(path.isPrivate())throw path.buildCodeFrameError(`Private ${isMethod?"methods":"fields"} in decorated classes are not supported yet.`);if("ClassAccessorProperty"===path.node.type)throw path.buildCodeFrameError('Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.');if("StaticBlock"===path.node.type)throw path.buildCodeFrameError('Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.');const{node,scope}=path;path.isTSDeclareMethod()||new _helperReplaceSupers.default({methodPath:path,objectRef:classRef,superRef,file,refToPreserve:classRef}).replace();const properties=[prop("kind",_core.types.stringLiteral(_core.types.isClassMethod(node)?node.kind:"field")),prop("decorators",takeDecorators(node)),prop("static",node.static&&_core.types.booleanLiteral(!0)),prop("key",getKey(node))].filter(Boolean);if(_core.types.isClassMethod(node)){const id=node.computed?null:node.key,transformed=_core.types.toExpression(node);properties.push(prop("value",(0, _helperFunctionName.default)({node:transformed,id,scope})||transformed));}else _core.types.isClassProperty(node)&&node.value?properties.push((key="value",body=_core.template.statements.ast`return ${node.value}`,_core.types.objectMethod("method",_core.types.identifier(key),[],_core.types.blockStatement(body)))):properties.push(prop("value",scope.buildUndefinedNode()));var key,body;return path.remove(),_core.types.objectExpression(properties)}(file,node.id,superId,path)))),wrapperCall=_core.template.expression.ast`
399 ${function(file){try{return file.addHelper("decorate")}catch(err){throw "BABEL_HELPER_UNKNOWN"===err.code&&(err.message+="\n '@babel/plugin-transform-decorators' in non-legacy mode requires '@babel/core' version ^7.0.2 and you appear to be using an older version."),err}}(file)}(
400 ${classDecorators||_core.types.nullLiteral()},
401 function (${initializeId}, ${superClass?_core.types.cloneNode(superId):null}) {
402 ${node}
403 return { F: ${_core.types.cloneNode(node.id)}, d: ${definitions} };
404 },
405 ${superClass}
406 )
407 `;isStrict||wrapperCall.arguments[1].body.directives.push(_core.types.directive(_core.types.directiveLiteral("use strict")));let replacement=wrapperCall,classPathDesc="arguments.1.body.body.0";isDeclaration&&(replacement=_core.template.statement.ast`let ${ref} = ${wrapperCall}`,classPathDesc="declarations.0.init."+classPathDesc);return {instanceNodes:[_core.template.statement.ast`${_core.types.cloneNode(initializeId)}(this)`],wrapClass:path=>(path.replaceWith(replacement),path.get(classPathDesc))}},exports.hasDecorators=function(node){return hasOwnDecorators(node)||node.body.body.some(hasOwnDecorators)},exports.hasOwnDecorators=hasOwnDecorators;var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_helperReplaceSupers=__webpack_require__("./node_modules/.pnpm/@babel+helper-replace-supers@7.19.1/node_modules/@babel/helper-replace-supers/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/.pnpm/@babel+helper-function-name@7.19.0/node_modules/@babel/helper-function-name/lib/index.js");function hasOwnDecorators(node){return !(!node.decorators||!node.decorators.length)}function prop(key,value){return value?_core.types.objectProperty(_core.types.identifier(key),value):null}function takeDecorators(node){let result;return node.decorators&&node.decorators.length>0&&(result=_core.types.arrayExpression(node.decorators.map((decorator=>decorator.expression)))),node.decorators=void 0,result}function getKey(node){return node.computed?node.key:_core.types.isIdentifier(node.key)?_core.types.stringLiteral(node.key.name):_core.types.stringLiteral(String(node.key.value))}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/features.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.FEATURES=void 0,exports.enableFeature=function(file,feature,loose){hasFeature(file,feature)&&!canIgnoreLoose(file,feature)||(file.set(featuresKey,file.get(featuresKey)|feature),"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"===loose?(setLoose(file,feature,!0),file.set(looseLowPriorityKey,file.get(looseLowPriorityKey)|feature)):"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"===loose?(setLoose(file,feature,!1),file.set(looseLowPriorityKey,file.get(looseLowPriorityKey)|feature)):setLoose(file,feature,loose));let resolvedLoose,higherPriorityPluginName;for(const[mask,name]of featuresSameLoose){if(!hasFeature(file,mask))continue;const loose=isLoose(file,mask);if(!canIgnoreLoose(file,mask)){if(resolvedLoose===!loose)throw new Error("'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).");resolvedLoose=loose,higherPriorityPluginName=name;}}if(void 0!==resolvedLoose)for(const[mask,name]of featuresSameLoose)hasFeature(file,mask)&&isLoose(file,mask)!==resolvedLoose&&(setLoose(file,mask,resolvedLoose),console.warn(`Though the "loose" option was set to "${!resolvedLoose}" in your @babel/preset-env config, it will not be used for ${name} since the "loose" mode option was set to "${resolvedLoose}" for ${higherPriorityPluginName}.\nThe "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding\n\t["${name}", { "loose": ${resolvedLoose} }]\nto the "plugins" section of your Babel config.`));},exports.isLoose=isLoose,exports.shouldTransform=function(path,file){let decoratorPath=null,publicFieldPath=null,privateFieldPath=null,privateMethodPath=null,staticBlockPath=null;(0, _decorators.hasOwnDecorators)(path.node)&&(decoratorPath=path.get("decorators.0"));for(const el of path.get("body.body"))!decoratorPath&&(0, _decorators.hasOwnDecorators)(el.node)&&(decoratorPath=el.get("decorators.0")),!publicFieldPath&&el.isClassProperty()&&(publicFieldPath=el),!privateFieldPath&&el.isClassPrivateProperty()&&(privateFieldPath=el),!privateMethodPath&&null!=el.isClassPrivateMethod&&el.isClassPrivateMethod()&&(privateMethodPath=el),!staticBlockPath&&null!=el.isStaticBlock&&el.isStaticBlock()&&(staticBlockPath=el);if(decoratorPath&&privateFieldPath)throw privateFieldPath.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(decoratorPath&&privateMethodPath)throw privateMethodPath.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(decoratorPath&&!hasFeature(file,FEATURES.decorators))throw path.buildCodeFrameError('Decorators are not enabled.\nIf you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:\n\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]\n\t["@babel/plugin-proposal-class-properties", { "loose": true }]');if(privateMethodPath&&!hasFeature(file,FEATURES.privateMethods))throw privateMethodPath.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-proposal-private-methods` to your configuration.");if((publicFieldPath||privateFieldPath)&&!hasFeature(file,FEATURES.fields)&&!hasFeature(file,FEATURES.privateMethods))throw path.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-proposal-class-properties` to your configuration.");if(staticBlockPath&&!hasFeature(file,FEATURES.staticBlocks))throw path.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-proposal-class-static-block` to your configuration.");if(decoratorPath||privateMethodPath||staticBlockPath)return !0;if((publicFieldPath||privateFieldPath)&&hasFeature(file,FEATURES.fields))return !0;return !1};var _decorators=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js");const FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32});exports.FEATURES=FEATURES;const featuresSameLoose=new Map([[FEATURES.fields,"@babel/plugin-proposal-class-properties"],[FEATURES.privateMethods,"@babel/plugin-proposal-private-methods"],[FEATURES.privateIn,"@babel/plugin-proposal-private-property-in-object"]]),featuresKey="@babel/plugin-class-features/featuresKey",looseKey="@babel/plugin-class-features/looseKey",looseLowPriorityKey="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";function hasFeature(file,feature){return !!(file.get(featuresKey)&feature)}function isLoose(file,feature){return !!(file.get(looseKey)&feature)}function setLoose(file,feature,loose){loose?file.set(looseKey,file.get(looseKey)|feature):file.set(looseKey,file.get(looseKey)&~feature),file.set(looseLowPriorityKey,file.get(looseLowPriorityKey)&~feature);}function canIgnoreLoose(file,feature){return !!(file.get(looseLowPriorityKey)&feature)}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildFieldsInitNodes=function(ref,superRef,props,privateNamesMap,state,setPublicClassFields,privateFieldsAsProperties,constantSuper,innerBindingRef){let injectSuperRef,needsClassRef=!1;const staticNodes=[],instanceNodes=[],pureStaticNodes=[],getSuperRef=_core.types.isIdentifier(superRef)?()=>superRef:()=>(null!=injectSuperRef||(injectSuperRef=props[0].scope.generateUidIdentifierBasedOnNode(superRef)),injectSuperRef);for(const prop of props){prop.isClassProperty()&&ts.assertFieldTransformed(prop);const isStatic=!(null!=_core.types.isStaticBlock&&_core.types.isStaticBlock(prop.node))&&prop.node.static,isInstance=!isStatic,isPrivate=prop.isPrivate(),isPublic=!isPrivate,isField=prop.isProperty(),isMethod=!isField,isStaticBlock=null==prop.isStaticBlock?void 0:prop.isStaticBlock();if(isStatic||isMethod&&isPrivate||isStaticBlock){const replaced=replaceThisContext(prop,ref,getSuperRef,state,isStaticBlock,constantSuper,innerBindingRef);needsClassRef=needsClassRef||replaced;}switch(!0){case isStaticBlock:{const blockBody=prop.node.body;1===blockBody.length&&_core.types.isExpressionStatement(blockBody[0])?staticNodes.push(blockBody[0]):staticNodes.push(_core.template.statement.ast`(() => { ${blockBody} })()`);break}case isStatic&&isPrivate&&isField&&privateFieldsAsProperties:needsClassRef=!0,staticNodes.push(buildPrivateFieldInitLoose(_core.types.cloneNode(ref),prop,privateNamesMap));break;case isStatic&&isPrivate&&isField&&!privateFieldsAsProperties:needsClassRef=!0,staticNodes.push(buildPrivateStaticFieldInitSpec(prop,privateNamesMap));break;case isStatic&&isPublic&&isField&&setPublicClassFields:if(!isNameOrLength(prop.node)){needsClassRef=!0,staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref),prop));break}case isStatic&&isPublic&&isField&&!setPublicClassFields:needsClassRef=!0,staticNodes.push(buildPublicFieldInitSpec(_core.types.cloneNode(ref),prop,state));break;case isInstance&&isPrivate&&isField&&privateFieldsAsProperties:instanceNodes.push(buildPrivateFieldInitLoose(_core.types.thisExpression(),prop,privateNamesMap));break;case isInstance&&isPrivate&&isField&&!privateFieldsAsProperties:instanceNodes.push(buildPrivateInstanceFieldInitSpec(_core.types.thisExpression(),prop,privateNamesMap,state));break;case isInstance&&isPrivate&&isMethod&&privateFieldsAsProperties:instanceNodes.unshift(buildPrivateMethodInitLoose(_core.types.thisExpression(),prop,privateNamesMap)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isInstance&&isPrivate&&isMethod&&!privateFieldsAsProperties:instanceNodes.unshift(buildPrivateInstanceMethodInitSpec(_core.types.thisExpression(),prop,privateNamesMap,state)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isStatic&&isPrivate&&isMethod&&!privateFieldsAsProperties:needsClassRef=!0,staticNodes.unshift(buildPrivateStaticFieldInitSpec(prop,privateNamesMap)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isStatic&&isPrivate&&isMethod&&privateFieldsAsProperties:needsClassRef=!0,staticNodes.unshift(buildPrivateStaticMethodInitLoose(_core.types.cloneNode(ref),prop,state,privateNamesMap)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isInstance&&isPublic&&isField&&setPublicClassFields:instanceNodes.push(buildPublicFieldInitLoose(_core.types.thisExpression(),prop));break;case isInstance&&isPublic&&isField&&!setPublicClassFields:instanceNodes.push(buildPublicFieldInitSpec(_core.types.thisExpression(),prop,state));break;default:throw new Error("Unreachable.")}}return {staticNodes:staticNodes.filter(Boolean),instanceNodes:instanceNodes.filter(Boolean),pureStaticNodes:pureStaticNodes.filter(Boolean),wrapClass(path){for(const prop of props)prop.remove();return injectSuperRef&&(path.scope.push({id:_core.types.cloneNode(injectSuperRef)}),path.set("superClass",_core.types.assignmentExpression("=",injectSuperRef,path.node.superClass))),needsClassRef?(path.isClassExpression()?(path.scope.push({id:ref}),path.replaceWith(_core.types.assignmentExpression("=",_core.types.cloneNode(ref),path.node))):path.node.id||(path.node.id=ref),path):path}}},exports.buildPrivateNamesMap=function(props){const privateNamesMap=new Map;for(const prop of props)if(prop.isPrivate()){const{name}=prop.node.key.id,update=privateNamesMap.has(name)?privateNamesMap.get(name):{id:prop.scope.generateUidIdentifier(name),static:prop.node.static,method:!prop.isProperty()};prop.isClassPrivateMethod()&&("get"===prop.node.kind?update.getId=prop.scope.generateUidIdentifier(`get_${name}`):"set"===prop.node.kind?update.setId=prop.scope.generateUidIdentifier(`set_${name}`):"method"===prop.node.kind&&(update.methodId=prop.scope.generateUidIdentifier(name))),privateNamesMap.set(name,update);}return privateNamesMap},exports.buildPrivateNamesNodes=function(privateNamesMap,privateFieldsAsProperties,state){const initNodes=[];for(const[name,value]of privateNamesMap){const{static:isStatic,method:isMethod,getId,setId}=value,isAccessor=getId||setId,id=_core.types.cloneNode(value.id);let init;privateFieldsAsProperties?init=_core.types.callExpression(state.addHelper("classPrivateFieldLooseKey"),[_core.types.stringLiteral(name)]):isStatic||(init=_core.types.newExpression(_core.types.identifier(!isMethod||isAccessor?"WeakMap":"WeakSet"),[])),init&&((0, _helperAnnotateAsPure.default)(init),initNodes.push(_core.template.statement.ast`var ${id} = ${init}`));}return initNodes},exports.transformPrivateNamesUsage=function(ref,path,privateNamesMap,{privateFieldsAsProperties,noDocumentAll,innerBinding},state){if(!privateNamesMap.size)return;const body=path.get("body"),handler=privateFieldsAsProperties?privateNameHandlerLoose:privateNameHandlerSpec;(0, _helperMemberExpressionToFunctions.default)(body,privateNameVisitor,Object.assign({privateNamesMap,classRef:ref,file:state},handler,{noDocumentAll,innerBinding})),body.traverse(privateInVisitor,{privateNamesMap,classRef:ref,file:state,privateFieldsAsProperties,innerBinding});};var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_helperReplaceSupers=__webpack_require__("./node_modules/.pnpm/@babel+helper-replace-supers@7.19.1/node_modules/@babel/helper-replace-supers/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js"),_helperMemberExpressionToFunctions=__webpack_require__("./node_modules/.pnpm/@babel+helper-member-expression-to-functions@7.18.9/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"),_helperOptimiseCallExpression=__webpack_require__("./node_modules/.pnpm/@babel+helper-optimise-call-expression@7.18.6/node_modules/@babel/helper-optimise-call-expression/lib/index.js"),_helperAnnotateAsPure=__webpack_require__("./node_modules/.pnpm/@babel+helper-annotate-as-pure@7.18.6/node_modules/@babel/helper-annotate-as-pure/lib/index.js"),ts=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js");function privateNameVisitorFactory(visitor){const privateNameVisitor=Object.assign({},visitor,{Class(path){const{privateNamesMap}=this,body=path.get("body.body"),visiblePrivateNames=new Map(privateNamesMap),redeclared=[];for(const prop of body){if(!prop.isPrivate())continue;const{name}=prop.node.key.id;visiblePrivateNames.delete(name),redeclared.push(name);}redeclared.length&&(path.get("body").traverse(nestedVisitor,Object.assign({},this,{redeclared})),path.traverse(privateNameVisitor,Object.assign({},this,{privateNamesMap:visiblePrivateNames})),path.skipKey("body"));}}),nestedVisitor=_core.traverse.visitors.merge([Object.assign({},visitor),_helperEnvironmentVisitor.default]);return privateNameVisitor}const privateNameVisitor=privateNameVisitorFactory({PrivateName(path,{noDocumentAll}){const{privateNamesMap,redeclared}=this,{node,parentPath}=path;if(!parentPath.isMemberExpression({property:node})&&!parentPath.isOptionalMemberExpression({property:node}))return;const{name}=node.id;privateNamesMap.has(name)&&(redeclared&&redeclared.includes(name)||this.handle(parentPath,noDocumentAll));}});function unshadow(name,scope,innerBinding){for(;null!=(_scope=scope)&&_scope.hasBinding(name)&&!scope.bindingIdentifierEquals(name,innerBinding);){var _scope;scope.rename(name),scope=scope.parent;}}const privateInVisitor=privateNameVisitorFactory({BinaryExpression(path){const{operator,left,right}=path.node;if("in"!==operator)return;if(!_core.types.isPrivateName(left))return;const{privateFieldsAsProperties,privateNamesMap,redeclared}=this,{name}=left.id;if(!privateNamesMap.has(name))return;if(redeclared&&redeclared.includes(name))return;if(unshadow(this.classRef.name,path.scope,this.innerBinding),privateFieldsAsProperties){const{id}=privateNamesMap.get(name);return void path.replaceWith(_core.template.expression.ast`
408 Object.prototype.hasOwnProperty.call(${right}, ${_core.types.cloneNode(id)})
409 `)}const{id,static:isStatic}=privateNamesMap.get(name);isStatic?path.replaceWith(_core.template.expression.ast`${right} === ${this.classRef}`):path.replaceWith(_core.template.expression.ast`${_core.types.cloneNode(id)}.has(${right})`);}}),privateNameHandlerSpec={memoise(member,count){const{scope}=member,{object}=member.node,memo=scope.maybeGenerateMemoised(object);memo&&this.memoiser.set(object,memo,count);},receiver(member){const{object}=member.node;return this.memoiser.has(object)?_core.types.cloneNode(this.memoiser.get(object)):_core.types.cloneNode(object)},get(member){const{classRef,privateNamesMap,file,innerBinding}=this,{name}=member.node.property.id,{id,static:isStatic,method:isMethod,methodId,getId,setId}=privateNamesMap.get(name),isAccessor=getId||setId;if(isStatic){const helperName=isMethod&&!isAccessor?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return unshadow(classRef.name,member.scope,innerBinding),_core.types.callExpression(file.addHelper(helperName),[this.receiver(member),_core.types.cloneNode(classRef),_core.types.cloneNode(id)])}if(isMethod){if(isAccessor){if(!getId&&setId){if(file.availableHelper("writeOnlyError"))return _core.types.sequenceExpression([this.receiver(member),_core.types.callExpression(file.addHelper("writeOnlyError"),[_core.types.stringLiteral(`#${name}`)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.");}return _core.types.callExpression(file.addHelper("classPrivateFieldGet"),[this.receiver(member),_core.types.cloneNode(id)])}return _core.types.callExpression(file.addHelper("classPrivateMethodGet"),[this.receiver(member),_core.types.cloneNode(id),_core.types.cloneNode(methodId)])}return _core.types.callExpression(file.addHelper("classPrivateFieldGet"),[this.receiver(member),_core.types.cloneNode(id)])},boundGet(member){return this.memoise(member,1),_core.types.callExpression(_core.types.memberExpression(this.get(member),_core.types.identifier("bind")),[this.receiver(member)])},set(member,value){const{classRef,privateNamesMap,file}=this,{name}=member.node.property.id,{id,static:isStatic,method:isMethod,setId,getId}=privateNamesMap.get(name);if(isStatic){const helperName=isMethod&&!(getId||setId)?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return _core.types.callExpression(file.addHelper(helperName),[this.receiver(member),_core.types.cloneNode(classRef),_core.types.cloneNode(id),value])}return isMethod?setId?_core.types.callExpression(file.addHelper("classPrivateFieldSet"),[this.receiver(member),_core.types.cloneNode(id),value]):_core.types.sequenceExpression([this.receiver(member),value,_core.types.callExpression(file.addHelper("readOnlyError"),[_core.types.stringLiteral(`#${name}`)])]):_core.types.callExpression(file.addHelper("classPrivateFieldSet"),[this.receiver(member),_core.types.cloneNode(id),value])},destructureSet(member){const{classRef,privateNamesMap,file}=this,{name}=member.node.property.id,{id,static:isStatic}=privateNamesMap.get(name);if(isStatic){try{var helper=file.addHelper("classStaticPrivateFieldDestructureSet");}catch(_unused){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return _core.types.memberExpression(_core.types.callExpression(helper,[this.receiver(member),_core.types.cloneNode(classRef),_core.types.cloneNode(id)]),_core.types.identifier("value"))}return _core.types.memberExpression(_core.types.callExpression(file.addHelper("classPrivateFieldDestructureSet"),[this.receiver(member),_core.types.cloneNode(id)]),_core.types.identifier("value"))},call(member,args){return this.memoise(member,1),(0, _helperOptimiseCallExpression.default)(this.get(member),this.receiver(member),args,!1)},optionalCall(member,args){return this.memoise(member,1),(0, _helperOptimiseCallExpression.default)(this.get(member),this.receiver(member),args,!0)}},privateNameHandlerLoose={get(member){const{privateNamesMap,file}=this,{object}=member.node,{name}=member.node.property.id;return _core.template.expression`BASE(REF, PROP)[PROP]`({BASE:file.addHelper("classPrivateFieldLooseBase"),REF:_core.types.cloneNode(object),PROP:_core.types.cloneNode(privateNamesMap.get(name).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(member){return _core.types.callExpression(_core.types.memberExpression(this.get(member),_core.types.identifier("bind")),[_core.types.cloneNode(member.node.object)])},simpleSet(member){return this.get(member)},destructureSet(member){return this.get(member)},call(member,args){return _core.types.callExpression(this.get(member),args)},optionalCall(member,args){return _core.types.optionalCallExpression(this.get(member),args,!0)}};function buildPrivateFieldInitLoose(ref,prop,privateNamesMap){const{id}=privateNamesMap.get(prop.node.key.id.name),value=prop.node.value||prop.scope.buildUndefinedNode();return _core.template.statement.ast`
410 Object.defineProperty(${ref}, ${_core.types.cloneNode(id)}, {
411 // configurable is false by default
412 // enumerable is false by default
413 writable: true,
414 value: ${value}
415 });
416 `}function buildPrivateInstanceFieldInitSpec(ref,prop,privateNamesMap,state){const{id}=privateNamesMap.get(prop.node.key.id.name),value=prop.node.value||prop.scope.buildUndefinedNode();if(!state.availableHelper("classPrivateFieldInitSpec"))return _core.template.statement.ast`${_core.types.cloneNode(id)}.set(${ref}, {
417 // configurable is always false for private elements
418 // enumerable is always false for private elements
419 writable: true,
420 value: ${value},
421 })`;const helper=state.addHelper("classPrivateFieldInitSpec");return _core.template.statement.ast`${helper}(
422 ${_core.types.thisExpression()},
423 ${_core.types.cloneNode(id)},
424 {
425 writable: true,
426 value: ${value}
427 },
428 )`}function buildPrivateStaticFieldInitSpec(prop,privateNamesMap){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,getId,setId,initAdded}=privateName,isAccessor=getId||setId;if(!prop.isProperty()&&(initAdded||!isAccessor))return;if(isAccessor)return privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),_core.template.statement.ast`
429 var ${_core.types.cloneNode(id)} = {
430 // configurable is false by default
431 // enumerable is false by default
432 // writable is false by default
433 get: ${getId?getId.name:prop.scope.buildUndefinedNode()},
434 set: ${setId?setId.name:prop.scope.buildUndefinedNode()}
435 }
436 `;const value=prop.node.value||prop.scope.buildUndefinedNode();return _core.template.statement.ast`
437 var ${_core.types.cloneNode(id)} = {
438 // configurable is false by default
439 // enumerable is false by default
440 writable: true,
441 value: ${value}
442 };
443 `}function buildPrivateMethodInitLoose(ref,prop,privateNamesMap){const privateName=privateNamesMap.get(prop.node.key.id.name),{methodId,id,getId,setId,initAdded}=privateName;if(initAdded)return;if(methodId)return _core.template.statement.ast`
444 Object.defineProperty(${ref}, ${id}, {
445 // configurable is false by default
446 // enumerable is false by default
447 // writable is false by default
448 value: ${methodId.name}
449 });
450 `;return getId||setId?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),_core.template.statement.ast`
451 Object.defineProperty(${ref}, ${id}, {
452 // configurable is false by default
453 // enumerable is false by default
454 // writable is false by default
455 get: ${getId?getId.name:prop.scope.buildUndefinedNode()},
456 set: ${setId?setId.name:prop.scope.buildUndefinedNode()}
457 });
458 `):void 0}function buildPrivateInstanceMethodInitSpec(ref,prop,privateNamesMap,state){const privateName=privateNamesMap.get(prop.node.key.id.name),{getId,setId,initAdded}=privateName;if(initAdded)return;return getId||setId?function(ref,prop,privateNamesMap,state){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,getId,setId}=privateName;if(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),!state.availableHelper("classPrivateFieldInitSpec"))return _core.template.statement.ast`
459 ${id}.set(${ref}, {
460 get: ${getId?getId.name:prop.scope.buildUndefinedNode()},
461 set: ${setId?setId.name:prop.scope.buildUndefinedNode()}
462 });
463 `;const helper=state.addHelper("classPrivateFieldInitSpec");return _core.template.statement.ast`${helper}(
464 ${_core.types.thisExpression()},
465 ${_core.types.cloneNode(id)},
466 {
467 get: ${getId?getId.name:prop.scope.buildUndefinedNode()},
468 set: ${setId?setId.name:prop.scope.buildUndefinedNode()}
469 },
470 )`}(ref,prop,privateNamesMap,state):function(ref,prop,privateNamesMap,state){const privateName=privateNamesMap.get(prop.node.key.id.name),{id}=privateName;if(!state.availableHelper("classPrivateMethodInitSpec"))return _core.template.statement.ast`${id}.add(${ref})`;const helper=state.addHelper("classPrivateMethodInitSpec");return _core.template.statement.ast`${helper}(
471 ${_core.types.thisExpression()},
472 ${_core.types.cloneNode(id)}
473 )`}(ref,prop,privateNamesMap,state)}function buildPublicFieldInitLoose(ref,prop){const{key,computed}=prop.node,value=prop.node.value||prop.scope.buildUndefinedNode();return _core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.memberExpression(ref,key,computed||_core.types.isLiteral(key)),value))}function buildPublicFieldInitSpec(ref,prop,state){const{key,computed}=prop.node,value=prop.node.value||prop.scope.buildUndefinedNode();return _core.types.expressionStatement(_core.types.callExpression(state.addHelper("defineProperty"),[ref,computed||_core.types.isLiteral(key)?key:_core.types.stringLiteral(key.name),value]))}function buildPrivateStaticMethodInitLoose(ref,prop,state,privateNamesMap){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,methodId,getId,setId,initAdded}=privateName;if(initAdded)return;return getId||setId?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),_core.template.statement.ast`
474 Object.defineProperty(${ref}, ${id}, {
475 // configurable is false by default
476 // enumerable is false by default
477 // writable is false by default
478 get: ${getId?getId.name:prop.scope.buildUndefinedNode()},
479 set: ${setId?setId.name:prop.scope.buildUndefinedNode()}
480 })
481 `):_core.template.statement.ast`
482 Object.defineProperty(${ref}, ${id}, {
483 // configurable is false by default
484 // enumerable is false by default
485 // writable is false by default
486 value: ${methodId.name}
487 });
488 `}function buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties=!1){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,methodId,getId,setId,getterDeclared,setterDeclared,static:isStatic}=privateName,{params,body,generator,async}=prop.node,isGetter=getId&&!getterDeclared&&0===params.length,isSetter=setId&&!setterDeclared&&params.length>0;let declId=methodId;return isGetter?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{getterDeclared:!0})),declId=getId):isSetter?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{setterDeclared:!0})),declId=setId):isStatic&&!privateFieldsAsProperties&&(declId=id),_core.types.functionDeclaration(_core.types.cloneNode(declId),params,body,generator,async)}const thisContextVisitor=_core.traverse.visitors.merge([{ThisExpression(path,state){state.needsClassRef=!0,path.replaceWith(_core.types.cloneNode(state.classRef));},MetaProperty(path){const meta=path.get("meta"),property=path.get("property"),{scope}=path;meta.isIdentifier({name:"new"})&&property.isIdentifier({name:"target"})&&path.replaceWith(scope.buildUndefinedNode());}},_helperEnvironmentVisitor.default]),innerReferencesVisitor={ReferencedIdentifier(path,state){path.scope.bindingIdentifierEquals(path.node.name,state.innerBinding)&&(state.needsClassRef=!0,path.node.name=state.classRef.name);}};function replaceThisContext(path,ref,getSuperRef,file,isStaticBlock,constantSuper,innerBindingRef){var _state$classRef;const state={classRef:ref,needsClassRef:!1,innerBinding:innerBindingRef};return new _helperReplaceSupers.default({methodPath:path,constantSuper,file,refToPreserve:ref,getSuperRef,getObjectRef:()=>(state.needsClassRef=!0,null!=_core.types.isStaticBlock&&_core.types.isStaticBlock(path.node)||path.node.static?ref:_core.types.memberExpression(ref,_core.types.identifier("prototype")))}).replace(),(isStaticBlock||path.isProperty())&&path.traverse(thisContextVisitor,state),null!=innerBindingRef&&null!=(_state$classRef=state.classRef)&&_state$classRef.name&&state.classRef.name!==(null==innerBindingRef?void 0:innerBindingRef.name)&&path.traverse(innerReferencesVisitor,state),state.needsClassRef}function isNameOrLength({key,computed}){return "Identifier"===key.type?!computed&&("name"===key.name||"length"===key.name):"StringLiteral"===key.type&&("name"===key.value||"length"===key.value)}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"FEATURES",{enumerable:!0,get:function(){return _features.FEATURES}}),exports.createClassFeaturePlugin=function({name,feature,loose,manipulateOptions,api={assumption:()=>{}},inherits}){const setPublicClassFields=api.assumption("setPublicClassFields"),privateFieldsAsProperties=api.assumption("privateFieldsAsProperties"),constantSuper=api.assumption("constantSuper"),noDocumentAll=api.assumption("noDocumentAll");if(!0===loose){const explicit=[];void 0!==setPublicClassFields&&explicit.push('"setPublicClassFields"'),void 0!==privateFieldsAsProperties&&explicit.push('"privateFieldsAsProperties"'),0!==explicit.length&&console.warn(`[${name}]: You are using the "loose: true" option and you are explicitly setting a value for the ${explicit.join(" and ")} assumption${explicit.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsProperties": true\n\t}`);}return {name,manipulateOptions,inherits,pre(file){(0, _features.enableFeature)(file,feature,loose),(!file.get(versionKey)||file.get(versionKey)<version)&&file.set(versionKey,version);},visitor:{Class(path,{file}){if(file.get(versionKey)!==version)return;if(!(0, _features.shouldTransform)(path,file))return;path.isClassDeclaration()&&(0, _typescript.assertFieldTransformed)(path);const loose=(0, _features.isLoose)(file,feature);let constructor;const isDecorated=(0, _decorators.hasDecorators)(path.node),props=[],elements=[],computedPaths=[],privateNames=new Set,body=path.get("body");for(const path of body.get("body")){if((path.isClassProperty()||path.isClassMethod())&&path.node.computed&&computedPaths.push(path),path.isPrivate()){const{name}=path.node.key.id,getName=`get ${name}`,setName=`set ${name}`;if(path.isClassPrivateMethod()){if("get"===path.node.kind){if(privateNames.has(getName)||privateNames.has(name)&&!privateNames.has(setName))throw path.buildCodeFrameError("Duplicate private field");privateNames.add(getName).add(name);}else if("set"===path.node.kind){if(privateNames.has(setName)||privateNames.has(name)&&!privateNames.has(getName))throw path.buildCodeFrameError("Duplicate private field");privateNames.add(setName).add(name);}}else {if(privateNames.has(name)&&!privateNames.has(getName)&&!privateNames.has(setName)||privateNames.has(name)&&(privateNames.has(getName)||privateNames.has(setName)))throw path.buildCodeFrameError("Duplicate private field");privateNames.add(name);}}path.isClassMethod({kind:"constructor"})?constructor=path:(elements.push(path),(path.isProperty()||path.isPrivate()||null!=path.isStaticBlock&&path.isStaticBlock())&&props.push(path));}if(!props.length&&!isDecorated)return;const innerBinding=path.node.id;let ref;!innerBinding||path.isClassExpression()?((0, _helperFunctionName.default)(path),ref=path.scope.generateUidIdentifier("class")):ref=_core.types.cloneNode(path.node.id);const privateNamesMap=(0, _fields.buildPrivateNamesMap)(props),privateNamesNodes=(0, _fields.buildPrivateNamesNodes)(privateNamesMap,null!=privateFieldsAsProperties?privateFieldsAsProperties:loose,file);let keysNodes,staticNodes,instanceNodes,pureStaticNodes,wrapClass;(0, _fields.transformPrivateNamesUsage)(ref,path,privateNamesMap,{privateFieldsAsProperties:null!=privateFieldsAsProperties?privateFieldsAsProperties:loose,noDocumentAll,innerBinding},file),isDecorated?(staticNodes=pureStaticNodes=keysNodes=[],({instanceNodes,wrapClass}=(0, _decorators.buildDecoratedClass)(ref,path,elements,file))):(keysNodes=(0, _misc.extractComputedKeys)(path,computedPaths,file),({staticNodes,pureStaticNodes,instanceNodes,wrapClass}=(0, _fields.buildFieldsInitNodes)(ref,path.node.superClass,props,privateNamesMap,file,null!=setPublicClassFields?setPublicClassFields:loose,null!=privateFieldsAsProperties?privateFieldsAsProperties:loose,null!=constantSuper?constantSuper:loose,innerBinding))),instanceNodes.length>0&&(0, _misc.injectInitialization)(path,constructor,instanceNodes,((referenceVisitor,state)=>{if(!isDecorated)for(const prop of props)null!=_core.types.isStaticBlock&&_core.types.isStaticBlock(prop.node)||prop.node.static||prop.traverse(referenceVisitor,state);}));const wrappedPath=wrapClass(path);wrappedPath.insertBefore([...privateNamesNodes,...keysNodes]),staticNodes.length>0&&wrappedPath.insertAfter(staticNodes),pureStaticNodes.length>0&&wrappedPath.find((parent=>parent.isStatement()||parent.isDeclaration())).insertAfter(pureStaticNodes);},ExportDefaultDeclaration(path,{file}){{if(file.get(versionKey)!==version)return;const decl=path.get("declaration");decl.isClassDeclaration()&&(0, _decorators.hasDecorators)(decl.node)&&(decl.node.id?(0, _helperSplitExportDeclaration.default)(path):decl.node.type="ClassExpression");}}}}},Object.defineProperty(exports,"enableFeature",{enumerable:!0,get:function(){return _features.enableFeature}}),Object.defineProperty(exports,"injectInitialization",{enumerable:!0,get:function(){return _misc.injectInitialization}});var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/.pnpm/@babel+helper-function-name@7.19.0/node_modules/@babel/helper-function-name/lib/index.js"),_helperSplitExportDeclaration=__webpack_require__("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js"),_fields=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js"),_decorators=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js"),_misc=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js"),_features=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/features.js"),_typescript=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js");const version="7.19.0".split(".").reduce(((v,x)=>1e5*v+ +x),0),versionKey="@babel/plugin-class-features/version";},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.extractComputedKeys=function(path,computedPaths,file){const declarations=[],state={classBinding:path.node.id&&path.scope.getBinding(path.node.id.name),file};for(const computedPath of computedPaths){const computedKey=computedPath.get("key");computedKey.isReferencedIdentifier()?handleClassTDZ(computedKey,state):computedKey.traverse(classFieldDefinitionEvaluationTDZVisitor,state);const computedNode=computedPath.node;if(!computedKey.isConstantExpression()){const ident=path.scope.generateUidIdentifierBasedOnNode(computedNode.key);path.scope.push({id:ident,kind:"let"}),declarations.push(_core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.cloneNode(ident),computedNode.key))),computedNode.key=_core.types.cloneNode(ident);}}return declarations},exports.injectInitialization=function(path,constructor,nodes,renamer){if(!nodes.length)return;const isDerived=!!path.node.superClass;if(!constructor){const newConstructor=_core.types.classMethod("constructor",_core.types.identifier("constructor"),[],_core.types.blockStatement([]));isDerived&&(newConstructor.params=[_core.types.restElement(_core.types.identifier("args"))],newConstructor.body.body.push(_core.template.statement.ast`super(...args)`)),[constructor]=path.get("body").unshiftContainer("body",newConstructor);}renamer&&renamer(referenceVisitor,{scope:constructor.scope});if(isDerived){const bareSupers=[];constructor.traverse(findBareSupers,bareSupers);let isFirst=!0;for(const bareSuper of bareSupers)isFirst?(bareSuper.insertAfter(nodes),isFirst=!1):bareSuper.insertAfter(nodes.map((n=>_core.types.cloneNode(n))));}else constructor.get("body").unshiftContainer("body",nodes);};var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js");const findBareSupers=_core.traverse.visitors.merge([{Super(path){const{node,parentPath}=path;parentPath.isCallExpression({callee:node})&&this.push(parentPath);}},_helperEnvironmentVisitor.default]),referenceVisitor={"TSTypeAnnotation|TypeAnnotation"(path){path.skip();},ReferencedIdentifier(path,{scope}){scope.hasOwnBinding(path.node.name)&&(scope.rename(path.node.name),path.skip());}};function handleClassTDZ(path,state){if(state.classBinding&&state.classBinding===path.scope.getBinding(path.node.name)){const classNameTDZError=state.file.addHelper("classNameTDZError"),throwNode=_core.types.callExpression(classNameTDZError,[_core.types.stringLiteral(path.node.name)]);path.replaceWith(_core.types.sequenceExpression([throwNode,path.node])),path.skip();}}const classFieldDefinitionEvaluationTDZVisitor={ReferencedIdentifier:handleClassTDZ};},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertFieldTransformed=function(path){if(path.node.declare)throw path.buildCodeFrameError("TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-proposal-class-properties\n - @babel/plugin-proposal-private-methods\n - @babel/plugin-proposal-decorators")};},"./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js":(__unused_webpack_module,exports)=>{function requeueComputedKeyAndDecorators(path){const{context,node}=path;if(node.computed&&context.maybeQueue(path.get("key")),node.decorators)for(const decorator of path.get("decorators"))context.maybeQueue(decorator);}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators,exports.skipAllButComputedKey=function(path){path.skip(),path.node.computed&&path.context.maybeQueue(path.get("key"));};var _default={FunctionParent(path){path.isArrowFunctionExpression()||(path.skip(),path.isMethod()&&requeueComputedKeyAndDecorators(path));},Property(path){path.isObjectProperty()||(path.skip(),requeueComputedKeyAndDecorators(path));}};exports.default=_default;},"./node_modules/.pnpm/@babel+helper-function-name@7.19.0/node_modules/@babel/helper-function-name/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function({node,parent,scope,id},localBinding=!1,supportUnicodeId=!1){if(node.id)return;if(!isObjectProperty(parent)&&!isObjectMethod(parent,{kind:"method"})||parent.computed&&!isLiteral(parent.key)){if(isVariableDeclarator(parent)){if(id=parent.id,isIdentifier(id)&&!localBinding){const binding=scope.parent.getBinding(id.name);if(binding&&binding.constant&&scope.getBinding(id.name)===binding)return node.id=cloneNode(id),void(node.id[NOT_LOCAL_BINDING]=!0)}}else if(isAssignmentExpression(parent,{operator:"="}))id=parent.left;else if(!id)return}else id=parent.key;let name;id&&isLiteral(id)?name=function(id){if(isNullLiteral(id))return "null";if(isRegExpLiteral(id))return `_${id.pattern}_${id.flags}`;if(isTemplateLiteral(id))return id.quasis.map((quasi=>quasi.value.raw)).join("");if(void 0!==id.value)return id.value+"";return ""}(id):id&&isIdentifier(id)&&(name=id.name);if(void 0===name)return;if(!supportUnicodeId&&isFunction(node)&&/[\uD800-\uDFFF]/.test(name))return;name=toBindingIdentifierName(name);const newId=identifier(name);newId[NOT_LOCAL_BINDING]=!0;return function(state,method,id,scope){if(state.selfReference){if(!scope.hasBinding(id.name)||scope.hasGlobal(id.name)){if(!isFunction(method))return;let build=buildPropertyMethodAssignmentWrapper;method.generator&&(build=buildGeneratorPropertyMethodAssignmentWrapper);const template=build({FUNCTION:method,FUNCTION_ID:id,FUNCTION_KEY:scope.generateUidIdentifier(id.name)}).expression,params=template.callee.body.body[0].params;for(let i=0,len=function(node){const count=node.params.findIndex((param=>isAssignmentPattern(param)||isRestElement(param)));return -1===count?node.params.length:count}(method);i<len;i++)params.push(scope.generateUidIdentifier("x"));return template}scope.rename(id.name);}method.id=id,scope.getProgramParent().references[id.name]=!0;}(function(node,name,scope){const state={selfAssignment:!1,selfReference:!1,outerDeclar:scope.getBindingIdentifier(name),name},binding=scope.getOwnBinding(name);binding?"param"===binding.kind&&(state.selfReference=!0):(state.outerDeclar||scope.hasGlobal(name))&&scope.traverse(node,visitor,state);return state}(node,name,scope),node,newId,scope)||node};var _template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{NOT_LOCAL_BINDING,cloneNode,identifier,isAssignmentExpression,isAssignmentPattern,isFunction,isIdentifier,isLiteral,isNullLiteral,isObjectMethod,isObjectProperty,isRegExpLiteral,isRestElement,isTemplateLiteral,isVariableDeclarator,toBindingIdentifierName}=_t;const buildPropertyMethodAssignmentWrapper=_template.default.statement("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),buildGeneratorPropertyMethodAssignmentWrapper=_template.default.statement("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),visitor={"ReferencedIdentifier|BindingIdentifier"(path,state){if(path.node.name!==state.name)return;path.scope.getBindingIdentifier(state.name)===state.outerDeclar&&(state.selfReference=!0,path.stop());}};},"./node_modules/.pnpm/@babel+helper-hoist-variables@7.18.6/node_modules/@babel/helper-hoist-variables/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,emit,kind="var"){path.traverse(visitor,{kind,emit});};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{assignmentExpression,expressionStatement,identifier}=_t,visitor={Scope(path,state){"let"===state.kind&&path.skip();},FunctionParent(path){path.skip();},VariableDeclaration(path,state){if(state.kind&&path.node.kind!==state.kind)return;const nodes=[],declarations=path.get("declarations");let firstId;for(const declar of declarations){firstId=declar.node.id,declar.node.init&&nodes.push(expressionStatement(assignmentExpression("=",declar.node.id,declar.node.init)));for(const name of Object.keys(declar.getBindingIdentifiers()))state.emit(identifier(name),name,null!==declar.node.init);}path.parentPath.isFor({left:path.node})?path.replaceWith(firstId):path.replaceWithMultiple(nodes);}};},"./node_modules/.pnpm/@babel+helper-member-expression-to-functions@7.18.9/node_modules/@babel/helper-member-expression-to-functions/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(k){if("default"!==k){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:!0,get:function(){return e[k]}});}})),n.default=e,Object.freeze(n)}Object.defineProperty(exports,"__esModule",{value:!0});var _t__namespace=_interopNamespace(__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"));function willPathCastToBoolean(path){const maybeWrapped=path,{node,parentPath}=maybeWrapped;if(parentPath.isLogicalExpression()){const{operator,right}=parentPath.node;if("&&"===operator||"||"===operator||"??"===operator&&node===right)return willPathCastToBoolean(parentPath)}if(parentPath.isSequenceExpression()){const{expressions}=parentPath.node;return expressions[expressions.length-1]!==node||willPathCastToBoolean(parentPath)}return parentPath.isConditional({test:node})||parentPath.isUnaryExpression({operator:"!"})||parentPath.isLoop({test:node})}const{LOGICAL_OPERATORS,arrowFunctionExpression,assignmentExpression,binaryExpression,booleanLiteral,callExpression,cloneNode,conditionalExpression,identifier,isMemberExpression,isOptionalCallExpression,isOptionalMemberExpression,isUpdateExpression,logicalExpression,memberExpression,nullLiteral,optionalCallExpression,optionalMemberExpression,sequenceExpression,updateExpression}=_t__namespace;class AssignmentMemoiser{constructor(){this._map=void 0,this._map=new WeakMap;}has(key){return this._map.has(key)}get(key){if(!this.has(key))return;const record=this._map.get(key),{value}=record;return record.count--,0===record.count?assignmentExpression("=",value,key):value}set(key,value,count){return this._map.set(key,{count,value})}}function toNonOptional(path,base){const{node}=path;if(isOptionalMemberExpression(node))return memberExpression(base,node.property,node.computed);if(path.isOptionalCallExpression()){const callee=path.get("callee");if(path.node.optional&&callee.isOptionalMemberExpression()){const object=callee.node.object,context=path.scope.maybeGenerateMemoised(object);return callee.get("object").replaceWith(assignmentExpression("=",context,object)),callExpression(memberExpression(base,identifier("call")),[context,...path.node.arguments])}return callExpression(base,path.node.arguments)}return path.node}const handle={memoise(){},handle(member,noDocumentAll){const{node,parent,parentPath,scope}=member;if(member.isOptionalMemberExpression()){if(function(path){for(;path&&!path.isProgram();){const{parentPath,container,listKey}=path,parentNode=parentPath.node;if(listKey){if(container!==parentNode[listKey])return !0}else if(container!==parentNode)return !0;path=parentPath;}return !1}(member))return;const endPath=member.find((({node,parent})=>isOptionalMemberExpression(parent)?parent.optional||parent.object!==node:!isOptionalCallExpression(parent)||(node!==member.node&&parent.optional||parent.callee!==node)));if(scope.path.isPattern())return void endPath.replaceWith(callExpression(arrowFunctionExpression([],endPath.node),[]));const willEndPathCastToBoolean=willPathCastToBoolean(endPath),rootParentPath=endPath.parentPath;if(rootParentPath.isUpdateExpression({argument:node})||rootParentPath.isAssignmentExpression({left:node}))throw member.buildCodeFrameError("can't handle assignment");const isDeleteOperation=rootParentPath.isUnaryExpression({operator:"delete"});if(isDeleteOperation&&endPath.isOptionalMemberExpression()&&endPath.get("property").isPrivateName())throw member.buildCodeFrameError("can't delete a private class element");let startingOptional=member;for(;;)if(startingOptional.isOptionalMemberExpression()){if(startingOptional.node.optional)break;startingOptional=startingOptional.get("object");}else {if(!startingOptional.isOptionalCallExpression())throw new Error(`Internal error: unexpected ${startingOptional.node.type}`);if(startingOptional.node.optional)break;startingOptional=startingOptional.get("callee");}const startingNode=startingOptional.isOptionalMemberExpression()?startingOptional.node.object:startingOptional.node.callee,baseNeedsMemoised=scope.maybeGenerateMemoised(startingNode),baseRef=null!=baseNeedsMemoised?baseNeedsMemoised:startingNode,parentIsOptionalCall=parentPath.isOptionalCallExpression({callee:node}),isOptionalCall=parent=>parentIsOptionalCall,parentIsCall=parentPath.isCallExpression({callee:node});startingOptional.replaceWith(toNonOptional(startingOptional,baseRef)),isOptionalCall()?parent.optional?parentPath.replaceWith(this.optionalCall(member,parent.arguments)):parentPath.replaceWith(this.call(member,parent.arguments)):parentIsCall?member.replaceWith(this.boundGet(member)):member.replaceWith(this.get(member));let context,regular=member.node;for(let current=member;current!==endPath;){const parentPath=current.parentPath;if(parentPath===endPath&&isOptionalCall()&&parent.optional){regular=parentPath.node;break}regular=toNonOptional(parentPath,regular),current=parentPath;}const endParentPath=endPath.parentPath;if(isMemberExpression(regular)&&endParentPath.isOptionalCallExpression({callee:endPath.node,optional:!0})){const{object}=regular;context=member.scope.maybeGenerateMemoised(object),context&&(regular.object=assignmentExpression("=",context,object));}let replacementPath=endPath;isDeleteOperation&&(replacementPath=endParentPath,regular=endParentPath.node);const baseMemoised=baseNeedsMemoised?assignmentExpression("=",cloneNode(baseRef),cloneNode(startingNode)):cloneNode(baseRef);if(willEndPathCastToBoolean){let nonNullishCheck;nonNullishCheck=noDocumentAll?binaryExpression("!=",baseMemoised,nullLiteral()):logicalExpression("&&",binaryExpression("!==",baseMemoised,nullLiteral()),binaryExpression("!==",cloneNode(baseRef),scope.buildUndefinedNode())),replacementPath.replaceWith(logicalExpression("&&",nonNullishCheck,regular));}else {let nullishCheck;nullishCheck=noDocumentAll?binaryExpression("==",baseMemoised,nullLiteral()):logicalExpression("||",binaryExpression("===",baseMemoised,nullLiteral()),binaryExpression("===",cloneNode(baseRef),scope.buildUndefinedNode())),replacementPath.replaceWith(conditionalExpression(nullishCheck,isDeleteOperation?booleanLiteral(!0):scope.buildUndefinedNode(),regular));}if(context){const endParent=endParentPath.node;endParentPath.replaceWith(optionalCallExpression(optionalMemberExpression(endParent.callee,identifier("call"),!1,!0),[cloneNode(context),...endParent.arguments],!1));}}else {if(isUpdateExpression(parent,{argument:node})){if(this.simpleSet)return void member.replaceWith(this.simpleSet(member));const{operator,prefix}=parent;this.memoise(member,2);const ref=scope.generateUidIdentifierBasedOnNode(node);scope.push({id:ref});const seq=[assignmentExpression("=",cloneNode(ref),this.get(member))];if(prefix){seq.push(updateExpression(operator,cloneNode(ref),prefix));const value=sequenceExpression(seq);return void parentPath.replaceWith(this.set(member,value))}{const ref2=scope.generateUidIdentifierBasedOnNode(node);scope.push({id:ref2}),seq.push(assignmentExpression("=",cloneNode(ref2),updateExpression(operator,cloneNode(ref),prefix)),cloneNode(ref));const value=sequenceExpression(seq);return void parentPath.replaceWith(sequenceExpression([this.set(member,value),cloneNode(ref2)]))}}if(parentPath.isAssignmentExpression({left:node})){if(this.simpleSet)return void member.replaceWith(this.simpleSet(member));const{operator,right:value}=parentPath.node;if("="===operator)parentPath.replaceWith(this.set(member,value));else {const operatorTrunc=operator.slice(0,-1);LOGICAL_OPERATORS.includes(operatorTrunc)?(this.memoise(member,1),parentPath.replaceWith(logicalExpression(operatorTrunc,this.get(member),this.set(member,value)))):(this.memoise(member,2),parentPath.replaceWith(this.set(member,binaryExpression(operatorTrunc,this.get(member),value))));}}else {if(!parentPath.isCallExpression({callee:node}))return parentPath.isOptionalCallExpression({callee:node})?scope.path.isPattern()?void parentPath.replaceWith(callExpression(arrowFunctionExpression([],parentPath.node),[])):void parentPath.replaceWith(this.optionalCall(member,parentPath.node.arguments)):void(parentPath.isForXStatement({left:node})||parentPath.isObjectProperty({value:node})&&parentPath.parentPath.isObjectPattern()||parentPath.isAssignmentPattern({left:node})&&parentPath.parentPath.isObjectProperty({value:parent})&&parentPath.parentPath.parentPath.isObjectPattern()||parentPath.isArrayPattern()||parentPath.isAssignmentPattern({left:node})&&parentPath.parentPath.isArrayPattern()||parentPath.isRestElement()?member.replaceWith(this.destructureSet(member)):parentPath.isTaggedTemplateExpression()?member.replaceWith(this.boundGet(member)):member.replaceWith(this.get(member)));parentPath.replaceWith(this.call(member,parentPath.node.arguments));}}}};exports.default=function(path,visitor,state){path.traverse(visitor,Object.assign({},handle,state,{memoiser:new AssignmentMemoiser}));};},"./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/import-builder.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{callExpression,cloneNode,expressionStatement,identifier,importDeclaration,importDefaultSpecifier,importNamespaceSpecifier,importSpecifier,memberExpression,stringLiteral,variableDeclaration,variableDeclarator}=_t;exports.default=class{constructor(importedSource,scope,hub){this._statements=[],this._resultName=null,this._importedSource=void 0,this._scope=scope,this._hub=hub,this._importedSource=importedSource;}done(){return {statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(importDeclaration([],stringLiteral(this._importedSource))),this}require(){return this._statements.push(expressionStatement(callExpression(identifier("require"),[stringLiteral(this._importedSource)]))),this}namespace(name="namespace"){const local=this._scope.generateUidIdentifier(name),statement=this._statements[this._statements.length-1];return _assert("ImportDeclaration"===statement.type),_assert(0===statement.specifiers.length),statement.specifiers=[importNamespaceSpecifier(local)],this._resultName=cloneNode(local),this}default(name){const id=this._scope.generateUidIdentifier(name),statement=this._statements[this._statements.length-1];return _assert("ImportDeclaration"===statement.type),_assert(0===statement.specifiers.length),statement.specifiers=[importDefaultSpecifier(id)],this._resultName=cloneNode(id),this}named(name,importName){if("default"===importName)return this.default(name);const id=this._scope.generateUidIdentifier(name),statement=this._statements[this._statements.length-1];return _assert("ImportDeclaration"===statement.type),_assert(0===statement.specifiers.length),statement.specifiers=[importSpecifier(id,identifier(importName))],this._resultName=cloneNode(id),this}var(name){const id=this._scope.generateUidIdentifier(name);let statement=this._statements[this._statements.length-1];return "ExpressionStatement"!==statement.type&&(_assert(this._resultName),statement=expressionStatement(this._resultName),this._statements.push(statement)),this._statements[this._statements.length-1]=variableDeclaration("var",[variableDeclarator(id,statement.expression)]),this._resultName=cloneNode(id),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(callee){const statement=this._statements[this._statements.length-1];return "ExpressionStatement"===statement.type?statement.expression=callExpression(callee,[statement.expression]):"VariableDeclaration"===statement.type?(_assert(1===statement.declarations.length),statement.declarations[0].init=callExpression(callee,[statement.declarations[0].init])):_assert.fail("Unexpected type."),this}prop(name){const statement=this._statements[this._statements.length-1];return "ExpressionStatement"===statement.type?statement.expression=memberExpression(statement.expression,identifier(name)):"VariableDeclaration"===statement.type?(_assert(1===statement.declarations.length),statement.declarations[0].init=memberExpression(statement.declarations[0].init,identifier(name))):_assert.fail("Unexpected type:"+statement.type),this}read(name){this._resultName=memberExpression(this._resultName,identifier(name));}};},"./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/import-injector.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_importBuilder=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/import-builder.js"),_isModule=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/is-module.js");const{numericLiteral,sequenceExpression}=_t;exports.default=class{constructor(path,importedSource,opts){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};const programPath=path.find((p=>p.isProgram()));this._programPath=programPath,this._programScope=programPath.scope,this._hub=programPath.hub,this._defaultOpts=this._applyDefaults(importedSource,opts,!0);}addDefault(importedSourceIn,opts){return this.addNamed("default",importedSourceIn,opts)}addNamed(importName,importedSourceIn,opts){return _assert("string"==typeof importName),this._generateImport(this._applyDefaults(importedSourceIn,opts),importName)}addNamespace(importedSourceIn,opts){return this._generateImport(this._applyDefaults(importedSourceIn,opts),null)}addSideEffect(importedSourceIn,opts){return this._generateImport(this._applyDefaults(importedSourceIn,opts),void 0)}_applyDefaults(importedSource,opts,isInit=!1){let newOpts;return "string"==typeof importedSource?newOpts=Object.assign({},this._defaultOpts,{importedSource},opts):(_assert(!opts,"Unexpected secondary arguments."),newOpts=Object.assign({},this._defaultOpts,importedSource)),!isInit&&opts&&(void 0!==opts.nameHint&&(newOpts.nameHint=opts.nameHint),void 0!==opts.blockHoist&&(newOpts.blockHoist=opts.blockHoist)),newOpts}_generateImport(opts,importName){const isDefault="default"===importName,isNamed=!!importName&&!isDefault,isNamespace=null===importName,{importedSource,importedType,importedInterop,importingInterop,ensureLiveReference,ensureNoContext,nameHint,importPosition,blockHoist}=opts;let name=nameHint||importName;const isMod=(0, _isModule.default)(this._programPath),isModuleForNode=isMod&&"node"===importingInterop,isModuleForBabel=isMod&&"babel"===importingInterop;if("after"===importPosition&&!isMod)throw new Error('"importPosition": "after" is only supported in modules');const builder=new _importBuilder.default(importedSource,this._programScope,this._hub);if("es6"===importedType){if(!isModuleForNode&&!isModuleForBabel)throw new Error("Cannot import an ES6 module from CommonJS");builder.import(),isNamespace?builder.namespace(nameHint||importedSource):(isDefault||isNamed)&&builder.named(name,importName);}else {if("commonjs"!==importedType)throw new Error(`Unexpected interopType "${importedType}"`);if("babel"===importedInterop)if(isModuleForNode){name="default"!==name?name:importedSource;const es6Default=`${importedSource}$es6Default`;builder.import(),isNamespace?builder.default(es6Default).var(name||importedSource).wildcardInterop():isDefault?ensureLiveReference?builder.default(es6Default).var(name||importedSource).defaultInterop().read("default"):builder.default(es6Default).var(name).defaultInterop().prop(importName):isNamed&&builder.default(es6Default).read(importName);}else isModuleForBabel?(builder.import(),isNamespace?builder.namespace(name||importedSource):(isDefault||isNamed)&&builder.named(name,importName)):(builder.require(),isNamespace?builder.var(name||importedSource).wildcardInterop():(isDefault||isNamed)&&ensureLiveReference?isDefault?(name="default"!==name?name:importedSource,builder.var(name).read(importName),builder.defaultInterop()):builder.var(importedSource).read(importName):isDefault?builder.var(name).defaultInterop().prop(importName):isNamed&&builder.var(name).prop(importName));else if("compiled"===importedInterop)isModuleForNode?(builder.import(),isNamespace?builder.default(name||importedSource):(isDefault||isNamed)&&builder.default(importedSource).read(name)):isModuleForBabel?(builder.import(),isNamespace?builder.namespace(name||importedSource):(isDefault||isNamed)&&builder.named(name,importName)):(builder.require(),isNamespace?builder.var(name||importedSource):(isDefault||isNamed)&&(ensureLiveReference?builder.var(importedSource).read(name):builder.prop(importName).var(name)));else {if("uncompiled"!==importedInterop)throw new Error(`Unknown importedInterop "${importedInterop}".`);if(isDefault&&ensureLiveReference)throw new Error("No live reference for commonjs default");isModuleForNode?(builder.import(),isNamespace?builder.default(name||importedSource):isDefault?builder.default(name):isNamed&&builder.default(importedSource).read(name)):isModuleForBabel?(builder.import(),isNamespace?builder.default(name||importedSource):isDefault?builder.default(name):isNamed&&builder.named(name,importName)):(builder.require(),isNamespace?builder.var(name||importedSource):isDefault?builder.var(name):isNamed&&(ensureLiveReference?builder.var(importedSource).read(name):builder.var(name).prop(importName)));}}const{statements,resultName}=builder.done();return this._insertStatements(statements,importPosition,blockHoist),(isDefault||isNamed)&&ensureNoContext&&"Identifier"!==resultName.type?sequenceExpression([numericLiteral(0),resultName]):resultName}_insertStatements(statements,importPosition="before",blockHoist=3){const body=this._programPath.get("body");if("after"===importPosition){for(let i=body.length-1;i>=0;i--)if(body[i].isImportDeclaration())return void body[i].insertAfter(statements)}else {statements.forEach((node=>{node._blockHoist=blockHoist;}));const targetPath=body.find((p=>{const val=p.node._blockHoist;return Number.isFinite(val)&&val<4}));if(targetPath)return void targetPath.insertBefore(statements)}this._programPath.unshiftContainer("body",statements);}};},"./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ImportInjector",{enumerable:!0,get:function(){return _importInjector.default}}),exports.addDefault=function(path,importedSource,opts){return new _importInjector.default(path).addDefault(importedSource,opts)},exports.addNamed=function(path,name,importedSource,opts){return new _importInjector.default(path).addNamed(name,importedSource,opts)},exports.addNamespace=function(path,importedSource,opts){return new _importInjector.default(path).addNamespace(importedSource,opts)},exports.addSideEffect=function(path,importedSource,opts){return new _importInjector.default(path).addSideEffect(importedSource,opts)},Object.defineProperty(exports,"isModule",{enumerable:!0,get:function(){return _isModule.default}});var _importInjector=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/import-injector.js"),_isModule=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/is-module.js");},"./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/is-module.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path){const{sourceType}=path.node;if("module"!==sourceType&&"script"!==sourceType)throw path.buildCodeFrameError(`Unknown sourceType "${sourceType}", cannot transform.`);return "module"===path.node.sourceType};},"./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/get-module-name.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getModuleName;{const originalGetModuleName=getModuleName;exports.default=getModuleName=function(rootOpts,pluginOpts){var _pluginOpts$moduleId,_pluginOpts$moduleIds,_pluginOpts$getModule,_pluginOpts$moduleRoo;return originalGetModuleName(rootOpts,{moduleId:null!=(_pluginOpts$moduleId=pluginOpts.moduleId)?_pluginOpts$moduleId:rootOpts.moduleId,moduleIds:null!=(_pluginOpts$moduleIds=pluginOpts.moduleIds)?_pluginOpts$moduleIds:rootOpts.moduleIds,getModuleId:null!=(_pluginOpts$getModule=pluginOpts.getModuleId)?_pluginOpts$getModule:rootOpts.getModuleId,moduleRoot:null!=(_pluginOpts$moduleRoo=pluginOpts.moduleRoot)?_pluginOpts$moduleRoo:rootOpts.moduleRoot})};}function getModuleName(rootOpts,pluginOpts){const{filename,filenameRelative=filename,sourceRoot=pluginOpts.moduleRoot}=rootOpts,{moduleId,moduleIds=!!moduleId,getModuleId,moduleRoot=sourceRoot}=pluginOpts;if(!moduleIds)return null;if(null!=moduleId&&!getModuleId)return moduleId;let moduleName=null!=moduleRoot?moduleRoot+"/":"";if(filenameRelative){const sourceRootReplacer=null!=sourceRoot?new RegExp("^"+sourceRoot+"/?"):"";moduleName+=filenameRelative.replace(sourceRootReplacer,"").replace(/\.(\w*?)$/,"");}return moduleName=moduleName.replace(/\\/g,"/"),getModuleId&&getModuleId(moduleName)||moduleName}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildNamespaceInitStatements=function(metadata,sourceMetadata,constantReexports=!1){const statements=[];let srcNamespace=identifier(sourceMetadata.name);sourceMetadata.lazy&&(srcNamespace=callExpression(srcNamespace,[]));for(const localName of sourceMetadata.importsNamespace)localName!==sourceMetadata.name&&statements.push(_template.default.statement`var NAME = SOURCE;`({NAME:localName,SOURCE:cloneNode(srcNamespace)}));constantReexports&&statements.push(...buildReexportsFromMeta(metadata,sourceMetadata,!0));for(const exportName of sourceMetadata.reexportNamespace)statements.push((sourceMetadata.lazy?_template.default.statement`
489 Object.defineProperty(EXPORTS, "NAME", {
490 enumerable: true,
491 get: function() {
492 return NAMESPACE;
493 }
494 });
495 `:_template.default.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:metadata.exportName,NAME:exportName,NAMESPACE:cloneNode(srcNamespace)}));if(sourceMetadata.reexportAll){const statement=function(metadata,namespace,constantReexports){return (constantReexports?_template.default.statement`
496 Object.keys(NAMESPACE).forEach(function(key) {
497 if (key === "default" || key === "__esModule") return;
498 VERIFY_NAME_LIST;
499 if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
500
501 EXPORTS[key] = NAMESPACE[key];
502 });
503 `:_template.default.statement`
504 Object.keys(NAMESPACE).forEach(function(key) {
505 if (key === "default" || key === "__esModule") return;
506 VERIFY_NAME_LIST;
507 if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
508
509 Object.defineProperty(EXPORTS, key, {
510 enumerable: true,
511 get: function() {
512 return NAMESPACE[key];
513 },
514 });
515 });
516 `)({NAMESPACE:namespace,EXPORTS:metadata.exportName,VERIFY_NAME_LIST:metadata.exportNameListName?_template.default`
517 if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
518 `({EXPORTS_LIST:metadata.exportNameListName}):null})}(metadata,cloneNode(srcNamespace),constantReexports);statement.loc=sourceMetadata.reexportAll.loc,statements.push(statement);}return statements},exports.ensureStatementsHoisted=function(statements){statements.forEach((header=>{header._blockHoist=3;}));},Object.defineProperty(exports,"getModuleName",{enumerable:!0,get:function(){return _getModuleName.default}}),Object.defineProperty(exports,"hasExports",{enumerable:!0,get:function(){return _normalizeAndLoadMetadata.hasExports}}),Object.defineProperty(exports,"isModule",{enumerable:!0,get:function(){return _helperModuleImports.isModule}}),Object.defineProperty(exports,"isSideEffectImport",{enumerable:!0,get:function(){return _normalizeAndLoadMetadata.isSideEffectImport}}),exports.rewriteModuleStatementsAndPrepareHeader=function(path,{loose,exportName,strict,allowTopLevelThis,strictMode,noInterop,importInterop=noInterop?"none":"babel",lazy,esNamespaceOnly,filename,constantReexports=loose,enumerableModuleMeta=loose,noIncompleteNsImportDetection}){(0, _normalizeAndLoadMetadata.validateImportInteropOption)(importInterop),_assert((0, _helperModuleImports.isModule)(path),"Cannot process module statements in a script"),path.node.sourceType="script";const meta=(0, _normalizeAndLoadMetadata.default)(path,exportName,{importInterop,initializeReexports:constantReexports,lazy,esNamespaceOnly,filename});allowTopLevelThis||(0, _rewriteThis.default)(path);if((0, _rewriteLiveReferences.default)(path,meta),!1!==strictMode){const hasStrict=path.node.directives.some((directive=>"use strict"===directive.value.value));hasStrict||path.unshiftContainer("directives",directive(directiveLiteral("use strict")));}const headers=[];(0, _normalizeAndLoadMetadata.hasExports)(meta)&&!strict&&headers.push(function(metadata,enumerableModuleMeta=!1){return (enumerableModuleMeta?_template.default.statement`
519 EXPORTS.__esModule = true;
520 `:_template.default.statement`
521 Object.defineProperty(EXPORTS, "__esModule", {
522 value: true,
523 });
524 `)({EXPORTS:metadata.exportName})}(meta,enumerableModuleMeta));const nameList=function(programPath,metadata){const exportedVars=Object.create(null);for(const data of metadata.local.values())for(const name of data.names)exportedVars[name]=!0;let hasReexport=!1;for(const data of metadata.source.values()){for(const exportName of data.reexports.keys())exportedVars[exportName]=!0;for(const exportName of data.reexportNamespace)exportedVars[exportName]=!0;hasReexport=hasReexport||!!data.reexportAll;}if(!hasReexport||0===Object.keys(exportedVars).length)return null;const name=programPath.scope.generateUidIdentifier("exportNames");return delete exportedVars.default,{name:name.name,statement:variableDeclaration("var",[variableDeclarator(name,valueToNode(exportedVars))])}}(path,meta);nameList&&(meta.exportNameListName=nameList.name,headers.push(nameList.statement));return headers.push(...function(programPath,metadata,constantReexports=!1,noIncompleteNsImportDetection=!1){const initStatements=[];for(const[localName,data]of metadata.local)if("import"===data.kind);else if("hoisted"===data.kind)initStatements.push([data.names[0],buildInitStatement(metadata,data.names,identifier(localName))]);else if(!noIncompleteNsImportDetection)for(const exportName of data.names)initStatements.push([exportName,null]);for(const data of metadata.source.values()){if(!constantReexports){const reexportsStatements=buildReexportsFromMeta(metadata,data,!1),reexports=[...data.reexports.keys()];for(let i=0;i<reexportsStatements.length;i++)initStatements.push([reexports[i],reexportsStatements[i]]);}if(!noIncompleteNsImportDetection)for(const exportName of data.reexportNamespace)initStatements.push([exportName,null]);}initStatements.sort((([a],[b])=>a<b?-1:b<a?1:0));const results=[];if(noIncompleteNsImportDetection)for(const[,initStatement]of initStatements)results.push(initStatement);else {const chunkSize=100;for(let i=0;i<initStatements.length;i+=chunkSize){let uninitializedExportNames=[];for(let j=0;j<chunkSize&&i+j<initStatements.length;j++){const[exportName,initStatement]=initStatements[i+j];null!==initStatement?(uninitializedExportNames.length>0&&(results.push(buildInitStatement(metadata,uninitializedExportNames,programPath.scope.buildUndefinedNode())),uninitializedExportNames=[]),results.push(initStatement)):uninitializedExportNames.push(exportName);}uninitializedExportNames.length>0&&results.push(buildInitStatement(metadata,uninitializedExportNames,programPath.scope.buildUndefinedNode()));}}return results}(path,meta,constantReexports,noIncompleteNsImportDetection)),{meta,headers}},Object.defineProperty(exports,"rewriteThis",{enumerable:!0,get:function(){return _rewriteThis.default}}),exports.wrapInterop=function(programPath,expr,type){if("none"===type)return null;if("node-namespace"===type)return callExpression(programPath.hub.addHelper("interopRequireWildcard"),[expr,booleanLiteral(!0)]);if("node-default"===type)return null;let helper;if("default"===type)helper="interopRequireDefault";else {if("namespace"!==type)throw new Error(`Unknown interop: ${type}`);helper="interopRequireWildcard";}return callExpression(programPath.hub.addHelper(helper),[expr])};var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js"),_helperModuleImports=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/index.js"),_rewriteThis=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),_rewriteLiveReferences=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),_normalizeAndLoadMetadata=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),_getModuleName=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/get-module-name.js");const{booleanLiteral,callExpression,cloneNode,directive,directiveLiteral,expressionStatement,identifier,isIdentifier,memberExpression,stringLiteral,valueToNode,variableDeclaration,variableDeclarator}=_t;const ReexportTemplate={constant:_template.default.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:_template.default.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:_template.default.statement`
525 Object.defineProperty(EXPORTS, "EXPORT_NAME", {
526 enumerable: true,
527 get: function() {
528 return NAMESPACE_IMPORT;
529 },
530 });
531 `},buildReexportsFromMeta=(meta,metadata,constantReexports)=>{const namespace=metadata.lazy?callExpression(identifier(metadata.name),[]):identifier(metadata.name),{stringSpecifiers}=meta;return Array.from(metadata.reexports,(([exportName,importName])=>{let NAMESPACE_IMPORT=cloneNode(namespace);"default"===importName&&"node-default"===metadata.interop||(NAMESPACE_IMPORT=stringSpecifiers.has(importName)?memberExpression(NAMESPACE_IMPORT,stringLiteral(importName),!0):memberExpression(NAMESPACE_IMPORT,identifier(importName)));const astNodes={EXPORTS:meta.exportName,EXPORT_NAME:exportName,NAMESPACE_IMPORT};return constantReexports||isIdentifier(NAMESPACE_IMPORT)?stringSpecifiers.has(exportName)?ReexportTemplate.constantComputed(astNodes):ReexportTemplate.constant(astNodes):ReexportTemplate.spec(astNodes)}))};const InitTemplate={computed:_template.default.expression`EXPORTS["NAME"] = VALUE`,default:_template.default.expression`EXPORTS.NAME = VALUE`};function buildInitStatement(metadata,exportNames,initExpr){const{stringSpecifiers,exportName:EXPORTS}=metadata;return expressionStatement(exportNames.reduce(((acc,exportName)=>{const params={EXPORTS,NAME:exportName,VALUE:acc};return stringSpecifiers.has(exportName)?InitTemplate.computed(params):InitTemplate.default(params)}),initExpr))}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath,exportName,{importInterop,initializeReexports=!1,lazy=!1,esNamespaceOnly=!1,filename}){exportName||(exportName=programPath.scope.generateUidIdentifier("exports").name);const stringSpecifiers=new Set;!function(programPath){programPath.get("body").forEach((child=>{child.isExportDefaultDeclaration()&&(0, _helperSplitExportDeclaration.default)(child);}));}(programPath);const{local,source,hasExports}=function(programPath,{lazy,initializeReexports},stringSpecifiers){const localData=function(programPath,initializeReexports,stringSpecifiers){const bindingKindLookup=new Map;programPath.get("body").forEach((child=>{let kind;if(child.isImportDeclaration())kind="import";else {if(child.isExportDefaultDeclaration()&&(child=child.get("declaration")),child.isExportNamedDeclaration())if(child.node.declaration)child=child.get("declaration");else if(initializeReexports&&child.node.source&&child.get("source").isStringLiteral())return void child.get("specifiers").forEach((spec=>{assertExportSpecifier(spec),bindingKindLookup.set(spec.get("local").node.name,"block");}));if(child.isFunctionDeclaration())kind="hoisted";else if(child.isClassDeclaration())kind="block";else if(child.isVariableDeclaration({kind:"var"}))kind="var";else {if(!child.isVariableDeclaration())return;kind="block";}}Object.keys(child.getOuterBindingIdentifiers()).forEach((name=>{bindingKindLookup.set(name,kind);}));}));const localMetadata=new Map,getLocalMetadata=idPath=>{const localName=idPath.node.name;let metadata=localMetadata.get(localName);if(!metadata){const kind=bindingKindLookup.get(localName);if(void 0===kind)throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`);metadata={names:[],kind},localMetadata.set(localName,metadata);}return metadata};return programPath.get("body").forEach((child=>{if(!child.isExportNamedDeclaration()||!initializeReexports&&child.node.source){if(child.isExportDefaultDeclaration()){const declaration=child.get("declaration");if(!declaration.isFunctionDeclaration()&&!declaration.isClassDeclaration())throw declaration.buildCodeFrameError("Unexpected default expression export.");getLocalMetadata(declaration.get("id")).names.push("default");}}else if(child.node.declaration){const declaration=child.get("declaration"),ids=declaration.getOuterBindingIdentifierPaths();Object.keys(ids).forEach((name=>{if("__esModule"===name)throw declaration.buildCodeFrameError('Illegal export "__esModule".');getLocalMetadata(ids[name]).names.push(name);}));}else child.get("specifiers").forEach((spec=>{const local=spec.get("local"),exported=spec.get("exported"),localMetadata=getLocalMetadata(local),exportName=getExportSpecifierName(exported,stringSpecifiers);if("__esModule"===exportName)throw exported.buildCodeFrameError('Illegal export "__esModule".');localMetadata.names.push(exportName);}));})),localMetadata}(programPath,initializeReexports,stringSpecifiers),sourceData=new Map,getData=sourceNode=>{const source=sourceNode.value;let data=sourceData.get(source);return data||(data={name:programPath.scope.generateUidIdentifier((0, _path.basename)(source,(0, _path.extname)(source))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,lazy:!1,source},sourceData.set(source,data)),data};let hasExports=!1;programPath.get("body").forEach((child=>{if(child.isImportDeclaration()){const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),child.get("specifiers").forEach((spec=>{if(spec.isImportDefaultSpecifier()){const localName=spec.get("local").node.name;data.imports.set(localName,"default");const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexports.set(name,"default");})));}else if(spec.isImportNamespaceSpecifier()){const localName=spec.get("local").node.name;data.importsNamespace.add(localName);const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexportNamespace.add(name);})));}else if(spec.isImportSpecifier()){const importName=getExportSpecifierName(spec.get("imported"),stringSpecifiers),localName=spec.get("local").node.name;data.imports.set(localName,importName);const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexports.set(name,importName);})));}}));}else if(child.isExportAllDeclaration()){hasExports=!0;const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),data.reexportAll={loc:child.node.loc};}else if(child.isExportNamedDeclaration()&&child.node.source){hasExports=!0;const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),child.get("specifiers").forEach((spec=>{assertExportSpecifier(spec);const importName=getExportSpecifierName(spec.get("local"),stringSpecifiers),exportName=getExportSpecifierName(spec.get("exported"),stringSpecifiers);if(data.reexports.set(exportName,importName),"__esModule"===exportName)throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".')}));}else (child.isExportNamedDeclaration()||child.isExportDefaultDeclaration())&&(hasExports=!0);}));for(const metadata of sourceData.values()){let needsDefault=!1,needsNamed=!1;metadata.importsNamespace.size>0&&(needsDefault=!0,needsNamed=!0),metadata.reexportAll&&(needsNamed=!0);for(const importName of metadata.imports.values())"default"===importName?needsDefault=!0:needsNamed=!0;for(const importName of metadata.reexports.values())"default"===importName?needsDefault=!0:needsNamed=!0;needsDefault&&needsNamed?metadata.interop="namespace":needsDefault&&(metadata.interop="default");}for(const[source,metadata]of sourceData)if(!1!==lazy&&!isSideEffectImport(metadata)&&!metadata.reexportAll)if(!0===lazy)metadata.lazy=!/\./.test(source);else if(Array.isArray(lazy))metadata.lazy=-1!==lazy.indexOf(source);else {if("function"!=typeof lazy)throw new Error(".lazy must be a boolean, string array, or function");metadata.lazy=lazy(source);}return {hasExports,local:localData,source:sourceData}}(programPath,{initializeReexports,lazy},stringSpecifiers);!function(programPath){programPath.get("body").forEach((child=>{if(child.isImportDeclaration())child.remove();else if(child.isExportNamedDeclaration())child.node.declaration?(child.node.declaration._blockHoist=child.node._blockHoist,child.replaceWith(child.node.declaration)):child.remove();else if(child.isExportDefaultDeclaration()){const declaration=child.get("declaration");if(!declaration.isFunctionDeclaration()&&!declaration.isClassDeclaration())throw declaration.buildCodeFrameError("Unexpected default expression export.");declaration._blockHoist=child.node._blockHoist,child.replaceWith(declaration);}else child.isExportAllDeclaration()&&child.remove();}));}(programPath);for(const[,metadata]of source){metadata.importsNamespace.size>0&&(metadata.name=metadata.importsNamespace.values().next().value);const resolvedInterop=resolveImportInterop(importInterop,metadata.source,filename);"none"===resolvedInterop?metadata.interop="none":"node"===resolvedInterop&&"namespace"===metadata.interop?metadata.interop="node-namespace":"node"===resolvedInterop&&"default"===metadata.interop?metadata.interop="node-default":esNamespaceOnly&&"namespace"===metadata.interop&&(metadata.interop="default");}return {exportName,exportNameListName:null,hasExports,local,source,stringSpecifiers}},exports.hasExports=function(metadata){return metadata.hasExports},exports.isSideEffectImport=isSideEffectImport,exports.validateImportInteropOption=validateImportInteropOption;var _path=__webpack_require__("path"),_helperValidatorIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js"),_helperSplitExportDeclaration=__webpack_require__("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js");function isSideEffectImport(source){return 0===source.imports.size&&0===source.importsNamespace.size&&0===source.reexports.size&&0===source.reexportNamespace.size&&!source.reexportAll}function validateImportInteropOption(importInterop){if("function"!=typeof importInterop&&"none"!==importInterop&&"babel"!==importInterop&&"node"!==importInterop)throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`);return importInterop}function resolveImportInterop(importInterop,source,filename){return "function"==typeof importInterop?validateImportInteropOption(importInterop(source,filename)):importInterop}function getExportSpecifierName(path,stringSpecifiers){if(path.isIdentifier())return path.node.name;if(path.isStringLiteral()){const stringValue=path.node.value;return (0, _helperValidatorIdentifier.isIdentifierName)(stringValue)||stringSpecifiers.add(stringValue),stringValue}throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`)}function assertExportSpecifier(path){if(!path.isExportSpecifier())throw path.isExportNamespaceSpecifier()?path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."):path.buildCodeFrameError("Unexpected export specifier type")}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath,metadata){const imported=new Map,exported=new Map,requeueInParent=path=>{programPath.requeue(path);};for(const[source,data]of metadata.source){for(const[localName,importName]of data.imports)imported.set(localName,[source,importName,null]);for(const localName of data.importsNamespace)imported.set(localName,[source,null,localName]);}for(const[local,data]of metadata.local){let exportMeta=exported.get(local);exportMeta||(exportMeta=[],exported.set(local,exportMeta)),exportMeta.push(...data.names);}const rewriteBindingInitVisitorState={metadata,requeueInParent,scope:programPath.scope,exported};programPath.traverse(rewriteBindingInitVisitor,rewriteBindingInitVisitorState),(0, _helperSimpleAccess.default)(programPath,new Set([...Array.from(imported.keys()),...Array.from(exported.keys())]),!1);const rewriteReferencesVisitorState={seen:new WeakSet,metadata,requeueInParent,scope:programPath.scope,imported,exported,buildImportReference:([source,importName,localName],identNode)=>{const meta=metadata.source.get(source);if(localName)return meta.lazy&&(identNode=callExpression(identNode,[])),identNode;let namespace=identifier(meta.name);if(meta.lazy&&(namespace=callExpression(namespace,[])),"default"===importName&&"node-default"===meta.interop)return namespace;const computed=metadata.stringSpecifiers.has(importName);return memberExpression(namespace,computed?stringLiteral(importName):identifier(importName),computed)}};programPath.traverse(rewriteReferencesVisitor,rewriteReferencesVisitorState);};var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js"),_helperSimpleAccess=__webpack_require__("./node_modules/.pnpm/@babel+helper-simple-access@7.18.6/node_modules/@babel/helper-simple-access/lib/index.js");const{assignmentExpression,callExpression,cloneNode,expressionStatement,getOuterBindingIdentifiers,identifier,isMemberExpression,isVariableDeclaration,jsxIdentifier,jsxMemberExpression,memberExpression,numericLiteral,sequenceExpression,stringLiteral,variableDeclaration,variableDeclarator}=_t;const rewriteBindingInitVisitor={Scope(path){path.skip();},ClassDeclaration(path){const{requeueInParent,exported,metadata}=this,{id}=path.node;if(!id)throw new Error("Expected class to have a name");const localName=id.name,exportNames=exported.get(localName)||[];if(exportNames.length>0){const statement=expressionStatement(buildBindingExportAssignmentExpression(metadata,exportNames,identifier(localName),path.scope));statement._blockHoist=path.node._blockHoist,requeueInParent(path.insertAfter(statement)[0]);}},VariableDeclaration(path){const{requeueInParent,exported,metadata}=this;Object.keys(path.getOuterBindingIdentifiers()).forEach((localName=>{const exportNames=exported.get(localName)||[];if(exportNames.length>0){const statement=expressionStatement(buildBindingExportAssignmentExpression(metadata,exportNames,identifier(localName),path.scope));statement._blockHoist=path.node._blockHoist,requeueInParent(path.insertAfter(statement)[0]);}}));}},buildBindingExportAssignmentExpression=(metadata,exportNames,localExpr,scope)=>{const exportsObjectName=metadata.exportName;for(let currentScope=scope;null!=currentScope;currentScope=currentScope.parent)currentScope.hasOwnBinding(exportsObjectName)&&currentScope.rename(exportsObjectName);return (exportNames||[]).reduce(((expr,exportName)=>{const{stringSpecifiers}=metadata,computed=stringSpecifiers.has(exportName);return assignmentExpression("=",memberExpression(identifier(exportsObjectName),computed?stringLiteral(exportName):identifier(exportName),computed),expr)}),localExpr)},buildImportThrow=localName=>_template.default.expression.ast`
532 (function() {
533 throw new Error('"' + '${localName}' + '" is read-only.');
534 })()
535 `,rewriteReferencesVisitor={ReferencedIdentifier(path){const{seen,buildImportReference,scope,imported,requeueInParent}=this;if(seen.has(path.node))return;seen.add(path.node);const localName=path.node.name,importData=imported.get(localName);if(importData){if(function(path){do{switch(path.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return !0;case"ExportSpecifier":return "type"===path.parentPath.parent.exportKind;default:if(path.parentPath.isStatement()||path.parentPath.isExpression())return !1}}while(path=path.parentPath)}(path))throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);const localBinding=path.scope.getBinding(localName);if(scope.getBinding(localName)!==localBinding)return;const ref=buildImportReference(importData,path.node);if(ref.loc=path.node.loc,(path.parentPath.isCallExpression({callee:path.node})||path.parentPath.isOptionalCallExpression({callee:path.node})||path.parentPath.isTaggedTemplateExpression({tag:path.node}))&&isMemberExpression(ref))path.replaceWith(sequenceExpression([numericLiteral(0),ref]));else if(path.isJSXIdentifier()&&isMemberExpression(ref)){const{object,property}=ref;path.replaceWith(jsxMemberExpression(jsxIdentifier(object.name),jsxIdentifier(property.name)));}else path.replaceWith(ref);requeueInParent(path),path.skip();}},UpdateExpression(path){const{scope,seen,imported,exported,requeueInParent,buildImportReference}=this;if(seen.has(path.node))return;seen.add(path.node);const arg=path.get("argument");if(arg.isMemberExpression())return;const update=path.node;if(arg.isIdentifier()){const localName=arg.node.name;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const exportedNames=exported.get(localName),importData=imported.get(localName);if((null==exportedNames?void 0:exportedNames.length)>0||importData)if(importData)path.replaceWith(assignmentExpression(update.operator[0]+"=",buildImportReference(importData,arg.node),buildImportThrow(localName)));else if(update.prefix)path.replaceWith(buildBindingExportAssignmentExpression(this.metadata,exportedNames,cloneNode(update),path.scope));else {const ref=scope.generateDeclaredUidIdentifier(localName);path.replaceWith(sequenceExpression([assignmentExpression("=",cloneNode(ref),cloneNode(update)),buildBindingExportAssignmentExpression(this.metadata,exportedNames,identifier(localName),path.scope),cloneNode(ref)]));}}requeueInParent(path),path.skip();},AssignmentExpression:{exit(path){const{scope,seen,imported,exported,requeueInParent,buildImportReference}=this;if(seen.has(path.node))return;seen.add(path.node);const left=path.get("left");if(!left.isMemberExpression())if(left.isIdentifier()){const localName=left.node.name;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const exportedNames=exported.get(localName),importData=imported.get(localName);if((null==exportedNames?void 0:exportedNames.length)>0||importData){_assert("="===path.node.operator,"Path was not simplified");const assignment=path.node;importData&&(assignment.left=buildImportReference(importData,left.node),assignment.right=sequenceExpression([assignment.right,buildImportThrow(localName)])),path.replaceWith(buildBindingExportAssignmentExpression(this.metadata,exportedNames,assignment,path.scope)),requeueInParent(path);}}else {const ids=left.getOuterBindingIdentifiers(),programScopeIds=Object.keys(ids).filter((localName=>scope.getBinding(localName)===path.scope.getBinding(localName))),id=programScopeIds.find((localName=>imported.has(localName)));id&&(path.node.right=sequenceExpression([path.node.right,buildImportThrow(id)]));const items=[];if(programScopeIds.forEach((localName=>{const exportedNames=exported.get(localName)||[];exportedNames.length>0&&items.push(buildBindingExportAssignmentExpression(this.metadata,exportedNames,identifier(localName),path.scope));})),items.length>0){let node=sequenceExpression(items);path.parentPath.isExpressionStatement()&&(node=expressionStatement(node),node._blockHoist=path.parentPath.node._blockHoist);requeueInParent(path.insertAfter(node)[0]);}}}},"ForOfStatement|ForInStatement"(path){const{scope,node}=path,{left}=node,{exported,imported,scope:programScope}=this;if(!isVariableDeclaration(left)){let importConstViolationName,didTransformExport=!1;const loopBodyScope=path.get("body").scope;for(const name of Object.keys(getOuterBindingIdentifiers(left)))programScope.getBinding(name)===scope.getBinding(name)&&(exported.has(name)&&(didTransformExport=!0,loopBodyScope.hasOwnBinding(name)&&loopBodyScope.rename(name)),imported.has(name)&&!importConstViolationName&&(importConstViolationName=name));if(!didTransformExport&&!importConstViolationName)return;path.ensureBlock();const bodyPath=path.get("body"),newLoopId=scope.generateUidIdentifierBasedOnNode(left);path.get("left").replaceWith(variableDeclaration("let",[variableDeclarator(cloneNode(newLoopId))])),scope.registerDeclaration(path.get("left")),didTransformExport&&bodyPath.unshiftContainer("body",expressionStatement(assignmentExpression("=",left,newLoopId))),importConstViolationName&&bodyPath.unshiftContainer("body",expressionStatement(buildImportThrow(importConstViolationName)));}}};},"./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath){(0, _traverse.default)(programPath.node,Object.assign({},rewriteThisVisitor,{noScope:!0}));};var _helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js"),_traverse=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{numericLiteral,unaryExpression}=_t;const rewriteThisVisitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{ThisExpression(path){path.replaceWith(unaryExpression("void",numericLiteral(0),!0));}}]);},"./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/get-module-name.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getModuleName;{const originalGetModuleName=getModuleName;exports.default=getModuleName=function(rootOpts,pluginOpts){var _pluginOpts$moduleId,_pluginOpts$moduleIds,_pluginOpts$getModule,_pluginOpts$moduleRoo;return originalGetModuleName(rootOpts,{moduleId:null!=(_pluginOpts$moduleId=pluginOpts.moduleId)?_pluginOpts$moduleId:rootOpts.moduleId,moduleIds:null!=(_pluginOpts$moduleIds=pluginOpts.moduleIds)?_pluginOpts$moduleIds:rootOpts.moduleIds,getModuleId:null!=(_pluginOpts$getModule=pluginOpts.getModuleId)?_pluginOpts$getModule:rootOpts.getModuleId,moduleRoot:null!=(_pluginOpts$moduleRoo=pluginOpts.moduleRoot)?_pluginOpts$moduleRoo:rootOpts.moduleRoot})};}function getModuleName(rootOpts,pluginOpts){const{filename,filenameRelative=filename,sourceRoot=pluginOpts.moduleRoot}=rootOpts,{moduleId,moduleIds=!!moduleId,getModuleId,moduleRoot=sourceRoot}=pluginOpts;if(!moduleIds)return null;if(null!=moduleId&&!getModuleId)return moduleId;let moduleName=null!=moduleRoot?moduleRoot+"/":"";if(filenameRelative){const sourceRootReplacer=null!=sourceRoot?new RegExp("^"+sourceRoot+"/?"):"";moduleName+=filenameRelative.replace(sourceRootReplacer,"").replace(/\.(\w*?)$/,"");}return moduleName=moduleName.replace(/\\/g,"/"),getModuleId&&getModuleId(moduleName)||moduleName}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildNamespaceInitStatements=function(metadata,sourceMetadata,constantReexports=!1){const statements=[];let srcNamespace=identifier(sourceMetadata.name);sourceMetadata.lazy&&(srcNamespace=callExpression(srcNamespace,[]));for(const localName of sourceMetadata.importsNamespace)localName!==sourceMetadata.name&&statements.push(_template.default.statement`var NAME = SOURCE;`({NAME:localName,SOURCE:cloneNode(srcNamespace)}));constantReexports&&statements.push(...buildReexportsFromMeta(metadata,sourceMetadata,!0));for(const exportName of sourceMetadata.reexportNamespace)statements.push((sourceMetadata.lazy?_template.default.statement`
536 Object.defineProperty(EXPORTS, "NAME", {
537 enumerable: true,
538 get: function() {
539 return NAMESPACE;
540 }
541 });
542 `:_template.default.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:metadata.exportName,NAME:exportName,NAMESPACE:cloneNode(srcNamespace)}));if(sourceMetadata.reexportAll){const statement=function(metadata,namespace,constantReexports){return (constantReexports?_template.default.statement`
543 Object.keys(NAMESPACE).forEach(function(key) {
544 if (key === "default" || key === "__esModule") return;
545 VERIFY_NAME_LIST;
546 if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
547
548 EXPORTS[key] = NAMESPACE[key];
549 });
550 `:_template.default.statement`
551 Object.keys(NAMESPACE).forEach(function(key) {
552 if (key === "default" || key === "__esModule") return;
553 VERIFY_NAME_LIST;
554 if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
555
556 Object.defineProperty(EXPORTS, key, {
557 enumerable: true,
558 get: function() {
559 return NAMESPACE[key];
560 },
561 });
562 });
563 `)({NAMESPACE:namespace,EXPORTS:metadata.exportName,VERIFY_NAME_LIST:metadata.exportNameListName?_template.default`
564 if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
565 `({EXPORTS_LIST:metadata.exportNameListName}):null})}(metadata,cloneNode(srcNamespace),constantReexports);statement.loc=sourceMetadata.reexportAll.loc,statements.push(statement);}return statements},exports.ensureStatementsHoisted=function(statements){statements.forEach((header=>{header._blockHoist=3;}));},Object.defineProperty(exports,"getModuleName",{enumerable:!0,get:function(){return _getModuleName.default}}),Object.defineProperty(exports,"hasExports",{enumerable:!0,get:function(){return _normalizeAndLoadMetadata.hasExports}}),Object.defineProperty(exports,"isModule",{enumerable:!0,get:function(){return _helperModuleImports.isModule}}),Object.defineProperty(exports,"isSideEffectImport",{enumerable:!0,get:function(){return _normalizeAndLoadMetadata.isSideEffectImport}}),exports.rewriteModuleStatementsAndPrepareHeader=function(path,{loose,exportName,strict,allowTopLevelThis,strictMode,noInterop,importInterop=noInterop?"none":"babel",lazy,esNamespaceOnly,filename,constantReexports=loose,enumerableModuleMeta=loose,noIncompleteNsImportDetection}){(0, _normalizeAndLoadMetadata.validateImportInteropOption)(importInterop),_assert((0, _helperModuleImports.isModule)(path),"Cannot process module statements in a script"),path.node.sourceType="script";const meta=(0, _normalizeAndLoadMetadata.default)(path,exportName,{importInterop,initializeReexports:constantReexports,lazy,esNamespaceOnly,filename});allowTopLevelThis||(0, _rewriteThis.default)(path);if((0, _rewriteLiveReferences.default)(path,meta),!1!==strictMode){const hasStrict=path.node.directives.some((directive=>"use strict"===directive.value.value));hasStrict||path.unshiftContainer("directives",directive(directiveLiteral("use strict")));}const headers=[];(0, _normalizeAndLoadMetadata.hasExports)(meta)&&!strict&&headers.push(function(metadata,enumerableModuleMeta=!1){return (enumerableModuleMeta?_template.default.statement`
566 EXPORTS.__esModule = true;
567 `:_template.default.statement`
568 Object.defineProperty(EXPORTS, "__esModule", {
569 value: true,
570 });
571 `)({EXPORTS:metadata.exportName})}(meta,enumerableModuleMeta));const nameList=function(programPath,metadata){const exportedVars=Object.create(null);for(const data of metadata.local.values())for(const name of data.names)exportedVars[name]=!0;let hasReexport=!1;for(const data of metadata.source.values()){for(const exportName of data.reexports.keys())exportedVars[exportName]=!0;for(const exportName of data.reexportNamespace)exportedVars[exportName]=!0;hasReexport=hasReexport||!!data.reexportAll;}if(!hasReexport||0===Object.keys(exportedVars).length)return null;const name=programPath.scope.generateUidIdentifier("exportNames");return delete exportedVars.default,{name:name.name,statement:variableDeclaration("var",[variableDeclarator(name,valueToNode(exportedVars))])}}(path,meta);nameList&&(meta.exportNameListName=nameList.name,headers.push(nameList.statement));return headers.push(...function(programPath,metadata,constantReexports=!1,noIncompleteNsImportDetection=!1){const initStatements=[];for(const[localName,data]of metadata.local)if("import"===data.kind);else if("hoisted"===data.kind)initStatements.push([data.names[0],buildInitStatement(metadata,data.names,identifier(localName))]);else if(!noIncompleteNsImportDetection)for(const exportName of data.names)initStatements.push([exportName,null]);for(const data of metadata.source.values()){if(!constantReexports){const reexportsStatements=buildReexportsFromMeta(metadata,data,!1),reexports=[...data.reexports.keys()];for(let i=0;i<reexportsStatements.length;i++)initStatements.push([reexports[i],reexportsStatements[i]]);}if(!noIncompleteNsImportDetection)for(const exportName of data.reexportNamespace)initStatements.push([exportName,null]);}initStatements.sort((([a],[b])=>a<b?-1:b<a?1:0));const results=[];if(noIncompleteNsImportDetection)for(const[,initStatement]of initStatements)results.push(initStatement);else {const chunkSize=100;for(let i=0;i<initStatements.length;i+=chunkSize){let uninitializedExportNames=[];for(let j=0;j<chunkSize&&i+j<initStatements.length;j++){const[exportName,initStatement]=initStatements[i+j];null!==initStatement?(uninitializedExportNames.length>0&&(results.push(buildInitStatement(metadata,uninitializedExportNames,programPath.scope.buildUndefinedNode())),uninitializedExportNames=[]),results.push(initStatement)):uninitializedExportNames.push(exportName);}uninitializedExportNames.length>0&&results.push(buildInitStatement(metadata,uninitializedExportNames,programPath.scope.buildUndefinedNode()));}}return results}(path,meta,constantReexports,noIncompleteNsImportDetection)),{meta,headers}},Object.defineProperty(exports,"rewriteThis",{enumerable:!0,get:function(){return _rewriteThis.default}}),exports.wrapInterop=function(programPath,expr,type){if("none"===type)return null;if("node-namespace"===type)return callExpression(programPath.hub.addHelper("interopRequireWildcard"),[expr,booleanLiteral(!0)]);if("node-default"===type)return null;let helper;if("default"===type)helper="interopRequireDefault";else {if("namespace"!==type)throw new Error(`Unknown interop: ${type}`);helper="interopRequireWildcard";}return callExpression(programPath.hub.addHelper(helper),[expr])};var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js"),_helperModuleImports=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.18.6/node_modules/@babel/helper-module-imports/lib/index.js"),_rewriteThis=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),_rewriteLiveReferences=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),_normalizeAndLoadMetadata=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),_getModuleName=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/get-module-name.js");const{booleanLiteral,callExpression,cloneNode,directive,directiveLiteral,expressionStatement,identifier,isIdentifier,memberExpression,stringLiteral,valueToNode,variableDeclaration,variableDeclarator}=_t;const ReexportTemplate={constant:_template.default.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:_template.default.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:_template.default.statement`
572 Object.defineProperty(EXPORTS, "EXPORT_NAME", {
573 enumerable: true,
574 get: function() {
575 return NAMESPACE_IMPORT;
576 },
577 });
578 `},buildReexportsFromMeta=(meta,metadata,constantReexports)=>{const namespace=metadata.lazy?callExpression(identifier(metadata.name),[]):identifier(metadata.name),{stringSpecifiers}=meta;return Array.from(metadata.reexports,(([exportName,importName])=>{let NAMESPACE_IMPORT=cloneNode(namespace);"default"===importName&&"node-default"===metadata.interop||(NAMESPACE_IMPORT=stringSpecifiers.has(importName)?memberExpression(NAMESPACE_IMPORT,stringLiteral(importName),!0):memberExpression(NAMESPACE_IMPORT,identifier(importName)));const astNodes={EXPORTS:meta.exportName,EXPORT_NAME:exportName,NAMESPACE_IMPORT};return constantReexports||isIdentifier(NAMESPACE_IMPORT)?stringSpecifiers.has(exportName)?ReexportTemplate.constantComputed(astNodes):ReexportTemplate.constant(astNodes):ReexportTemplate.spec(astNodes)}))};const InitTemplate={computed:_template.default.expression`EXPORTS["NAME"] = VALUE`,default:_template.default.expression`EXPORTS.NAME = VALUE`};function buildInitStatement(metadata,exportNames,initExpr){const{stringSpecifiers,exportName:EXPORTS}=metadata;return expressionStatement(exportNames.reduce(((acc,exportName)=>{const params={EXPORTS,NAME:exportName,VALUE:acc};return stringSpecifiers.has(exportName)?InitTemplate.computed(params):InitTemplate.default(params)}),initExpr))}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath,exportName,{importInterop,initializeReexports=!1,lazy=!1,esNamespaceOnly=!1,filename}){exportName||(exportName=programPath.scope.generateUidIdentifier("exports").name);const stringSpecifiers=new Set;!function(programPath){programPath.get("body").forEach((child=>{child.isExportDefaultDeclaration()&&(0, _helperSplitExportDeclaration.default)(child);}));}(programPath);const{local,source,hasExports}=function(programPath,{lazy,initializeReexports},stringSpecifiers){const localData=function(programPath,initializeReexports,stringSpecifiers){const bindingKindLookup=new Map;programPath.get("body").forEach((child=>{let kind;if(child.isImportDeclaration())kind="import";else {if(child.isExportDefaultDeclaration()&&(child=child.get("declaration")),child.isExportNamedDeclaration())if(child.node.declaration)child=child.get("declaration");else if(initializeReexports&&child.node.source&&child.get("source").isStringLiteral())return void child.get("specifiers").forEach((spec=>{assertExportSpecifier(spec),bindingKindLookup.set(spec.get("local").node.name,"block");}));if(child.isFunctionDeclaration())kind="hoisted";else if(child.isClassDeclaration())kind="block";else if(child.isVariableDeclaration({kind:"var"}))kind="var";else {if(!child.isVariableDeclaration())return;kind="block";}}Object.keys(child.getOuterBindingIdentifiers()).forEach((name=>{bindingKindLookup.set(name,kind);}));}));const localMetadata=new Map,getLocalMetadata=idPath=>{const localName=idPath.node.name;let metadata=localMetadata.get(localName);if(!metadata){const kind=bindingKindLookup.get(localName);if(void 0===kind)throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`);metadata={names:[],kind},localMetadata.set(localName,metadata);}return metadata};return programPath.get("body").forEach((child=>{if(!child.isExportNamedDeclaration()||!initializeReexports&&child.node.source){if(child.isExportDefaultDeclaration()){const declaration=child.get("declaration");if(!declaration.isFunctionDeclaration()&&!declaration.isClassDeclaration())throw declaration.buildCodeFrameError("Unexpected default expression export.");getLocalMetadata(declaration.get("id")).names.push("default");}}else if(child.node.declaration){const declaration=child.get("declaration"),ids=declaration.getOuterBindingIdentifierPaths();Object.keys(ids).forEach((name=>{if("__esModule"===name)throw declaration.buildCodeFrameError('Illegal export "__esModule".');getLocalMetadata(ids[name]).names.push(name);}));}else child.get("specifiers").forEach((spec=>{const local=spec.get("local"),exported=spec.get("exported"),localMetadata=getLocalMetadata(local),exportName=getExportSpecifierName(exported,stringSpecifiers);if("__esModule"===exportName)throw exported.buildCodeFrameError('Illegal export "__esModule".');localMetadata.names.push(exportName);}));})),localMetadata}(programPath,initializeReexports,stringSpecifiers),sourceData=new Map,getData=sourceNode=>{const source=sourceNode.value;let data=sourceData.get(source);return data||(data={name:programPath.scope.generateUidIdentifier((0, _path.basename)(source,(0, _path.extname)(source))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,lazy:!1,source},sourceData.set(source,data)),data};let hasExports=!1;programPath.get("body").forEach((child=>{if(child.isImportDeclaration()){const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),child.get("specifiers").forEach((spec=>{if(spec.isImportDefaultSpecifier()){const localName=spec.get("local").node.name;data.imports.set(localName,"default");const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexports.set(name,"default");})));}else if(spec.isImportNamespaceSpecifier()){const localName=spec.get("local").node.name;data.importsNamespace.add(localName);const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexportNamespace.add(name);})));}else if(spec.isImportSpecifier()){const importName=getExportSpecifierName(spec.get("imported"),stringSpecifiers),localName=spec.get("local").node.name;data.imports.set(localName,importName);const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexports.set(name,importName);})));}}));}else if(child.isExportAllDeclaration()){hasExports=!0;const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),data.reexportAll={loc:child.node.loc};}else if(child.isExportNamedDeclaration()&&child.node.source){hasExports=!0;const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),child.get("specifiers").forEach((spec=>{assertExportSpecifier(spec);const importName=getExportSpecifierName(spec.get("local"),stringSpecifiers),exportName=getExportSpecifierName(spec.get("exported"),stringSpecifiers);if(data.reexports.set(exportName,importName),"__esModule"===exportName)throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".')}));}else (child.isExportNamedDeclaration()||child.isExportDefaultDeclaration())&&(hasExports=!0);}));for(const metadata of sourceData.values()){let needsDefault=!1,needsNamed=!1;metadata.importsNamespace.size>0&&(needsDefault=!0,needsNamed=!0),metadata.reexportAll&&(needsNamed=!0);for(const importName of metadata.imports.values())"default"===importName?needsDefault=!0:needsNamed=!0;for(const importName of metadata.reexports.values())"default"===importName?needsDefault=!0:needsNamed=!0;needsDefault&&needsNamed?metadata.interop="namespace":needsDefault&&(metadata.interop="default");}for(const[source,metadata]of sourceData)if(!1!==lazy&&!isSideEffectImport(metadata)&&!metadata.reexportAll)if(!0===lazy)metadata.lazy=!/\./.test(source);else if(Array.isArray(lazy))metadata.lazy=-1!==lazy.indexOf(source);else {if("function"!=typeof lazy)throw new Error(".lazy must be a boolean, string array, or function");metadata.lazy=lazy(source);}return {hasExports,local:localData,source:sourceData}}(programPath,{initializeReexports,lazy},stringSpecifiers);!function(programPath){programPath.get("body").forEach((child=>{if(child.isImportDeclaration())child.remove();else if(child.isExportNamedDeclaration())child.node.declaration?(child.node.declaration._blockHoist=child.node._blockHoist,child.replaceWith(child.node.declaration)):child.remove();else if(child.isExportDefaultDeclaration()){const declaration=child.get("declaration");if(!declaration.isFunctionDeclaration()&&!declaration.isClassDeclaration())throw declaration.buildCodeFrameError("Unexpected default expression export.");declaration._blockHoist=child.node._blockHoist,child.replaceWith(declaration);}else child.isExportAllDeclaration()&&child.remove();}));}(programPath);for(const[,metadata]of source){metadata.importsNamespace.size>0&&(metadata.name=metadata.importsNamespace.values().next().value);const resolvedInterop=resolveImportInterop(importInterop,metadata.source,filename);"none"===resolvedInterop?metadata.interop="none":"node"===resolvedInterop&&"namespace"===metadata.interop?metadata.interop="node-namespace":"node"===resolvedInterop&&"default"===metadata.interop?metadata.interop="node-default":esNamespaceOnly&&"namespace"===metadata.interop&&(metadata.interop="default");}return {exportName,exportNameListName:null,hasExports,local,source,stringSpecifiers}},exports.hasExports=function(metadata){return metadata.hasExports},exports.isSideEffectImport=isSideEffectImport,exports.validateImportInteropOption=validateImportInteropOption;var _path=__webpack_require__("path"),_helperValidatorIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js"),_helperSplitExportDeclaration=__webpack_require__("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js");function isSideEffectImport(source){return 0===source.imports.size&&0===source.importsNamespace.size&&0===source.reexports.size&&0===source.reexportNamespace.size&&!source.reexportAll}function validateImportInteropOption(importInterop){if("function"!=typeof importInterop&&"none"!==importInterop&&"babel"!==importInterop&&"node"!==importInterop)throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`);return importInterop}function resolveImportInterop(importInterop,source,filename){return "function"==typeof importInterop?validateImportInteropOption(importInterop(source,filename)):importInterop}function getExportSpecifierName(path,stringSpecifiers){if(path.isIdentifier())return path.node.name;if(path.isStringLiteral()){const stringValue=path.node.value;return (0, _helperValidatorIdentifier.isIdentifierName)(stringValue)||stringSpecifiers.add(stringValue),stringValue}throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`)}function assertExportSpecifier(path){if(!path.isExportSpecifier())throw path.isExportNamespaceSpecifier()?path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."):path.buildCodeFrameError("Unexpected export specifier type")}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath,metadata){const imported=new Map,exported=new Map,requeueInParent=path=>{programPath.requeue(path);};for(const[source,data]of metadata.source){for(const[localName,importName]of data.imports)imported.set(localName,[source,importName,null]);for(const localName of data.importsNamespace)imported.set(localName,[source,null,localName]);}for(const[local,data]of metadata.local){let exportMeta=exported.get(local);exportMeta||(exportMeta=[],exported.set(local,exportMeta)),exportMeta.push(...data.names);}const rewriteBindingInitVisitorState={metadata,requeueInParent,scope:programPath.scope,exported};programPath.traverse(rewriteBindingInitVisitor,rewriteBindingInitVisitorState),(0, _helperSimpleAccess.default)(programPath,new Set([...Array.from(imported.keys()),...Array.from(exported.keys())]),!1);const rewriteReferencesVisitorState={seen:new WeakSet,metadata,requeueInParent,scope:programPath.scope,imported,exported,buildImportReference:([source,importName,localName],identNode)=>{const meta=metadata.source.get(source);if(localName)return meta.lazy&&(identNode=callExpression(identNode,[])),identNode;let namespace=identifier(meta.name);if(meta.lazy&&(namespace=callExpression(namespace,[])),"default"===importName&&"node-default"===meta.interop)return namespace;const computed=metadata.stringSpecifiers.has(importName);return memberExpression(namespace,computed?stringLiteral(importName):identifier(importName),computed)}};programPath.traverse(rewriteReferencesVisitor,rewriteReferencesVisitorState);};var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js"),_helperSimpleAccess=__webpack_require__("./node_modules/.pnpm/@babel+helper-simple-access@7.18.6/node_modules/@babel/helper-simple-access/lib/index.js");const{assignmentExpression,callExpression,cloneNode,expressionStatement,getOuterBindingIdentifiers,identifier,isMemberExpression,isVariableDeclaration,jsxIdentifier,jsxMemberExpression,memberExpression,numericLiteral,sequenceExpression,stringLiteral,variableDeclaration,variableDeclarator}=_t;const rewriteBindingInitVisitor={Scope(path){path.skip();},ClassDeclaration(path){const{requeueInParent,exported,metadata}=this,{id}=path.node;if(!id)throw new Error("Expected class to have a name");const localName=id.name,exportNames=exported.get(localName)||[];if(exportNames.length>0){const statement=expressionStatement(buildBindingExportAssignmentExpression(metadata,exportNames,identifier(localName),path.scope));statement._blockHoist=path.node._blockHoist,requeueInParent(path.insertAfter(statement)[0]);}},VariableDeclaration(path){const{requeueInParent,exported,metadata}=this;Object.keys(path.getOuterBindingIdentifiers()).forEach((localName=>{const exportNames=exported.get(localName)||[];if(exportNames.length>0){const statement=expressionStatement(buildBindingExportAssignmentExpression(metadata,exportNames,identifier(localName),path.scope));statement._blockHoist=path.node._blockHoist,requeueInParent(path.insertAfter(statement)[0]);}}));}},buildBindingExportAssignmentExpression=(metadata,exportNames,localExpr,scope)=>{const exportsObjectName=metadata.exportName;for(let currentScope=scope;null!=currentScope;currentScope=currentScope.parent)currentScope.hasOwnBinding(exportsObjectName)&&currentScope.rename(exportsObjectName);return (exportNames||[]).reduce(((expr,exportName)=>{const{stringSpecifiers}=metadata,computed=stringSpecifiers.has(exportName);return assignmentExpression("=",memberExpression(identifier(exportsObjectName),computed?stringLiteral(exportName):identifier(exportName),computed),expr)}),localExpr)},buildImportThrow=localName=>_template.default.expression.ast`
579 (function() {
580 throw new Error('"' + '${localName}' + '" is read-only.');
581 })()
582 `,rewriteReferencesVisitor={ReferencedIdentifier(path){const{seen,buildImportReference,scope,imported,requeueInParent}=this;if(seen.has(path.node))return;seen.add(path.node);const localName=path.node.name,importData=imported.get(localName);if(importData){if(function(path){do{switch(path.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return !0;case"ExportSpecifier":return "type"===path.parentPath.parent.exportKind;default:if(path.parentPath.isStatement()||path.parentPath.isExpression())return !1}}while(path=path.parentPath)}(path))throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);const localBinding=path.scope.getBinding(localName);if(scope.getBinding(localName)!==localBinding)return;const ref=buildImportReference(importData,path.node);if(ref.loc=path.node.loc,(path.parentPath.isCallExpression({callee:path.node})||path.parentPath.isOptionalCallExpression({callee:path.node})||path.parentPath.isTaggedTemplateExpression({tag:path.node}))&&isMemberExpression(ref))path.replaceWith(sequenceExpression([numericLiteral(0),ref]));else if(path.isJSXIdentifier()&&isMemberExpression(ref)){const{object,property}=ref;path.replaceWith(jsxMemberExpression(jsxIdentifier(object.name),jsxIdentifier(property.name)));}else path.replaceWith(ref);requeueInParent(path),path.skip();}},UpdateExpression(path){const{scope,seen,imported,exported,requeueInParent,buildImportReference}=this;if(seen.has(path.node))return;seen.add(path.node);const arg=path.get("argument");if(arg.isMemberExpression())return;const update=path.node;if(arg.isIdentifier()){const localName=arg.node.name;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const exportedNames=exported.get(localName),importData=imported.get(localName);if((null==exportedNames?void 0:exportedNames.length)>0||importData)if(importData)path.replaceWith(assignmentExpression(update.operator[0]+"=",buildImportReference(importData,arg.node),buildImportThrow(localName)));else if(update.prefix)path.replaceWith(buildBindingExportAssignmentExpression(this.metadata,exportedNames,cloneNode(update),path.scope));else {const ref=scope.generateDeclaredUidIdentifier(localName);path.replaceWith(sequenceExpression([assignmentExpression("=",cloneNode(ref),cloneNode(update)),buildBindingExportAssignmentExpression(this.metadata,exportedNames,identifier(localName),path.scope),cloneNode(ref)]));}}requeueInParent(path),path.skip();},AssignmentExpression:{exit(path){const{scope,seen,imported,exported,requeueInParent,buildImportReference}=this;if(seen.has(path.node))return;seen.add(path.node);const left=path.get("left");if(!left.isMemberExpression())if(left.isIdentifier()){const localName=left.node.name;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const exportedNames=exported.get(localName),importData=imported.get(localName);if((null==exportedNames?void 0:exportedNames.length)>0||importData){_assert("="===path.node.operator,"Path was not simplified");const assignment=path.node;importData&&(assignment.left=buildImportReference(importData,left.node),assignment.right=sequenceExpression([assignment.right,buildImportThrow(localName)])),path.replaceWith(buildBindingExportAssignmentExpression(this.metadata,exportedNames,assignment,path.scope)),requeueInParent(path);}}else {const ids=left.getOuterBindingIdentifiers(),programScopeIds=Object.keys(ids).filter((localName=>scope.getBinding(localName)===path.scope.getBinding(localName))),id=programScopeIds.find((localName=>imported.has(localName)));id&&(path.node.right=sequenceExpression([path.node.right,buildImportThrow(id)]));const items=[];if(programScopeIds.forEach((localName=>{const exportedNames=exported.get(localName)||[];exportedNames.length>0&&items.push(buildBindingExportAssignmentExpression(this.metadata,exportedNames,identifier(localName),path.scope));})),items.length>0){let node=sequenceExpression(items);path.parentPath.isExpressionStatement()&&(node=expressionStatement(node),node._blockHoist=path.parentPath.node._blockHoist);requeueInParent(path.insertAfter(node)[0]);}}}},"ForOfStatement|ForInStatement"(path){const{scope,node}=path,{left}=node,{exported,imported,scope:programScope}=this;if(!isVariableDeclaration(left)){let importConstViolationName,didTransformExport=!1;const loopBodyScope=path.get("body").scope;for(const name of Object.keys(getOuterBindingIdentifiers(left)))programScope.getBinding(name)===scope.getBinding(name)&&(exported.has(name)&&(didTransformExport=!0,loopBodyScope.hasOwnBinding(name)&&loopBodyScope.rename(name)),imported.has(name)&&!importConstViolationName&&(importConstViolationName=name));if(!didTransformExport&&!importConstViolationName)return;path.ensureBlock();const bodyPath=path.get("body"),newLoopId=scope.generateUidIdentifierBasedOnNode(left);path.get("left").replaceWith(variableDeclaration("let",[variableDeclarator(cloneNode(newLoopId))])),scope.registerDeclaration(path.get("left")),didTransformExport&&bodyPath.unshiftContainer("body",expressionStatement(assignmentExpression("=",left,newLoopId))),importConstViolationName&&bodyPath.unshiftContainer("body",expressionStatement(buildImportThrow(importConstViolationName)));}}};},"./node_modules/.pnpm/@babel+helper-module-transforms@7.19.0/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath){(0, _traverse.default)(programPath.node,Object.assign({},rewriteThisVisitor,{noScope:!0}));};var _helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js"),_traverse=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{numericLiteral,unaryExpression}=_t;const rewriteThisVisitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{ThisExpression(path){path.replaceWith(unaryExpression("void",numericLiteral(0),!0));}}]);},"./node_modules/.pnpm/@babel+helper-optimise-call-expression@7.18.6/node_modules/@babel/helper-optimise-call-expression/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(callee,thisNode,args,optional){return 1===args.length&&isSpreadElement(args[0])&&isIdentifier(args[0].argument,{name:"arguments"})?optional?optionalCallExpression(optionalMemberExpression(callee,identifier("apply"),!1,!0),[thisNode,args[0].argument],!1):callExpression(memberExpression(callee,identifier("apply")),[thisNode,args[0].argument]):optional?optionalCallExpression(optionalMemberExpression(callee,identifier("call"),!1,!0),[thisNode,...args],!1):callExpression(memberExpression(callee,identifier("call")),[thisNode,...args])};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{callExpression,identifier,isIdentifier,isSpreadElement,memberExpression,optionalCallExpression,optionalMemberExpression}=_t;},"./node_modules/.pnpm/@babel+helper-plugin-utils@7.18.9/node_modules/@babel/helper-plugin-utils/lib/index.js":(__unused_webpack_module,exports)=>{function declare(builder){return (api,options,dirname)=>{var _clonedApi2;let clonedApi;for(const name of Object.keys(apiPolyfills)){var _clonedApi;api[name]||(clonedApi=null!=(_clonedApi=clonedApi)?_clonedApi:copyApiObject(api),clonedApi[name]=apiPolyfills[name](clonedApi));}return builder(null!=(_clonedApi2=clonedApi)?_clonedApi2:api,options||{},dirname)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.declare=declare,exports.declarePreset=void 0;const declarePreset=declare;exports.declarePreset=declarePreset;const apiPolyfills={assertVersion:api=>range=>{!function(range,version){if("number"==typeof range){if(!Number.isInteger(range))throw new Error("Expected string or integer value.");range=`^${range}.0.0-0`;}if("string"!=typeof range)throw new Error("Expected string or integer value.");const limit=Error.stackTraceLimit;"number"==typeof limit&&limit<25&&(Error.stackTraceLimit=25);let err;err="7."===version.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${range}", but was loaded with "${version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof limit&&(Error.stackTraceLimit=limit);throw Object.assign(err,{code:"BABEL_VERSION_UNSUPPORTED",version,range})}(range,api.version);},targets:()=>()=>({}),assumption:()=>()=>{}};function copyApiObject(api){let proto=null;return "string"==typeof api.version&&/^7\./.test(api.version)&&(proto=Object.getPrototypeOf(api),!proto||has(proto,"version")&&has(proto,"transform")&&has(proto,"template")&&has(proto,"types")||(proto=null)),Object.assign({},proto,api)}function has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}},"./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js":(__unused_webpack_module,exports)=>{function declare(builder){return (api,options,dirname)=>{var _clonedApi2;let clonedApi;for(const name of Object.keys(apiPolyfills)){var _clonedApi;api[name]||(clonedApi=null!=(_clonedApi=clonedApi)?_clonedApi:copyApiObject(api),clonedApi[name]=apiPolyfills[name](clonedApi));}return builder(null!=(_clonedApi2=clonedApi)?_clonedApi2:api,options||{},dirname)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.declare=declare,exports.declarePreset=void 0;const declarePreset=declare;exports.declarePreset=declarePreset;const apiPolyfills={assertVersion:api=>range=>{!function(range,version){if("number"==typeof range){if(!Number.isInteger(range))throw new Error("Expected string or integer value.");range=`^${range}.0.0-0`;}if("string"!=typeof range)throw new Error("Expected string or integer value.");const limit=Error.stackTraceLimit;"number"==typeof limit&&limit<25&&(Error.stackTraceLimit=25);let err;err="7."===version.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${range}", but was loaded with "${version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof limit&&(Error.stackTraceLimit=limit);throw Object.assign(err,{code:"BABEL_VERSION_UNSUPPORTED",version,range})}(range,api.version);},targets:()=>()=>({}),assumption:()=>()=>{}};function copyApiObject(api){let proto=null;return "string"==typeof api.version&&/^7\./.test(api.version)&&(proto=Object.getPrototypeOf(api),!proto||has(proto,"version")&&has(proto,"transform")&&has(proto,"template")&&has(proto,"types")||(proto=null)),Object.assign({},proto,api)}function has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}},"./node_modules/.pnpm/@babel+helper-replace-supers@7.19.1/node_modules/@babel/helper-replace-supers/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,Object.defineProperty(exports,"environmentVisitor",{enumerable:!0,get:function(){return _helperEnvironmentVisitor.default}}),Object.defineProperty(exports,"skipAllButComputedKey",{enumerable:!0,get:function(){return _helperEnvironmentVisitor.skipAllButComputedKey}});var _traverse=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js"),_helperMemberExpressionToFunctions=__webpack_require__("./node_modules/.pnpm/@babel+helper-member-expression-to-functions@7.18.9/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"),_helperOptimiseCallExpression=__webpack_require__("./node_modules/.pnpm/@babel+helper-optimise-call-expression@7.18.6/node_modules/@babel/helper-optimise-call-expression/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{assignmentExpression,booleanLiteral,callExpression,cloneNode,identifier,memberExpression,sequenceExpression,stringLiteral,thisExpression}=_t;function getPrototypeOfExpression(objectRef,isStatic,file,isPrivateMethod){objectRef=cloneNode(objectRef);const targetRef=isStatic||isPrivateMethod?objectRef:memberExpression(objectRef,identifier("prototype"));return callExpression(file.addHelper("getPrototypeOf"),[targetRef])}const visitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{Super(path,state){const{node,parentPath}=path;parentPath.isMemberExpression({object:node})&&state.handle(parentPath);}}]),unshadowSuperBindingVisitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{Scopable(path,{refName}){const binding=path.scope.getOwnBinding(refName);binding&&binding.identifier.name===refName&&path.scope.rename(refName);}}]),specHandlers={memoise(superMember,count){const{scope,node}=superMember,{computed,property}=node;if(!computed)return;const memo=scope.maybeGenerateMemoised(property);memo&&this.memoiser.set(property,memo,count);},prop(superMember){const{computed,property}=superMember.node;return this.memoiser.has(property)?cloneNode(this.memoiser.get(property)):computed?cloneNode(property):stringLiteral(property.name)},get(superMember){return this._get(superMember,this._getThisRefs())},_get(superMember,thisRefs){const proto=getPrototypeOfExpression(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return callExpression(this.file.addHelper("get"),[thisRefs.memo?sequenceExpression([thisRefs.memo,proto]):proto,this.prop(superMember),thisRefs.this])},_getThisRefs(){if(!this.isDerivedConstructor)return {this:thisExpression()};const thisRef=this.scope.generateDeclaredUidIdentifier("thisSuper");return {memo:assignmentExpression("=",thisRef,thisExpression()),this:cloneNode(thisRef)}},set(superMember,value){const thisRefs=this._getThisRefs(),proto=getPrototypeOfExpression(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return callExpression(this.file.addHelper("set"),[thisRefs.memo?sequenceExpression([thisRefs.memo,proto]):proto,this.prop(superMember),value,thisRefs.this,booleanLiteral(superMember.isInStrictMode())])},destructureSet(superMember){throw superMember.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(superMember,args){const thisRefs=this._getThisRefs();return (0, _helperOptimiseCallExpression.default)(this._get(superMember,thisRefs),cloneNode(thisRefs.this),args,!1)},optionalCall(superMember,args){const thisRefs=this._getThisRefs();return (0, _helperOptimiseCallExpression.default)(this._get(superMember,thisRefs),cloneNode(thisRefs.this),args,!0)}},looseHandlers=Object.assign({},specHandlers,{prop(superMember){const{property}=superMember.node;return this.memoiser.has(property)?cloneNode(this.memoiser.get(property)):cloneNode(property)},get(superMember){const{isStatic,getSuperRef}=this,{computed}=superMember.node,prop=this.prop(superMember);let object;var _getSuperRef,_getSuperRef2;isStatic?object=null!=(_getSuperRef=getSuperRef())?_getSuperRef:memberExpression(identifier("Function"),identifier("prototype")):object=memberExpression(null!=(_getSuperRef2=getSuperRef())?_getSuperRef2:identifier("Object"),identifier("prototype"));return memberExpression(object,prop,computed)},set(superMember,value){const{computed}=superMember.node,prop=this.prop(superMember);return assignmentExpression("=",memberExpression(thisExpression(),prop,computed),value)},destructureSet(superMember){const{computed}=superMember.node,prop=this.prop(superMember);return memberExpression(thisExpression(),prop,computed)},call(superMember,args){return (0, _helperOptimiseCallExpression.default)(this.get(superMember),thisExpression(),args,!1)},optionalCall(superMember,args){return (0, _helperOptimiseCallExpression.default)(this.get(superMember),thisExpression(),args,!0)}});exports.default=class{constructor(opts){var _opts$constantSuper;const path=opts.methodPath;this.methodPath=path,this.isDerivedConstructor=path.isClassMethod({kind:"constructor"})&&!!opts.superRef,this.isStatic=path.isObjectMethod()||path.node.static||(null==path.isStaticBlock?void 0:path.isStaticBlock()),this.isPrivateMethod=path.isPrivate()&&path.isMethod(),this.file=opts.file,this.constantSuper=null!=(_opts$constantSuper=opts.constantSuper)?_opts$constantSuper:opts.isLoose,this.opts=opts;}getObjectRef(){return cloneNode(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?cloneNode(this.opts.superRef):this.opts.getSuperRef?cloneNode(this.opts.getSuperRef()):void 0}replace(){this.opts.refToPreserve&&this.methodPath.traverse(unshadowSuperBindingVisitor,{refName:this.opts.refToPreserve.name});const handler=this.constantSuper?looseHandlers:specHandlers;(0, _helperMemberExpressionToFunctions.default)(this.methodPath,visitor,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:handler.get},handler));}};},"./node_modules/.pnpm/@babel+helper-simple-access@7.18.6/node_modules/@babel/helper-simple-access/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,bindingNames,includeUpdateExpression=!0){path.traverse(simpleAssignmentVisitor,{scope:path.scope,bindingNames,seen:new WeakSet,includeUpdateExpression});};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{LOGICAL_OPERATORS,assignmentExpression,binaryExpression,cloneNode,identifier,logicalExpression,numericLiteral,sequenceExpression,unaryExpression}=_t;const simpleAssignmentVisitor={UpdateExpression:{exit(path){const{scope,bindingNames,includeUpdateExpression}=this;if(!includeUpdateExpression)return;const arg=path.get("argument");if(!arg.isIdentifier())return;const localName=arg.node.name;if(bindingNames.has(localName)&&scope.getBinding(localName)===path.scope.getBinding(localName))if(path.parentPath.isExpressionStatement()&&!path.isCompletionRecord()){const operator="++"==path.node.operator?"+=":"-=";path.replaceWith(assignmentExpression(operator,arg.node,numericLiteral(1)));}else if(path.node.prefix)path.replaceWith(assignmentExpression("=",identifier(localName),binaryExpression(path.node.operator[0],unaryExpression("+",arg.node),numericLiteral(1))));else {const old=path.scope.generateUidIdentifierBasedOnNode(arg.node,"old"),varName=old.name;path.scope.push({id:old});const binary=binaryExpression(path.node.operator[0],identifier(varName),numericLiteral(1));path.replaceWith(sequenceExpression([assignmentExpression("=",identifier(varName),unaryExpression("+",arg.node)),assignmentExpression("=",cloneNode(arg.node),binary),identifier(varName)]));}}},AssignmentExpression:{exit(path){const{scope,seen,bindingNames}=this;if("="===path.node.operator)return;if(seen.has(path.node))return;seen.add(path.node);const left=path.get("left");if(!left.isIdentifier())return;const localName=left.node.name;if(!bindingNames.has(localName))return;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const operator=path.node.operator.slice(0,-1);LOGICAL_OPERATORS.includes(operator)?path.replaceWith(logicalExpression(operator,path.node.left,assignmentExpression("=",cloneNode(path.node.left),path.node.right))):(path.node.right=binaryExpression(operator,cloneNode(path.node.left),path.node.right),path.node.operator="=");}}};},"./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.18.9/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.isTransparentExprWrapper=isTransparentExprWrapper,exports.skipTransparentExprWrapperNodes=function(node){for(;isTransparentExprWrapper(node);)node=node.expression;return node},exports.skipTransparentExprWrappers=function(path){for(;isTransparentExprWrapper(path.node);)path=path.get("expression");return path};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isParenthesizedExpression,isTSAsExpression,isTSNonNullExpression,isTSTypeAssertion,isTypeCastExpression}=_t;function isTransparentExprWrapper(node){return isTSAsExpression(node)||isTSTypeAssertion(node)||isTSNonNullExpression(node)||isTypeCastExpression(node)||isParenthesizedExpression(node)}},"./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(exportDeclaration){if(!exportDeclaration.isExportDeclaration()||exportDeclaration.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(exportDeclaration.isExportDefaultDeclaration()){const declaration=exportDeclaration.get("declaration"),standaloneDeclaration=declaration.isFunctionDeclaration()||declaration.isClassDeclaration(),scope=declaration.isScope()?declaration.scope.parent:declaration.scope;let id=declaration.node.id,needBindingRegistration=!1;id||(needBindingRegistration=!0,id=scope.generateUidIdentifier("default"),(standaloneDeclaration||declaration.isFunctionExpression()||declaration.isClassExpression())&&(declaration.node.id=cloneNode(id)));const updatedDeclaration=standaloneDeclaration?declaration.node:variableDeclaration("var",[variableDeclarator(cloneNode(id),declaration.node)]),updatedExportDeclaration=exportNamedDeclaration(null,[exportSpecifier(cloneNode(id),identifier("default"))]);return exportDeclaration.insertAfter(updatedExportDeclaration),exportDeclaration.replaceWith(updatedDeclaration),needBindingRegistration&&scope.registerDeclaration(exportDeclaration),exportDeclaration}if(exportDeclaration.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const declaration=exportDeclaration.get("declaration"),bindingIdentifiers=declaration.getOuterBindingIdentifiers(),specifiers=Object.keys(bindingIdentifiers).map((name=>exportSpecifier(identifier(name),identifier(name)))),aliasDeclar=exportNamedDeclaration(null,specifiers);return exportDeclaration.insertAfter(aliasDeclar),exportDeclaration.replaceWith(declaration.node),exportDeclaration};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{cloneNode,exportNamedDeclaration,exportSpecifier,identifier,variableDeclaration,variableDeclarator}=_t;},"./node_modules/.pnpm/@babel+helper-string-parser@7.18.10/node_modules/@babel/helper-string-parser/lib/index.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.readCodePoint=readCodePoint,exports.readInt=readInt,exports.readStringContents=function(type,input,pos,lineStart,curLine,errors){const initialPos=pos,initialLineStart=lineStart,initialCurLine=curLine;let out="",containsInvalid=!1,chunkStart=pos;const{length}=input;for(;;){if(pos>=length){errors.unterminated(initialPos,initialLineStart,initialCurLine),out+=input.slice(chunkStart,pos);break}const ch=input.charCodeAt(pos);if(isStringEnd(type,ch,input,pos)){out+=input.slice(chunkStart,pos);break}if(92===ch){let escaped;out+=input.slice(chunkStart,pos),({ch:escaped,pos,lineStart,curLine}=readEscapedChar(input,pos,lineStart,curLine,"template"===type,errors)),null===escaped?containsInvalid=!0:out+=escaped,chunkStart=pos;}else 8232===ch||8233===ch?(++pos,++curLine,lineStart=pos):10===ch||13===ch?"template"===type?(out+=input.slice(chunkStart,pos)+"\n",++pos,13===ch&&10===input.charCodeAt(pos)&&++pos,++curLine,chunkStart=lineStart=pos):errors.unterminated(initialPos,initialLineStart,initialCurLine):++pos;}return {pos,str:out,containsInvalid,lineStart,curLine}};var _isDigit=function(code){return code>=48&&code<=57};const forbiddenNumericSeparatorSiblings={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},isAllowedNumericSeparatorSibling={bin:ch=>48===ch||49===ch,oct:ch=>ch>=48&&ch<=55,dec:ch=>ch>=48&&ch<=57,hex:ch=>ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102};function isStringEnd(type,ch,input,pos){return "template"===type?96===ch||36===ch&&123===input.charCodeAt(pos+1):ch===("double"===type?34:39)}function readEscapedChar(input,pos,lineStart,curLine,inTemplate,errors){const throwOnInvalid=!inTemplate;pos++;const res=ch=>({pos,ch,lineStart,curLine}),ch=input.charCodeAt(pos++);switch(ch){case 110:return res("\n");case 114:return res("\r");case 120:{let code;return ({code,pos}=readHexChar(input,pos,lineStart,curLine,2,!1,throwOnInvalid,errors)),res(null===code?null:String.fromCharCode(code))}case 117:{let code;return ({code,pos}=readCodePoint(input,pos,lineStart,curLine,throwOnInvalid,errors)),res(null===code?null:String.fromCodePoint(code))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===input.charCodeAt(pos)&&++pos;case 10:lineStart=pos,++curLine;case 8232:case 8233:return res("");case 56:case 57:if(inTemplate)return res(null);errors.strictNumericEscape(pos-1,lineStart,curLine);default:if(ch>=48&&ch<=55){const startPos=pos-1;let octalStr=input.slice(startPos,pos+2).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),pos+=octalStr.length-1;const next=input.charCodeAt(pos);if("0"!==octalStr||56===next||57===next){if(inTemplate)return res(null);errors.strictNumericEscape(startPos,lineStart,curLine);}return res(String.fromCharCode(octal))}return res(String.fromCharCode(ch))}}function readHexChar(input,pos,lineStart,curLine,len,forceLen,throwOnInvalid,errors){const initialPos=pos;let n;return ({n,pos}=readInt(input,pos,lineStart,curLine,16,len,forceLen,!1,errors)),null===n&&(throwOnInvalid?errors.invalidEscapeSequence(initialPos,lineStart,curLine):pos=initialPos-1),{code:n,pos}}function readInt(input,pos,lineStart,curLine,radix,len,forceLen,allowNumSeparator,errors){const start=pos,forbiddenSiblings=16===radix?forbiddenNumericSeparatorSiblings.hex:forbiddenNumericSeparatorSiblings.decBinOct,isAllowedSibling=16===radix?isAllowedNumericSeparatorSibling.hex:10===radix?isAllowedNumericSeparatorSibling.dec:8===radix?isAllowedNumericSeparatorSibling.oct:isAllowedNumericSeparatorSibling.bin;let invalid=!1,total=0;for(let i=0,e=null==len?1/0:len;i<e;++i){const code=input.charCodeAt(pos);let val;if(95!==code||"bail"===allowNumSeparator){if(val=code>=97?code-97+10:code>=65?code-65+10:_isDigit(code)?code-48:1/0,val>=radix)if(val<=9&&errors.invalidDigit(pos,lineStart,curLine,radix))val=0;else {if(!forceLen)break;val=0,invalid=!0;}++pos,total=total*radix+val;}else {const prev=input.charCodeAt(pos-1),next=input.charCodeAt(pos+1);allowNumSeparator?(Number.isNaN(next)||!isAllowedSibling(next)||forbiddenSiblings.has(prev)||forbiddenSiblings.has(next))&&errors.unexpectedNumericSeparator(pos,lineStart,curLine):errors.numericSeparatorInEscapeSequence(pos,lineStart,curLine),++pos;}}return pos===start||null!=len&&pos-start!==len||invalid?{n:null,pos}:{n:total,pos}}function readCodePoint(input,pos,lineStart,curLine,throwOnInvalid,errors){let code;if(123===input.charCodeAt(pos)){if(++pos,({code,pos}=readHexChar(input,pos,lineStart,curLine,input.indexOf("}",pos)-pos,!0,throwOnInvalid,errors)),++pos,null!==code&&code>1114111){if(!throwOnInvalid)return {code:null,pos};errors.invalidCodePoint(pos,lineStart,curLine);}}else ({code,pos}=readHexChar(input,pos,lineStart,curLine,4,!1,throwOnInvalid,errors));return {code,pos}}},"./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/identifier.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIdentifierChar=isIdentifierChar,exports.isIdentifierName=function(name){let isFirst=!0;for(let i=0;i<name.length;i++){let cp=name.charCodeAt(i);if(55296==(64512&cp)&&i+1<name.length){const trail=name.charCodeAt(++i);56320==(64512&trail)&&(cp=65536+((1023&cp)<<10)+(1023&trail));}if(isFirst){if(isFirst=!1,!isIdentifierStart(cp))return !1}else if(!isIdentifierChar(cp))return !1}return !isFirst},exports.isIdentifierStart=isIdentifierStart;let nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;const astralIdentifierStartCodes=[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,85,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,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,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[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,154,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,161,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,19306,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){let pos=65536;for(let i=0,length=set.length;i<length;i+=2){if(pos+=set[i],pos>code)return !1;if(pos+=set[i+1],pos>=code)return !0}return !1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}},"./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isIdentifierChar",{enumerable:!0,get:function(){return _identifier.isIdentifierChar}}),Object.defineProperty(exports,"isIdentifierName",{enumerable:!0,get:function(){return _identifier.isIdentifierName}}),Object.defineProperty(exports,"isIdentifierStart",{enumerable:!0,get:function(){return _identifier.isIdentifierStart}}),Object.defineProperty(exports,"isKeyword",{enumerable:!0,get:function(){return _keyword.isKeyword}}),Object.defineProperty(exports,"isReservedWord",{enumerable:!0,get:function(){return _keyword.isReservedWord}}),Object.defineProperty(exports,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindOnlyReservedWord}}),Object.defineProperty(exports,"isStrictBindReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindReservedWord}}),Object.defineProperty(exports,"isStrictReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictReservedWord}});var _identifier=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/identifier.js"),_keyword=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/keyword.js");},"./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/keyword.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.isKeyword=function(word){return keywords.has(word)},exports.isReservedWord=isReservedWord,exports.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,exports.isStrictBindReservedWord=function(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)},exports.isStrictReservedWord=isStrictReservedWord;const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}},"./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/helpers-generated.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js");function helper(minVersion,source){return Object.freeze({minVersion,ast:()=>_template.default.program.ast(source,{preserveComments:!0})})}var _default=Object.freeze({AsyncGenerator:helper("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function AsyncGenerator(gen){var front,back;function resume(key,arg){try{var result=gen[key](arg),value=result.value,overloaded=value instanceof OverloadYield;Promise.resolve(overloaded?value.v:value).then((function(arg){if(overloaded){var nextKey="return"===key?"return":"next";if(!value.k||arg.done)return resume(nextKey,arg);arg=gen[nextKey](arg).value}settle(result.done?"return":"normal",arg)}),(function(err){resume("throw",err)}))}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:!0});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:!1})}(front=front.next)?resume(front.key,front.arg):back=null}this._invoke=function(key,arg){return new Promise((function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};back?back=back.next=request:(front=back=request,resume(key,arg))}))},"function"!=typeof gen.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)},AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)},AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)};'),OverloadYield:helper("7.18.14","export default function _OverloadYield(value,kind){this.v=value,this.k=kind}"),applyDecs:helper("7.17.8",'function old_createMetadataMethodsForProperty(metadataMap,kind,property,decoratorFinishedRef){return{getMetadata:function(key){old_assertNotFinished(decoratorFinishedRef,"getMetadata"),old_assertMetadataKey(key);var metadataForKey=metadataMap[key];if(void 0!==metadataForKey)if(1===kind){var pub=metadataForKey.public;if(void 0!==pub)return pub[property]}else if(2===kind){var priv=metadataForKey.private;if(void 0!==priv)return priv.get(property)}else if(Object.hasOwnProperty.call(metadataForKey,"constructor"))return metadataForKey.constructor},setMetadata:function(key,value){old_assertNotFinished(decoratorFinishedRef,"setMetadata"),old_assertMetadataKey(key);var metadataForKey=metadataMap[key];if(void 0===metadataForKey&&(metadataForKey=metadataMap[key]={}),1===kind){var pub=metadataForKey.public;void 0===pub&&(pub=metadataForKey.public={}),pub[property]=value}else if(2===kind){var priv=metadataForKey.priv;void 0===priv&&(priv=metadataForKey.private=new Map),priv.set(property,value)}else metadataForKey.constructor=value}}}function old_convertMetadataMapToFinal(obj,metadataMap){var parentMetadataMap=obj[Symbol.metadata||Symbol.for("Symbol.metadata")],metadataKeys=Object.getOwnPropertySymbols(metadataMap);if(0!==metadataKeys.length){for(var i=0;i<metadataKeys.length;i++){var key=metadataKeys[i],metaForKey=metadataMap[key],parentMetaForKey=parentMetadataMap?parentMetadataMap[key]:null,pub=metaForKey.public,parentPub=parentMetaForKey?parentMetaForKey.public:null;pub&&parentPub&&Object.setPrototypeOf(pub,parentPub);var priv=metaForKey.private;if(priv){var privArr=Array.from(priv.values()),parentPriv=parentMetaForKey?parentMetaForKey.private:null;parentPriv&&(privArr=privArr.concat(parentPriv)),metaForKey.private=privArr}parentMetaForKey&&Object.setPrototypeOf(metaForKey,parentMetaForKey)}parentMetadataMap&&Object.setPrototypeOf(metadataMap,parentMetadataMap),obj[Symbol.metadata||Symbol.for("Symbol.metadata")]=metadataMap}}function old_createAddInitializerMethod(initializers,decoratorFinishedRef){return function(initializer){old_assertNotFinished(decoratorFinishedRef,"addInitializer"),old_assertCallable(initializer,"An initializer"),initializers.push(initializer)}}function old_memberDec(dec,name,desc,metadataMap,initializers,kind,isStatic,isPrivate,value){var kindStr;switch(kind){case 1:kindStr="accessor";break;case 2:kindStr="method";break;case 3:kindStr="getter";break;case 4:kindStr="setter";break;default:kindStr="field"}var metadataKind,metadataName,ctx={kind:kindStr,name:isPrivate?"#"+name:name,isStatic:isStatic,isPrivate:isPrivate},decoratorFinishedRef={v:!1};if(0!==kind&&(ctx.addInitializer=old_createAddInitializerMethod(initializers,decoratorFinishedRef)),isPrivate){metadataKind=2,metadataName=Symbol(name);var access={};0===kind?(access.get=desc.get,access.set=desc.set):2===kind?access.get=function(){return desc.value}:(1!==kind&&3!==kind||(access.get=function(){return desc.get.call(this)}),1!==kind&&4!==kind||(access.set=function(v){desc.set.call(this,v)})),ctx.access=access}else metadataKind=1,metadataName=name;try{return dec(value,Object.assign(ctx,old_createMetadataMethodsForProperty(metadataMap,metadataKind,metadataName,decoratorFinishedRef)))}finally{decoratorFinishedRef.v=!0}}function old_assertNotFinished(decoratorFinishedRef,fnName){if(decoratorFinishedRef.v)throw new Error("attempted to call "+fnName+" after decoration was finished")}function old_assertMetadataKey(key){if("symbol"!=typeof key)throw new TypeError("Metadata keys must be symbols, received: "+key)}function old_assertCallable(fn,hint){if("function"!=typeof fn)throw new TypeError(hint+" must be a function")}function old_assertValidReturnValue(kind,value){var type=typeof value;if(1===kind){if("object"!==type||null===value)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==value.get&&old_assertCallable(value.get,"accessor.get"),void 0!==value.set&&old_assertCallable(value.set,"accessor.set"),void 0!==value.init&&old_assertCallable(value.init,"accessor.init"),void 0!==value.initializer&&old_assertCallable(value.initializer,"accessor.initializer")}else if("function"!==type){var hint;throw hint=0===kind?"field":10===kind?"class":"method",new TypeError(hint+" decorators must return a function or void 0")}}function old_getInit(desc){var initializer;return null==(initializer=desc.init)&&(initializer=desc.initializer)&&"undefined"!=typeof console&&console.warn(".initializer has been renamed to .init as of March 2022"),initializer}function old_applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,metadataMap,initializers){var desc,initializer,value,newValue,get,set,decs=decInfo[0];if(isPrivate?desc=0===kind||1===kind?{get:decInfo[3],set:decInfo[4]}:3===kind?{get:decInfo[3]}:4===kind?{set:decInfo[3]}:{value:decInfo[3]}:0!==kind&&(desc=Object.getOwnPropertyDescriptor(base,name)),1===kind?value={get:desc.get,set:desc.set}:2===kind?value=desc.value:3===kind?value=desc.get:4===kind&&(value=desc.set),"function"==typeof decs)void 0!==(newValue=old_memberDec(decs,name,desc,metadataMap,initializers,kind,isStatic,isPrivate,value))&&(old_assertValidReturnValue(kind,newValue),0===kind?initializer=newValue:1===kind?(initializer=old_getInit(newValue),get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue);else for(var i=decs.length-1;i>=0;i--){var newInit;if(void 0!==(newValue=old_memberDec(decs[i],name,desc,metadataMap,initializers,kind,isStatic,isPrivate,value)))old_assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=old_getInit(newValue),get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===initializer?initializer=newInit:"function"==typeof initializer?initializer=[initializer,newInit]:initializer.push(newInit))}if(0===kind||1===kind){if(void 0===initializer)initializer=function(instance,init){return init};else if("function"!=typeof initializer){var ownInitializers=initializer;initializer=function(instance,init){for(var value=init,i=0;i<ownInitializers.length;i++)value=ownInitializers[i].call(instance,value);return value}}else{var originalInitializer=initializer;initializer=function(instance,init){return originalInitializer.call(instance,init)}}ret.push(initializer)}0!==kind&&(1===kind?(desc.get=value.get,desc.set=value.set):2===kind?desc.value=value:3===kind?desc.get=value:4===kind&&(desc.set=value),isPrivate?1===kind?(ret.push((function(instance,args){return value.get.call(instance,args)})),ret.push((function(instance,args){return value.set.call(instance,args)}))):2===kind?ret.push(value):ret.push((function(instance,args){return value.call(instance,args)})):Object.defineProperty(base,name,desc))}function old_applyMemberDecs(ret,Class,protoMetadataMap,staticMetadataMap,decInfos){for(var protoInitializers,staticInitializers,existingProtoNonFields=new Map,existingStaticNonFields=new Map,i=0;i<decInfos.length;i++){var decInfo=decInfos[i];if(Array.isArray(decInfo)){var base,metadataMap,initializers,kind=decInfo[1],name=decInfo[2],isPrivate=decInfo.length>3,isStatic=kind>=5;if(isStatic?(base=Class,metadataMap=staticMetadataMap,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,metadataMap=protoMetadataMap,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}old_applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,metadataMap,initializers)}}old_pushInitializers(ret,protoInitializers),old_pushInitializers(ret,staticInitializers)}function old_pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i<initializers.length;i++)initializers[i].call(instance);return instance}))}function old_applyClassDecs(ret,targetClass,metadataMap,classDecs){if(classDecs.length>0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var ctx=Object.assign({kind:"class",name:name,addInitializer:old_createAddInitializerMethod(initializers,decoratorFinishedRef)},old_createMetadataMethodsForProperty(metadataMap,0,name,decoratorFinishedRef)),nextNewClass=classDecs[i](newClass,ctx)}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(old_assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}ret.push(newClass,(function(){for(var i=0;i<initializers.length;i++)initializers[i].call(newClass)}))}}export default function applyDecs(targetClass,memberDecs,classDecs){var ret=[],staticMetadataMap={},protoMetadataMap={};return old_applyMemberDecs(ret,targetClass,protoMetadataMap,staticMetadataMap,memberDecs),old_convertMetadataMapToFinal(targetClass.prototype,protoMetadataMap),old_applyClassDecs(ret,targetClass,staticMetadataMap,classDecs),old_convertMetadataMapToFinal(targetClass,staticMetadataMap),ret}'),applyDecs2203:helper("7.19.0",'function createAddInitializerMethod(initializers,decoratorFinishedRef){return function(initializer){assertNotFinished(decoratorFinishedRef,"addInitializer"),assertCallable(initializer,"An initializer"),initializers.push(initializer)}}function memberDec(dec,name,desc,initializers,kind,isStatic,isPrivate,value){var kindStr;switch(kind){case 1:kindStr="accessor";break;case 2:kindStr="method";break;case 3:kindStr="getter";break;case 4:kindStr="setter";break;default:kindStr="field"}var get,set,ctx={kind:kindStr,name:isPrivate?"#"+name:name,static:isStatic,private:isPrivate},decoratorFinishedRef={v:!1};0!==kind&&(ctx.addInitializer=createAddInitializerMethod(initializers,decoratorFinishedRef)),0===kind?isPrivate?(get=desc.get,set=desc.set):(get=function(){return this[name]},set=function(v){this[name]=v}):2===kind?get=function(){return desc.value}:(1!==kind&&3!==kind||(get=function(){return desc.get.call(this)}),1!==kind&&4!==kind||(set=function(v){desc.set.call(this,v)})),ctx.access=get&&set?{get:get,set:set}:get?{get:get}:{set:set};try{return dec(value,ctx)}finally{decoratorFinishedRef.v=!0}}function assertNotFinished(decoratorFinishedRef,fnName){if(decoratorFinishedRef.v)throw new Error("attempted to call "+fnName+" after decoration was finished")}function assertCallable(fn,hint){if("function"!=typeof fn)throw new TypeError(hint+" must be a function")}function assertValidReturnValue(kind,value){var type=typeof value;if(1===kind){if("object"!==type||null===value)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==value.get&&assertCallable(value.get,"accessor.get"),void 0!==value.set&&assertCallable(value.set,"accessor.set"),void 0!==value.init&&assertCallable(value.init,"accessor.init")}else if("function"!==type){var hint;throw hint=0===kind?"field":10===kind?"class":"method",new TypeError(hint+" decorators must return a function or void 0")}}function applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers){var desc,init,value,newValue,get,set,decs=decInfo[0];if(isPrivate?desc=0===kind||1===kind?{get:decInfo[3],set:decInfo[4]}:3===kind?{get:decInfo[3]}:4===kind?{set:decInfo[3]}:{value:decInfo[3]}:0!==kind&&(desc=Object.getOwnPropertyDescriptor(base,name)),1===kind?value={get:desc.get,set:desc.set}:2===kind?value=desc.value:3===kind?value=desc.get:4===kind&&(value=desc.set),"function"==typeof decs)void 0!==(newValue=memberDec(decs,name,desc,initializers,kind,isStatic,isPrivate,value))&&(assertValidReturnValue(kind,newValue),0===kind?init=newValue:1===kind?(init=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue);else for(var i=decs.length-1;i>=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i<ownInitializers.length;i++)value=ownInitializers[i].call(instance,value);return value}}else{var originalInitializer=init;init=function(instance,init){return originalInitializer.call(instance,init)}}ret.push(init)}0!==kind&&(1===kind?(desc.get=value.get,desc.set=value.set):2===kind?desc.value=value:3===kind?desc.get=value:4===kind&&(desc.set=value),isPrivate?1===kind?(ret.push((function(instance,args){return value.get.call(instance,args)})),ret.push((function(instance,args){return value.set.call(instance,args)}))):2===kind?ret.push(value):ret.push((function(instance,args){return value.call(instance,args)})):Object.defineProperty(base,name,desc))}function applyMemberDecs(ret,Class,decInfos){for(var protoInitializers,staticInitializers,existingProtoNonFields=new Map,existingStaticNonFields=new Map,i=0;i<decInfos.length;i++){var decInfo=decInfos[i];if(Array.isArray(decInfo)){var base,initializers,kind=decInfo[1],name=decInfo[2],isPrivate=decInfo.length>3,isStatic=kind>=5;if(isStatic?(base=Class,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers)}}pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers)}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i<initializers.length;i++)initializers[i].call(instance);return instance}))}function applyClassDecs(ret,targetClass,classDecs){if(classDecs.length>0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}ret.push(newClass,(function(){for(var i=0;i<initializers.length;i++)initializers[i].call(newClass)}))}}export default function applyDecs2203(targetClass,memberDecs,classDecs){var ret=[];return applyMemberDecs(ret,targetClass,memberDecs),applyClassDecs(ret,targetClass,classDecs),ret}'),asyncGeneratorDelegate:helper("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function _asyncGeneratorDelegate(inner){var iter={},waiting=!1;function pump(key,value){return waiting=!0,value=new Promise((function(resolve){resolve(inner[key](value))})),{done:!1,value:new OverloadYield(value,1)}}return iter["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},iter.next=function(value){return waiting?(waiting=!1,value):pump("next",value)},"function"==typeof inner.throw&&(iter.throw=function(value){if(waiting)throw waiting=!1,value;return pump("throw",value)}),"function"==typeof inner.return&&(iter.return=function(value){return waiting?(waiting=!1,value):pump("return",value)}),iter}'),asyncIterator:helper("7.15.9",'export default function _asyncIterator(iterable){var method,async,sync,retry=2;for("undefined"!=typeof Symbol&&(async=Symbol.asyncIterator,sync=Symbol.iterator);retry--;){if(async&&null!=(method=iterable[async]))return method.call(iterable);if(sync&&null!=(method=iterable[sync]))return new AsyncFromSyncIterator(method.call(iterable));async="@@asyncIterator",sync="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(s){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var done=r.done;return Promise.resolve(r.value).then((function(value){return{value:value,done:done}}))}return AsyncFromSyncIterator=function(s){this.s=s,this.n=s.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(value){var ret=this.s.return;return void 0===ret?Promise.resolve({value:value,done:!0}):AsyncFromSyncIteratorContinuation(ret.apply(this.s,arguments))},throw:function(value){var thr=this.s.return;return void 0===thr?Promise.reject(value):AsyncFromSyncIteratorContinuation(thr.apply(this.s,arguments))}},new AsyncFromSyncIterator(s)}'),awaitAsyncGenerator:helper("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function _awaitAsyncGenerator(value){return new OverloadYield(value,0)}'),jsx:helper("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;export default function _createRawReactElement(type,props,key,children){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var defaultProps=type&&type.defaultProps,childrenLength=arguments.length-3;if(props||0===childrenLength||(props={children:void 0}),1===childrenLength)props.children=children;else if(childrenLength>1){for(var childArray=new Array(childrenLength),i=0;i<childrenLength;i++)childArray[i]=arguments[i+3];props.children=childArray}if(props&&defaultProps)for(var propName in defaultProps)void 0===props[propName]&&(props[propName]=defaultProps[propName]);else props||(props=defaultProps||{});return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:void 0===key?null:""+key,ref:null,props:props,_owner:null}}'),objectSpread2:helper("7.5.0",'import defineProperty from"defineProperty";function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}export default function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach((function(key){defineProperty(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target}'),regeneratorRuntime:helper("7.18.0",'export default function _regeneratorRuntime(){"use strict";\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return exports};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key]}try{define({},"")}catch(err){define=function(obj,key,value){return obj[key]=value}}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return generator._invoke=function(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult()}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg)}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done}}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg)}}}(innerFn,self,context),generator}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,(function(){return this}));var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach((function(method){define(prototype,method,(function(arg){return this._invoke(method,arg)}))}))}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==typeof value&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then((function(value){invoke("next",value,resolve,reject)}),(function(err){invoke("throw",err,resolve,reject)})):PromiseImpl.resolve(value).then((function(unwrapped){result.value=unwrapped,resolve(result)}),(function(error){return invoke("throw",error,resolve,reject)}))}reject(record.arg)}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl((function(resolve,reject){invoke(method,arg,resolve,reject)}))}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(undefined===method){if(context.delegate=null,"throw"===context.method){if(delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method))return ContinueSentinel;context.method="throw",context.arg=new TypeError("The iterator does not provide a \'throw\' method")}return ContinueSentinel}var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel)}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0)}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next};return next.next=next}}return{next:doneResult}}function doneResult(){return{value:undefined,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(Gp,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name))},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun},exports.awrap=function(arg){return{__await:arg}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,(function(){return this})),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then((function(result){return result.done?result.value:iter.next()}))},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,(function(){return this})),define(Gp,"toString",(function(){return"[object Generator]"})),exports.keys=function(object){var keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next}return next.done=!0,next}},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined)},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0)}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record)},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel}},exports}'),typeof:helper("7.0.0-beta.0",'export default function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}'),wrapRegExp:helper("7.19.0",'import setPrototypeOf from"setPrototypeOf";import inherits from"inherits";export default function _wrapRegExp(){_wrapRegExp=function(re,groups){return new BabelRegExp(re,void 0,groups)};var _super=RegExp.prototype,_groups=new WeakMap;function BabelRegExp(re,flags,groups){var _this=new RegExp(re,flags);return _groups.set(_this,groups||_groups.get(re)),setPrototypeOf(_this,BabelRegExp.prototype)}function buildGroups(result,re){var g=_groups.get(re);return Object.keys(g).reduce((function(groups,name){var i=g[name];if("number"==typeof i)groups[name]=result[i];else{for(var k=0;void 0===result[i[k]]&&k+1<i.length;)k++;groups[name]=result[i[k]]}return groups}),Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(str){var result=_super.exec.call(this,str);return result&&(result.groups=buildGroups(result,this)),result},BabelRegExp.prototype[Symbol.replace]=function(str,substitution){if("string"==typeof substitution){var groups=_groups.get(this);return _super[Symbol.replace].call(this,str,substitution.replace(/\\$<([^>]+)>/g,(function(_,name){return"$"+groups[name]})))}if("function"==typeof substitution){var _this=this;return _super[Symbol.replace].call(this,str,(function(){var args=arguments;return"object"!=typeof args[args.length-1]&&(args=[].slice.call(args)).push(buildGroups(args,_this)),substitution.apply(this,args)}))}return _super[Symbol.replace].call(this,str,substitution)},_wrapRegExp.apply(this,arguments)}')});exports.default=_default;},"./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/helpers.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _template=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js"),_helpersGenerated=__webpack_require__("./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/helpers-generated.js");const helpers=Object.assign({__proto__:null},_helpersGenerated.default);var _default=helpers;exports.default=_default;const helper=minVersion=>tpl=>({minVersion,ast:()=>_template.default.program.ast(tpl)});helpers.AwaitValue=helper("7.0.0-beta.0")`
583 export default function _AwaitValue(value) {
584 this.wrapped = value;
585 }
586 `,helpers.wrapAsyncGenerator=helper("7.0.0-beta.0")`
587 import AsyncGenerator from "AsyncGenerator";
588
589 export default function _wrapAsyncGenerator(fn) {
590 return function () {
591 return new AsyncGenerator(fn.apply(this, arguments));
592 };
593 }
594`,helpers.asyncToGenerator=helper("7.0.0-beta.0")`
595 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
596 try {
597 var info = gen[key](arg);
598 var value = info.value;
599 } catch (error) {
600 reject(error);
601 return;
602 }
603
604 if (info.done) {
605 resolve(value);
606 } else {
607 Promise.resolve(value).then(_next, _throw);
608 }
609 }
610
611 export default function _asyncToGenerator(fn) {
612 return function () {
613 var self = this, args = arguments;
614 return new Promise(function (resolve, reject) {
615 var gen = fn.apply(self, args);
616 function _next(value) {
617 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
618 }
619 function _throw(err) {
620 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
621 }
622
623 _next(undefined);
624 });
625 };
626 }
627`,helpers.classCallCheck=helper("7.0.0-beta.0")`
628 export default function _classCallCheck(instance, Constructor) {
629 if (!(instance instanceof Constructor)) {
630 throw new TypeError("Cannot call a class as a function");
631 }
632 }
633`,helpers.createClass=helper("7.0.0-beta.0")`
634 function _defineProperties(target, props) {
635 for (var i = 0; i < props.length; i ++) {
636 var descriptor = props[i];
637 descriptor.enumerable = descriptor.enumerable || false;
638 descriptor.configurable = true;
639 if ("value" in descriptor) descriptor.writable = true;
640 Object.defineProperty(target, descriptor.key, descriptor);
641 }
642 }
643
644 export default function _createClass(Constructor, protoProps, staticProps) {
645 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
646 if (staticProps) _defineProperties(Constructor, staticProps);
647 Object.defineProperty(Constructor, "prototype", { writable: false });
648 return Constructor;
649 }
650`,helpers.defineEnumerableProperties=helper("7.0.0-beta.0")`
651 export default function _defineEnumerableProperties(obj, descs) {
652 for (var key in descs) {
653 var desc = descs[key];
654 desc.configurable = desc.enumerable = true;
655 if ("value" in desc) desc.writable = true;
656 Object.defineProperty(obj, key, desc);
657 }
658
659 // Symbols are not enumerated over by for-in loops. If native
660 // Symbols are available, fetch all of the descs object's own
661 // symbol properties and define them on our target object too.
662 if (Object.getOwnPropertySymbols) {
663 var objectSymbols = Object.getOwnPropertySymbols(descs);
664 for (var i = 0; i < objectSymbols.length; i++) {
665 var sym = objectSymbols[i];
666 var desc = descs[sym];
667 desc.configurable = desc.enumerable = true;
668 if ("value" in desc) desc.writable = true;
669 Object.defineProperty(obj, sym, desc);
670 }
671 }
672 return obj;
673 }
674`,helpers.defaults=helper("7.0.0-beta.0")`
675 export default function _defaults(obj, defaults) {
676 var keys = Object.getOwnPropertyNames(defaults);
677 for (var i = 0; i < keys.length; i++) {
678 var key = keys[i];
679 var value = Object.getOwnPropertyDescriptor(defaults, key);
680 if (value && value.configurable && obj[key] === undefined) {
681 Object.defineProperty(obj, key, value);
682 }
683 }
684 return obj;
685 }
686`,helpers.defineProperty=helper("7.0.0-beta.0")`
687 export default function _defineProperty(obj, key, value) {
688 // Shortcircuit the slow defineProperty path when possible.
689 // We are trying to avoid issues where setters defined on the
690 // prototype cause side effects under the fast path of simple
691 // assignment. By checking for existence of the property with
692 // the in operator, we can optimize most of this overhead away.
693 if (key in obj) {
694 Object.defineProperty(obj, key, {
695 value: value,
696 enumerable: true,
697 configurable: true,
698 writable: true
699 });
700 } else {
701 obj[key] = value;
702 }
703 return obj;
704 }
705`,helpers.extends=helper("7.0.0-beta.0")`
706 export default function _extends() {
707 _extends = Object.assign ? Object.assign.bind() : function (target) {
708 for (var i = 1; i < arguments.length; i++) {
709 var source = arguments[i];
710 for (var key in source) {
711 if (Object.prototype.hasOwnProperty.call(source, key)) {
712 target[key] = source[key];
713 }
714 }
715 }
716 return target;
717 };
718
719 return _extends.apply(this, arguments);
720 }
721`,helpers.objectSpread=helper("7.0.0-beta.0")`
722 import defineProperty from "defineProperty";
723
724 export default function _objectSpread(target) {
725 for (var i = 1; i < arguments.length; i++) {
726 var source = (arguments[i] != null) ? Object(arguments[i]) : {};
727 var ownKeys = Object.keys(source);
728 if (typeof Object.getOwnPropertySymbols === 'function') {
729 ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) {
730 return Object.getOwnPropertyDescriptor(source, sym).enumerable;
731 }));
732 }
733 ownKeys.forEach(function(key) {
734 defineProperty(target, key, source[key]);
735 });
736 }
737 return target;
738 }
739`,helpers.inherits=helper("7.0.0-beta.0")`
740 import setPrototypeOf from "setPrototypeOf";
741
742 export default function _inherits(subClass, superClass) {
743 if (typeof superClass !== "function" && superClass !== null) {
744 throw new TypeError("Super expression must either be null or a function");
745 }
746 // We can't use defineProperty to set the prototype in a single step because it
747 // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056
748 // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334
749 subClass.prototype = Object.create(superClass && superClass.prototype, {
750 constructor: {
751 value: subClass,
752 writable: true,
753 configurable: true
754 }
755 });
756 Object.defineProperty(subClass, "prototype", { writable: false });
757 if (superClass) setPrototypeOf(subClass, superClass);
758 }
759`,helpers.inheritsLoose=helper("7.0.0-beta.0")`
760 import setPrototypeOf from "setPrototypeOf";
761
762 export default function _inheritsLoose(subClass, superClass) {
763 subClass.prototype = Object.create(superClass.prototype);
764 subClass.prototype.constructor = subClass;
765 setPrototypeOf(subClass, superClass);
766 }
767`,helpers.getPrototypeOf=helper("7.0.0-beta.0")`
768 export default function _getPrototypeOf(o) {
769 _getPrototypeOf = Object.setPrototypeOf
770 ? Object.getPrototypeOf.bind()
771 : function _getPrototypeOf(o) {
772 return o.__proto__ || Object.getPrototypeOf(o);
773 };
774 return _getPrototypeOf(o);
775 }
776`,helpers.setPrototypeOf=helper("7.0.0-beta.0")`
777 export default function _setPrototypeOf(o, p) {
778 _setPrototypeOf = Object.setPrototypeOf
779 ? Object.setPrototypeOf.bind()
780 : function _setPrototypeOf(o, p) {
781 o.__proto__ = p;
782 return o;
783 };
784 return _setPrototypeOf(o, p);
785 }
786`,helpers.isNativeReflectConstruct=helper("7.9.0")`
787 export default function _isNativeReflectConstruct() {
788 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
789
790 // core-js@3
791 if (Reflect.construct.sham) return false;
792
793 // Proxy can't be polyfilled. Every browser implemented
794 // proxies before or at the same time as Reflect.construct,
795 // so if they support Proxy they also support Reflect.construct.
796 if (typeof Proxy === "function") return true;
797
798 // Since Reflect.construct can't be properly polyfilled, some
799 // implementations (e.g. core-js@2) don't set the correct internal slots.
800 // Those polyfills don't allow us to subclass built-ins, so we need to
801 // use our fallback implementation.
802 try {
803 // If the internal slots aren't set, this throws an error similar to
804 // TypeError: this is not a Boolean object.
805
806 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
807 return true;
808 } catch (e) {
809 return false;
810 }
811 }
812`,helpers.construct=helper("7.0.0-beta.0")`
813 import setPrototypeOf from "setPrototypeOf";
814 import isNativeReflectConstruct from "isNativeReflectConstruct";
815
816 export default function _construct(Parent, args, Class) {
817 if (isNativeReflectConstruct()) {
818 _construct = Reflect.construct.bind();
819 } else {
820 // NOTE: If Parent !== Class, the correct __proto__ is set *after*
821 // calling the constructor.
822 _construct = function _construct(Parent, args, Class) {
823 var a = [null];
824 a.push.apply(a, args);
825 var Constructor = Function.bind.apply(Parent, a);
826 var instance = new Constructor();
827 if (Class) setPrototypeOf(instance, Class.prototype);
828 return instance;
829 };
830 }
831 // Avoid issues with Class being present but undefined when it wasn't
832 // present in the original call.
833 return _construct.apply(null, arguments);
834 }
835`,helpers.isNativeFunction=helper("7.0.0-beta.0")`
836 export default function _isNativeFunction(fn) {
837 // Note: This function returns "true" for core-js functions.
838 return Function.toString.call(fn).indexOf("[native code]") !== -1;
839 }
840`,helpers.wrapNativeSuper=helper("7.0.0-beta.0")`
841 import getPrototypeOf from "getPrototypeOf";
842 import setPrototypeOf from "setPrototypeOf";
843 import isNativeFunction from "isNativeFunction";
844 import construct from "construct";
845
846 export default function _wrapNativeSuper(Class) {
847 var _cache = typeof Map === "function" ? new Map() : undefined;
848
849 _wrapNativeSuper = function _wrapNativeSuper(Class) {
850 if (Class === null || !isNativeFunction(Class)) return Class;
851 if (typeof Class !== "function") {
852 throw new TypeError("Super expression must either be null or a function");
853 }
854 if (typeof _cache !== "undefined") {
855 if (_cache.has(Class)) return _cache.get(Class);
856 _cache.set(Class, Wrapper);
857 }
858 function Wrapper() {
859 return construct(Class, arguments, getPrototypeOf(this).constructor)
860 }
861 Wrapper.prototype = Object.create(Class.prototype, {
862 constructor: {
863 value: Wrapper,
864 enumerable: false,
865 writable: true,
866 configurable: true,
867 }
868 });
869
870 return setPrototypeOf(Wrapper, Class);
871 }
872
873 return _wrapNativeSuper(Class)
874 }
875`,helpers.instanceof=helper("7.0.0-beta.0")`
876 export default function _instanceof(left, right) {
877 if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
878 return !!right[Symbol.hasInstance](left);
879 } else {
880 return left instanceof right;
881 }
882 }
883`,helpers.interopRequireDefault=helper("7.0.0-beta.0")`
884 export default function _interopRequireDefault(obj) {
885 return obj && obj.__esModule ? obj : { default: obj };
886 }
887`,helpers.interopRequireWildcard=helper("7.14.0")`
888 function _getRequireWildcardCache(nodeInterop) {
889 if (typeof WeakMap !== "function") return null;
890
891 var cacheBabelInterop = new WeakMap();
892 var cacheNodeInterop = new WeakMap();
893 return (_getRequireWildcardCache = function (nodeInterop) {
894 return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
895 })(nodeInterop);
896 }
897
898 export default function _interopRequireWildcard(obj, nodeInterop) {
899 if (!nodeInterop && obj && obj.__esModule) {
900 return obj;
901 }
902
903 if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) {
904 return { default: obj }
905 }
906
907 var cache = _getRequireWildcardCache(nodeInterop);
908 if (cache && cache.has(obj)) {
909 return cache.get(obj);
910 }
911
912 var newObj = {};
913 var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
914 for (var key in obj) {
915 if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
916 var desc = hasPropertyDescriptor
917 ? Object.getOwnPropertyDescriptor(obj, key)
918 : null;
919 if (desc && (desc.get || desc.set)) {
920 Object.defineProperty(newObj, key, desc);
921 } else {
922 newObj[key] = obj[key];
923 }
924 }
925 }
926 newObj.default = obj;
927 if (cache) {
928 cache.set(obj, newObj);
929 }
930 return newObj;
931 }
932`,helpers.newArrowCheck=helper("7.0.0-beta.0")`
933 export default function _newArrowCheck(innerThis, boundThis) {
934 if (innerThis !== boundThis) {
935 throw new TypeError("Cannot instantiate an arrow function");
936 }
937 }
938`,helpers.objectDestructuringEmpty=helper("7.0.0-beta.0")`
939 export default function _objectDestructuringEmpty(obj) {
940 if (obj == null) throw new TypeError("Cannot destructure undefined");
941 }
942`,helpers.objectWithoutPropertiesLoose=helper("7.0.0-beta.0")`
943 export default function _objectWithoutPropertiesLoose(source, excluded) {
944 if (source == null) return {};
945
946 var target = {};
947 var sourceKeys = Object.keys(source);
948 var key, i;
949
950 for (i = 0; i < sourceKeys.length; i++) {
951 key = sourceKeys[i];
952 if (excluded.indexOf(key) >= 0) continue;
953 target[key] = source[key];
954 }
955
956 return target;
957 }
958`,helpers.objectWithoutProperties=helper("7.0.0-beta.0")`
959 import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose";
960
961 export default function _objectWithoutProperties(source, excluded) {
962 if (source == null) return {};
963
964 var target = objectWithoutPropertiesLoose(source, excluded);
965 var key, i;
966
967 if (Object.getOwnPropertySymbols) {
968 var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
969 for (i = 0; i < sourceSymbolKeys.length; i++) {
970 key = sourceSymbolKeys[i];
971 if (excluded.indexOf(key) >= 0) continue;
972 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
973 target[key] = source[key];
974 }
975 }
976
977 return target;
978 }
979`,helpers.assertThisInitialized=helper("7.0.0-beta.0")`
980 export default function _assertThisInitialized(self) {
981 if (self === void 0) {
982 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
983 }
984 return self;
985 }
986`,helpers.possibleConstructorReturn=helper("7.0.0-beta.0")`
987 import assertThisInitialized from "assertThisInitialized";
988
989 export default function _possibleConstructorReturn(self, call) {
990 if (call && (typeof call === "object" || typeof call === "function")) {
991 return call;
992 } else if (call !== void 0) {
993 throw new TypeError("Derived constructors may only return object or undefined");
994 }
995
996 return assertThisInitialized(self);
997 }
998`,helpers.createSuper=helper("7.9.0")`
999 import getPrototypeOf from "getPrototypeOf";
1000 import isNativeReflectConstruct from "isNativeReflectConstruct";
1001 import possibleConstructorReturn from "possibleConstructorReturn";
1002
1003 export default function _createSuper(Derived) {
1004 var hasNativeReflectConstruct = isNativeReflectConstruct();
1005
1006 return function _createSuperInternal() {
1007 var Super = getPrototypeOf(Derived), result;
1008 if (hasNativeReflectConstruct) {
1009 // NOTE: This doesn't work if this.__proto__.constructor has been modified.
1010 var NewTarget = getPrototypeOf(this).constructor;
1011 result = Reflect.construct(Super, arguments, NewTarget);
1012 } else {
1013 result = Super.apply(this, arguments);
1014 }
1015 return possibleConstructorReturn(this, result);
1016 }
1017 }
1018 `,helpers.superPropBase=helper("7.0.0-beta.0")`
1019 import getPrototypeOf from "getPrototypeOf";
1020
1021 export default function _superPropBase(object, property) {
1022 // Yes, this throws if object is null to being with, that's on purpose.
1023 while (!Object.prototype.hasOwnProperty.call(object, property)) {
1024 object = getPrototypeOf(object);
1025 if (object === null) break;
1026 }
1027 return object;
1028 }
1029`,helpers.get=helper("7.0.0-beta.0")`
1030 import superPropBase from "superPropBase";
1031
1032 export default function _get() {
1033 if (typeof Reflect !== "undefined" && Reflect.get) {
1034 _get = Reflect.get.bind();
1035 } else {
1036 _get = function _get(target, property, receiver) {
1037 var base = superPropBase(target, property);
1038
1039 if (!base) return;
1040
1041 var desc = Object.getOwnPropertyDescriptor(base, property);
1042 if (desc.get) {
1043 // STEP 3. If receiver is not present, then set receiver to target.
1044 return desc.get.call(arguments.length < 3 ? target : receiver);
1045 }
1046
1047 return desc.value;
1048 };
1049 }
1050 return _get.apply(this, arguments);
1051 }
1052`,helpers.set=helper("7.0.0-beta.0")`
1053 import superPropBase from "superPropBase";
1054 import defineProperty from "defineProperty";
1055
1056 function set(target, property, value, receiver) {
1057 if (typeof Reflect !== "undefined" && Reflect.set) {
1058 set = Reflect.set;
1059 } else {
1060 set = function set(target, property, value, receiver) {
1061 var base = superPropBase(target, property);
1062 var desc;
1063
1064 if (base) {
1065 desc = Object.getOwnPropertyDescriptor(base, property);
1066 if (desc.set) {
1067 desc.set.call(receiver, value);
1068 return true;
1069 } else if (!desc.writable) {
1070 // Both getter and non-writable fall into this.
1071 return false;
1072 }
1073 }
1074
1075 // Without a super that defines the property, spec boils down to
1076 // "define on receiver" for some reason.
1077 desc = Object.getOwnPropertyDescriptor(receiver, property);
1078 if (desc) {
1079 if (!desc.writable) {
1080 // Setter, getter, and non-writable fall into this.
1081 return false;
1082 }
1083
1084 desc.value = value;
1085 Object.defineProperty(receiver, property, desc);
1086 } else {
1087 // Avoid setters that may be defined on Sub's prototype, but not on
1088 // the instance.
1089 defineProperty(receiver, property, value);
1090 }
1091
1092 return true;
1093 };
1094 }
1095
1096 return set(target, property, value, receiver);
1097 }
1098
1099 export default function _set(target, property, value, receiver, isStrict) {
1100 var s = set(target, property, value, receiver || target);
1101 if (!s && isStrict) {
1102 throw new Error('failed to set property');
1103 }
1104
1105 return value;
1106 }
1107`,helpers.taggedTemplateLiteral=helper("7.0.0-beta.0")`
1108 export default function _taggedTemplateLiteral(strings, raw) {
1109 if (!raw) { raw = strings.slice(0); }
1110 return Object.freeze(Object.defineProperties(strings, {
1111 raw: { value: Object.freeze(raw) }
1112 }));
1113 }
1114`,helpers.taggedTemplateLiteralLoose=helper("7.0.0-beta.0")`
1115 export default function _taggedTemplateLiteralLoose(strings, raw) {
1116 if (!raw) { raw = strings.slice(0); }
1117 strings.raw = raw;
1118 return strings;
1119 }
1120`,helpers.readOnlyError=helper("7.0.0-beta.0")`
1121 export default function _readOnlyError(name) {
1122 throw new TypeError("\\"" + name + "\\" is read-only");
1123 }
1124`,helpers.writeOnlyError=helper("7.12.13")`
1125 export default function _writeOnlyError(name) {
1126 throw new TypeError("\\"" + name + "\\" is write-only");
1127 }
1128`,helpers.classNameTDZError=helper("7.0.0-beta.0")`
1129 export default function _classNameTDZError(name) {
1130 throw new Error("Class \\"" + name + "\\" cannot be referenced in computed property keys.");
1131 }
1132`,helpers.temporalUndefined=helper("7.0.0-beta.0")`
1133 // This function isn't mean to be called, but to be used as a reference.
1134 // We can't use a normal object because it isn't hoisted.
1135 export default function _temporalUndefined() {}
1136`,helpers.tdz=helper("7.5.5")`
1137 export default function _tdzError(name) {
1138 throw new ReferenceError(name + " is not defined - temporal dead zone");
1139 }
1140`,helpers.temporalRef=helper("7.0.0-beta.0")`
1141 import undef from "temporalUndefined";
1142 import err from "tdz";
1143
1144 export default function _temporalRef(val, name) {
1145 return val === undef ? err(name) : val;
1146 }
1147`,helpers.slicedToArray=helper("7.0.0-beta.0")`
1148 import arrayWithHoles from "arrayWithHoles";
1149 import iterableToArrayLimit from "iterableToArrayLimit";
1150 import unsupportedIterableToArray from "unsupportedIterableToArray";
1151 import nonIterableRest from "nonIterableRest";
1152
1153 export default function _slicedToArray(arr, i) {
1154 return (
1155 arrayWithHoles(arr) ||
1156 iterableToArrayLimit(arr, i) ||
1157 unsupportedIterableToArray(arr, i) ||
1158 nonIterableRest()
1159 );
1160 }
1161`,helpers.slicedToArrayLoose=helper("7.0.0-beta.0")`
1162 import arrayWithHoles from "arrayWithHoles";
1163 import iterableToArrayLimitLoose from "iterableToArrayLimitLoose";
1164 import unsupportedIterableToArray from "unsupportedIterableToArray";
1165 import nonIterableRest from "nonIterableRest";
1166
1167 export default function _slicedToArrayLoose(arr, i) {
1168 return (
1169 arrayWithHoles(arr) ||
1170 iterableToArrayLimitLoose(arr, i) ||
1171 unsupportedIterableToArray(arr, i) ||
1172 nonIterableRest()
1173 );
1174 }
1175`,helpers.toArray=helper("7.0.0-beta.0")`
1176 import arrayWithHoles from "arrayWithHoles";
1177 import iterableToArray from "iterableToArray";
1178 import unsupportedIterableToArray from "unsupportedIterableToArray";
1179 import nonIterableRest from "nonIterableRest";
1180
1181 export default function _toArray(arr) {
1182 return (
1183 arrayWithHoles(arr) ||
1184 iterableToArray(arr) ||
1185 unsupportedIterableToArray(arr) ||
1186 nonIterableRest()
1187 );
1188 }
1189`,helpers.toConsumableArray=helper("7.0.0-beta.0")`
1190 import arrayWithoutHoles from "arrayWithoutHoles";
1191 import iterableToArray from "iterableToArray";
1192 import unsupportedIterableToArray from "unsupportedIterableToArray";
1193 import nonIterableSpread from "nonIterableSpread";
1194
1195 export default function _toConsumableArray(arr) {
1196 return (
1197 arrayWithoutHoles(arr) ||
1198 iterableToArray(arr) ||
1199 unsupportedIterableToArray(arr) ||
1200 nonIterableSpread()
1201 );
1202 }
1203`,helpers.arrayWithoutHoles=helper("7.0.0-beta.0")`
1204 import arrayLikeToArray from "arrayLikeToArray";
1205
1206 export default function _arrayWithoutHoles(arr) {
1207 if (Array.isArray(arr)) return arrayLikeToArray(arr);
1208 }
1209`,helpers.arrayWithHoles=helper("7.0.0-beta.0")`
1210 export default function _arrayWithHoles(arr) {
1211 if (Array.isArray(arr)) return arr;
1212 }
1213`,helpers.maybeArrayLike=helper("7.9.0")`
1214 import arrayLikeToArray from "arrayLikeToArray";
1215
1216 export default function _maybeArrayLike(next, arr, i) {
1217 if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
1218 var len = arr.length;
1219 return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
1220 }
1221 return next(arr, i);
1222 }
1223`,helpers.iterableToArray=helper("7.0.0-beta.0")`
1224 export default function _iterableToArray(iter) {
1225 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1226 }
1227`,helpers.iterableToArrayLimit=helper("7.0.0-beta.0")`
1228 export default function _iterableToArrayLimit(arr, i) {
1229 // this is an expanded form of \`for...of\` that properly supports abrupt completions of
1230 // iterators etc. variable names have been minimised to reduce the size of this massive
1231 // helper. sometimes spec compliance is annoying :(
1232 //
1233 // _n = _iteratorNormalCompletion
1234 // _d = _didIteratorError
1235 // _e = _iteratorError
1236 // _i = _iterator
1237 // _s = _step
1238
1239 var _i = arr == null ? null : (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
1240 if (_i == null) return;
1241
1242 var _arr = [];
1243 var _n = true;
1244 var _d = false;
1245 var _s, _e;
1246 try {
1247 for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1248 _arr.push(_s.value);
1249 if (i && _arr.length === i) break;
1250 }
1251 } catch (err) {
1252 _d = true;
1253 _e = err;
1254 } finally {
1255 try {
1256 if (!_n && _i["return"] != null) _i["return"]();
1257 } finally {
1258 if (_d) throw _e;
1259 }
1260 }
1261 return _arr;
1262 }
1263`,helpers.iterableToArrayLimitLoose=helper("7.0.0-beta.0")`
1264 export default function _iterableToArrayLimitLoose(arr, i) {
1265 var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
1266 if (_i == null) return;
1267
1268 var _arr = [];
1269 for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
1270 _arr.push(_step.value);
1271 if (i && _arr.length === i) break;
1272 }
1273 return _arr;
1274 }
1275`,helpers.unsupportedIterableToArray=helper("7.9.0")`
1276 import arrayLikeToArray from "arrayLikeToArray";
1277
1278 export default function _unsupportedIterableToArray(o, minLen) {
1279 if (!o) return;
1280 if (typeof o === "string") return arrayLikeToArray(o, minLen);
1281 var n = Object.prototype.toString.call(o).slice(8, -1);
1282 if (n === "Object" && o.constructor) n = o.constructor.name;
1283 if (n === "Map" || n === "Set") return Array.from(o);
1284 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1285 return arrayLikeToArray(o, minLen);
1286 }
1287`,helpers.arrayLikeToArray=helper("7.9.0")`
1288 export default function _arrayLikeToArray(arr, len) {
1289 if (len == null || len > arr.length) len = arr.length;
1290 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1291 return arr2;
1292 }
1293`,helpers.nonIterableSpread=helper("7.0.0-beta.0")`
1294 export default function _nonIterableSpread() {
1295 throw new TypeError(
1296 "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
1297 );
1298 }
1299`,helpers.nonIterableRest=helper("7.0.0-beta.0")`
1300 export default function _nonIterableRest() {
1301 throw new TypeError(
1302 "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
1303 );
1304 }
1305`,helpers.createForOfIteratorHelper=helper("7.9.0")`
1306 import unsupportedIterableToArray from "unsupportedIterableToArray";
1307
1308 // s: start (create the iterator)
1309 // n: next
1310 // e: error (called whenever something throws)
1311 // f: finish (always called at the end)
1312
1313 export default function _createForOfIteratorHelper(o, allowArrayLike) {
1314 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1315
1316 if (!it) {
1317 // Fallback for engines without symbol support
1318 if (
1319 Array.isArray(o) ||
1320 (it = unsupportedIterableToArray(o)) ||
1321 (allowArrayLike && o && typeof o.length === "number")
1322 ) {
1323 if (it) o = it;
1324 var i = 0;
1325 var F = function(){};
1326 return {
1327 s: F,
1328 n: function() {
1329 if (i >= o.length) return { done: true };
1330 return { done: false, value: o[i++] };
1331 },
1332 e: function(e) { throw e; },
1333 f: F,
1334 };
1335 }
1336
1337 throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1338 }
1339
1340 var normalCompletion = true, didErr = false, err;
1341
1342 return {
1343 s: function() {
1344 it = it.call(o);
1345 },
1346 n: function() {
1347 var step = it.next();
1348 normalCompletion = step.done;
1349 return step;
1350 },
1351 e: function(e) {
1352 didErr = true;
1353 err = e;
1354 },
1355 f: function() {
1356 try {
1357 if (!normalCompletion && it.return != null) it.return();
1358 } finally {
1359 if (didErr) throw err;
1360 }
1361 }
1362 };
1363 }
1364`,helpers.createForOfIteratorHelperLoose=helper("7.9.0")`
1365 import unsupportedIterableToArray from "unsupportedIterableToArray";
1366
1367 export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
1368 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1369
1370 if (it) return (it = it.call(o)).next.bind(it);
1371
1372 // Fallback for engines without symbol support
1373 if (
1374 Array.isArray(o) ||
1375 (it = unsupportedIterableToArray(o)) ||
1376 (allowArrayLike && o && typeof o.length === "number")
1377 ) {
1378 if (it) o = it;
1379 var i = 0;
1380 return function() {
1381 if (i >= o.length) return { done: true };
1382 return { done: false, value: o[i++] };
1383 }
1384 }
1385
1386 throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1387 }
1388`,helpers.skipFirstGeneratorNext=helper("7.0.0-beta.0")`
1389 export default function _skipFirstGeneratorNext(fn) {
1390 return function () {
1391 var it = fn.apply(this, arguments);
1392 it.next();
1393 return it;
1394 }
1395 }
1396`,helpers.toPrimitive=helper("7.1.5")`
1397 export default function _toPrimitive(
1398 input,
1399 hint /*: "default" | "string" | "number" | void */
1400 ) {
1401 if (typeof input !== "object" || input === null) return input;
1402 var prim = input[Symbol.toPrimitive];
1403 if (prim !== undefined) {
1404 var res = prim.call(input, hint || "default");
1405 if (typeof res !== "object") return res;
1406 throw new TypeError("@@toPrimitive must return a primitive value.");
1407 }
1408 return (hint === "string" ? String : Number)(input);
1409 }
1410`,helpers.toPropertyKey=helper("7.1.5")`
1411 import toPrimitive from "toPrimitive";
1412
1413 export default function _toPropertyKey(arg) {
1414 var key = toPrimitive(arg, "string");
1415 return typeof key === "symbol" ? key : String(key);
1416 }
1417`,helpers.initializerWarningHelper=helper("7.0.0-beta.0")`
1418 export default function _initializerWarningHelper(descriptor, context){
1419 throw new Error(
1420 'Decorating class property failed. Please ensure that ' +
1421 'proposal-class-properties is enabled and runs after the decorators transform.'
1422 );
1423 }
1424`,helpers.initializerDefineProperty=helper("7.0.0-beta.0")`
1425 export default function _initializerDefineProperty(target, property, descriptor, context){
1426 if (!descriptor) return;
1427
1428 Object.defineProperty(target, property, {
1429 enumerable: descriptor.enumerable,
1430 configurable: descriptor.configurable,
1431 writable: descriptor.writable,
1432 value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,
1433 });
1434 }
1435`,helpers.applyDecoratedDescriptor=helper("7.0.0-beta.0")`
1436 export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){
1437 var desc = {};
1438 Object.keys(descriptor).forEach(function(key){
1439 desc[key] = descriptor[key];
1440 });
1441 desc.enumerable = !!desc.enumerable;
1442 desc.configurable = !!desc.configurable;
1443 if ('value' in desc || desc.initializer){
1444 desc.writable = true;
1445 }
1446
1447 desc = decorators.slice().reverse().reduce(function(desc, decorator){
1448 return decorator(target, property, desc) || desc;
1449 }, desc);
1450
1451 if (context && desc.initializer !== void 0){
1452 desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
1453 desc.initializer = undefined;
1454 }
1455
1456 if (desc.initializer === void 0){
1457 Object.defineProperty(target, property, desc);
1458 desc = null;
1459 }
1460
1461 return desc;
1462 }
1463`,helpers.classPrivateFieldLooseKey=helper("7.0.0-beta.0")`
1464 var id = 0;
1465 export default function _classPrivateFieldKey(name) {
1466 return "__private_" + (id++) + "_" + name;
1467 }
1468`,helpers.classPrivateFieldLooseBase=helper("7.0.0-beta.0")`
1469 export default function _classPrivateFieldBase(receiver, privateKey) {
1470 if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
1471 throw new TypeError("attempted to use private field on non-instance");
1472 }
1473 return receiver;
1474 }
1475`,helpers.classPrivateFieldGet=helper("7.0.0-beta.0")`
1476 import classApplyDescriptorGet from "classApplyDescriptorGet";
1477 import classExtractFieldDescriptor from "classExtractFieldDescriptor";
1478 export default function _classPrivateFieldGet(receiver, privateMap) {
1479 var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
1480 return classApplyDescriptorGet(receiver, descriptor);
1481 }
1482`,helpers.classPrivateFieldSet=helper("7.0.0-beta.0")`
1483 import classApplyDescriptorSet from "classApplyDescriptorSet";
1484 import classExtractFieldDescriptor from "classExtractFieldDescriptor";
1485 export default function _classPrivateFieldSet(receiver, privateMap, value) {
1486 var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
1487 classApplyDescriptorSet(receiver, descriptor, value);
1488 return value;
1489 }
1490`,helpers.classPrivateFieldDestructureSet=helper("7.4.4")`
1491 import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";
1492 import classExtractFieldDescriptor from "classExtractFieldDescriptor";
1493 export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
1494 var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
1495 return classApplyDescriptorDestructureSet(receiver, descriptor);
1496 }
1497`,helpers.classExtractFieldDescriptor=helper("7.13.10")`
1498 export default function _classExtractFieldDescriptor(receiver, privateMap, action) {
1499 if (!privateMap.has(receiver)) {
1500 throw new TypeError("attempted to " + action + " private field on non-instance");
1501 }
1502 return privateMap.get(receiver);
1503 }
1504`,helpers.classStaticPrivateFieldSpecGet=helper("7.0.2")`
1505 import classApplyDescriptorGet from "classApplyDescriptorGet";
1506 import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
1507 import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
1508 export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
1509 classCheckPrivateStaticAccess(receiver, classConstructor);
1510 classCheckPrivateStaticFieldDescriptor(descriptor, "get");
1511 return classApplyDescriptorGet(receiver, descriptor);
1512 }
1513`,helpers.classStaticPrivateFieldSpecSet=helper("7.0.2")`
1514 import classApplyDescriptorSet from "classApplyDescriptorSet";
1515 import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
1516 import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
1517 export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
1518 classCheckPrivateStaticAccess(receiver, classConstructor);
1519 classCheckPrivateStaticFieldDescriptor(descriptor, "set");
1520 classApplyDescriptorSet(receiver, descriptor, value);
1521 return value;
1522 }
1523`,helpers.classStaticPrivateMethodGet=helper("7.3.2")`
1524 import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
1525 export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
1526 classCheckPrivateStaticAccess(receiver, classConstructor);
1527 return method;
1528 }
1529`,helpers.classStaticPrivateMethodSet=helper("7.3.2")`
1530 export default function _classStaticPrivateMethodSet() {
1531 throw new TypeError("attempted to set read only static private field");
1532 }
1533`,helpers.classApplyDescriptorGet=helper("7.13.10")`
1534 export default function _classApplyDescriptorGet(receiver, descriptor) {
1535 if (descriptor.get) {
1536 return descriptor.get.call(receiver);
1537 }
1538 return descriptor.value;
1539 }
1540`,helpers.classApplyDescriptorSet=helper("7.13.10")`
1541 export default function _classApplyDescriptorSet(receiver, descriptor, value) {
1542 if (descriptor.set) {
1543 descriptor.set.call(receiver, value);
1544 } else {
1545 if (!descriptor.writable) {
1546 // This should only throw in strict mode, but class bodies are
1547 // always strict and private fields can only be used inside
1548 // class bodies.
1549 throw new TypeError("attempted to set read only private field");
1550 }
1551 descriptor.value = value;
1552 }
1553 }
1554`,helpers.classApplyDescriptorDestructureSet=helper("7.13.10")`
1555 export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {
1556 if (descriptor.set) {
1557 if (!("__destrObj" in descriptor)) {
1558 descriptor.__destrObj = {
1559 set value(v) {
1560 descriptor.set.call(receiver, v)
1561 },
1562 };
1563 }
1564 return descriptor.__destrObj;
1565 } else {
1566 if (!descriptor.writable) {
1567 // This should only throw in strict mode, but class bodies are
1568 // always strict and private fields can only be used inside
1569 // class bodies.
1570 throw new TypeError("attempted to set read only private field");
1571 }
1572
1573 return descriptor;
1574 }
1575 }
1576`,helpers.classStaticPrivateFieldDestructureSet=helper("7.13.10")`
1577 import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";
1578 import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
1579 import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
1580 export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
1581 classCheckPrivateStaticAccess(receiver, classConstructor);
1582 classCheckPrivateStaticFieldDescriptor(descriptor, "set");
1583 return classApplyDescriptorDestructureSet(receiver, descriptor);
1584 }
1585`,helpers.classCheckPrivateStaticAccess=helper("7.13.10")`
1586 export default function _classCheckPrivateStaticAccess(receiver, classConstructor) {
1587 if (receiver !== classConstructor) {
1588 throw new TypeError("Private static access of wrong provenance");
1589 }
1590 }
1591`,helpers.classCheckPrivateStaticFieldDescriptor=helper("7.13.10")`
1592 export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
1593 if (descriptor === undefined) {
1594 throw new TypeError("attempted to " + action + " private static field before its declaration");
1595 }
1596 }
1597`,helpers.decorate=helper("7.1.5")`
1598 import toArray from "toArray";
1599 import toPropertyKey from "toPropertyKey";
1600
1601 // These comments are stripped by @babel/template
1602 /*::
1603 type PropertyDescriptor =
1604 | {
1605 value: any,
1606 writable: boolean,
1607 configurable: boolean,
1608 enumerable: boolean,
1609 }
1610 | {
1611 get?: () => any,
1612 set?: (v: any) => void,
1613 configurable: boolean,
1614 enumerable: boolean,
1615 };
1616
1617 type FieldDescriptor ={
1618 writable: boolean,
1619 configurable: boolean,
1620 enumerable: boolean,
1621 };
1622
1623 type Placement = "static" | "prototype" | "own";
1624 type Key = string | symbol; // PrivateName is not supported yet.
1625
1626 type ElementDescriptor =
1627 | {
1628 kind: "method",
1629 key: Key,
1630 placement: Placement,
1631 descriptor: PropertyDescriptor
1632 }
1633 | {
1634 kind: "field",
1635 key: Key,
1636 placement: Placement,
1637 descriptor: FieldDescriptor,
1638 initializer?: () => any,
1639 };
1640
1641 // This is exposed to the user code
1642 type ElementObjectInput = ElementDescriptor & {
1643 [@@toStringTag]?: "Descriptor"
1644 };
1645
1646 // This is exposed to the user code
1647 type ElementObjectOutput = ElementDescriptor & {
1648 [@@toStringTag]?: "Descriptor"
1649 extras?: ElementDescriptor[],
1650 finisher?: ClassFinisher,
1651 };
1652
1653 // This is exposed to the user code
1654 type ClassObject = {
1655 [@@toStringTag]?: "Descriptor",
1656 kind: "class",
1657 elements: ElementDescriptor[],
1658 };
1659
1660 type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput;
1661 type ClassDecorator = (descriptor: ClassObject) => ?ClassObject;
1662 type ClassFinisher = <A, B>(cl: Class<A>) => Class<B>;
1663
1664 // Only used by Babel in the transform output, not part of the spec.
1665 type ElementDefinition =
1666 | {
1667 kind: "method",
1668 value: any,
1669 key: Key,
1670 static?: boolean,
1671 decorators?: ElementDecorator[],
1672 }
1673 | {
1674 kind: "field",
1675 value: () => any,
1676 key: Key,
1677 static?: boolean,
1678 decorators?: ElementDecorator[],
1679 };
1680
1681 declare function ClassFactory<C>(initialize: (instance: C) => void): {
1682 F: Class<C>,
1683 d: ElementDefinition[]
1684 }
1685
1686 */
1687
1688 /*::
1689 // Various combinations with/without extras and with one or many finishers
1690
1691 type ElementFinisherExtras = {
1692 element: ElementDescriptor,
1693 finisher?: ClassFinisher,
1694 extras?: ElementDescriptor[],
1695 };
1696
1697 type ElementFinishersExtras = {
1698 element: ElementDescriptor,
1699 finishers: ClassFinisher[],
1700 extras: ElementDescriptor[],
1701 };
1702
1703 type ElementsFinisher = {
1704 elements: ElementDescriptor[],
1705 finisher?: ClassFinisher,
1706 };
1707
1708 type ElementsFinishers = {
1709 elements: ElementDescriptor[],
1710 finishers: ClassFinisher[],
1711 };
1712
1713 */
1714
1715 /*::
1716
1717 type Placements = {
1718 static: Key[],
1719 prototype: Key[],
1720 own: Key[],
1721 };
1722
1723 */
1724
1725 // ClassDefinitionEvaluation (Steps 26-*)
1726 export default function _decorate(
1727 decorators /*: ClassDecorator[] */,
1728 factory /*: ClassFactory */,
1729 superClass /*: ?Class<*> */,
1730 mixins /*: ?Array<Function> */,
1731 ) /*: Class<*> */ {
1732 var api = _getDecoratorsApi();
1733 if (mixins) {
1734 for (var i = 0; i < mixins.length; i++) {
1735 api = mixins[i](api);
1736 }
1737 }
1738
1739 var r = factory(function initialize(O) {
1740 api.initializeInstanceElements(O, decorated.elements);
1741 }, superClass);
1742 var decorated = api.decorateClass(
1743 _coalesceClassElements(r.d.map(_createElementDescriptor)),
1744 decorators,
1745 );
1746
1747 api.initializeClassElements(r.F, decorated.elements);
1748
1749 return api.runClassFinishers(r.F, decorated.finishers);
1750 }
1751
1752 function _getDecoratorsApi() {
1753 _getDecoratorsApi = function() {
1754 return api;
1755 };
1756
1757 var api = {
1758 elementsDefinitionOrder: [["method"], ["field"]],
1759
1760 // InitializeInstanceElements
1761 initializeInstanceElements: function(
1762 /*::<C>*/ O /*: C */,
1763 elements /*: ElementDescriptor[] */,
1764 ) {
1765 ["method", "field"].forEach(function(kind) {
1766 elements.forEach(function(element /*: ElementDescriptor */) {
1767 if (element.kind === kind && element.placement === "own") {
1768 this.defineClassElement(O, element);
1769 }
1770 }, this);
1771 }, this);
1772 },
1773
1774 // InitializeClassElements
1775 initializeClassElements: function(
1776 /*::<C>*/ F /*: Class<C> */,
1777 elements /*: ElementDescriptor[] */,
1778 ) {
1779 var proto = F.prototype;
1780
1781 ["method", "field"].forEach(function(kind) {
1782 elements.forEach(function(element /*: ElementDescriptor */) {
1783 var placement = element.placement;
1784 if (
1785 element.kind === kind &&
1786 (placement === "static" || placement === "prototype")
1787 ) {
1788 var receiver = placement === "static" ? F : proto;
1789 this.defineClassElement(receiver, element);
1790 }
1791 }, this);
1792 }, this);
1793 },
1794
1795 // DefineClassElement
1796 defineClassElement: function(
1797 /*::<C>*/ receiver /*: C | Class<C> */,
1798 element /*: ElementDescriptor */,
1799 ) {
1800 var descriptor /*: PropertyDescriptor */ = element.descriptor;
1801 if (element.kind === "field") {
1802 var initializer = element.initializer;
1803 descriptor = {
1804 enumerable: descriptor.enumerable,
1805 writable: descriptor.writable,
1806 configurable: descriptor.configurable,
1807 value: initializer === void 0 ? void 0 : initializer.call(receiver),
1808 };
1809 }
1810 Object.defineProperty(receiver, element.key, descriptor);
1811 },
1812
1813 // DecorateClass
1814 decorateClass: function(
1815 elements /*: ElementDescriptor[] */,
1816 decorators /*: ClassDecorator[] */,
1817 ) /*: ElementsFinishers */ {
1818 var newElements /*: ElementDescriptor[] */ = [];
1819 var finishers /*: ClassFinisher[] */ = [];
1820 var placements /*: Placements */ = {
1821 static: [],
1822 prototype: [],
1823 own: [],
1824 };
1825
1826 elements.forEach(function(element /*: ElementDescriptor */) {
1827 this.addElementPlacement(element, placements);
1828 }, this);
1829
1830 elements.forEach(function(element /*: ElementDescriptor */) {
1831 if (!_hasDecorators(element)) return newElements.push(element);
1832
1833 var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement(
1834 element,
1835 placements,
1836 );
1837 newElements.push(elementFinishersExtras.element);
1838 newElements.push.apply(newElements, elementFinishersExtras.extras);
1839 finishers.push.apply(finishers, elementFinishersExtras.finishers);
1840 }, this);
1841
1842 if (!decorators) {
1843 return { elements: newElements, finishers: finishers };
1844 }
1845
1846 var result /*: ElementsFinishers */ = this.decorateConstructor(
1847 newElements,
1848 decorators,
1849 );
1850 finishers.push.apply(finishers, result.finishers);
1851 result.finishers = finishers;
1852
1853 return result;
1854 },
1855
1856 // AddElementPlacement
1857 addElementPlacement: function(
1858 element /*: ElementDescriptor */,
1859 placements /*: Placements */,
1860 silent /*: boolean */,
1861 ) {
1862 var keys = placements[element.placement];
1863 if (!silent && keys.indexOf(element.key) !== -1) {
1864 throw new TypeError("Duplicated element (" + element.key + ")");
1865 }
1866 keys.push(element.key);
1867 },
1868
1869 // DecorateElement
1870 decorateElement: function(
1871 element /*: ElementDescriptor */,
1872 placements /*: Placements */,
1873 ) /*: ElementFinishersExtras */ {
1874 var extras /*: ElementDescriptor[] */ = [];
1875 var finishers /*: ClassFinisher[] */ = [];
1876
1877 for (
1878 var decorators = element.decorators, i = decorators.length - 1;
1879 i >= 0;
1880 i--
1881 ) {
1882 // (inlined) RemoveElementPlacement
1883 var keys = placements[element.placement];
1884 keys.splice(keys.indexOf(element.key), 1);
1885
1886 var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor(
1887 element,
1888 );
1889 var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras(
1890 (0, decorators[i])(elementObject) /*: ElementObjectOutput */ ||
1891 elementObject,
1892 );
1893
1894 element = elementFinisherExtras.element;
1895 this.addElementPlacement(element, placements);
1896
1897 if (elementFinisherExtras.finisher) {
1898 finishers.push(elementFinisherExtras.finisher);
1899 }
1900
1901 var newExtras /*: ElementDescriptor[] | void */ =
1902 elementFinisherExtras.extras;
1903 if (newExtras) {
1904 for (var j = 0; j < newExtras.length; j++) {
1905 this.addElementPlacement(newExtras[j], placements);
1906 }
1907 extras.push.apply(extras, newExtras);
1908 }
1909 }
1910
1911 return { element: element, finishers: finishers, extras: extras };
1912 },
1913
1914 // DecorateConstructor
1915 decorateConstructor: function(
1916 elements /*: ElementDescriptor[] */,
1917 decorators /*: ClassDecorator[] */,
1918 ) /*: ElementsFinishers */ {
1919 var finishers /*: ClassFinisher[] */ = [];
1920
1921 for (var i = decorators.length - 1; i >= 0; i--) {
1922 var obj /*: ClassObject */ = this.fromClassDescriptor(elements);
1923 var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor(
1924 (0, decorators[i])(obj) /*: ClassObject */ || obj,
1925 );
1926
1927 if (elementsAndFinisher.finisher !== undefined) {
1928 finishers.push(elementsAndFinisher.finisher);
1929 }
1930
1931 if (elementsAndFinisher.elements !== undefined) {
1932 elements = elementsAndFinisher.elements;
1933
1934 for (var j = 0; j < elements.length - 1; j++) {
1935 for (var k = j + 1; k < elements.length; k++) {
1936 if (
1937 elements[j].key === elements[k].key &&
1938 elements[j].placement === elements[k].placement
1939 ) {
1940 throw new TypeError(
1941 "Duplicated element (" + elements[j].key + ")",
1942 );
1943 }
1944 }
1945 }
1946 }
1947 }
1948
1949 return { elements: elements, finishers: finishers };
1950 },
1951
1952 // FromElementDescriptor
1953 fromElementDescriptor: function(
1954 element /*: ElementDescriptor */,
1955 ) /*: ElementObject */ {
1956 var obj /*: ElementObject */ = {
1957 kind: element.kind,
1958 key: element.key,
1959 placement: element.placement,
1960 descriptor: element.descriptor,
1961 };
1962
1963 var desc = {
1964 value: "Descriptor",
1965 configurable: true,
1966 };
1967 Object.defineProperty(obj, Symbol.toStringTag, desc);
1968
1969 if (element.kind === "field") obj.initializer = element.initializer;
1970
1971 return obj;
1972 },
1973
1974 // ToElementDescriptors
1975 toElementDescriptors: function(
1976 elementObjects /*: ElementObject[] */,
1977 ) /*: ElementDescriptor[] */ {
1978 if (elementObjects === undefined) return;
1979 return toArray(elementObjects).map(function(elementObject) {
1980 var element = this.toElementDescriptor(elementObject);
1981 this.disallowProperty(elementObject, "finisher", "An element descriptor");
1982 this.disallowProperty(elementObject, "extras", "An element descriptor");
1983 return element;
1984 }, this);
1985 },
1986
1987 // ToElementDescriptor
1988 toElementDescriptor: function(
1989 elementObject /*: ElementObject */,
1990 ) /*: ElementDescriptor */ {
1991 var kind = String(elementObject.kind);
1992 if (kind !== "method" && kind !== "field") {
1993 throw new TypeError(
1994 'An element descriptor\\'s .kind property must be either "method" or' +
1995 ' "field", but a decorator created an element descriptor with' +
1996 ' .kind "' +
1997 kind +
1998 '"',
1999 );
2000 }
2001
2002 var key = toPropertyKey(elementObject.key);
2003
2004 var placement = String(elementObject.placement);
2005 if (
2006 placement !== "static" &&
2007 placement !== "prototype" &&
2008 placement !== "own"
2009 ) {
2010 throw new TypeError(
2011 'An element descriptor\\'s .placement property must be one of "static",' +
2012 ' "prototype" or "own", but a decorator created an element descriptor' +
2013 ' with .placement "' +
2014 placement +
2015 '"',
2016 );
2017 }
2018
2019 var descriptor /*: PropertyDescriptor */ = elementObject.descriptor;
2020
2021 this.disallowProperty(elementObject, "elements", "An element descriptor");
2022
2023 var element /*: ElementDescriptor */ = {
2024 kind: kind,
2025 key: key,
2026 placement: placement,
2027 descriptor: Object.assign({}, descriptor),
2028 };
2029
2030 if (kind !== "field") {
2031 this.disallowProperty(elementObject, "initializer", "A method descriptor");
2032 } else {
2033 this.disallowProperty(
2034 descriptor,
2035 "get",
2036 "The property descriptor of a field descriptor",
2037 );
2038 this.disallowProperty(
2039 descriptor,
2040 "set",
2041 "The property descriptor of a field descriptor",
2042 );
2043 this.disallowProperty(
2044 descriptor,
2045 "value",
2046 "The property descriptor of a field descriptor",
2047 );
2048
2049 element.initializer = elementObject.initializer;
2050 }
2051
2052 return element;
2053 },
2054
2055 toElementFinisherExtras: function(
2056 elementObject /*: ElementObject */,
2057 ) /*: ElementFinisherExtras */ {
2058 var element /*: ElementDescriptor */ = this.toElementDescriptor(
2059 elementObject,
2060 );
2061 var finisher /*: ClassFinisher */ = _optionalCallableProperty(
2062 elementObject,
2063 "finisher",
2064 );
2065 var extras /*: ElementDescriptors[] */ = this.toElementDescriptors(
2066 elementObject.extras,
2067 );
2068
2069 return { element: element, finisher: finisher, extras: extras };
2070 },
2071
2072 // FromClassDescriptor
2073 fromClassDescriptor: function(
2074 elements /*: ElementDescriptor[] */,
2075 ) /*: ClassObject */ {
2076 var obj = {
2077 kind: "class",
2078 elements: elements.map(this.fromElementDescriptor, this),
2079 };
2080
2081 var desc = { value: "Descriptor", configurable: true };
2082 Object.defineProperty(obj, Symbol.toStringTag, desc);
2083
2084 return obj;
2085 },
2086
2087 // ToClassDescriptor
2088 toClassDescriptor: function(
2089 obj /*: ClassObject */,
2090 ) /*: ElementsFinisher */ {
2091 var kind = String(obj.kind);
2092 if (kind !== "class") {
2093 throw new TypeError(
2094 'A class descriptor\\'s .kind property must be "class", but a decorator' +
2095 ' created a class descriptor with .kind "' +
2096 kind +
2097 '"',
2098 );
2099 }
2100
2101 this.disallowProperty(obj, "key", "A class descriptor");
2102 this.disallowProperty(obj, "placement", "A class descriptor");
2103 this.disallowProperty(obj, "descriptor", "A class descriptor");
2104 this.disallowProperty(obj, "initializer", "A class descriptor");
2105 this.disallowProperty(obj, "extras", "A class descriptor");
2106
2107 var finisher = _optionalCallableProperty(obj, "finisher");
2108 var elements = this.toElementDescriptors(obj.elements);
2109
2110 return { elements: elements, finisher: finisher };
2111 },
2112
2113 // RunClassFinishers
2114 runClassFinishers: function(
2115 constructor /*: Class<*> */,
2116 finishers /*: ClassFinisher[] */,
2117 ) /*: Class<*> */ {
2118 for (var i = 0; i < finishers.length; i++) {
2119 var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor);
2120 if (newConstructor !== undefined) {
2121 // NOTE: This should check if IsConstructor(newConstructor) is false.
2122 if (typeof newConstructor !== "function") {
2123 throw new TypeError("Finishers must return a constructor.");
2124 }
2125 constructor = newConstructor;
2126 }
2127 }
2128 return constructor;
2129 },
2130
2131 disallowProperty: function(obj, name, objectType) {
2132 if (obj[name] !== undefined) {
2133 throw new TypeError(objectType + " can't have a ." + name + " property.");
2134 }
2135 }
2136 };
2137
2138 return api;
2139 }
2140
2141 // ClassElementEvaluation
2142 function _createElementDescriptor(
2143 def /*: ElementDefinition */,
2144 ) /*: ElementDescriptor */ {
2145 var key = toPropertyKey(def.key);
2146
2147 var descriptor /*: PropertyDescriptor */;
2148 if (def.kind === "method") {
2149 descriptor = {
2150 value: def.value,
2151 writable: true,
2152 configurable: true,
2153 enumerable: false,
2154 };
2155 } else if (def.kind === "get") {
2156 descriptor = { get: def.value, configurable: true, enumerable: false };
2157 } else if (def.kind === "set") {
2158 descriptor = { set: def.value, configurable: true, enumerable: false };
2159 } else if (def.kind === "field") {
2160 descriptor = { configurable: true, writable: true, enumerable: true };
2161 }
2162
2163 var element /*: ElementDescriptor */ = {
2164 kind: def.kind === "field" ? "field" : "method",
2165 key: key,
2166 placement: def.static
2167 ? "static"
2168 : def.kind === "field"
2169 ? "own"
2170 : "prototype",
2171 descriptor: descriptor,
2172 };
2173 if (def.decorators) element.decorators = def.decorators;
2174 if (def.kind === "field") element.initializer = def.value;
2175
2176 return element;
2177 }
2178
2179 // CoalesceGetterSetter
2180 function _coalesceGetterSetter(
2181 element /*: ElementDescriptor */,
2182 other /*: ElementDescriptor */,
2183 ) {
2184 if (element.descriptor.get !== undefined) {
2185 other.descriptor.get = element.descriptor.get;
2186 } else {
2187 other.descriptor.set = element.descriptor.set;
2188 }
2189 }
2190
2191 // CoalesceClassElements
2192 function _coalesceClassElements(
2193 elements /*: ElementDescriptor[] */,
2194 ) /*: ElementDescriptor[] */ {
2195 var newElements /*: ElementDescriptor[] */ = [];
2196
2197 var isSameElement = function(
2198 other /*: ElementDescriptor */,
2199 ) /*: boolean */ {
2200 return (
2201 other.kind === "method" &&
2202 other.key === element.key &&
2203 other.placement === element.placement
2204 );
2205 };
2206
2207 for (var i = 0; i < elements.length; i++) {
2208 var element /*: ElementDescriptor */ = elements[i];
2209 var other /*: ElementDescriptor */;
2210
2211 if (
2212 element.kind === "method" &&
2213 (other = newElements.find(isSameElement))
2214 ) {
2215 if (
2216 _isDataDescriptor(element.descriptor) ||
2217 _isDataDescriptor(other.descriptor)
2218 ) {
2219 if (_hasDecorators(element) || _hasDecorators(other)) {
2220 throw new ReferenceError(
2221 "Duplicated methods (" + element.key + ") can't be decorated.",
2222 );
2223 }
2224 other.descriptor = element.descriptor;
2225 } else {
2226 if (_hasDecorators(element)) {
2227 if (_hasDecorators(other)) {
2228 throw new ReferenceError(
2229 "Decorators can't be placed on different accessors with for " +
2230 "the same property (" +
2231 element.key +
2232 ").",
2233 );
2234 }
2235 other.decorators = element.decorators;
2236 }
2237 _coalesceGetterSetter(element, other);
2238 }
2239 } else {
2240 newElements.push(element);
2241 }
2242 }
2243
2244 return newElements;
2245 }
2246
2247 function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ {
2248 return element.decorators && element.decorators.length;
2249 }
2250
2251 function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ {
2252 return (
2253 desc !== undefined &&
2254 !(desc.value === undefined && desc.writable === undefined)
2255 );
2256 }
2257
2258 function _optionalCallableProperty /*::<T>*/(
2259 obj /*: T */,
2260 name /*: $Keys<T> */,
2261 ) /*: ?Function */ {
2262 var value = obj[name];
2263 if (value !== undefined && typeof value !== "function") {
2264 throw new TypeError("Expected '" + name + "' to be a function");
2265 }
2266 return value;
2267 }
2268
2269`,helpers.classPrivateMethodGet=helper("7.1.6")`
2270 export default function _classPrivateMethodGet(receiver, privateSet, fn) {
2271 if (!privateSet.has(receiver)) {
2272 throw new TypeError("attempted to get private field on non-instance");
2273 }
2274 return fn;
2275 }
2276`,helpers.checkPrivateRedeclaration=helper("7.14.1")`
2277 export default function _checkPrivateRedeclaration(obj, privateCollection) {
2278 if (privateCollection.has(obj)) {
2279 throw new TypeError("Cannot initialize the same private elements twice on an object");
2280 }
2281 }
2282`,helpers.classPrivateFieldInitSpec=helper("7.14.1")`
2283 import checkPrivateRedeclaration from "checkPrivateRedeclaration";
2284
2285 export default function _classPrivateFieldInitSpec(obj, privateMap, value) {
2286 checkPrivateRedeclaration(obj, privateMap);
2287 privateMap.set(obj, value);
2288 }
2289`,helpers.classPrivateMethodInitSpec=helper("7.14.1")`
2290 import checkPrivateRedeclaration from "checkPrivateRedeclaration";
2291
2292 export default function _classPrivateMethodInitSpec(obj, privateSet) {
2293 checkPrivateRedeclaration(obj, privateSet);
2294 privateSet.add(obj);
2295 }
2296`,helpers.classPrivateMethodSet=helper("7.1.6")`
2297 export default function _classPrivateMethodSet() {
2298 throw new TypeError("attempted to reassign private method");
2299 }
2300 `,helpers.identity=helper("7.17.0")`
2301 export default function _identity(x) {
2302 return x;
2303 }
2304`;},"./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.ensure=function(name,newFileClass){FileClass||(FileClass=newFileClass),loadHelper(name);},exports.get=get,exports.getDependencies=function(name){return loadHelper(name).getDependencies()},exports.list=void 0,exports.minVersion=function(name){return loadHelper(name).minVersion};var _traverse=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helpers=__webpack_require__("./node_modules/.pnpm/@babel+helpers@7.19.0/node_modules/@babel/helpers/lib/helpers.js");const{assignmentExpression,cloneNode,expressionStatement,file,identifier}=_t;function makePath(path){const parts=[];for(;path.parentPath;path=path.parentPath)parts.push(path.key),path.inList&&parts.push(path.listKey);return parts.reverse().join(".")}let FileClass;function getHelperMetadata(file){const globals=new Set,localBindingNames=new Set,dependencies=new Map;let exportName,exportPath;const exportBindingAssignments=[],importPaths=[],importBindingsReferences=[],dependencyVisitor={ImportDeclaration(child){const name=child.node.source.value;if(!_helpers.default[name])throw child.buildCodeFrameError(`Unknown helper ${name}`);if(1!==child.get("specifiers").length||!child.get("specifiers.0").isImportDefaultSpecifier())throw child.buildCodeFrameError("Helpers can only import a default value");const bindingIdentifier=child.node.specifiers[0].local;dependencies.set(bindingIdentifier,name),importPaths.push(makePath(child));},ExportDefaultDeclaration(child){const decl=child.get("declaration");if(!decl.isFunctionDeclaration()||!decl.node.id)throw decl.buildCodeFrameError("Helpers can only export named function declarations");exportName=decl.node.id.name,exportPath=makePath(child);},ExportAllDeclaration(child){throw child.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(child){throw child.buildCodeFrameError("Helpers can only export default")},Statement(child){child.isModuleDeclaration()||child.skip();}},referenceVisitor={Program(path){const bindings=path.scope.getAllBindings();Object.keys(bindings).forEach((name=>{name!==exportName&&(dependencies.has(bindings[name].identifier)||localBindingNames.add(name));}));},ReferencedIdentifier(child){const name=child.node.name,binding=child.scope.getBinding(name);binding?dependencies.has(binding.identifier)&&importBindingsReferences.push(makePath(child)):globals.add(name);},AssignmentExpression(child){const left=child.get("left");if(!(exportName in left.getBindingIdentifiers()))return;if(!left.isIdentifier())throw left.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");const binding=child.scope.getBinding(exportName);null!=binding&&binding.scope.path.isProgram()&&exportBindingAssignments.push(makePath(child));}};if((0, _traverse.default)(file.ast,dependencyVisitor,file.scope),(0, _traverse.default)(file.ast,referenceVisitor,file.scope),!exportPath)throw new Error("Helpers must have a default export.");return exportBindingAssignments.reverse(),{globals:Array.from(globals),localBindingNames:Array.from(localBindingNames),dependencies,exportBindingAssignments,exportPath,exportName,importBindingsReferences,importPaths}}const helperData=Object.create(null);function loadHelper(name){if(!helperData[name]){const helper=_helpers.default[name];if(!helper)throw Object.assign(new ReferenceError(`Unknown helper ${name}`),{code:"BABEL_HELPER_UNKNOWN",helper:name});const fn=()=>{if(!FileClass){const fakeFile={ast:file(helper.ast()),path:null};return (0, _traverse.default)(fakeFile.ast,{Program:path=>(fakeFile.path=path).stop()}),fakeFile}return new FileClass({filename:`babel-helper://${name}`},{ast:file(helper.ast()),code:"[internal Babel helper code]",inputMap:null})};let metadata=null;helperData[name]={minVersion:helper.minVersion,build(getDependency,id,localBindings){const file=fn();return metadata||(metadata=getHelperMetadata(file)),function(file,metadata,id,localBindings,getDependency){if(localBindings&&!id)throw new Error("Unexpected local bindings for module-based helpers.");if(!id)return;const{localBindingNames,dependencies,exportBindingAssignments,exportPath,exportName,importBindingsReferences,importPaths}=metadata,dependenciesRefs={};dependencies.forEach(((name,id)=>{dependenciesRefs[id.name]="function"==typeof getDependency&&getDependency(name)||id;}));const toRename={},bindings=new Set(localBindings||[]);localBindingNames.forEach((name=>{let newName=name;for(;bindings.has(newName);)newName="_"+newName;newName!==name&&(toRename[name]=newName);})),"Identifier"===id.type&&exportName!==id.name&&(toRename[exportName]=id.name);const{path}=file,exp=path.get(exportPath),imps=importPaths.map((p=>path.get(p))),impsBindingRefs=importBindingsReferences.map((p=>path.get(p))),decl=exp.get("declaration");if("Identifier"===id.type)exp.replaceWith(decl);else {if("MemberExpression"!==id.type)throw new Error("Unexpected helper format.");exportBindingAssignments.forEach((assignPath=>{const assign=path.get(assignPath);assign.replaceWith(assignmentExpression("=",id,assign.node));})),exp.replaceWith(decl),path.pushContainer("body",expressionStatement(assignmentExpression("=",id,identifier(exportName))));}Object.keys(toRename).forEach((name=>{path.scope.rename(name,toRename[name]);}));for(const path of imps)path.remove();for(const path of impsBindingRefs){const node=cloneNode(dependenciesRefs[path.node.name]);path.replaceWith(node);}}(file,metadata,id,localBindings,getDependency),{nodes:file.ast.program.body,globals:metadata.globals}},getDependencies:()=>(metadata||(metadata=getHelperMetadata(fn())),Array.from(metadata.dependencies.values()))};}return helperData[name]}function get(name,getDependency,id,localBindings){return loadHelper(name).build(getDependency,id,localBindings)}const list=Object.keys(_helpers.default).map((name=>name.replace(/^_/,"")));exports.list=list;var _default=get;exports.default=_default;},"./node_modules/.pnpm/@babel+parser@7.18.13/node_modules/@babel/parser/lib/index.js":(__unused_webpack_module,exports)=>{function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return {};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}Object.defineProperty(exports,"__esModule",{value:!0});class Position{constructor(line,col,index){this.line=void 0,this.column=void 0,this.index=void 0,this.line=line,this.column=col,this.index=index;}}class SourceLocation{constructor(start,end){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=start,this.end=end;}}function createPositionWithColumnOffset(position,columnOffset){const{line,column,index}=position;return new Position(line,column+columnOffset,index+columnOffset)}var ParseErrorCode_SyntaxError="BABEL_PARSER_SYNTAX_ERROR",ParseErrorCode_SourceTypeModuleError="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";const reflect=(keys,last=keys.length-1)=>({get(){return keys.reduce(((object,key)=>object[key]),this)},set(value){keys.reduce(((item,key,i)=>i===last?item[key]=value:item[key]),this);}});var ModuleErrors={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:ParseErrorCode_SourceTypeModuleError},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:ParseErrorCode_SourceTypeModuleError}};const NodeDescriptions={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},toNodeDescription=({type,prefix})=>"UpdateExpression"===type?NodeDescriptions.UpdateExpression[String(prefix)]:NodeDescriptions[type];var StandardErrors={AccessorIsGenerator:({kind})=>`A ${kind}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind})=>`Missing initializer in ${kind} declaration.`,DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName})=>`\`${exportName}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName,exportName})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${localName}' as '${exportName}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type})=>`'${"ForInStatement"===type?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type})=>`Unsyntactic ${"BreakStatement"===type?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${importName}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount})=>`\`import()\` requires exactly ${1===maxArgumentCount?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix})=>`Expected number in radix ${radix}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord})=>`Escape sequence in keyword ${reservedWord}.`,InvalidIdentifier:({identifierName})=>`Invalid identifier ${identifierName}.`,InvalidLhs:({ancestor})=>`Invalid left-hand side in ${toNodeDescription(ancestor)}.`,InvalidLhsBinding:({ancestor})=>`Binding invalid left-hand side in ${toNodeDescription(ancestor)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected})=>`Unexpected character '${unexpected}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName})=>`Private name #${identifierName} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName})=>`Label '${labelName}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin})=>`This experimental syntax requires enabling the parser plugin: ${missingPlugin.map((name=>JSON.stringify(name))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${missingPlugin.map((name=>JSON.stringify(name))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key})=>`Duplicate key "${key}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode})=>`An export name cannot include a lone surrogate, found '\\u${surrogateCharCode.toString(16)}'.`,ModuleExportUndefined:({localName})=>`Export '${localName}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName})=>`Private names are only allowed in property accesses (\`obj.#${identifierName}\`) or in \`in\` expressions (\`#${identifierName} in obj\`).`,PrivateNameRedeclaration:({identifierName})=>`Duplicate private name #${identifierName}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword})=>`Unexpected keyword '${keyword}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord})=>`Unexpected reserved word '${reservedWord}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected,unexpected})=>`Unexpected token${unexpected?` '${unexpected}'.`:""}${expected?`, expected "${expected}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target,onlyValidPropertyName})=>`The only valid meta property for ${target} is ${target}.${onlyValidPropertyName}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",VarRedeclaration:({identifierName})=>`Identifier '${identifierName}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const UnparenthesizedPipeBodyDescriptions=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var PipelineOperatorErrors={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token})=>`Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const _excluded$1=["toMessage"],_excluded2$1=["message"];function toParseErrorConstructor(_ref){let{toMessage}=_ref,properties=_objectWithoutPropertiesLoose(_ref,_excluded$1);return function constructor({loc,details}){return ((constructor,properties,descriptors)=>Object.keys(descriptors).map((key=>[key,descriptors[key]])).filter((([,descriptor])=>!!descriptor)).map((([key,descriptor])=>[key,"function"==typeof descriptor?{value:descriptor,enumerable:!1}:"string"==typeof descriptor.reflect?Object.assign({},descriptor,reflect(descriptor.reflect.split("."))):descriptor])).reduce(((instance,[key,descriptor])=>Object.defineProperty(instance,key,Object.assign({configurable:!0},descriptor))),Object.assign(new constructor,properties)))(SyntaxError,Object.assign({},properties,{loc}),{clone(overrides={}){const loc=overrides.loc||{};return constructor({loc:new Position("line"in loc?loc.line:this.loc.line,"column"in loc?loc.column:this.loc.column,"index"in loc?loc.index:this.loc.index),details:Object.assign({},this.details,overrides.details)})},details:{value:details,enumerable:!1},message:{get(){return `${toMessage(this.details)} (${this.loc.line}:${this.loc.column})`},set(value){Object.defineProperty(this,"message",{value});}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in details&&{reflect:"details.missingPlugin",enumerable:!0}})}}function ParseErrorEnum(argument,syntaxPlugin){if(Array.isArray(argument))return parseErrorTemplates=>ParseErrorEnum(parseErrorTemplates,argument[0]);const ParseErrorConstructors={};for(const reasonCode of Object.keys(argument)){const template=argument[reasonCode],_ref2="string"==typeof template?{message:()=>template}:"function"==typeof template?{message:template}:template,{message}=_ref2,rest=_objectWithoutPropertiesLoose(_ref2,_excluded2$1),toMessage="string"==typeof message?()=>message:message;ParseErrorConstructors[reasonCode]=toParseErrorConstructor(Object.assign({code:ParseErrorCode_SyntaxError,reasonCode,toMessage},syntaxPlugin?{syntaxPlugin}:{},rest));}return ParseErrorConstructors}const Errors=Object.assign({},ParseErrorEnum(ModuleErrors),ParseErrorEnum(StandardErrors),ParseErrorEnum({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName})=>`Assigning to '${referenceName}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName})=>`Binding '${bindingName}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors)),{defineProperty}=Object,toUnenumerable=(object,key)=>defineProperty(object,key,{enumerable:!1,value:object[key]});function toESTreeLocation(node){return node.loc.start&&toUnenumerable(node.loc.start,"index"),node.loc.end&&toUnenumerable(node.loc.end,"index"),node}class TokContext{constructor(token,preserveSpace){this.token=void 0,this.preserveSpace=void 0,this.token=token,this.preserveSpace=!!preserveSpace;}}const types={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",!0)};types.template=new TokContext("`",!0);class ExportedTokenType{constructor(label,conf={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.rightAssociative=!!conf.rightAssociative,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=null!=conf.binop?conf.binop:null,this.updateContext=null;}}const keywords$1=new Map;function createKeyword(name,options={}){options.keyword=name;const token=createToken(name,options);return keywords$1.set(name,token),token}function createBinop(name,binop){return createToken(name,{beforeExpr:true,binop})}let tokenTypeCounter=-1;const tokenTypes=[],tokenLabels=[],tokenBinops=[],tokenBeforeExprs=[],tokenStartsExprs=[],tokenPrefixes=[];function createToken(name,options={}){var _options$binop,_options$beforeExpr,_options$startsExpr,_options$prefix;return ++tokenTypeCounter,tokenLabels.push(name),tokenBinops.push(null!=(_options$binop=options.binop)?_options$binop:-1),tokenBeforeExprs.push(null!=(_options$beforeExpr=options.beforeExpr)&&_options$beforeExpr),tokenStartsExprs.push(null!=(_options$startsExpr=options.startsExpr)&&_options$startsExpr),tokenPrefixes.push(null!=(_options$prefix=options.prefix)&&_options$prefix),tokenTypes.push(new ExportedTokenType(name,options)),tokenTypeCounter}function createKeywordLike(name,options={}){var _options$binop2,_options$beforeExpr2,_options$startsExpr2,_options$prefix2;return ++tokenTypeCounter,keywords$1.set(name,tokenTypeCounter),tokenLabels.push(name),tokenBinops.push(null!=(_options$binop2=options.binop)?_options$binop2:-1),tokenBeforeExprs.push(null!=(_options$beforeExpr2=options.beforeExpr)&&_options$beforeExpr2),tokenStartsExprs.push(null!=(_options$startsExpr2=options.startsExpr)&&_options$startsExpr2),tokenPrefixes.push(null!=(_options$prefix2=options.prefix)&&_options$prefix2),tokenTypes.push(new ExportedTokenType("name",options)),tokenTypeCounter}const tt={bracketL:createToken("[",{beforeExpr:true,startsExpr:true}),bracketHashL:createToken("#[",{beforeExpr:true,startsExpr:true}),bracketBarL:createToken("[|",{beforeExpr:true,startsExpr:true}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:true,startsExpr:true}),braceBarL:createToken("{|",{beforeExpr:true,startsExpr:true}),braceHashL:createToken("#{",{beforeExpr:true,startsExpr:true}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:true,startsExpr:true}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:true}),semi:createToken(";",{beforeExpr:true}),colon:createToken(":",{beforeExpr:true}),doubleColon:createToken("::",{beforeExpr:true}),dot:createToken("."),question:createToken("?",{beforeExpr:true}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:true}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:true}),backQuote:createToken("`",{startsExpr:true}),dollarBraceL:createToken("${",{beforeExpr:true,startsExpr:true}),templateTail:createToken("...`",{startsExpr:true}),templateNonTail:createToken("...${",{beforeExpr:true,startsExpr:true}),at:createToken("@"),hash:createToken("#",{startsExpr:true}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:true,isAssign:true}),assign:createToken("_=",{beforeExpr:true,isAssign:true}),slashAssign:createToken("_=",{beforeExpr:true,isAssign:true}),xorAssign:createToken("_=",{beforeExpr:true,isAssign:true}),moduloAssign:createToken("_=",{beforeExpr:true,isAssign:true}),incDec:createToken("++/--",{prefix:true,postfix:!0,startsExpr:true}),bang:createToken("!",{beforeExpr:true,prefix:true,startsExpr:true}),tilde:createToken("~",{beforeExpr:true,prefix:true,startsExpr:true}),doubleCaret:createToken("^^",{startsExpr:true}),doubleAt:createToken("@@",{startsExpr:true}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:createToken("%",{binop:10,startsExpr:true}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:true,binop:11,rightAssociative:!0}),_in:createKeyword("in",{beforeExpr:true,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:true,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:true}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:true}),_else:createKeyword("else",{beforeExpr:true}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:true}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:true}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:true,prefix:true,startsExpr:true}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:true,startsExpr:true}),_this:createKeyword("this",{startsExpr:true}),_super:createKeyword("super",{startsExpr:true}),_class:createKeyword("class",{startsExpr:true}),_extends:createKeyword("extends",{beforeExpr:true}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:true}),_null:createKeyword("null",{startsExpr:true}),_true:createKeyword("true",{startsExpr:true}),_false:createKeyword("false",{startsExpr:true}),_typeof:createKeyword("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:createKeyword("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:createKeyword("delete",{beforeExpr:true,prefix:true,startsExpr:true}),_do:createKeyword("do",{isLoop:true,beforeExpr:true}),_for:createKeyword("for",{isLoop:true}),_while:createKeyword("while",{isLoop:true}),_as:createKeywordLike("as",{startsExpr:true}),_assert:createKeywordLike("assert",{startsExpr:true}),_async:createKeywordLike("async",{startsExpr:true}),_await:createKeywordLike("await",{startsExpr:true}),_from:createKeywordLike("from",{startsExpr:true}),_get:createKeywordLike("get",{startsExpr:true}),_let:createKeywordLike("let",{startsExpr:true}),_meta:createKeywordLike("meta",{startsExpr:true}),_of:createKeywordLike("of",{startsExpr:true}),_sent:createKeywordLike("sent",{startsExpr:true}),_set:createKeywordLike("set",{startsExpr:true}),_static:createKeywordLike("static",{startsExpr:true}),_yield:createKeywordLike("yield",{startsExpr:true}),_asserts:createKeywordLike("asserts",{startsExpr:true}),_checks:createKeywordLike("checks",{startsExpr:true}),_exports:createKeywordLike("exports",{startsExpr:true}),_global:createKeywordLike("global",{startsExpr:true}),_implements:createKeywordLike("implements",{startsExpr:true}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:true}),_infer:createKeywordLike("infer",{startsExpr:true}),_is:createKeywordLike("is",{startsExpr:true}),_mixins:createKeywordLike("mixins",{startsExpr:true}),_proto:createKeywordLike("proto",{startsExpr:true}),_require:createKeywordLike("require",{startsExpr:true}),_keyof:createKeywordLike("keyof",{startsExpr:true}),_readonly:createKeywordLike("readonly",{startsExpr:true}),_unique:createKeywordLike("unique",{startsExpr:true}),_abstract:createKeywordLike("abstract",{startsExpr:true}),_declare:createKeywordLike("declare",{startsExpr:true}),_enum:createKeywordLike("enum",{startsExpr:true}),_module:createKeywordLike("module",{startsExpr:true}),_namespace:createKeywordLike("namespace",{startsExpr:true}),_interface:createKeywordLike("interface",{startsExpr:true}),_type:createKeywordLike("type",{startsExpr:true}),_opaque:createKeywordLike("opaque",{startsExpr:true}),name:createToken("name",{startsExpr:true}),string:createToken("string",{startsExpr:true}),num:createToken("num",{startsExpr:true}),bigint:createToken("bigint",{startsExpr:true}),decimal:createToken("decimal",{startsExpr:true}),regexp:createToken("regexp",{startsExpr:true}),privateName:createToken("#name",{startsExpr:true}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:!0}),jsxTagStart:createToken("jsxTagStart",{startsExpr:!0}),jsxTagEnd:createToken("jsxTagEnd"),placeholder:createToken("%%",{startsExpr:!0})};function tokenIsIdentifier(token){return token>=93&&token<=128}function tokenIsKeywordOrIdentifier(token){return token>=58&&token<=128}function tokenIsLiteralPropertyName(token){return token>=58&&token<=132}function tokenCanStartExpression(token){return tokenStartsExprs[token]}function tokenIsFlowInterfaceOrTypeOrOpaque(token){return token>=125&&token<=127}function tokenIsKeyword(token){return token>=58&&token<=92}function tokenLabelName(token){return tokenLabels[token]}function tokenOperatorPrecedence(token){return tokenBinops[token]}function tokenIsTemplate(token){return token>=24&&token<=25}function getExportedToken(token){return tokenTypes[token]}tokenTypes[8].updateContext=context=>{context.pop();},tokenTypes[5].updateContext=tokenTypes[7].updateContext=tokenTypes[23].updateContext=context=>{context.push(types.brace);},tokenTypes[22].updateContext=context=>{context[context.length-1]===types.template?context.pop():context.push(types.template);},tokenTypes[138].updateContext=context=>{context.push(types.j_expr,types.j_oTag);};let nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;const astralIdentifierStartCodes=[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,85,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,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,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[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,154,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,161,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,19306,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){let pos=65536;for(let i=0,length=set.length;i<length;i+=2){if(pos+=set[i],pos>code)return !1;if(pos+=set[i+1],pos>=code)return !0}return !1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}function isStrictBindReservedWord(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)}const reservedWordLikeSet=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function setTrailingComments(node,comments){void 0===node.trailingComments?node.trailingComments=comments:node.trailingComments.unshift(...comments);}function setInnerComments(node,comments){void 0===node.innerComments?node.innerComments=comments:node.innerComments.unshift(...comments);}function adjustInnerComments(node,elements,commentWS){let lastElement=null,i=elements.length;for(;null===lastElement&&i>0;)lastElement=elements[--i];null===lastElement||lastElement.start>commentWS.start?setInnerComments(node,commentWS.comments):setTrailingComments(lastElement,commentWS.comments);}const lineBreak=/\r\n?|[\n\u2028\u2029]/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code){switch(code){case 10:case 13:case 8232:case 8233:return !0;default:return !1}}const skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,skipWhiteSpaceToLineBreak=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function isWhitespace(code){switch(code){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return !0;default:return !1}}class State{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.commentStack=[],this.pos=0,this.type=135,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[types.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0;}init({strictMode,sourceType,startLine,startColumn}){this.strict=!1!==strictMode&&(!0===strictMode||"module"===sourceType),this.curLine=startLine,this.lineStart=-startColumn,this.startLoc=this.endLoc=new Position(startLine,startColumn,0);}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos)}clone(skipArrays){const state=new State,keys=Object.keys(this);for(let i=0,length=keys.length;i<length;i++){const key=keys[i];let val=this[key];!skipArrays&&Array.isArray(val)&&(val=val.slice()),state[key]=val;}return state}}var _isDigit=function(code){return code>=48&&code<=57};const forbiddenNumericSeparatorSiblings={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},isAllowedNumericSeparatorSibling={bin:ch=>48===ch||49===ch,oct:ch=>ch>=48&&ch<=55,dec:ch=>ch>=48&&ch<=57,hex:ch=>ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102};function readStringContents(type,input,pos,lineStart,curLine,errors){const initialPos=pos,initialLineStart=lineStart,initialCurLine=curLine;let out="",containsInvalid=!1,chunkStart=pos;const{length}=input;for(;;){if(pos>=length){errors.unterminated(initialPos,initialLineStart,initialCurLine),out+=input.slice(chunkStart,pos);break}const ch=input.charCodeAt(pos);if(isStringEnd(type,ch,input,pos)){out+=input.slice(chunkStart,pos);break}if(92===ch){let escaped;out+=input.slice(chunkStart,pos),({ch:escaped,pos,lineStart,curLine}=readEscapedChar(input,pos,lineStart,curLine,"template"===type,errors)),null===escaped?containsInvalid=!0:out+=escaped,chunkStart=pos;}else 8232===ch||8233===ch?(++curLine,lineStart=++pos):10===ch||13===ch?"template"===type?(out+=input.slice(chunkStart,pos)+"\n",++pos,13===ch&&10===input.charCodeAt(pos)&&++pos,++curLine,chunkStart=lineStart=pos):errors.unterminated(initialPos,initialLineStart,initialCurLine):++pos;}return {pos,str:out,containsInvalid,lineStart,curLine}}function isStringEnd(type,ch,input,pos){return "template"===type?96===ch||36===ch&&123===input.charCodeAt(pos+1):ch===("double"===type?34:39)}function readEscapedChar(input,pos,lineStart,curLine,inTemplate,errors){const throwOnInvalid=!inTemplate;pos++;const res=ch=>({pos,ch,lineStart,curLine}),ch=input.charCodeAt(pos++);switch(ch){case 110:return res("\n");case 114:return res("\r");case 120:{let code;return ({code,pos}=readHexChar(input,pos,lineStart,curLine,2,!1,throwOnInvalid,errors)),res(null===code?null:String.fromCharCode(code))}case 117:{let code;return ({code,pos}=readCodePoint(input,pos,lineStart,curLine,throwOnInvalid,errors)),res(null===code?null:String.fromCodePoint(code))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===input.charCodeAt(pos)&&++pos;case 10:lineStart=pos,++curLine;case 8232:case 8233:return res("");case 56:case 57:if(inTemplate)return res(null);errors.strictNumericEscape(pos-1,lineStart,curLine);default:if(ch>=48&&ch<=55){const startPos=pos-1;let octalStr=input.slice(startPos,pos+2).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),pos+=octalStr.length-1;const next=input.charCodeAt(pos);if("0"!==octalStr||56===next||57===next){if(inTemplate)return res(null);errors.strictNumericEscape(startPos,lineStart,curLine);}return res(String.fromCharCode(octal))}return res(String.fromCharCode(ch))}}function readHexChar(input,pos,lineStart,curLine,len,forceLen,throwOnInvalid,errors){const initialPos=pos;let n;return ({n,pos}=readInt(input,pos,lineStart,curLine,16,len,forceLen,!1,errors)),null===n&&(throwOnInvalid?errors.invalidEscapeSequence(initialPos,lineStart,curLine):pos=initialPos-1),{code:n,pos}}function readInt(input,pos,lineStart,curLine,radix,len,forceLen,allowNumSeparator,errors){const start=pos,forbiddenSiblings=16===radix?forbiddenNumericSeparatorSiblings.hex:forbiddenNumericSeparatorSiblings.decBinOct,isAllowedSibling=16===radix?isAllowedNumericSeparatorSibling.hex:10===radix?isAllowedNumericSeparatorSibling.dec:8===radix?isAllowedNumericSeparatorSibling.oct:isAllowedNumericSeparatorSibling.bin;let invalid=!1,total=0;for(let i=0,e=null==len?1/0:len;i<e;++i){const code=input.charCodeAt(pos);let val;if(95!==code||"bail"===allowNumSeparator){if(val=code>=97?code-97+10:code>=65?code-65+10:_isDigit(code)?code-48:1/0,val>=radix)if(val<=9&&errors.invalidDigit(pos,lineStart,curLine,radix))val=0;else {if(!forceLen)break;val=0,invalid=!0;}++pos,total=total*radix+val;}else {const prev=input.charCodeAt(pos-1),next=input.charCodeAt(pos+1);allowNumSeparator?(Number.isNaN(next)||!isAllowedSibling(next)||forbiddenSiblings.has(prev)||forbiddenSiblings.has(next))&&errors.unexpectedNumericSeparator(pos,lineStart,curLine):errors.numericSeparatorInEscapeSequence(pos,lineStart,curLine),++pos;}}return pos===start||null!=len&&pos-start!==len||invalid?{n:null,pos}:{n:total,pos}}function readCodePoint(input,pos,lineStart,curLine,throwOnInvalid,errors){let code;if(123===input.charCodeAt(pos)){if(++pos,({code,pos}=readHexChar(input,pos,lineStart,curLine,input.indexOf("}",pos)-pos,!0,throwOnInvalid,errors)),++pos,null!==code&&code>1114111){if(!throwOnInvalid)return {code:null,pos};errors.invalidCodePoint(pos,lineStart,curLine);}}else ({code,pos}=readHexChar(input,pos,lineStart,curLine,4,!1,throwOnInvalid,errors));return {code,pos}}const _excluded=["at"],_excluded2=["at"];function buildPosition(pos,lineStart,curLine){return new Position(curLine,pos-lineStart,pos)}const VALID_REGEX_FLAGS=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(state){this.type=state.type,this.value=state.value,this.start=state.start,this.end=state.end,this.loc=new SourceLocation(state.startLoc,state.endLoc);}}class Scope{constructor(flags){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=flags;}}class ScopeHandler{constructor(parser,inModule){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=parser,this.inModule=inModule;}get inFunction(){return (2&this.currentVarScopeFlags())>0}get allowSuper(){return (16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return (32&this.currentThisScopeFlags())>0}get inClass(){return (64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const flags=this.currentThisScopeFlags();return (64&flags)>0&&0==(2&flags)}get inStaticBlock(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(128&flags)return !0;if(323&flags)return !1}}get inNonArrowFunction(){return (2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(flags){return new Scope(flags)}enter(flags){this.scopeStack.push(this.createScope(flags));}exit(){this.scopeStack.pop();}treatFunctionsAsVarInScope(scope){return !!(130&scope.flags||!this.parser.inModule&&1&scope.flags)}declareName(name,bindingType,loc){let scope=this.currentScope();if(8&bindingType||16&bindingType)this.checkRedeclarationInScope(scope,name,bindingType,loc),16&bindingType?scope.functions.add(name):scope.lexical.add(name),8&bindingType&&this.maybeExportDefined(scope,name);else if(4&bindingType)for(let i=this.scopeStack.length-1;i>=0&&(scope=this.scopeStack[i],this.checkRedeclarationInScope(scope,name,bindingType,loc),scope.var.add(name),this.maybeExportDefined(scope,name),!(259&scope.flags));--i);this.parser.inModule&&1&scope.flags&&this.undefinedExports.delete(name);}maybeExportDefined(scope,name){this.parser.inModule&&1&scope.flags&&this.undefinedExports.delete(name);}checkRedeclarationInScope(scope,name,bindingType,loc){this.isRedeclaredInScope(scope,name,bindingType)&&this.parser.raise(Errors.VarRedeclaration,{at:loc,identifierName:name});}isRedeclaredInScope(scope,name,bindingType){return !!(1&bindingType)&&(8&bindingType?scope.lexical.has(name)||scope.functions.has(name)||scope.var.has(name):16&bindingType?scope.lexical.has(name)||!this.treatFunctionsAsVarInScope(scope)&&scope.var.has(name):scope.lexical.has(name)&&!(8&scope.flags&&scope.lexical.values().next().value===name)||!this.treatFunctionsAsVarInScope(scope)&&scope.functions.has(name))}checkLocalExport(id){const{name}=id,topLevelScope=this.scopeStack[0];topLevelScope.lexical.has(name)||topLevelScope.var.has(name)||topLevelScope.functions.has(name)||this.undefinedExports.set(name,id.loc.start);}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(259&flags)return flags}}currentThisScopeFlags(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(323&flags&&!(4&flags))return flags}}}class FlowScope extends Scope{constructor(...args){super(...args),this.declareFunctions=new Set;}}class FlowScopeHandler extends ScopeHandler{createScope(flags){return new FlowScope(flags)}declareName(name,bindingType,loc){const scope=this.currentScope();if(2048&bindingType)return this.checkRedeclarationInScope(scope,name,bindingType,loc),this.maybeExportDefined(scope,name),void scope.declareFunctions.add(name);super.declareName(name,bindingType,loc);}isRedeclaredInScope(scope,name,bindingType){return !!super.isRedeclaredInScope(scope,name,bindingType)||!!(2048&bindingType)&&(!scope.declareFunctions.has(name)&&(scope.lexical.has(name)||scope.functions.has(name)))}checkLocalExport(id){this.scopeStack[0].declareFunctions.has(id.name)||super.checkLocalExport(id);}}class ClassScope{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map;}}class ClassScopeHandler{constructor(parser){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=parser;}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope);}exit(){const oldClassScope=this.stack.pop(),current=this.current();for(const[name,loc]of Array.from(oldClassScope.undefinedPrivateNames))current?current.undefinedPrivateNames.has(name)||current.undefinedPrivateNames.set(name,loc):this.parser.raise(Errors.InvalidPrivateFieldResolution,{at:loc,identifierName:name});}declarePrivateName(name,elementType,loc){const{privateNames,loneAccessors,undefinedPrivateNames}=this.current();let redefined=privateNames.has(name);if(3&elementType){const accessor=redefined&&loneAccessors.get(name);if(accessor){const oldStatic=4&accessor,newStatic=4&elementType;redefined=(3&accessor)===(3&elementType)||oldStatic!==newStatic,redefined||loneAccessors.delete(name);}else redefined||loneAccessors.set(name,elementType);}redefined&&this.parser.raise(Errors.PrivateNameRedeclaration,{at:loc,identifierName:name}),privateNames.add(name),undefinedPrivateNames.delete(name);}usePrivateName(name,loc){let classScope;for(classScope of this.stack)if(classScope.privateNames.has(name))return;classScope?classScope.undefinedPrivateNames.set(name,loc):this.parser.raise(Errors.InvalidPrivateFieldResolution,{at:loc,identifierName:name});}}class ExpressionScope{constructor(type=0){this.type=void 0,this.type=type;}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ArrowHeadParsingScope extends ExpressionScope{constructor(type){super(type),this.declarationErrors=new Map;}recordDeclarationError(ParsingErrorClass,{at}){const index=at.index;this.declarationErrors.set(index,[ParsingErrorClass,at]);}clearDeclarationError(index){this.declarationErrors.delete(index);}iterateErrors(iterator){this.declarationErrors.forEach(iterator);}}class ExpressionScopeHandler{constructor(parser){this.parser=void 0,this.stack=[new ExpressionScope],this.parser=parser;}enter(scope){this.stack.push(scope);}exit(){this.stack.pop();}recordParameterInitializerError(toParseError,{at:node}){const origin={at:node.loc.start},{stack}=this;let i=stack.length-1,scope=stack[i];for(;!scope.isCertainlyParameterDeclaration();){if(!scope.canBeArrowParameterDeclaration())return;scope.recordDeclarationError(toParseError,origin),scope=stack[--i];}this.parser.raise(toParseError,origin);}recordArrowParemeterBindingError(error,{at:node}){const{stack}=this,scope=stack[stack.length-1],origin={at:node.loc.start};if(scope.isCertainlyParameterDeclaration())this.parser.raise(error,origin);else {if(!scope.canBeArrowParameterDeclaration())return;scope.recordDeclarationError(error,origin);}}recordAsyncArrowParametersError({at}){const{stack}=this;let i=stack.length-1,scope=stack[i];for(;scope.canBeArrowParameterDeclaration();)2===scope.type&&scope.recordDeclarationError(Errors.AwaitBindingIdentifier,{at}),scope=stack[--i];}validateAsPattern(){const{stack}=this,currentScope=stack[stack.length-1];currentScope.canBeArrowParameterDeclaration()&&currentScope.iterateErrors((([toParseError,loc])=>{this.parser.raise(toParseError,{at:loc});let i=stack.length-2,scope=stack[i];for(;scope.canBeArrowParameterDeclaration();)scope.clearDeclarationError(loc.index),scope=stack[--i];}));}}function newExpressionScope(){return new ExpressionScope}class ProductionParameterHandler{constructor(){this.stacks=[];}enter(flags){this.stacks.push(flags);}exit(){this.stacks.pop();}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return (2&this.currentFlags())>0}get hasYield(){return (1&this.currentFlags())>0}get hasReturn(){return (4&this.currentFlags())>0}get hasIn(){return (8&this.currentFlags())>0}}function functionFlags(isAsync,isGenerator){return (isAsync?2:0)|(isGenerator?1:0)}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null;}}class Node{constructor(parser,pos,loc){this.type="",this.start=pos,this.end=0,this.loc=new SourceLocation(loc),null!=parser&&parser.options.ranges&&(this.range=[pos,0]),null!=parser&&parser.filename&&(this.loc.filename=parser.filename);}}const NodePrototype=Node.prototype;function cloneIdentifier(node){const{type,start,end,loc,range,extra,name}=node,cloned=Object.create(NodePrototype);return cloned.type=type,cloned.start=start,cloned.end=end,cloned.loc=loc,cloned.range=range,cloned.extra=extra,cloned.name=name,"Placeholder"===type&&(cloned.expectedNode=node.expectedNode),cloned}function cloneStringLiteral(node){const{type,start,end,loc,range,extra}=node;if("Placeholder"===type)return function(node){return cloneIdentifier(node)}(node);const cloned=Object.create(NodePrototype);return cloned.type=type,cloned.start=start,cloned.end=end,cloned.loc=loc,cloned.range=range,void 0!==node.raw?cloned.raw=node.raw:cloned.extra=extra,cloned.value=node.value,cloned}NodePrototype.__clone=function(){const newNode=new Node,keys=Object.keys(this);for(let i=0,length=keys.length;i<length;i++){const key=keys[i];"leadingComments"!==key&&"trailingComments"!==key&&"innerComments"!==key&&(newNode[key]=this[key]);}return newNode};const reservedTypes=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),FlowErrors=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType})=>`Cannot overwrite reserved type ${reservedType}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName,enumName})=>`Boolean enum members need to be initialized. Use either \`${memberName} = true,\` or \`${memberName} = false,\` in enum \`${enumName}\`.`,EnumDuplicateMemberName:({memberName,enumName})=>`Enum member names need to be unique, but the name \`${memberName}\` has already been used before in enum \`${enumName}\`.`,EnumInconsistentMemberValues:({enumName})=>`Enum \`${enumName}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType,enumName})=>`Enum type \`${invalidEnumType}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName,memberName,explicitType})=>`Enum \`${enumName}\` has type \`${explicitType}\`, so the initializer of \`${memberName}\` needs to be a ${explicitType} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName,memberName})=>`Symbol enum members cannot be initialized. Use \`${memberName},\` in enum \`${enumName}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName,memberName})=>`The enum member initializer for \`${memberName}\` needs to be a literal (either a boolean, number, or string) in enum \`${enumName}\`.`,EnumInvalidMemberName:({enumName,memberName,suggestion})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${memberName}\`, consider using \`${suggestion}\`, in enum \`${enumName}\`.`,EnumNumberMemberNotInitialized:({enumName,memberName})=>`Number enum members need to be initialized, e.g. \`${memberName} = 1\` in enum \`${enumName}\`.`,EnumStringMemberInconsistentlyInitailized:({enumName})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${enumName}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType})=>`Unexpected reserved type ${reservedType}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind,suggestion})=>`\`declare export ${unsupportedExportKind}\` is not supported. Use \`${suggestion}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hasTypeImportKind(node){return "type"===node.importKind||"typeof"===node.importKind}function isMaybeDefaultImport(type){return tokenIsKeywordOrIdentifier(type)&&97!==type}const exportSuggestions={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const FLOW_PRAGMA_REGEX=/\*?\s*@((?:no)?flow)\b/;const entities={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},JsxErrors=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName})=>`Expected corresponding JSX closing tag for <${openingTagName}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected,HTMLEntity})=>`Unexpected token \`${unexpected}\`. Did you mean \`${HTMLEntity}\` or \`{'${unexpected}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(object){return !!object&&("JSXOpeningFragment"===object.type||"JSXClosingFragment"===object.type)}function getQualifiedJSXName(object){if("JSXIdentifier"===object.type)return object.name;if("JSXNamespacedName"===object.type)return object.namespace.name+":"+object.name.name;if("JSXMemberExpression"===object.type)return getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property);throw new Error("Node had unexpected type: "+object.type)}class TypeScriptScope extends Scope{constructor(...args){super(...args),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set;}}class TypeScriptScopeHandler extends ScopeHandler{createScope(flags){return new TypeScriptScope(flags)}declareName(name,bindingType,loc){const scope=this.currentScope();if(1024&bindingType)return this.maybeExportDefined(scope,name),void scope.exportOnlyBindings.add(name);super.declareName(name,bindingType,loc),2&bindingType&&(1&bindingType||(this.checkRedeclarationInScope(scope,name,bindingType,loc),this.maybeExportDefined(scope,name)),scope.types.add(name)),256&bindingType&&scope.enums.add(name),512&bindingType&&scope.constEnums.add(name),128&bindingType&&scope.classes.add(name);}isRedeclaredInScope(scope,name,bindingType){if(scope.enums.has(name)){if(256&bindingType){return !!(512&bindingType)!==scope.constEnums.has(name)}return !0}return 128&bindingType&&scope.classes.has(name)?!!scope.lexical.has(name)&&!!(1&bindingType):!!(2&bindingType&&scope.types.has(name))||super.isRedeclaredInScope(scope,name,bindingType)}checkLocalExport(id){const topLevelScope=this.scopeStack[0],{name}=id;topLevelScope.types.has(name)||topLevelScope.exportOnlyBindings.has(name)||super.checkLocalExport(id);}}function assert(x){if(!x)throw new Error("Assert fail")}const TSErrors=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName})=>`Method '${methodName}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName})=>`Property '${propertyName}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name})=>`Cannot find name '${name}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind})=>`'declare' is not allowed in ${kind}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier})=>`Duplicate modifier: '${modifier}'.`,EmptyHeritageClauseType:({token})=>`'${token}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers})=>`'${modifiers[0]}' modifier cannot be used with '${modifiers[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier})=>`Index signatures cannot have an accessibility modifier ('${modifier}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier})=>`'${modifier}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier})=>`'${modifier}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier})=>`'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers})=>`'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier})=>`Private elements cannot have an accessibility modifier ('${modifier}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName})=>`Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.`});function tsIsAccessModifier(modifier){return "private"===modifier||"public"===modifier||"protected"===modifier}function tsIsVarianceAnnotations(modifier){return "in"===modifier||"out"===modifier}function isPossiblyLiteralEnum(expression){if("MemberExpression"!==expression.type)return !1;const{computed,property}=expression;return (!computed||"StringLiteral"===property.type||!("TemplateLiteral"!==property.type||property.expressions.length>0))&&isUncomputedMemberExpressionChain(expression.object)}function isUncomputedMemberExpressionChain(expression){return "Identifier"===expression.type||"MemberExpression"===expression.type&&(!expression.computed&&isUncomputedMemberExpressionChain(expression.object))}const PlaceholderErrors=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function hasPlugin(plugins,expectedConfig){const[expectedName,expectedOptions]="string"==typeof expectedConfig?[expectedConfig,{}]:expectedConfig,expectedKeys=Object.keys(expectedOptions),expectedOptionsIsEmpty=0===expectedKeys.length;return plugins.some((p=>{if("string"==typeof p)return expectedOptionsIsEmpty&&p===expectedName;{const[pluginName,pluginOptions]=p;if(pluginName!==expectedName)return !1;for(const key of expectedKeys)if(pluginOptions[key]!==expectedOptions[key])return !1;return !0}}))}function getPluginOption(plugins,name,option){const plugin=plugins.find((plugin=>Array.isArray(plugin)?plugin[0]===name:plugin===name));return plugin&&Array.isArray(plugin)&&plugin.length>1?plugin[1][option]:null}const PIPELINE_PROPOSALS=["minimal","fsharp","hack","smart"],TOPIC_TOKENS=["^^","@@","^","%","#"],RECORD_AND_TUPLE_SYNTAX_TYPES=["hash","bar"];const mixinPlugins={estree:superClass=>class extends superClass{parse(){const file=toESTreeLocation(super.parse());return this.options.tokens&&(file.tokens=file.tokens.map(toESTreeLocation)),file}parseRegExpLiteral({pattern,flags}){let regex=null;try{regex=new RegExp(pattern,flags);}catch(e){}const node=this.estreeParseLiteral(regex);return node.regex={pattern,flags},node}parseBigIntLiteral(value){let bigInt;try{bigInt=BigInt(value);}catch(_unused){bigInt=null;}const node=this.estreeParseLiteral(bigInt);return node.bigint=String(node.value||value),node}parseDecimalLiteral(value){const node=this.estreeParseLiteral(null);return node.decimal=String(node.value||value),node}estreeParseLiteral(value){return this.parseLiteral(value,"Literal")}parseStringLiteral(value){return this.estreeParseLiteral(value)}parseNumericLiteral(value){return this.estreeParseLiteral(value)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(value){return this.estreeParseLiteral(value)}directiveToStmt(directive){const directiveLiteral=directive.value,stmt=this.startNodeAt(directive.start,directive.loc.start),expression=this.startNodeAt(directiveLiteral.start,directiveLiteral.loc.start);return expression.value=directiveLiteral.extra.expressionValue,expression.raw=directiveLiteral.extra.raw,stmt.expression=this.finishNodeAt(expression,"Literal",directiveLiteral.loc.end),stmt.directive=directiveLiteral.extra.raw.slice(1,-1),this.finishNodeAt(stmt,"ExpressionStatement",directive.loc.end)}initFunction(node,isAsync){super.initFunction(node,isAsync),node.expression=!1;}checkDeclaration(node){null!=node&&this.isObjectProperty(node)?this.checkDeclaration(node.value):super.checkDeclaration(node);}getObjectOrClassMethodParams(method){return method.value.params}isValidDirective(stmt){var _stmt$expression$extr;return "ExpressionStatement"===stmt.type&&"Literal"===stmt.expression.type&&"string"==typeof stmt.expression.value&&!(null!=(_stmt$expression$extr=stmt.expression.extra)&&_stmt$expression$extr.parenthesized)}parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse){super.parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse);const directiveStatements=node.directives.map((d=>this.directiveToStmt(d)));node.body=directiveStatements.concat(node.body),delete node.directives;}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){this.parseMethod(method,isGenerator,isAsync,isConstructor,allowsDirectSuper,"ClassMethod",!0),method.typeParameters&&(method.value.typeParameters=method.typeParameters,delete method.typeParameters),classBody.body.push(method);}parsePrivateName(){const node=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(node):node}convertPrivateNameToPrivateIdentifier(node){const name=super.getPrivateNameSV(node);return delete node.id,node.name=name,node.type="PrivateIdentifier",node}isPrivateName(node){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===node.type:super.isPrivateName(node)}getPrivateNameSV(node){return this.getPluginOption("estree","classFeatures")?node.name:super.getPrivateNameSV(node)}parseLiteral(value,type){const node=super.parseLiteral(value,type);return node.raw=node.extra.raw,delete node.extra,node}parseFunctionBody(node,allowExpression,isMethod=!1){super.parseFunctionBody(node,allowExpression,isMethod),node.expression="BlockStatement"!==node.body.type;}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope=!1){let funcNode=this.startNode();return funcNode.kind=node.kind,funcNode=super.parseMethod(funcNode,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope),funcNode.type="FunctionExpression",delete funcNode.kind,node.value=funcNode,"ClassPrivateMethod"===type&&(node.computed=!1),this.finishNode(node,"MethodDefinition")}parseClassProperty(...args){const propertyNode=super.parseClassProperty(...args);return this.getPluginOption("estree","classFeatures")?(propertyNode.type="PropertyDefinition",propertyNode):propertyNode}parseClassPrivateProperty(...args){const propertyNode=super.parseClassPrivateProperty(...args);return this.getPluginOption("estree","classFeatures")?(propertyNode.type="PropertyDefinition",propertyNode.computed=!1,propertyNode):propertyNode}parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor){const node=super.parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor);return node&&(node.type="Property","method"===node.kind&&(node.kind="init"),node.shorthand=!1),node}parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors){const node=super.parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors);return node&&(node.kind="init",node.type="Property"),node}isValidLVal(type,isUnparenthesizedInAssign,binding){return "Property"===type?"value":super.isValidLVal(type,isUnparenthesizedInAssign,binding)}isAssignable(node,isBinding){return null!=node&&this.isObjectProperty(node)?this.isAssignable(node.value,isBinding):super.isAssignable(node,isBinding)}toAssignable(node,isLHS=!1){if(null!=node&&this.isObjectProperty(node)){const{key,value}=node;this.isPrivateName(key)&&this.classScope.usePrivateName(this.getPrivateNameSV(key),key.loc.start),this.toAssignable(value,isLHS);}else super.toAssignable(node,isLHS);}toAssignableObjectExpressionProp(prop,isLast,isLHS){"get"===prop.kind||"set"===prop.kind?this.raise(Errors.PatternHasAccessor,{at:prop.key}):prop.method?this.raise(Errors.PatternHasMethod,{at:prop.key}):super.toAssignableObjectExpressionProp(prop,isLast,isLHS);}finishCallExpression(unfinished,optional){const node=super.finishCallExpression(unfinished,optional);if("Import"===node.callee.type){var _node$arguments$;if(node.type="ImportExpression",node.source=node.arguments[0],this.hasPlugin("importAssertions"))node.attributes=null!=(_node$arguments$=node.arguments[1])?_node$arguments$:null;delete node.arguments,delete node.callee;}return node}toReferencedArguments(node){"ImportExpression"!==node.type&&super.toReferencedArguments(node);}parseExport(unfinished){const node=super.parseExport(unfinished);switch(node.type){case"ExportAllDeclaration":node.exported=null;break;case"ExportNamedDeclaration":1===node.specifiers.length&&"ExportNamespaceSpecifier"===node.specifiers[0].type&&(node.type="ExportAllDeclaration",node.exported=node.specifiers[0].exported,delete node.specifiers);}return node}parseSubscript(base,startPos,startLoc,noCalls,state){const node=super.parseSubscript(base,startPos,startLoc,noCalls,state);if(state.optionalChainMember){if("OptionalMemberExpression"!==node.type&&"OptionalCallExpression"!==node.type||(node.type=node.type.substring(8)),state.stop){const chain=this.startNodeAtNode(node);return chain.expression=node,this.finishNode(chain,"ChainExpression")}}else "MemberExpression"!==node.type&&"CallExpression"!==node.type||(node.optional=!1);return node}hasPropertyAsPrivateName(node){return "ChainExpression"===node.type&&(node=node.expression),super.hasPropertyAsPrivateName(node)}isOptionalChain(node){return "ChainExpression"===node.type}isObjectProperty(node){return "Property"===node.type&&"init"===node.kind&&!node.method}isObjectMethod(node){return node.method||"get"===node.kind||"set"===node.kind}finishNodeAt(node,type,endLoc){return toESTreeLocation(super.finishNodeAt(node,type,endLoc))}resetStartLocation(node,start,startLoc){super.resetStartLocation(node,start,startLoc),toESTreeLocation(node);}resetEndLocation(node,endLoc=this.state.lastTokEndLoc){super.resetEndLocation(node,endLoc),toESTreeLocation(node);}},jsx:superClass=>class extends superClass{jsxReadToken(){let out="",chunkStart=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(JsxErrors.UnterminatedJsxContent,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);switch(ch){case 60:case 123:return this.state.pos===this.state.start?60===ch&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.state.pos),this.finishToken(137,out));case 38:out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadEntity(),chunkStart=this.state.pos;break;default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadNewLine(!0),chunkStart=this.state.pos):++this.state.pos;}}}jsxReadNewLine(normalizeCRLF){const ch=this.input.charCodeAt(this.state.pos);let out;return ++this.state.pos,13===ch&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),++this.state.curLine,this.state.lineStart=this.state.pos,out}jsxReadString(quote){let out="",chunkStart=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Errors.UnterminatedString,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadEntity(),chunkStart=this.state.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadNewLine(!1),chunkStart=this.state.pos):++this.state.pos;}return out+=this.input.slice(chunkStart,this.state.pos++),this.finishToken(129,out)}jsxReadEntity(){const startPos=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let radix=10;120===this.codePointAtPos(this.state.pos)&&(radix=16,++this.state.pos);const codePoint=this.readInt(radix,void 0,!1,"bail");if(null!==codePoint&&59===this.codePointAtPos(this.state.pos))return ++this.state.pos,String.fromCodePoint(codePoint)}else {let count=0,semi=!1;for(;count++<10&&this.state.pos<this.length&&!(semi=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(semi){const desc=this.input.slice(startPos,this.state.pos),entity=entities[desc];if(++this.state.pos,entity)return entity}}return this.state.pos=startPos,"&"}jsxReadWord(){let ch;const start=this.state.pos;do{ch=this.input.charCodeAt(++this.state.pos);}while(isIdentifierChar(ch)||45===ch);return this.finishToken(136,this.input.slice(start,this.state.pos))}jsxParseIdentifier(){const node=this.startNode();return this.match(136)?node.name=this.state.value:tokenIsKeyword(this.state.type)?node.name=tokenLabelName(this.state.type):this.unexpected(),this.next(),this.finishNode(node,"JSXIdentifier")}jsxParseNamespacedName(){const startPos=this.state.start,startLoc=this.state.startLoc,name=this.jsxParseIdentifier();if(!this.eat(14))return name;const node=this.startNodeAt(startPos,startLoc);return node.namespace=name,node.name=this.jsxParseIdentifier(),this.finishNode(node,"JSXNamespacedName")}jsxParseElementName(){const startPos=this.state.start,startLoc=this.state.startLoc;let node=this.jsxParseNamespacedName();if("JSXNamespacedName"===node.type)return node;for(;this.eat(16);){const newNode=this.startNodeAt(startPos,startLoc);newNode.object=node,newNode.property=this.jsxParseIdentifier(),node=this.finishNode(newNode,"JSXMemberExpression");}return node}jsxParseAttributeValue(){let node;switch(this.state.type){case 5:return node=this.startNode(),this.setContext(types.brace),this.next(),node=this.jsxParseExpressionContainer(node,types.j_oTag),"JSXEmptyExpression"===node.expression.type&&this.raise(JsxErrors.AttributeIsEmpty,{at:node}),node;case 138:case 129:return this.parseExprAtom();default:throw this.raise(JsxErrors.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){const node=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(node,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(node){return this.next(),node.expression=this.parseExpression(),this.setContext(types.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(node,"JSXSpreadChild")}jsxParseExpressionContainer(node,previousContext){if(this.match(8))node.expression=this.jsxParseEmptyExpression();else {const expression=this.parseExpression();node.expression=expression;}return this.setContext(previousContext),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(node,"JSXExpressionContainer")}jsxParseAttribute(){const node=this.startNode();return this.match(5)?(this.setContext(types.brace),this.next(),this.expect(21),node.argument=this.parseMaybeAssignAllowIn(),this.setContext(types.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(node,"JSXSpreadAttribute")):(node.name=this.jsxParseNamespacedName(),node.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(node,"JSXAttribute"))}jsxParseOpeningElementAt(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.eat(139)?this.finishNode(node,"JSXOpeningFragment"):(node.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(node))}jsxParseOpeningElementAfterName(node){const attributes=[];for(;!this.match(56)&&!this.match(139);)attributes.push(this.jsxParseAttribute());return node.attributes=attributes,node.selfClosing=this.eat(56),this.expect(139),this.finishNode(node,"JSXOpeningElement")}jsxParseClosingElementAt(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.eat(139)?this.finishNode(node,"JSXClosingFragment"):(node.name=this.jsxParseElementName(),this.expect(139),this.finishNode(node,"JSXClosingElement"))}jsxParseElementAt(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc),children=[],openingElement=this.jsxParseOpeningElementAt(startPos,startLoc);let closingElement=null;if(!openingElement.selfClosing){contents:for(;;)switch(this.state.type){case 138:if(startPos=this.state.start,startLoc=this.state.startLoc,this.next(),this.eat(56)){closingElement=this.jsxParseClosingElementAt(startPos,startLoc);break contents}children.push(this.jsxParseElementAt(startPos,startLoc));break;case 137:children.push(this.parseExprAtom());break;case 5:{const node=this.startNode();this.setContext(types.brace),this.next(),this.match(21)?children.push(this.jsxParseSpreadChild(node)):children.push(this.jsxParseExpressionContainer(node,types.j_expr));break}default:throw this.unexpected()}isFragment(openingElement)&&!isFragment(closingElement)&&null!==closingElement?this.raise(JsxErrors.MissingClosingTagFragment,{at:closingElement}):!isFragment(openingElement)&&isFragment(closingElement)?this.raise(JsxErrors.MissingClosingTagElement,{at:closingElement,openingTagName:getQualifiedJSXName(openingElement.name)}):isFragment(openingElement)||isFragment(closingElement)||getQualifiedJSXName(closingElement.name)!==getQualifiedJSXName(openingElement.name)&&this.raise(JsxErrors.MissingClosingTagElement,{at:closingElement,openingTagName:getQualifiedJSXName(openingElement.name)});}if(isFragment(openingElement)?(node.openingFragment=openingElement,node.closingFragment=closingElement):(node.openingElement=openingElement,node.closingElement=closingElement),node.children=children,this.match(47))throw this.raise(JsxErrors.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return isFragment(openingElement)?this.finishNode(node,"JSXFragment"):this.finishNode(node,"JSXElement")}jsxParseElement(){const startPos=this.state.start,startLoc=this.state.startLoc;return this.next(),this.jsxParseElementAt(startPos,startLoc)}setContext(newContext){const{context}=this.state;context[context.length-1]=newContext;}parseExprAtom(refExpressionErrors){return this.match(137)?this.parseLiteral(this.state.value,"JSXText"):this.match(138)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(refExpressionErrors)}skipSpace(){this.curContext().preserveSpace||super.skipSpace();}getTokenFromCode(code){const context=this.curContext();if(context===types.j_expr)return this.jsxReadToken();if(context===types.j_oTag||context===types.j_cTag){if(isIdentifierStart(code))return this.jsxReadWord();if(62===code)return ++this.state.pos,this.finishToken(139);if((34===code||39===code)&&context===types.j_oTag)return this.jsxReadString(code)}return 60===code&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(code)}updateContext(prevType){const{context,type}=this.state;if(56===type&&138===prevType)context.splice(-2,2,types.j_cTag),this.state.canStartJSXElement=!1;else if(138===type)context.push(types.j_oTag);else if(139===type){const out=context[context.length-1];out===types.j_oTag&&56===prevType||out===types.j_cTag?(context.pop(),this.state.canStartJSXElement=context[context.length-1]===types.j_expr):(this.setContext(types.j_expr),this.state.canStartJSXElement=!0);}else this.state.canStartJSXElement=tokenBeforeExprs[type];}},flow:superClass=>class extends superClass{constructor(...args){super(...args),this.flowPragma=void 0;}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return !!this.getPluginOption("flow","enums")}finishToken(type,val){return 129!==type&&13!==type&&28!==type&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(type,val)}addComment(comment){if(void 0===this.flowPragma){const matches=FLOW_PRAGMA_REGEX.exec(comment.value);if(matches)if("flow"===matches[1])this.flowPragma="flow";else {if("noflow"!==matches[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow";}}return super.addComment(comment)}flowParseTypeInitialiser(tok){const oldInType=this.state.inType;this.state.inType=!0,this.expect(tok||14);const type=this.flowParseType();return this.state.inType=oldInType,type}flowParsePredicate(){const node=this.startNode(),moduloLoc=this.state.startLoc;return this.next(),this.expectContextual(107),this.state.lastTokStart>moduloLoc.index+1&&this.raise(FlowErrors.UnexpectedSpaceBetweenModuloChecks,{at:moduloLoc}),this.eat(10)?(node.value=super.parseExpression(),this.expect(11),this.finishNode(node,"DeclaredPredicate")):this.finishNode(node,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const oldInType=this.state.inType;this.state.inType=!0,this.expect(14);let type=null,predicate=null;return this.match(54)?(this.state.inType=oldInType,predicate=this.flowParsePredicate()):(type=this.flowParseType(),this.state.inType=oldInType,this.match(54)&&(predicate=this.flowParsePredicate())),[type,predicate]}flowParseDeclareClass(node){return this.next(),this.flowParseInterfaceish(node,!0),this.finishNode(node,"DeclareClass")}flowParseDeclareFunction(node){this.next();const id=node.id=this.parseIdentifier(),typeNode=this.startNode(),typeContainer=this.startNode();this.match(47)?typeNode.typeParameters=this.flowParseTypeParameterDeclaration():typeNode.typeParameters=null,this.expect(10);const tmp=this.flowParseFunctionTypeParams();return typeNode.params=tmp.params,typeNode.rest=tmp.rest,typeNode.this=tmp._this,this.expect(11),[typeNode.returnType,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),typeContainer.typeAnnotation=this.finishNode(typeNode,"FunctionTypeAnnotation"),id.typeAnnotation=this.finishNode(typeContainer,"TypeAnnotation"),this.resetEndLocation(id),this.semicolon(),this.scope.declareName(node.id.name,2048,node.id.loc.start),this.finishNode(node,"DeclareFunction")}flowParseDeclare(node,insideModule){if(this.match(80))return this.flowParseDeclareClass(node);if(this.match(68))return this.flowParseDeclareFunction(node);if(this.match(74))return this.flowParseDeclareVariable(node);if(this.eatContextual(123))return this.match(16)?this.flowParseDeclareModuleExports(node):(insideModule&&this.raise(FlowErrors.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(node));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(node);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(node);if(this.isContextual(125))return this.flowParseDeclareInterface(node);if(this.match(82))return this.flowParseDeclareExportDeclaration(node,insideModule);throw this.unexpected()}flowParseDeclareVariable(node){return this.next(),node.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(node.id.name,5,node.id.loc.start),this.semicolon(),this.finishNode(node,"DeclareVariable")}flowParseDeclareModule(node){this.scope.enter(0),this.match(129)?node.id=super.parseExprAtom():node.id=this.parseIdentifier();const bodyNode=node.body=this.startNode(),body=bodyNode.body=[];for(this.expect(5);!this.match(8);){let bodyNode=this.startNode();this.match(83)?(this.next(),this.isContextual(126)||this.match(87)||this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(bodyNode)):(this.expectContextual(121,FlowErrors.UnsupportedStatementInDeclareModule),bodyNode=this.flowParseDeclare(bodyNode,!0)),body.push(bodyNode);}this.scope.exit(),this.expect(8),this.finishNode(bodyNode,"BlockStatement");let kind=null,hasModuleExport=!1;return body.forEach((bodyElement=>{!function(bodyElement){return "DeclareExportAllDeclaration"===bodyElement.type||"DeclareExportDeclaration"===bodyElement.type&&(!bodyElement.declaration||"TypeAlias"!==bodyElement.declaration.type&&"InterfaceDeclaration"!==bodyElement.declaration.type)}(bodyElement)?"DeclareModuleExports"===bodyElement.type&&(hasModuleExport&&this.raise(FlowErrors.DuplicateDeclareModuleExports,{at:bodyElement}),"ES"===kind&&this.raise(FlowErrors.AmbiguousDeclareModuleKind,{at:bodyElement}),kind="CommonJS",hasModuleExport=!0):("CommonJS"===kind&&this.raise(FlowErrors.AmbiguousDeclareModuleKind,{at:bodyElement}),kind="ES");})),node.kind=kind||"CommonJS",this.finishNode(node,"DeclareModule")}flowParseDeclareExportDeclaration(node,insideModule){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?node.declaration=this.flowParseDeclare(this.startNode()):(node.declaration=this.flowParseType(),this.semicolon()),node.default=!0,this.finishNode(node,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!insideModule){const label=this.state.value;throw this.raise(FlowErrors.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:label,suggestion:exportSuggestions[label]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(127))return node.declaration=this.flowParseDeclare(this.startNode()),node.default=!1,this.finishNode(node,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127))return "ExportNamedDeclaration"===(node=this.parseExport(node)).type&&(node.type="ExportDeclaration",node.default=!1,delete node.exportKind),node.type="Declare"+node.type,node;throw this.unexpected()}flowParseDeclareModuleExports(node){return this.next(),this.expectContextual(108),node.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(node,"DeclareModuleExports")}flowParseDeclareTypeAlias(node){this.next();const finished=this.flowParseTypeAlias(node);return finished.type="DeclareTypeAlias",finished}flowParseDeclareOpaqueType(node){this.next();const finished=this.flowParseOpaqueType(node,!0);return finished.type="DeclareOpaqueType",finished}flowParseDeclareInterface(node){return this.next(),this.flowParseInterfaceish(node),this.finishNode(node,"DeclareInterface")}flowParseInterfaceish(node,isClass=!1){if(node.id=this.flowParseRestrictedIdentifier(!isClass,!0),this.scope.declareName(node.id.name,isClass?17:9,node.id.loc.start),this.match(47)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.extends=[],node.implements=[],node.mixins=[],this.eat(81))do{node.extends.push(this.flowParseInterfaceExtends());}while(!isClass&&this.eat(12));if(this.isContextual(114)){this.next();do{node.mixins.push(this.flowParseInterfaceExtends());}while(this.eat(12))}if(this.isContextual(110)){this.next();do{node.implements.push(this.flowParseInterfaceExtends());}while(this.eat(12))}node.body=this.flowParseObjectType({allowStatic:isClass,allowExact:!1,allowSpread:!1,allowProto:isClass,allowInexact:!1});}flowParseInterfaceExtends(){const node=this.startNode();return node.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?node.typeParameters=this.flowParseTypeParameterInstantiation():node.typeParameters=null,this.finishNode(node,"InterfaceExtends")}flowParseInterface(node){return this.flowParseInterfaceish(node),this.finishNode(node,"InterfaceDeclaration")}checkNotUnderscore(word){"_"===word&&this.raise(FlowErrors.UnexpectedReservedUnderscore,{at:this.state.startLoc});}checkReservedType(word,startLoc,declaration){reservedTypes.has(word)&&this.raise(declaration?FlowErrors.AssignReservedType:FlowErrors.UnexpectedReservedType,{at:startLoc,reservedType:word});}flowParseRestrictedIdentifier(liberal,declaration){return this.checkReservedType(this.state.value,this.state.startLoc,declaration),this.parseIdentifier(liberal)}flowParseTypeAlias(node){return node.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(node.id.name,9,node.id.loc.start),this.match(47)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(node,"TypeAlias")}flowParseOpaqueType(node,declare){return this.expectContextual(126),node.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(node.id.name,9,node.id.loc.start),this.match(47)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.supertype=null,this.match(14)&&(node.supertype=this.flowParseTypeInitialiser(14)),node.impltype=null,declare||(node.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(node,"OpaqueType")}flowParseTypeParameter(requireDefault=!1){const nodeStartLoc=this.state.startLoc,node=this.startNode(),variance=this.flowParseVariance(),ident=this.flowParseTypeAnnotatableIdentifier();return node.name=ident.name,node.variance=variance,node.bound=ident.typeAnnotation,this.match(29)?(this.eat(29),node.default=this.flowParseType()):requireDefault&&this.raise(FlowErrors.MissingTypeParamDefault,{at:nodeStartLoc}),this.finishNode(node,"TypeParameter")}flowParseTypeParameterDeclaration(){const oldInType=this.state.inType,node=this.startNode();node.params=[],this.state.inType=!0,this.match(47)||this.match(138)?this.next():this.unexpected();let defaultRequired=!1;do{const typeParameter=this.flowParseTypeParameter(defaultRequired);node.params.push(typeParameter),typeParameter.default&&(defaultRequired=!0),this.match(48)||this.expect(12);}while(!this.match(48));return this.expect(48),this.state.inType=oldInType,this.finishNode(node,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const node=this.startNode(),oldInType=this.state.inType;node.params=[],this.state.inType=!0,this.expect(47);const oldNoAnonFunctionType=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)node.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=oldNoAnonFunctionType,this.expect(48),this.state.inType=oldInType,this.finishNode(node,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const node=this.startNode(),oldInType=this.state.inType;for(node.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)node.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=oldInType,this.finishNode(node,"TypeParameterInstantiation")}flowParseInterfaceType(){const node=this.startNode();if(this.expectContextual(125),node.extends=[],this.eat(81))do{node.extends.push(this.flowParseInterfaceExtends());}while(this.eat(12));return node.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(node,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(130)||this.match(129)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(node,isStatic,variance){return node.static=isStatic,14===this.lookahead().type?(node.id=this.flowParseObjectPropertyKey(),node.key=this.flowParseTypeInitialiser()):(node.id=null,node.key=this.flowParseType()),this.expect(3),node.value=this.flowParseTypeInitialiser(),node.variance=variance,this.finishNode(node,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(node,isStatic){return node.static=isStatic,node.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(node.method=!0,node.optional=!1,node.value=this.flowParseObjectTypeMethodish(this.startNodeAt(node.start,node.loc.start))):(node.method=!1,this.eat(17)&&(node.optional=!0),node.value=this.flowParseTypeInitialiser()),this.finishNode(node,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(node){for(node.params=[],node.rest=null,node.typeParameters=null,node.this=null,this.match(47)&&(node.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(node.this=this.flowParseFunctionTypeParam(!0),node.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)node.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(node.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),node.returnType=this.flowParseTypeInitialiser(),this.finishNode(node,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(node,isStatic){const valueNode=this.startNode();return node.static=isStatic,node.value=this.flowParseObjectTypeMethodish(valueNode),this.finishNode(node,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic,allowExact,allowSpread,allowProto,allowInexact}){const oldInType=this.state.inType;this.state.inType=!0;const nodeStart=this.startNode();let endDelim,exact;nodeStart.callProperties=[],nodeStart.properties=[],nodeStart.indexers=[],nodeStart.internalSlots=[];let inexact=!1;for(allowExact&&this.match(6)?(this.expect(6),endDelim=9,exact=!0):(this.expect(5),endDelim=8,exact=!1),nodeStart.exact=exact;!this.match(endDelim);){let isStatic=!1,protoStartLoc=null,inexactStartLoc=null;const node=this.startNode();if(allowProto&&this.isContextual(115)){const lookahead=this.lookahead();14!==lookahead.type&&17!==lookahead.type&&(this.next(),protoStartLoc=this.state.startLoc,allowStatic=!1);}if(allowStatic&&this.isContextual(104)){const lookahead=this.lookahead();14!==lookahead.type&&17!==lookahead.type&&(this.next(),isStatic=!0);}const variance=this.flowParseVariance();if(this.eat(0))null!=protoStartLoc&&this.unexpected(protoStartLoc),this.eat(0)?(variance&&this.unexpected(variance.loc.start),nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node,isStatic))):nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node,isStatic,variance));else if(this.match(10)||this.match(47))null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.unexpected(variance.loc.start),nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node,isStatic));else {let kind="init";if(this.isContextual(98)||this.isContextual(103)){tokenIsLiteralPropertyName(this.lookahead().type)&&(kind=this.state.value,this.next());}const propOrInexact=this.flowParseObjectTypeProperty(node,isStatic,protoStartLoc,variance,kind,allowSpread,null!=allowInexact?allowInexact:!exact);null===propOrInexact?(inexact=!0,inexactStartLoc=this.state.lastTokStartLoc):nodeStart.properties.push(propOrInexact);}this.flowObjectTypeSemicolon(),!inexactStartLoc||this.match(8)||this.match(9)||this.raise(FlowErrors.UnexpectedExplicitInexactInObject,{at:inexactStartLoc});}this.expect(endDelim),allowSpread&&(nodeStart.inexact=inexact);const out=this.finishNode(nodeStart,"ObjectTypeAnnotation");return this.state.inType=oldInType,out}flowParseObjectTypeProperty(node,isStatic,protoStartLoc,variance,kind,allowSpread,allowInexact){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(allowSpread?allowInexact||this.raise(FlowErrors.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(FlowErrors.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),variance&&this.raise(FlowErrors.InexactVariance,{at:variance}),null):(allowSpread||this.raise(FlowErrors.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.raise(FlowErrors.SpreadVariance,{at:variance}),node.argument=this.flowParseType(),this.finishNode(node,"ObjectTypeSpreadProperty"))}{node.key=this.flowParseObjectPropertyKey(),node.static=isStatic,node.proto=null!=protoStartLoc,node.kind=kind;let optional=!1;return this.match(47)||this.match(10)?(node.method=!0,null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.unexpected(variance.loc.start),node.value=this.flowParseObjectTypeMethodish(this.startNodeAt(node.start,node.loc.start)),"get"!==kind&&"set"!==kind||this.flowCheckGetterSetterParams(node),!allowSpread&&"constructor"===node.key.name&&node.value.this&&this.raise(FlowErrors.ThisParamBannedInConstructor,{at:node.value.this})):("init"!==kind&&this.unexpected(),node.method=!1,this.eat(17)&&(optional=!0),node.value=this.flowParseTypeInitialiser(),node.variance=variance),node.optional=optional,this.finishNode(node,"ObjectTypeProperty")}}flowCheckGetterSetterParams(property){const paramCount="get"===property.kind?0:1,length=property.value.params.length+(property.value.rest?1:0);property.value.this&&this.raise("get"===property.kind?FlowErrors.GetterMayNotHaveThisParam:FlowErrors.SetterMayNotHaveThisParam,{at:property.value.this}),length!==paramCount&&this.raise("get"===property.kind?Errors.BadGetterArity:Errors.BadSetterArity,{at:property}),"set"===property.kind&&property.value.rest&&this.raise(Errors.BadSetterRestParameter,{at:property});}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected();}flowParseQualifiedTypeIdentifier(startPos,startLoc,id){startPos=startPos||this.state.start,startLoc=startLoc||this.state.startLoc;let node=id||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const node2=this.startNodeAt(startPos,startLoc);node2.qualification=node,node2.id=this.flowParseRestrictedIdentifier(!0),node=this.finishNode(node2,"QualifiedTypeIdentifier");}return node}flowParseGenericType(startPos,startLoc,id){const node=this.startNodeAt(startPos,startLoc);return node.typeParameters=null,node.id=this.flowParseQualifiedTypeIdentifier(startPos,startLoc,id),this.match(47)&&(node.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(node,"GenericTypeAnnotation")}flowParseTypeofType(){const node=this.startNode();return this.expect(87),node.argument=this.flowParsePrimaryType(),this.finishNode(node,"TypeofTypeAnnotation")}flowParseTupleType(){const node=this.startNode();for(node.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(node.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(node,"TupleTypeAnnotation")}flowParseFunctionTypeParam(first){let name=null,optional=!1,typeAnnotation=null;const node=this.startNode(),lh=this.lookahead(),isThis=78===this.state.type;return 14===lh.type||17===lh.type?(isThis&&!first&&this.raise(FlowErrors.ThisParamMustBeFirst,{at:node}),name=this.parseIdentifier(isThis),this.eat(17)&&(optional=!0,isThis&&this.raise(FlowErrors.ThisParamMayNotBeOptional,{at:node})),typeAnnotation=this.flowParseTypeInitialiser()):typeAnnotation=this.flowParseType(),node.name=name,node.optional=optional,node.typeAnnotation=typeAnnotation,this.finishNode(node,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(type){const node=this.startNodeAt(type.start,type.loc.start);return node.name=null,node.optional=!1,node.typeAnnotation=type,this.finishNode(node,"FunctionTypeParam")}flowParseFunctionTypeParams(params=[]){let rest=null,_this=null;for(this.match(78)&&(_this=this.flowParseFunctionTypeParam(!0),_this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(rest=this.flowParseFunctionTypeParam(!1)),{params,rest,_this}}flowIdentToTypeAnnotation(startPos,startLoc,node,id){switch(id.name){case"any":return this.finishNode(node,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(node,"BooleanTypeAnnotation");case"mixed":return this.finishNode(node,"MixedTypeAnnotation");case"empty":return this.finishNode(node,"EmptyTypeAnnotation");case"number":return this.finishNode(node,"NumberTypeAnnotation");case"string":return this.finishNode(node,"StringTypeAnnotation");case"symbol":return this.finishNode(node,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(id.name),this.flowParseGenericType(startPos,startLoc,id)}}flowParsePrimaryType(){const startPos=this.state.start,startLoc=this.state.startLoc,node=this.startNode();let tmp,type,isGroupedType=!1;const oldNoAnonFunctionType=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,type=this.flowParseTupleType(),this.state.noAnonFunctionType=oldNoAnonFunctionType,type;case 47:return node.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),tmp=this.flowParseFunctionTypeParams(),node.params=tmp.params,node.rest=tmp.rest,node.this=tmp._this,this.expect(11),this.expect(19),node.returnType=this.flowParseType(),this.finishNode(node,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(tokenIsIdentifier(this.state.type)||this.match(78)){const token=this.lookahead().type;isGroupedType=17!==token&&14!==token;}else isGroupedType=!0;if(isGroupedType){if(this.state.noAnonFunctionType=!1,type=this.flowParseType(),this.state.noAnonFunctionType=oldNoAnonFunctionType,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),type;this.eat(12);}return tmp=type?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]):this.flowParseFunctionTypeParams(),node.params=tmp.params,node.rest=tmp.rest,node.this=tmp._this,this.expect(11),this.expect(19),node.returnType=this.flowParseType(),node.typeParameters=null,this.finishNode(node,"FunctionTypeAnnotation");case 129:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return node.value=this.match(85),this.next(),this.finishNode(node,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(130))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",node);if(this.match(131))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",node);throw this.raise(FlowErrors.UnexpectedSubtractionOperand,{at:this.state.startLoc})}throw this.unexpected();case 130:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(node,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(node,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(node,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(node,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const label=tokenLabelName(this.state.type);return this.next(),super.createIdentifier(node,label)}if(tokenIsIdentifier(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(startPos,startLoc,node,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const startPos=this.state.start,startLoc=this.state.startLoc;let type=this.flowParsePrimaryType(),seenOptionalIndexedAccess=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const node=this.startNodeAt(startPos,startLoc),optional=this.eat(18);seenOptionalIndexedAccess=seenOptionalIndexedAccess||optional,this.expect(0),!optional&&this.match(3)?(node.elementType=type,this.next(),type=this.finishNode(node,"ArrayTypeAnnotation")):(node.objectType=type,node.indexType=this.flowParseType(),this.expect(3),seenOptionalIndexedAccess?(node.optional=optional,type=this.finishNode(node,"OptionalIndexedAccessType")):type=this.finishNode(node,"IndexedAccessType"));}return type}flowParsePrefixType(){const node=this.startNode();return this.eat(17)?(node.typeAnnotation=this.flowParsePrefixType(),this.finishNode(node,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const param=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const node=this.startNodeAt(param.start,param.loc.start);return node.params=[this.reinterpretTypeAsFunctionTypeParam(param)],node.rest=null,node.this=null,node.returnType=this.flowParseType(),node.typeParameters=null,this.finishNode(node,"FunctionTypeAnnotation")}return param}flowParseIntersectionType(){const node=this.startNode();this.eat(45);const type=this.flowParseAnonFunctionWithoutParens();for(node.types=[type];this.eat(45);)node.types.push(this.flowParseAnonFunctionWithoutParens());return 1===node.types.length?type:this.finishNode(node,"IntersectionTypeAnnotation")}flowParseUnionType(){const node=this.startNode();this.eat(43);const type=this.flowParseIntersectionType();for(node.types=[type];this.eat(43);)node.types.push(this.flowParseIntersectionType());return 1===node.types.length?type:this.finishNode(node,"UnionTypeAnnotation")}flowParseType(){const oldInType=this.state.inType;this.state.inType=!0;const type=this.flowParseUnionType();return this.state.inType=oldInType,type}flowParseTypeOrImplicitInstantiation(){if(128===this.state.type&&"_"===this.state.value){const startPos=this.state.start,startLoc=this.state.startLoc,node=this.parseIdentifier();return this.flowParseGenericType(startPos,startLoc,node)}return this.flowParseType()}flowParseTypeAnnotation(){const node=this.startNode();return node.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(node,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride){const ident=allowPrimitiveOverride?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(ident.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(ident)),ident}typeCastToParameter(node){return node.expression.typeAnnotation=node.typeAnnotation,this.resetEndLocation(node.expression,node.typeAnnotation.loc.end),node.expression}flowParseVariance(){let variance=null;return this.match(53)?(variance=this.startNode(),"+"===this.state.value?variance.kind="plus":variance.kind="minus",this.next(),this.finishNode(variance,"Variance")):variance}parseFunctionBody(node,allowExpressionBody,isMethod=!1){return allowExpressionBody?this.forwardNoArrowParamsConversionAt(node,(()=>super.parseFunctionBody(node,!0,isMethod))):super.parseFunctionBody(node,!1,isMethod)}parseFunctionBodyAndFinish(node,type,isMethod=!1){if(this.match(14)){const typeNode=this.startNode();[typeNode.typeAnnotation,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),node.returnType=typeNode.typeAnnotation?this.finishNode(typeNode,"TypeAnnotation"):null;}return super.parseFunctionBodyAndFinish(node,type,isMethod)}parseStatement(context,topLevel){if(this.state.strict&&this.isContextual(125)){if(tokenIsKeywordOrIdentifier(this.lookahead().type)){const node=this.startNode();return this.next(),this.flowParseInterface(node)}}else if(this.shouldParseEnums()&&this.isContextual(122)){const node=this.startNode();return this.next(),this.flowParseEnumDeclaration(node)}const stmt=super.parseStatement(context,topLevel);return void 0!==this.flowPragma||this.isValidDirective(stmt)||(this.flowPragma=null),stmt}parseExpressionStatement(node,expr){if("Identifier"===expr.type)if("declare"===expr.name){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(node)}else if(tokenIsIdentifier(this.state.type)){if("interface"===expr.name)return this.flowParseInterface(node);if("type"===expr.name)return this.flowParseTypeAlias(node);if("opaque"===expr.name)return this.flowParseOpaqueType(node,!1)}return super.parseExpressionStatement(node,expr)}shouldParseExportDeclaration(){const{type}=this.state;return tokenIsFlowInterfaceOrTypeOrOpaque(type)||this.shouldParseEnums()&&122===type?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type}=this.state;return tokenIsFlowInterfaceOrTypeOrOpaque(type)||this.shouldParseEnums()&&122===type?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(122)){const node=this.startNode();return this.next(),this.flowParseEnumDeclaration(node)}return super.parseExportDefaultExpression()}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(!this.match(17))return expr;if(this.state.maybeInArrowParameters){const nextCh=this.lookaheadCharCode();if(44===nextCh||61===nextCh||58===nextCh||41===nextCh)return this.setOptionalParametersError(refExpressionErrors),expr}this.expect(17);const state=this.state.clone(),originalNoArrowAt=this.state.noArrowAt,node=this.startNodeAt(startPos,startLoc);let{consequent,failed}=this.tryParseConditionalConsequent(),[valid,invalid]=this.getArrowLikeExpressions(consequent);if(failed||invalid.length>0){const noArrowAt=[...originalNoArrowAt];if(invalid.length>0){this.state=state,this.state.noArrowAt=noArrowAt;for(let i=0;i<invalid.length;i++)noArrowAt.push(invalid[i].start);(({consequent,failed}=this.tryParseConditionalConsequent())),[valid,invalid]=this.getArrowLikeExpressions(consequent);}failed&&valid.length>1&&this.raise(FlowErrors.AmbiguousConditionalArrow,{at:state.startLoc}),failed&&1===valid.length&&(this.state=state,noArrowAt.push(valid[0].start),this.state.noArrowAt=noArrowAt,({consequent,failed}=this.tryParseConditionalConsequent()));}return this.getArrowLikeExpressions(consequent,!0),this.state.noArrowAt=originalNoArrowAt,this.expect(14),node.test=expr,node.consequent=consequent,node.alternate=this.forwardNoArrowParamsConversionAt(node,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(node,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const consequent=this.parseMaybeAssignAllowIn(),failed=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent,failed}}getArrowLikeExpressions(node,disallowInvalid){const stack=[node],arrows=[];for(;0!==stack.length;){const node=stack.pop();"ArrowFunctionExpression"===node.type?(node.typeParameters||!node.returnType?this.finishArrowValidation(node):arrows.push(node),stack.push(node.body)):"ConditionalExpression"===node.type&&(stack.push(node.consequent),stack.push(node.alternate));}return disallowInvalid?(arrows.forEach((node=>this.finishArrowValidation(node))),[arrows,[]]):function(list,test){const list1=[],list2=[];for(let i=0;i<list.length;i++)(test(list[i],i,list)?list1:list2).push(list[i]);return [list1,list2]}(arrows,(node=>node.params.every((param=>this.isAssignable(param,!0)))))}finishArrowValidation(node){var _node$extra;this.toAssignableList(node.params,null==(_node$extra=node.extra)?void 0:_node$extra.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(node,!1,!0),this.scope.exit();}forwardNoArrowParamsConversionAt(node,parse){let result;return -1!==this.state.noArrowParamsConversionAt.indexOf(node.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),result=parse(),this.state.noArrowParamsConversionAt.pop()):result=parse(),result}parseParenItem(node,startPos,startLoc){if(node=super.parseParenItem(node,startPos,startLoc),this.eat(17)&&(node.optional=!0,this.resetEndLocation(node)),this.match(14)){const typeCastNode=this.startNodeAt(startPos,startLoc);return typeCastNode.expression=node,typeCastNode.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(typeCastNode,"TypeCastExpression")}return node}assertModuleNodeAllowed(node){"ImportDeclaration"===node.type&&("type"===node.importKind||"typeof"===node.importKind)||"ExportNamedDeclaration"===node.type&&"type"===node.exportKind||"ExportAllDeclaration"===node.type&&"type"===node.exportKind||super.assertModuleNodeAllowed(node);}parseExport(node){const decl=super.parseExport(node);return "ExportNamedDeclaration"!==decl.type&&"ExportAllDeclaration"!==decl.type||(decl.exportKind=decl.exportKind||"value"),decl}parseExportDeclaration(node){if(this.isContextual(126)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.match(5)?(node.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(node),null):this.flowParseTypeAlias(declarationNode)}if(this.isContextual(127)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.flowParseOpaqueType(declarationNode,!1)}if(this.isContextual(125)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.flowParseInterface(declarationNode)}if(this.shouldParseEnums()&&this.isContextual(122)){node.exportKind="value";const declarationNode=this.startNode();return this.next(),this.flowParseEnumDeclaration(declarationNode)}return super.parseExportDeclaration(node)}eatExportStar(node){return !!super.eatExportStar(node)||!(!this.isContextual(126)||55!==this.lookahead().type)&&(node.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(node){const{startLoc}=this.state,hasNamespace=super.maybeParseExportNamespaceSpecifier(node);return hasNamespace&&"type"===node.exportKind&&this.unexpected(startLoc),hasNamespace}parseClassId(node,isStatement,optionalId){super.parseClassId(node,isStatement,optionalId),this.match(47)&&(node.typeParameters=this.flowParseTypeParameterDeclaration());}parseClassMember(classBody,member,state){const{startLoc}=this.state;if(this.isContextual(121)){if(super.parseClassMemberFromModifier(classBody,member))return;member.declare=!0;}super.parseClassMember(classBody,member,state),member.declare&&("ClassProperty"!==member.type&&"ClassPrivateProperty"!==member.type&&"PropertyDefinition"!==member.type?this.raise(FlowErrors.DeclareClassElement,{at:startLoc}):member.value&&this.raise(FlowErrors.DeclareClassFieldInitializer,{at:member.value}));}isIterator(word){return "iterator"===word||"asyncIterator"===word}readIterator(){const word=super.readWord1(),fullWord="@@"+word;this.isIterator(word)&&this.state.inType||this.raise(Errors.InvalidIdentifier,{at:this.state.curPosition(),identifierName:fullWord}),this.finishToken(128,fullWord);}getTokenFromCode(code){const next=this.input.charCodeAt(this.state.pos+1);return 123===code&&124===next?this.finishOp(6,2):!this.state.inType||62!==code&&60!==code?this.state.inType&&63===code?46===next?this.finishOp(18,2):this.finishOp(17,1):function(current,next,next2){return 64===current&&64===next&&isIdentifierStart(next2)}(code,next,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(code):this.finishOp(62===code?48:47,1)}isAssignable(node,isBinding){return "TypeCastExpression"===node.type?this.isAssignable(node.expression,isBinding):super.isAssignable(node,isBinding)}toAssignable(node,isLHS=!1){isLHS||"AssignmentExpression"!==node.type||"TypeCastExpression"!==node.left.type||(node.left=this.typeCastToParameter(node.left)),super.toAssignable(node,isLHS);}toAssignableList(exprList,trailingCommaLoc,isLHS){for(let i=0;i<exprList.length;i++){const expr=exprList[i];"TypeCastExpression"===(null==expr?void 0:expr.type)&&(exprList[i]=this.typeCastToParameter(expr));}super.toAssignableList(exprList,trailingCommaLoc,isLHS);}toReferencedList(exprList,isParenthesizedExpr){for(let i=0;i<exprList.length;i++){var _expr$extra;const expr=exprList[i];!expr||"TypeCastExpression"!==expr.type||null!=(_expr$extra=expr.extra)&&_expr$extra.parenthesized||!(exprList.length>1)&&isParenthesizedExpr||this.raise(FlowErrors.TypeCastInPattern,{at:expr.typeAnnotation});}return exprList}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){const node=super.parseArrayLike(close,canBePattern,isTuple,refExpressionErrors);return canBePattern&&!this.state.maybeInArrowParameters&&this.toReferencedList(node.elements),node}isValidLVal(type,isParenthesized,binding){return "TypeCastExpression"===type||super.isValidLVal(type,isParenthesized,binding)}parseClassProperty(node){return this.match(14)&&(node.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(node)}parseClassPrivateProperty(node){return this.match(14)&&(node.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(node)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(method){return !this.match(14)&&super.isNonstaticConstructor(method)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){if(method.variance&&this.unexpected(method.variance.loc.start),delete method.variance,this.match(47)&&(method.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper),method.params&&isConstructor){const params=method.params;params.length>0&&this.isThisParam(params[0])&&this.raise(FlowErrors.ThisParamBannedInConstructor,{at:method});}else if("MethodDefinition"===method.type&&isConstructor&&method.value.params){const params=method.value.params;params.length>0&&this.isThisParam(params[0])&&this.raise(FlowErrors.ThisParamBannedInConstructor,{at:method});}}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){method.variance&&this.unexpected(method.variance.loc.start),delete method.variance,this.match(47)&&(method.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(classBody,method,isGenerator,isAsync);}parseClassSuper(node){if(super.parseClassSuper(node),node.superClass&&this.match(47)&&(node.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(110)){this.next();const implemented=node.implements=[];do{const node=this.startNode();node.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?node.typeParameters=this.flowParseTypeParameterInstantiation():node.typeParameters=null,implemented.push(this.finishNode(node,"ClassImplements"));}while(this.eat(12))}}checkGetterSetterParams(method){super.checkGetterSetterParams(method);const params=this.getObjectOrClassMethodParams(method);if(params.length>0){const param=params[0];this.isThisParam(param)&&"get"===method.kind?this.raise(FlowErrors.GetterMayNotHaveThisParam,{at:param}):this.isThisParam(param)&&this.raise(FlowErrors.SetterMayNotHaveThisParam,{at:param});}}parsePropertyNamePrefixOperator(node){node.variance=this.flowParseVariance();}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){let typeParameters;prop.variance&&this.unexpected(prop.variance.loc.start),delete prop.variance,this.match(47)&&!isAccessor&&(typeParameters=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const result=super.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors);return typeParameters&&((result.value||result).typeParameters=typeParameters),result}parseAssignableListItemTypes(param){return this.eat(17)&&("Identifier"!==param.type&&this.raise(FlowErrors.PatternIsOptional,{at:param}),this.isThisParam(param)&&this.raise(FlowErrors.ThisParamMayNotBeOptional,{at:param}),param.optional=!0),this.match(14)?param.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(param)&&this.raise(FlowErrors.ThisParamAnnotationRequired,{at:param}),this.match(29)&&this.isThisParam(param)&&this.raise(FlowErrors.ThisParamNoDefault,{at:param}),this.resetEndLocation(param),param}parseMaybeDefault(startPos,startLoc,left){const node=super.parseMaybeDefault(startPos,startLoc,left);return "AssignmentPattern"===node.type&&node.typeAnnotation&&node.right.start<node.typeAnnotation.start&&this.raise(FlowErrors.TypeBeforeInitializer,{at:node.typeAnnotation}),node}shouldParseDefaultImport(node){return hasTypeImportKind(node)?isMaybeDefaultImport(this.state.type):super.shouldParseDefaultImport(node)}parseImportSpecifierLocal(node,specifier,type){specifier.local=hasTypeImportKind(node)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),node.specifiers.push(this.finishImportSpecifier(specifier,type));}maybeParseDefaultImportSpecifier(node){node.importKind="value";let kind=null;if(this.match(87)?kind="typeof":this.isContextual(126)&&(kind="type"),kind){const lh=this.lookahead(),{type}=lh;"type"===kind&&55===type&&this.unexpected(null,lh.type),(isMaybeDefaultImport(type)||5===type||55===type)&&(this.next(),node.importKind=kind);}return super.maybeParseDefaultImportSpecifier(node)}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly){const firstIdent=specifier.imported;let specifierTypeKind=null;"Identifier"===firstIdent.type&&("type"===firstIdent.name?specifierTypeKind="type":"typeof"===firstIdent.name&&(specifierTypeKind="typeof"));let isBinding=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const as_ident=this.parseIdentifier(!0);null===specifierTypeKind||tokenIsKeywordOrIdentifier(this.state.type)?(specifier.imported=firstIdent,specifier.importKind=null,specifier.local=this.parseIdentifier()):(specifier.imported=as_ident,specifier.importKind=specifierTypeKind,specifier.local=cloneIdentifier(as_ident));}else {if(null!==specifierTypeKind&&tokenIsKeywordOrIdentifier(this.state.type))specifier.imported=this.parseIdentifier(!0),specifier.importKind=specifierTypeKind;else {if(importedIsString)throw this.raise(Errors.ImportBindingIsString,{at:specifier,importName:firstIdent.value});specifier.imported=firstIdent,specifier.importKind=null;}this.eatContextual(93)?specifier.local=this.parseIdentifier():(isBinding=!0,specifier.local=cloneIdentifier(specifier.imported));}const specifierIsTypeImport=hasTypeImportKind(specifier);return isInTypeOnlyImport&&specifierIsTypeImport&&this.raise(FlowErrors.ImportTypeShorthandOnlyInPureImport,{at:specifier}),(isInTypeOnlyImport||specifierIsTypeImport)&&this.checkReservedType(specifier.local.name,specifier.local.loc.start,!0),!isBinding||isInTypeOnlyImport||specifierIsTypeImport||this.checkReservedWord(specifier.local.name,specifier.loc.start,!0,!0),this.finishImportSpecifier(specifier,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(node,allowModifiers){const kind=node.kind;"get"!==kind&&"set"!==kind&&this.match(47)&&(node.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(node,allowModifiers);}parseVarId(decl,kind){super.parseVarId(decl,kind),this.match(14)&&(decl.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(decl.id));}parseAsyncArrowFromCallExpression(node,call){if(this.match(14)){const oldNoAnonFunctionType=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,node.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=oldNoAnonFunctionType;}return super.parseAsyncArrowFromCallExpression(node,call)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(refExpressionErrors,afterLeftParse){var _jsx;let jsx,state=null;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(state=this.state.clone(),jsx=this.tryParse((()=>super.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!jsx.error)return jsx.node;const{context}=this.state,currentContext=context[context.length-1];currentContext!==types.j_oTag&&currentContext!==types.j_expr||context.pop();}if(null!=(_jsx=jsx)&&_jsx.error||this.match(47)){var _jsx2,_jsx3;let typeParameters;state=state||this.state.clone();const arrow=this.tryParse((abort=>{var _arrowExpression$extr;typeParameters=this.flowParseTypeParameterDeclaration();const arrowExpression=this.forwardNoArrowParamsConversionAt(typeParameters,(()=>{const result=super.parseMaybeAssign(refExpressionErrors,afterLeftParse);return this.resetStartLocationFromNode(result,typeParameters),result}));null!=(_arrowExpression$extr=arrowExpression.extra)&&_arrowExpression$extr.parenthesized&&abort();const expr=this.maybeUnwrapTypeCastExpression(arrowExpression);return "ArrowFunctionExpression"!==expr.type&&abort(),expr.typeParameters=typeParameters,this.resetStartLocationFromNode(expr,typeParameters),arrowExpression}),state);let arrowExpression=null;if(arrow.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(arrow.node).type){if(!arrow.error&&!arrow.aborted)return arrow.node.async&&this.raise(FlowErrors.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:typeParameters}),arrow.node;arrowExpression=arrow.node;}if(null!=(_jsx2=jsx)&&_jsx2.node)return this.state=jsx.failState,jsx.node;if(arrowExpression)return this.state=arrow.failState,arrowExpression;if(null!=(_jsx3=jsx)&&_jsx3.thrown)throw jsx.error;if(arrow.thrown)throw arrow.error;throw this.raise(FlowErrors.UnexpectedTokenAfterTypeParameter,{at:typeParameters})}return super.parseMaybeAssign(refExpressionErrors,afterLeftParse)}parseArrow(node){if(this.match(14)){const result=this.tryParse((()=>{const oldNoAnonFunctionType=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const typeNode=this.startNode();return [typeNode.typeAnnotation,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=oldNoAnonFunctionType,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),typeNode}));if(result.thrown)return null;result.error&&(this.state=result.failState),node.returnType=result.node.typeAnnotation?this.finishNode(result.node,"TypeAnnotation"):null;}return super.parseArrow(node)}shouldParseArrow(params){return this.match(14)||super.shouldParseArrow(params)}setArrowFunctionParameters(node,params){-1!==this.state.noArrowParamsConversionAt.indexOf(node.start)?node.params=params:super.setArrowFunctionParameters(node,params);}checkParams(node,allowDuplicates,isArrowFunction,strictModeChanged=!0){if(!isArrowFunction||-1===this.state.noArrowParamsConversionAt.indexOf(node.start)){for(let i=0;i<node.params.length;i++)this.isThisParam(node.params[i])&&i>0&&this.raise(FlowErrors.ThisParamMustBeFirst,{at:node.params[i]});return super.checkParams(node,allowDuplicates,isArrowFunction,strictModeChanged)}}parseParenAndDistinguishExpression(canBeArrow){return super.parseParenAndDistinguishExpression(canBeArrow&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(base,startPos,startLoc,noCalls){if("Identifier"===base.type&&"async"===base.name&&-1!==this.state.noArrowAt.indexOf(startPos)){this.next();const node=this.startNodeAt(startPos,startLoc);node.callee=base,node.arguments=super.parseCallExpressionArguments(11,!1),base=this.finishNode(node,"CallExpression");}else if("Identifier"===base.type&&"async"===base.name&&this.match(47)){const state=this.state.clone(),arrow=this.tryParse((abort=>this.parseAsyncArrowWithTypeParameters(startPos,startLoc)||abort()),state);if(!arrow.error&&!arrow.aborted)return arrow.node;const result=this.tryParse((()=>super.parseSubscripts(base,startPos,startLoc,noCalls)),state);if(result.node&&!result.error)return result.node;if(arrow.node)return this.state=arrow.failState,arrow.node;if(result.node)return this.state=result.failState,result.node;throw arrow.error||result.error}return super.parseSubscripts(base,startPos,startLoc,noCalls)}parseSubscript(base,startPos,startLoc,noCalls,subscriptState){if(this.match(18)&&this.isLookaheadToken_lt()){if(subscriptState.optionalChainMember=!0,noCalls)return subscriptState.stop=!0,base;this.next();const node=this.startNodeAt(startPos,startLoc);return node.callee=base,node.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),node.arguments=this.parseCallExpressionArguments(11,!1),node.optional=!0,this.finishCallExpression(node,!0)}if(!noCalls&&this.shouldParseTypes()&&this.match(47)){const node=this.startNodeAt(startPos,startLoc);node.callee=base;const result=this.tryParse((()=>(node.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),node.arguments=super.parseCallExpressionArguments(11,!1),subscriptState.optionalChainMember&&(node.optional=!1),this.finishCallExpression(node,subscriptState.optionalChainMember))));if(result.node)return result.error&&(this.state=result.failState),result.node}return super.parseSubscript(base,startPos,startLoc,noCalls,subscriptState)}parseNewCallee(node){super.parseNewCallee(node);let targs=null;this.shouldParseTypes()&&this.match(47)&&(targs=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),node.typeArguments=targs;}parseAsyncArrowWithTypeParameters(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);if(this.parseFunctionParams(node),this.parseArrow(node))return super.parseArrowExpression(node,void 0,!0)}readToken_mult_modulo(code){const next=this.input.charCodeAt(this.state.pos+1);if(42===code&&47===next&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(code);}readToken_pipe_amp(code){const next=this.input.charCodeAt(this.state.pos+1);124!==code||125!==next?super.readToken_pipe_amp(code):this.finishOp(9,2);}parseTopLevel(file,program){const fileNode=super.parseTopLevel(file,program);return this.state.hasFlowComment&&this.raise(FlowErrors.UnterminatedFlowComment,{at:this.state.curPosition()}),fileNode}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(FlowErrors.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();const commentSkip=this.skipFlowComment();commentSkip&&(this.state.pos+=commentSkip,this.state.hasFlowComment=!0);}else {if(!this.state.hasFlowComment)return super.skipBlockComment();{const end=this.input.indexOf("*-/",this.state.pos+2);if(-1===end)throw this.raise(Errors.UnterminatedComment,{at:this.state.curPosition()});this.state.pos=end+2+3;}}}skipFlowComment(){const{pos}=this.state;let shiftToFirstNonWhiteSpace=2;for(;[32,9].includes(this.input.charCodeAt(pos+shiftToFirstNonWhiteSpace));)shiftToFirstNonWhiteSpace++;const ch2=this.input.charCodeAt(shiftToFirstNonWhiteSpace+pos),ch3=this.input.charCodeAt(shiftToFirstNonWhiteSpace+pos+1);return 58===ch2&&58===ch3?shiftToFirstNonWhiteSpace+2:"flow-include"===this.input.slice(shiftToFirstNonWhiteSpace+pos,shiftToFirstNonWhiteSpace+pos+12)?shiftToFirstNonWhiteSpace+12:58===ch2&&58!==ch3&&shiftToFirstNonWhiteSpace}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(Errors.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(loc,{enumName,memberName}){this.raise(FlowErrors.EnumBooleanMemberNotInitialized,{at:loc,memberName,enumName});}flowEnumErrorInvalidMemberInitializer(loc,enumContext){return this.raise(enumContext.explicitType?"symbol"===enumContext.explicitType?FlowErrors.EnumInvalidMemberInitializerSymbolType:FlowErrors.EnumInvalidMemberInitializerPrimaryType:FlowErrors.EnumInvalidMemberInitializerUnknownType,Object.assign({at:loc},enumContext))}flowEnumErrorNumberMemberNotInitialized(loc,{enumName,memberName}){this.raise(FlowErrors.EnumNumberMemberNotInitialized,{at:loc,enumName,memberName});}flowEnumErrorStringMemberInconsistentlyInitailized(node,{enumName}){this.raise(FlowErrors.EnumStringMemberInconsistentlyInitailized,{at:node,enumName});}flowEnumMemberInit(){const startLoc=this.state.startLoc,endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 130:{const literal=this.parseNumericLiteral(this.state.value);return endOfInit()?{type:"number",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}case 129:{const literal=this.parseStringLiteral(this.state.value);return endOfInit()?{type:"string",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}case 85:case 86:{const literal=this.parseBooleanLiteral(this.match(85));return endOfInit()?{type:"boolean",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}default:return {type:"invalid",loc:startLoc}}}flowEnumMemberRaw(){const loc=this.state.startLoc;return {id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc}}}flowEnumCheckExplicitTypeMismatch(loc,context,expectedType){const{explicitType}=context;null!==explicitType&&explicitType!==expectedType&&this.flowEnumErrorInvalidMemberInitializer(loc,context);}flowEnumMembers({enumName,explicitType}){const seenNames=new Set,members={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let hasUnknownMembers=!1;for(;!this.match(8);){if(this.eat(21)){hasUnknownMembers=!0;break}const memberNode=this.startNode(),{id,init}=this.flowEnumMemberRaw(),memberName=id.name;if(""===memberName)continue;/^[a-z]/.test(memberName)&&this.raise(FlowErrors.EnumInvalidMemberName,{at:id,memberName,suggestion:memberName[0].toUpperCase()+memberName.slice(1),enumName}),seenNames.has(memberName)&&this.raise(FlowErrors.EnumDuplicateMemberName,{at:id,memberName,enumName}),seenNames.add(memberName);const context={enumName,explicitType,memberName};switch(memberNode.id=id,init.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"boolean"),memberNode.init=init.value,members.booleanMembers.push(this.finishNode(memberNode,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"number"),memberNode.init=init.value,members.numberMembers.push(this.finishNode(memberNode,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"string"),memberNode.init=init.value,members.stringMembers.push(this.finishNode(memberNode,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(init.loc,context);case"none":switch(explicitType){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(init.loc,context);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(init.loc,context);break;default:members.defaultedMembers.push(this.finishNode(memberNode,"EnumDefaultedMember"));}}this.match(8)||this.expect(12);}return {members,hasUnknownMembers}}flowEnumStringMembers(initializedMembers,defaultedMembers,{enumName}){if(0===initializedMembers.length)return defaultedMembers;if(0===defaultedMembers.length)return initializedMembers;if(defaultedMembers.length>initializedMembers.length){for(const member of initializedMembers)this.flowEnumErrorStringMemberInconsistentlyInitailized(member,{enumName});return defaultedMembers}for(const member of defaultedMembers)this.flowEnumErrorStringMemberInconsistentlyInitailized(member,{enumName});return initializedMembers}flowEnumParseExplicitType({enumName}){if(!this.eatContextual(101))return null;if(!tokenIsIdentifier(this.state.type))throw this.raise(FlowErrors.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName});const{value}=this.state;return this.next(),"boolean"!==value&&"number"!==value&&"string"!==value&&"symbol"!==value&&this.raise(FlowErrors.EnumInvalidExplicitType,{at:this.state.startLoc,enumName,invalidEnumType:value}),value}flowEnumBody(node,id){const enumName=id.name,nameLoc=id.loc.start,explicitType=this.flowEnumParseExplicitType({enumName});this.expect(5);const{members,hasUnknownMembers}=this.flowEnumMembers({enumName,explicitType});switch(node.hasUnknownMembers=hasUnknownMembers,explicitType){case"boolean":return node.explicitType=!0,node.members=members.booleanMembers,this.expect(8),this.finishNode(node,"EnumBooleanBody");case"number":return node.explicitType=!0,node.members=members.numberMembers,this.expect(8),this.finishNode(node,"EnumNumberBody");case"string":return node.explicitType=!0,node.members=this.flowEnumStringMembers(members.stringMembers,members.defaultedMembers,{enumName}),this.expect(8),this.finishNode(node,"EnumStringBody");case"symbol":return node.members=members.defaultedMembers,this.expect(8),this.finishNode(node,"EnumSymbolBody");default:{const empty=()=>(node.members=[],this.expect(8),this.finishNode(node,"EnumStringBody"));node.explicitType=!1;const boolsLen=members.booleanMembers.length,numsLen=members.numberMembers.length,strsLen=members.stringMembers.length,defaultedLen=members.defaultedMembers.length;if(boolsLen||numsLen||strsLen||defaultedLen){if(boolsLen||numsLen){if(!numsLen&&!strsLen&&boolsLen>=defaultedLen){for(const member of members.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start,{enumName,memberName:member.id.name});return node.members=members.booleanMembers,this.expect(8),this.finishNode(node,"EnumBooleanBody")}if(!boolsLen&&!strsLen&&numsLen>=defaultedLen){for(const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start,{enumName,memberName:member.id.name});return node.members=members.numberMembers,this.expect(8),this.finishNode(node,"EnumNumberBody")}return this.raise(FlowErrors.EnumInconsistentMemberValues,{at:nameLoc,enumName}),empty()}return node.members=this.flowEnumStringMembers(members.stringMembers,members.defaultedMembers,{enumName}),this.expect(8),this.finishNode(node,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(node){const id=this.parseIdentifier();return node.id=id,node.body=this.flowEnumBody(this.startNode(),id),this.finishNode(node,"EnumDeclaration")}isLookaheadToken_lt(){const next=this.nextTokenStart();if(60===this.input.charCodeAt(next)){const afterNext=this.input.charCodeAt(next+1);return 60!==afterNext&&61!==afterNext}return !1}maybeUnwrapTypeCastExpression(node){return "TypeCastExpression"===node.type?node.expression:node}},typescript:superClass=>class extends superClass{getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return (this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(134)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(allowedModifiers,stopOnStartOfClassStaticBlock){if(!tokenIsIdentifier(this.state.type)&&58!==this.state.type)return;const modifier=this.state.value;if(-1!==allowedModifiers.indexOf(modifier)){if(stopOnStartOfClassStaticBlock&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return modifier}}tsParseModifiers({modified,allowedModifiers,disallowedModifiers,stopOnStartOfClassStaticBlock,errorTemplate=TSErrors.InvalidModifierOnTypeMember}){const enforceOrder=(loc,modifier,before,after)=>{modifier===before&&modified[after]&&this.raise(TSErrors.InvalidModifiersOrder,{at:loc,orderedModifiers:[before,after]});},incompatible=(loc,modifier,mod1,mod2)=>{(modified[mod1]&&modifier===mod2||modified[mod2]&&modifier===mod1)&&this.raise(TSErrors.IncompatibleModifiers,{at:loc,modifiers:[mod1,mod2]});};for(;;){const{startLoc}=this.state,modifier=this.tsParseModifier(allowedModifiers.concat(null!=disallowedModifiers?disallowedModifiers:[]),stopOnStartOfClassStaticBlock);if(!modifier)break;tsIsAccessModifier(modifier)?modified.accessibility?this.raise(TSErrors.DuplicateAccessibilityModifier,{at:startLoc,modifier}):(enforceOrder(startLoc,modifier,modifier,"override"),enforceOrder(startLoc,modifier,modifier,"static"),enforceOrder(startLoc,modifier,modifier,"readonly"),modified.accessibility=modifier):tsIsVarianceAnnotations(modifier)?(modified[modifier]&&this.raise(TSErrors.DuplicateModifier,{at:startLoc,modifier}),modified[modifier]=!0,enforceOrder(startLoc,modifier,"in","out")):(Object.hasOwnProperty.call(modified,modifier)?this.raise(TSErrors.DuplicateModifier,{at:startLoc,modifier}):(enforceOrder(startLoc,modifier,"static","readonly"),enforceOrder(startLoc,modifier,"static","override"),enforceOrder(startLoc,modifier,"override","readonly"),enforceOrder(startLoc,modifier,"abstract","override"),incompatible(startLoc,modifier,"declare","override"),incompatible(startLoc,modifier,"static","abstract")),modified[modifier]=!0),null!=disallowedModifiers&&disallowedModifiers.includes(modifier)&&this.raise(errorTemplate,{at:startLoc,modifier});}}tsIsListTerminator(kind){switch(kind){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}throw new Error("Unreachable")}tsParseList(kind,parseElement){const result=[];for(;!this.tsIsListTerminator(kind);)result.push(parseElement());return result}tsParseDelimitedList(kind,parseElement,refTrailingCommaPos){return function(x){if(null==x)throw new Error(`Unexpected ${x} value.`);return x}(this.tsParseDelimitedListWorker(kind,parseElement,!0,refTrailingCommaPos))}tsParseDelimitedListWorker(kind,parseElement,expectSuccess,refTrailingCommaPos){const result=[];let trailingCommaPos=-1;for(;!this.tsIsListTerminator(kind);){trailingCommaPos=-1;const element=parseElement();if(null==element)return;if(result.push(element),!this.eat(12)){if(this.tsIsListTerminator(kind))break;return void(expectSuccess&&this.expect(12))}trailingCommaPos=this.state.lastTokStart;}return refTrailingCommaPos&&(refTrailingCommaPos.value=trailingCommaPos),result}tsParseBracketedList(kind,parseElement,bracket,skipFirstToken,refTrailingCommaPos){skipFirstToken||(bracket?this.expect(0):this.expect(47));const result=this.tsParseDelimitedList(kind,parseElement,refTrailingCommaPos);return bracket?this.expect(3):this.expect(48),result}tsParseImportType(){const node=this.startNode();return this.expect(83),this.expect(10),this.match(129)||this.raise(TSErrors.UnsupportedImportTypeArgument,{at:this.state.startLoc}),node.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(node.qualifier=this.tsParseEntityName()),this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSImportType")}tsParseEntityName(allowReservedWords=!0){let entity=this.parseIdentifier(allowReservedWords);for(;this.eat(16);){const node=this.startNodeAtNode(entity);node.left=entity,node.right=this.parseIdentifier(allowReservedWords),entity=this.finishNode(node,"TSQualifiedName");}return entity}tsParseTypeReference(){const node=this.startNode();return node.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSTypeReference")}tsParseThisTypePredicate(lhs){this.next();const node=this.startNodeAtNode(lhs);return node.parameterName=lhs,node.typeAnnotation=this.tsParseTypeAnnotation(!1),node.asserts=!1,this.finishNode(node,"TSTypePredicate")}tsParseThisTypeNode(){const node=this.startNode();return this.next(),this.finishNode(node,"TSThisType")}tsParseTypeQuery(){const node=this.startNode();return this.expect(87),this.match(83)?node.exprName=this.tsParseImportType():node.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSTypeQuery")}tsParseInOutModifiers(node){this.tsParseModifiers({modified:node,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:TSErrors.InvalidModifierOnTypeParameter});}tsParseNoneModifiers(node){this.tsParseModifiers({modified:node,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:TSErrors.InvalidModifierOnTypeParameterPositions});}tsParseTypeParameter(parseModifiers=this.tsParseNoneModifiers.bind(this)){const node=this.startNode();return parseModifiers(node),node.name=this.tsParseTypeParameterName(),node.constraint=this.tsEatThenParseType(81),node.default=this.tsEatThenParseType(29),this.finishNode(node,"TSTypeParameter")}tsTryParseTypeParameters(parseModifiers){if(this.match(47))return this.tsParseTypeParameters(parseModifiers)}tsParseTypeParameters(parseModifiers){const node=this.startNode();this.match(47)||this.match(138)?this.next():this.unexpected();const refTrailingCommaPos={value:-1};return node.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,parseModifiers),!1,!0,refTrailingCommaPos),0===node.params.length&&this.raise(TSErrors.EmptyTypeParameters,{at:node}),-1!==refTrailingCommaPos.value&&this.addExtra(node,"trailingComma",refTrailingCommaPos.value),this.finishNode(node,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){if(75!==this.lookahead().type)return null;this.next();const typeReference=this.tsParseTypeReference();return typeReference.typeParameters&&this.raise(TSErrors.CannotFindName,{at:typeReference.typeName,name:"const"}),typeReference}tsFillSignature(returnToken,signature){const returnTokenRequired=19===returnToken;signature.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),signature.parameters=this.tsParseBindingListForSignature(),(returnTokenRequired||this.match(returnToken))&&(signature.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(returnToken));}tsParseBindingListForSignature(){return super.parseBindingList(11,41).map((pattern=>("Identifier"!==pattern.type&&"RestElement"!==pattern.type&&"ObjectPattern"!==pattern.type&&"ArrayPattern"!==pattern.type&&this.raise(TSErrors.UnsupportedSignatureParameterKind,{at:pattern,type:pattern.type}),pattern)))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13);}tsParseSignatureMember(kind,node){return this.tsFillSignature(14,node),this.tsParseTypeMemberSemicolon(),this.finishNode(node,kind)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!tokenIsIdentifier(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(node){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const id=this.parseIdentifier();id.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(id),this.expect(3),node.parameters=[id];const type=this.tsTryParseTypeAnnotation();return type&&(node.typeAnnotation=type),this.tsParseTypeMemberSemicolon(),this.finishNode(node,"TSIndexSignature")}tsParsePropertyOrMethodSignature(node,readonly){this.eat(17)&&(node.optional=!0);const nodeAny=node;if(this.match(10)||this.match(47)){readonly&&this.raise(TSErrors.ReadonlyForMethodSignature,{at:node});const method=nodeAny;method.kind&&this.match(47)&&this.raise(TSErrors.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,method),this.tsParseTypeMemberSemicolon();const paramsKey="parameters",returnTypeKey="typeAnnotation";if("get"===method.kind)method[paramsKey].length>0&&(this.raise(Errors.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(method[paramsKey][0])&&this.raise(TSErrors.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===method.kind){if(1!==method[paramsKey].length)this.raise(Errors.BadSetterArity,{at:this.state.curPosition()});else {const firstParameter=method[paramsKey][0];this.isThisParam(firstParameter)&&this.raise(TSErrors.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===firstParameter.type&&firstParameter.optional&&this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===firstParameter.type&&this.raise(TSErrors.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()});}method[returnTypeKey]&&this.raise(TSErrors.SetAccesorCannotHaveReturnType,{at:method[returnTypeKey]});}else method.kind="method";return this.finishNode(method,"TSMethodSignature")}{const property=nodeAny;readonly&&(property.readonly=!0);const type=this.tsTryParseTypeAnnotation();return type&&(property.typeAnnotation=type),this.tsParseTypeMemberSemicolon(),this.finishNode(property,"TSPropertySignature")}}tsParseTypeMember(){const node=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",node);if(this.match(77)){const id=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",node):(node.key=this.createIdentifier(id,"new"),this.tsParsePropertyOrMethodSignature(node,!1))}this.tsParseModifiers({modified:node,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});const idx=this.tsTryParseIndexSignature(node);return idx||(super.parsePropertyName(node),node.computed||"Identifier"!==node.key.type||"get"!==node.key.name&&"set"!==node.key.name||!this.tsTokenCanFollowModifier()||(node.kind=node.key.name,super.parsePropertyName(node)),this.tsParsePropertyOrMethodSignature(node,!!node.readonly))}tsParseTypeLiteral(){const node=this.startNode();return node.members=this.tsParseObjectTypeMembers(),this.finishNode(node,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const members=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),members}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(118):(this.isContextual(118)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const node=this.startNode();return node.name=this.tsParseTypeParameterName(),node.constraint=this.tsExpectThenParseType(58),this.finishNode(node,"TSTypeParameter")}tsParseMappedType(){const node=this.startNode();return this.expect(5),this.match(53)?(node.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(node.readonly=!0),this.expect(0),node.typeParameter=this.tsParseMappedTypeParameter(),node.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(node.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(node.optional=!0),node.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(node,"TSMappedType")}tsParseTupleType(){const node=this.startNode();node.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let seenOptionalElement=!1,labeledElements=null;return node.elementTypes.forEach((elementNode=>{const{type}=elementNode;!seenOptionalElement||"TSRestType"===type||"TSOptionalType"===type||"TSNamedTupleMember"===type&&elementNode.optional||this.raise(TSErrors.OptionalTypeBeforeRequired,{at:elementNode}),seenOptionalElement||(seenOptionalElement="TSNamedTupleMember"===type&&elementNode.optional||"TSOptionalType"===type);let checkType=type;"TSRestType"===type&&(checkType=(elementNode=elementNode.typeAnnotation).type);const isLabeled="TSNamedTupleMember"===checkType;null!=labeledElements||(labeledElements=isLabeled),labeledElements!==isLabeled&&this.raise(TSErrors.MixedLabeledAndUnlabeledElements,{at:elementNode});})),this.finishNode(node,"TSTupleType")}tsParseTupleElementType(){const{start:startPos,startLoc}=this.state,rest=this.eat(21);let type=this.tsParseType();const optional=this.eat(17);if(this.eat(14)){const labeledNode=this.startNodeAtNode(type);labeledNode.optional=optional,"TSTypeReference"!==type.type||type.typeParameters||"Identifier"!==type.typeName.type?(this.raise(TSErrors.InvalidTupleMemberLabel,{at:type}),labeledNode.label=type):labeledNode.label=type.typeName,labeledNode.elementType=this.tsParseType(),type=this.finishNode(labeledNode,"TSNamedTupleMember");}else if(optional){const optionalTypeNode=this.startNodeAtNode(type);optionalTypeNode.typeAnnotation=type,type=this.finishNode(optionalTypeNode,"TSOptionalType");}if(rest){const restNode=this.startNodeAt(startPos,startLoc);restNode.typeAnnotation=type,type=this.finishNode(restNode,"TSRestType");}return type}tsParseParenthesizedType(){const node=this.startNode();return this.expect(10),node.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(node,"TSParenthesizedType")}tsParseFunctionOrConstructorType(type,abstract){const node=this.startNode();return "TSConstructorType"===type&&(node.abstract=!!abstract,abstract&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,node))),this.finishNode(node,type)}tsParseLiteralTypeNode(){const node=this.startNode();return node.literal=(()=>{switch(this.state.type){case 130:case 131:case 129:case 85:case 86:return super.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(node,"TSLiteralType")}tsParseTemplateLiteralType(){const node=this.startNode();return node.literal=super.parseTemplate(!1),this.finishNode(node,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const thisKeyword=this.tsParseThisTypeNode();return this.isContextual(113)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(thisKeyword):thisKeyword}tsParseNonArrayType(){switch(this.state.type){case 129:case 130:case 131:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const node=this.startNode(),nextToken=this.lookahead();if(130!==nextToken.type&&131!==nextToken.type)throw this.unexpected();return node.literal=this.parseMaybeUnary(),this.finishNode(node,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type}=this.state;if(tokenIsIdentifier(type)||88===type||84===type){const nodeType=88===type?"TSVoidKeyword":84===type?"TSNullKeyword":function(value){switch(value){case"any":return "TSAnyKeyword";case"boolean":return "TSBooleanKeyword";case"bigint":return "TSBigIntKeyword";case"never":return "TSNeverKeyword";case"number":return "TSNumberKeyword";case"object":return "TSObjectKeyword";case"string":return "TSStringKeyword";case"symbol":return "TSSymbolKeyword";case"undefined":return "TSUndefinedKeyword";case"unknown":return "TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==nodeType&&46!==this.lookaheadCharCode()){const node=this.startNode();return this.next(),this.finishNode(node,nodeType)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let type=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const node=this.startNodeAtNode(type);node.elementType=type,this.expect(3),type=this.finishNode(node,"TSArrayType");}else {const node=this.startNodeAtNode(type);node.objectType=type,node.indexType=this.tsParseType(),this.expect(3),type=this.finishNode(node,"TSIndexedAccessType");}return type}tsParseTypeOperator(){const node=this.startNode(),operator=this.state.value;return this.next(),node.operator=operator,node.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===operator&&this.tsCheckTypeAnnotationForReadOnly(node),this.finishNode(node,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(node){switch(node.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(TSErrors.UnexpectedReadonly,{at:node});}}tsParseInferType(){const node=this.startNode();this.expectContextual(112);const typeParameter=this.startNode();return typeParameter.name=this.tsParseTypeParameterName(),typeParameter.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),node.typeParameter=this.finishNode(typeParameter,"TSTypeParameter"),this.finishNode(node,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const constraint=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return constraint}}tsParseTypeOperatorOrHigher(){var token;return (token=this.state.type)>=117&&token<=119&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(112)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(kind,parseConstituentType,operator){const node=this.startNode(),hasLeadingOperator=this.eat(operator),types=[];do{types.push(parseConstituentType());}while(this.eat(operator));return 1!==types.length||hasLeadingOperator?(node.types=types,this.finishNode(node,kind)):types[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return !!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors}=this.state,previousErrorCount=errors.length;try{return this.parseObjectLike(8,!0),errors.length===previousErrorCount}catch(_unused){return !1}}if(this.match(0)){this.next();const{errors}=this.state,previousErrorCount=errors.length;try{return super.parseBindingList(3,93,!0),errors.length===previousErrorCount}catch(_unused2){return !1}}return !1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return !0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return !0;if(this.match(11)&&(this.next(),this.match(19)))return !0}return !1}tsParseTypeOrTypePredicateAnnotation(returnToken){return this.tsInType((()=>{const t=this.startNode();this.expect(returnToken);const node=this.startNode(),asserts=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(asserts&&this.match(78)){let thisTypePredicate=this.tsParseThisTypeOrThisTypePredicate();return "TSThisType"===thisTypePredicate.type?(node.parameterName=thisTypePredicate,node.asserts=!0,node.typeAnnotation=null,thisTypePredicate=this.finishNode(node,"TSTypePredicate")):(this.resetStartLocationFromNode(thisTypePredicate,node),thisTypePredicate.asserts=!0),t.typeAnnotation=thisTypePredicate,this.finishNode(t,"TSTypeAnnotation")}const typePredicateVariable=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!typePredicateVariable)return asserts?(node.parameterName=this.parseIdentifier(),node.asserts=asserts,node.typeAnnotation=null,t.typeAnnotation=this.finishNode(node,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const type=this.tsParseTypeAnnotation(!1);return node.parameterName=typePredicateVariable,node.typeAnnotation=type,node.asserts=asserts,t.typeAnnotation=this.finishNode(node,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const id=this.parseIdentifier();if(this.isContextual(113)&&!this.hasPrecedingLineBreak())return this.next(),id}tsParseTypePredicateAsserts(){if(106!==this.state.type)return !1;const containsEsc=this.state.containsEsc;return this.next(),!(!tokenIsIdentifier(this.state.type)&&!this.match(78))&&(containsEsc&&this.raise(Errors.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(eatColon=!0,t=this.startNode()){return this.tsInType((()=>{eatColon&&this.expect(14),t.typeAnnotation=this.tsParseType();})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const type=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return type;const node=this.startNodeAtNode(type);return node.checkType=type,node.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),node.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),node.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(node,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(TSErrors.ReservedTypeAssertion,{at:this.state.startLoc});const node=this.startNode(),_const=this.tsTryNextParseConstantContext();return node.typeAnnotation=_const||this.tsNextThenParseType(),this.expect(48),node.expression=this.parseMaybeUnary(),this.finishNode(node,"TSTypeAssertion")}tsParseHeritageClause(token){const originalStartLoc=this.state.startLoc,delimitedList=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const node=this.startNode();return node.expression=this.tsParseEntityName(),this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSExpressionWithTypeArguments")}));return delimitedList.length||this.raise(TSErrors.EmptyHeritageClauseType,{at:originalStartLoc,token}),delimitedList}tsParseInterfaceDeclaration(node,properties={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),properties.declare&&(node.declare=!0),tokenIsIdentifier(this.state.type)?(node.id=this.parseIdentifier(),this.checkIdentifier(node.id,130)):(node.id=null,this.raise(TSErrors.MissingInterfaceName,{at:this.state.startLoc})),node.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(81)&&(node.extends=this.tsParseHeritageClause("extends"));const body=this.startNode();return body.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),node.body=this.finishNode(body,"TSInterfaceBody"),this.finishNode(node,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(node){return node.id=this.parseIdentifier(),this.checkIdentifier(node.id,2),node.typeAnnotation=this.tsInType((()=>{if(node.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(29),this.isContextual(111)&&16!==this.lookahead().type){const node=this.startNode();return this.next(),this.finishNode(node,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(node,"TSTypeAliasDeclaration")}tsInNoContext(cb){const oldContext=this.state.context;this.state.context=[oldContext[0]];try{return cb()}finally{this.state.context=oldContext;}}tsInType(cb){const oldInType=this.state.inType;this.state.inType=!0;try{return cb()}finally{this.state.inType=oldInType;}}tsInDisallowConditionalTypesContext(cb){const oldInDisallowConditionalTypesContext=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return cb()}finally{this.state.inDisallowConditionalTypesContext=oldInDisallowConditionalTypesContext;}}tsInAllowConditionalTypesContext(cb){const oldInDisallowConditionalTypesContext=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return cb()}finally{this.state.inDisallowConditionalTypesContext=oldInDisallowConditionalTypesContext;}}tsEatThenParseType(token){return this.match(token)?this.tsNextThenParseType():void 0}tsExpectThenParseType(token){return this.tsDoThenParseType((()=>this.expect(token)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(cb){return this.tsInType((()=>(cb(),this.tsParseType())))}tsParseEnumMember(){const node=this.startNode();return node.id=this.match(129)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(node.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(node,"TSEnumMember")}tsParseEnumDeclaration(node,properties={}){return properties.const&&(node.const=!0),properties.declare&&(node.declare=!0),this.expectContextual(122),node.id=this.parseIdentifier(),this.checkIdentifier(node.id,node.const?779:267),this.expect(5),node.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(node,"TSEnumDeclaration")}tsParseModuleBlock(){const node=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(node.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(node,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(node,nested=!1){if(node.id=this.parseIdentifier(),nested||this.checkIdentifier(node.id,1024),this.eat(16)){const inner=this.startNode();this.tsParseModuleOrNamespaceDeclaration(inner,!0),node.body=inner;}else this.scope.enter(256),this.prodParam.enter(0),node.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(node,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(node){return this.isContextual(109)?(node.global=!0,node.id=this.parseIdentifier()):this.match(129)?node.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),node.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(node,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(node,isExport){node.isExport=isExport||!1,node.id=this.parseIdentifier(),this.checkIdentifier(node.id,9),this.expect(29);const moduleReference=this.tsParseModuleReference();return "type"===node.importKind&&"TSExternalModuleReference"!==moduleReference.type&&this.raise(TSErrors.ImportAliasHasImportType,{at:moduleReference}),node.moduleReference=moduleReference,this.semicolon(),this.finishNode(node,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(116)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const node=this.startNode();if(this.expectContextual(116),this.expect(10),!this.match(129))throw this.unexpected();return node.expression=super.parseExprAtom(),this.expect(11),this.finishNode(node,"TSExternalModuleReference")}tsLookAhead(f){const state=this.state.clone(),res=f();return this.state=state,res}tsTryParseAndCatch(f){const result=this.tryParse((abort=>f()||abort()));if(!result.aborted&&result.node)return result.error&&(this.state=result.failState),result.node}tsTryParse(f){const state=this.state.clone(),result=f();return void 0!==result&&!1!==result?result:void(this.state=state)}tsTryParseDeclare(nany){if(this.isLineTerminator())return;let kind,starttype=this.state.type;return this.isContextual(99)&&(starttype=74,kind="let"),this.tsInAmbientContext((()=>{if(68===starttype)return nany.declare=!0,super.parseFunctionStatement(nany,!1,!0);if(80===starttype)return nany.declare=!0,this.parseClass(nany,!0,!1);if(122===starttype)return this.tsParseEnumDeclaration(nany,{declare:!0});if(109===starttype)return this.tsParseAmbientExternalModuleDeclaration(nany);if(75===starttype||74===starttype)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(nany,{const:!0,declare:!0})):(nany.declare=!0,this.parseVarStatement(nany,kind||this.state.value,!0));if(125===starttype){const result=this.tsParseInterfaceDeclaration(nany,{declare:!0});if(result)return result}return tokenIsIdentifier(starttype)?this.tsParseDeclaration(nany,this.state.value,!0):void 0}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(node,expr){switch(expr.name){case"declare":{const declaration=this.tsTryParseDeclare(node);if(declaration)return declaration.declare=!0,declaration;break}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const mod=node;return mod.global=!0,mod.id=expr,mod.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(mod,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(node,expr.name,!1)}}tsParseDeclaration(node,value,next){switch(value){case"abstract":if(this.tsCheckLineTerminator(next)&&(this.match(80)||tokenIsIdentifier(this.state.type)))return this.tsParseAbstractDeclaration(node);break;case"module":if(this.tsCheckLineTerminator(next)){if(this.match(129))return this.tsParseAmbientExternalModuleDeclaration(node);if(tokenIsIdentifier(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(node)}break;case"namespace":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(node);break;case"type":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseTypeAliasDeclaration(node)}}tsCheckLineTerminator(next){return next?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(startPos,startLoc){if(!this.match(47))return;const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const res=this.tsTryParseAndCatch((()=>{const node=this.startNodeAt(startPos,startLoc);return node.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(node),node.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),node}));return this.state.maybeInArrowParameters=oldMaybeInArrowParameters,res?super.parseArrowExpression(res,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const node=this.startNode();return node.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===node.params.length&&this.raise(TSErrors.EmptyTypeArguments,{at:node}),this.expect(48),this.finishNode(node,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return (token=this.state.type)>=120&&token<=126;var token;}isExportDefaultSpecifier(){return !this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(allowModifiers,decorators){const startPos=this.state.start,startLoc=this.state.startLoc;let accessibility,readonly=!1,override=!1;if(void 0!==allowModifiers){const modified={};this.tsParseModifiers({modified,allowedModifiers:["public","private","protected","override","readonly"]}),accessibility=modified.accessibility,override=modified.override,readonly=modified.readonly,!1===allowModifiers&&(accessibility||readonly||override)&&this.raise(TSErrors.UnexpectedParameterModifier,{at:startLoc});}const left=this.parseMaybeDefault();this.parseAssignableListItemTypes(left);const elt=this.parseMaybeDefault(left.start,left.loc.start,left);if(accessibility||readonly||override){const pp=this.startNodeAt(startPos,startLoc);return decorators.length&&(pp.decorators=decorators),accessibility&&(pp.accessibility=accessibility),readonly&&(pp.readonly=readonly),override&&(pp.override=override),"Identifier"!==elt.type&&"AssignmentPattern"!==elt.type&&this.raise(TSErrors.UnsupportedParameterPropertyKind,{at:pp}),pp.parameter=elt,this.finishNode(pp,"TSParameterProperty")}return decorators.length&&(left.decorators=decorators),elt}isSimpleParameter(node){return "TSParameterProperty"===node.type&&super.isSimpleParameter(node.parameter)||super.isSimpleParameter(node)}parseFunctionBodyAndFinish(node,type,isMethod=!1){this.match(14)&&(node.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const bodilessType="FunctionDeclaration"===type?"TSDeclareFunction":"ClassMethod"===type||"ClassPrivateMethod"===type?"TSDeclareMethod":void 0;return bodilessType&&!this.match(5)&&this.isLineTerminator()?this.finishNode(node,bodilessType):"TSDeclareFunction"===bodilessType&&this.state.isAmbientContext&&(this.raise(TSErrors.DeclareFunctionHasImplementation,{at:node}),node.declare)?super.parseFunctionBodyAndFinish(node,bodilessType,isMethod):super.parseFunctionBodyAndFinish(node,type,isMethod)}registerFunctionStatementId(node){!node.body&&node.id?this.checkIdentifier(node.id,1024):super.registerFunctionStatementId(node);}tsCheckForInvalidTypeCasts(items){items.forEach((node=>{"TSTypeCastExpression"===(null==node?void 0:node.type)&&this.raise(TSErrors.UnexpectedTypeAnnotation,{at:node.typeAnnotation});}));}toReferencedList(exprList,isInParens){return this.tsCheckForInvalidTypeCasts(exprList),exprList}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){const node=super.parseArrayLike(close,canBePattern,isTuple,refExpressionErrors);return "ArrayExpression"===node.type&&this.tsCheckForInvalidTypeCasts(node.elements),node}parseSubscript(base,startPos,startLoc,noCalls,state){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const nonNullExpression=this.startNodeAt(startPos,startLoc);return nonNullExpression.expression=base,this.finishNode(nonNullExpression,"TSNonNullExpression")}let isOptionalCall=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(noCalls)return state.stop=!0,base;state.optionalChainMember=isOptionalCall=!0,this.next();}if(this.match(47)||this.match(51)){let missingParenErrorLoc;const result=this.tsTryParseAndCatch((()=>{if(!noCalls&&this.atPossibleAsyncArrow(base)){const asyncArrowFn=this.tsTryParseGenericAsyncArrowFunction(startPos,startLoc);if(asyncArrowFn)return asyncArrowFn}const typeArguments=this.tsParseTypeArgumentsInExpression();if(!typeArguments)return;if(isOptionalCall&&!this.match(10))return void(missingParenErrorLoc=this.state.curPosition());if(tokenIsTemplate(this.state.type)){const result=super.parseTaggedTemplateExpression(base,startPos,startLoc,state);return result.typeParameters=typeArguments,result}if(!noCalls&&this.eat(10)){const node=this.startNodeAt(startPos,startLoc);return node.callee=base,node.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(node.arguments),node.typeParameters=typeArguments,state.optionalChainMember&&(node.optional=isOptionalCall),this.finishCallExpression(node,state.optionalChainMember)}const tokenType=this.state.type;if(48===tokenType||10!==tokenType&&tokenCanStartExpression(tokenType)&&!this.hasPrecedingLineBreak())return;const node=this.startNodeAt(startPos,startLoc);return node.expression=base,node.typeParameters=typeArguments,this.finishNode(node,"TSInstantiationExpression")}));if(missingParenErrorLoc&&this.unexpected(missingParenErrorLoc,10),result)return "TSInstantiationExpression"===result.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(TSErrors.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),result}return super.parseSubscript(base,startPos,startLoc,noCalls,state)}parseNewCallee(node){var _callee$extra;super.parseNewCallee(node);const{callee}=node;"TSInstantiationExpression"!==callee.type||null!=(_callee$extra=callee.extra)&&_callee$extra.parenthesized||(node.typeParameters=callee.typeParameters,node.callee=callee.expression);}parseExprOp(left,leftStartPos,leftStartLoc,minPrec){if(tokenOperatorPrecedence(58)>minPrec&&!this.hasPrecedingLineBreak()&&this.isContextual(93)){const node=this.startNodeAt(leftStartPos,leftStartLoc);node.expression=left;const _const=this.tsTryNextParseConstantContext();return node.typeAnnotation=_const||this.tsNextThenParseType(),this.finishNode(node,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec)}return super.parseExprOp(left,leftStartPos,leftStartLoc,minPrec)}checkReservedWord(word,startLoc,checkKeywords,isBinding){this.state.isAmbientContext||super.checkReservedWord(word,startLoc,checkKeywords,isBinding);}checkDuplicateExports(){}parseImport(node){if(node.importKind="value",tokenIsIdentifier(this.state.type)||this.match(55)||this.match(5)){let ahead=this.lookahead();if(this.isContextual(126)&&12!==ahead.type&&97!==ahead.type&&29!==ahead.type&&(node.importKind="type",this.next(),ahead=this.lookahead()),tokenIsIdentifier(this.state.type)&&29===ahead.type)return this.tsParseImportEqualsDeclaration(node)}const importNode=super.parseImport(node);return "type"===importNode.importKind&&importNode.specifiers.length>1&&"ImportDefaultSpecifier"===importNode.specifiers[0].type&&this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed,{at:importNode}),importNode}parseExport(node){if(this.match(83))return this.next(),this.isContextual(126)&&61!==this.lookaheadCharCode()?(node.importKind="type",this.next()):node.importKind="value",this.tsParseImportEqualsDeclaration(node,!0);if(this.eat(29)){const assign=node;return assign.expression=super.parseExpression(),this.semicolon(),this.finishNode(assign,"TSExportAssignment")}if(this.eatContextual(93)){const decl=node;return this.expectContextual(124),decl.id=this.parseIdentifier(),this.semicolon(),this.finishNode(decl,"TSNamespaceExportDeclaration")}return this.isContextual(126)&&5===this.lookahead().type?(this.next(),node.exportKind="type"):node.exportKind="value",super.parseExport(node)}isAbstractClass(){return this.isContextual(120)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const cls=this.startNode();return this.next(),cls.abstract=!0,this.parseClass(cls,!0,!0)}if(this.match(125)){const result=this.tsParseInterfaceDeclaration(this.startNode());if(result)return result}return super.parseExportDefaultExpression()}parseVarStatement(node,kind,allowMissingInitializer=!1){const{isAmbientContext}=this.state,declaration=super.parseVarStatement(node,kind,allowMissingInitializer||isAmbientContext);if(!isAmbientContext)return declaration;for(const{id,init}of declaration.declarations)init&&("const"!==kind||id.typeAnnotation?this.raise(TSErrors.InitializerNotAllowedInAmbientContext,{at:init}):"StringLiteral"!==init.type&&"BooleanLiteral"!==init.type&&"NumericLiteral"!==init.type&&"BigIntLiteral"!==init.type&&("TemplateLiteral"!==init.type||init.expressions.length>0)&&!isPossiblyLiteralEnum(init)&&this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:init}));return declaration}parseStatementContent(context,topLevel){if(this.match(75)&&this.isLookaheadContextual("enum")){const node=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(node,{const:!0})}if(this.isContextual(122))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(125)){const result=this.tsParseInterfaceDeclaration(this.startNode());if(result)return result}return super.parseStatementContent(context,topLevel)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(member,modifiers){return modifiers.some((modifier=>tsIsAccessModifier(modifier)?member.accessibility===modifier:!!member[modifier]))}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}parseClassMember(classBody,member,state){const modifiers=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({modified:member,allowedModifiers:modifiers,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:TSErrors.InvalidModifierOnTypeParameterPositions});const callParseClassMemberWithIsStatic=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(member,modifiers)&&this.raise(TSErrors.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(classBody,member)):this.parseClassMemberWithIsStatic(classBody,member,state,!!member.static);};member.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic();}parseClassMemberWithIsStatic(classBody,member,state,isStatic){const idx=this.tsTryParseIndexSignature(member);if(idx)return classBody.body.push(idx),member.abstract&&this.raise(TSErrors.IndexSignatureHasAbstract,{at:member}),member.accessibility&&this.raise(TSErrors.IndexSignatureHasAccessibility,{at:member,modifier:member.accessibility}),member.declare&&this.raise(TSErrors.IndexSignatureHasDeclare,{at:member}),void(member.override&&this.raise(TSErrors.IndexSignatureHasOverride,{at:member}));!this.state.inAbstractClass&&member.abstract&&this.raise(TSErrors.NonAbstractClassHasAbstractMethod,{at:member}),member.override&&(state.hadSuperClass||this.raise(TSErrors.OverrideNotInSubClass,{at:member})),super.parseClassMemberWithIsStatic(classBody,member,state,isStatic);}parsePostMemberNameModifiers(methodOrProp){this.eat(17)&&(methodOrProp.optional=!0),methodOrProp.readonly&&this.match(10)&&this.raise(TSErrors.ClassMethodHasReadonly,{at:methodOrProp}),methodOrProp.declare&&this.match(10)&&this.raise(TSErrors.ClassMethodHasDeclare,{at:methodOrProp});}parseExpressionStatement(node,expr){return ("Identifier"===expr.type?this.tsParseExpressionStatement(node,expr):void 0)||super.parseExpressionStatement(node,expr)}shouldParseExportDeclaration(){return !!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(expr,startPos,startLoc,refExpressionErrors);const result=this.tryParse((()=>super.parseConditional(expr,startPos,startLoc)));return result.node?(result.error&&(this.state=result.failState),result.node):(result.error&&super.setOptionalParametersError(refExpressionErrors,result.error),expr)}parseParenItem(node,startPos,startLoc){if(node=super.parseParenItem(node,startPos,startLoc),this.eat(17)&&(node.optional=!0,this.resetEndLocation(node)),this.match(14)){const typeCastNode=this.startNodeAt(startPos,startLoc);return typeCastNode.expression=node,typeCastNode.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(typeCastNode,"TSTypeCastExpression")}return node}parseExportDeclaration(node){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext((()=>this.parseExportDeclaration(node)));const startPos=this.state.start,startLoc=this.state.startLoc,isDeclare=this.eatContextual(121);if(isDeclare&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});const declaration=tokenIsIdentifier(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(node);return declaration?(("TSInterfaceDeclaration"===declaration.type||"TSTypeAliasDeclaration"===declaration.type||isDeclare)&&(node.exportKind="type"),isDeclare&&(this.resetStartLocation(declaration,startPos,startLoc),declaration.declare=!0),declaration):null}parseClassId(node,isStatement,optionalId,bindingType){if((!isStatement||optionalId)&&this.isContextual(110))return;super.parseClassId(node,isStatement,optionalId,node.declare?1024:139);const typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));typeParameters&&(node.typeParameters=typeParameters);}parseClassPropertyAnnotation(node){!node.optional&&this.eat(35)&&(node.definite=!0);const type=this.tsTryParseTypeAnnotation();type&&(node.typeAnnotation=type);}parseClassProperty(node){if(this.parseClassPropertyAnnotation(node),this.state.isAmbientContext&&(!node.readonly||node.typeAnnotation)&&this.match(29)&&this.raise(TSErrors.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),node.abstract&&this.match(29)){const{key}=node;this.raise(TSErrors.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==key.type||node.computed?`[${this.input.slice(key.start,key.end)}]`:key.name});}return super.parseClassProperty(node)}parseClassPrivateProperty(node){return node.abstract&&this.raise(TSErrors.PrivateElementHasAbstract,{at:node}),node.accessibility&&this.raise(TSErrors.PrivateElementHasAccessibility,{at:node,modifier:node.accessibility}),this.parseClassPropertyAnnotation(node),super.parseClassPrivateProperty(node)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&isConstructor&&this.raise(TSErrors.ConstructorHasTypeParameters,{at:typeParameters});const{declare=!1,kind}=method;!declare||"get"!==kind&&"set"!==kind||this.raise(TSErrors.DeclareAccessor,{at:method,kind}),typeParameters&&(method.typeParameters=typeParameters),super.pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper);}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(method.typeParameters=typeParameters),super.pushClassPrivateMethod(classBody,method,isGenerator,isAsync);}declareClassPrivateMethodInScope(node,kind){"TSDeclareMethod"!==node.type&&("MethodDefinition"!==node.type||node.value.body)&&super.declareClassPrivateMethodInScope(node,kind);}parseClassSuper(node){super.parseClassSuper(node),node.superClass&&(this.match(47)||this.match(51))&&(node.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(110)&&(node.implements=this.tsParseHeritageClause("implements"));}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){const typeParameters=this.tsTryParseTypeParameters();return typeParameters&&(prop.typeParameters=typeParameters),super.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors)}parseFunctionParams(node,allowModifiers){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(node.typeParameters=typeParameters),super.parseFunctionParams(node,allowModifiers);}parseVarId(decl,kind){super.parseVarId(decl,kind),"Identifier"===decl.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(decl.definite=!0);const type=this.tsTryParseTypeAnnotation();type&&(decl.id.typeAnnotation=type,this.resetEndLocation(decl.id));}parseAsyncArrowFromCallExpression(node,call){return this.match(14)&&(node.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(node,call)}parseMaybeAssign(refExpressionErrors,afterLeftParse){var _jsx,_jsx2,_typeCast,_jsx3,_typeCast2,_jsx4,_typeCast3;let state,jsx,typeCast,typeParameters;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(state=this.state.clone(),jsx=this.tryParse((()=>super.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!jsx.error)return jsx.node;const{context}=this.state,currentContext=context[context.length-1];currentContext!==types.j_oTag&&currentContext!==types.j_expr||context.pop();}if(!(null!=(_jsx=jsx)&&_jsx.error||this.match(47)))return super.parseMaybeAssign(refExpressionErrors,afterLeftParse);state&&state!==this.state||(state=this.state.clone());const arrow=this.tryParse((abort=>{var _expr$extra,_typeParameters;typeParameters=this.tsParseTypeParameters();const expr=super.parseMaybeAssign(refExpressionErrors,afterLeftParse);return ("ArrowFunctionExpression"!==expr.type||null!=(_expr$extra=expr.extra)&&_expr$extra.parenthesized)&&abort(),0!==(null==(_typeParameters=typeParameters)?void 0:_typeParameters.params.length)&&this.resetStartLocationFromNode(expr,typeParameters),expr.typeParameters=typeParameters,expr}),state);if(!arrow.error&&!arrow.aborted)return typeParameters&&this.reportReservedArrowTypeParam(typeParameters),arrow.node;if(!jsx&&(assert(!this.hasPlugin("jsx")),typeCast=this.tryParse((()=>super.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!typeCast.error))return typeCast.node;if(null!=(_jsx2=jsx)&&_jsx2.node)return this.state=jsx.failState,jsx.node;if(arrow.node)return this.state=arrow.failState,typeParameters&&this.reportReservedArrowTypeParam(typeParameters),arrow.node;if(null!=(_typeCast=typeCast)&&_typeCast.node)return this.state=typeCast.failState,typeCast.node;if(null!=(_jsx3=jsx)&&_jsx3.thrown)throw jsx.error;if(arrow.thrown)throw arrow.error;if(null!=(_typeCast2=typeCast)&&_typeCast2.thrown)throw typeCast.error;throw (null==(_jsx4=jsx)?void 0:_jsx4.error)||arrow.error||(null==(_typeCast3=typeCast)?void 0:_typeCast3.error)}reportReservedArrowTypeParam(node){var _node$extra;1!==node.params.length||null!=(_node$extra=node.extra)&&_node$extra.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(TSErrors.ReservedArrowTypeParam,{at:node});}parseMaybeUnary(refExpressionErrors,sawUnary){return !this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(refExpressionErrors,sawUnary)}parseArrow(node){if(this.match(14)){const result=this.tryParse((abort=>{const returnType=this.tsParseTypeOrTypePredicateAnnotation(14);return !this.canInsertSemicolon()&&this.match(19)||abort(),returnType}));if(result.aborted)return;result.thrown||(result.error&&(this.state=result.failState),node.returnType=result.node);}return super.parseArrow(node)}parseAssignableListItemTypes(param){this.eat(17)&&("Identifier"===param.type||this.state.isAmbientContext||this.state.inType||this.raise(TSErrors.PatternIsOptional,{at:param}),param.optional=!0);const type=this.tsTryParseTypeAnnotation();return type&&(param.typeAnnotation=type),this.resetEndLocation(param),param}isAssignable(node,isBinding){switch(node.type){case"TSTypeCastExpression":return this.isAssignable(node.expression,isBinding);case"TSParameterProperty":return !0;default:return super.isAssignable(node,isBinding)}}toAssignable(node,isLHS=!1){switch(node.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(node,isLHS);break;case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":isLHS?this.expressionScope.recordArrowParemeterBindingError(TSErrors.UnexpectedTypeCastInParameter,{at:node}):this.raise(TSErrors.UnexpectedTypeCastInParameter,{at:node}),this.toAssignable(node.expression,isLHS);break;case"AssignmentExpression":isLHS||"TSTypeCastExpression"!==node.left.type||(node.left=this.typeCastToParameter(node.left));default:super.toAssignable(node,isLHS);}}toAssignableParenthesizedExpression(node,isLHS){switch(node.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(node.expression,isLHS);break;default:super.toAssignable(node,isLHS);}}checkToRestConversion(node,allowPattern){switch(node.type){case"TSAsExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(node.expression,!1);break;default:super.checkToRestConversion(node,allowPattern);}}isValidLVal(type,isUnparenthesizedInAssign,binding){return object={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==binding||!isUnparenthesizedInAssign)&&["expression",!0],TSTypeAssertion:(64!==binding||!isUnparenthesizedInAssign)&&["expression",!0]},key=type,Object.hasOwnProperty.call(object,key)&&object[key]||super.isValidLVal(type,isUnparenthesizedInAssign,binding);var object,key;}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(expr){if(this.match(47)||this.match(51)){const typeArguments=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const call=super.parseMaybeDecoratorArguments(expr);return call.typeParameters=typeArguments,call}this.unexpected(null,10);}return super.parseMaybeDecoratorArguments(expr)}checkCommaAfterRest(close){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===close?(this.next(),!1):super.checkCommaAfterRest(close)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(startPos,startLoc,left){const node=super.parseMaybeDefault(startPos,startLoc,left);return "AssignmentPattern"===node.type&&node.typeAnnotation&&node.right.start<node.typeAnnotation.start&&this.raise(TSErrors.TypeAnnotationAfterAssign,{at:node.typeAnnotation}),node}getTokenFromCode(code){if(this.state.inType){if(62===code)return this.finishOp(48,1);if(60===code)return this.finishOp(47,1)}return super.getTokenFromCode(code)}reScan_lt_gt(){const{type}=this.state;47===type?(this.state.pos-=1,this.readToken_lt()):48===type&&(this.state.pos-=1,this.readToken_gt());}reScan_lt(){const{type}=this.state;return 51===type?(this.state.pos-=2,this.finishOp(47,1),47):type}toAssignableList(exprList,trailingCommaLoc,isLHS){for(let i=0;i<exprList.length;i++){const expr=exprList[i];"TSTypeCastExpression"===(null==expr?void 0:expr.type)&&(exprList[i]=this.typeCastToParameter(expr));}super.toAssignableList(exprList,trailingCommaLoc,isLHS);}typeCastToParameter(node){return node.expression.typeAnnotation=node.typeAnnotation,this.resetEndLocation(node.expression,node.typeAnnotation.loc.end),node.expression}shouldParseArrow(params){return this.match(14)?params.every((expr=>this.isAssignable(expr,!0))):super.shouldParseArrow(params)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(node){if(this.match(47)||this.match(51)){const typeArguments=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));typeArguments&&(node.typeParameters=typeArguments);}return super.jsxParseOpeningElementAfterName(node)}getGetterSetterExpectedParamCount(method){const baseCount=super.getGetterSetterExpectedParamCount(method),firstParam=this.getObjectOrClassMethodParams(method)[0];return firstParam&&this.isThisParam(firstParam)?baseCount+1:baseCount}parseCatchClauseParam(){const param=super.parseCatchClauseParam(),type=this.tsTryParseTypeAnnotation();return type&&(param.typeAnnotation=type,this.resetEndLocation(param)),param}tsInAmbientContext(cb){const oldIsAmbientContext=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return cb()}finally{this.state.isAmbientContext=oldIsAmbientContext;}}parseClass(node,isStatement,optionalId){const oldInAbstractClass=this.state.inAbstractClass;this.state.inAbstractClass=!!node.abstract;try{return super.parseClass(node,isStatement,optionalId)}finally{this.state.inAbstractClass=oldInAbstractClass;}}tsParseAbstractDeclaration(node){if(this.match(80))return node.abstract=!0,this.parseClass(node,!0,!1);if(this.isContextual(125)){if(!this.hasFollowingLineBreak())return node.abstract=!0,this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer,{at:node}),this.tsParseInterfaceDeclaration(node)}else this.unexpected(null,80);}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope){const method=super.parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope);if(method.abstract){if(this.hasPlugin("estree")?!!method.value.body:!!method.body){const{key}=method;this.raise(TSErrors.AbstractMethodHasImplementation,{at:method,methodName:"Identifier"!==key.type||method.computed?`[${this.input.slice(key.start,key.end)}]`:key.name});}}return method}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return !!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly){return !isString&&isMaybeTypeOnly?(this.parseTypeOnlyImportExportSpecifier(node,!1,isInTypeExport),this.finishNode(node,"ExportSpecifier")):(node.exportKind="value",super.parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly))}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly){return !importedIsString&&isMaybeTypeOnly?(this.parseTypeOnlyImportExportSpecifier(specifier,!0,isInTypeOnlyImport),this.finishNode(specifier,"ImportSpecifier")):(specifier.importKind="value",super.parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly))}parseTypeOnlyImportExportSpecifier(node,isImport,isInTypeOnlyImportExport){const leftOfAsKey=isImport?"imported":"local",rightOfAsKey=isImport?"local":"exported";let rightOfAs,leftOfAs=node[leftOfAsKey],hasTypeSpecifier=!1,canParseAsKeyword=!0;const loc=leftOfAs.loc.start;if(this.isContextual(93)){const firstAs=this.parseIdentifier();if(this.isContextual(93)){const secondAs=this.parseIdentifier();tokenIsKeywordOrIdentifier(this.state.type)?(hasTypeSpecifier=!0,leftOfAs=firstAs,rightOfAs=isImport?this.parseIdentifier():this.parseModuleExportName(),canParseAsKeyword=!1):(rightOfAs=secondAs,canParseAsKeyword=!1);}else tokenIsKeywordOrIdentifier(this.state.type)?(canParseAsKeyword=!1,rightOfAs=isImport?this.parseIdentifier():this.parseModuleExportName()):(hasTypeSpecifier=!0,leftOfAs=firstAs);}else tokenIsKeywordOrIdentifier(this.state.type)&&(hasTypeSpecifier=!0,isImport?(leftOfAs=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(leftOfAs.name,leftOfAs.loc.start,!0,!0)):leftOfAs=this.parseModuleExportName());hasTypeSpecifier&&isInTypeOnlyImportExport&&this.raise(isImport?TSErrors.TypeModifierIsUsedInTypeImports:TSErrors.TypeModifierIsUsedInTypeExports,{at:loc}),node[leftOfAsKey]=leftOfAs,node[rightOfAsKey]=rightOfAs;node[isImport?"importKind":"exportKind"]=hasTypeSpecifier?"type":"value",canParseAsKeyword&&this.eatContextual(93)&&(node[rightOfAsKey]=isImport?this.parseIdentifier():this.parseModuleExportName()),node[rightOfAsKey]||(node[rightOfAsKey]=cloneIdentifier(node[leftOfAsKey])),isImport&&this.checkIdentifier(node[rightOfAsKey],9);}},v8intrinsic:superClass=>class extends superClass{parseV8Intrinsic(){if(this.match(54)){const v8IntrinsicStartLoc=this.state.startLoc,node=this.startNode();if(this.next(),tokenIsIdentifier(this.state.type)){const name=this.parseIdentifierName(this.state.start),identifier=this.createIdentifier(node,name);if(identifier.type="V8IntrinsicIdentifier",this.match(10))return identifier}this.unexpected(v8IntrinsicStartLoc);}}parseExprAtom(refExpressionErrors){return this.parseV8Intrinsic()||super.parseExprAtom(refExpressionErrors)}},placeholders:superClass=>class extends superClass{parsePlaceholder(expectedNode){if(this.match(140)){const node=this.startNode();return this.next(),this.assertNoSpace(),node.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(140),this.finishPlaceholder(node,expectedNode)}}finishPlaceholder(node,expectedNode){const isFinished=!(!node.expectedNode||"Placeholder"!==node.type);return node.expectedNode=expectedNode,isFinished?node:this.finishNode(node,"Placeholder")}getTokenFromCode(code){return 37===code&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(140,2):super.getTokenFromCode(code)}parseExprAtom(refExpressionErrors){return this.parsePlaceholder("Expression")||super.parseExprAtom(refExpressionErrors)}parseIdentifier(liberal){return this.parsePlaceholder("Identifier")||super.parseIdentifier(liberal)}checkReservedWord(word,startLoc,checkKeywords,isBinding){void 0!==word&&super.checkReservedWord(word,startLoc,checkKeywords,isBinding);}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(type,isParenthesized,binding){return "Placeholder"===type||super.isValidLVal(type,isParenthesized,binding)}toAssignable(node,isLHS){node&&"Placeholder"===node.type&&"Expression"===node.expectedNode?node.expectedNode="Pattern":super.toAssignable(node,isLHS);}isLet(context){if(super.isLet(context))return !0;if(!this.isContextual(99))return !1;if(context)return !1;return 140===this.lookahead().type}verifyBreakContinue(node,isBreak){node.label&&"Placeholder"===node.label.type||super.verifyBreakContinue(node,isBreak);}parseExpressionStatement(node,expr){if("Placeholder"!==expr.type||expr.extra&&expr.extra.parenthesized)return super.parseExpressionStatement(node,expr);if(this.match(14)){const stmt=node;return stmt.label=this.finishPlaceholder(expr,"Identifier"),this.next(),stmt.body=super.parseStatement("label"),this.finishNode(stmt,"LabeledStatement")}return this.semicolon(),node.name=expr.name,this.finishPlaceholder(node,"Statement")}parseBlock(allowDirectives,createNewLexicalScope,afterBlockParse){return this.parsePlaceholder("BlockStatement")||super.parseBlock(allowDirectives,createNewLexicalScope,afterBlockParse)}parseFunctionId(requireId){return this.parsePlaceholder("Identifier")||super.parseFunctionId(requireId)}parseClass(node,isStatement,optionalId){const type=isStatement?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(node);const oldStrict=this.state.strict,placeholder=this.parsePlaceholder("Identifier");if(placeholder){if(!(this.match(81)||this.match(140)||this.match(5))){if(optionalId||!isStatement)return node.id=null,node.body=this.finishPlaceholder(placeholder,"ClassBody"),this.finishNode(node,type);throw this.raise(PlaceholderErrors.ClassNameIsRequired,{at:this.state.startLoc})}node.id=placeholder;}else this.parseClassId(node,isStatement,optionalId);return super.parseClassSuper(node),node.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!node.superClass,oldStrict),this.finishNode(node,type)}parseExport(node){const placeholder=this.parsePlaceholder("Identifier");if(!placeholder)return super.parseExport(node);if(!this.isContextual(97)&&!this.match(12))return node.specifiers=[],node.source=null,node.declaration=this.finishPlaceholder(placeholder,"Declaration"),this.finishNode(node,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const specifier=this.startNode();return specifier.exported=placeholder,node.specifiers=[this.finishNode(specifier,"ExportDefaultSpecifier")],super.parseExport(node)}isExportDefaultSpecifier(){if(this.match(65)){const next=this.nextTokenStart();if(this.isUnparsedContextual(next,"from")&&this.input.startsWith(tokenLabelName(140),this.nextTokenStartSince(next+4)))return !0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(node){return !!(node.specifiers&&node.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(node)}checkExport(node){const{specifiers}=node;null!=specifiers&&specifiers.length&&(node.specifiers=specifiers.filter((node=>"Placeholder"===node.exported.type))),super.checkExport(node),node.specifiers=specifiers;}parseImport(node){const placeholder=this.parsePlaceholder("Identifier");if(!placeholder)return super.parseImport(node);if(node.specifiers=[],!this.isContextual(97)&&!this.match(12))return node.source=this.finishPlaceholder(placeholder,"StringLiteral"),this.semicolon(),this.finishNode(node,"ImportDeclaration");const specifier=this.startNodeAtNode(placeholder);if(specifier.local=placeholder,node.specifiers.push(this.finishNode(specifier,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(node)||this.parseNamedImportSpecifiers(node);}return this.expectContextual(97),node.source=this.parseImportSource(),this.semicolon(),this.finishNode(node,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(PlaceholderErrors.UnexpectedSpace,{at:this.state.lastTokEndLoc});}}},mixinPluginNames=Object.keys(mixinPlugins),defaultOptions={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};const unwrapParenthesizedExpression=node=>"ParenthesizedExpression"===node.type?unwrapParenthesizedExpression(node.expression):node;const loopLabel={kind:"loop"},switchLabel={kind:"switch"},loneSurrogate=/[\uD800-\uDFFF]/u,keywordRelationalOperator=/in(?:stanceof)?/y;class Parser extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1;}hasPlugin(pluginConfig){if("string"==typeof pluginConfig)return this.plugins.has(pluginConfig);{const[pluginName,pluginOptions]=pluginConfig;if(!this.hasPlugin(pluginName))return !1;const actualOptions=this.plugins.get(pluginName);for(const key of Object.keys(pluginOptions))if((null==actualOptions?void 0:actualOptions[key])!==pluginOptions[key])return !1;return !0}}getPluginOption(plugin,name){var _this$plugins$get;return null==(_this$plugins$get=this.plugins.get(plugin))?void 0:_this$plugins$get[name]}}{addComment(comment){this.filename&&(comment.loc.filename=this.filename),this.state.comments.push(comment);}processComment(node){const{commentStack}=this.state,commentStackLength=commentStack.length;if(0===commentStackLength)return;let i=commentStackLength-1;const lastCommentWS=commentStack[i];lastCommentWS.start===node.end&&(lastCommentWS.leadingNode=node,i--);const{start:nodeStart}=node;for(;i>=0;i--){const commentWS=commentStack[i],commentEnd=commentWS.end;if(!(commentEnd>nodeStart)){commentEnd===nodeStart&&(commentWS.trailingNode=node);break}commentWS.containingNode=node,this.finalizeComment(commentWS),commentStack.splice(i,1);}}finalizeComment(commentWS){const{comments}=commentWS;if(null!==commentWS.leadingNode||null!==commentWS.trailingNode)null!==commentWS.leadingNode&&setTrailingComments(commentWS.leadingNode,comments),null!==commentWS.trailingNode&&function(node,comments){void 0===node.leadingComments?node.leadingComments=comments:node.leadingComments.unshift(...comments);}(commentWS.trailingNode,comments);else {const{containingNode:node,start:commentStart}=commentWS;if(44===this.input.charCodeAt(commentStart-1))switch(node.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(node,node.properties,commentWS);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(node,node.arguments,commentWS);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(node,node.params,commentWS);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(node,node.elements,commentWS);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(node,node.specifiers,commentWS);break;default:setInnerComments(node,comments);}else setInnerComments(node,comments);}}finalizeRemainingComments(){const{commentStack}=this.state;for(let i=commentStack.length-1;i>=0;i--)this.finalizeComment(commentStack[i]);this.state.commentStack=[];}resetPreviousNodeTrailingComments(node){const{commentStack}=this.state,{length}=commentStack;if(0===length)return;const commentWS=commentStack[length-1];commentWS.leadingNode===node&&(commentWS.leadingNode=null);}takeSurroundingComments(node,start,end){const{commentStack}=this.state,commentStackLength=commentStack.length;if(0===commentStackLength)return;let i=commentStackLength-1;for(;i>=0;i--){const commentWS=commentStack[i],commentEnd=commentWS.end;if(commentWS.start===end)commentWS.leadingNode=node;else if(commentEnd===start)commentWS.trailingNode=node;else if(commentEnd<start)break}}}{constructor(options,input){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(pos,lineStart,curLine,radix)=>!!this.options.errorRecovery&&(this.raise(Errors.InvalidDigit,{at:buildPosition(pos,lineStart,curLine),radix}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(Errors.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Errors.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Errors.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Errors.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(pos,lineStart,curLine)=>{this.recordStrictModeErrors(Errors.StrictNumericEscape,{at:buildPosition(pos,lineStart,curLine)});},unterminated:(pos,lineStart,curLine)=>{throw this.raise(Errors.UnterminatedString,{at:buildPosition(pos-1,lineStart,curLine)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Errors.StrictNumericEscape),unterminated:(pos,lineStart,curLine)=>{throw this.raise(Errors.UnterminatedTemplate,{at:buildPosition(pos,lineStart,curLine)})}}),this.state=new State,this.state.init(options),this.input=input,this.length=input.length,this.isLookahead=!1;}pushToken(token){this.tokens.length=this.state.tokensLength,this.tokens.push(token),++this.state.tokensLength;}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Token(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken();}eat(type){return !!this.match(type)&&(this.next(),!0)}match(type){return this.state.type===type}createLookaheadState(state){return {pos:state.pos,value:null,type:state.type,start:state.start,end:state.end,context:[this.curContext()],inType:state.inType,startLoc:state.startLoc,lastTokEndLoc:state.lastTokEndLoc,curLine:state.curLine,lineStart:state.lineStart,curPosition:state.curPosition}}lookahead(){const old=this.state;this.state=this.createLookaheadState(old),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const curr=this.state;return this.state=old,curr}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(pos){return skipWhiteSpace.lastIndex=pos,skipWhiteSpace.test(this.input)?skipWhiteSpace.lastIndex:pos}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(pos){let cp=this.input.charCodeAt(pos);if(55296==(64512&cp)&&++pos<this.input.length){const trail=this.input.charCodeAt(pos);56320==(64512&trail)&&(cp=65536+((1023&cp)<<10)+(1023&trail));}return cp}setStrict(strict){this.state.strict=strict,strict&&(this.state.strictErrors.forEach((([toParseError,at])=>this.raise(toParseError,{at}))),this.state.strictErrors.clear());}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(135):this.getTokenFromCode(this.codePointAtPos(this.state.pos));}skipBlockComment(){let startLoc;this.isLookahead||(startLoc=this.state.curPosition());const start=this.state.pos,end=this.input.indexOf("*/",start+2);if(-1===end)throw this.raise(Errors.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=end+2,lineBreakG.lastIndex=start+2;lineBreakG.test(this.input)&&lineBreakG.lastIndex<=end;)++this.state.curLine,this.state.lineStart=lineBreakG.lastIndex;if(this.isLookahead)return;const comment={type:"CommentBlock",value:this.input.slice(start+2,end),start,end:end+2,loc:new SourceLocation(startLoc,this.state.curPosition())};return this.options.tokens&&this.pushToken(comment),comment}skipLineComment(startSkip){const start=this.state.pos;let startLoc;this.isLookahead||(startLoc=this.state.curPosition());let ch=this.input.charCodeAt(this.state.pos+=startSkip);if(this.state.pos<this.length)for(;!isNewLine(ch)&&++this.state.pos<this.length;)ch=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const end=this.state.pos,comment={type:"CommentLine",value:this.input.slice(start+startSkip,end),start,end,loc:new SourceLocation(startLoc,this.state.curPosition())};return this.options.tokens&&this.pushToken(comment),comment}skipSpace(){const spaceStart=this.state.pos,comments=[];loop:for(;this.state.pos<this.length;){const ch=this.input.charCodeAt(this.state.pos);switch(ch){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const comment=this.skipBlockComment();void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));break}case 47:{const comment=this.skipLineComment(2);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));break}default:break loop}break;default:if(isWhitespace(ch))++this.state.pos;else if(45!==ch||this.inModule){if(60!==ch||this.inModule)break loop;{const pos=this.state.pos;if(33!==this.input.charCodeAt(pos+1)||45!==this.input.charCodeAt(pos+2)||45!==this.input.charCodeAt(pos+3))break loop;{const comment=this.skipLineComment(4);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));}}}else {const pos=this.state.pos;if(45!==this.input.charCodeAt(pos+1)||62!==this.input.charCodeAt(pos+2)||!(0===spaceStart||this.state.lineStart>spaceStart))break loop;{const comment=this.skipLineComment(3);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));}}}}if(comments.length>0){const commentWhitespace={start:spaceStart,end:this.state.pos,comments,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(commentWhitespace);}}finishToken(type,val){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const prevType=this.state.type;this.state.type=type,this.state.value=val,this.isLookahead||this.updateContext(prevType);}replaceToken(type){this.state.type=type,this.updateContext();}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const nextPos=this.state.pos+1,next=this.codePointAtPos(nextPos);if(next>=48&&next<=57)throw this.raise(Errors.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===next||91===next&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===next?Errors.RecordExpressionHashIncorrectStartSyntaxType:Errors.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===next?this.finishToken(7):this.finishToken(1);}else isIdentifierStart(next)?(++this.state.pos,this.finishToken(134,this.readWord1(next))):92===next?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(27,1);}readToken_dot(){const next=this.input.charCodeAt(this.state.pos+1);next>=48&&next<=57?this.readNumber(!0):46===next&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16));}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1);}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return !1;let ch=this.input.charCodeAt(this.state.pos+1);if(33!==ch)return !1;const start=this.state.pos;for(this.state.pos+=1;!isNewLine(ch)&&++this.state.pos<this.length;)ch=this.input.charCodeAt(this.state.pos);const value=this.input.slice(start+2,this.state.pos);return this.finishToken(28,value),!0}readToken_mult_modulo(code){let type=42===code?55:54,width=1,next=this.input.charCodeAt(this.state.pos+1);42===code&&42===next&&(width++,next=this.input.charCodeAt(this.state.pos+2),type=57),61!==next||this.state.inType||(width++,type=37===code?33:30),this.finishOp(type,width);}readToken_pipe_amp(code){const next=this.input.charCodeAt(this.state.pos+1);if(next!==code){if(124===code){if(62===next)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===next){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===next){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}61!==next?this.finishOp(124===code?43:45,1):this.finishOp(30,2);}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===code?41:42,2);}readToken_caret(){const next=this.input.charCodeAt(this.state.pos+1);if(61!==next||this.state.inType)if(94===next&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);if(94===this.input.codePointAt(this.state.pos))throw this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2);}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1);}readToken_plus_min(code){const next=this.input.charCodeAt(this.state.pos+1);next!==code?61===next?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2);}readToken_lt(){const{pos}=this.state,next=this.input.charCodeAt(pos+1);if(60===next)return 61===this.input.charCodeAt(pos+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==next?this.finishOp(47,1):this.finishOp(49,2);}readToken_gt(){const{pos}=this.state,next=this.input.charCodeAt(pos+1);if(62===next){const size=62===this.input.charCodeAt(pos+2)?3:2;return 61===this.input.charCodeAt(pos+size)?void this.finishOp(30,size+1):void this.finishOp(52,size)}61!==next?this.finishOp(48,1):this.finishOp(49,2);}readToken_eq_excl(code){const next=this.input.charCodeAt(this.state.pos+1);if(61!==next)return 61===code&&62===next?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===code?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);}readToken_question(){const next=this.input.charCodeAt(this.state.pos+1),next2=this.input.charCodeAt(this.state.pos+2);63===next?61===next2?this.finishOp(30,3):this.finishOp(40,2):46!==next||next2>=48&&next2<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18));}getTokenFromCode(code){switch(code){case 46:return void this.readToken_dot();case 40:return ++this.state.pos,void this.finishToken(10);case 41:return ++this.state.pos,void this.finishToken(11);case 59:return ++this.state.pos,void this.finishToken(13);case 44:return ++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2);}else ++this.state.pos,this.finishToken(0);return;case 93:return ++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6);}else ++this.state.pos,this.finishToken(5);return;case 125:return ++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const next=this.input.charCodeAt(this.state.pos+1);if(120===next||88===next)return void this.readRadixNumber(16);if(111===next||79===next)return void this.readRadixNumber(8);if(98===next||66===next)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(code);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(code);case 124:case 38:return void this.readToken_pipe_amp(code);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(code);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(code);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(code))return void this.readWord(code)}throw this.raise(Errors.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(code)})}finishOp(type,size){const str=this.input.slice(this.state.pos,this.state.pos+size);this.state.pos+=size,this.finishToken(type,str);}readRegexp(){const startLoc=this.state.startLoc,start=this.state.start+1;let escaped,inClass,{pos}=this.state;for(;;++pos){if(pos>=this.length)throw this.raise(Errors.UnterminatedRegExp,{at:createPositionWithColumnOffset(startLoc,1)});const ch=this.input.charCodeAt(pos);if(isNewLine(ch))throw this.raise(Errors.UnterminatedRegExp,{at:createPositionWithColumnOffset(startLoc,1)});if(escaped)escaped=!1;else {if(91===ch)inClass=!0;else if(93===ch&&inClass)inClass=!1;else if(47===ch&&!inClass)break;escaped=92===ch;}}const content=this.input.slice(start,pos);++pos;let mods="";const nextPos=()=>createPositionWithColumnOffset(startLoc,pos+2-start);for(;pos<this.length;){const cp=this.codePointAtPos(pos),char=String.fromCharCode(cp);if(VALID_REGEX_FLAGS.has(cp))118===cp?(this.expectPlugin("regexpUnicodeSets",nextPos()),mods.includes("u")&&this.raise(Errors.IncompatibleRegExpUVFlags,{at:nextPos()})):117===cp&&mods.includes("v")&&this.raise(Errors.IncompatibleRegExpUVFlags,{at:nextPos()}),mods.includes(char)&&this.raise(Errors.DuplicateRegExpFlags,{at:nextPos()});else {if(!isIdentifierChar(cp)&&92!==cp)break;this.raise(Errors.MalformedRegExpFlags,{at:nextPos()});}++pos,mods+=char;}this.state.pos=pos,this.finishToken(133,{pattern:content,flags:mods});}readInt(radix,len,forceLen=!1,allowNumSeparator=!0){const{n,pos}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,radix,len,forceLen,allowNumSeparator,this.errorHandlers_readInt);return this.state.pos=pos,n}readRadixNumber(radix){const startLoc=this.state.curPosition();let isBigInt=!1;this.state.pos+=2;const val=this.readInt(radix);null==val&&this.raise(Errors.InvalidDigit,{at:createPositionWithColumnOffset(startLoc,2),radix});const next=this.input.charCodeAt(this.state.pos);if(110===next)++this.state.pos,isBigInt=!0;else if(109===next)throw this.raise(Errors.InvalidDecimal,{at:startLoc});if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(Errors.NumberIdentifier,{at:this.state.curPosition()});if(isBigInt){const str=this.input.slice(startLoc.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(131,str);}else this.finishToken(130,val);}readNumber(startsWithDot){const start=this.state.pos,startLoc=this.state.curPosition();let isFloat=!1,isBigInt=!1,isDecimal=!1,hasExponent=!1,isOctal=!1;startsWithDot||null!==this.readInt(10)||this.raise(Errors.InvalidNumber,{at:this.state.curPosition()});const hasLeadingZero=this.state.pos-start>=2&&48===this.input.charCodeAt(start);if(hasLeadingZero){const integer=this.input.slice(start,this.state.pos);if(this.recordStrictModeErrors(Errors.StrictOctalLiteral,{at:startLoc}),!this.state.strict){const underscorePos=integer.indexOf("_");underscorePos>0&&this.raise(Errors.ZeroDigitNumericSeparator,{at:createPositionWithColumnOffset(startLoc,underscorePos)});}isOctal=hasLeadingZero&&!/[89]/.test(integer);}let next=this.input.charCodeAt(this.state.pos);if(46!==next||isOctal||(++this.state.pos,this.readInt(10),isFloat=!0,next=this.input.charCodeAt(this.state.pos)),69!==next&&101!==next||isOctal||(next=this.input.charCodeAt(++this.state.pos),43!==next&&45!==next||++this.state.pos,null===this.readInt(10)&&this.raise(Errors.InvalidOrMissingExponent,{at:startLoc}),isFloat=!0,hasExponent=!0,next=this.input.charCodeAt(this.state.pos)),110===next&&((isFloat||hasLeadingZero)&&this.raise(Errors.InvalidBigIntLiteral,{at:startLoc}),++this.state.pos,isBigInt=!0),109===next&&(this.expectPlugin("decimal",this.state.curPosition()),(hasExponent||hasLeadingZero)&&this.raise(Errors.InvalidDecimal,{at:startLoc}),++this.state.pos,isDecimal=!0),isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(Errors.NumberIdentifier,{at:this.state.curPosition()});const str=this.input.slice(start,this.state.pos).replace(/[_mn]/g,"");if(isBigInt)return void this.finishToken(131,str);if(isDecimal)return void this.finishToken(132,str);const val=isOctal?parseInt(str,8):parseFloat(str);this.finishToken(130,val);}readCodePoint(throwOnInvalid){const{code,pos}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,throwOnInvalid,this.errorHandlers_readCodePoint);return this.state.pos=pos,code}readString(quote){const{str,pos,curLine,lineStart}=readStringContents(34===quote?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=pos+1,this.state.lineStart=lineStart,this.state.curLine=curLine,this.finishToken(129,str);}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken();}readTemplateToken(){const opening=this.input[this.state.pos],{str,containsInvalid,pos,curLine,lineStart}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=pos+1,this.state.lineStart=lineStart,this.state.curLine=curLine,96===this.input.codePointAt(pos)?this.finishToken(24,containsInvalid?null:opening+str+"`"):(this.state.pos++,this.finishToken(25,containsInvalid?null:opening+str+"${"));}recordStrictModeErrors(toParseError,{at}){const index=at.index;this.state.strict&&!this.state.strictErrors.has(index)?this.raise(toParseError,{at}):this.state.strictErrors.set(index,[toParseError,at]);}readWord1(firstCode){this.state.containsEsc=!1;let word="";const start=this.state.pos;let chunkStart=this.state.pos;for(void 0!==firstCode&&(this.state.pos+=firstCode<=65535?1:2);this.state.pos<this.length;){const ch=this.codePointAtPos(this.state.pos);if(isIdentifierChar(ch))this.state.pos+=ch<=65535?1:2;else {if(92!==ch)break;{this.state.containsEsc=!0,word+=this.input.slice(chunkStart,this.state.pos);const escStart=this.state.curPosition(),identifierCheck=this.state.pos===start?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(Errors.MissingUnicodeEscape,{at:this.state.curPosition()}),chunkStart=this.state.pos-1;continue}++this.state.pos;const esc=this.readCodePoint(!0);null!==esc&&(identifierCheck(esc)||this.raise(Errors.EscapedCharNotAnIdentifier,{at:escStart}),word+=String.fromCodePoint(esc)),chunkStart=this.state.pos;}}}return word+this.input.slice(chunkStart,this.state.pos)}readWord(firstCode){const word=this.readWord1(firstCode),type=keywords$1.get(word);void 0!==type?this.finishToken(type,tokenLabelName(type)):this.finishToken(128,word);}checkKeywordEscapes(){const{type}=this.state;tokenIsKeyword(type)&&this.state.containsEsc&&this.raise(Errors.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:tokenLabelName(type)});}raise(toParseError,raiseProperties){const{at}=raiseProperties,details=_objectWithoutPropertiesLoose(raiseProperties,_excluded),error=toParseError({loc:at instanceof Position?at:at.loc.start,details});if(!this.options.errorRecovery)throw error;return this.isLookahead||this.state.errors.push(error),error}raiseOverwrite(toParseError,raiseProperties){const{at}=raiseProperties,details=_objectWithoutPropertiesLoose(raiseProperties,_excluded2),loc=at instanceof Position?at:at.loc.start,pos=loc.index,errors=this.state.errors;for(let i=errors.length-1;i>=0;i--){const error=errors[i];if(error.loc.index===pos)return errors[i]=toParseError({loc,details});if(error.loc.index<pos)break}return this.raise(toParseError,raiseProperties)}updateContext(prevType){}unexpected(loc,type){throw this.raise(Errors.UnexpectedToken,{expected:type?tokenLabelName(type):null,at:null!=loc?loc:this.state.startLoc})}expectPlugin(pluginName,loc){if(this.hasPlugin(pluginName))return !0;throw this.raise(Errors.MissingPlugin,{at:null!=loc?loc:this.state.startLoc,missingPlugin:[pluginName]})}expectOnePlugin(pluginNames){if(!pluginNames.some((name=>this.hasPlugin(name))))throw this.raise(Errors.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:pluginNames})}errorBuilder(error){return (pos,lineStart,curLine)=>{this.raise(error,{at:buildPosition(pos,lineStart,curLine)});}}}{addExtra(node,key,value,enumerable=!0){if(!node)return;const extra=node.extra=node.extra||{};enumerable?extra[key]=value:Object.defineProperty(extra,key,{enumerable,value});}isContextual(token){return this.state.type===token&&!this.state.containsEsc}isUnparsedContextual(nameStart,name){const nameEnd=nameStart+name.length;if(this.input.slice(nameStart,nameEnd)===name){const nextCh=this.input.charCodeAt(nameEnd);return !(isIdentifierChar(nextCh)||55296==(64512&nextCh))}return !1}isLookaheadContextual(name){const next=this.nextTokenStart();return this.isUnparsedContextual(next,name)}eatContextual(token){return !!this.isContextual(token)&&(this.next(),!0)}expectContextual(token,toParseError){if(!this.eatContextual(token)){if(null!=toParseError)throw this.raise(toParseError,{at:this.state.startLoc});throw this.unexpected(null,token)}}canInsertSemicolon(){return this.match(135)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return lineBreak.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return skipWhiteSpaceToLineBreak.lastIndex=this.state.end,skipWhiteSpaceToLineBreak.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(allowAsi=!0){(allowAsi?this.isLineTerminator():this.eat(13))||this.raise(Errors.MissingSemicolon,{at:this.state.lastTokEndLoc});}expect(type,loc){this.eat(type)||this.unexpected(loc,type);}tryParse(fn,oldState=this.state.clone()){const abortSignal={node:null};try{const node=fn(((node=null)=>{throw abortSignal.node=node,abortSignal}));if(this.state.errors.length>oldState.errors.length){const failState=this.state;return this.state=oldState,this.state.tokensLength=failState.tokensLength,{node,error:failState.errors[oldState.errors.length],thrown:!1,aborted:!1,failState}}return {node,error:null,thrown:!1,aborted:!1,failState:null}}catch(error){const failState=this.state;if(this.state=oldState,error instanceof SyntaxError)return {node:null,error,thrown:!0,aborted:!1,failState};if(error===abortSignal)return {node:abortSignal.node,error:null,thrown:!1,aborted:!0,failState};throw error}}checkExpressionErrors(refExpressionErrors,andThrow){if(!refExpressionErrors)return !1;const{shorthandAssignLoc,doubleProtoLoc,privateKeyLoc,optionalParametersLoc}=refExpressionErrors;if(!andThrow)return !!(shorthandAssignLoc||doubleProtoLoc||optionalParametersLoc||privateKeyLoc);null!=shorthandAssignLoc&&this.raise(Errors.InvalidCoverInitializedName,{at:shorthandAssignLoc}),null!=doubleProtoLoc&&this.raise(Errors.DuplicateProto,{at:doubleProtoLoc}),null!=privateKeyLoc&&this.raise(Errors.UnexpectedPrivateField,{at:privateKeyLoc}),null!=optionalParametersLoc&&this.unexpected(optionalParametersLoc);}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(node){return "PrivateName"===node.type}getPrivateNameSV(node){return node.id.name}hasPropertyAsPrivateName(node){return ("MemberExpression"===node.type||"OptionalMemberExpression"===node.type)&&this.isPrivateName(node.property)}isOptionalChain(node){return "OptionalMemberExpression"===node.type||"OptionalCallExpression"===node.type}isObjectProperty(node){return "ObjectProperty"===node.type}isObjectMethod(node){return "ObjectMethod"===node.type}initializeScopes(inModule="module"===this.options.sourceType){const oldLabels=this.state.labels;this.state.labels=[];const oldExportedIdentifiers=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const oldInModule=this.inModule;this.inModule=inModule;const oldScope=this.scope,ScopeHandler=this.getScopeHandler();this.scope=new ScopeHandler(this,inModule);const oldProdParam=this.prodParam;this.prodParam=new ProductionParameterHandler;const oldClassScope=this.classScope;this.classScope=new ClassScopeHandler(this);const oldExpressionScope=this.expressionScope;return this.expressionScope=new ExpressionScopeHandler(this),()=>{this.state.labels=oldLabels,this.exportedIdentifiers=oldExportedIdentifiers,this.inModule=oldInModule,this.scope=oldScope,this.prodParam=oldProdParam,this.classScope=oldClassScope,this.expressionScope=oldExpressionScope;}}enterInitialScopes(){let paramFlags=0;this.inModule&&(paramFlags|=2),this.scope.enter(1),this.prodParam.enter(paramFlags);}checkDestructuringPrivate(refExpressionErrors){const{privateKeyLoc}=refExpressionErrors;null!==privateKeyLoc&&this.expectPlugin("destructuringPrivate",privateKeyLoc);}}{startNode(){return new Node(this,this.state.start,this.state.startLoc)}startNodeAt(pos,loc){return new Node(this,pos,loc)}startNodeAtNode(type){return this.startNodeAt(type.start,type.loc.start)}finishNode(node,type){return this.finishNodeAt(node,type,this.state.lastTokEndLoc)}finishNodeAt(node,type,endLoc){return node.type=type,node.end=endLoc.index,node.loc.end=endLoc,this.options.ranges&&(node.range[1]=endLoc.index),this.options.attachComment&&this.processComment(node),node}resetStartLocation(node,start,startLoc){node.start=start,node.loc.start=startLoc,this.options.ranges&&(node.range[0]=start);}resetEndLocation(node,endLoc=this.state.lastTokEndLoc){node.end=endLoc.index,node.loc.end=endLoc,this.options.ranges&&(node.range[1]=endLoc.index);}resetStartLocationFromNode(node,locationNode){this.resetStartLocation(node,locationNode.start,locationNode.loc.start);}}{toAssignable(node,isLHS=!1){var _node$extra,_node$extra3;let parenthesized;switch(("ParenthesizedExpression"===node.type||null!=(_node$extra=node.extra)&&_node$extra.parenthesized)&&(parenthesized=unwrapParenthesizedExpression(node),isLHS?"Identifier"===parenthesized.type?this.expressionScope.recordArrowParemeterBindingError(Errors.InvalidParenthesizedAssignment,{at:node}):"MemberExpression"!==parenthesized.type&&this.raise(Errors.InvalidParenthesizedAssignment,{at:node}):this.raise(Errors.InvalidParenthesizedAssignment,{at:node})),node.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern";for(let i=0,length=node.properties.length,last=length-1;i<length;i++){var _node$extra2;const prop=node.properties[i],isLast=i===last;this.toAssignableObjectExpressionProp(prop,isLast,isLHS),isLast&&"RestElement"===prop.type&&null!=(_node$extra2=node.extra)&&_node$extra2.trailingCommaLoc&&this.raise(Errors.RestTrailingComma,{at:node.extra.trailingCommaLoc});}break;case"ObjectProperty":{const{key,value}=node;this.isPrivateName(key)&&this.classScope.usePrivateName(this.getPrivateNameSV(key),key.loc.start),this.toAssignable(value,isLHS);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":node.type="ArrayPattern",this.toAssignableList(node.elements,null==(_node$extra3=node.extra)?void 0:_node$extra3.trailingCommaLoc,isLHS);break;case"AssignmentExpression":"="!==node.operator&&this.raise(Errors.MissingEqInAssignment,{at:node.left.loc.end}),node.type="AssignmentPattern",delete node.operator,this.toAssignable(node.left,isLHS);break;case"ParenthesizedExpression":this.toAssignable(parenthesized,isLHS);}}toAssignableObjectExpressionProp(prop,isLast,isLHS){if("ObjectMethod"===prop.type)this.raise("get"===prop.kind||"set"===prop.kind?Errors.PatternHasAccessor:Errors.PatternHasMethod,{at:prop.key});else if("SpreadElement"===prop.type){prop.type="RestElement";const arg=prop.argument;this.checkToRestConversion(arg,!1),this.toAssignable(arg,isLHS),isLast||this.raise(Errors.RestTrailingComma,{at:prop});}else this.toAssignable(prop,isLHS);}toAssignableList(exprList,trailingCommaLoc,isLHS){const end=exprList.length-1;for(let i=0;i<=end;i++){const elt=exprList[i];if(elt){if("SpreadElement"===elt.type){elt.type="RestElement";const arg=elt.argument;this.checkToRestConversion(arg,!0),this.toAssignable(arg,isLHS);}else this.toAssignable(elt,isLHS);"RestElement"===elt.type&&(i<end?this.raise(Errors.RestTrailingComma,{at:elt}):trailingCommaLoc&&this.raise(Errors.RestTrailingComma,{at:trailingCommaLoc}));}}}isAssignable(node,isBinding){switch(node.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return !0;case"ObjectExpression":{const last=node.properties.length-1;return node.properties.every(((prop,i)=>"ObjectMethod"!==prop.type&&(i===last||"SpreadElement"!==prop.type)&&this.isAssignable(prop)))}case"ObjectProperty":return this.isAssignable(node.value);case"SpreadElement":return this.isAssignable(node.argument);case"ArrayExpression":return node.elements.every((element=>null===element||this.isAssignable(element)));case"AssignmentExpression":return "="===node.operator;case"ParenthesizedExpression":return this.isAssignable(node.expression);case"MemberExpression":case"OptionalMemberExpression":return !isBinding;default:return !1}}toReferencedList(exprList,isParenthesizedExpr){return exprList}toReferencedListDeep(exprList,isParenthesizedExpr){this.toReferencedList(exprList,isParenthesizedExpr);for(const expr of exprList)"ArrayExpression"===(null==expr?void 0:expr.type)&&this.toReferencedListDeep(expr.elements);}parseSpread(refExpressionErrors){const node=this.startNode();return this.next(),node.argument=this.parseMaybeAssignAllowIn(refExpressionErrors,void 0),this.finishNode(node,"SpreadElement")}parseRestBinding(){const node=this.startNode();return this.next(),node.argument=this.parseBindingAtom(),this.finishNode(node,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const node=this.startNode();return this.next(),node.elements=this.parseBindingList(3,93,!0),this.finishNode(node,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(close,closeCharCode,allowEmpty,allowModifiers){const elts=[];let first=!0;for(;!this.eat(close);)if(first?first=!1:this.expect(12),allowEmpty&&this.match(12))elts.push(null);else {if(this.eat(close))break;if(this.match(21)){if(elts.push(this.parseAssignableListItemTypes(this.parseRestBinding())),!this.checkCommaAfterRest(closeCharCode)){this.expect(close);break}}else {const decorators=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(Errors.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)decorators.push(this.parseDecorator());elts.push(this.parseAssignableListItem(allowModifiers,decorators));}}return elts}parseBindingRestProperty(prop){return this.next(),prop.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(prop,"RestElement")}parseBindingProperty(){const prop=this.startNode(),{type,start:startPos,startLoc}=this.state;return 21===type?this.parseBindingRestProperty(prop):(134===type?(this.expectPlugin("destructuringPrivate",startLoc),this.classScope.usePrivateName(this.state.value,startLoc),prop.key=this.parsePrivateName()):this.parsePropertyName(prop),prop.method=!1,this.parseObjPropValue(prop,startPos,startLoc,!1,!1,!0,!1))}parseAssignableListItem(allowModifiers,decorators){const left=this.parseMaybeDefault();this.parseAssignableListItemTypes(left);const elt=this.parseMaybeDefault(left.start,left.loc.start,left);return decorators.length&&(left.decorators=decorators),elt}parseAssignableListItemTypes(param){return param}parseMaybeDefault(startPos,startLoc,left){var _startLoc,_startPos,_left;if(startLoc=null!=(_startLoc=startLoc)?_startLoc:this.state.startLoc,startPos=null!=(_startPos=startPos)?_startPos:this.state.start,left=null!=(_left=left)?_left:this.parseBindingAtom(),!this.eat(29))return left;const node=this.startNodeAt(startPos,startLoc);return node.left=left,node.right=this.parseMaybeAssignAllowIn(),this.finishNode(node,"AssignmentPattern")}isValidLVal(type,isUnparenthesizedInAssign,binding){return object={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},key=type,Object.hasOwnProperty.call(object,key)&&object[key];var object,key;}checkLVal(expression,{in:ancestor,binding=64,checkClashes=!1,strictModeChanged=!1,allowingSloppyLetBinding=!(8&binding),hasParenthesizedAncestor=!1}){var _expression$extra;const type=expression.type;if(this.isObjectMethod(expression))return;if("MemberExpression"===type)return void(64!==binding&&this.raise(Errors.InvalidPropertyBindingPattern,{at:expression}));if("Identifier"===expression.type){this.checkIdentifier(expression,binding,strictModeChanged,allowingSloppyLetBinding);const{name}=expression;return void(checkClashes&&(checkClashes.has(name)?this.raise(Errors.ParamDupe,{at:expression}):checkClashes.add(name)))}const validity=this.isValidLVal(expression.type,!(hasParenthesizedAncestor||null!=(_expression$extra=expression.extra)&&_expression$extra.parenthesized)&&"AssignmentExpression"===ancestor.type,binding);if(!0===validity)return;if(!1===validity){const ParseErrorClass=64===binding?Errors.InvalidLhs:Errors.InvalidLhsBinding;return void this.raise(ParseErrorClass,{at:expression,ancestor:"UpdateExpression"===ancestor.type?{type:"UpdateExpression",prefix:ancestor.prefix}:{type:ancestor.type}})}const[key,isParenthesizedExpression]=Array.isArray(validity)?validity:[validity,"ParenthesizedExpression"===type],nextAncestor="ArrayPattern"===expression.type||"ObjectPattern"===expression.type||"ParenthesizedExpression"===expression.type?expression:ancestor;for(const child of [].concat(expression[key]))child&&this.checkLVal(child,{in:nextAncestor,binding,checkClashes,allowingSloppyLetBinding,strictModeChanged,hasParenthesizedAncestor:isParenthesizedExpression});}checkIdentifier(at,bindingType,strictModeChanged=!1,allowLetBinding=!(8&bindingType)){this.state.strict&&(strictModeChanged?isStrictBindReservedWord(at.name,this.inModule):isStrictBindOnlyReservedWord(at.name))&&(64===bindingType?this.raise(Errors.StrictEvalArguments,{at,referenceName:at.name}):this.raise(Errors.StrictEvalArgumentsBinding,{at,bindingName:at.name})),allowLetBinding||"let"!==at.name||this.raise(Errors.LetInLexicalBinding,{at}),64&bindingType||this.declareNameFromIdentifier(at,bindingType);}declareNameFromIdentifier(identifier,binding){this.scope.declareName(identifier.name,binding,identifier.loc.start);}checkToRestConversion(node,allowPattern){switch(node.type){case"ParenthesizedExpression":this.checkToRestConversion(node.expression,allowPattern);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(allowPattern)break;default:this.raise(Errors.InvalidRestAssignmentPattern,{at:node});}}checkCommaAfterRest(close){return !!this.match(12)&&(this.raise(this.lookaheadCharCode()===close?Errors.RestTrailingComma:Errors.ElementAfterRest,{at:this.state.startLoc}),!0)}}{checkProto(prop,isRecord,protoRef,refExpressionErrors){if("SpreadElement"===prop.type||this.isObjectMethod(prop)||prop.computed||prop.shorthand)return;const key=prop.key;if("__proto__"===("Identifier"===key.type?key.name:key.value)){if(isRecord)return void this.raise(Errors.RecordNoProto,{at:key});protoRef.used&&(refExpressionErrors?null===refExpressionErrors.doubleProtoLoc&&(refExpressionErrors.doubleProtoLoc=key.loc.start):this.raise(Errors.DuplicateProto,{at:key})),protoRef.used=!0;}}shouldExitDescending(expr,potentialArrowAt){return "ArrowFunctionExpression"===expr.type&&expr.start===potentialArrowAt}getExpression(){this.enterInitialScopes(),this.nextToken();const expr=this.parseExpression();return this.match(135)||this.unexpected(),this.finalizeRemainingComments(),expr.comments=this.state.comments,expr.errors=this.state.errors,this.options.tokens&&(expr.tokens=this.tokens),expr}parseExpression(disallowIn,refExpressionErrors){return disallowIn?this.disallowInAnd((()=>this.parseExpressionBase(refExpressionErrors))):this.allowInAnd((()=>this.parseExpressionBase(refExpressionErrors)))}parseExpressionBase(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,expr=this.parseMaybeAssign(refExpressionErrors);if(this.match(12)){const node=this.startNodeAt(startPos,startLoc);for(node.expressions=[expr];this.eat(12);)node.expressions.push(this.parseMaybeAssign(refExpressionErrors));return this.toReferencedList(node.expressions),this.finishNode(node,"SequenceExpression")}return expr}parseMaybeAssignDisallowIn(refExpressionErrors,afterLeftParse){return this.disallowInAnd((()=>this.parseMaybeAssign(refExpressionErrors,afterLeftParse)))}parseMaybeAssignAllowIn(refExpressionErrors,afterLeftParse){return this.allowInAnd((()=>this.parseMaybeAssign(refExpressionErrors,afterLeftParse)))}setOptionalParametersError(refExpressionErrors,resultError){var _resultError$loc;refExpressionErrors.optionalParametersLoc=null!=(_resultError$loc=null==resultError?void 0:resultError.loc)?_resultError$loc:this.state.startLoc;}parseMaybeAssign(refExpressionErrors,afterLeftParse){const startPos=this.state.start,startLoc=this.state.startLoc;if(this.isContextual(105)&&this.prodParam.hasYield){let left=this.parseYield();return afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),left}let ownExpressionErrors;refExpressionErrors?ownExpressionErrors=!1:(refExpressionErrors=new ExpressionErrors,ownExpressionErrors=!0);const{type}=this.state;(10===type||tokenIsIdentifier(type))&&(this.state.potentialArrowAt=this.state.start);let left=this.parseMaybeConditional(refExpressionErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),(token=this.state.type)>=29&&token<=33){const node=this.startNodeAt(startPos,startLoc),operator=this.state.value;return node.operator=operator,this.match(29)?(this.toAssignable(left,!0),node.left=left,null!=refExpressionErrors.doubleProtoLoc&&refExpressionErrors.doubleProtoLoc.index>=startPos&&(refExpressionErrors.doubleProtoLoc=null),null!=refExpressionErrors.shorthandAssignLoc&&refExpressionErrors.shorthandAssignLoc.index>=startPos&&(refExpressionErrors.shorthandAssignLoc=null),null!=refExpressionErrors.privateKeyLoc&&refExpressionErrors.privateKeyLoc.index>=startPos&&(this.checkDestructuringPrivate(refExpressionErrors),refExpressionErrors.privateKeyLoc=null)):node.left=left,this.next(),node.right=this.parseMaybeAssign(),this.checkLVal(left,{in:this.finishNode(node,"AssignmentExpression")}),node}var token;return ownExpressionErrors&&this.checkExpressionErrors(refExpressionErrors,!0),left}parseMaybeConditional(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseExprOps(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseConditional(expr,startPos,startLoc,refExpressionErrors)}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(this.eat(17)){const node=this.startNodeAt(startPos,startLoc);return node.test=expr,node.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),node.alternate=this.parseMaybeAssign(),this.finishNode(node,"ConditionalExpression")}return expr}parseMaybeUnaryOrPrivate(refExpressionErrors){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(refExpressionErrors)}parseExprOps(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseMaybeUnaryOrPrivate(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseExprOp(expr,startPos,startLoc,-1)}parseExprOp(left,leftStartPos,leftStartLoc,minPrec){if(this.isPrivateName(left)){const value=this.getPrivateNameSV(left);(minPrec>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Errors.PrivateInExpectedIn,{at:left,identifierName:value}),this.classScope.usePrivateName(value,left.loc.start);}const op=this.state.type;if((token=op)>=39&&token<=59&&(this.prodParam.hasIn||!this.match(58))){let prec=tokenOperatorPrecedence(op);if(prec>minPrec){if(39===op){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return left;this.checkPipelineAtInfixOperator(left,leftStartLoc);}const node=this.startNodeAt(leftStartPos,leftStartLoc);node.left=left,node.operator=this.state.value;const logical=41===op||42===op,coalesce=40===op;if(coalesce&&(prec=tokenOperatorPrecedence(42)),this.next(),39===op&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(Errors.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});node.right=this.parseExprOpRightExpr(op,prec);const finishedNode=this.finishNode(node,logical||coalesce?"LogicalExpression":"BinaryExpression"),nextOp=this.state.type;if(coalesce&&(41===nextOp||42===nextOp)||logical&&40===nextOp)throw this.raise(Errors.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(finishedNode,leftStartPos,leftStartLoc,minPrec)}}var token;return left}parseExprOpRightExpr(op,prec){const startPos=this.state.start,startLoc=this.state.startLoc;if(39===op)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(105))throw this.raise(Errors.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(op,prec),startPos,startLoc)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(prec)))}return this.parseExprOpBaseRightExpr(op,prec)}parseExprOpBaseRightExpr(op,prec){const startPos=this.state.start,startLoc=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),startPos,startLoc,57===op?prec-1:prec)}parseHackPipeBody(){var _body$extra;const{startLoc}=this.state,body=this.parseMaybeAssign();return !UnparenthesizedPipeBodyDescriptions.has(body.type)||null!=(_body$extra=body.extra)&&_body$extra.parenthesized||this.raise(Errors.PipeUnparenthesizedBody,{at:startLoc,type:body.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Errors.PipeTopicUnused,{at:startLoc}),body}checkExponentialAfterUnary(node){this.match(57)&&this.raise(Errors.UnexpectedTokenUnaryExponentiation,{at:node.argument});}parseMaybeUnary(refExpressionErrors,sawUnary){const startPos=this.state.start,startLoc=this.state.startLoc,isAwait=this.isContextual(96);if(isAwait&&this.isAwaitAllowed()){this.next();const expr=this.parseAwait(startPos,startLoc);return sawUnary||this.checkExponentialAfterUnary(expr),expr}const update=this.match(34),node=this.startNode();if(token=this.state.type,tokenPrefixes[token]){node.operator=this.state.value,node.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const isDelete=this.match(89);if(this.next(),node.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(refExpressionErrors,!0),this.state.strict&&isDelete){const arg=node.argument;"Identifier"===arg.type?this.raise(Errors.StrictDelete,{at:node}):this.hasPropertyAsPrivateName(arg)&&this.raise(Errors.DeletePrivateField,{at:node});}if(!update)return sawUnary||this.checkExponentialAfterUnary(node),this.finishNode(node,"UnaryExpression")}var token;const expr=this.parseUpdate(node,update,refExpressionErrors);if(isAwait){const{type}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(type):tokenCanStartExpression(type)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(Errors.AwaitNotInAsyncContext,{at:startLoc}),this.parseAwait(startPos,startLoc)}return expr}parseUpdate(node,update,refExpressionErrors){if(update){const updateExpressionNode=node;return this.checkLVal(updateExpressionNode.argument,{in:this.finishNode(updateExpressionNode,"UpdateExpression")}),node}const startPos=this.state.start,startLoc=this.state.startLoc;let expr=this.parseExprSubscripts(refExpressionErrors);if(this.checkExpressionErrors(refExpressionErrors,!1))return expr;for(;34===this.state.type&&!this.canInsertSemicolon();){const node=this.startNodeAt(startPos,startLoc);node.operator=this.state.value,node.prefix=!1,node.argument=expr,this.next(),this.checkLVal(expr,{in:expr=this.finishNode(node,"UpdateExpression")});}return expr}parseExprSubscripts(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseExprAtom(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseSubscripts(expr,startPos,startLoc)}parseSubscripts(base,startPos,startLoc,noCalls){const state={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(base),stop:!1};do{base=this.parseSubscript(base,startPos,startLoc,noCalls,state),state.maybeAsyncArrow=!1;}while(!state.stop);return base}parseSubscript(base,startPos,startLoc,noCalls,state){const{type}=this.state;if(!noCalls&&15===type)return this.parseBind(base,startPos,startLoc,noCalls,state);if(tokenIsTemplate(type))return this.parseTaggedTemplateExpression(base,startPos,startLoc,state);let optional=!1;if(18===type){if(noCalls&&40===this.lookaheadCharCode())return state.stop=!0,base;state.optionalChainMember=optional=!0,this.next();}if(!noCalls&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(base,startPos,startLoc,state,optional);{const computed=this.eat(0);return computed||optional||this.eat(16)?this.parseMember(base,startPos,startLoc,state,computed,optional):(state.stop=!0,base)}}parseMember(base,startPos,startLoc,state,computed,optional){const node=this.startNodeAt(startPos,startLoc);return node.object=base,node.computed=computed,computed?(node.property=this.parseExpression(),this.expect(3)):this.match(134)?("Super"===base.type&&this.raise(Errors.SuperPrivateField,{at:startLoc}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),node.property=this.parsePrivateName()):node.property=this.parseIdentifier(!0),state.optionalChainMember?(node.optional=optional,this.finishNode(node,"OptionalMemberExpression")):this.finishNode(node,"MemberExpression")}parseBind(base,startPos,startLoc,noCalls,state){const node=this.startNodeAt(startPos,startLoc);return node.object=base,this.next(),node.callee=this.parseNoCallExpr(),state.stop=!0,this.parseSubscripts(this.finishNode(node,"BindExpression"),startPos,startLoc,noCalls)}parseCoverCallAndAsyncArrowHead(base,startPos,startLoc,state,optional){const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;let refExpressionErrors=null;this.state.maybeInArrowParameters=!0,this.next();const node=this.startNodeAt(startPos,startLoc);node.callee=base;const{maybeAsyncArrow,optionalChainMember}=state;maybeAsyncArrow&&(this.expressionScope.enter(new ArrowHeadParsingScope(2)),refExpressionErrors=new ExpressionErrors),optionalChainMember&&(node.optional=optional),node.arguments=optional?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===base.type,"Super"!==base.type,node,refExpressionErrors);let finishedNode=this.finishCallExpression(node,optionalChainMember);return maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!optional?(state.stop=!0,this.checkDestructuringPrivate(refExpressionErrors),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),finishedNode=this.parseAsyncArrowFromCallExpression(this.startNodeAt(startPos,startLoc),finishedNode)):(maybeAsyncArrow&&(this.checkExpressionErrors(refExpressionErrors,!0),this.expressionScope.exit()),this.toReferencedArguments(finishedNode)),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,finishedNode}toReferencedArguments(node,isParenthesizedExpr){this.toReferencedListDeep(node.arguments,isParenthesizedExpr);}parseTaggedTemplateExpression(base,startPos,startLoc,state){const node=this.startNodeAt(startPos,startLoc);return node.tag=base,node.quasi=this.parseTemplate(!0),state.optionalChainMember&&this.raise(Errors.OptionalChainingNoTemplate,{at:startLoc}),this.finishNode(node,"TaggedTemplateExpression")}atPossibleAsyncArrow(base){return "Identifier"===base.type&&"async"===base.name&&this.state.lastTokEndLoc.index===base.end&&!this.canInsertSemicolon()&&base.end-base.start==5&&base.start===this.state.potentialArrowAt}finishCallExpression(node,optional){if("Import"===node.callee.type)if(2===node.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===node.arguments.length||node.arguments.length>2)this.raise(Errors.ImportCallArity,{at:node,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const arg of node.arguments)"SpreadElement"===arg.type&&this.raise(Errors.ImportCallSpreadArgument,{at:arg});return this.finishNode(node,optional?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(close,dynamicImport,allowPlaceholder,nodeForExtra,refExpressionErrors){const elts=[];let first=!0;const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){!dynamicImport||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(Errors.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),nodeForExtra&&this.addTrailingCommaExtraToNode(nodeForExtra),this.next();break}elts.push(this.parseExprListItem(!1,refExpressionErrors,allowPlaceholder));}return this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,elts}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(node,call){var _call$extra;return this.resetPreviousNodeTrailingComments(call),this.expect(19),this.parseArrowExpression(node,call.arguments,!0,null==(_call$extra=call.extra)?void 0:_call$extra.trailingCommaLoc),call.innerComments&&setInnerComments(node,call.innerComments),call.callee.trailingComments&&setInnerComments(node,call.callee.trailingComments),node}parseNoCallExpr(){const startPos=this.state.start,startLoc=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0)}parseExprAtom(refExpressionErrors){let node;const{type}=this.state;switch(type){case 79:return this.parseSuper();case 83:return node=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(node):(this.match(10)||this.raise(Errors.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(node,"Import"));case 78:return node=this.startNode(),this.next(),this.finishNode(node,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 130:return this.parseNumericLiteral(this.state.value);case 131:return this.parseBigIntLiteral(this.state.value);case 132:return this.parseDecimalLiteral(this.state.value);case 129:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const canBeArrow=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(canBeArrow)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,refExpressionErrors);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,refExpressionErrors);case 68:return this.parseFunctionOrFunctionSent();case 26:this.parseDecorators();case 80:return node=this.startNode(),this.takeDecorators(node),this.parseClass(node,!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{node=this.startNode(),this.next(),node.object=null;const callee=node.callee=this.parseNoCallExpr();if("MemberExpression"===callee.type)return this.finishNode(node,"BindExpression");throw this.raise(Errors.UnsupportedBind,{at:callee})}case 134:return this.raise(Errors.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const pipeProposal=this.getPluginOption("pipelineOperator","proposal");if(pipeProposal)return this.parseTopicReference(pipeProposal);throw this.unexpected()}case 47:{const lookaheadCh=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(lookaheadCh)||62===lookaheadCh){this.expectOnePlugin(["jsx","flow","typescript"]);break}throw this.unexpected()}default:if(tokenIsIdentifier(type)){if(this.isContextual(123)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const canBeArrow=this.state.potentialArrowAt===this.state.start,containsEsc=this.state.containsEsc,id=this.parseIdentifier();if(!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()){const{type}=this.state;if(68===type)return this.resetPreviousNodeTrailingComments(id),this.next(),this.parseFunction(this.startNodeAtNode(id),void 0,!0);if(tokenIsIdentifier(type))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id)):id;if(90===type)return this.resetPreviousNodeTrailingComments(id),this.parseDo(this.startNodeAtNode(id),!0)}return canBeArrow&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(id),[id],!1)):id}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(topicTokenType,topicTokenValue){const pipeProposal=this.getPluginOption("pipelineOperator","proposal");if(pipeProposal)return this.state.type=topicTokenType,this.state.value=topicTokenValue,this.state.pos--,this.state.end--,this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1),this.parseTopicReference(pipeProposal);throw this.unexpected()}parseTopicReference(pipeProposal){const node=this.startNode(),startLoc=this.state.startLoc,tokenType=this.state.type;return this.next(),this.finishTopicReference(node,startLoc,pipeProposal,tokenType)}finishTopicReference(node,startLoc,pipeProposal,tokenType){if(this.testTopicReferenceConfiguration(pipeProposal,startLoc,tokenType)){const nodeType="smart"===pipeProposal?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===pipeProposal?Errors.PrimaryTopicNotAllowed:Errors.PipeTopicUnbound,{at:startLoc}),this.registerTopicReference(),this.finishNode(node,nodeType)}throw this.raise(Errors.PipeTopicUnconfiguredToken,{at:startLoc,token:tokenLabelName(tokenType)})}testTopicReferenceConfiguration(pipeProposal,startLoc,tokenType){switch(pipeProposal){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(tokenType)}]);case"smart":return 27===tokenType;default:throw this.raise(Errors.PipeTopicRequiresHackPipes,{at:startLoc})}}parseAsyncArrowUnaryFunction(node){this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const params=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(Errors.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(node,params,!0)}parseDo(node,isAsync){this.expectPlugin("doExpressions"),isAsync&&this.expectPlugin("asyncDoExpressions"),node.async=isAsync,this.next();const oldLabels=this.state.labels;return this.state.labels=[],isAsync?(this.prodParam.enter(2),node.body=this.parseBlock(),this.prodParam.exit()):node.body=this.parseBlock(),this.state.labels=oldLabels,this.finishNode(node,"DoExpression")}parseSuper(){const node=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(Errors.UnexpectedSuper,{at:node}):this.raise(Errors.SuperNotAllowed,{at:node}),this.match(10)||this.match(0)||this.match(16)||this.raise(Errors.UnsupportedSuper,{at:node}),this.finishNode(node,"Super")}parsePrivateName(){const node=this.startNode(),id=this.startNodeAt(this.state.start+1,new Position(this.state.curLine,this.state.start+1-this.state.lineStart,this.state.start+1)),name=this.state.value;return this.next(),node.id=this.createIdentifier(id,name),this.finishNode(node,"PrivateName")}parseFunctionOrFunctionSent(){const node=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const meta=this.createIdentifier(this.startNodeAtNode(node),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(node,meta,"sent")}return this.parseFunction(node)}parseMetaProperty(node,meta,propertyName){node.meta=meta;const containsEsc=this.state.containsEsc;return node.property=this.parseIdentifier(!0),(node.property.name!==propertyName||containsEsc)&&this.raise(Errors.UnsupportedMetaProperty,{at:node.property,target:meta.name,onlyValidPropertyName:propertyName}),this.finishNode(node,"MetaProperty")}parseImportMetaProperty(node){const id=this.createIdentifier(this.startNodeAtNode(node),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(Errors.ImportMetaOutsideModule,{at:id}),this.sawUnambiguousESM=!0),this.parseMetaProperty(node,id,"meta")}parseLiteralAtNode(value,type,node){return this.addExtra(node,"rawValue",value),this.addExtra(node,"raw",this.input.slice(node.start,this.state.end)),node.value=value,this.next(),this.finishNode(node,type)}parseLiteral(value,type){const node=this.startNode();return this.parseLiteralAtNode(value,type,node)}parseStringLiteral(value){return this.parseLiteral(value,"StringLiteral")}parseNumericLiteral(value){return this.parseLiteral(value,"NumericLiteral")}parseBigIntLiteral(value){return this.parseLiteral(value,"BigIntLiteral")}parseDecimalLiteral(value){return this.parseLiteral(value,"DecimalLiteral")}parseRegExpLiteral(value){const node=this.parseLiteral(value.value,"RegExpLiteral");return node.pattern=value.pattern,node.flags=value.flags,node}parseBooleanLiteral(value){const node=this.startNode();return node.value=value,this.next(),this.finishNode(node,"BooleanLiteral")}parseNullLiteral(){const node=this.startNode();return this.next(),this.finishNode(node,"NullLiteral")}parseParenAndDistinguishExpression(canBeArrow){const startPos=this.state.start,startLoc=this.state.startLoc;let val;this.next(),this.expressionScope.enter(new ArrowHeadParsingScope(1));const oldMaybeInArrowParameters=this.state.maybeInArrowParameters,oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const innerStartPos=this.state.start,innerStartLoc=this.state.startLoc,exprList=[],refExpressionErrors=new ExpressionErrors;let spreadStartLoc,optionalCommaStartLoc,first=!0;for(;!this.match(11);){if(first)first=!1;else if(this.expect(12,null===refExpressionErrors.optionalParametersLoc?null:refExpressionErrors.optionalParametersLoc),this.match(11)){optionalCommaStartLoc=this.state.startLoc;break}if(this.match(21)){const spreadNodeStartPos=this.state.start,spreadNodeStartLoc=this.state.startLoc;if(spreadStartLoc=this.state.startLoc,exprList.push(this.parseParenItem(this.parseRestBinding(),spreadNodeStartPos,spreadNodeStartLoc)),!this.checkCommaAfterRest(41))break}else exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors,this.parseParenItem));}const innerEndLoc=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody;let arrowNode=this.startNodeAt(startPos,startLoc);return canBeArrow&&this.shouldParseArrow(exprList)&&(arrowNode=this.parseArrow(arrowNode))?(this.checkDestructuringPrivate(refExpressionErrors),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(arrowNode,exprList,!1),arrowNode):(this.expressionScope.exit(),exprList.length||this.unexpected(this.state.lastTokStartLoc),optionalCommaStartLoc&&this.unexpected(optionalCommaStartLoc),spreadStartLoc&&this.unexpected(spreadStartLoc),this.checkExpressionErrors(refExpressionErrors,!0),this.toReferencedListDeep(exprList,!0),exprList.length>1?(val=this.startNodeAt(innerStartPos,innerStartLoc),val.expressions=exprList,this.finishNode(val,"SequenceExpression"),this.resetEndLocation(val,innerEndLoc)):val=exprList[0],this.wrapParenthesis(startPos,startLoc,val))}wrapParenthesis(startPos,startLoc,expression){if(!this.options.createParenthesizedExpressions)return this.addExtra(expression,"parenthesized",!0),this.addExtra(expression,"parenStart",startPos),this.takeSurroundingComments(expression,startPos,this.state.lastTokEndLoc.index),expression;const parenExpression=this.startNodeAt(startPos,startLoc);return parenExpression.expression=expression,this.finishNode(parenExpression,"ParenthesizedExpression")}shouldParseArrow(params){return !this.canInsertSemicolon()}parseArrow(node){if(this.eat(19))return node}parseParenItem(node,startPos,startLoc){return node}parseNewOrNewTarget(){const node=this.startNode();if(this.next(),this.match(16)){const meta=this.createIdentifier(this.startNodeAtNode(node),"new");this.next();const metaProp=this.parseMetaProperty(node,meta,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(Errors.UnexpectedNewTarget,{at:metaProp}),metaProp}return this.parseNew(node)}parseNew(node){if(this.parseNewCallee(node),this.eat(10)){const args=this.parseExprList(11);this.toReferencedList(args),node.arguments=args;}else node.arguments=[];return this.finishNode(node,"NewExpression")}parseNewCallee(node){node.callee=this.parseNoCallExpr(),"Import"===node.callee.type?this.raise(Errors.ImportCallNotNewExpression,{at:node.callee}):this.isOptionalChain(node.callee)?this.raise(Errors.OptionalChainingNoNew,{at:this.state.lastTokEndLoc}):this.eat(18)&&this.raise(Errors.OptionalChainingNoNew,{at:this.state.startLoc});}parseTemplateElement(isTagged){const{start,startLoc,end,value}=this.state,elemStart=start+1,elem=this.startNodeAt(elemStart,createPositionWithColumnOffset(startLoc,1));null===value&&(isTagged||this.raise(Errors.InvalidEscapeSequenceTemplate,{at:createPositionWithColumnOffset(startLoc,2)}));const isTail=this.match(24),endOffset=isTail?-1:-2,elemEnd=end+endOffset;elem.value={raw:this.input.slice(elemStart,elemEnd).replace(/\r\n?/g,"\n"),cooked:null===value?null:value.slice(1,endOffset)},elem.tail=isTail,this.next();const finishedNode=this.finishNode(elem,"TemplateElement");return this.resetEndLocation(finishedNode,createPositionWithColumnOffset(this.state.lastTokEndLoc,endOffset)),finishedNode}parseTemplate(isTagged){const node=this.startNode();node.expressions=[];let curElt=this.parseTemplateElement(isTagged);for(node.quasis=[curElt];!curElt.tail;)node.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),node.quasis.push(curElt=this.parseTemplateElement(isTagged));return this.finishNode(node,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(close,isPattern,isRecord,refExpressionErrors){isRecord&&this.expectPlugin("recordAndTuple");const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const propHash=Object.create(null);let first=!0;const node=this.startNode();for(node.properties=[],this.next();!this.match(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){this.addTrailingCommaExtraToNode(node);break}let prop;isPattern?prop=this.parseBindingProperty():(prop=this.parsePropertyDefinition(refExpressionErrors),this.checkProto(prop,isRecord,propHash,refExpressionErrors)),isRecord&&!this.isObjectProperty(prop)&&"SpreadElement"!==prop.type&&this.raise(Errors.InvalidRecordProperty,{at:prop}),prop.shorthand&&this.addExtra(prop,"shorthand",!0),node.properties.push(prop);}this.next(),this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody;let type="ObjectExpression";return isPattern?type="ObjectPattern":isRecord&&(type="RecordExpression"),this.finishNode(node,type)}addTrailingCommaExtraToNode(node){this.addExtra(node,"trailingComma",this.state.lastTokStart),this.addExtra(node,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(prop){return !prop.computed&&"Identifier"===prop.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(refExpressionErrors){let decorators=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Errors.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)decorators.push(this.parseDecorator());const prop=this.startNode();let startPos,startLoc,isAsync=!1,isAccessor=!1;if(this.match(21))return decorators.length&&this.unexpected(),this.parseSpread();decorators.length&&(prop.decorators=decorators,decorators=[]),prop.method=!1,refExpressionErrors&&(startPos=this.state.start,startLoc=this.state.startLoc);let isGenerator=this.eat(55);this.parsePropertyNamePrefixOperator(prop);const containsEsc=this.state.containsEsc,key=this.parsePropertyName(prop,refExpressionErrors);if(!isGenerator&&!containsEsc&&this.maybeAsyncOrAccessorProp(prop)){const keyName=key.name;"async"!==keyName||this.hasPrecedingLineBreak()||(isAsync=!0,this.resetPreviousNodeTrailingComments(key),isGenerator=this.eat(55),this.parsePropertyName(prop)),"get"!==keyName&&"set"!==keyName||(isAccessor=!0,this.resetPreviousNodeTrailingComments(key),prop.kind=keyName,this.match(55)&&(isGenerator=!0,this.raise(Errors.AccessorIsGenerator,{at:this.state.curPosition(),kind:keyName}),this.next()),this.parsePropertyName(prop));}return this.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,!1,isAccessor,refExpressionErrors)}getGetterSetterExpectedParamCount(method){return "get"===method.kind?0:1}getObjectOrClassMethodParams(method){return method.params}checkGetterSetterParams(method){var _params;const paramCount=this.getGetterSetterExpectedParamCount(method),params=this.getObjectOrClassMethodParams(method);params.length!==paramCount&&this.raise("get"===method.kind?Errors.BadGetterArity:Errors.BadSetterArity,{at:method}),"set"===method.kind&&"RestElement"===(null==(_params=params[params.length-1])?void 0:_params.type)&&this.raise(Errors.BadSetterRestParameter,{at:method});}parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor){if(isAccessor){const finishedProp=this.parseMethod(prop,isGenerator,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(finishedProp),finishedProp}if(isAsync||isGenerator||this.match(10))return isPattern&&this.unexpected(),prop.kind="method",prop.method=!0,this.parseMethod(prop,isGenerator,isAsync,!1,!1,"ObjectMethod")}parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors){if(prop.shorthand=!1,this.eat(14))return prop.value=isPattern?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(refExpressionErrors),this.finishNode(prop,"ObjectProperty");if(!prop.computed&&"Identifier"===prop.key.type){if(this.checkReservedWord(prop.key.name,prop.key.loc.start,!0,!1),isPattern)prop.value=this.parseMaybeDefault(startPos,startLoc,cloneIdentifier(prop.key));else if(this.match(29)){const shorthandAssignLoc=this.state.startLoc;null!=refExpressionErrors?null===refExpressionErrors.shorthandAssignLoc&&(refExpressionErrors.shorthandAssignLoc=shorthandAssignLoc):this.raise(Errors.InvalidCoverInitializedName,{at:shorthandAssignLoc}),prop.value=this.parseMaybeDefault(startPos,startLoc,cloneIdentifier(prop.key));}else prop.value=cloneIdentifier(prop.key);return prop.shorthand=!0,this.finishNode(prop,"ObjectProperty")}}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){const node=this.parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor)||this.parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors);return node||this.unexpected(),node}parsePropertyName(prop,refExpressionErrors){if(this.eat(0))prop.computed=!0,prop.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {const{type,value}=this.state;let key;if(tokenIsKeywordOrIdentifier(type))key=this.parseIdentifier(!0);else switch(type){case 130:key=this.parseNumericLiteral(value);break;case 129:key=this.parseStringLiteral(value);break;case 131:key=this.parseBigIntLiteral(value);break;case 132:key=this.parseDecimalLiteral(value);break;case 134:{const privateKeyLoc=this.state.startLoc;null!=refExpressionErrors?null===refExpressionErrors.privateKeyLoc&&(refExpressionErrors.privateKeyLoc=privateKeyLoc):this.raise(Errors.UnexpectedPrivateField,{at:privateKeyLoc}),key=this.parsePrivateName();break}default:throw this.unexpected()}prop.key=key,134!==type&&(prop.computed=!1);}return prop.key}initFunction(node,isAsync){node.id=null,node.generator=!1,node.async=!!isAsync;}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope=!1){this.initFunction(node,isAsync),node.generator=!!isGenerator;const allowModifiers=isConstructor;this.scope.enter(18|(inClassScope?64:0)|(allowDirectSuper?32:0)),this.prodParam.enter(functionFlags(isAsync,node.generator)),this.parseFunctionParams(node,allowModifiers);const finishedNode=this.parseFunctionBodyAndFinish(node,type,!0);return this.prodParam.exit(),this.scope.exit(),finishedNode}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){isTuple&&this.expectPlugin("recordAndTuple");const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const node=this.startNode();return this.next(),node.elements=this.parseExprList(close,!isTuple,refExpressionErrors,node),this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,this.finishNode(node,isTuple?"TupleExpression":"ArrayExpression")}parseArrowExpression(node,params,isAsync,trailingCommaLoc){this.scope.enter(6);let flags=functionFlags(isAsync,!1);!this.match(5)&&this.prodParam.hasIn&&(flags|=8),this.prodParam.enter(flags),this.initFunction(node,isAsync);const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;return params&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(node,params,trailingCommaLoc)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(node,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,this.finishNode(node,"ArrowFunctionExpression")}setArrowFunctionParameters(node,params,trailingCommaLoc){this.toAssignableList(params,trailingCommaLoc,!1),node.params=params;}parseFunctionBodyAndFinish(node,type,isMethod=!1){return this.parseFunctionBody(node,!1,isMethod),this.finishNode(node,type)}parseFunctionBody(node,allowExpression,isMethod=!1){const isExpression=allowExpression&&!this.match(5);if(this.expressionScope.enter(newExpressionScope()),isExpression)node.body=this.parseMaybeAssign(),this.checkParams(node,!1,allowExpression,!1);else {const oldStrict=this.state.strict,oldLabels=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),node.body=this.parseBlock(!0,!1,(hasStrictModeDirective=>{const nonSimple=!this.isSimpleParamList(node.params);hasStrictModeDirective&&nonSimple&&this.raise(Errors.IllegalLanguageModeDirective,{at:"method"!==node.kind&&"constructor"!==node.kind||!node.key?node:node.key.loc.end});const strictModeChanged=!oldStrict&&this.state.strict;this.checkParams(node,!(this.state.strict||allowExpression||isMethod||nonSimple),allowExpression,strictModeChanged),this.state.strict&&node.id&&this.checkIdentifier(node.id,65,strictModeChanged);})),this.prodParam.exit(),this.state.labels=oldLabels;}this.expressionScope.exit();}isSimpleParameter(node){return "Identifier"===node.type}isSimpleParamList(params){for(let i=0,len=params.length;i<len;i++)if(!this.isSimpleParameter(params[i]))return !1;return !0}checkParams(node,allowDuplicates,isArrowFunction,strictModeChanged=!0){const checkClashes=!allowDuplicates&&new Set,formalParameters={type:"FormalParameters"};for(const param of node.params)this.checkLVal(param,{in:formalParameters,binding:5,checkClashes,strictModeChanged});}parseExprList(close,allowEmpty,refExpressionErrors,nodeForExtra){const elts=[];let first=!0;for(;!this.eat(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){nodeForExtra&&this.addTrailingCommaExtraToNode(nodeForExtra),this.next();break}elts.push(this.parseExprListItem(allowEmpty,refExpressionErrors));}return elts}parseExprListItem(allowEmpty,refExpressionErrors,allowPlaceholder){let elt;if(this.match(12))allowEmpty||this.raise(Errors.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),elt=null;else if(this.match(21)){const spreadNodeStartPos=this.state.start,spreadNodeStartLoc=this.state.startLoc;elt=this.parseParenItem(this.parseSpread(refExpressionErrors),spreadNodeStartPos,spreadNodeStartLoc);}else if(this.match(17)){this.expectPlugin("partialApplication"),allowPlaceholder||this.raise(Errors.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});const node=this.startNode();this.next(),elt=this.finishNode(node,"ArgumentPlaceholder");}else elt=this.parseMaybeAssignAllowIn(refExpressionErrors,this.parseParenItem);return elt}parseIdentifier(liberal){const node=this.startNode(),name=this.parseIdentifierName(node.start,liberal);return this.createIdentifier(node,name)}createIdentifier(node,name){return node.name=name,node.loc.identifierName=name,this.finishNode(node,"Identifier")}parseIdentifierName(pos,liberal){let name;const{startLoc,type}=this.state;if(!tokenIsKeywordOrIdentifier(type))throw this.unexpected();name=this.state.value;const tokenIsKeyword=type<=92;return liberal?tokenIsKeyword&&this.replaceToken(128):this.checkReservedWord(name,startLoc,tokenIsKeyword,!1),this.next(),name}checkReservedWord(word,startLoc,checkKeywords,isBinding){if(word.length>10)return;if(!function(word){return reservedWordLikeSet.has(word)}(word))return;if("yield"===word){if(this.prodParam.hasYield)return void this.raise(Errors.YieldBindingIdentifier,{at:startLoc})}else if("await"===word){if(this.prodParam.hasAwait)return void this.raise(Errors.AwaitBindingIdentifier,{at:startLoc});if(this.scope.inStaticBlock)return void this.raise(Errors.AwaitBindingIdentifierInStaticBlock,{at:startLoc});this.expressionScope.recordAsyncArrowParametersError({at:startLoc});}else if("arguments"===word&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(Errors.ArgumentsInClass,{at:startLoc});if(checkKeywords&&function(word){return keywords.has(word)}(word))return void this.raise(Errors.UnexpectedKeyword,{at:startLoc,keyword:word});(this.state.strict?isBinding?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(word,this.inModule)&&this.raise(Errors.UnexpectedReservedWord,{at:startLoc,reservedWord:word});}isAwaitAllowed(){return !!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter,{at:node}),this.eat(55)&&this.raise(Errors.ObsoleteAwaitStar,{at:node}),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(node.argument=this.parseMaybeUnary(null,!0)),this.finishNode(node,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;const{type}=this.state;return 53===type||10===type||0===type||tokenIsTemplate(type)||133===type||56===type||this.hasPlugin("v8intrinsic")&&54===type}parseYield(){const node=this.startNode();this.expressionScope.recordParameterInitializerError(Errors.YieldInParameter,{at:node}),this.next();let delegating=!1,argument=null;if(!this.hasPrecedingLineBreak())switch(delegating=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!delegating)break;default:argument=this.parseMaybeAssign();}return node.delegate=delegating,node.argument=argument,this.finishNode(node,"YieldExpression")}checkPipelineAtInfixOperator(left,leftStartLoc){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===left.type&&this.raise(Errors.PipelineHeadSequenceExpression,{at:leftStartLoc});}parseSmartPipelineBodyInStyle(childExpr,startPos,startLoc){if(this.isSimpleReference(childExpr)){const bodyNode=this.startNodeAt(startPos,startLoc);return bodyNode.callee=childExpr,this.finishNode(bodyNode,"PipelineBareFunction")}{const bodyNode=this.startNodeAt(startPos,startLoc);return this.checkSmartPipeTopicBodyEarlyErrors(startLoc),bodyNode.expression=childExpr,this.finishNode(bodyNode,"PipelineTopicExpression")}}isSimpleReference(expression){switch(expression.type){case"MemberExpression":return !expression.computed&&this.isSimpleReference(expression.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(startLoc){if(this.match(19))throw this.raise(Errors.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(Errors.PipelineTopicUnused,{at:startLoc});}withTopicBindingContext(callback){const outerContextTopicState=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return callback()}finally{this.state.topicContext=outerContextTopicState;}}withSmartMixTopicForbiddingContext(callback){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return callback();{const outerContextTopicState=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return callback()}finally{this.state.topicContext=outerContextTopicState;}}}withSoloAwaitPermittingContext(callback){const outerContextSoloAwaitState=this.state.soloAwait;this.state.soloAwait=!0;try{return callback()}finally{this.state.soloAwait=outerContextSoloAwaitState;}}allowInAnd(callback){const flags=this.prodParam.currentFlags();if(8&~flags){this.prodParam.enter(8|flags);try{return callback()}finally{this.prodParam.exit();}}return callback()}disallowInAnd(callback){const flags=this.prodParam.currentFlags();if(8&flags){this.prodParam.enter(-9&flags);try{return callback()}finally{this.prodParam.exit();}}return callback()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0;}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(prec){const startPos=this.state.start,startLoc=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const ret=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),startPos,startLoc,prec);return this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,ret}parseModuleExpression(){this.expectPlugin("moduleBlocks");const node=this.startNode();this.next(),this.eat(5);const revertScopes=this.initializeScopes(!0);this.enterInitialScopes();const program=this.startNode();try{node.body=this.parseProgram(program,8,"module");}finally{revertScopes();}return this.eat(8),this.finishNode(node,"ModuleExpression")}parsePropertyNamePrefixOperator(prop){}}{parseTopLevel(file,program){return file.program=this.parseProgram(program),file.comments=this.state.comments,this.options.tokens&&(file.tokens=function(tokens,input){for(let i=0;i<tokens.length;i++){const token=tokens[i],{type}=token;if("number"==typeof type){if(134===type){const{loc,start,value,end}=token,hashEndPos=start+1,hashEndLoc=createPositionWithColumnOffset(loc.start,1);tokens.splice(i,1,new Token({type:getExportedToken(27),value:"#",start,end:hashEndPos,startLoc:loc.start,endLoc:hashEndLoc}),new Token({type:getExportedToken(128),value,start:hashEndPos,end,startLoc:hashEndLoc,endLoc:loc.end})),i++;continue}if(tokenIsTemplate(type)){const{loc,start,value,end}=token,backquoteEnd=start+1,backquoteEndLoc=createPositionWithColumnOffset(loc.start,1);let startToken,templateValue,templateElementEnd,templateElementEndLoc,endToken;startToken=96===input.charCodeAt(start)?new Token({type:getExportedToken(22),value:"`",start,end:backquoteEnd,startLoc:loc.start,endLoc:backquoteEndLoc}):new Token({type:getExportedToken(8),value:"}",start,end:backquoteEnd,startLoc:loc.start,endLoc:backquoteEndLoc}),24===type?(templateElementEnd=end-1,templateElementEndLoc=createPositionWithColumnOffset(loc.end,-1),templateValue=null===value?null:value.slice(1,-1),endToken=new Token({type:getExportedToken(22),value:"`",start:templateElementEnd,end,startLoc:templateElementEndLoc,endLoc:loc.end})):(templateElementEnd=end-2,templateElementEndLoc=createPositionWithColumnOffset(loc.end,-2),templateValue=null===value?null:value.slice(1,-2),endToken=new Token({type:getExportedToken(23),value:"${",start:templateElementEnd,end,startLoc:templateElementEndLoc,endLoc:loc.end})),tokens.splice(i,1,startToken,new Token({type:getExportedToken(20),value:templateValue,start:backquoteEnd,end:templateElementEnd,startLoc:backquoteEndLoc,endLoc:templateElementEndLoc}),endToken),i+=2;continue}token.type=getExportedToken(type);}}return tokens}(this.tokens,this.input)),this.finishNode(file,"File")}parseProgram(program,end=135,sourceType=this.options.sourceType){if(program.sourceType=sourceType,program.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(program,!0,!0,end),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[localName,at]of Array.from(this.scope.undefinedExports))this.raise(Errors.ModuleExportUndefined,{at,localName});return this.finishNode(program,"Program")}stmtToDirective(stmt){const directive=stmt;directive.type="Directive",directive.value=directive.expression,delete directive.expression;const directiveLiteral=directive.value,expressionValue=directiveLiteral.value,raw=this.input.slice(directiveLiteral.start,directiveLiteral.end),val=directiveLiteral.value=raw.slice(1,-1);return this.addExtra(directiveLiteral,"raw",raw),this.addExtra(directiveLiteral,"rawValue",val),this.addExtra(directiveLiteral,"expressionValue",expressionValue),directiveLiteral.type="DirectiveLiteral",directive}parseInterpreterDirective(){if(!this.match(28))return null;const node=this.startNode();return node.value=this.state.value,this.next(),this.finishNode(node,"InterpreterDirective")}isLet(context){return !!this.isContextual(99)&&this.isLetKeyword(context)}isLetKeyword(context){const next=this.nextTokenStart(),nextCh=this.codePointAtPos(next);if(92===nextCh||91===nextCh)return !0;if(context)return !1;if(123===nextCh)return !0;if(isIdentifierStart(nextCh)){if(keywordRelationalOperator.lastIndex=next,keywordRelationalOperator.test(this.input)){const endCh=this.codePointAtPos(keywordRelationalOperator.lastIndex);if(!isIdentifierChar(endCh)&&92!==endCh)return !1}return !0}return !1}parseStatement(context,topLevel){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(context,topLevel)}parseStatementContent(context,topLevel){let starttype=this.state.type;const node=this.startNode();let kind;switch(this.isLet(context)&&(starttype=74,kind="let"),starttype){case 60:return this.parseBreakContinueStatement(node,!0);case 63:return this.parseBreakContinueStatement(node,!1);case 64:return this.parseDebuggerStatement(node);case 90:return this.parseDoStatement(node);case 91:return this.parseForStatement(node);case 68:if(46===this.lookaheadCharCode())break;return context&&(this.state.strict?this.raise(Errors.StrictFunction,{at:this.state.startLoc}):"if"!==context&&"label"!==context&&this.raise(Errors.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(node,!1,!context);case 80:return context&&this.unexpected(),this.parseClass(node,!0);case 69:return this.parseIfStatement(node);case 70:return this.parseReturnStatement(node);case 71:return this.parseSwitchStatement(node);case 72:return this.parseThrowStatement(node);case 73:return this.parseTryStatement(node);case 75:case 74:return kind=kind||this.state.value,context&&"var"!==kind&&this.raise(Errors.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(node,kind);case 92:return this.parseWhileStatement(node);case 76:return this.parseWithStatement(node);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(node);case 83:{const nextTokenCharCode=this.lookaheadCharCode();if(40===nextTokenCharCode||46===nextTokenCharCode)break}case 82:{let result;return this.options.allowImportExportEverywhere||topLevel||this.raise(Errors.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===starttype?(result=this.parseImport(node),"ImportDeclaration"!==result.type||result.importKind&&"value"!==result.importKind||(this.sawUnambiguousESM=!0)):(result=this.parseExport(node),("ExportNamedDeclaration"!==result.type||result.exportKind&&"value"!==result.exportKind)&&("ExportAllDeclaration"!==result.type||result.exportKind&&"value"!==result.exportKind)&&"ExportDefaultDeclaration"!==result.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(result),result}default:if(this.isAsyncFunction())return context&&this.raise(Errors.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(node,!0,!context)}const maybeName=this.state.value,expr=this.parseExpression();return tokenIsIdentifier(starttype)&&"Identifier"===expr.type&&this.eat(14)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}assertModuleNodeAllowed(node){this.options.allowImportExportEverywhere||this.inModule||this.raise(Errors.ImportOutsideModule,{at:node});}takeDecorators(node){const decorators=this.state.decoratorStack[this.state.decoratorStack.length-1];decorators.length&&(node.decorators=decorators,this.resetStartLocationFromNode(node,decorators[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[]);}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(allowExport){const currentContextDecorators=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){const decorator=this.parseDecorator();currentContextDecorators.push(decorator);}if(this.match(82))allowExport||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Errors.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(Errors.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const node=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const startPos=this.state.start,startLoc=this.state.startLoc;let expr;if(this.match(10)){const startPos=this.state.start,startLoc=this.state.startLoc;this.next(),expr=this.parseExpression(),this.expect(11),expr=this.wrapParenthesis(startPos,startLoc,expr);}else for(expr=this.parseIdentifier(!1);this.eat(16);){const node=this.startNodeAt(startPos,startLoc);node.object=expr,node.property=this.parseIdentifier(!0),node.computed=!1,expr=this.finishNode(node,"MemberExpression");}node.expression=this.parseMaybeDecoratorArguments(expr),this.state.decoratorStack.pop();}else node.expression=this.parseExprSubscripts();return this.finishNode(node,"Decorator")}parseMaybeDecoratorArguments(expr){if(this.eat(10)){const node=this.startNodeAtNode(expr);return node.callee=expr,node.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(node.arguments),this.finishNode(node,"CallExpression")}return expr}parseBreakContinueStatement(node,isBreak){return this.next(),this.isLineTerminator()?node.label=null:(node.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(node,isBreak),this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")}verifyBreakContinue(node,isBreak){let i;for(i=0;i<this.state.labels.length;++i){const lab=this.state.labels[i];if(null==node.label||lab.name===node.label.name){if(null!=lab.kind&&(isBreak||"loop"===lab.kind))break;if(node.label&&isBreak)break}}if(i===this.state.labels.length){const type=isBreak?"BreakStatement":"ContinueStatement";this.raise(Errors.IllegalBreakContinue,{at:node,type});}}parseDebuggerStatement(node){return this.next(),this.semicolon(),this.finishNode(node,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const val=this.parseExpression();return this.expect(11),val}parseDoStatement(node){return this.next(),this.state.labels.push(loopLabel),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(92),node.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(node,"DoWhileStatement")}parseForStatement(node){this.next(),this.state.labels.push(loopLabel);let awaitAt=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(awaitAt=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,null);const startsWithLet=this.isContextual(99),isLet=startsWithLet&&this.isLetKeyword();if(this.match(74)||this.match(75)||isLet){const initNode=this.startNode(),kind=isLet?"let":this.state.value;this.next(),this.parseVar(initNode,!0,kind);const init=this.finishNode(initNode,"VariableDeclaration");return (this.match(58)||this.isContextual(101))&&1===init.declarations.length?this.parseForIn(node,init,awaitAt):(null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,init))}const startsWithAsync=this.isContextual(95),refExpressionErrors=new ExpressionErrors,init=this.parseExpression(!0,refExpressionErrors),isForOf=this.isContextual(101);if(isForOf&&(startsWithLet&&this.raise(Errors.ForOfLet,{at:init}),null===awaitAt&&startsWithAsync&&"Identifier"===init.type&&this.raise(Errors.ForOfAsync,{at:init})),isForOf||this.match(58)){this.checkDestructuringPrivate(refExpressionErrors),this.toAssignable(init,!0);const type=isForOf?"ForOfStatement":"ForInStatement";return this.checkLVal(init,{in:{type}}),this.parseForIn(node,init,awaitAt)}return this.checkExpressionErrors(refExpressionErrors,!0),null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,init)}parseFunctionStatement(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,1|(declarationPosition?0:2),isAsync)}parseIfStatement(node){return this.next(),node.test=this.parseHeaderExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")}parseReturnStatement(node){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(Errors.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")}parseSwitchStatement(node){this.next(),node.discriminant=this.parseHeaderExpression();const cases=node.cases=[];let cur,sawDefault;for(this.expect(5),this.state.labels.push(switchLabel),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){const isCase=this.match(61);cur&&this.finishNode(cur,"SwitchCase"),cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raise(Errors.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),sawDefault=!0,cur.test=null),this.expect(14);}else cur?cur.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(node,"SwitchStatement")}parseThrowStatement(node){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Errors.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")}parseCatchClauseParam(){const param=this.parseBindingAtom(),simple="Identifier"===param.type;return this.scope.enter(simple?8:0),this.checkLVal(param,{in:{type:"CatchClause"},binding:9,allowingSloppyLetBinding:!0}),param}parseTryStatement(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.match(62)){const clause=this.startNode();this.next(),this.match(10)?(this.expect(10),clause.param=this.parseCatchClauseParam(),this.expect(11)):(clause.param=null,this.scope.enter(0)),clause.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),node.handler=this.finishNode(clause,"CatchClause");}return node.finalizer=this.eat(67)?this.parseBlock():null,node.handler||node.finalizer||this.raise(Errors.NoCatchOrFinally,{at:node}),this.finishNode(node,"TryStatement")}parseVarStatement(node,kind,allowMissingInitializer=!1){return this.next(),this.parseVar(node,!1,kind,allowMissingInitializer),this.semicolon(),this.finishNode(node,"VariableDeclaration")}parseWhileStatement(node){return this.next(),node.test=this.parseHeaderExpression(),this.state.labels.push(loopLabel),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(node,"WhileStatement")}parseWithStatement(node){return this.state.strict&&this.raise(Errors.StrictWith,{at:this.state.startLoc}),this.next(),node.object=this.parseHeaderExpression(),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(node,"WithStatement")}parseEmptyStatement(node){return this.next(),this.finishNode(node,"EmptyStatement")}parseLabeledStatement(node,maybeName,expr,context){for(const label of this.state.labels)label.name===maybeName&&this.raise(Errors.LabelRedeclaration,{at:expr,labelName:maybeName});const kind=(token=this.state.type)>=90&&token<=92?"loop":this.match(71)?"switch":null;var token;for(let i=this.state.labels.length-1;i>=0;i--){const label=this.state.labels[i];if(label.statementStart!==node.start)break;label.statementStart=this.state.start,label.kind=kind;}return this.state.labels.push({name:maybeName,kind,statementStart:this.state.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.state.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")}parseExpressionStatement(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")}parseBlock(allowDirectives=!1,createNewLexicalScope=!0,afterBlockParse){const node=this.startNode();return allowDirectives&&this.state.strictErrors.clear(),this.expect(5),createNewLexicalScope&&this.scope.enter(0),this.parseBlockBody(node,allowDirectives,!1,8,afterBlockParse),createNewLexicalScope&&this.scope.exit(),this.finishNode(node,"BlockStatement")}isValidDirective(stmt){return "ExpressionStatement"===stmt.type&&"StringLiteral"===stmt.expression.type&&!stmt.expression.extra.parenthesized}parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse){const body=node.body=[],directives=node.directives=[];this.parseBlockOrModuleBlockBody(body,allowDirectives?directives:void 0,topLevel,end,afterBlockParse);}parseBlockOrModuleBlockBody(body,directives,topLevel,end,afterBlockParse){const oldStrict=this.state.strict;let hasStrictModeDirective=!1,parsedNonDirective=!1;for(;!this.match(end);){const stmt=this.parseStatement(null,topLevel);if(directives&&!parsedNonDirective){if(this.isValidDirective(stmt)){const directive=this.stmtToDirective(stmt);directives.push(directive),hasStrictModeDirective||"use strict"!==directive.value.value||(hasStrictModeDirective=!0,this.setStrict(!0));continue}parsedNonDirective=!0,this.state.strictErrors.clear();}body.push(stmt);}afterBlockParse&&afterBlockParse.call(this,hasStrictModeDirective),oldStrict||this.setStrict(!1),this.next();}parseFor(node,init){return node.init=init,this.semicolon(!1),node.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),node.update=this.match(11)?null:this.parseExpression(),this.expect(11),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(node,"ForStatement")}parseForIn(node,init,awaitAt){const isForIn=this.match(58);return this.next(),isForIn?null!==awaitAt&&this.unexpected(awaitAt):node.await=null!==awaitAt,"VariableDeclaration"!==init.type||null==init.declarations[0].init||isForIn&&!this.state.strict&&"var"===init.kind&&"Identifier"===init.declarations[0].id.type||this.raise(Errors.ForInOfLoopInitializer,{at:init,type:isForIn?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===init.type&&this.raise(Errors.InvalidLhs,{at:init,ancestor:{type:"ForStatement"}}),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")}parseVar(node,isFor,kind,allowMissingInitializer=!1){const declarations=node.declarations=[];for(node.kind=kind;;){const decl=this.startNode();if(this.parseVarId(decl,kind),decl.init=this.eat(29)?isFor?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==decl.init||allowMissingInitializer||("Identifier"===decl.id.type||isFor&&(this.match(58)||this.isContextual(101))?"const"!==kind||this.match(58)||this.isContextual(101)||this.raise(Errors.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(Errors.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(12))break}return node}parseVarId(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,{in:{type:"VariableDeclarator"},binding:"var"===kind?5:9});}parseFunction(node,statement=0,isAsync=!1){const isStatement=1&statement,isHangingStatement=2&statement,requireId=!(!isStatement||4&statement);this.initFunction(node,isAsync),this.match(55)&&isHangingStatement&&this.raise(Errors.GeneratorInSingleStatementContext,{at:this.state.startLoc}),node.generator=this.eat(55),isStatement&&(node.id=this.parseFunctionId(requireId));const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(isAsync,node.generator)),isStatement||(node.id=this.parseFunctionId()),this.parseFunctionParams(node,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(node,isStatement?"FunctionDeclaration":"FunctionExpression");})),this.prodParam.exit(),this.scope.exit(),isStatement&&!isHangingStatement&&this.registerFunctionStatementId(node),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,node}parseFunctionId(requireId){return requireId||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(node,allowModifiers){this.expect(10),this.expressionScope.enter(new ExpressionScope(3)),node.params=this.parseBindingList(11,41,!1,allowModifiers),this.expressionScope.exit();}registerFunctionStatementId(node){node.id&&this.scope.declareName(node.id.name,this.state.strict||node.generator||node.async?this.scope.treatFunctionsAsVar?5:9:17,node.id.loc.start);}parseClass(node,isStatement,optionalId){this.next(),this.takeDecorators(node);const oldStrict=this.state.strict;return this.state.strict=!0,this.parseClassId(node,isStatement,optionalId),this.parseClassSuper(node),node.body=this.parseClassBody(!!node.superClass,oldStrict),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(method){return !(method.computed||method.static||"constructor"!==method.key.name&&"constructor"!==method.key.value)}parseClassBody(hadSuperClass,oldStrict){this.classScope.enter();const state={hadConstructor:!1,hadSuperClass};let decorators=[];const classBody=this.startNode();if(classBody.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(decorators.length>0)throw this.raise(Errors.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){decorators.push(this.parseDecorator());continue}const member=this.startNode();decorators.length&&(member.decorators=decorators,this.resetStartLocationFromNode(member,decorators[0]),decorators=[]),this.parseClassMember(classBody,member,state),"constructor"===member.kind&&member.decorators&&member.decorators.length>0&&this.raise(Errors.DecoratorConstructor,{at:member});}})),this.state.strict=oldStrict,this.next(),decorators.length)throw this.raise(Errors.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(classBody,"ClassBody")}parseClassMemberFromModifier(classBody,member){const key=this.parseIdentifier(!0);if(this.isClassMethod()){const method=member;return method.kind="method",method.computed=!1,method.key=key,method.static=!1,this.pushClassMethod(classBody,method,!1,!1,!1,!1),!0}if(this.isClassProperty()){const prop=member;return prop.computed=!1,prop.key=key,prop.static=!1,classBody.body.push(this.parseClassProperty(prop)),!0}return this.resetPreviousNodeTrailingComments(key),!1}parseClassMember(classBody,member,state){const isStatic=this.isContextual(104);if(isStatic){if(this.parseClassMemberFromModifier(classBody,member))return;if(this.eat(5))return void this.parseClassStaticBlock(classBody,member)}this.parseClassMemberWithIsStatic(classBody,member,state,isStatic);}parseClassMemberWithIsStatic(classBody,member,state,isStatic){const publicMethod=member,privateMethod=member,publicProp=member,privateProp=member,accessorProp=member,method=publicMethod,publicMember=publicMethod;if(member.static=isStatic,this.parsePropertyNamePrefixOperator(member),this.eat(55)){method.kind="method";const isPrivateName=this.match(134);return this.parseClassElementName(method),isPrivateName?void this.pushClassPrivateMethod(classBody,privateMethod,!0,!1):(this.isNonstaticConstructor(publicMethod)&&this.raise(Errors.ConstructorIsGenerator,{at:publicMethod.key}),void this.pushClassMethod(classBody,publicMethod,!0,!1,!1,!1))}const isContextual=tokenIsIdentifier(this.state.type)&&!this.state.containsEsc,isPrivate=this.match(134),key=this.parseClassElementName(member),maybeQuestionTokenStartLoc=this.state.startLoc;if(this.parsePostMemberNameModifiers(publicMember),this.isClassMethod()){if(method.kind="method",isPrivate)return void this.pushClassPrivateMethod(classBody,privateMethod,!1,!1);const isConstructor=this.isNonstaticConstructor(publicMethod);let allowsDirectSuper=!1;isConstructor&&(publicMethod.kind="constructor",state.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Errors.DuplicateConstructor,{at:key}),isConstructor&&this.hasPlugin("typescript")&&member.override&&this.raise(Errors.OverrideOnConstructor,{at:key}),state.hadConstructor=!0,allowsDirectSuper=state.hadSuperClass),this.pushClassMethod(classBody,publicMethod,!1,!1,isConstructor,allowsDirectSuper);}else if(this.isClassProperty())isPrivate?this.pushClassPrivateProperty(classBody,privateProp):this.pushClassProperty(classBody,publicProp);else if(isContextual&&"async"===key.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(key);const isGenerator=this.eat(55);publicMember.optional&&this.unexpected(maybeQuestionTokenStartLoc),method.kind="method";const isPrivate=this.match(134);this.parseClassElementName(method),this.parsePostMemberNameModifiers(publicMember),isPrivate?this.pushClassPrivateMethod(classBody,privateMethod,isGenerator,!0):(this.isNonstaticConstructor(publicMethod)&&this.raise(Errors.ConstructorIsAsync,{at:publicMethod.key}),this.pushClassMethod(classBody,publicMethod,isGenerator,!0,!1,!1));}else if(!isContextual||"get"!==key.name&&"set"!==key.name||this.match(55)&&this.isLineTerminator())if(isContextual&&"accessor"===key.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(key);const isPrivate=this.match(134);this.parseClassElementName(publicProp),this.pushClassAccessorProperty(classBody,accessorProp,isPrivate);}else this.isLineTerminator()?isPrivate?this.pushClassPrivateProperty(classBody,privateProp):this.pushClassProperty(classBody,publicProp):this.unexpected();else {this.resetPreviousNodeTrailingComments(key),method.kind=key.name;const isPrivate=this.match(134);this.parseClassElementName(publicMethod),isPrivate?this.pushClassPrivateMethod(classBody,privateMethod,!1,!1):(this.isNonstaticConstructor(publicMethod)&&this.raise(Errors.ConstructorIsAccessor,{at:publicMethod.key}),this.pushClassMethod(classBody,publicMethod,!1,!1,!1,!1)),this.checkGetterSetterParams(publicMethod);}}parseClassElementName(member){const{type,value}=this.state;if(128!==type&&129!==type||!member.static||"prototype"!==value||this.raise(Errors.StaticPrototype,{at:this.state.startLoc}),134===type){"constructor"===value&&this.raise(Errors.ConstructorClassPrivateField,{at:this.state.startLoc});const key=this.parsePrivateName();return member.key=key,key}return this.parsePropertyName(member)}parseClassStaticBlock(classBody,member){var _member$decorators;this.scope.enter(208);const oldLabels=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const body=member.body=[];this.parseBlockOrModuleBlockBody(body,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=oldLabels,classBody.body.push(this.finishNode(member,"StaticBlock")),null!=(_member$decorators=member.decorators)&&_member$decorators.length&&this.raise(Errors.DecoratorStaticBlock,{at:member});}pushClassProperty(classBody,prop){prop.computed||"constructor"!==prop.key.name&&"constructor"!==prop.key.value||this.raise(Errors.ConstructorClassField,{at:prop.key}),classBody.body.push(this.parseClassProperty(prop));}pushClassPrivateProperty(classBody,prop){const node=this.parseClassPrivateProperty(prop);classBody.body.push(node),this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),0,node.key.loc.start);}pushClassAccessorProperty(classBody,prop,isPrivate){if(!isPrivate&&!prop.computed){const key=prop.key;"constructor"!==key.name&&"constructor"!==key.value||this.raise(Errors.ConstructorClassField,{at:key});}const node=this.parseClassAccessorProperty(prop);classBody.body.push(node),isPrivate&&this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),0,node.key.loc.start);}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){classBody.body.push(this.parseMethod(method,isGenerator,isAsync,isConstructor,allowsDirectSuper,"ClassMethod",!0));}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){const node=this.parseMethod(method,isGenerator,isAsync,!1,!1,"ClassPrivateMethod",!0);classBody.body.push(node);const kind="get"===node.kind?node.static?6:2:"set"===node.kind?node.static?5:1:0;this.declareClassPrivateMethodInScope(node,kind);}declareClassPrivateMethodInScope(node,kind){this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),kind,node.key.loc.start);}parsePostMemberNameModifiers(methodOrProp){}parseClassPrivateProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassPrivateProperty")}parseClassProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassProperty")}parseClassAccessorProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassAccessorProperty")}parseInitializer(node){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),node.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(node,isStatement,optionalId,bindingType=139){if(tokenIsIdentifier(this.state.type))node.id=this.parseIdentifier(),isStatement&&this.declareNameFromIdentifier(node.id,bindingType);else {if(!optionalId&&isStatement)throw this.raise(Errors.MissingClassName,{at:this.state.startLoc});node.id=null;}}parseClassSuper(node){node.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(node){const hasDefault=this.maybeParseExportDefaultSpecifier(node),parseAfterDefault=!hasDefault||this.eat(12),hasStar=parseAfterDefault&&this.eatExportStar(node),hasNamespace=hasStar&&this.maybeParseExportNamespaceSpecifier(node),parseAfterNamespace=parseAfterDefault&&(!hasNamespace||this.eat(12)),isFromRequired=hasDefault||hasStar;if(hasStar&&!hasNamespace)return hasDefault&&this.unexpected(),this.parseExportFrom(node,!0),this.finishNode(node,"ExportAllDeclaration");const hasSpecifiers=this.maybeParseExportNamedSpecifiers(node);if(hasDefault&&parseAfterDefault&&!hasStar&&!hasSpecifiers||hasNamespace&&parseAfterNamespace&&!hasSpecifiers)throw this.unexpected(null,5);let hasDeclaration;if(isFromRequired||hasSpecifiers?(hasDeclaration=!1,this.parseExportFrom(node,isFromRequired)):hasDeclaration=this.maybeParseExportDeclaration(node),isFromRequired||hasSpecifiers||hasDeclaration)return this.checkExport(node,!0,!1,!!node.source),this.finishNode(node,"ExportNamedDeclaration");if(this.eat(65))return node.declaration=this.parseExportDefaultExpression(),this.checkExport(node,!0,!0),this.finishNode(node,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(node){return this.eat(55)}maybeParseExportDefaultSpecifier(node){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const specifier=this.startNode();return specifier.exported=this.parseIdentifier(!0),node.specifiers=[this.finishNode(specifier,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(node){if(this.isContextual(93)){node.specifiers||(node.specifiers=[]);const specifier=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),specifier.exported=this.parseModuleExportName(),node.specifiers.push(this.finishNode(specifier,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(node){if(this.match(5)){node.specifiers||(node.specifiers=[]);const isTypeExport="type"===node.exportKind;return node.specifiers.push(...this.parseExportSpecifiers(isTypeExport)),node.source=null,node.declaration=null,this.hasPlugin("importAssertions")&&(node.assertions=[]),!0}return !1}maybeParseExportDeclaration(node){return !!this.shouldParseExportDeclaration()&&(node.specifiers=[],node.source=null,this.hasPlugin("importAssertions")&&(node.assertions=[]),node.declaration=this.parseExportDeclaration(node),!0)}isAsyncFunction(){if(!this.isContextual(95))return !1;const next=this.nextTokenStart();return !lineBreak.test(this.input.slice(this.state.pos,next))&&this.isUnparsedContextual(next,"function")}parseExportDefaultExpression(){const expr=this.startNode(),isAsync=this.isAsyncFunction();if(this.match(68)||isAsync)return this.next(),isAsync&&this.next(),this.parseFunction(expr,5,isAsync);if(this.match(80))return this.parseClass(expr,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Errors.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(expr,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Errors.UnsupportedDefaultExport,{at:this.state.startLoc});const res=this.parseMaybeAssignAllowIn();return this.semicolon(),res}parseExportDeclaration(node){return this.parseStatement(null)}isExportDefaultSpecifier(){const{type}=this.state;if(tokenIsIdentifier(type)){if(95===type&&!this.state.containsEsc||99===type)return !1;if((126===type||125===type)&&!this.state.containsEsc){const{type:nextType}=this.lookahead();if(tokenIsIdentifier(nextType)&&97!==nextType||5===nextType)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return !1;const next=this.nextTokenStart(),hasFrom=this.isUnparsedContextual(next,"from");if(44===this.input.charCodeAt(next)||tokenIsIdentifier(this.state.type)&&hasFrom)return !0;if(this.match(65)&&hasFrom){const nextAfterFrom=this.input.charCodeAt(this.nextTokenStartSince(next+4));return 34===nextAfterFrom||39===nextAfterFrom}return !1}parseExportFrom(node,expect){if(this.eatContextual(97)){node.source=this.parseImportSource(),this.checkExport(node);const assertions=this.maybeParseImportAssertions();assertions&&(node.assertions=assertions,this.checkJSONModuleImport(node));}else expect&&this.unexpected();this.semicolon();}shouldParseExportDeclaration(){const{type}=this.state;if(26===type&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(Errors.DecoratorBeforeExport,{at:this.state.startLoc});return !0}return 74===type||75===type||68===type||80===type||this.isLet()||this.isAsyncFunction()}checkExport(node,checkNames,isDefault,isFrom){if(checkNames)if(isDefault){if(this.checkDuplicateExports(node,"default"),this.hasPlugin("exportDefaultFrom")){var _declaration$extra;const declaration=node.declaration;"Identifier"!==declaration.type||"from"!==declaration.name||declaration.end-declaration.start!=4||null!=(_declaration$extra=declaration.extra)&&_declaration$extra.parenthesized||this.raise(Errors.ExportDefaultFromAsIdentifier,{at:declaration});}}else if(node.specifiers&&node.specifiers.length)for(const specifier of node.specifiers){const{exported}=specifier,exportName="Identifier"===exported.type?exported.name:exported.value;if(this.checkDuplicateExports(specifier,exportName),!isFrom&&specifier.local){const{local}=specifier;"Identifier"!==local.type?this.raise(Errors.ExportBindingIsString,{at:specifier,localName:local.value,exportName}):(this.checkReservedWord(local.name,local.loc.start,!0,!1),this.scope.checkLocalExport(local));}}else if(node.declaration)if("FunctionDeclaration"===node.declaration.type||"ClassDeclaration"===node.declaration.type){const id=node.declaration.id;if(!id)throw new Error("Assertion failure");this.checkDuplicateExports(node,id.name);}else if("VariableDeclaration"===node.declaration.type)for(const declaration of node.declaration.declarations)this.checkDeclaration(declaration.id);if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(Errors.UnsupportedDecoratorExport,{at:node})}checkDeclaration(node){if("Identifier"===node.type)this.checkDuplicateExports(node,node.name);else if("ObjectPattern"===node.type)for(const prop of node.properties)this.checkDeclaration(prop);else if("ArrayPattern"===node.type)for(const elem of node.elements)elem&&this.checkDeclaration(elem);else "ObjectProperty"===node.type?this.checkDeclaration(node.value):"RestElement"===node.type?this.checkDeclaration(node.argument):"AssignmentPattern"===node.type&&this.checkDeclaration(node.left);}checkDuplicateExports(node,exportName){this.exportedIdentifiers.has(exportName)&&("default"===exportName?this.raise(Errors.DuplicateDefaultExport,{at:node}):this.raise(Errors.DuplicateExport,{at:node,exportName})),this.exportedIdentifiers.add(exportName);}parseExportSpecifiers(isInTypeExport){const nodes=[];let first=!0;for(this.expect(5);!this.eat(8);){if(first)first=!1;else if(this.expect(12),this.eat(8))break;const isMaybeTypeOnly=this.isContextual(126),isString=this.match(129),node=this.startNode();node.local=this.parseModuleExportName(),nodes.push(this.parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly));}return nodes}parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly){return this.eatContextual(93)?node.exported=this.parseModuleExportName():isString?node.exported=cloneStringLiteral(node.local):node.exported||(node.exported=cloneIdentifier(node.local)),this.finishNode(node,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){const result=this.parseStringLiteral(this.state.value),surrogate=result.value.match(loneSurrogate);return surrogate&&this.raise(Errors.ModuleExportNameHasLoneSurrogate,{at:result,surrogateCharCode:surrogate[0].charCodeAt(0)}),result}return this.parseIdentifier(!0)}isJSONModuleImport(node){return null!=node.assertions&&node.assertions.some((({key,value})=>"json"===value.value&&("Identifier"===key.type?"type"===key.name:"type"===key.value)))}checkJSONModuleImport(node){if(this.isJSONModuleImport(node)&&"ExportAllDeclaration"!==node.type){const{specifiers}=node;if(null!=node.specifiers){const nonDefaultNamedSpecifier=specifiers.find((specifier=>{let imported;if("ExportSpecifier"===specifier.type?imported=specifier.local:"ImportSpecifier"===specifier.type&&(imported=specifier.imported),void 0!==imported)return "Identifier"===imported.type?"default"!==imported.name:"default"!==imported.value}));void 0!==nonDefaultNamedSpecifier&&this.raise(Errors.ImportJSONBindingNotDefault,{at:nonDefaultNamedSpecifier.loc.start});}}}parseImport(node){if(node.specifiers=[],!this.match(129)){const parseNext=!this.maybeParseDefaultImportSpecifier(node)||this.eat(12),hasStar=parseNext&&this.maybeParseStarImportSpecifier(node);parseNext&&!hasStar&&this.parseNamedImportSpecifiers(node),this.expectContextual(97);}node.source=this.parseImportSource();const assertions=this.maybeParseImportAssertions();if(assertions)node.assertions=assertions;else {const attributes=this.maybeParseModuleAttributes();attributes&&(node.attributes=attributes);}return this.checkJSONModuleImport(node),this.semicolon(),this.finishNode(node,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(node){return tokenIsIdentifier(this.state.type)}parseImportSpecifierLocal(node,specifier,type){specifier.local=this.parseIdentifier(),node.specifiers.push(this.finishImportSpecifier(specifier,type));}finishImportSpecifier(specifier,type){return this.checkLVal(specifier.local,{in:specifier,binding:9}),this.finishNode(specifier,type)}parseAssertEntries(){const attrs=[],attrNames=new Set;do{if(this.match(8))break;const node=this.startNode(),keyName=this.state.value;if(attrNames.has(keyName)&&this.raise(Errors.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:keyName}),attrNames.add(keyName),this.match(129)?node.key=this.parseStringLiteral(keyName):node.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(Errors.ModuleAttributeInvalidValue,{at:this.state.startLoc});node.value=this.parseStringLiteral(this.state.value),attrs.push(this.finishNode(node,"ImportAttribute"));}while(this.eat(12));return attrs}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const attrs=[],attributes=new Set;do{const node=this.startNode();if(node.key=this.parseIdentifier(!0),"type"!==node.key.name&&this.raise(Errors.ModuleAttributeDifferentFromType,{at:node.key}),attributes.has(node.key.name)&&this.raise(Errors.ModuleAttributesWithDuplicateKeys,{at:node.key,key:node.key.name}),attributes.add(node.key.name),this.expect(14),!this.match(129))throw this.raise(Errors.ModuleAttributeInvalidValue,{at:this.state.startLoc});node.value=this.parseStringLiteral(this.state.value),this.finishNode(node,"ImportAttribute"),attrs.push(node);}while(this.eat(12));return attrs}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);const attrs=this.parseAssertEntries();return this.eat(8),attrs}maybeParseDefaultImportSpecifier(node){return !!this.shouldParseDefaultImport(node)&&(this.parseImportSpecifierLocal(node,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(node){if(this.match(55)){const specifier=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(node,specifier,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(node){let first=!0;for(this.expect(5);!this.eat(8);){if(first)first=!1;else {if(this.eat(14))throw this.raise(Errors.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}const specifier=this.startNode(),importedIsString=this.match(129),isMaybeTypeOnly=this.isContextual(126);specifier.imported=this.parseModuleExportName();const importSpecifier=this.parseImportSpecifier(specifier,importedIsString,"type"===node.importKind||"typeof"===node.importKind,isMaybeTypeOnly);node.specifiers.push(importSpecifier);}}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly){if(this.eatContextual(93))specifier.local=this.parseIdentifier();else {const{imported}=specifier;if(importedIsString)throw this.raise(Errors.ImportBindingIsString,{at:specifier,importName:imported.value});this.checkReservedWord(imported.name,specifier.loc.start,!0,!0),specifier.local||(specifier.local=cloneIdentifier(imported));}return this.finishImportSpecifier(specifier,"ImportSpecifier")}isThisParam(param){return "Identifier"===param.type&&"this"===param.name}}{constructor(options,input){super(options=function(opts){const options={};for(const key of Object.keys(defaultOptions))options[key]=opts&&null!=opts[key]?opts[key]:defaultOptions[key];return options}(options),input),this.options=options,this.initializeScopes(),this.plugins=function(plugins){const pluginMap=new Map;for(const plugin of plugins){const[name,options]=Array.isArray(plugin)?plugin:[plugin,{}];pluginMap.has(name)||pluginMap.set(name,options||{});}return pluginMap}(this.options.plugins),this.filename=options.sourceFilename;}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const file=this.startNode(),program=this.startNode();return this.nextToken(),file.errors=null,this.parseTopLevel(file,program),file.errors=this.state.errors,file}}const tokTypes=function(internalTokenTypes){const tokenTypes={};for(const typeName of Object.keys(internalTokenTypes))tokenTypes[typeName]=getExportedToken(internalTokenTypes[typeName]);return tokenTypes}(tt);function getParser(options,input){let cls=Parser;return null!=options&&options.plugins&&(!function(plugins){if(hasPlugin(plugins,"decorators")){if(hasPlugin(plugins,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const decoratorsBeforeExport=getPluginOption(plugins,"decorators","decoratorsBeforeExport");if(null==decoratorsBeforeExport)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof decoratorsBeforeExport)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(hasPlugin(plugins,"flow")&&hasPlugin(plugins,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(plugins,"placeholders")&&hasPlugin(plugins,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(plugins,"pipelineOperator")){const proposal=getPluginOption(plugins,"pipelineOperator","proposal");if(!PIPELINE_PROPOSALS.includes(proposal)){const proposalList=PIPELINE_PROPOSALS.map((p=>`"${p}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`)}const tupleSyntaxIsHash=hasPlugin(plugins,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===proposal){if(hasPlugin(plugins,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(hasPlugin(plugins,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const topicToken=getPluginOption(plugins,"pipelineOperator","topicToken");if(!TOPIC_TOKENS.includes(topicToken)){const tokenList=TOPIC_TOKENS.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`)}if("#"===topicToken&&tupleSyntaxIsHash)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===proposal&&tupleSyntaxIsHash)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(hasPlugin(plugins,"moduleAttributes")){if(hasPlugin(plugins,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(plugins,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(hasPlugin(plugins,"recordAndTuple")&&!RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+RECORD_AND_TUPLE_SYNTAX_TYPES.map((p=>`'${p}'`)).join(", "));if(hasPlugin(plugins,"asyncDoExpressions")&&!hasPlugin(plugins,"doExpressions")){const error=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw error.missingPlugins="doExpressions",error}}(options.plugins),cls=function(pluginsFromOptions){const pluginList=mixinPluginNames.filter((name=>hasPlugin(pluginsFromOptions,name))),key=pluginList.join("/");let cls=parserClassCache[key];if(!cls){cls=Parser;for(const plugin of pluginList)cls=mixinPlugins[plugin](cls);parserClassCache[key]=cls;}return cls}(options.plugins)),new cls(options,input)}const parserClassCache={};exports.parse=function(input,options){var _options;if("unambiguous"!==(null==(_options=options)?void 0:_options.sourceType))return getParser(options,input).parse();options=Object.assign({},options);try{options.sourceType="module";const parser=getParser(options,input),ast=parser.parse();if(parser.sawUnambiguousESM)return ast;if(parser.ambiguousScriptDifferentAst)try{return options.sourceType="script",getParser(options,input).parse()}catch(_unused){}else ast.program.sourceType="script";return ast}catch(moduleError){try{return options.sourceType="script",getParser(options,input).parse()}catch(_unused2){}throw moduleError}},exports.parseExpression=function(input,options){const parser=getParser(options,input);return parser.options.strictMode&&(parser.state.strict=!0),parser.getExpression()},exports.tokTypes=tokTypes;},"./node_modules/.pnpm/@babel+parser@7.19.1/node_modules/@babel/parser/lib/index.js":(__unused_webpack_module,exports)=>{function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return {};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}Object.defineProperty(exports,"__esModule",{value:!0});class Position{constructor(line,col,index){this.line=void 0,this.column=void 0,this.index=void 0,this.line=line,this.column=col,this.index=index;}}class SourceLocation{constructor(start,end){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=start,this.end=end;}}function createPositionWithColumnOffset(position,columnOffset){const{line,column,index}=position;return new Position(line,column+columnOffset,index+columnOffset)}var ParseErrorCode_SyntaxError="BABEL_PARSER_SYNTAX_ERROR",ParseErrorCode_SourceTypeModuleError="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";const reflect=(keys,last=keys.length-1)=>({get(){return keys.reduce(((object,key)=>object[key]),this)},set(value){keys.reduce(((item,key,i)=>i===last?item[key]=value:item[key]),this);}});var ModuleErrors={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:ParseErrorCode_SourceTypeModuleError},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:ParseErrorCode_SourceTypeModuleError}};const NodeDescriptions={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},toNodeDescription=({type,prefix})=>"UpdateExpression"===type?NodeDescriptions.UpdateExpression[String(prefix)]:NodeDescriptions[type];var StandardErrors={AccessorIsGenerator:({kind})=>`A ${kind}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind})=>`Missing initializer in ${kind} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName})=>`\`${exportName}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName,exportName})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${localName}' as '${exportName}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type})=>`'${"ForInStatement"===type?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type})=>`Unsyntactic ${"BreakStatement"===type?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${importName}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount})=>`\`import()\` requires exactly ${1===maxArgumentCount?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix})=>`Expected number in radix ${radix}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord})=>`Escape sequence in keyword ${reservedWord}.`,InvalidIdentifier:({identifierName})=>`Invalid identifier ${identifierName}.`,InvalidLhs:({ancestor})=>`Invalid left-hand side in ${toNodeDescription(ancestor)}.`,InvalidLhsBinding:({ancestor})=>`Binding invalid left-hand side in ${toNodeDescription(ancestor)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected})=>`Unexpected character '${unexpected}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName})=>`Private name #${identifierName} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName})=>`Label '${labelName}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin})=>`This experimental syntax requires enabling the parser plugin: ${missingPlugin.map((name=>JSON.stringify(name))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${missingPlugin.map((name=>JSON.stringify(name))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key})=>`Duplicate key "${key}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode})=>`An export name cannot include a lone surrogate, found '\\u${surrogateCharCode.toString(16)}'.`,ModuleExportUndefined:({localName})=>`Export '${localName}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName})=>`Private names are only allowed in property accesses (\`obj.#${identifierName}\`) or in \`in\` expressions (\`#${identifierName} in obj\`).`,PrivateNameRedeclaration:({identifierName})=>`Duplicate private name #${identifierName}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword})=>`Unexpected keyword '${keyword}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord})=>`Unexpected reserved word '${reservedWord}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected,unexpected})=>`Unexpected token${unexpected?` '${unexpected}'.`:""}${expected?`, expected "${expected}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target,onlyValidPropertyName})=>`The only valid meta property for ${target} is ${target}.${onlyValidPropertyName}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",VarRedeclaration:({identifierName})=>`Identifier '${identifierName}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const UnparenthesizedPipeBodyDescriptions=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var PipelineOperatorErrors={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token})=>`Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const _excluded$1=["toMessage"],_excluded2$1=["message"];function toParseErrorConstructor(_ref){let{toMessage}=_ref,properties=_objectWithoutPropertiesLoose(_ref,_excluded$1);return function constructor({loc,details}){return ((constructor,properties,descriptors)=>Object.keys(descriptors).map((key=>[key,descriptors[key]])).filter((([,descriptor])=>!!descriptor)).map((([key,descriptor])=>[key,"function"==typeof descriptor?{value:descriptor,enumerable:!1}:"string"==typeof descriptor.reflect?Object.assign({},descriptor,reflect(descriptor.reflect.split("."))):descriptor])).reduce(((instance,[key,descriptor])=>Object.defineProperty(instance,key,Object.assign({configurable:!0},descriptor))),Object.assign(new constructor,properties)))(SyntaxError,Object.assign({},properties,{loc}),{clone(overrides={}){const loc=overrides.loc||{};return constructor({loc:new Position("line"in loc?loc.line:this.loc.line,"column"in loc?loc.column:this.loc.column,"index"in loc?loc.index:this.loc.index),details:Object.assign({},this.details,overrides.details)})},details:{value:details,enumerable:!1},message:{get(){return `${toMessage(this.details)} (${this.loc.line}:${this.loc.column})`},set(value){Object.defineProperty(this,"message",{value});}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in details&&{reflect:"details.missingPlugin",enumerable:!0}})}}function ParseErrorEnum(argument,syntaxPlugin){if(Array.isArray(argument))return parseErrorTemplates=>ParseErrorEnum(parseErrorTemplates,argument[0]);const ParseErrorConstructors={};for(const reasonCode of Object.keys(argument)){const template=argument[reasonCode],_ref2="string"==typeof template?{message:()=>template}:"function"==typeof template?{message:template}:template,{message}=_ref2,rest=_objectWithoutPropertiesLoose(_ref2,_excluded2$1),toMessage="string"==typeof message?()=>message:message;ParseErrorConstructors[reasonCode]=toParseErrorConstructor(Object.assign({code:ParseErrorCode_SyntaxError,reasonCode,toMessage},syntaxPlugin?{syntaxPlugin}:{},rest));}return ParseErrorConstructors}const Errors=Object.assign({},ParseErrorEnum(ModuleErrors),ParseErrorEnum(StandardErrors),ParseErrorEnum({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName})=>`Assigning to '${referenceName}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName})=>`Binding '${bindingName}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors)),{defineProperty}=Object,toUnenumerable=(object,key)=>defineProperty(object,key,{enumerable:!1,value:object[key]});function toESTreeLocation(node){return node.loc.start&&toUnenumerable(node.loc.start,"index"),node.loc.end&&toUnenumerable(node.loc.end,"index"),node}class TokContext{constructor(token,preserveSpace){this.token=void 0,this.preserveSpace=void 0,this.token=token,this.preserveSpace=!!preserveSpace;}}const types={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",!0)};types.template=new TokContext("`",!0);class ExportedTokenType{constructor(label,conf={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.rightAssociative=!!conf.rightAssociative,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=null!=conf.binop?conf.binop:null,this.updateContext=null;}}const keywords$1=new Map;function createKeyword(name,options={}){options.keyword=name;const token=createToken(name,options);return keywords$1.set(name,token),token}function createBinop(name,binop){return createToken(name,{beforeExpr:true,binop})}let tokenTypeCounter=-1;const tokenTypes=[],tokenLabels=[],tokenBinops=[],tokenBeforeExprs=[],tokenStartsExprs=[],tokenPrefixes=[];function createToken(name,options={}){var _options$binop,_options$beforeExpr,_options$startsExpr,_options$prefix;return ++tokenTypeCounter,tokenLabels.push(name),tokenBinops.push(null!=(_options$binop=options.binop)?_options$binop:-1),tokenBeforeExprs.push(null!=(_options$beforeExpr=options.beforeExpr)&&_options$beforeExpr),tokenStartsExprs.push(null!=(_options$startsExpr=options.startsExpr)&&_options$startsExpr),tokenPrefixes.push(null!=(_options$prefix=options.prefix)&&_options$prefix),tokenTypes.push(new ExportedTokenType(name,options)),tokenTypeCounter}function createKeywordLike(name,options={}){var _options$binop2,_options$beforeExpr2,_options$startsExpr2,_options$prefix2;return ++tokenTypeCounter,keywords$1.set(name,tokenTypeCounter),tokenLabels.push(name),tokenBinops.push(null!=(_options$binop2=options.binop)?_options$binop2:-1),tokenBeforeExprs.push(null!=(_options$beforeExpr2=options.beforeExpr)&&_options$beforeExpr2),tokenStartsExprs.push(null!=(_options$startsExpr2=options.startsExpr)&&_options$startsExpr2),tokenPrefixes.push(null!=(_options$prefix2=options.prefix)&&_options$prefix2),tokenTypes.push(new ExportedTokenType("name",options)),tokenTypeCounter}const tt={bracketL:createToken("[",{beforeExpr:true,startsExpr:true}),bracketHashL:createToken("#[",{beforeExpr:true,startsExpr:true}),bracketBarL:createToken("[|",{beforeExpr:true,startsExpr:true}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:true,startsExpr:true}),braceBarL:createToken("{|",{beforeExpr:true,startsExpr:true}),braceHashL:createToken("#{",{beforeExpr:true,startsExpr:true}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:true,startsExpr:true}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:true}),semi:createToken(";",{beforeExpr:true}),colon:createToken(":",{beforeExpr:true}),doubleColon:createToken("::",{beforeExpr:true}),dot:createToken("."),question:createToken("?",{beforeExpr:true}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:true}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:true}),backQuote:createToken("`",{startsExpr:true}),dollarBraceL:createToken("${",{beforeExpr:true,startsExpr:true}),templateTail:createToken("...`",{startsExpr:true}),templateNonTail:createToken("...${",{beforeExpr:true,startsExpr:true}),at:createToken("@"),hash:createToken("#",{startsExpr:true}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:true,isAssign:true}),assign:createToken("_=",{beforeExpr:true,isAssign:true}),slashAssign:createToken("_=",{beforeExpr:true,isAssign:true}),xorAssign:createToken("_=",{beforeExpr:true,isAssign:true}),moduloAssign:createToken("_=",{beforeExpr:true,isAssign:true}),incDec:createToken("++/--",{prefix:true,postfix:!0,startsExpr:true}),bang:createToken("!",{beforeExpr:true,prefix:true,startsExpr:true}),tilde:createToken("~",{beforeExpr:true,prefix:true,startsExpr:true}),doubleCaret:createToken("^^",{startsExpr:true}),doubleAt:createToken("@@",{startsExpr:true}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:createToken("%",{binop:10,startsExpr:true}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:true,binop:11,rightAssociative:!0}),_in:createKeyword("in",{beforeExpr:true,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:true,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:true}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:true}),_else:createKeyword("else",{beforeExpr:true}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:true}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:true}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:true,prefix:true,startsExpr:true}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:true,startsExpr:true}),_this:createKeyword("this",{startsExpr:true}),_super:createKeyword("super",{startsExpr:true}),_class:createKeyword("class",{startsExpr:true}),_extends:createKeyword("extends",{beforeExpr:true}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:true}),_null:createKeyword("null",{startsExpr:true}),_true:createKeyword("true",{startsExpr:true}),_false:createKeyword("false",{startsExpr:true}),_typeof:createKeyword("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:createKeyword("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:createKeyword("delete",{beforeExpr:true,prefix:true,startsExpr:true}),_do:createKeyword("do",{isLoop:true,beforeExpr:true}),_for:createKeyword("for",{isLoop:true}),_while:createKeyword("while",{isLoop:true}),_as:createKeywordLike("as",{startsExpr:true}),_assert:createKeywordLike("assert",{startsExpr:true}),_async:createKeywordLike("async",{startsExpr:true}),_await:createKeywordLike("await",{startsExpr:true}),_from:createKeywordLike("from",{startsExpr:true}),_get:createKeywordLike("get",{startsExpr:true}),_let:createKeywordLike("let",{startsExpr:true}),_meta:createKeywordLike("meta",{startsExpr:true}),_of:createKeywordLike("of",{startsExpr:true}),_sent:createKeywordLike("sent",{startsExpr:true}),_set:createKeywordLike("set",{startsExpr:true}),_static:createKeywordLike("static",{startsExpr:true}),_yield:createKeywordLike("yield",{startsExpr:true}),_asserts:createKeywordLike("asserts",{startsExpr:true}),_checks:createKeywordLike("checks",{startsExpr:true}),_exports:createKeywordLike("exports",{startsExpr:true}),_global:createKeywordLike("global",{startsExpr:true}),_implements:createKeywordLike("implements",{startsExpr:true}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:true}),_infer:createKeywordLike("infer",{startsExpr:true}),_is:createKeywordLike("is",{startsExpr:true}),_mixins:createKeywordLike("mixins",{startsExpr:true}),_proto:createKeywordLike("proto",{startsExpr:true}),_require:createKeywordLike("require",{startsExpr:true}),_keyof:createKeywordLike("keyof",{startsExpr:true}),_readonly:createKeywordLike("readonly",{startsExpr:true}),_unique:createKeywordLike("unique",{startsExpr:true}),_abstract:createKeywordLike("abstract",{startsExpr:true}),_declare:createKeywordLike("declare",{startsExpr:true}),_enum:createKeywordLike("enum",{startsExpr:true}),_module:createKeywordLike("module",{startsExpr:true}),_namespace:createKeywordLike("namespace",{startsExpr:true}),_interface:createKeywordLike("interface",{startsExpr:true}),_type:createKeywordLike("type",{startsExpr:true}),_opaque:createKeywordLike("opaque",{startsExpr:true}),name:createToken("name",{startsExpr:true}),string:createToken("string",{startsExpr:true}),num:createToken("num",{startsExpr:true}),bigint:createToken("bigint",{startsExpr:true}),decimal:createToken("decimal",{startsExpr:true}),regexp:createToken("regexp",{startsExpr:true}),privateName:createToken("#name",{startsExpr:true}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:!0}),jsxTagStart:createToken("jsxTagStart",{startsExpr:!0}),jsxTagEnd:createToken("jsxTagEnd"),placeholder:createToken("%%",{startsExpr:!0})};function tokenIsIdentifier(token){return token>=93&&token<=128}function tokenIsKeywordOrIdentifier(token){return token>=58&&token<=128}function tokenIsLiteralPropertyName(token){return token>=58&&token<=132}function tokenCanStartExpression(token){return tokenStartsExprs[token]}function tokenIsFlowInterfaceOrTypeOrOpaque(token){return token>=125&&token<=127}function tokenIsKeyword(token){return token>=58&&token<=92}function tokenLabelName(token){return tokenLabels[token]}function tokenOperatorPrecedence(token){return tokenBinops[token]}function tokenIsTemplate(token){return token>=24&&token<=25}function getExportedToken(token){return tokenTypes[token]}tokenTypes[8].updateContext=context=>{context.pop();},tokenTypes[5].updateContext=tokenTypes[7].updateContext=tokenTypes[23].updateContext=context=>{context.push(types.brace);},tokenTypes[22].updateContext=context=>{context[context.length-1]===types.template?context.pop():context.push(types.template);},tokenTypes[138].updateContext=context=>{context.push(types.j_expr,types.j_oTag);};let nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;const astralIdentifierStartCodes=[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,3104,541,1507,4938,6,4191],astralIdentifierCodes=[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];function isInAstralSet(code,set){let pos=65536;for(let i=0,length=set.length;i<length;i+=2){if(pos+=set[i],pos>code)return !1;if(pos+=set[i+1],pos>=code)return !0}return !1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}function isStrictBindReservedWord(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)}const reservedWordLikeSet=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class Scope{constructor(flags){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=flags;}}class ScopeHandler{constructor(parser,inModule){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=parser,this.inModule=inModule;}get inFunction(){return (2&this.currentVarScopeFlags())>0}get allowSuper(){return (16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return (32&this.currentThisScopeFlags())>0}get inClass(){return (64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const flags=this.currentThisScopeFlags();return (64&flags)>0&&0==(2&flags)}get inStaticBlock(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(128&flags)return !0;if(323&flags)return !1}}get inNonArrowFunction(){return (2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(flags){return new Scope(flags)}enter(flags){this.scopeStack.push(this.createScope(flags));}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(scope){return !!(130&scope.flags||!this.parser.inModule&&1&scope.flags)}declareName(name,bindingType,loc){let scope=this.currentScope();if(8&bindingType||16&bindingType)this.checkRedeclarationInScope(scope,name,bindingType,loc),16&bindingType?scope.functions.add(name):scope.lexical.add(name),8&bindingType&&this.maybeExportDefined(scope,name);else if(4&bindingType)for(let i=this.scopeStack.length-1;i>=0&&(scope=this.scopeStack[i],this.checkRedeclarationInScope(scope,name,bindingType,loc),scope.var.add(name),this.maybeExportDefined(scope,name),!(259&scope.flags));--i);this.parser.inModule&&1&scope.flags&&this.undefinedExports.delete(name);}maybeExportDefined(scope,name){this.parser.inModule&&1&scope.flags&&this.undefinedExports.delete(name);}checkRedeclarationInScope(scope,name,bindingType,loc){this.isRedeclaredInScope(scope,name,bindingType)&&this.parser.raise(Errors.VarRedeclaration,{at:loc,identifierName:name});}isRedeclaredInScope(scope,name,bindingType){return !!(1&bindingType)&&(8&bindingType?scope.lexical.has(name)||scope.functions.has(name)||scope.var.has(name):16&bindingType?scope.lexical.has(name)||!this.treatFunctionsAsVarInScope(scope)&&scope.var.has(name):scope.lexical.has(name)&&!(8&scope.flags&&scope.lexical.values().next().value===name)||!this.treatFunctionsAsVarInScope(scope)&&scope.functions.has(name))}checkLocalExport(id){const{name}=id,topLevelScope=this.scopeStack[0];topLevelScope.lexical.has(name)||topLevelScope.var.has(name)||topLevelScope.functions.has(name)||this.undefinedExports.set(name,id.loc.start);}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(259&flags)return flags}}currentThisScopeFlags(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(323&flags&&!(4&flags))return flags}}}class FlowScope extends Scope{constructor(...args){super(...args),this.declareFunctions=new Set;}}class FlowScopeHandler extends ScopeHandler{createScope(flags){return new FlowScope(flags)}declareName(name,bindingType,loc){const scope=this.currentScope();if(2048&bindingType)return this.checkRedeclarationInScope(scope,name,bindingType,loc),this.maybeExportDefined(scope,name),void scope.declareFunctions.add(name);super.declareName(name,bindingType,loc);}isRedeclaredInScope(scope,name,bindingType){return !!super.isRedeclaredInScope(scope,name,bindingType)||!!(2048&bindingType)&&(!scope.declareFunctions.has(name)&&(scope.lexical.has(name)||scope.functions.has(name)))}checkLocalExport(id){this.scopeStack[0].declareFunctions.has(id.name)||super.checkLocalExport(id);}}function setTrailingComments(node,comments){void 0===node.trailingComments?node.trailingComments=comments:node.trailingComments.unshift(...comments);}function setInnerComments(node,comments){void 0===node.innerComments?node.innerComments=comments:node.innerComments.unshift(...comments);}function adjustInnerComments(node,elements,commentWS){let lastElement=null,i=elements.length;for(;null===lastElement&&i>0;)lastElement=elements[--i];null===lastElement||lastElement.start>commentWS.start?setInnerComments(node,commentWS.comments):setTrailingComments(lastElement,commentWS.comments);}const lineBreak=/\r\n?|[\n\u2028\u2029]/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code){switch(code){case 10:case 13:case 8232:case 8233:return !0;default:return !1}}const skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,skipWhiteSpaceToLineBreak=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function isWhitespace(code){switch(code){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return !0;default:return !1}}class State{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.commentStack=[],this.pos=0,this.type=135,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[types.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0;}init({strictMode,sourceType,startLine,startColumn}){this.strict=!1!==strictMode&&(!0===strictMode||"module"===sourceType),this.curLine=startLine,this.lineStart=-startColumn,this.startLoc=this.endLoc=new Position(startLine,startColumn,0);}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos)}clone(skipArrays){const state=new State,keys=Object.keys(this);for(let i=0,length=keys.length;i<length;i++){const key=keys[i];let val=this[key];!skipArrays&&Array.isArray(val)&&(val=val.slice()),state[key]=val;}return state}}var _isDigit=function(code){return code>=48&&code<=57};const forbiddenNumericSeparatorSiblings={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},isAllowedNumericSeparatorSibling={bin:ch=>48===ch||49===ch,oct:ch=>ch>=48&&ch<=55,dec:ch=>ch>=48&&ch<=57,hex:ch=>ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102};function readStringContents(type,input,pos,lineStart,curLine,errors){const initialPos=pos,initialLineStart=lineStart,initialCurLine=curLine;let out="",containsInvalid=!1,chunkStart=pos;const{length}=input;for(;;){if(pos>=length){errors.unterminated(initialPos,initialLineStart,initialCurLine),out+=input.slice(chunkStart,pos);break}const ch=input.charCodeAt(pos);if(isStringEnd(type,ch,input,pos)){out+=input.slice(chunkStart,pos);break}if(92===ch){let escaped;out+=input.slice(chunkStart,pos),({ch:escaped,pos,lineStart,curLine}=readEscapedChar(input,pos,lineStart,curLine,"template"===type,errors)),null===escaped?containsInvalid=!0:out+=escaped,chunkStart=pos;}else 8232===ch||8233===ch?(++curLine,lineStart=++pos):10===ch||13===ch?"template"===type?(out+=input.slice(chunkStart,pos)+"\n",++pos,13===ch&&10===input.charCodeAt(pos)&&++pos,++curLine,chunkStart=lineStart=pos):errors.unterminated(initialPos,initialLineStart,initialCurLine):++pos;}return {pos,str:out,containsInvalid,lineStart,curLine}}function isStringEnd(type,ch,input,pos){return "template"===type?96===ch||36===ch&&123===input.charCodeAt(pos+1):ch===("double"===type?34:39)}function readEscapedChar(input,pos,lineStart,curLine,inTemplate,errors){const throwOnInvalid=!inTemplate;pos++;const res=ch=>({pos,ch,lineStart,curLine}),ch=input.charCodeAt(pos++);switch(ch){case 110:return res("\n");case 114:return res("\r");case 120:{let code;return ({code,pos}=readHexChar(input,pos,lineStart,curLine,2,!1,throwOnInvalid,errors)),res(null===code?null:String.fromCharCode(code))}case 117:{let code;return ({code,pos}=readCodePoint(input,pos,lineStart,curLine,throwOnInvalid,errors)),res(null===code?null:String.fromCodePoint(code))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===input.charCodeAt(pos)&&++pos;case 10:lineStart=pos,++curLine;case 8232:case 8233:return res("");case 56:case 57:if(inTemplate)return res(null);errors.strictNumericEscape(pos-1,lineStart,curLine);default:if(ch>=48&&ch<=55){const startPos=pos-1;let octalStr=input.slice(startPos,pos+2).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),pos+=octalStr.length-1;const next=input.charCodeAt(pos);if("0"!==octalStr||56===next||57===next){if(inTemplate)return res(null);errors.strictNumericEscape(startPos,lineStart,curLine);}return res(String.fromCharCode(octal))}return res(String.fromCharCode(ch))}}function readHexChar(input,pos,lineStart,curLine,len,forceLen,throwOnInvalid,errors){const initialPos=pos;let n;return ({n,pos}=readInt(input,pos,lineStart,curLine,16,len,forceLen,!1,errors)),null===n&&(throwOnInvalid?errors.invalidEscapeSequence(initialPos,lineStart,curLine):pos=initialPos-1),{code:n,pos}}function readInt(input,pos,lineStart,curLine,radix,len,forceLen,allowNumSeparator,errors){const start=pos,forbiddenSiblings=16===radix?forbiddenNumericSeparatorSiblings.hex:forbiddenNumericSeparatorSiblings.decBinOct,isAllowedSibling=16===radix?isAllowedNumericSeparatorSibling.hex:10===radix?isAllowedNumericSeparatorSibling.dec:8===radix?isAllowedNumericSeparatorSibling.oct:isAllowedNumericSeparatorSibling.bin;let invalid=!1,total=0;for(let i=0,e=null==len?1/0:len;i<e;++i){const code=input.charCodeAt(pos);let val;if(95!==code||"bail"===allowNumSeparator){if(val=code>=97?code-97+10:code>=65?code-65+10:_isDigit(code)?code-48:1/0,val>=radix)if(val<=9&&errors.invalidDigit(pos,lineStart,curLine,radix))val=0;else {if(!forceLen)break;val=0,invalid=!0;}++pos,total=total*radix+val;}else {const prev=input.charCodeAt(pos-1),next=input.charCodeAt(pos+1);allowNumSeparator?(Number.isNaN(next)||!isAllowedSibling(next)||forbiddenSiblings.has(prev)||forbiddenSiblings.has(next))&&errors.unexpectedNumericSeparator(pos,lineStart,curLine):errors.numericSeparatorInEscapeSequence(pos,lineStart,curLine),++pos;}}return pos===start||null!=len&&pos-start!==len||invalid?{n:null,pos}:{n:total,pos}}function readCodePoint(input,pos,lineStart,curLine,throwOnInvalid,errors){let code;if(123===input.charCodeAt(pos)){if(++pos,({code,pos}=readHexChar(input,pos,lineStart,curLine,input.indexOf("}",pos)-pos,!0,throwOnInvalid,errors)),++pos,null!==code&&code>1114111){if(!throwOnInvalid)return {code:null,pos};errors.invalidCodePoint(pos,lineStart,curLine);}}else ({code,pos}=readHexChar(input,pos,lineStart,curLine,4,!1,throwOnInvalid,errors));return {code,pos}}const _excluded=["at"],_excluded2=["at"];function buildPosition(pos,lineStart,curLine){return new Position(curLine,pos-lineStart,pos)}const VALID_REGEX_FLAGS=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(state){this.type=state.type,this.value=state.value,this.start=state.start,this.end=state.end,this.loc=new SourceLocation(state.startLoc,state.endLoc);}}class ClassScope{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map;}}class ClassScopeHandler{constructor(parser){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=parser;}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope);}exit(){const oldClassScope=this.stack.pop(),current=this.current();for(const[name,loc]of Array.from(oldClassScope.undefinedPrivateNames))current?current.undefinedPrivateNames.has(name)||current.undefinedPrivateNames.set(name,loc):this.parser.raise(Errors.InvalidPrivateFieldResolution,{at:loc,identifierName:name});}declarePrivateName(name,elementType,loc){const{privateNames,loneAccessors,undefinedPrivateNames}=this.current();let redefined=privateNames.has(name);if(3&elementType){const accessor=redefined&&loneAccessors.get(name);if(accessor){const oldStatic=4&accessor,newStatic=4&elementType;redefined=(3&accessor)===(3&elementType)||oldStatic!==newStatic,redefined||loneAccessors.delete(name);}else redefined||loneAccessors.set(name,elementType);}redefined&&this.parser.raise(Errors.PrivateNameRedeclaration,{at:loc,identifierName:name}),privateNames.add(name),undefinedPrivateNames.delete(name);}usePrivateName(name,loc){let classScope;for(classScope of this.stack)if(classScope.privateNames.has(name))return;classScope?classScope.undefinedPrivateNames.set(name,loc):this.parser.raise(Errors.InvalidPrivateFieldResolution,{at:loc,identifierName:name});}}class ExpressionScope{constructor(type=0){this.type=void 0,this.type=type;}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ArrowHeadParsingScope extends ExpressionScope{constructor(type){super(type),this.declarationErrors=new Map;}recordDeclarationError(ParsingErrorClass,{at}){const index=at.index;this.declarationErrors.set(index,[ParsingErrorClass,at]);}clearDeclarationError(index){this.declarationErrors.delete(index);}iterateErrors(iterator){this.declarationErrors.forEach(iterator);}}class ExpressionScopeHandler{constructor(parser){this.parser=void 0,this.stack=[new ExpressionScope],this.parser=parser;}enter(scope){this.stack.push(scope);}exit(){this.stack.pop();}recordParameterInitializerError(toParseError,{at:node}){const origin={at:node.loc.start},{stack}=this;let i=stack.length-1,scope=stack[i];for(;!scope.isCertainlyParameterDeclaration();){if(!scope.canBeArrowParameterDeclaration())return;scope.recordDeclarationError(toParseError,origin),scope=stack[--i];}this.parser.raise(toParseError,origin);}recordArrowParemeterBindingError(error,{at:node}){const{stack}=this,scope=stack[stack.length-1],origin={at:node.loc.start};if(scope.isCertainlyParameterDeclaration())this.parser.raise(error,origin);else {if(!scope.canBeArrowParameterDeclaration())return;scope.recordDeclarationError(error,origin);}}recordAsyncArrowParametersError({at}){const{stack}=this;let i=stack.length-1,scope=stack[i];for(;scope.canBeArrowParameterDeclaration();)2===scope.type&&scope.recordDeclarationError(Errors.AwaitBindingIdentifier,{at}),scope=stack[--i];}validateAsPattern(){const{stack}=this,currentScope=stack[stack.length-1];currentScope.canBeArrowParameterDeclaration()&&currentScope.iterateErrors((([toParseError,loc])=>{this.parser.raise(toParseError,{at:loc});let i=stack.length-2,scope=stack[i];for(;scope.canBeArrowParameterDeclaration();)scope.clearDeclarationError(loc.index),scope=stack[--i];}));}}function newExpressionScope(){return new ExpressionScope}class ProductionParameterHandler{constructor(){this.stacks=[];}enter(flags){this.stacks.push(flags);}exit(){this.stacks.pop();}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return (2&this.currentFlags())>0}get hasYield(){return (1&this.currentFlags())>0}get hasReturn(){return (4&this.currentFlags())>0}get hasIn(){return (8&this.currentFlags())>0}}function functionFlags(isAsync,isGenerator){return (isAsync?2:0)|(isGenerator?1:0)}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null;}}class Node{constructor(parser,pos,loc){this.type="",this.start=pos,this.end=0,this.loc=new SourceLocation(loc),null!=parser&&parser.options.ranges&&(this.range=[pos,0]),null!=parser&&parser.filename&&(this.loc.filename=parser.filename);}}const NodePrototype=Node.prototype;function cloneIdentifier(node){const{type,start,end,loc,range,extra,name}=node,cloned=Object.create(NodePrototype);return cloned.type=type,cloned.start=start,cloned.end=end,cloned.loc=loc,cloned.range=range,cloned.extra=extra,cloned.name=name,"Placeholder"===type&&(cloned.expectedNode=node.expectedNode),cloned}function cloneStringLiteral(node){const{type,start,end,loc,range,extra}=node;if("Placeholder"===type)return function(node){return cloneIdentifier(node)}(node);const cloned=Object.create(NodePrototype);return cloned.type=type,cloned.start=start,cloned.end=end,cloned.loc=loc,cloned.range=range,void 0!==node.raw?cloned.raw=node.raw:cloned.extra=extra,cloned.value=node.value,cloned}NodePrototype.__clone=function(){const newNode=new Node(void 0,this.start,this.loc.start),keys=Object.keys(this);for(let i=0,length=keys.length;i<length;i++){const key=keys[i];"leadingComments"!==key&&"trailingComments"!==key&&"innerComments"!==key&&(newNode[key]=this[key]);}return newNode};const reservedTypes=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),FlowErrors=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType})=>`Cannot overwrite reserved type ${reservedType}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName,enumName})=>`Boolean enum members need to be initialized. Use either \`${memberName} = true,\` or \`${memberName} = false,\` in enum \`${enumName}\`.`,EnumDuplicateMemberName:({memberName,enumName})=>`Enum member names need to be unique, but the name \`${memberName}\` has already been used before in enum \`${enumName}\`.`,EnumInconsistentMemberValues:({enumName})=>`Enum \`${enumName}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType,enumName})=>`Enum type \`${invalidEnumType}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName,memberName,explicitType})=>`Enum \`${enumName}\` has type \`${explicitType}\`, so the initializer of \`${memberName}\` needs to be a ${explicitType} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName,memberName})=>`Symbol enum members cannot be initialized. Use \`${memberName},\` in enum \`${enumName}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName,memberName})=>`The enum member initializer for \`${memberName}\` needs to be a literal (either a boolean, number, or string) in enum \`${enumName}\`.`,EnumInvalidMemberName:({enumName,memberName,suggestion})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${memberName}\`, consider using \`${suggestion}\`, in enum \`${enumName}\`.`,EnumNumberMemberNotInitialized:({enumName,memberName})=>`Number enum members need to be initialized, e.g. \`${memberName} = 1\` in enum \`${enumName}\`.`,EnumStringMemberInconsistentlyInitailized:({enumName})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${enumName}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType})=>`Unexpected reserved type ${reservedType}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind,suggestion})=>`\`declare export ${unsupportedExportKind}\` is not supported. Use \`${suggestion}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hasTypeImportKind(node){return "type"===node.importKind||"typeof"===node.importKind}function isMaybeDefaultImport(type){return tokenIsKeywordOrIdentifier(type)&&97!==type}const exportSuggestions={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const FLOW_PRAGMA_REGEX=/\*?\s*@((?:no)?flow)\b/;const entities={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},JsxErrors=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName})=>`Expected corresponding JSX closing tag for <${openingTagName}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected,HTMLEntity})=>`Unexpected token \`${unexpected}\`. Did you mean \`${HTMLEntity}\` or \`{'${unexpected}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(object){return !!object&&("JSXOpeningFragment"===object.type||"JSXClosingFragment"===object.type)}function getQualifiedJSXName(object){if("JSXIdentifier"===object.type)return object.name;if("JSXNamespacedName"===object.type)return object.namespace.name+":"+object.name.name;if("JSXMemberExpression"===object.type)return getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property);throw new Error("Node had unexpected type: "+object.type)}class TypeScriptScope extends Scope{constructor(...args){super(...args),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set;}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...args){super(...args),this.importsStack=[];}createScope(flags){return this.importsStack.push(new Set),new TypeScriptScope(flags)}enter(flags){256==flags&&this.importsStack.push(new Set),super.enter(flags);}exit(){const flags=super.exit();return 256==flags&&this.importsStack.pop(),flags}hasImport(name,allowShadow){const len=this.importsStack.length;if(this.importsStack[len-1].has(name))return !0;if(!allowShadow&&len>1)for(let i=0;i<len-1;i++)if(this.importsStack[i].has(name))return !0;return !1}declareName(name,bindingType,loc){if(4096&bindingType)return this.hasImport(name,!0)&&this.parser.raise(Errors.VarRedeclaration,{at:loc,identifierName:name}),void this.importsStack[this.importsStack.length-1].add(name);const scope=this.currentScope();if(1024&bindingType)return this.maybeExportDefined(scope,name),void scope.exportOnlyBindings.add(name);super.declareName(name,bindingType,loc),2&bindingType&&(1&bindingType||(this.checkRedeclarationInScope(scope,name,bindingType,loc),this.maybeExportDefined(scope,name)),scope.types.add(name)),256&bindingType&&scope.enums.add(name),512&bindingType&&scope.constEnums.add(name),128&bindingType&&scope.classes.add(name);}isRedeclaredInScope(scope,name,bindingType){if(scope.enums.has(name)){if(256&bindingType){return !!(512&bindingType)!==scope.constEnums.has(name)}return !0}return 128&bindingType&&scope.classes.has(name)?!!scope.lexical.has(name)&&!!(1&bindingType):!!(2&bindingType&&scope.types.has(name))||super.isRedeclaredInScope(scope,name,bindingType)}checkLocalExport(id){const topLevelScope=this.scopeStack[0],{name}=id;topLevelScope.types.has(name)||topLevelScope.exportOnlyBindings.has(name)||this.hasImport(name)||super.checkLocalExport(id);}}function assert(x){if(!x)throw new Error("Assert fail")}const TSErrors=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName})=>`Method '${methodName}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName})=>`Property '${propertyName}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name})=>`Cannot find name '${name}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind})=>`'declare' is not allowed in ${kind}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier})=>`Duplicate modifier: '${modifier}'.`,EmptyHeritageClauseType:({token})=>`'${token}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers})=>`'${modifiers[0]}' modifier cannot be used with '${modifiers[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier})=>`Index signatures cannot have an accessibility modifier ('${modifier}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier})=>`'${modifier}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier})=>`'${modifier}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier})=>`'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers})=>`'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier})=>`Private elements cannot have an accessibility modifier ('${modifier}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName})=>`Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.`});function tsIsAccessModifier(modifier){return "private"===modifier||"public"===modifier||"protected"===modifier}function tsIsVarianceAnnotations(modifier){return "in"===modifier||"out"===modifier}function isPossiblyLiteralEnum(expression){if("MemberExpression"!==expression.type)return !1;const{computed,property}=expression;return (!computed||"StringLiteral"===property.type||!("TemplateLiteral"!==property.type||property.expressions.length>0))&&isUncomputedMemberExpressionChain(expression.object)}function isUncomputedMemberExpressionChain(expression){return "Identifier"===expression.type||"MemberExpression"===expression.type&&(!expression.computed&&isUncomputedMemberExpressionChain(expression.object))}const PlaceholderErrors=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function hasPlugin(plugins,expectedConfig){const[expectedName,expectedOptions]="string"==typeof expectedConfig?[expectedConfig,{}]:expectedConfig,expectedKeys=Object.keys(expectedOptions),expectedOptionsIsEmpty=0===expectedKeys.length;return plugins.some((p=>{if("string"==typeof p)return expectedOptionsIsEmpty&&p===expectedName;{const[pluginName,pluginOptions]=p;if(pluginName!==expectedName)return !1;for(const key of expectedKeys)if(pluginOptions[key]!==expectedOptions[key])return !1;return !0}}))}function getPluginOption(plugins,name,option){const plugin=plugins.find((plugin=>Array.isArray(plugin)?plugin[0]===name:plugin===name));return plugin&&Array.isArray(plugin)&&plugin.length>1?plugin[1][option]:null}const PIPELINE_PROPOSALS=["minimal","fsharp","hack","smart"],TOPIC_TOKENS=["^^","@@","^","%","#"],RECORD_AND_TUPLE_SYNTAX_TYPES=["hash","bar"];const mixinPlugins={estree:superClass=>class extends superClass{parse(){const file=toESTreeLocation(super.parse());return this.options.tokens&&(file.tokens=file.tokens.map(toESTreeLocation)),file}parseRegExpLiteral({pattern,flags}){let regex=null;try{regex=new RegExp(pattern,flags);}catch(e){}const node=this.estreeParseLiteral(regex);return node.regex={pattern,flags},node}parseBigIntLiteral(value){let bigInt;try{bigInt=BigInt(value);}catch(_unused){bigInt=null;}const node=this.estreeParseLiteral(bigInt);return node.bigint=String(node.value||value),node}parseDecimalLiteral(value){const node=this.estreeParseLiteral(null);return node.decimal=String(node.value||value),node}estreeParseLiteral(value){return this.parseLiteral(value,"Literal")}parseStringLiteral(value){return this.estreeParseLiteral(value)}parseNumericLiteral(value){return this.estreeParseLiteral(value)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(value){return this.estreeParseLiteral(value)}directiveToStmt(directive){const expression=directive.value;delete directive.value,expression.type="Literal",expression.raw=expression.extra.raw,expression.value=expression.extra.expressionValue;const stmt=directive;return stmt.type="ExpressionStatement",stmt.expression=expression,stmt.directive=expression.extra.rawValue,delete expression.extra,stmt}initFunction(node,isAsync){super.initFunction(node,isAsync),node.expression=!1;}checkDeclaration(node){null!=node&&this.isObjectProperty(node)?this.checkDeclaration(node.value):super.checkDeclaration(node);}getObjectOrClassMethodParams(method){return method.value.params}isValidDirective(stmt){var _stmt$expression$extr;return "ExpressionStatement"===stmt.type&&"Literal"===stmt.expression.type&&"string"==typeof stmt.expression.value&&!(null!=(_stmt$expression$extr=stmt.expression.extra)&&_stmt$expression$extr.parenthesized)}parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse){super.parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse);const directiveStatements=node.directives.map((d=>this.directiveToStmt(d)));node.body=directiveStatements.concat(node.body),delete node.directives;}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){this.parseMethod(method,isGenerator,isAsync,isConstructor,allowsDirectSuper,"ClassMethod",!0),method.typeParameters&&(method.value.typeParameters=method.typeParameters,delete method.typeParameters),classBody.body.push(method);}parsePrivateName(){const node=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(node):node}convertPrivateNameToPrivateIdentifier(node){const name=super.getPrivateNameSV(node);return delete node.id,node.name=name,node.type="PrivateIdentifier",node}isPrivateName(node){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===node.type:super.isPrivateName(node)}getPrivateNameSV(node){return this.getPluginOption("estree","classFeatures")?node.name:super.getPrivateNameSV(node)}parseLiteral(value,type){const node=super.parseLiteral(value,type);return node.raw=node.extra.raw,delete node.extra,node}parseFunctionBody(node,allowExpression,isMethod=!1){super.parseFunctionBody(node,allowExpression,isMethod),node.expression="BlockStatement"!==node.body.type;}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope=!1){let funcNode=this.startNode();return funcNode.kind=node.kind,funcNode=super.parseMethod(funcNode,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope),funcNode.type="FunctionExpression",delete funcNode.kind,node.value=funcNode,"ClassPrivateMethod"===type&&(node.computed=!1),this.finishNode(node,"MethodDefinition")}parseClassProperty(...args){const propertyNode=super.parseClassProperty(...args);return this.getPluginOption("estree","classFeatures")?(propertyNode.type="PropertyDefinition",propertyNode):propertyNode}parseClassPrivateProperty(...args){const propertyNode=super.parseClassPrivateProperty(...args);return this.getPluginOption("estree","classFeatures")?(propertyNode.type="PropertyDefinition",propertyNode.computed=!1,propertyNode):propertyNode}parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor){const node=super.parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor);return node&&(node.type="Property","method"===node.kind&&(node.kind="init"),node.shorthand=!1),node}parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors){const node=super.parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors);return node&&(node.kind="init",node.type="Property"),node}isValidLVal(type,isUnparenthesizedInAssign,binding){return "Property"===type?"value":super.isValidLVal(type,isUnparenthesizedInAssign,binding)}isAssignable(node,isBinding){return null!=node&&this.isObjectProperty(node)?this.isAssignable(node.value,isBinding):super.isAssignable(node,isBinding)}toAssignable(node,isLHS=!1){if(null!=node&&this.isObjectProperty(node)){const{key,value}=node;this.isPrivateName(key)&&this.classScope.usePrivateName(this.getPrivateNameSV(key),key.loc.start),this.toAssignable(value,isLHS);}else super.toAssignable(node,isLHS);}toAssignableObjectExpressionProp(prop,isLast,isLHS){"get"===prop.kind||"set"===prop.kind?this.raise(Errors.PatternHasAccessor,{at:prop.key}):prop.method?this.raise(Errors.PatternHasMethod,{at:prop.key}):super.toAssignableObjectExpressionProp(prop,isLast,isLHS);}finishCallExpression(unfinished,optional){const node=super.finishCallExpression(unfinished,optional);if("Import"===node.callee.type){var _node$arguments$;if(node.type="ImportExpression",node.source=node.arguments[0],this.hasPlugin("importAssertions"))node.attributes=null!=(_node$arguments$=node.arguments[1])?_node$arguments$:null;delete node.arguments,delete node.callee;}return node}toReferencedArguments(node){"ImportExpression"!==node.type&&super.toReferencedArguments(node);}parseExport(unfinished){const node=super.parseExport(unfinished);switch(node.type){case"ExportAllDeclaration":node.exported=null;break;case"ExportNamedDeclaration":1===node.specifiers.length&&"ExportNamespaceSpecifier"===node.specifiers[0].type&&(node.type="ExportAllDeclaration",node.exported=node.specifiers[0].exported,delete node.specifiers);}return node}parseSubscript(base,startPos,startLoc,noCalls,state){const node=super.parseSubscript(base,startPos,startLoc,noCalls,state);if(state.optionalChainMember){if("OptionalMemberExpression"!==node.type&&"OptionalCallExpression"!==node.type||(node.type=node.type.substring(8)),state.stop){const chain=this.startNodeAtNode(node);return chain.expression=node,this.finishNode(chain,"ChainExpression")}}else "MemberExpression"!==node.type&&"CallExpression"!==node.type||(node.optional=!1);return node}hasPropertyAsPrivateName(node){return "ChainExpression"===node.type&&(node=node.expression),super.hasPropertyAsPrivateName(node)}isOptionalChain(node){return "ChainExpression"===node.type}isObjectProperty(node){return "Property"===node.type&&"init"===node.kind&&!node.method}isObjectMethod(node){return node.method||"get"===node.kind||"set"===node.kind}finishNodeAt(node,type,endLoc){return toESTreeLocation(super.finishNodeAt(node,type,endLoc))}resetStartLocation(node,start,startLoc){super.resetStartLocation(node,start,startLoc),toESTreeLocation(node);}resetEndLocation(node,endLoc=this.state.lastTokEndLoc){super.resetEndLocation(node,endLoc),toESTreeLocation(node);}},jsx:superClass=>class extends superClass{jsxReadToken(){let out="",chunkStart=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(JsxErrors.UnterminatedJsxContent,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);switch(ch){case 60:case 123:return this.state.pos===this.state.start?60===ch&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.state.pos),this.finishToken(137,out));case 38:out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadEntity(),chunkStart=this.state.pos;break;default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadNewLine(!0),chunkStart=this.state.pos):++this.state.pos;}}}jsxReadNewLine(normalizeCRLF){const ch=this.input.charCodeAt(this.state.pos);let out;return ++this.state.pos,13===ch&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),++this.state.curLine,this.state.lineStart=this.state.pos,out}jsxReadString(quote){let out="",chunkStart=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Errors.UnterminatedString,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadEntity(),chunkStart=this.state.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadNewLine(!1),chunkStart=this.state.pos):++this.state.pos;}return out+=this.input.slice(chunkStart,this.state.pos++),this.finishToken(129,out)}jsxReadEntity(){const startPos=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let radix=10;120===this.codePointAtPos(this.state.pos)&&(radix=16,++this.state.pos);const codePoint=this.readInt(radix,void 0,!1,"bail");if(null!==codePoint&&59===this.codePointAtPos(this.state.pos))return ++this.state.pos,String.fromCodePoint(codePoint)}else {let count=0,semi=!1;for(;count++<10&&this.state.pos<this.length&&!(semi=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(semi){const desc=this.input.slice(startPos,this.state.pos),entity=entities[desc];if(++this.state.pos,entity)return entity}}return this.state.pos=startPos,"&"}jsxReadWord(){let ch;const start=this.state.pos;do{ch=this.input.charCodeAt(++this.state.pos);}while(isIdentifierChar(ch)||45===ch);return this.finishToken(136,this.input.slice(start,this.state.pos))}jsxParseIdentifier(){const node=this.startNode();return this.match(136)?node.name=this.state.value:tokenIsKeyword(this.state.type)?node.name=tokenLabelName(this.state.type):this.unexpected(),this.next(),this.finishNode(node,"JSXIdentifier")}jsxParseNamespacedName(){const startPos=this.state.start,startLoc=this.state.startLoc,name=this.jsxParseIdentifier();if(!this.eat(14))return name;const node=this.startNodeAt(startPos,startLoc);return node.namespace=name,node.name=this.jsxParseIdentifier(),this.finishNode(node,"JSXNamespacedName")}jsxParseElementName(){const startPos=this.state.start,startLoc=this.state.startLoc;let node=this.jsxParseNamespacedName();if("JSXNamespacedName"===node.type)return node;for(;this.eat(16);){const newNode=this.startNodeAt(startPos,startLoc);newNode.object=node,newNode.property=this.jsxParseIdentifier(),node=this.finishNode(newNode,"JSXMemberExpression");}return node}jsxParseAttributeValue(){let node;switch(this.state.type){case 5:return node=this.startNode(),this.setContext(types.brace),this.next(),node=this.jsxParseExpressionContainer(node,types.j_oTag),"JSXEmptyExpression"===node.expression.type&&this.raise(JsxErrors.AttributeIsEmpty,{at:node}),node;case 138:case 129:return this.parseExprAtom();default:throw this.raise(JsxErrors.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){const node=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(node,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(node){return this.next(),node.expression=this.parseExpression(),this.setContext(types.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(node,"JSXSpreadChild")}jsxParseExpressionContainer(node,previousContext){if(this.match(8))node.expression=this.jsxParseEmptyExpression();else {const expression=this.parseExpression();node.expression=expression;}return this.setContext(previousContext),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(node,"JSXExpressionContainer")}jsxParseAttribute(){const node=this.startNode();return this.match(5)?(this.setContext(types.brace),this.next(),this.expect(21),node.argument=this.parseMaybeAssignAllowIn(),this.setContext(types.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(node,"JSXSpreadAttribute")):(node.name=this.jsxParseNamespacedName(),node.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(node,"JSXAttribute"))}jsxParseOpeningElementAt(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.eat(139)?this.finishNode(node,"JSXOpeningFragment"):(node.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(node))}jsxParseOpeningElementAfterName(node){const attributes=[];for(;!this.match(56)&&!this.match(139);)attributes.push(this.jsxParseAttribute());return node.attributes=attributes,node.selfClosing=this.eat(56),this.expect(139),this.finishNode(node,"JSXOpeningElement")}jsxParseClosingElementAt(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.eat(139)?this.finishNode(node,"JSXClosingFragment"):(node.name=this.jsxParseElementName(),this.expect(139),this.finishNode(node,"JSXClosingElement"))}jsxParseElementAt(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc),children=[],openingElement=this.jsxParseOpeningElementAt(startPos,startLoc);let closingElement=null;if(!openingElement.selfClosing){contents:for(;;)switch(this.state.type){case 138:if(startPos=this.state.start,startLoc=this.state.startLoc,this.next(),this.eat(56)){closingElement=this.jsxParseClosingElementAt(startPos,startLoc);break contents}children.push(this.jsxParseElementAt(startPos,startLoc));break;case 137:children.push(this.parseExprAtom());break;case 5:{const node=this.startNode();this.setContext(types.brace),this.next(),this.match(21)?children.push(this.jsxParseSpreadChild(node)):children.push(this.jsxParseExpressionContainer(node,types.j_expr));break}default:throw this.unexpected()}isFragment(openingElement)&&!isFragment(closingElement)&&null!==closingElement?this.raise(JsxErrors.MissingClosingTagFragment,{at:closingElement}):!isFragment(openingElement)&&isFragment(closingElement)?this.raise(JsxErrors.MissingClosingTagElement,{at:closingElement,openingTagName:getQualifiedJSXName(openingElement.name)}):isFragment(openingElement)||isFragment(closingElement)||getQualifiedJSXName(closingElement.name)!==getQualifiedJSXName(openingElement.name)&&this.raise(JsxErrors.MissingClosingTagElement,{at:closingElement,openingTagName:getQualifiedJSXName(openingElement.name)});}if(isFragment(openingElement)?(node.openingFragment=openingElement,node.closingFragment=closingElement):(node.openingElement=openingElement,node.closingElement=closingElement),node.children=children,this.match(47))throw this.raise(JsxErrors.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return isFragment(openingElement)?this.finishNode(node,"JSXFragment"):this.finishNode(node,"JSXElement")}jsxParseElement(){const startPos=this.state.start,startLoc=this.state.startLoc;return this.next(),this.jsxParseElementAt(startPos,startLoc)}setContext(newContext){const{context}=this.state;context[context.length-1]=newContext;}parseExprAtom(refExpressionErrors){return this.match(137)?this.parseLiteral(this.state.value,"JSXText"):this.match(138)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(refExpressionErrors)}skipSpace(){this.curContext().preserveSpace||super.skipSpace();}getTokenFromCode(code){const context=this.curContext();if(context===types.j_expr)return this.jsxReadToken();if(context===types.j_oTag||context===types.j_cTag){if(isIdentifierStart(code))return this.jsxReadWord();if(62===code)return ++this.state.pos,this.finishToken(139);if((34===code||39===code)&&context===types.j_oTag)return this.jsxReadString(code)}return 60===code&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(code)}updateContext(prevType){const{context,type}=this.state;if(56===type&&138===prevType)context.splice(-2,2,types.j_cTag),this.state.canStartJSXElement=!1;else if(138===type)context.push(types.j_oTag);else if(139===type){const out=context[context.length-1];out===types.j_oTag&&56===prevType||out===types.j_cTag?(context.pop(),this.state.canStartJSXElement=context[context.length-1]===types.j_expr):(this.setContext(types.j_expr),this.state.canStartJSXElement=!0);}else this.state.canStartJSXElement=tokenBeforeExprs[type];}},flow:superClass=>class extends superClass{constructor(...args){super(...args),this.flowPragma=void 0;}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return !!this.getPluginOption("flow","enums")}finishToken(type,val){return 129!==type&&13!==type&&28!==type&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(type,val)}addComment(comment){if(void 0===this.flowPragma){const matches=FLOW_PRAGMA_REGEX.exec(comment.value);if(matches)if("flow"===matches[1])this.flowPragma="flow";else {if("noflow"!==matches[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow";}}return super.addComment(comment)}flowParseTypeInitialiser(tok){const oldInType=this.state.inType;this.state.inType=!0,this.expect(tok||14);const type=this.flowParseType();return this.state.inType=oldInType,type}flowParsePredicate(){const node=this.startNode(),moduloLoc=this.state.startLoc;return this.next(),this.expectContextual(107),this.state.lastTokStart>moduloLoc.index+1&&this.raise(FlowErrors.UnexpectedSpaceBetweenModuloChecks,{at:moduloLoc}),this.eat(10)?(node.value=super.parseExpression(),this.expect(11),this.finishNode(node,"DeclaredPredicate")):this.finishNode(node,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const oldInType=this.state.inType;this.state.inType=!0,this.expect(14);let type=null,predicate=null;return this.match(54)?(this.state.inType=oldInType,predicate=this.flowParsePredicate()):(type=this.flowParseType(),this.state.inType=oldInType,this.match(54)&&(predicate=this.flowParsePredicate())),[type,predicate]}flowParseDeclareClass(node){return this.next(),this.flowParseInterfaceish(node,!0),this.finishNode(node,"DeclareClass")}flowParseDeclareFunction(node){this.next();const id=node.id=this.parseIdentifier(),typeNode=this.startNode(),typeContainer=this.startNode();this.match(47)?typeNode.typeParameters=this.flowParseTypeParameterDeclaration():typeNode.typeParameters=null,this.expect(10);const tmp=this.flowParseFunctionTypeParams();return typeNode.params=tmp.params,typeNode.rest=tmp.rest,typeNode.this=tmp._this,this.expect(11),[typeNode.returnType,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),typeContainer.typeAnnotation=this.finishNode(typeNode,"FunctionTypeAnnotation"),id.typeAnnotation=this.finishNode(typeContainer,"TypeAnnotation"),this.resetEndLocation(id),this.semicolon(),this.scope.declareName(node.id.name,2048,node.id.loc.start),this.finishNode(node,"DeclareFunction")}flowParseDeclare(node,insideModule){if(this.match(80))return this.flowParseDeclareClass(node);if(this.match(68))return this.flowParseDeclareFunction(node);if(this.match(74))return this.flowParseDeclareVariable(node);if(this.eatContextual(123))return this.match(16)?this.flowParseDeclareModuleExports(node):(insideModule&&this.raise(FlowErrors.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(node));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(node);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(node);if(this.isContextual(125))return this.flowParseDeclareInterface(node);if(this.match(82))return this.flowParseDeclareExportDeclaration(node,insideModule);throw this.unexpected()}flowParseDeclareVariable(node){return this.next(),node.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(node.id.name,5,node.id.loc.start),this.semicolon(),this.finishNode(node,"DeclareVariable")}flowParseDeclareModule(node){this.scope.enter(0),this.match(129)?node.id=super.parseExprAtom():node.id=this.parseIdentifier();const bodyNode=node.body=this.startNode(),body=bodyNode.body=[];for(this.expect(5);!this.match(8);){let bodyNode=this.startNode();this.match(83)?(this.next(),this.isContextual(126)||this.match(87)||this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(bodyNode)):(this.expectContextual(121,FlowErrors.UnsupportedStatementInDeclareModule),bodyNode=this.flowParseDeclare(bodyNode,!0)),body.push(bodyNode);}this.scope.exit(),this.expect(8),this.finishNode(bodyNode,"BlockStatement");let kind=null,hasModuleExport=!1;return body.forEach((bodyElement=>{!function(bodyElement){return "DeclareExportAllDeclaration"===bodyElement.type||"DeclareExportDeclaration"===bodyElement.type&&(!bodyElement.declaration||"TypeAlias"!==bodyElement.declaration.type&&"InterfaceDeclaration"!==bodyElement.declaration.type)}(bodyElement)?"DeclareModuleExports"===bodyElement.type&&(hasModuleExport&&this.raise(FlowErrors.DuplicateDeclareModuleExports,{at:bodyElement}),"ES"===kind&&this.raise(FlowErrors.AmbiguousDeclareModuleKind,{at:bodyElement}),kind="CommonJS",hasModuleExport=!0):("CommonJS"===kind&&this.raise(FlowErrors.AmbiguousDeclareModuleKind,{at:bodyElement}),kind="ES");})),node.kind=kind||"CommonJS",this.finishNode(node,"DeclareModule")}flowParseDeclareExportDeclaration(node,insideModule){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?node.declaration=this.flowParseDeclare(this.startNode()):(node.declaration=this.flowParseType(),this.semicolon()),node.default=!0,this.finishNode(node,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!insideModule){const label=this.state.value;throw this.raise(FlowErrors.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:label,suggestion:exportSuggestions[label]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(127))return node.declaration=this.flowParseDeclare(this.startNode()),node.default=!1,this.finishNode(node,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127))return "ExportNamedDeclaration"===(node=this.parseExport(node)).type&&(node.type="ExportDeclaration",node.default=!1,delete node.exportKind),node.type="Declare"+node.type,node;throw this.unexpected()}flowParseDeclareModuleExports(node){return this.next(),this.expectContextual(108),node.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(node,"DeclareModuleExports")}flowParseDeclareTypeAlias(node){this.next();const finished=this.flowParseTypeAlias(node);return finished.type="DeclareTypeAlias",finished}flowParseDeclareOpaqueType(node){this.next();const finished=this.flowParseOpaqueType(node,!0);return finished.type="DeclareOpaqueType",finished}flowParseDeclareInterface(node){return this.next(),this.flowParseInterfaceish(node),this.finishNode(node,"DeclareInterface")}flowParseInterfaceish(node,isClass=!1){if(node.id=this.flowParseRestrictedIdentifier(!isClass,!0),this.scope.declareName(node.id.name,isClass?17:9,node.id.loc.start),this.match(47)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.extends=[],node.implements=[],node.mixins=[],this.eat(81))do{node.extends.push(this.flowParseInterfaceExtends());}while(!isClass&&this.eat(12));if(this.isContextual(114)){this.next();do{node.mixins.push(this.flowParseInterfaceExtends());}while(this.eat(12))}if(this.isContextual(110)){this.next();do{node.implements.push(this.flowParseInterfaceExtends());}while(this.eat(12))}node.body=this.flowParseObjectType({allowStatic:isClass,allowExact:!1,allowSpread:!1,allowProto:isClass,allowInexact:!1});}flowParseInterfaceExtends(){const node=this.startNode();return node.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?node.typeParameters=this.flowParseTypeParameterInstantiation():node.typeParameters=null,this.finishNode(node,"InterfaceExtends")}flowParseInterface(node){return this.flowParseInterfaceish(node),this.finishNode(node,"InterfaceDeclaration")}checkNotUnderscore(word){"_"===word&&this.raise(FlowErrors.UnexpectedReservedUnderscore,{at:this.state.startLoc});}checkReservedType(word,startLoc,declaration){reservedTypes.has(word)&&this.raise(declaration?FlowErrors.AssignReservedType:FlowErrors.UnexpectedReservedType,{at:startLoc,reservedType:word});}flowParseRestrictedIdentifier(liberal,declaration){return this.checkReservedType(this.state.value,this.state.startLoc,declaration),this.parseIdentifier(liberal)}flowParseTypeAlias(node){return node.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(node.id.name,9,node.id.loc.start),this.match(47)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(node,"TypeAlias")}flowParseOpaqueType(node,declare){return this.expectContextual(126),node.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(node.id.name,9,node.id.loc.start),this.match(47)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.supertype=null,this.match(14)&&(node.supertype=this.flowParseTypeInitialiser(14)),node.impltype=null,declare||(node.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(node,"OpaqueType")}flowParseTypeParameter(requireDefault=!1){const nodeStartLoc=this.state.startLoc,node=this.startNode(),variance=this.flowParseVariance(),ident=this.flowParseTypeAnnotatableIdentifier();return node.name=ident.name,node.variance=variance,node.bound=ident.typeAnnotation,this.match(29)?(this.eat(29),node.default=this.flowParseType()):requireDefault&&this.raise(FlowErrors.MissingTypeParamDefault,{at:nodeStartLoc}),this.finishNode(node,"TypeParameter")}flowParseTypeParameterDeclaration(){const oldInType=this.state.inType,node=this.startNode();node.params=[],this.state.inType=!0,this.match(47)||this.match(138)?this.next():this.unexpected();let defaultRequired=!1;do{const typeParameter=this.flowParseTypeParameter(defaultRequired);node.params.push(typeParameter),typeParameter.default&&(defaultRequired=!0),this.match(48)||this.expect(12);}while(!this.match(48));return this.expect(48),this.state.inType=oldInType,this.finishNode(node,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const node=this.startNode(),oldInType=this.state.inType;node.params=[],this.state.inType=!0,this.expect(47);const oldNoAnonFunctionType=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)node.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=oldNoAnonFunctionType,this.expect(48),this.state.inType=oldInType,this.finishNode(node,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const node=this.startNode(),oldInType=this.state.inType;for(node.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)node.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=oldInType,this.finishNode(node,"TypeParameterInstantiation")}flowParseInterfaceType(){const node=this.startNode();if(this.expectContextual(125),node.extends=[],this.eat(81))do{node.extends.push(this.flowParseInterfaceExtends());}while(this.eat(12));return node.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(node,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(130)||this.match(129)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(node,isStatic,variance){return node.static=isStatic,14===this.lookahead().type?(node.id=this.flowParseObjectPropertyKey(),node.key=this.flowParseTypeInitialiser()):(node.id=null,node.key=this.flowParseType()),this.expect(3),node.value=this.flowParseTypeInitialiser(),node.variance=variance,this.finishNode(node,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(node,isStatic){return node.static=isStatic,node.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(node.method=!0,node.optional=!1,node.value=this.flowParseObjectTypeMethodish(this.startNodeAt(node.start,node.loc.start))):(node.method=!1,this.eat(17)&&(node.optional=!0),node.value=this.flowParseTypeInitialiser()),this.finishNode(node,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(node){for(node.params=[],node.rest=null,node.typeParameters=null,node.this=null,this.match(47)&&(node.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(node.this=this.flowParseFunctionTypeParam(!0),node.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)node.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(node.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),node.returnType=this.flowParseTypeInitialiser(),this.finishNode(node,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(node,isStatic){const valueNode=this.startNode();return node.static=isStatic,node.value=this.flowParseObjectTypeMethodish(valueNode),this.finishNode(node,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic,allowExact,allowSpread,allowProto,allowInexact}){const oldInType=this.state.inType;this.state.inType=!0;const nodeStart=this.startNode();let endDelim,exact;nodeStart.callProperties=[],nodeStart.properties=[],nodeStart.indexers=[],nodeStart.internalSlots=[];let inexact=!1;for(allowExact&&this.match(6)?(this.expect(6),endDelim=9,exact=!0):(this.expect(5),endDelim=8,exact=!1),nodeStart.exact=exact;!this.match(endDelim);){let isStatic=!1,protoStartLoc=null,inexactStartLoc=null;const node=this.startNode();if(allowProto&&this.isContextual(115)){const lookahead=this.lookahead();14!==lookahead.type&&17!==lookahead.type&&(this.next(),protoStartLoc=this.state.startLoc,allowStatic=!1);}if(allowStatic&&this.isContextual(104)){const lookahead=this.lookahead();14!==lookahead.type&&17!==lookahead.type&&(this.next(),isStatic=!0);}const variance=this.flowParseVariance();if(this.eat(0))null!=protoStartLoc&&this.unexpected(protoStartLoc),this.eat(0)?(variance&&this.unexpected(variance.loc.start),nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node,isStatic))):nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node,isStatic,variance));else if(this.match(10)||this.match(47))null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.unexpected(variance.loc.start),nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node,isStatic));else {let kind="init";if(this.isContextual(98)||this.isContextual(103)){tokenIsLiteralPropertyName(this.lookahead().type)&&(kind=this.state.value,this.next());}const propOrInexact=this.flowParseObjectTypeProperty(node,isStatic,protoStartLoc,variance,kind,allowSpread,null!=allowInexact?allowInexact:!exact);null===propOrInexact?(inexact=!0,inexactStartLoc=this.state.lastTokStartLoc):nodeStart.properties.push(propOrInexact);}this.flowObjectTypeSemicolon(),!inexactStartLoc||this.match(8)||this.match(9)||this.raise(FlowErrors.UnexpectedExplicitInexactInObject,{at:inexactStartLoc});}this.expect(endDelim),allowSpread&&(nodeStart.inexact=inexact);const out=this.finishNode(nodeStart,"ObjectTypeAnnotation");return this.state.inType=oldInType,out}flowParseObjectTypeProperty(node,isStatic,protoStartLoc,variance,kind,allowSpread,allowInexact){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(allowSpread?allowInexact||this.raise(FlowErrors.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(FlowErrors.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),variance&&this.raise(FlowErrors.InexactVariance,{at:variance}),null):(allowSpread||this.raise(FlowErrors.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.raise(FlowErrors.SpreadVariance,{at:variance}),node.argument=this.flowParseType(),this.finishNode(node,"ObjectTypeSpreadProperty"))}{node.key=this.flowParseObjectPropertyKey(),node.static=isStatic,node.proto=null!=protoStartLoc,node.kind=kind;let optional=!1;return this.match(47)||this.match(10)?(node.method=!0,null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.unexpected(variance.loc.start),node.value=this.flowParseObjectTypeMethodish(this.startNodeAt(node.start,node.loc.start)),"get"!==kind&&"set"!==kind||this.flowCheckGetterSetterParams(node),!allowSpread&&"constructor"===node.key.name&&node.value.this&&this.raise(FlowErrors.ThisParamBannedInConstructor,{at:node.value.this})):("init"!==kind&&this.unexpected(),node.method=!1,this.eat(17)&&(optional=!0),node.value=this.flowParseTypeInitialiser(),node.variance=variance),node.optional=optional,this.finishNode(node,"ObjectTypeProperty")}}flowCheckGetterSetterParams(property){const paramCount="get"===property.kind?0:1,length=property.value.params.length+(property.value.rest?1:0);property.value.this&&this.raise("get"===property.kind?FlowErrors.GetterMayNotHaveThisParam:FlowErrors.SetterMayNotHaveThisParam,{at:property.value.this}),length!==paramCount&&this.raise("get"===property.kind?Errors.BadGetterArity:Errors.BadSetterArity,{at:property}),"set"===property.kind&&property.value.rest&&this.raise(Errors.BadSetterRestParameter,{at:property});}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected();}flowParseQualifiedTypeIdentifier(startPos,startLoc,id){startPos=startPos||this.state.start,startLoc=startLoc||this.state.startLoc;let node=id||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const node2=this.startNodeAt(startPos,startLoc);node2.qualification=node,node2.id=this.flowParseRestrictedIdentifier(!0),node=this.finishNode(node2,"QualifiedTypeIdentifier");}return node}flowParseGenericType(startPos,startLoc,id){const node=this.startNodeAt(startPos,startLoc);return node.typeParameters=null,node.id=this.flowParseQualifiedTypeIdentifier(startPos,startLoc,id),this.match(47)&&(node.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(node,"GenericTypeAnnotation")}flowParseTypeofType(){const node=this.startNode();return this.expect(87),node.argument=this.flowParsePrimaryType(),this.finishNode(node,"TypeofTypeAnnotation")}flowParseTupleType(){const node=this.startNode();for(node.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(node.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(node,"TupleTypeAnnotation")}flowParseFunctionTypeParam(first){let name=null,optional=!1,typeAnnotation=null;const node=this.startNode(),lh=this.lookahead(),isThis=78===this.state.type;return 14===lh.type||17===lh.type?(isThis&&!first&&this.raise(FlowErrors.ThisParamMustBeFirst,{at:node}),name=this.parseIdentifier(isThis),this.eat(17)&&(optional=!0,isThis&&this.raise(FlowErrors.ThisParamMayNotBeOptional,{at:node})),typeAnnotation=this.flowParseTypeInitialiser()):typeAnnotation=this.flowParseType(),node.name=name,node.optional=optional,node.typeAnnotation=typeAnnotation,this.finishNode(node,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(type){const node=this.startNodeAt(type.start,type.loc.start);return node.name=null,node.optional=!1,node.typeAnnotation=type,this.finishNode(node,"FunctionTypeParam")}flowParseFunctionTypeParams(params=[]){let rest=null,_this=null;for(this.match(78)&&(_this=this.flowParseFunctionTypeParam(!0),_this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(rest=this.flowParseFunctionTypeParam(!1)),{params,rest,_this}}flowIdentToTypeAnnotation(startPos,startLoc,node,id){switch(id.name){case"any":return this.finishNode(node,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(node,"BooleanTypeAnnotation");case"mixed":return this.finishNode(node,"MixedTypeAnnotation");case"empty":return this.finishNode(node,"EmptyTypeAnnotation");case"number":return this.finishNode(node,"NumberTypeAnnotation");case"string":return this.finishNode(node,"StringTypeAnnotation");case"symbol":return this.finishNode(node,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(id.name),this.flowParseGenericType(startPos,startLoc,id)}}flowParsePrimaryType(){const startPos=this.state.start,startLoc=this.state.startLoc,node=this.startNode();let tmp,type,isGroupedType=!1;const oldNoAnonFunctionType=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,type=this.flowParseTupleType(),this.state.noAnonFunctionType=oldNoAnonFunctionType,type;case 47:return node.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),tmp=this.flowParseFunctionTypeParams(),node.params=tmp.params,node.rest=tmp.rest,node.this=tmp._this,this.expect(11),this.expect(19),node.returnType=this.flowParseType(),this.finishNode(node,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(tokenIsIdentifier(this.state.type)||this.match(78)){const token=this.lookahead().type;isGroupedType=17!==token&&14!==token;}else isGroupedType=!0;if(isGroupedType){if(this.state.noAnonFunctionType=!1,type=this.flowParseType(),this.state.noAnonFunctionType=oldNoAnonFunctionType,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),type;this.eat(12);}return tmp=type?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]):this.flowParseFunctionTypeParams(),node.params=tmp.params,node.rest=tmp.rest,node.this=tmp._this,this.expect(11),this.expect(19),node.returnType=this.flowParseType(),node.typeParameters=null,this.finishNode(node,"FunctionTypeAnnotation");case 129:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return node.value=this.match(85),this.next(),this.finishNode(node,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(130))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",node);if(this.match(131))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",node);throw this.raise(FlowErrors.UnexpectedSubtractionOperand,{at:this.state.startLoc})}throw this.unexpected();case 130:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(node,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(node,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(node,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(node,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const label=tokenLabelName(this.state.type);return this.next(),super.createIdentifier(node,label)}if(tokenIsIdentifier(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(startPos,startLoc,node,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const startPos=this.state.start,startLoc=this.state.startLoc;let type=this.flowParsePrimaryType(),seenOptionalIndexedAccess=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const node=this.startNodeAt(startPos,startLoc),optional=this.eat(18);seenOptionalIndexedAccess=seenOptionalIndexedAccess||optional,this.expect(0),!optional&&this.match(3)?(node.elementType=type,this.next(),type=this.finishNode(node,"ArrayTypeAnnotation")):(node.objectType=type,node.indexType=this.flowParseType(),this.expect(3),seenOptionalIndexedAccess?(node.optional=optional,type=this.finishNode(node,"OptionalIndexedAccessType")):type=this.finishNode(node,"IndexedAccessType"));}return type}flowParsePrefixType(){const node=this.startNode();return this.eat(17)?(node.typeAnnotation=this.flowParsePrefixType(),this.finishNode(node,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const param=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const node=this.startNodeAt(param.start,param.loc.start);return node.params=[this.reinterpretTypeAsFunctionTypeParam(param)],node.rest=null,node.this=null,node.returnType=this.flowParseType(),node.typeParameters=null,this.finishNode(node,"FunctionTypeAnnotation")}return param}flowParseIntersectionType(){const node=this.startNode();this.eat(45);const type=this.flowParseAnonFunctionWithoutParens();for(node.types=[type];this.eat(45);)node.types.push(this.flowParseAnonFunctionWithoutParens());return 1===node.types.length?type:this.finishNode(node,"IntersectionTypeAnnotation")}flowParseUnionType(){const node=this.startNode();this.eat(43);const type=this.flowParseIntersectionType();for(node.types=[type];this.eat(43);)node.types.push(this.flowParseIntersectionType());return 1===node.types.length?type:this.finishNode(node,"UnionTypeAnnotation")}flowParseType(){const oldInType=this.state.inType;this.state.inType=!0;const type=this.flowParseUnionType();return this.state.inType=oldInType,type}flowParseTypeOrImplicitInstantiation(){if(128===this.state.type&&"_"===this.state.value){const startPos=this.state.start,startLoc=this.state.startLoc,node=this.parseIdentifier();return this.flowParseGenericType(startPos,startLoc,node)}return this.flowParseType()}flowParseTypeAnnotation(){const node=this.startNode();return node.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(node,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride){const ident=allowPrimitiveOverride?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(ident.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(ident)),ident}typeCastToParameter(node){return node.expression.typeAnnotation=node.typeAnnotation,this.resetEndLocation(node.expression,node.typeAnnotation.loc.end),node.expression}flowParseVariance(){let variance=null;return this.match(53)?(variance=this.startNode(),"+"===this.state.value?variance.kind="plus":variance.kind="minus",this.next(),this.finishNode(variance,"Variance")):variance}parseFunctionBody(node,allowExpressionBody,isMethod=!1){return allowExpressionBody?this.forwardNoArrowParamsConversionAt(node,(()=>super.parseFunctionBody(node,!0,isMethod))):super.parseFunctionBody(node,!1,isMethod)}parseFunctionBodyAndFinish(node,type,isMethod=!1){if(this.match(14)){const typeNode=this.startNode();[typeNode.typeAnnotation,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),node.returnType=typeNode.typeAnnotation?this.finishNode(typeNode,"TypeAnnotation"):null;}return super.parseFunctionBodyAndFinish(node,type,isMethod)}parseStatement(context,topLevel){if(this.state.strict&&this.isContextual(125)){if(tokenIsKeywordOrIdentifier(this.lookahead().type)){const node=this.startNode();return this.next(),this.flowParseInterface(node)}}else if(this.shouldParseEnums()&&this.isContextual(122)){const node=this.startNode();return this.next(),this.flowParseEnumDeclaration(node)}const stmt=super.parseStatement(context,topLevel);return void 0!==this.flowPragma||this.isValidDirective(stmt)||(this.flowPragma=null),stmt}parseExpressionStatement(node,expr){if("Identifier"===expr.type)if("declare"===expr.name){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(node)}else if(tokenIsIdentifier(this.state.type)){if("interface"===expr.name)return this.flowParseInterface(node);if("type"===expr.name)return this.flowParseTypeAlias(node);if("opaque"===expr.name)return this.flowParseOpaqueType(node,!1)}return super.parseExpressionStatement(node,expr)}shouldParseExportDeclaration(){const{type}=this.state;return tokenIsFlowInterfaceOrTypeOrOpaque(type)||this.shouldParseEnums()&&122===type?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type}=this.state;return tokenIsFlowInterfaceOrTypeOrOpaque(type)||this.shouldParseEnums()&&122===type?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(122)){const node=this.startNode();return this.next(),this.flowParseEnumDeclaration(node)}return super.parseExportDefaultExpression()}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(!this.match(17))return expr;if(this.state.maybeInArrowParameters){const nextCh=this.lookaheadCharCode();if(44===nextCh||61===nextCh||58===nextCh||41===nextCh)return this.setOptionalParametersError(refExpressionErrors),expr}this.expect(17);const state=this.state.clone(),originalNoArrowAt=this.state.noArrowAt,node=this.startNodeAt(startPos,startLoc);let{consequent,failed}=this.tryParseConditionalConsequent(),[valid,invalid]=this.getArrowLikeExpressions(consequent);if(failed||invalid.length>0){const noArrowAt=[...originalNoArrowAt];if(invalid.length>0){this.state=state,this.state.noArrowAt=noArrowAt;for(let i=0;i<invalid.length;i++)noArrowAt.push(invalid[i].start);(({consequent,failed}=this.tryParseConditionalConsequent())),[valid,invalid]=this.getArrowLikeExpressions(consequent);}failed&&valid.length>1&&this.raise(FlowErrors.AmbiguousConditionalArrow,{at:state.startLoc}),failed&&1===valid.length&&(this.state=state,noArrowAt.push(valid[0].start),this.state.noArrowAt=noArrowAt,({consequent,failed}=this.tryParseConditionalConsequent()));}return this.getArrowLikeExpressions(consequent,!0),this.state.noArrowAt=originalNoArrowAt,this.expect(14),node.test=expr,node.consequent=consequent,node.alternate=this.forwardNoArrowParamsConversionAt(node,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(node,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const consequent=this.parseMaybeAssignAllowIn(),failed=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent,failed}}getArrowLikeExpressions(node,disallowInvalid){const stack=[node],arrows=[];for(;0!==stack.length;){const node=stack.pop();"ArrowFunctionExpression"===node.type?(node.typeParameters||!node.returnType?this.finishArrowValidation(node):arrows.push(node),stack.push(node.body)):"ConditionalExpression"===node.type&&(stack.push(node.consequent),stack.push(node.alternate));}return disallowInvalid?(arrows.forEach((node=>this.finishArrowValidation(node))),[arrows,[]]):function(list,test){const list1=[],list2=[];for(let i=0;i<list.length;i++)(test(list[i],i,list)?list1:list2).push(list[i]);return [list1,list2]}(arrows,(node=>node.params.every((param=>this.isAssignable(param,!0)))))}finishArrowValidation(node){var _node$extra;this.toAssignableList(node.params,null==(_node$extra=node.extra)?void 0:_node$extra.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(node,!1,!0),this.scope.exit();}forwardNoArrowParamsConversionAt(node,parse){let result;return -1!==this.state.noArrowParamsConversionAt.indexOf(node.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),result=parse(),this.state.noArrowParamsConversionAt.pop()):result=parse(),result}parseParenItem(node,startPos,startLoc){if(node=super.parseParenItem(node,startPos,startLoc),this.eat(17)&&(node.optional=!0,this.resetEndLocation(node)),this.match(14)){const typeCastNode=this.startNodeAt(startPos,startLoc);return typeCastNode.expression=node,typeCastNode.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(typeCastNode,"TypeCastExpression")}return node}assertModuleNodeAllowed(node){"ImportDeclaration"===node.type&&("type"===node.importKind||"typeof"===node.importKind)||"ExportNamedDeclaration"===node.type&&"type"===node.exportKind||"ExportAllDeclaration"===node.type&&"type"===node.exportKind||super.assertModuleNodeAllowed(node);}parseExport(node){const decl=super.parseExport(node);return "ExportNamedDeclaration"!==decl.type&&"ExportAllDeclaration"!==decl.type||(decl.exportKind=decl.exportKind||"value"),decl}parseExportDeclaration(node){if(this.isContextual(126)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.match(5)?(node.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(node),null):this.flowParseTypeAlias(declarationNode)}if(this.isContextual(127)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.flowParseOpaqueType(declarationNode,!1)}if(this.isContextual(125)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.flowParseInterface(declarationNode)}if(this.shouldParseEnums()&&this.isContextual(122)){node.exportKind="value";const declarationNode=this.startNode();return this.next(),this.flowParseEnumDeclaration(declarationNode)}return super.parseExportDeclaration(node)}eatExportStar(node){return !!super.eatExportStar(node)||!(!this.isContextual(126)||55!==this.lookahead().type)&&(node.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(node){const{startLoc}=this.state,hasNamespace=super.maybeParseExportNamespaceSpecifier(node);return hasNamespace&&"type"===node.exportKind&&this.unexpected(startLoc),hasNamespace}parseClassId(node,isStatement,optionalId){super.parseClassId(node,isStatement,optionalId),this.match(47)&&(node.typeParameters=this.flowParseTypeParameterDeclaration());}parseClassMember(classBody,member,state){const{startLoc}=this.state;if(this.isContextual(121)){if(super.parseClassMemberFromModifier(classBody,member))return;member.declare=!0;}super.parseClassMember(classBody,member,state),member.declare&&("ClassProperty"!==member.type&&"ClassPrivateProperty"!==member.type&&"PropertyDefinition"!==member.type?this.raise(FlowErrors.DeclareClassElement,{at:startLoc}):member.value&&this.raise(FlowErrors.DeclareClassFieldInitializer,{at:member.value}));}isIterator(word){return "iterator"===word||"asyncIterator"===word}readIterator(){const word=super.readWord1(),fullWord="@@"+word;this.isIterator(word)&&this.state.inType||this.raise(Errors.InvalidIdentifier,{at:this.state.curPosition(),identifierName:fullWord}),this.finishToken(128,fullWord);}getTokenFromCode(code){const next=this.input.charCodeAt(this.state.pos+1);return 123===code&&124===next?this.finishOp(6,2):!this.state.inType||62!==code&&60!==code?this.state.inType&&63===code?46===next?this.finishOp(18,2):this.finishOp(17,1):function(current,next,next2){return 64===current&&64===next&&isIdentifierStart(next2)}(code,next,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(code):this.finishOp(62===code?48:47,1)}isAssignable(node,isBinding){return "TypeCastExpression"===node.type?this.isAssignable(node.expression,isBinding):super.isAssignable(node,isBinding)}toAssignable(node,isLHS=!1){isLHS||"AssignmentExpression"!==node.type||"TypeCastExpression"!==node.left.type||(node.left=this.typeCastToParameter(node.left)),super.toAssignable(node,isLHS);}toAssignableList(exprList,trailingCommaLoc,isLHS){for(let i=0;i<exprList.length;i++){const expr=exprList[i];"TypeCastExpression"===(null==expr?void 0:expr.type)&&(exprList[i]=this.typeCastToParameter(expr));}super.toAssignableList(exprList,trailingCommaLoc,isLHS);}toReferencedList(exprList,isParenthesizedExpr){for(let i=0;i<exprList.length;i++){var _expr$extra;const expr=exprList[i];!expr||"TypeCastExpression"!==expr.type||null!=(_expr$extra=expr.extra)&&_expr$extra.parenthesized||!(exprList.length>1)&&isParenthesizedExpr||this.raise(FlowErrors.TypeCastInPattern,{at:expr.typeAnnotation});}return exprList}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){const node=super.parseArrayLike(close,canBePattern,isTuple,refExpressionErrors);return canBePattern&&!this.state.maybeInArrowParameters&&this.toReferencedList(node.elements),node}isValidLVal(type,isParenthesized,binding){return "TypeCastExpression"===type||super.isValidLVal(type,isParenthesized,binding)}parseClassProperty(node){return this.match(14)&&(node.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(node)}parseClassPrivateProperty(node){return this.match(14)&&(node.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(node)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(method){return !this.match(14)&&super.isNonstaticConstructor(method)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){if(method.variance&&this.unexpected(method.variance.loc.start),delete method.variance,this.match(47)&&(method.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper),method.params&&isConstructor){const params=method.params;params.length>0&&this.isThisParam(params[0])&&this.raise(FlowErrors.ThisParamBannedInConstructor,{at:method});}else if("MethodDefinition"===method.type&&isConstructor&&method.value.params){const params=method.value.params;params.length>0&&this.isThisParam(params[0])&&this.raise(FlowErrors.ThisParamBannedInConstructor,{at:method});}}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){method.variance&&this.unexpected(method.variance.loc.start),delete method.variance,this.match(47)&&(method.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(classBody,method,isGenerator,isAsync);}parseClassSuper(node){if(super.parseClassSuper(node),node.superClass&&this.match(47)&&(node.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(110)){this.next();const implemented=node.implements=[];do{const node=this.startNode();node.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?node.typeParameters=this.flowParseTypeParameterInstantiation():node.typeParameters=null,implemented.push(this.finishNode(node,"ClassImplements"));}while(this.eat(12))}}checkGetterSetterParams(method){super.checkGetterSetterParams(method);const params=this.getObjectOrClassMethodParams(method);if(params.length>0){const param=params[0];this.isThisParam(param)&&"get"===method.kind?this.raise(FlowErrors.GetterMayNotHaveThisParam,{at:param}):this.isThisParam(param)&&this.raise(FlowErrors.SetterMayNotHaveThisParam,{at:param});}}parsePropertyNamePrefixOperator(node){node.variance=this.flowParseVariance();}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){let typeParameters;prop.variance&&this.unexpected(prop.variance.loc.start),delete prop.variance,this.match(47)&&!isAccessor&&(typeParameters=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const result=super.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors);return typeParameters&&((result.value||result).typeParameters=typeParameters),result}parseAssignableListItemTypes(param){return this.eat(17)&&("Identifier"!==param.type&&this.raise(FlowErrors.PatternIsOptional,{at:param}),this.isThisParam(param)&&this.raise(FlowErrors.ThisParamMayNotBeOptional,{at:param}),param.optional=!0),this.match(14)?param.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(param)&&this.raise(FlowErrors.ThisParamAnnotationRequired,{at:param}),this.match(29)&&this.isThisParam(param)&&this.raise(FlowErrors.ThisParamNoDefault,{at:param}),this.resetEndLocation(param),param}parseMaybeDefault(startPos,startLoc,left){const node=super.parseMaybeDefault(startPos,startLoc,left);return "AssignmentPattern"===node.type&&node.typeAnnotation&&node.right.start<node.typeAnnotation.start&&this.raise(FlowErrors.TypeBeforeInitializer,{at:node.typeAnnotation}),node}shouldParseDefaultImport(node){return hasTypeImportKind(node)?isMaybeDefaultImport(this.state.type):super.shouldParseDefaultImport(node)}parseImportSpecifierLocal(node,specifier,type){specifier.local=hasTypeImportKind(node)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),node.specifiers.push(this.finishImportSpecifier(specifier,type));}maybeParseDefaultImportSpecifier(node){node.importKind="value";let kind=null;if(this.match(87)?kind="typeof":this.isContextual(126)&&(kind="type"),kind){const lh=this.lookahead(),{type}=lh;"type"===kind&&55===type&&this.unexpected(null,lh.type),(isMaybeDefaultImport(type)||5===type||55===type)&&(this.next(),node.importKind=kind);}return super.maybeParseDefaultImportSpecifier(node)}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly,bindingType){const firstIdent=specifier.imported;let specifierTypeKind=null;"Identifier"===firstIdent.type&&("type"===firstIdent.name?specifierTypeKind="type":"typeof"===firstIdent.name&&(specifierTypeKind="typeof"));let isBinding=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const as_ident=this.parseIdentifier(!0);null===specifierTypeKind||tokenIsKeywordOrIdentifier(this.state.type)?(specifier.imported=firstIdent,specifier.importKind=null,specifier.local=this.parseIdentifier()):(specifier.imported=as_ident,specifier.importKind=specifierTypeKind,specifier.local=cloneIdentifier(as_ident));}else {if(null!==specifierTypeKind&&tokenIsKeywordOrIdentifier(this.state.type))specifier.imported=this.parseIdentifier(!0),specifier.importKind=specifierTypeKind;else {if(importedIsString)throw this.raise(Errors.ImportBindingIsString,{at:specifier,importName:firstIdent.value});specifier.imported=firstIdent,specifier.importKind=null;}this.eatContextual(93)?specifier.local=this.parseIdentifier():(isBinding=!0,specifier.local=cloneIdentifier(specifier.imported));}const specifierIsTypeImport=hasTypeImportKind(specifier);return isInTypeOnlyImport&&specifierIsTypeImport&&this.raise(FlowErrors.ImportTypeShorthandOnlyInPureImport,{at:specifier}),(isInTypeOnlyImport||specifierIsTypeImport)&&this.checkReservedType(specifier.local.name,specifier.local.loc.start,!0),!isBinding||isInTypeOnlyImport||specifierIsTypeImport||this.checkReservedWord(specifier.local.name,specifier.loc.start,!0,!0),this.finishImportSpecifier(specifier,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(node,allowModifiers){const kind=node.kind;"get"!==kind&&"set"!==kind&&this.match(47)&&(node.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(node,allowModifiers);}parseVarId(decl,kind){super.parseVarId(decl,kind),this.match(14)&&(decl.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(decl.id));}parseAsyncArrowFromCallExpression(node,call){if(this.match(14)){const oldNoAnonFunctionType=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,node.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=oldNoAnonFunctionType;}return super.parseAsyncArrowFromCallExpression(node,call)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(refExpressionErrors,afterLeftParse){var _jsx;let jsx,state=null;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(state=this.state.clone(),jsx=this.tryParse((()=>super.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!jsx.error)return jsx.node;const{context}=this.state,currentContext=context[context.length-1];currentContext!==types.j_oTag&&currentContext!==types.j_expr||context.pop();}if(null!=(_jsx=jsx)&&_jsx.error||this.match(47)){var _jsx2,_jsx3;let typeParameters;state=state||this.state.clone();const arrow=this.tryParse((abort=>{var _arrowExpression$extr;typeParameters=this.flowParseTypeParameterDeclaration();const arrowExpression=this.forwardNoArrowParamsConversionAt(typeParameters,(()=>{const result=super.parseMaybeAssign(refExpressionErrors,afterLeftParse);return this.resetStartLocationFromNode(result,typeParameters),result}));null!=(_arrowExpression$extr=arrowExpression.extra)&&_arrowExpression$extr.parenthesized&&abort();const expr=this.maybeUnwrapTypeCastExpression(arrowExpression);return "ArrowFunctionExpression"!==expr.type&&abort(),expr.typeParameters=typeParameters,this.resetStartLocationFromNode(expr,typeParameters),arrowExpression}),state);let arrowExpression=null;if(arrow.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(arrow.node).type){if(!arrow.error&&!arrow.aborted)return arrow.node.async&&this.raise(FlowErrors.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:typeParameters}),arrow.node;arrowExpression=arrow.node;}if(null!=(_jsx2=jsx)&&_jsx2.node)return this.state=jsx.failState,jsx.node;if(arrowExpression)return this.state=arrow.failState,arrowExpression;if(null!=(_jsx3=jsx)&&_jsx3.thrown)throw jsx.error;if(arrow.thrown)throw arrow.error;throw this.raise(FlowErrors.UnexpectedTokenAfterTypeParameter,{at:typeParameters})}return super.parseMaybeAssign(refExpressionErrors,afterLeftParse)}parseArrow(node){if(this.match(14)){const result=this.tryParse((()=>{const oldNoAnonFunctionType=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const typeNode=this.startNode();return [typeNode.typeAnnotation,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=oldNoAnonFunctionType,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),typeNode}));if(result.thrown)return null;result.error&&(this.state=result.failState),node.returnType=result.node.typeAnnotation?this.finishNode(result.node,"TypeAnnotation"):null;}return super.parseArrow(node)}shouldParseArrow(params){return this.match(14)||super.shouldParseArrow(params)}setArrowFunctionParameters(node,params){-1!==this.state.noArrowParamsConversionAt.indexOf(node.start)?node.params=params:super.setArrowFunctionParameters(node,params);}checkParams(node,allowDuplicates,isArrowFunction,strictModeChanged=!0){if(!isArrowFunction||-1===this.state.noArrowParamsConversionAt.indexOf(node.start)){for(let i=0;i<node.params.length;i++)this.isThisParam(node.params[i])&&i>0&&this.raise(FlowErrors.ThisParamMustBeFirst,{at:node.params[i]});return super.checkParams(node,allowDuplicates,isArrowFunction,strictModeChanged)}}parseParenAndDistinguishExpression(canBeArrow){return super.parseParenAndDistinguishExpression(canBeArrow&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(base,startPos,startLoc,noCalls){if("Identifier"===base.type&&"async"===base.name&&-1!==this.state.noArrowAt.indexOf(startPos)){this.next();const node=this.startNodeAt(startPos,startLoc);node.callee=base,node.arguments=super.parseCallExpressionArguments(11,!1),base=this.finishNode(node,"CallExpression");}else if("Identifier"===base.type&&"async"===base.name&&this.match(47)){const state=this.state.clone(),arrow=this.tryParse((abort=>this.parseAsyncArrowWithTypeParameters(startPos,startLoc)||abort()),state);if(!arrow.error&&!arrow.aborted)return arrow.node;const result=this.tryParse((()=>super.parseSubscripts(base,startPos,startLoc,noCalls)),state);if(result.node&&!result.error)return result.node;if(arrow.node)return this.state=arrow.failState,arrow.node;if(result.node)return this.state=result.failState,result.node;throw arrow.error||result.error}return super.parseSubscripts(base,startPos,startLoc,noCalls)}parseSubscript(base,startPos,startLoc,noCalls,subscriptState){if(this.match(18)&&this.isLookaheadToken_lt()){if(subscriptState.optionalChainMember=!0,noCalls)return subscriptState.stop=!0,base;this.next();const node=this.startNodeAt(startPos,startLoc);return node.callee=base,node.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),node.arguments=this.parseCallExpressionArguments(11,!1),node.optional=!0,this.finishCallExpression(node,!0)}if(!noCalls&&this.shouldParseTypes()&&this.match(47)){const node=this.startNodeAt(startPos,startLoc);node.callee=base;const result=this.tryParse((()=>(node.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),node.arguments=super.parseCallExpressionArguments(11,!1),subscriptState.optionalChainMember&&(node.optional=!1),this.finishCallExpression(node,subscriptState.optionalChainMember))));if(result.node)return result.error&&(this.state=result.failState),result.node}return super.parseSubscript(base,startPos,startLoc,noCalls,subscriptState)}parseNewCallee(node){super.parseNewCallee(node);let targs=null;this.shouldParseTypes()&&this.match(47)&&(targs=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),node.typeArguments=targs;}parseAsyncArrowWithTypeParameters(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);if(this.parseFunctionParams(node),this.parseArrow(node))return super.parseArrowExpression(node,void 0,!0)}readToken_mult_modulo(code){const next=this.input.charCodeAt(this.state.pos+1);if(42===code&&47===next&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(code);}readToken_pipe_amp(code){const next=this.input.charCodeAt(this.state.pos+1);124!==code||125!==next?super.readToken_pipe_amp(code):this.finishOp(9,2);}parseTopLevel(file,program){const fileNode=super.parseTopLevel(file,program);return this.state.hasFlowComment&&this.raise(FlowErrors.UnterminatedFlowComment,{at:this.state.curPosition()}),fileNode}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(FlowErrors.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();const commentSkip=this.skipFlowComment();commentSkip&&(this.state.pos+=commentSkip,this.state.hasFlowComment=!0);}else {if(!this.state.hasFlowComment)return super.skipBlockComment();{const end=this.input.indexOf("*-/",this.state.pos+2);if(-1===end)throw this.raise(Errors.UnterminatedComment,{at:this.state.curPosition()});this.state.pos=end+2+3;}}}skipFlowComment(){const{pos}=this.state;let shiftToFirstNonWhiteSpace=2;for(;[32,9].includes(this.input.charCodeAt(pos+shiftToFirstNonWhiteSpace));)shiftToFirstNonWhiteSpace++;const ch2=this.input.charCodeAt(shiftToFirstNonWhiteSpace+pos),ch3=this.input.charCodeAt(shiftToFirstNonWhiteSpace+pos+1);return 58===ch2&&58===ch3?shiftToFirstNonWhiteSpace+2:"flow-include"===this.input.slice(shiftToFirstNonWhiteSpace+pos,shiftToFirstNonWhiteSpace+pos+12)?shiftToFirstNonWhiteSpace+12:58===ch2&&58!==ch3&&shiftToFirstNonWhiteSpace}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(Errors.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(loc,{enumName,memberName}){this.raise(FlowErrors.EnumBooleanMemberNotInitialized,{at:loc,memberName,enumName});}flowEnumErrorInvalidMemberInitializer(loc,enumContext){return this.raise(enumContext.explicitType?"symbol"===enumContext.explicitType?FlowErrors.EnumInvalidMemberInitializerSymbolType:FlowErrors.EnumInvalidMemberInitializerPrimaryType:FlowErrors.EnumInvalidMemberInitializerUnknownType,Object.assign({at:loc},enumContext))}flowEnumErrorNumberMemberNotInitialized(loc,{enumName,memberName}){this.raise(FlowErrors.EnumNumberMemberNotInitialized,{at:loc,enumName,memberName});}flowEnumErrorStringMemberInconsistentlyInitailized(node,{enumName}){this.raise(FlowErrors.EnumStringMemberInconsistentlyInitailized,{at:node,enumName});}flowEnumMemberInit(){const startLoc=this.state.startLoc,endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 130:{const literal=this.parseNumericLiteral(this.state.value);return endOfInit()?{type:"number",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}case 129:{const literal=this.parseStringLiteral(this.state.value);return endOfInit()?{type:"string",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}case 85:case 86:{const literal=this.parseBooleanLiteral(this.match(85));return endOfInit()?{type:"boolean",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}default:return {type:"invalid",loc:startLoc}}}flowEnumMemberRaw(){const loc=this.state.startLoc;return {id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc}}}flowEnumCheckExplicitTypeMismatch(loc,context,expectedType){const{explicitType}=context;null!==explicitType&&explicitType!==expectedType&&this.flowEnumErrorInvalidMemberInitializer(loc,context);}flowEnumMembers({enumName,explicitType}){const seenNames=new Set,members={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let hasUnknownMembers=!1;for(;!this.match(8);){if(this.eat(21)){hasUnknownMembers=!0;break}const memberNode=this.startNode(),{id,init}=this.flowEnumMemberRaw(),memberName=id.name;if(""===memberName)continue;/^[a-z]/.test(memberName)&&this.raise(FlowErrors.EnumInvalidMemberName,{at:id,memberName,suggestion:memberName[0].toUpperCase()+memberName.slice(1),enumName}),seenNames.has(memberName)&&this.raise(FlowErrors.EnumDuplicateMemberName,{at:id,memberName,enumName}),seenNames.add(memberName);const context={enumName,explicitType,memberName};switch(memberNode.id=id,init.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"boolean"),memberNode.init=init.value,members.booleanMembers.push(this.finishNode(memberNode,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"number"),memberNode.init=init.value,members.numberMembers.push(this.finishNode(memberNode,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"string"),memberNode.init=init.value,members.stringMembers.push(this.finishNode(memberNode,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(init.loc,context);case"none":switch(explicitType){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(init.loc,context);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(init.loc,context);break;default:members.defaultedMembers.push(this.finishNode(memberNode,"EnumDefaultedMember"));}}this.match(8)||this.expect(12);}return {members,hasUnknownMembers}}flowEnumStringMembers(initializedMembers,defaultedMembers,{enumName}){if(0===initializedMembers.length)return defaultedMembers;if(0===defaultedMembers.length)return initializedMembers;if(defaultedMembers.length>initializedMembers.length){for(const member of initializedMembers)this.flowEnumErrorStringMemberInconsistentlyInitailized(member,{enumName});return defaultedMembers}for(const member of defaultedMembers)this.flowEnumErrorStringMemberInconsistentlyInitailized(member,{enumName});return initializedMembers}flowEnumParseExplicitType({enumName}){if(!this.eatContextual(101))return null;if(!tokenIsIdentifier(this.state.type))throw this.raise(FlowErrors.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName});const{value}=this.state;return this.next(),"boolean"!==value&&"number"!==value&&"string"!==value&&"symbol"!==value&&this.raise(FlowErrors.EnumInvalidExplicitType,{at:this.state.startLoc,enumName,invalidEnumType:value}),value}flowEnumBody(node,id){const enumName=id.name,nameLoc=id.loc.start,explicitType=this.flowEnumParseExplicitType({enumName});this.expect(5);const{members,hasUnknownMembers}=this.flowEnumMembers({enumName,explicitType});switch(node.hasUnknownMembers=hasUnknownMembers,explicitType){case"boolean":return node.explicitType=!0,node.members=members.booleanMembers,this.expect(8),this.finishNode(node,"EnumBooleanBody");case"number":return node.explicitType=!0,node.members=members.numberMembers,this.expect(8),this.finishNode(node,"EnumNumberBody");case"string":return node.explicitType=!0,node.members=this.flowEnumStringMembers(members.stringMembers,members.defaultedMembers,{enumName}),this.expect(8),this.finishNode(node,"EnumStringBody");case"symbol":return node.members=members.defaultedMembers,this.expect(8),this.finishNode(node,"EnumSymbolBody");default:{const empty=()=>(node.members=[],this.expect(8),this.finishNode(node,"EnumStringBody"));node.explicitType=!1;const boolsLen=members.booleanMembers.length,numsLen=members.numberMembers.length,strsLen=members.stringMembers.length,defaultedLen=members.defaultedMembers.length;if(boolsLen||numsLen||strsLen||defaultedLen){if(boolsLen||numsLen){if(!numsLen&&!strsLen&&boolsLen>=defaultedLen){for(const member of members.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start,{enumName,memberName:member.id.name});return node.members=members.booleanMembers,this.expect(8),this.finishNode(node,"EnumBooleanBody")}if(!boolsLen&&!strsLen&&numsLen>=defaultedLen){for(const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start,{enumName,memberName:member.id.name});return node.members=members.numberMembers,this.expect(8),this.finishNode(node,"EnumNumberBody")}return this.raise(FlowErrors.EnumInconsistentMemberValues,{at:nameLoc,enumName}),empty()}return node.members=this.flowEnumStringMembers(members.stringMembers,members.defaultedMembers,{enumName}),this.expect(8),this.finishNode(node,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(node){const id=this.parseIdentifier();return node.id=id,node.body=this.flowEnumBody(this.startNode(),id),this.finishNode(node,"EnumDeclaration")}isLookaheadToken_lt(){const next=this.nextTokenStart();if(60===this.input.charCodeAt(next)){const afterNext=this.input.charCodeAt(next+1);return 60!==afterNext&&61!==afterNext}return !1}maybeUnwrapTypeCastExpression(node){return "TypeCastExpression"===node.type?node.expression:node}},typescript:superClass=>class extends superClass{getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return (this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(134)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(allowedModifiers,stopOnStartOfClassStaticBlock){if(!tokenIsIdentifier(this.state.type)&&58!==this.state.type)return;const modifier=this.state.value;if(-1!==allowedModifiers.indexOf(modifier)){if(stopOnStartOfClassStaticBlock&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return modifier}}tsParseModifiers({modified,allowedModifiers,disallowedModifiers,stopOnStartOfClassStaticBlock,errorTemplate=TSErrors.InvalidModifierOnTypeMember}){const enforceOrder=(loc,modifier,before,after)=>{modifier===before&&modified[after]&&this.raise(TSErrors.InvalidModifiersOrder,{at:loc,orderedModifiers:[before,after]});},incompatible=(loc,modifier,mod1,mod2)=>{(modified[mod1]&&modifier===mod2||modified[mod2]&&modifier===mod1)&&this.raise(TSErrors.IncompatibleModifiers,{at:loc,modifiers:[mod1,mod2]});};for(;;){const{startLoc}=this.state,modifier=this.tsParseModifier(allowedModifiers.concat(null!=disallowedModifiers?disallowedModifiers:[]),stopOnStartOfClassStaticBlock);if(!modifier)break;tsIsAccessModifier(modifier)?modified.accessibility?this.raise(TSErrors.DuplicateAccessibilityModifier,{at:startLoc,modifier}):(enforceOrder(startLoc,modifier,modifier,"override"),enforceOrder(startLoc,modifier,modifier,"static"),enforceOrder(startLoc,modifier,modifier,"readonly"),modified.accessibility=modifier):tsIsVarianceAnnotations(modifier)?(modified[modifier]&&this.raise(TSErrors.DuplicateModifier,{at:startLoc,modifier}),modified[modifier]=!0,enforceOrder(startLoc,modifier,"in","out")):(Object.hasOwnProperty.call(modified,modifier)?this.raise(TSErrors.DuplicateModifier,{at:startLoc,modifier}):(enforceOrder(startLoc,modifier,"static","readonly"),enforceOrder(startLoc,modifier,"static","override"),enforceOrder(startLoc,modifier,"override","readonly"),enforceOrder(startLoc,modifier,"abstract","override"),incompatible(startLoc,modifier,"declare","override"),incompatible(startLoc,modifier,"static","abstract")),modified[modifier]=!0),null!=disallowedModifiers&&disallowedModifiers.includes(modifier)&&this.raise(errorTemplate,{at:startLoc,modifier});}}tsIsListTerminator(kind){switch(kind){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}throw new Error("Unreachable")}tsParseList(kind,parseElement){const result=[];for(;!this.tsIsListTerminator(kind);)result.push(parseElement());return result}tsParseDelimitedList(kind,parseElement,refTrailingCommaPos){return function(x){if(null==x)throw new Error(`Unexpected ${x} value.`);return x}(this.tsParseDelimitedListWorker(kind,parseElement,!0,refTrailingCommaPos))}tsParseDelimitedListWorker(kind,parseElement,expectSuccess,refTrailingCommaPos){const result=[];let trailingCommaPos=-1;for(;!this.tsIsListTerminator(kind);){trailingCommaPos=-1;const element=parseElement();if(null==element)return;if(result.push(element),!this.eat(12)){if(this.tsIsListTerminator(kind))break;return void(expectSuccess&&this.expect(12))}trailingCommaPos=this.state.lastTokStart;}return refTrailingCommaPos&&(refTrailingCommaPos.value=trailingCommaPos),result}tsParseBracketedList(kind,parseElement,bracket,skipFirstToken,refTrailingCommaPos){skipFirstToken||(bracket?this.expect(0):this.expect(47));const result=this.tsParseDelimitedList(kind,parseElement,refTrailingCommaPos);return bracket?this.expect(3):this.expect(48),result}tsParseImportType(){const node=this.startNode();return this.expect(83),this.expect(10),this.match(129)||this.raise(TSErrors.UnsupportedImportTypeArgument,{at:this.state.startLoc}),node.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(node.qualifier=this.tsParseEntityName()),this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSImportType")}tsParseEntityName(allowReservedWords=!0){let entity=this.parseIdentifier(allowReservedWords);for(;this.eat(16);){const node=this.startNodeAtNode(entity);node.left=entity,node.right=this.parseIdentifier(allowReservedWords),entity=this.finishNode(node,"TSQualifiedName");}return entity}tsParseTypeReference(){const node=this.startNode();return node.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSTypeReference")}tsParseThisTypePredicate(lhs){this.next();const node=this.startNodeAtNode(lhs);return node.parameterName=lhs,node.typeAnnotation=this.tsParseTypeAnnotation(!1),node.asserts=!1,this.finishNode(node,"TSTypePredicate")}tsParseThisTypeNode(){const node=this.startNode();return this.next(),this.finishNode(node,"TSThisType")}tsParseTypeQuery(){const node=this.startNode();return this.expect(87),this.match(83)?node.exprName=this.tsParseImportType():node.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSTypeQuery")}tsParseInOutModifiers(node){this.tsParseModifiers({modified:node,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:TSErrors.InvalidModifierOnTypeParameter});}tsParseNoneModifiers(node){this.tsParseModifiers({modified:node,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:TSErrors.InvalidModifierOnTypeParameterPositions});}tsParseTypeParameter(parseModifiers=this.tsParseNoneModifiers.bind(this)){const node=this.startNode();return parseModifiers(node),node.name=this.tsParseTypeParameterName(),node.constraint=this.tsEatThenParseType(81),node.default=this.tsEatThenParseType(29),this.finishNode(node,"TSTypeParameter")}tsTryParseTypeParameters(parseModifiers){if(this.match(47))return this.tsParseTypeParameters(parseModifiers)}tsParseTypeParameters(parseModifiers){const node=this.startNode();this.match(47)||this.match(138)?this.next():this.unexpected();const refTrailingCommaPos={value:-1};return node.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,parseModifiers),!1,!0,refTrailingCommaPos),0===node.params.length&&this.raise(TSErrors.EmptyTypeParameters,{at:node}),-1!==refTrailingCommaPos.value&&this.addExtra(node,"trailingComma",refTrailingCommaPos.value),this.finishNode(node,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){if(75!==this.lookahead().type)return null;this.next();const typeReference=this.tsParseTypeReference();return typeReference.typeParameters&&this.raise(TSErrors.CannotFindName,{at:typeReference.typeName,name:"const"}),typeReference}tsFillSignature(returnToken,signature){const returnTokenRequired=19===returnToken;signature.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),signature.parameters=this.tsParseBindingListForSignature(),(returnTokenRequired||this.match(returnToken))&&(signature.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(returnToken));}tsParseBindingListForSignature(){return super.parseBindingList(11,41).map((pattern=>("Identifier"!==pattern.type&&"RestElement"!==pattern.type&&"ObjectPattern"!==pattern.type&&"ArrayPattern"!==pattern.type&&this.raise(TSErrors.UnsupportedSignatureParameterKind,{at:pattern,type:pattern.type}),pattern)))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13);}tsParseSignatureMember(kind,node){return this.tsFillSignature(14,node),this.tsParseTypeMemberSemicolon(),this.finishNode(node,kind)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!tokenIsIdentifier(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(node){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const id=this.parseIdentifier();id.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(id),this.expect(3),node.parameters=[id];const type=this.tsTryParseTypeAnnotation();return type&&(node.typeAnnotation=type),this.tsParseTypeMemberSemicolon(),this.finishNode(node,"TSIndexSignature")}tsParsePropertyOrMethodSignature(node,readonly){this.eat(17)&&(node.optional=!0);const nodeAny=node;if(this.match(10)||this.match(47)){readonly&&this.raise(TSErrors.ReadonlyForMethodSignature,{at:node});const method=nodeAny;method.kind&&this.match(47)&&this.raise(TSErrors.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,method),this.tsParseTypeMemberSemicolon();const paramsKey="parameters",returnTypeKey="typeAnnotation";if("get"===method.kind)method[paramsKey].length>0&&(this.raise(Errors.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(method[paramsKey][0])&&this.raise(TSErrors.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===method.kind){if(1!==method[paramsKey].length)this.raise(Errors.BadSetterArity,{at:this.state.curPosition()});else {const firstParameter=method[paramsKey][0];this.isThisParam(firstParameter)&&this.raise(TSErrors.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===firstParameter.type&&firstParameter.optional&&this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===firstParameter.type&&this.raise(TSErrors.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()});}method[returnTypeKey]&&this.raise(TSErrors.SetAccesorCannotHaveReturnType,{at:method[returnTypeKey]});}else method.kind="method";return this.finishNode(method,"TSMethodSignature")}{const property=nodeAny;readonly&&(property.readonly=!0);const type=this.tsTryParseTypeAnnotation();return type&&(property.typeAnnotation=type),this.tsParseTypeMemberSemicolon(),this.finishNode(property,"TSPropertySignature")}}tsParseTypeMember(){const node=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",node);if(this.match(77)){const id=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",node):(node.key=this.createIdentifier(id,"new"),this.tsParsePropertyOrMethodSignature(node,!1))}this.tsParseModifiers({modified:node,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});const idx=this.tsTryParseIndexSignature(node);return idx||(super.parsePropertyName(node),node.computed||"Identifier"!==node.key.type||"get"!==node.key.name&&"set"!==node.key.name||!this.tsTokenCanFollowModifier()||(node.kind=node.key.name,super.parsePropertyName(node)),this.tsParsePropertyOrMethodSignature(node,!!node.readonly))}tsParseTypeLiteral(){const node=this.startNode();return node.members=this.tsParseObjectTypeMembers(),this.finishNode(node,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const members=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),members}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(118):(this.isContextual(118)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const node=this.startNode();return node.name=this.tsParseTypeParameterName(),node.constraint=this.tsExpectThenParseType(58),this.finishNode(node,"TSTypeParameter")}tsParseMappedType(){const node=this.startNode();return this.expect(5),this.match(53)?(node.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(node.readonly=!0),this.expect(0),node.typeParameter=this.tsParseMappedTypeParameter(),node.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(node.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(node.optional=!0),node.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(node,"TSMappedType")}tsParseTupleType(){const node=this.startNode();node.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let seenOptionalElement=!1,labeledElements=null;return node.elementTypes.forEach((elementNode=>{const{type}=elementNode;!seenOptionalElement||"TSRestType"===type||"TSOptionalType"===type||"TSNamedTupleMember"===type&&elementNode.optional||this.raise(TSErrors.OptionalTypeBeforeRequired,{at:elementNode}),seenOptionalElement||(seenOptionalElement="TSNamedTupleMember"===type&&elementNode.optional||"TSOptionalType"===type);let checkType=type;"TSRestType"===type&&(checkType=(elementNode=elementNode.typeAnnotation).type);const isLabeled="TSNamedTupleMember"===checkType;null!=labeledElements||(labeledElements=isLabeled),labeledElements!==isLabeled&&this.raise(TSErrors.MixedLabeledAndUnlabeledElements,{at:elementNode});})),this.finishNode(node,"TSTupleType")}tsParseTupleElementType(){const{start:startPos,startLoc}=this.state,rest=this.eat(21);let type=this.tsParseType();const optional=this.eat(17);if(this.eat(14)){const labeledNode=this.startNodeAtNode(type);labeledNode.optional=optional,"TSTypeReference"!==type.type||type.typeParameters||"Identifier"!==type.typeName.type?(this.raise(TSErrors.InvalidTupleMemberLabel,{at:type}),labeledNode.label=type):labeledNode.label=type.typeName,labeledNode.elementType=this.tsParseType(),type=this.finishNode(labeledNode,"TSNamedTupleMember");}else if(optional){const optionalTypeNode=this.startNodeAtNode(type);optionalTypeNode.typeAnnotation=type,type=this.finishNode(optionalTypeNode,"TSOptionalType");}if(rest){const restNode=this.startNodeAt(startPos,startLoc);restNode.typeAnnotation=type,type=this.finishNode(restNode,"TSRestType");}return type}tsParseParenthesizedType(){const node=this.startNode();return this.expect(10),node.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(node,"TSParenthesizedType")}tsParseFunctionOrConstructorType(type,abstract){const node=this.startNode();return "TSConstructorType"===type&&(node.abstract=!!abstract,abstract&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,node))),this.finishNode(node,type)}tsParseLiteralTypeNode(){const node=this.startNode();return node.literal=(()=>{switch(this.state.type){case 130:case 131:case 129:case 85:case 86:return super.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(node,"TSLiteralType")}tsParseTemplateLiteralType(){const node=this.startNode();return node.literal=super.parseTemplate(!1),this.finishNode(node,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const thisKeyword=this.tsParseThisTypeNode();return this.isContextual(113)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(thisKeyword):thisKeyword}tsParseNonArrayType(){switch(this.state.type){case 129:case 130:case 131:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const node=this.startNode(),nextToken=this.lookahead();if(130!==nextToken.type&&131!==nextToken.type)throw this.unexpected();return node.literal=this.parseMaybeUnary(),this.finishNode(node,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type}=this.state;if(tokenIsIdentifier(type)||88===type||84===type){const nodeType=88===type?"TSVoidKeyword":84===type?"TSNullKeyword":function(value){switch(value){case"any":return "TSAnyKeyword";case"boolean":return "TSBooleanKeyword";case"bigint":return "TSBigIntKeyword";case"never":return "TSNeverKeyword";case"number":return "TSNumberKeyword";case"object":return "TSObjectKeyword";case"string":return "TSStringKeyword";case"symbol":return "TSSymbolKeyword";case"undefined":return "TSUndefinedKeyword";case"unknown":return "TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==nodeType&&46!==this.lookaheadCharCode()){const node=this.startNode();return this.next(),this.finishNode(node,nodeType)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let type=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const node=this.startNodeAtNode(type);node.elementType=type,this.expect(3),type=this.finishNode(node,"TSArrayType");}else {const node=this.startNodeAtNode(type);node.objectType=type,node.indexType=this.tsParseType(),this.expect(3),type=this.finishNode(node,"TSIndexedAccessType");}return type}tsParseTypeOperator(){const node=this.startNode(),operator=this.state.value;return this.next(),node.operator=operator,node.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===operator&&this.tsCheckTypeAnnotationForReadOnly(node),this.finishNode(node,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(node){switch(node.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(TSErrors.UnexpectedReadonly,{at:node});}}tsParseInferType(){const node=this.startNode();this.expectContextual(112);const typeParameter=this.startNode();return typeParameter.name=this.tsParseTypeParameterName(),typeParameter.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),node.typeParameter=this.finishNode(typeParameter,"TSTypeParameter"),this.finishNode(node,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const constraint=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return constraint}}tsParseTypeOperatorOrHigher(){var token;return (token=this.state.type)>=117&&token<=119&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(112)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(kind,parseConstituentType,operator){const node=this.startNode(),hasLeadingOperator=this.eat(operator),types=[];do{types.push(parseConstituentType());}while(this.eat(operator));return 1!==types.length||hasLeadingOperator?(node.types=types,this.finishNode(node,kind)):types[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return !!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors}=this.state,previousErrorCount=errors.length;try{return this.parseObjectLike(8,!0),errors.length===previousErrorCount}catch(_unused){return !1}}if(this.match(0)){this.next();const{errors}=this.state,previousErrorCount=errors.length;try{return super.parseBindingList(3,93,!0),errors.length===previousErrorCount}catch(_unused2){return !1}}return !1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return !0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return !0;if(this.match(11)&&(this.next(),this.match(19)))return !0}return !1}tsParseTypeOrTypePredicateAnnotation(returnToken){return this.tsInType((()=>{const t=this.startNode();this.expect(returnToken);const node=this.startNode(),asserts=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(asserts&&this.match(78)){let thisTypePredicate=this.tsParseThisTypeOrThisTypePredicate();return "TSThisType"===thisTypePredicate.type?(node.parameterName=thisTypePredicate,node.asserts=!0,node.typeAnnotation=null,thisTypePredicate=this.finishNode(node,"TSTypePredicate")):(this.resetStartLocationFromNode(thisTypePredicate,node),thisTypePredicate.asserts=!0),t.typeAnnotation=thisTypePredicate,this.finishNode(t,"TSTypeAnnotation")}const typePredicateVariable=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!typePredicateVariable)return asserts?(node.parameterName=this.parseIdentifier(),node.asserts=asserts,node.typeAnnotation=null,t.typeAnnotation=this.finishNode(node,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const type=this.tsParseTypeAnnotation(!1);return node.parameterName=typePredicateVariable,node.typeAnnotation=type,node.asserts=asserts,t.typeAnnotation=this.finishNode(node,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const id=this.parseIdentifier();if(this.isContextual(113)&&!this.hasPrecedingLineBreak())return this.next(),id}tsParseTypePredicateAsserts(){if(106!==this.state.type)return !1;const containsEsc=this.state.containsEsc;return this.next(),!(!tokenIsIdentifier(this.state.type)&&!this.match(78))&&(containsEsc&&this.raise(Errors.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(eatColon=!0,t=this.startNode()){return this.tsInType((()=>{eatColon&&this.expect(14),t.typeAnnotation=this.tsParseType();})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const type=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return type;const node=this.startNodeAtNode(type);return node.checkType=type,node.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),node.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),node.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(node,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(TSErrors.ReservedTypeAssertion,{at:this.state.startLoc});const node=this.startNode(),_const=this.tsTryNextParseConstantContext();return node.typeAnnotation=_const||this.tsNextThenParseType(),this.expect(48),node.expression=this.parseMaybeUnary(),this.finishNode(node,"TSTypeAssertion")}tsParseHeritageClause(token){const originalStartLoc=this.state.startLoc,delimitedList=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const node=this.startNode();return node.expression=this.tsParseEntityName(),this.match(47)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSExpressionWithTypeArguments")}));return delimitedList.length||this.raise(TSErrors.EmptyHeritageClauseType,{at:originalStartLoc,token}),delimitedList}tsParseInterfaceDeclaration(node,properties={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),properties.declare&&(node.declare=!0),tokenIsIdentifier(this.state.type)?(node.id=this.parseIdentifier(),this.checkIdentifier(node.id,130)):(node.id=null,this.raise(TSErrors.MissingInterfaceName,{at:this.state.startLoc})),node.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(81)&&(node.extends=this.tsParseHeritageClause("extends"));const body=this.startNode();return body.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),node.body=this.finishNode(body,"TSInterfaceBody"),this.finishNode(node,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(node){return node.id=this.parseIdentifier(),this.checkIdentifier(node.id,2),node.typeAnnotation=this.tsInType((()=>{if(node.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(29),this.isContextual(111)&&16!==this.lookahead().type){const node=this.startNode();return this.next(),this.finishNode(node,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(node,"TSTypeAliasDeclaration")}tsInNoContext(cb){const oldContext=this.state.context;this.state.context=[oldContext[0]];try{return cb()}finally{this.state.context=oldContext;}}tsInType(cb){const oldInType=this.state.inType;this.state.inType=!0;try{return cb()}finally{this.state.inType=oldInType;}}tsInDisallowConditionalTypesContext(cb){const oldInDisallowConditionalTypesContext=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return cb()}finally{this.state.inDisallowConditionalTypesContext=oldInDisallowConditionalTypesContext;}}tsInAllowConditionalTypesContext(cb){const oldInDisallowConditionalTypesContext=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return cb()}finally{this.state.inDisallowConditionalTypesContext=oldInDisallowConditionalTypesContext;}}tsEatThenParseType(token){return this.match(token)?this.tsNextThenParseType():void 0}tsExpectThenParseType(token){return this.tsDoThenParseType((()=>this.expect(token)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(cb){return this.tsInType((()=>(cb(),this.tsParseType())))}tsParseEnumMember(){const node=this.startNode();return node.id=this.match(129)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(node.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(node,"TSEnumMember")}tsParseEnumDeclaration(node,properties={}){return properties.const&&(node.const=!0),properties.declare&&(node.declare=!0),this.expectContextual(122),node.id=this.parseIdentifier(),this.checkIdentifier(node.id,node.const?779:267),this.expect(5),node.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(node,"TSEnumDeclaration")}tsParseModuleBlock(){const node=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(node.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(node,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(node,nested=!1){if(node.id=this.parseIdentifier(),nested||this.checkIdentifier(node.id,1024),this.eat(16)){const inner=this.startNode();this.tsParseModuleOrNamespaceDeclaration(inner,!0),node.body=inner;}else this.scope.enter(256),this.prodParam.enter(0),node.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(node,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(node){return this.isContextual(109)?(node.global=!0,node.id=this.parseIdentifier()):this.match(129)?node.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),node.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(node,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(node,isExport){node.isExport=isExport||!1,node.id=this.parseIdentifier(),this.checkIdentifier(node.id,9),this.expect(29);const moduleReference=this.tsParseModuleReference();return "type"===node.importKind&&"TSExternalModuleReference"!==moduleReference.type&&this.raise(TSErrors.ImportAliasHasImportType,{at:moduleReference}),node.moduleReference=moduleReference,this.semicolon(),this.finishNode(node,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(116)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const node=this.startNode();if(this.expectContextual(116),this.expect(10),!this.match(129))throw this.unexpected();return node.expression=super.parseExprAtom(),this.expect(11),this.finishNode(node,"TSExternalModuleReference")}tsLookAhead(f){const state=this.state.clone(),res=f();return this.state=state,res}tsTryParseAndCatch(f){const result=this.tryParse((abort=>f()||abort()));if(!result.aborted&&result.node)return result.error&&(this.state=result.failState),result.node}tsTryParse(f){const state=this.state.clone(),result=f();return void 0!==result&&!1!==result?result:void(this.state=state)}tsTryParseDeclare(nany){if(this.isLineTerminator())return;let kind,starttype=this.state.type;return this.isContextual(99)&&(starttype=74,kind="let"),this.tsInAmbientContext((()=>{if(68===starttype)return nany.declare=!0,super.parseFunctionStatement(nany,!1,!0);if(80===starttype)return nany.declare=!0,this.parseClass(nany,!0,!1);if(122===starttype)return this.tsParseEnumDeclaration(nany,{declare:!0});if(109===starttype)return this.tsParseAmbientExternalModuleDeclaration(nany);if(75===starttype||74===starttype)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(nany,{const:!0,declare:!0})):(nany.declare=!0,this.parseVarStatement(nany,kind||this.state.value,!0));if(125===starttype){const result=this.tsParseInterfaceDeclaration(nany,{declare:!0});if(result)return result}return tokenIsIdentifier(starttype)?this.tsParseDeclaration(nany,this.state.value,!0):void 0}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(node,expr){switch(expr.name){case"declare":{const declaration=this.tsTryParseDeclare(node);if(declaration)return declaration.declare=!0,declaration;break}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const mod=node;return mod.global=!0,mod.id=expr,mod.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(mod,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(node,expr.name,!1)}}tsParseDeclaration(node,value,next){switch(value){case"abstract":if(this.tsCheckLineTerminator(next)&&(this.match(80)||tokenIsIdentifier(this.state.type)))return this.tsParseAbstractDeclaration(node);break;case"module":if(this.tsCheckLineTerminator(next)){if(this.match(129))return this.tsParseAmbientExternalModuleDeclaration(node);if(tokenIsIdentifier(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(node)}break;case"namespace":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(node);break;case"type":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseTypeAliasDeclaration(node)}}tsCheckLineTerminator(next){return next?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(startPos,startLoc){if(!this.match(47))return;const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const res=this.tsTryParseAndCatch((()=>{const node=this.startNodeAt(startPos,startLoc);return node.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(node),node.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),node}));return this.state.maybeInArrowParameters=oldMaybeInArrowParameters,res?super.parseArrowExpression(res,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const node=this.startNode();return node.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===node.params.length&&this.raise(TSErrors.EmptyTypeArguments,{at:node}),this.expect(48),this.finishNode(node,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return (token=this.state.type)>=120&&token<=126;var token;}isExportDefaultSpecifier(){return !this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(allowModifiers,decorators){const startPos=this.state.start,startLoc=this.state.startLoc;let accessibility,readonly=!1,override=!1;if(void 0!==allowModifiers){const modified={};this.tsParseModifiers({modified,allowedModifiers:["public","private","protected","override","readonly"]}),accessibility=modified.accessibility,override=modified.override,readonly=modified.readonly,!1===allowModifiers&&(accessibility||readonly||override)&&this.raise(TSErrors.UnexpectedParameterModifier,{at:startLoc});}const left=this.parseMaybeDefault();this.parseAssignableListItemTypes(left);const elt=this.parseMaybeDefault(left.start,left.loc.start,left);if(accessibility||readonly||override){const pp=this.startNodeAt(startPos,startLoc);return decorators.length&&(pp.decorators=decorators),accessibility&&(pp.accessibility=accessibility),readonly&&(pp.readonly=readonly),override&&(pp.override=override),"Identifier"!==elt.type&&"AssignmentPattern"!==elt.type&&this.raise(TSErrors.UnsupportedParameterPropertyKind,{at:pp}),pp.parameter=elt,this.finishNode(pp,"TSParameterProperty")}return decorators.length&&(left.decorators=decorators),elt}isSimpleParameter(node){return "TSParameterProperty"===node.type&&super.isSimpleParameter(node.parameter)||super.isSimpleParameter(node)}parseFunctionBodyAndFinish(node,type,isMethod=!1){this.match(14)&&(node.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const bodilessType="FunctionDeclaration"===type?"TSDeclareFunction":"ClassMethod"===type||"ClassPrivateMethod"===type?"TSDeclareMethod":void 0;return bodilessType&&!this.match(5)&&this.isLineTerminator()?this.finishNode(node,bodilessType):"TSDeclareFunction"===bodilessType&&this.state.isAmbientContext&&(this.raise(TSErrors.DeclareFunctionHasImplementation,{at:node}),node.declare)?super.parseFunctionBodyAndFinish(node,bodilessType,isMethod):super.parseFunctionBodyAndFinish(node,type,isMethod)}registerFunctionStatementId(node){!node.body&&node.id?this.checkIdentifier(node.id,1024):super.registerFunctionStatementId(node);}tsCheckForInvalidTypeCasts(items){items.forEach((node=>{"TSTypeCastExpression"===(null==node?void 0:node.type)&&this.raise(TSErrors.UnexpectedTypeAnnotation,{at:node.typeAnnotation});}));}toReferencedList(exprList,isInParens){return this.tsCheckForInvalidTypeCasts(exprList),exprList}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){const node=super.parseArrayLike(close,canBePattern,isTuple,refExpressionErrors);return "ArrayExpression"===node.type&&this.tsCheckForInvalidTypeCasts(node.elements),node}parseSubscript(base,startPos,startLoc,noCalls,state){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const nonNullExpression=this.startNodeAt(startPos,startLoc);return nonNullExpression.expression=base,this.finishNode(nonNullExpression,"TSNonNullExpression")}let isOptionalCall=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(noCalls)return state.stop=!0,base;state.optionalChainMember=isOptionalCall=!0,this.next();}if(this.match(47)||this.match(51)){let missingParenErrorLoc;const result=this.tsTryParseAndCatch((()=>{if(!noCalls&&this.atPossibleAsyncArrow(base)){const asyncArrowFn=this.tsTryParseGenericAsyncArrowFunction(startPos,startLoc);if(asyncArrowFn)return asyncArrowFn}const typeArguments=this.tsParseTypeArgumentsInExpression();if(!typeArguments)return;if(isOptionalCall&&!this.match(10))return void(missingParenErrorLoc=this.state.curPosition());if(tokenIsTemplate(this.state.type)){const result=super.parseTaggedTemplateExpression(base,startPos,startLoc,state);return result.typeParameters=typeArguments,result}if(!noCalls&&this.eat(10)){const node=this.startNodeAt(startPos,startLoc);return node.callee=base,node.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(node.arguments),node.typeParameters=typeArguments,state.optionalChainMember&&(node.optional=isOptionalCall),this.finishCallExpression(node,state.optionalChainMember)}const tokenType=this.state.type;if(48===tokenType||52===tokenType||10!==tokenType&&tokenCanStartExpression(tokenType)&&!this.hasPrecedingLineBreak())return;const node=this.startNodeAt(startPos,startLoc);return node.expression=base,node.typeParameters=typeArguments,this.finishNode(node,"TSInstantiationExpression")}));if(missingParenErrorLoc&&this.unexpected(missingParenErrorLoc,10),result)return "TSInstantiationExpression"===result.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(TSErrors.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),result}return super.parseSubscript(base,startPos,startLoc,noCalls,state)}parseNewCallee(node){var _callee$extra;super.parseNewCallee(node);const{callee}=node;"TSInstantiationExpression"!==callee.type||null!=(_callee$extra=callee.extra)&&_callee$extra.parenthesized||(node.typeParameters=callee.typeParameters,node.callee=callee.expression);}parseExprOp(left,leftStartPos,leftStartLoc,minPrec){if(tokenOperatorPrecedence(58)>minPrec&&!this.hasPrecedingLineBreak()&&this.isContextual(93)){const node=this.startNodeAt(leftStartPos,leftStartLoc);node.expression=left;const _const=this.tsTryNextParseConstantContext();return node.typeAnnotation=_const||this.tsNextThenParseType(),this.finishNode(node,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec)}return super.parseExprOp(left,leftStartPos,leftStartLoc,minPrec)}checkReservedWord(word,startLoc,checkKeywords,isBinding){this.state.isAmbientContext||super.checkReservedWord(word,startLoc,checkKeywords,isBinding);}checkDuplicateExports(){}parseImport(node){if(node.importKind="value",tokenIsIdentifier(this.state.type)||this.match(55)||this.match(5)){let ahead=this.lookahead();if(this.isContextual(126)&&12!==ahead.type&&97!==ahead.type&&29!==ahead.type&&(node.importKind="type",this.next(),ahead=this.lookahead()),tokenIsIdentifier(this.state.type)&&29===ahead.type)return this.tsParseImportEqualsDeclaration(node)}const importNode=super.parseImport(node);return "type"===importNode.importKind&&importNode.specifiers.length>1&&"ImportDefaultSpecifier"===importNode.specifiers[0].type&&this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed,{at:importNode}),importNode}parseExport(node){if(this.match(83))return this.next(),this.isContextual(126)&&61!==this.lookaheadCharCode()?(node.importKind="type",this.next()):node.importKind="value",this.tsParseImportEqualsDeclaration(node,!0);if(this.eat(29)){const assign=node;return assign.expression=super.parseExpression(),this.semicolon(),this.finishNode(assign,"TSExportAssignment")}if(this.eatContextual(93)){const decl=node;return this.expectContextual(124),decl.id=this.parseIdentifier(),this.semicolon(),this.finishNode(decl,"TSNamespaceExportDeclaration")}return this.isContextual(126)&&5===this.lookahead().type?(this.next(),node.exportKind="type"):node.exportKind="value",super.parseExport(node)}isAbstractClass(){return this.isContextual(120)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const cls=this.startNode();return this.next(),cls.abstract=!0,this.parseClass(cls,!0,!0)}if(this.match(125)){const result=this.tsParseInterfaceDeclaration(this.startNode());if(result)return result}return super.parseExportDefaultExpression()}parseVarStatement(node,kind,allowMissingInitializer=!1){const{isAmbientContext}=this.state,declaration=super.parseVarStatement(node,kind,allowMissingInitializer||isAmbientContext);if(!isAmbientContext)return declaration;for(const{id,init}of declaration.declarations)init&&("const"!==kind||id.typeAnnotation?this.raise(TSErrors.InitializerNotAllowedInAmbientContext,{at:init}):"StringLiteral"!==init.type&&"BooleanLiteral"!==init.type&&"NumericLiteral"!==init.type&&"BigIntLiteral"!==init.type&&("TemplateLiteral"!==init.type||init.expressions.length>0)&&!isPossiblyLiteralEnum(init)&&this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:init}));return declaration}parseStatementContent(context,topLevel){if(this.match(75)&&this.isLookaheadContextual("enum")){const node=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(node,{const:!0})}if(this.isContextual(122))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(125)){const result=this.tsParseInterfaceDeclaration(this.startNode());if(result)return result}return super.parseStatementContent(context,topLevel)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(member,modifiers){return modifiers.some((modifier=>tsIsAccessModifier(modifier)?member.accessibility===modifier:!!member[modifier]))}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}parseClassMember(classBody,member,state){const modifiers=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({modified:member,allowedModifiers:modifiers,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:TSErrors.InvalidModifierOnTypeParameterPositions});const callParseClassMemberWithIsStatic=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(member,modifiers)&&this.raise(TSErrors.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(classBody,member)):this.parseClassMemberWithIsStatic(classBody,member,state,!!member.static);};member.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic();}parseClassMemberWithIsStatic(classBody,member,state,isStatic){const idx=this.tsTryParseIndexSignature(member);if(idx)return classBody.body.push(idx),member.abstract&&this.raise(TSErrors.IndexSignatureHasAbstract,{at:member}),member.accessibility&&this.raise(TSErrors.IndexSignatureHasAccessibility,{at:member,modifier:member.accessibility}),member.declare&&this.raise(TSErrors.IndexSignatureHasDeclare,{at:member}),void(member.override&&this.raise(TSErrors.IndexSignatureHasOverride,{at:member}));!this.state.inAbstractClass&&member.abstract&&this.raise(TSErrors.NonAbstractClassHasAbstractMethod,{at:member}),member.override&&(state.hadSuperClass||this.raise(TSErrors.OverrideNotInSubClass,{at:member})),super.parseClassMemberWithIsStatic(classBody,member,state,isStatic);}parsePostMemberNameModifiers(methodOrProp){this.eat(17)&&(methodOrProp.optional=!0),methodOrProp.readonly&&this.match(10)&&this.raise(TSErrors.ClassMethodHasReadonly,{at:methodOrProp}),methodOrProp.declare&&this.match(10)&&this.raise(TSErrors.ClassMethodHasDeclare,{at:methodOrProp});}parseExpressionStatement(node,expr){return ("Identifier"===expr.type?this.tsParseExpressionStatement(node,expr):void 0)||super.parseExpressionStatement(node,expr)}shouldParseExportDeclaration(){return !!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(expr,startPos,startLoc,refExpressionErrors);const result=this.tryParse((()=>super.parseConditional(expr,startPos,startLoc)));return result.node?(result.error&&(this.state=result.failState),result.node):(result.error&&super.setOptionalParametersError(refExpressionErrors,result.error),expr)}parseParenItem(node,startPos,startLoc){if(node=super.parseParenItem(node,startPos,startLoc),this.eat(17)&&(node.optional=!0,this.resetEndLocation(node)),this.match(14)){const typeCastNode=this.startNodeAt(startPos,startLoc);return typeCastNode.expression=node,typeCastNode.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(typeCastNode,"TSTypeCastExpression")}return node}parseExportDeclaration(node){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext((()=>this.parseExportDeclaration(node)));const startPos=this.state.start,startLoc=this.state.startLoc,isDeclare=this.eatContextual(121);if(isDeclare&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});const declaration=tokenIsIdentifier(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(node);return declaration?(("TSInterfaceDeclaration"===declaration.type||"TSTypeAliasDeclaration"===declaration.type||isDeclare)&&(node.exportKind="type"),isDeclare&&(this.resetStartLocation(declaration,startPos,startLoc),declaration.declare=!0),declaration):null}parseClassId(node,isStatement,optionalId,bindingType){if((!isStatement||optionalId)&&this.isContextual(110))return;super.parseClassId(node,isStatement,optionalId,node.declare?1024:139);const typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));typeParameters&&(node.typeParameters=typeParameters);}parseClassPropertyAnnotation(node){!node.optional&&this.eat(35)&&(node.definite=!0);const type=this.tsTryParseTypeAnnotation();type&&(node.typeAnnotation=type);}parseClassProperty(node){if(this.parseClassPropertyAnnotation(node),this.state.isAmbientContext&&(!node.readonly||node.typeAnnotation)&&this.match(29)&&this.raise(TSErrors.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),node.abstract&&this.match(29)){const{key}=node;this.raise(TSErrors.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==key.type||node.computed?`[${this.input.slice(key.start,key.end)}]`:key.name});}return super.parseClassProperty(node)}parseClassPrivateProperty(node){return node.abstract&&this.raise(TSErrors.PrivateElementHasAbstract,{at:node}),node.accessibility&&this.raise(TSErrors.PrivateElementHasAccessibility,{at:node,modifier:node.accessibility}),this.parseClassPropertyAnnotation(node),super.parseClassPrivateProperty(node)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&isConstructor&&this.raise(TSErrors.ConstructorHasTypeParameters,{at:typeParameters});const{declare=!1,kind}=method;!declare||"get"!==kind&&"set"!==kind||this.raise(TSErrors.DeclareAccessor,{at:method,kind}),typeParameters&&(method.typeParameters=typeParameters),super.pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper);}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(method.typeParameters=typeParameters),super.pushClassPrivateMethod(classBody,method,isGenerator,isAsync);}declareClassPrivateMethodInScope(node,kind){"TSDeclareMethod"!==node.type&&("MethodDefinition"!==node.type||node.value.body)&&super.declareClassPrivateMethodInScope(node,kind);}parseClassSuper(node){super.parseClassSuper(node),node.superClass&&(this.match(47)||this.match(51))&&(node.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(110)&&(node.implements=this.tsParseHeritageClause("implements"));}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){const typeParameters=this.tsTryParseTypeParameters();return typeParameters&&(prop.typeParameters=typeParameters),super.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors)}parseFunctionParams(node,allowModifiers){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(node.typeParameters=typeParameters),super.parseFunctionParams(node,allowModifiers);}parseVarId(decl,kind){super.parseVarId(decl,kind),"Identifier"===decl.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(decl.definite=!0);const type=this.tsTryParseTypeAnnotation();type&&(decl.id.typeAnnotation=type,this.resetEndLocation(decl.id));}parseAsyncArrowFromCallExpression(node,call){return this.match(14)&&(node.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(node,call)}parseMaybeAssign(refExpressionErrors,afterLeftParse){var _jsx,_jsx2,_typeCast,_jsx3,_typeCast2,_jsx4,_typeCast3;let state,jsx,typeCast,typeParameters;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(state=this.state.clone(),jsx=this.tryParse((()=>super.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!jsx.error)return jsx.node;const{context}=this.state,currentContext=context[context.length-1];currentContext!==types.j_oTag&&currentContext!==types.j_expr||context.pop();}if(!(null!=(_jsx=jsx)&&_jsx.error||this.match(47)))return super.parseMaybeAssign(refExpressionErrors,afterLeftParse);state&&state!==this.state||(state=this.state.clone());const arrow=this.tryParse((abort=>{var _expr$extra,_typeParameters;typeParameters=this.tsParseTypeParameters();const expr=super.parseMaybeAssign(refExpressionErrors,afterLeftParse);return ("ArrowFunctionExpression"!==expr.type||null!=(_expr$extra=expr.extra)&&_expr$extra.parenthesized)&&abort(),0!==(null==(_typeParameters=typeParameters)?void 0:_typeParameters.params.length)&&this.resetStartLocationFromNode(expr,typeParameters),expr.typeParameters=typeParameters,expr}),state);if(!arrow.error&&!arrow.aborted)return typeParameters&&this.reportReservedArrowTypeParam(typeParameters),arrow.node;if(!jsx&&(assert(!this.hasPlugin("jsx")),typeCast=this.tryParse((()=>super.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!typeCast.error))return typeCast.node;if(null!=(_jsx2=jsx)&&_jsx2.node)return this.state=jsx.failState,jsx.node;if(arrow.node)return this.state=arrow.failState,typeParameters&&this.reportReservedArrowTypeParam(typeParameters),arrow.node;if(null!=(_typeCast=typeCast)&&_typeCast.node)return this.state=typeCast.failState,typeCast.node;if(null!=(_jsx3=jsx)&&_jsx3.thrown)throw jsx.error;if(arrow.thrown)throw arrow.error;if(null!=(_typeCast2=typeCast)&&_typeCast2.thrown)throw typeCast.error;throw (null==(_jsx4=jsx)?void 0:_jsx4.error)||arrow.error||(null==(_typeCast3=typeCast)?void 0:_typeCast3.error)}reportReservedArrowTypeParam(node){var _node$extra;1!==node.params.length||null!=(_node$extra=node.extra)&&_node$extra.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(TSErrors.ReservedArrowTypeParam,{at:node});}parseMaybeUnary(refExpressionErrors,sawUnary){return !this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(refExpressionErrors,sawUnary)}parseArrow(node){if(this.match(14)){const result=this.tryParse((abort=>{const returnType=this.tsParseTypeOrTypePredicateAnnotation(14);return !this.canInsertSemicolon()&&this.match(19)||abort(),returnType}));if(result.aborted)return;result.thrown||(result.error&&(this.state=result.failState),node.returnType=result.node);}return super.parseArrow(node)}parseAssignableListItemTypes(param){this.eat(17)&&("Identifier"===param.type||this.state.isAmbientContext||this.state.inType||this.raise(TSErrors.PatternIsOptional,{at:param}),param.optional=!0);const type=this.tsTryParseTypeAnnotation();return type&&(param.typeAnnotation=type),this.resetEndLocation(param),param}isAssignable(node,isBinding){switch(node.type){case"TSTypeCastExpression":return this.isAssignable(node.expression,isBinding);case"TSParameterProperty":return !0;default:return super.isAssignable(node,isBinding)}}toAssignable(node,isLHS=!1){switch(node.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(node,isLHS);break;case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":isLHS?this.expressionScope.recordArrowParemeterBindingError(TSErrors.UnexpectedTypeCastInParameter,{at:node}):this.raise(TSErrors.UnexpectedTypeCastInParameter,{at:node}),this.toAssignable(node.expression,isLHS);break;case"AssignmentExpression":isLHS||"TSTypeCastExpression"!==node.left.type||(node.left=this.typeCastToParameter(node.left));default:super.toAssignable(node,isLHS);}}toAssignableParenthesizedExpression(node,isLHS){switch(node.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(node.expression,isLHS);break;default:super.toAssignable(node,isLHS);}}checkToRestConversion(node,allowPattern){switch(node.type){case"TSAsExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(node.expression,!1);break;default:super.checkToRestConversion(node,allowPattern);}}isValidLVal(type,isUnparenthesizedInAssign,binding){return object={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==binding||!isUnparenthesizedInAssign)&&["expression",!0],TSTypeAssertion:(64!==binding||!isUnparenthesizedInAssign)&&["expression",!0]},key=type,Object.hasOwnProperty.call(object,key)&&object[key]||super.isValidLVal(type,isUnparenthesizedInAssign,binding);var object,key;}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(expr){if(this.match(47)||this.match(51)){const typeArguments=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const call=super.parseMaybeDecoratorArguments(expr);return call.typeParameters=typeArguments,call}this.unexpected(null,10);}return super.parseMaybeDecoratorArguments(expr)}checkCommaAfterRest(close){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===close?(this.next(),!1):super.checkCommaAfterRest(close)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(startPos,startLoc,left){const node=super.parseMaybeDefault(startPos,startLoc,left);return "AssignmentPattern"===node.type&&node.typeAnnotation&&node.right.start<node.typeAnnotation.start&&this.raise(TSErrors.TypeAnnotationAfterAssign,{at:node.typeAnnotation}),node}getTokenFromCode(code){if(this.state.inType){if(62===code)return this.finishOp(48,1);if(60===code)return this.finishOp(47,1)}return super.getTokenFromCode(code)}reScan_lt_gt(){const{type}=this.state;47===type?(this.state.pos-=1,this.readToken_lt()):48===type&&(this.state.pos-=1,this.readToken_gt());}reScan_lt(){const{type}=this.state;return 51===type?(this.state.pos-=2,this.finishOp(47,1),47):type}toAssignableList(exprList,trailingCommaLoc,isLHS){for(let i=0;i<exprList.length;i++){const expr=exprList[i];"TSTypeCastExpression"===(null==expr?void 0:expr.type)&&(exprList[i]=this.typeCastToParameter(expr));}super.toAssignableList(exprList,trailingCommaLoc,isLHS);}typeCastToParameter(node){return node.expression.typeAnnotation=node.typeAnnotation,this.resetEndLocation(node.expression,node.typeAnnotation.loc.end),node.expression}shouldParseArrow(params){return this.match(14)?params.every((expr=>this.isAssignable(expr,!0))):super.shouldParseArrow(params)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(node){if(this.match(47)||this.match(51)){const typeArguments=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));typeArguments&&(node.typeParameters=typeArguments);}return super.jsxParseOpeningElementAfterName(node)}getGetterSetterExpectedParamCount(method){const baseCount=super.getGetterSetterExpectedParamCount(method),firstParam=this.getObjectOrClassMethodParams(method)[0];return firstParam&&this.isThisParam(firstParam)?baseCount+1:baseCount}parseCatchClauseParam(){const param=super.parseCatchClauseParam(),type=this.tsTryParseTypeAnnotation();return type&&(param.typeAnnotation=type,this.resetEndLocation(param)),param}tsInAmbientContext(cb){const oldIsAmbientContext=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return cb()}finally{this.state.isAmbientContext=oldIsAmbientContext;}}parseClass(node,isStatement,optionalId){const oldInAbstractClass=this.state.inAbstractClass;this.state.inAbstractClass=!!node.abstract;try{return super.parseClass(node,isStatement,optionalId)}finally{this.state.inAbstractClass=oldInAbstractClass;}}tsParseAbstractDeclaration(node){if(this.match(80))return node.abstract=!0,this.parseClass(node,!0,!1);if(this.isContextual(125)){if(!this.hasFollowingLineBreak())return node.abstract=!0,this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer,{at:node}),this.tsParseInterfaceDeclaration(node)}else this.unexpected(null,80);}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope){const method=super.parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope);if(method.abstract){if(this.hasPlugin("estree")?!!method.value.body:!!method.body){const{key}=method;this.raise(TSErrors.AbstractMethodHasImplementation,{at:method,methodName:"Identifier"!==key.type||method.computed?`[${this.input.slice(key.start,key.end)}]`:key.name});}}return method}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return !!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly){return !isString&&isMaybeTypeOnly?(this.parseTypeOnlyImportExportSpecifier(node,!1,isInTypeExport),this.finishNode(node,"ExportSpecifier")):(node.exportKind="value",super.parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly))}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly,bindingType){return !importedIsString&&isMaybeTypeOnly?(this.parseTypeOnlyImportExportSpecifier(specifier,!0,isInTypeOnlyImport),this.finishNode(specifier,"ImportSpecifier")):(specifier.importKind="value",super.parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly,isInTypeOnlyImport?4098:4096))}parseTypeOnlyImportExportSpecifier(node,isImport,isInTypeOnlyImportExport){const leftOfAsKey=isImport?"imported":"local",rightOfAsKey=isImport?"local":"exported";let rightOfAs,leftOfAs=node[leftOfAsKey],hasTypeSpecifier=!1,canParseAsKeyword=!0;const loc=leftOfAs.loc.start;if(this.isContextual(93)){const firstAs=this.parseIdentifier();if(this.isContextual(93)){const secondAs=this.parseIdentifier();tokenIsKeywordOrIdentifier(this.state.type)?(hasTypeSpecifier=!0,leftOfAs=firstAs,rightOfAs=isImport?this.parseIdentifier():this.parseModuleExportName(),canParseAsKeyword=!1):(rightOfAs=secondAs,canParseAsKeyword=!1);}else tokenIsKeywordOrIdentifier(this.state.type)?(canParseAsKeyword=!1,rightOfAs=isImport?this.parseIdentifier():this.parseModuleExportName()):(hasTypeSpecifier=!0,leftOfAs=firstAs);}else tokenIsKeywordOrIdentifier(this.state.type)&&(hasTypeSpecifier=!0,isImport?(leftOfAs=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(leftOfAs.name,leftOfAs.loc.start,!0,!0)):leftOfAs=this.parseModuleExportName());hasTypeSpecifier&&isInTypeOnlyImportExport&&this.raise(isImport?TSErrors.TypeModifierIsUsedInTypeImports:TSErrors.TypeModifierIsUsedInTypeExports,{at:loc}),node[leftOfAsKey]=leftOfAs,node[rightOfAsKey]=rightOfAs;node[isImport?"importKind":"exportKind"]=hasTypeSpecifier?"type":"value",canParseAsKeyword&&this.eatContextual(93)&&(node[rightOfAsKey]=isImport?this.parseIdentifier():this.parseModuleExportName()),node[rightOfAsKey]||(node[rightOfAsKey]=cloneIdentifier(node[leftOfAsKey])),isImport&&this.checkIdentifier(node[rightOfAsKey],hasTypeSpecifier?4098:4096);}},v8intrinsic:superClass=>class extends superClass{parseV8Intrinsic(){if(this.match(54)){const v8IntrinsicStartLoc=this.state.startLoc,node=this.startNode();if(this.next(),tokenIsIdentifier(this.state.type)){const name=this.parseIdentifierName(this.state.start),identifier=this.createIdentifier(node,name);if(identifier.type="V8IntrinsicIdentifier",this.match(10))return identifier}this.unexpected(v8IntrinsicStartLoc);}}parseExprAtom(refExpressionErrors){return this.parseV8Intrinsic()||super.parseExprAtom(refExpressionErrors)}},placeholders:superClass=>class extends superClass{parsePlaceholder(expectedNode){if(this.match(140)){const node=this.startNode();return this.next(),this.assertNoSpace(),node.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(140),this.finishPlaceholder(node,expectedNode)}}finishPlaceholder(node,expectedNode){const isFinished=!(!node.expectedNode||"Placeholder"!==node.type);return node.expectedNode=expectedNode,isFinished?node:this.finishNode(node,"Placeholder")}getTokenFromCode(code){return 37===code&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(140,2):super.getTokenFromCode(code)}parseExprAtom(refExpressionErrors){return this.parsePlaceholder("Expression")||super.parseExprAtom(refExpressionErrors)}parseIdentifier(liberal){return this.parsePlaceholder("Identifier")||super.parseIdentifier(liberal)}checkReservedWord(word,startLoc,checkKeywords,isBinding){void 0!==word&&super.checkReservedWord(word,startLoc,checkKeywords,isBinding);}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(type,isParenthesized,binding){return "Placeholder"===type||super.isValidLVal(type,isParenthesized,binding)}toAssignable(node,isLHS){node&&"Placeholder"===node.type&&"Expression"===node.expectedNode?node.expectedNode="Pattern":super.toAssignable(node,isLHS);}isLet(context){if(super.isLet(context))return !0;if(!this.isContextual(99))return !1;if(context)return !1;return 140===this.lookahead().type}verifyBreakContinue(node,isBreak){node.label&&"Placeholder"===node.label.type||super.verifyBreakContinue(node,isBreak);}parseExpressionStatement(node,expr){if("Placeholder"!==expr.type||expr.extra&&expr.extra.parenthesized)return super.parseExpressionStatement(node,expr);if(this.match(14)){const stmt=node;return stmt.label=this.finishPlaceholder(expr,"Identifier"),this.next(),stmt.body=super.parseStatement("label"),this.finishNode(stmt,"LabeledStatement")}return this.semicolon(),node.name=expr.name,this.finishPlaceholder(node,"Statement")}parseBlock(allowDirectives,createNewLexicalScope,afterBlockParse){return this.parsePlaceholder("BlockStatement")||super.parseBlock(allowDirectives,createNewLexicalScope,afterBlockParse)}parseFunctionId(requireId){return this.parsePlaceholder("Identifier")||super.parseFunctionId(requireId)}parseClass(node,isStatement,optionalId){const type=isStatement?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(node);const oldStrict=this.state.strict,placeholder=this.parsePlaceholder("Identifier");if(placeholder){if(!(this.match(81)||this.match(140)||this.match(5))){if(optionalId||!isStatement)return node.id=null,node.body=this.finishPlaceholder(placeholder,"ClassBody"),this.finishNode(node,type);throw this.raise(PlaceholderErrors.ClassNameIsRequired,{at:this.state.startLoc})}node.id=placeholder;}else this.parseClassId(node,isStatement,optionalId);return super.parseClassSuper(node),node.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!node.superClass,oldStrict),this.finishNode(node,type)}parseExport(node){const placeholder=this.parsePlaceholder("Identifier");if(!placeholder)return super.parseExport(node);if(!this.isContextual(97)&&!this.match(12))return node.specifiers=[],node.source=null,node.declaration=this.finishPlaceholder(placeholder,"Declaration"),this.finishNode(node,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const specifier=this.startNode();return specifier.exported=placeholder,node.specifiers=[this.finishNode(specifier,"ExportDefaultSpecifier")],super.parseExport(node)}isExportDefaultSpecifier(){if(this.match(65)){const next=this.nextTokenStart();if(this.isUnparsedContextual(next,"from")&&this.input.startsWith(tokenLabelName(140),this.nextTokenStartSince(next+4)))return !0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(node){return !!(node.specifiers&&node.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(node)}checkExport(node){const{specifiers}=node;null!=specifiers&&specifiers.length&&(node.specifiers=specifiers.filter((node=>"Placeholder"===node.exported.type))),super.checkExport(node),node.specifiers=specifiers;}parseImport(node){const placeholder=this.parsePlaceholder("Identifier");if(!placeholder)return super.parseImport(node);if(node.specifiers=[],!this.isContextual(97)&&!this.match(12))return node.source=this.finishPlaceholder(placeholder,"StringLiteral"),this.semicolon(),this.finishNode(node,"ImportDeclaration");const specifier=this.startNodeAtNode(placeholder);if(specifier.local=placeholder,node.specifiers.push(this.finishNode(specifier,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(node)||this.parseNamedImportSpecifiers(node);}return this.expectContextual(97),node.source=this.parseImportSource(),this.semicolon(),this.finishNode(node,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(PlaceholderErrors.UnexpectedSpace,{at:this.state.lastTokEndLoc});}}},mixinPluginNames=Object.keys(mixinPlugins),defaultOptions={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};const unwrapParenthesizedExpression=node=>"ParenthesizedExpression"===node.type?unwrapParenthesizedExpression(node.expression):node;const loopLabel={kind:"loop"},switchLabel={kind:"switch"},loneSurrogate=/[\uD800-\uDFFF]/u,keywordRelationalOperator=/in(?:stanceof)?/y;class Parser extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1;}hasPlugin(pluginConfig){if("string"==typeof pluginConfig)return this.plugins.has(pluginConfig);{const[pluginName,pluginOptions]=pluginConfig;if(!this.hasPlugin(pluginName))return !1;const actualOptions=this.plugins.get(pluginName);for(const key of Object.keys(pluginOptions))if((null==actualOptions?void 0:actualOptions[key])!==pluginOptions[key])return !1;return !0}}getPluginOption(plugin,name){var _this$plugins$get;return null==(_this$plugins$get=this.plugins.get(plugin))?void 0:_this$plugins$get[name]}}{addComment(comment){this.filename&&(comment.loc.filename=this.filename),this.state.comments.push(comment);}processComment(node){const{commentStack}=this.state,commentStackLength=commentStack.length;if(0===commentStackLength)return;let i=commentStackLength-1;const lastCommentWS=commentStack[i];lastCommentWS.start===node.end&&(lastCommentWS.leadingNode=node,i--);const{start:nodeStart}=node;for(;i>=0;i--){const commentWS=commentStack[i],commentEnd=commentWS.end;if(!(commentEnd>nodeStart)){commentEnd===nodeStart&&(commentWS.trailingNode=node);break}commentWS.containingNode=node,this.finalizeComment(commentWS),commentStack.splice(i,1);}}finalizeComment(commentWS){const{comments}=commentWS;if(null!==commentWS.leadingNode||null!==commentWS.trailingNode)null!==commentWS.leadingNode&&setTrailingComments(commentWS.leadingNode,comments),null!==commentWS.trailingNode&&function(node,comments){void 0===node.leadingComments?node.leadingComments=comments:node.leadingComments.unshift(...comments);}(commentWS.trailingNode,comments);else {const{containingNode:node,start:commentStart}=commentWS;if(44===this.input.charCodeAt(commentStart-1))switch(node.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(node,node.properties,commentWS);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(node,node.arguments,commentWS);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(node,node.params,commentWS);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(node,node.elements,commentWS);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(node,node.specifiers,commentWS);break;default:setInnerComments(node,comments);}else setInnerComments(node,comments);}}finalizeRemainingComments(){const{commentStack}=this.state;for(let i=commentStack.length-1;i>=0;i--)this.finalizeComment(commentStack[i]);this.state.commentStack=[];}resetPreviousNodeTrailingComments(node){const{commentStack}=this.state,{length}=commentStack;if(0===length)return;const commentWS=commentStack[length-1];commentWS.leadingNode===node&&(commentWS.leadingNode=null);}takeSurroundingComments(node,start,end){const{commentStack}=this.state,commentStackLength=commentStack.length;if(0===commentStackLength)return;let i=commentStackLength-1;for(;i>=0;i--){const commentWS=commentStack[i],commentEnd=commentWS.end;if(commentWS.start===end)commentWS.leadingNode=node;else if(commentEnd===start)commentWS.trailingNode=node;else if(commentEnd<start)break}}}{constructor(options,input){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(pos,lineStart,curLine,radix)=>!!this.options.errorRecovery&&(this.raise(Errors.InvalidDigit,{at:buildPosition(pos,lineStart,curLine),radix}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(Errors.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Errors.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Errors.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Errors.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(pos,lineStart,curLine)=>{this.recordStrictModeErrors(Errors.StrictNumericEscape,{at:buildPosition(pos,lineStart,curLine)});},unterminated:(pos,lineStart,curLine)=>{throw this.raise(Errors.UnterminatedString,{at:buildPosition(pos-1,lineStart,curLine)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Errors.StrictNumericEscape),unterminated:(pos,lineStart,curLine)=>{throw this.raise(Errors.UnterminatedTemplate,{at:buildPosition(pos,lineStart,curLine)})}}),this.state=new State,this.state.init(options),this.input=input,this.length=input.length,this.isLookahead=!1;}pushToken(token){this.tokens.length=this.state.tokensLength,this.tokens.push(token),++this.state.tokensLength;}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Token(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken();}eat(type){return !!this.match(type)&&(this.next(),!0)}match(type){return this.state.type===type}createLookaheadState(state){return {pos:state.pos,value:null,type:state.type,start:state.start,end:state.end,context:[this.curContext()],inType:state.inType,startLoc:state.startLoc,lastTokEndLoc:state.lastTokEndLoc,curLine:state.curLine,lineStart:state.lineStart,curPosition:state.curPosition}}lookahead(){const old=this.state;this.state=this.createLookaheadState(old),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const curr=this.state;return this.state=old,curr}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(pos){return skipWhiteSpace.lastIndex=pos,skipWhiteSpace.test(this.input)?skipWhiteSpace.lastIndex:pos}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(pos){let cp=this.input.charCodeAt(pos);if(55296==(64512&cp)&&++pos<this.input.length){const trail=this.input.charCodeAt(pos);56320==(64512&trail)&&(cp=65536+((1023&cp)<<10)+(1023&trail));}return cp}setStrict(strict){this.state.strict=strict,strict&&(this.state.strictErrors.forEach((([toParseError,at])=>this.raise(toParseError,{at}))),this.state.strictErrors.clear());}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(135):this.getTokenFromCode(this.codePointAtPos(this.state.pos));}skipBlockComment(){let startLoc;this.isLookahead||(startLoc=this.state.curPosition());const start=this.state.pos,end=this.input.indexOf("*/",start+2);if(-1===end)throw this.raise(Errors.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=end+2,lineBreakG.lastIndex=start+2;lineBreakG.test(this.input)&&lineBreakG.lastIndex<=end;)++this.state.curLine,this.state.lineStart=lineBreakG.lastIndex;if(this.isLookahead)return;const comment={type:"CommentBlock",value:this.input.slice(start+2,end),start,end:end+2,loc:new SourceLocation(startLoc,this.state.curPosition())};return this.options.tokens&&this.pushToken(comment),comment}skipLineComment(startSkip){const start=this.state.pos;let startLoc;this.isLookahead||(startLoc=this.state.curPosition());let ch=this.input.charCodeAt(this.state.pos+=startSkip);if(this.state.pos<this.length)for(;!isNewLine(ch)&&++this.state.pos<this.length;)ch=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const end=this.state.pos,comment={type:"CommentLine",value:this.input.slice(start+startSkip,end),start,end,loc:new SourceLocation(startLoc,this.state.curPosition())};return this.options.tokens&&this.pushToken(comment),comment}skipSpace(){const spaceStart=this.state.pos,comments=[];loop:for(;this.state.pos<this.length;){const ch=this.input.charCodeAt(this.state.pos);switch(ch){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const comment=this.skipBlockComment();void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));break}case 47:{const comment=this.skipLineComment(2);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));break}default:break loop}break;default:if(isWhitespace(ch))++this.state.pos;else if(45!==ch||this.inModule){if(60!==ch||this.inModule)break loop;{const pos=this.state.pos;if(33!==this.input.charCodeAt(pos+1)||45!==this.input.charCodeAt(pos+2)||45!==this.input.charCodeAt(pos+3))break loop;{const comment=this.skipLineComment(4);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));}}}else {const pos=this.state.pos;if(45!==this.input.charCodeAt(pos+1)||62!==this.input.charCodeAt(pos+2)||!(0===spaceStart||this.state.lineStart>spaceStart))break loop;{const comment=this.skipLineComment(3);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment));}}}}if(comments.length>0){const commentWhitespace={start:spaceStart,end:this.state.pos,comments,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(commentWhitespace);}}finishToken(type,val){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const prevType=this.state.type;this.state.type=type,this.state.value=val,this.isLookahead||this.updateContext(prevType);}replaceToken(type){this.state.type=type,this.updateContext();}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const nextPos=this.state.pos+1,next=this.codePointAtPos(nextPos);if(next>=48&&next<=57)throw this.raise(Errors.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===next||91===next&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===next?Errors.RecordExpressionHashIncorrectStartSyntaxType:Errors.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===next?this.finishToken(7):this.finishToken(1);}else isIdentifierStart(next)?(++this.state.pos,this.finishToken(134,this.readWord1(next))):92===next?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(27,1);}readToken_dot(){const next=this.input.charCodeAt(this.state.pos+1);next>=48&&next<=57?this.readNumber(!0):46===next&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16));}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1);}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return !1;let ch=this.input.charCodeAt(this.state.pos+1);if(33!==ch)return !1;const start=this.state.pos;for(this.state.pos+=1;!isNewLine(ch)&&++this.state.pos<this.length;)ch=this.input.charCodeAt(this.state.pos);const value=this.input.slice(start+2,this.state.pos);return this.finishToken(28,value),!0}readToken_mult_modulo(code){let type=42===code?55:54,width=1,next=this.input.charCodeAt(this.state.pos+1);42===code&&42===next&&(width++,next=this.input.charCodeAt(this.state.pos+2),type=57),61!==next||this.state.inType||(width++,type=37===code?33:30),this.finishOp(type,width);}readToken_pipe_amp(code){const next=this.input.charCodeAt(this.state.pos+1);if(next!==code){if(124===code){if(62===next)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===next){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===next){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}61!==next?this.finishOp(124===code?43:45,1):this.finishOp(30,2);}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===code?41:42,2);}readToken_caret(){const next=this.input.charCodeAt(this.state.pos+1);if(61!==next||this.state.inType)if(94===next&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);if(94===this.input.codePointAt(this.state.pos))throw this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2);}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1);}readToken_plus_min(code){const next=this.input.charCodeAt(this.state.pos+1);next!==code?61===next?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2);}readToken_lt(){const{pos}=this.state,next=this.input.charCodeAt(pos+1);if(60===next)return 61===this.input.charCodeAt(pos+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==next?this.finishOp(47,1):this.finishOp(49,2);}readToken_gt(){const{pos}=this.state,next=this.input.charCodeAt(pos+1);if(62===next){const size=62===this.input.charCodeAt(pos+2)?3:2;return 61===this.input.charCodeAt(pos+size)?void this.finishOp(30,size+1):void this.finishOp(52,size)}61!==next?this.finishOp(48,1):this.finishOp(49,2);}readToken_eq_excl(code){const next=this.input.charCodeAt(this.state.pos+1);if(61!==next)return 61===code&&62===next?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===code?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);}readToken_question(){const next=this.input.charCodeAt(this.state.pos+1),next2=this.input.charCodeAt(this.state.pos+2);63===next?61===next2?this.finishOp(30,3):this.finishOp(40,2):46!==next||next2>=48&&next2<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18));}getTokenFromCode(code){switch(code){case 46:return void this.readToken_dot();case 40:return ++this.state.pos,void this.finishToken(10);case 41:return ++this.state.pos,void this.finishToken(11);case 59:return ++this.state.pos,void this.finishToken(13);case 44:return ++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2);}else ++this.state.pos,this.finishToken(0);return;case 93:return ++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Errors.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6);}else ++this.state.pos,this.finishToken(5);return;case 125:return ++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const next=this.input.charCodeAt(this.state.pos+1);if(120===next||88===next)return void this.readRadixNumber(16);if(111===next||79===next)return void this.readRadixNumber(8);if(98===next||66===next)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(code);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(code);case 124:case 38:return void this.readToken_pipe_amp(code);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(code);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(code);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(code))return void this.readWord(code)}throw this.raise(Errors.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(code)})}finishOp(type,size){const str=this.input.slice(this.state.pos,this.state.pos+size);this.state.pos+=size,this.finishToken(type,str);}readRegexp(){const startLoc=this.state.startLoc,start=this.state.start+1;let escaped,inClass,{pos}=this.state;for(;;++pos){if(pos>=this.length)throw this.raise(Errors.UnterminatedRegExp,{at:createPositionWithColumnOffset(startLoc,1)});const ch=this.input.charCodeAt(pos);if(isNewLine(ch))throw this.raise(Errors.UnterminatedRegExp,{at:createPositionWithColumnOffset(startLoc,1)});if(escaped)escaped=!1;else {if(91===ch)inClass=!0;else if(93===ch&&inClass)inClass=!1;else if(47===ch&&!inClass)break;escaped=92===ch;}}const content=this.input.slice(start,pos);++pos;let mods="";const nextPos=()=>createPositionWithColumnOffset(startLoc,pos+2-start);for(;pos<this.length;){const cp=this.codePointAtPos(pos),char=String.fromCharCode(cp);if(VALID_REGEX_FLAGS.has(cp))118===cp?(this.expectPlugin("regexpUnicodeSets",nextPos()),mods.includes("u")&&this.raise(Errors.IncompatibleRegExpUVFlags,{at:nextPos()})):117===cp&&mods.includes("v")&&this.raise(Errors.IncompatibleRegExpUVFlags,{at:nextPos()}),mods.includes(char)&&this.raise(Errors.DuplicateRegExpFlags,{at:nextPos()});else {if(!isIdentifierChar(cp)&&92!==cp)break;this.raise(Errors.MalformedRegExpFlags,{at:nextPos()});}++pos,mods+=char;}this.state.pos=pos,this.finishToken(133,{pattern:content,flags:mods});}readInt(radix,len,forceLen=!1,allowNumSeparator=!0){const{n,pos}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,radix,len,forceLen,allowNumSeparator,this.errorHandlers_readInt);return this.state.pos=pos,n}readRadixNumber(radix){const startLoc=this.state.curPosition();let isBigInt=!1;this.state.pos+=2;const val=this.readInt(radix);null==val&&this.raise(Errors.InvalidDigit,{at:createPositionWithColumnOffset(startLoc,2),radix});const next=this.input.charCodeAt(this.state.pos);if(110===next)++this.state.pos,isBigInt=!0;else if(109===next)throw this.raise(Errors.InvalidDecimal,{at:startLoc});if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(Errors.NumberIdentifier,{at:this.state.curPosition()});if(isBigInt){const str=this.input.slice(startLoc.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(131,str);}else this.finishToken(130,val);}readNumber(startsWithDot){const start=this.state.pos,startLoc=this.state.curPosition();let isFloat=!1,isBigInt=!1,isDecimal=!1,hasExponent=!1,isOctal=!1;startsWithDot||null!==this.readInt(10)||this.raise(Errors.InvalidNumber,{at:this.state.curPosition()});const hasLeadingZero=this.state.pos-start>=2&&48===this.input.charCodeAt(start);if(hasLeadingZero){const integer=this.input.slice(start,this.state.pos);if(this.recordStrictModeErrors(Errors.StrictOctalLiteral,{at:startLoc}),!this.state.strict){const underscorePos=integer.indexOf("_");underscorePos>0&&this.raise(Errors.ZeroDigitNumericSeparator,{at:createPositionWithColumnOffset(startLoc,underscorePos)});}isOctal=hasLeadingZero&&!/[89]/.test(integer);}let next=this.input.charCodeAt(this.state.pos);if(46!==next||isOctal||(++this.state.pos,this.readInt(10),isFloat=!0,next=this.input.charCodeAt(this.state.pos)),69!==next&&101!==next||isOctal||(next=this.input.charCodeAt(++this.state.pos),43!==next&&45!==next||++this.state.pos,null===this.readInt(10)&&this.raise(Errors.InvalidOrMissingExponent,{at:startLoc}),isFloat=!0,hasExponent=!0,next=this.input.charCodeAt(this.state.pos)),110===next&&((isFloat||hasLeadingZero)&&this.raise(Errors.InvalidBigIntLiteral,{at:startLoc}),++this.state.pos,isBigInt=!0),109===next&&(this.expectPlugin("decimal",this.state.curPosition()),(hasExponent||hasLeadingZero)&&this.raise(Errors.InvalidDecimal,{at:startLoc}),++this.state.pos,isDecimal=!0),isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(Errors.NumberIdentifier,{at:this.state.curPosition()});const str=this.input.slice(start,this.state.pos).replace(/[_mn]/g,"");if(isBigInt)return void this.finishToken(131,str);if(isDecimal)return void this.finishToken(132,str);const val=isOctal?parseInt(str,8):parseFloat(str);this.finishToken(130,val);}readCodePoint(throwOnInvalid){const{code,pos}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,throwOnInvalid,this.errorHandlers_readCodePoint);return this.state.pos=pos,code}readString(quote){const{str,pos,curLine,lineStart}=readStringContents(34===quote?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=pos+1,this.state.lineStart=lineStart,this.state.curLine=curLine,this.finishToken(129,str);}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken();}readTemplateToken(){const opening=this.input[this.state.pos],{str,containsInvalid,pos,curLine,lineStart}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=pos+1,this.state.lineStart=lineStart,this.state.curLine=curLine,96===this.input.codePointAt(pos)?this.finishToken(24,containsInvalid?null:opening+str+"`"):(this.state.pos++,this.finishToken(25,containsInvalid?null:opening+str+"${"));}recordStrictModeErrors(toParseError,{at}){const index=at.index;this.state.strict&&!this.state.strictErrors.has(index)?this.raise(toParseError,{at}):this.state.strictErrors.set(index,[toParseError,at]);}readWord1(firstCode){this.state.containsEsc=!1;let word="";const start=this.state.pos;let chunkStart=this.state.pos;for(void 0!==firstCode&&(this.state.pos+=firstCode<=65535?1:2);this.state.pos<this.length;){const ch=this.codePointAtPos(this.state.pos);if(isIdentifierChar(ch))this.state.pos+=ch<=65535?1:2;else {if(92!==ch)break;{this.state.containsEsc=!0,word+=this.input.slice(chunkStart,this.state.pos);const escStart=this.state.curPosition(),identifierCheck=this.state.pos===start?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(Errors.MissingUnicodeEscape,{at:this.state.curPosition()}),chunkStart=this.state.pos-1;continue}++this.state.pos;const esc=this.readCodePoint(!0);null!==esc&&(identifierCheck(esc)||this.raise(Errors.EscapedCharNotAnIdentifier,{at:escStart}),word+=String.fromCodePoint(esc)),chunkStart=this.state.pos;}}}return word+this.input.slice(chunkStart,this.state.pos)}readWord(firstCode){const word=this.readWord1(firstCode),type=keywords$1.get(word);void 0!==type?this.finishToken(type,tokenLabelName(type)):this.finishToken(128,word);}checkKeywordEscapes(){const{type}=this.state;tokenIsKeyword(type)&&this.state.containsEsc&&this.raise(Errors.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:tokenLabelName(type)});}raise(toParseError,raiseProperties){const{at}=raiseProperties,details=_objectWithoutPropertiesLoose(raiseProperties,_excluded),error=toParseError({loc:at instanceof Position?at:at.loc.start,details});if(!this.options.errorRecovery)throw error;return this.isLookahead||this.state.errors.push(error),error}raiseOverwrite(toParseError,raiseProperties){const{at}=raiseProperties,details=_objectWithoutPropertiesLoose(raiseProperties,_excluded2),loc=at instanceof Position?at:at.loc.start,pos=loc.index,errors=this.state.errors;for(let i=errors.length-1;i>=0;i--){const error=errors[i];if(error.loc.index===pos)return errors[i]=toParseError({loc,details});if(error.loc.index<pos)break}return this.raise(toParseError,raiseProperties)}updateContext(prevType){}unexpected(loc,type){throw this.raise(Errors.UnexpectedToken,{expected:type?tokenLabelName(type):null,at:null!=loc?loc:this.state.startLoc})}expectPlugin(pluginName,loc){if(this.hasPlugin(pluginName))return !0;throw this.raise(Errors.MissingPlugin,{at:null!=loc?loc:this.state.startLoc,missingPlugin:[pluginName]})}expectOnePlugin(pluginNames){if(!pluginNames.some((name=>this.hasPlugin(name))))throw this.raise(Errors.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:pluginNames})}errorBuilder(error){return (pos,lineStart,curLine)=>{this.raise(error,{at:buildPosition(pos,lineStart,curLine)});}}}{addExtra(node,key,value,enumerable=!0){if(!node)return;const extra=node.extra=node.extra||{};enumerable?extra[key]=value:Object.defineProperty(extra,key,{enumerable,value});}isContextual(token){return this.state.type===token&&!this.state.containsEsc}isUnparsedContextual(nameStart,name){const nameEnd=nameStart+name.length;if(this.input.slice(nameStart,nameEnd)===name){const nextCh=this.input.charCodeAt(nameEnd);return !(isIdentifierChar(nextCh)||55296==(64512&nextCh))}return !1}isLookaheadContextual(name){const next=this.nextTokenStart();return this.isUnparsedContextual(next,name)}eatContextual(token){return !!this.isContextual(token)&&(this.next(),!0)}expectContextual(token,toParseError){if(!this.eatContextual(token)){if(null!=toParseError)throw this.raise(toParseError,{at:this.state.startLoc});throw this.unexpected(null,token)}}canInsertSemicolon(){return this.match(135)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return lineBreak.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return skipWhiteSpaceToLineBreak.lastIndex=this.state.end,skipWhiteSpaceToLineBreak.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(allowAsi=!0){(allowAsi?this.isLineTerminator():this.eat(13))||this.raise(Errors.MissingSemicolon,{at:this.state.lastTokEndLoc});}expect(type,loc){this.eat(type)||this.unexpected(loc,type);}tryParse(fn,oldState=this.state.clone()){const abortSignal={node:null};try{const node=fn(((node=null)=>{throw abortSignal.node=node,abortSignal}));if(this.state.errors.length>oldState.errors.length){const failState=this.state;return this.state=oldState,this.state.tokensLength=failState.tokensLength,{node,error:failState.errors[oldState.errors.length],thrown:!1,aborted:!1,failState}}return {node,error:null,thrown:!1,aborted:!1,failState:null}}catch(error){const failState=this.state;if(this.state=oldState,error instanceof SyntaxError)return {node:null,error,thrown:!0,aborted:!1,failState};if(error===abortSignal)return {node:abortSignal.node,error:null,thrown:!1,aborted:!0,failState};throw error}}checkExpressionErrors(refExpressionErrors,andThrow){if(!refExpressionErrors)return !1;const{shorthandAssignLoc,doubleProtoLoc,privateKeyLoc,optionalParametersLoc}=refExpressionErrors;if(!andThrow)return !!(shorthandAssignLoc||doubleProtoLoc||optionalParametersLoc||privateKeyLoc);null!=shorthandAssignLoc&&this.raise(Errors.InvalidCoverInitializedName,{at:shorthandAssignLoc}),null!=doubleProtoLoc&&this.raise(Errors.DuplicateProto,{at:doubleProtoLoc}),null!=privateKeyLoc&&this.raise(Errors.UnexpectedPrivateField,{at:privateKeyLoc}),null!=optionalParametersLoc&&this.unexpected(optionalParametersLoc);}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(node){return "PrivateName"===node.type}getPrivateNameSV(node){return node.id.name}hasPropertyAsPrivateName(node){return ("MemberExpression"===node.type||"OptionalMemberExpression"===node.type)&&this.isPrivateName(node.property)}isOptionalChain(node){return "OptionalMemberExpression"===node.type||"OptionalCallExpression"===node.type}isObjectProperty(node){return "ObjectProperty"===node.type}isObjectMethod(node){return "ObjectMethod"===node.type}initializeScopes(inModule="module"===this.options.sourceType){const oldLabels=this.state.labels;this.state.labels=[];const oldExportedIdentifiers=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const oldInModule=this.inModule;this.inModule=inModule;const oldScope=this.scope,ScopeHandler=this.getScopeHandler();this.scope=new ScopeHandler(this,inModule);const oldProdParam=this.prodParam;this.prodParam=new ProductionParameterHandler;const oldClassScope=this.classScope;this.classScope=new ClassScopeHandler(this);const oldExpressionScope=this.expressionScope;return this.expressionScope=new ExpressionScopeHandler(this),()=>{this.state.labels=oldLabels,this.exportedIdentifiers=oldExportedIdentifiers,this.inModule=oldInModule,this.scope=oldScope,this.prodParam=oldProdParam,this.classScope=oldClassScope,this.expressionScope=oldExpressionScope;}}enterInitialScopes(){let paramFlags=0;this.inModule&&(paramFlags|=2),this.scope.enter(1),this.prodParam.enter(paramFlags);}checkDestructuringPrivate(refExpressionErrors){const{privateKeyLoc}=refExpressionErrors;null!==privateKeyLoc&&this.expectPlugin("destructuringPrivate",privateKeyLoc);}}{startNode(){return new Node(this,this.state.start,this.state.startLoc)}startNodeAt(pos,loc){return new Node(this,pos,loc)}startNodeAtNode(type){return this.startNodeAt(type.start,type.loc.start)}finishNode(node,type){return this.finishNodeAt(node,type,this.state.lastTokEndLoc)}finishNodeAt(node,type,endLoc){return node.type=type,node.end=endLoc.index,node.loc.end=endLoc,this.options.ranges&&(node.range[1]=endLoc.index),this.options.attachComment&&this.processComment(node),node}resetStartLocation(node,start,startLoc){node.start=start,node.loc.start=startLoc,this.options.ranges&&(node.range[0]=start);}resetEndLocation(node,endLoc=this.state.lastTokEndLoc){node.end=endLoc.index,node.loc.end=endLoc,this.options.ranges&&(node.range[1]=endLoc.index);}resetStartLocationFromNode(node,locationNode){this.resetStartLocation(node,locationNode.start,locationNode.loc.start);}}{toAssignable(node,isLHS=!1){var _node$extra,_node$extra3;let parenthesized;switch(("ParenthesizedExpression"===node.type||null!=(_node$extra=node.extra)&&_node$extra.parenthesized)&&(parenthesized=unwrapParenthesizedExpression(node),isLHS?"Identifier"===parenthesized.type?this.expressionScope.recordArrowParemeterBindingError(Errors.InvalidParenthesizedAssignment,{at:node}):"MemberExpression"!==parenthesized.type&&this.raise(Errors.InvalidParenthesizedAssignment,{at:node}):this.raise(Errors.InvalidParenthesizedAssignment,{at:node})),node.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern";for(let i=0,length=node.properties.length,last=length-1;i<length;i++){var _node$extra2;const prop=node.properties[i],isLast=i===last;this.toAssignableObjectExpressionProp(prop,isLast,isLHS),isLast&&"RestElement"===prop.type&&null!=(_node$extra2=node.extra)&&_node$extra2.trailingCommaLoc&&this.raise(Errors.RestTrailingComma,{at:node.extra.trailingCommaLoc});}break;case"ObjectProperty":{const{key,value}=node;this.isPrivateName(key)&&this.classScope.usePrivateName(this.getPrivateNameSV(key),key.loc.start),this.toAssignable(value,isLHS);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":node.type="ArrayPattern",this.toAssignableList(node.elements,null==(_node$extra3=node.extra)?void 0:_node$extra3.trailingCommaLoc,isLHS);break;case"AssignmentExpression":"="!==node.operator&&this.raise(Errors.MissingEqInAssignment,{at:node.left.loc.end}),node.type="AssignmentPattern",delete node.operator,this.toAssignable(node.left,isLHS);break;case"ParenthesizedExpression":this.toAssignable(parenthesized,isLHS);}}toAssignableObjectExpressionProp(prop,isLast,isLHS){if("ObjectMethod"===prop.type)this.raise("get"===prop.kind||"set"===prop.kind?Errors.PatternHasAccessor:Errors.PatternHasMethod,{at:prop.key});else if("SpreadElement"===prop.type){prop.type="RestElement";const arg=prop.argument;this.checkToRestConversion(arg,!1),this.toAssignable(arg,isLHS),isLast||this.raise(Errors.RestTrailingComma,{at:prop});}else this.toAssignable(prop,isLHS);}toAssignableList(exprList,trailingCommaLoc,isLHS){const end=exprList.length-1;for(let i=0;i<=end;i++){const elt=exprList[i];if(elt){if("SpreadElement"===elt.type){elt.type="RestElement";const arg=elt.argument;this.checkToRestConversion(arg,!0),this.toAssignable(arg,isLHS);}else this.toAssignable(elt,isLHS);"RestElement"===elt.type&&(i<end?this.raise(Errors.RestTrailingComma,{at:elt}):trailingCommaLoc&&this.raise(Errors.RestTrailingComma,{at:trailingCommaLoc}));}}}isAssignable(node,isBinding){switch(node.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return !0;case"ObjectExpression":{const last=node.properties.length-1;return node.properties.every(((prop,i)=>"ObjectMethod"!==prop.type&&(i===last||"SpreadElement"!==prop.type)&&this.isAssignable(prop)))}case"ObjectProperty":return this.isAssignable(node.value);case"SpreadElement":return this.isAssignable(node.argument);case"ArrayExpression":return node.elements.every((element=>null===element||this.isAssignable(element)));case"AssignmentExpression":return "="===node.operator;case"ParenthesizedExpression":return this.isAssignable(node.expression);case"MemberExpression":case"OptionalMemberExpression":return !isBinding;default:return !1}}toReferencedList(exprList,isParenthesizedExpr){return exprList}toReferencedListDeep(exprList,isParenthesizedExpr){this.toReferencedList(exprList,isParenthesizedExpr);for(const expr of exprList)"ArrayExpression"===(null==expr?void 0:expr.type)&&this.toReferencedListDeep(expr.elements);}parseSpread(refExpressionErrors){const node=this.startNode();return this.next(),node.argument=this.parseMaybeAssignAllowIn(refExpressionErrors,void 0),this.finishNode(node,"SpreadElement")}parseRestBinding(){const node=this.startNode();return this.next(),node.argument=this.parseBindingAtom(),this.finishNode(node,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const node=this.startNode();return this.next(),node.elements=this.parseBindingList(3,93,!0),this.finishNode(node,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(close,closeCharCode,allowEmpty,allowModifiers){const elts=[];let first=!0;for(;!this.eat(close);)if(first?first=!1:this.expect(12),allowEmpty&&this.match(12))elts.push(null);else {if(this.eat(close))break;if(this.match(21)){if(elts.push(this.parseAssignableListItemTypes(this.parseRestBinding())),!this.checkCommaAfterRest(closeCharCode)){this.expect(close);break}}else {const decorators=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(Errors.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)decorators.push(this.parseDecorator());elts.push(this.parseAssignableListItem(allowModifiers,decorators));}}return elts}parseBindingRestProperty(prop){return this.next(),prop.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(prop,"RestElement")}parseBindingProperty(){const prop=this.startNode(),{type,start:startPos,startLoc}=this.state;return 21===type?this.parseBindingRestProperty(prop):(134===type?(this.expectPlugin("destructuringPrivate",startLoc),this.classScope.usePrivateName(this.state.value,startLoc),prop.key=this.parsePrivateName()):this.parsePropertyName(prop),prop.method=!1,this.parseObjPropValue(prop,startPos,startLoc,!1,!1,!0,!1))}parseAssignableListItem(allowModifiers,decorators){const left=this.parseMaybeDefault();this.parseAssignableListItemTypes(left);const elt=this.parseMaybeDefault(left.start,left.loc.start,left);return decorators.length&&(left.decorators=decorators),elt}parseAssignableListItemTypes(param){return param}parseMaybeDefault(startPos,startLoc,left){var _startLoc,_startPos,_left;if(startLoc=null!=(_startLoc=startLoc)?_startLoc:this.state.startLoc,startPos=null!=(_startPos=startPos)?_startPos:this.state.start,left=null!=(_left=left)?_left:this.parseBindingAtom(),!this.eat(29))return left;const node=this.startNodeAt(startPos,startLoc);return node.left=left,node.right=this.parseMaybeAssignAllowIn(),this.finishNode(node,"AssignmentPattern")}isValidLVal(type,isUnparenthesizedInAssign,binding){return object={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},key=type,Object.hasOwnProperty.call(object,key)&&object[key];var object,key;}checkLVal(expression,{in:ancestor,binding=64,checkClashes=!1,strictModeChanged=!1,allowingSloppyLetBinding=!(8&binding),hasParenthesizedAncestor=!1}){var _expression$extra;const type=expression.type;if(this.isObjectMethod(expression))return;if("MemberExpression"===type)return void(64!==binding&&this.raise(Errors.InvalidPropertyBindingPattern,{at:expression}));if("Identifier"===expression.type){this.checkIdentifier(expression,binding,strictModeChanged,allowingSloppyLetBinding);const{name}=expression;return void(checkClashes&&(checkClashes.has(name)?this.raise(Errors.ParamDupe,{at:expression}):checkClashes.add(name)))}const validity=this.isValidLVal(expression.type,!(hasParenthesizedAncestor||null!=(_expression$extra=expression.extra)&&_expression$extra.parenthesized)&&"AssignmentExpression"===ancestor.type,binding);if(!0===validity)return;if(!1===validity){const ParseErrorClass=64===binding?Errors.InvalidLhs:Errors.InvalidLhsBinding;return void this.raise(ParseErrorClass,{at:expression,ancestor:"UpdateExpression"===ancestor.type?{type:"UpdateExpression",prefix:ancestor.prefix}:{type:ancestor.type}})}const[key,isParenthesizedExpression]=Array.isArray(validity)?validity:[validity,"ParenthesizedExpression"===type],nextAncestor="ArrayPattern"===expression.type||"ObjectPattern"===expression.type||"ParenthesizedExpression"===expression.type?expression:ancestor;for(const child of [].concat(expression[key]))child&&this.checkLVal(child,{in:nextAncestor,binding,checkClashes,allowingSloppyLetBinding,strictModeChanged,hasParenthesizedAncestor:isParenthesizedExpression});}checkIdentifier(at,bindingType,strictModeChanged=!1,allowLetBinding=!(8&bindingType)){this.state.strict&&(strictModeChanged?isStrictBindReservedWord(at.name,this.inModule):isStrictBindOnlyReservedWord(at.name))&&(64===bindingType?this.raise(Errors.StrictEvalArguments,{at,referenceName:at.name}):this.raise(Errors.StrictEvalArgumentsBinding,{at,bindingName:at.name})),allowLetBinding||"let"!==at.name||this.raise(Errors.LetInLexicalBinding,{at}),64&bindingType||this.declareNameFromIdentifier(at,bindingType);}declareNameFromIdentifier(identifier,binding){this.scope.declareName(identifier.name,binding,identifier.loc.start);}checkToRestConversion(node,allowPattern){switch(node.type){case"ParenthesizedExpression":this.checkToRestConversion(node.expression,allowPattern);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(allowPattern)break;default:this.raise(Errors.InvalidRestAssignmentPattern,{at:node});}}checkCommaAfterRest(close){return !!this.match(12)&&(this.raise(this.lookaheadCharCode()===close?Errors.RestTrailingComma:Errors.ElementAfterRest,{at:this.state.startLoc}),!0)}}{checkProto(prop,isRecord,protoRef,refExpressionErrors){if("SpreadElement"===prop.type||this.isObjectMethod(prop)||prop.computed||prop.shorthand)return;const key=prop.key;if("__proto__"===("Identifier"===key.type?key.name:key.value)){if(isRecord)return void this.raise(Errors.RecordNoProto,{at:key});protoRef.used&&(refExpressionErrors?null===refExpressionErrors.doubleProtoLoc&&(refExpressionErrors.doubleProtoLoc=key.loc.start):this.raise(Errors.DuplicateProto,{at:key})),protoRef.used=!0;}}shouldExitDescending(expr,potentialArrowAt){return "ArrowFunctionExpression"===expr.type&&expr.start===potentialArrowAt}getExpression(){this.enterInitialScopes(),this.nextToken();const expr=this.parseExpression();return this.match(135)||this.unexpected(),this.finalizeRemainingComments(),expr.comments=this.state.comments,expr.errors=this.state.errors,this.options.tokens&&(expr.tokens=this.tokens),expr}parseExpression(disallowIn,refExpressionErrors){return disallowIn?this.disallowInAnd((()=>this.parseExpressionBase(refExpressionErrors))):this.allowInAnd((()=>this.parseExpressionBase(refExpressionErrors)))}parseExpressionBase(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,expr=this.parseMaybeAssign(refExpressionErrors);if(this.match(12)){const node=this.startNodeAt(startPos,startLoc);for(node.expressions=[expr];this.eat(12);)node.expressions.push(this.parseMaybeAssign(refExpressionErrors));return this.toReferencedList(node.expressions),this.finishNode(node,"SequenceExpression")}return expr}parseMaybeAssignDisallowIn(refExpressionErrors,afterLeftParse){return this.disallowInAnd((()=>this.parseMaybeAssign(refExpressionErrors,afterLeftParse)))}parseMaybeAssignAllowIn(refExpressionErrors,afterLeftParse){return this.allowInAnd((()=>this.parseMaybeAssign(refExpressionErrors,afterLeftParse)))}setOptionalParametersError(refExpressionErrors,resultError){var _resultError$loc;refExpressionErrors.optionalParametersLoc=null!=(_resultError$loc=null==resultError?void 0:resultError.loc)?_resultError$loc:this.state.startLoc;}parseMaybeAssign(refExpressionErrors,afterLeftParse){const startPos=this.state.start,startLoc=this.state.startLoc;if(this.isContextual(105)&&this.prodParam.hasYield){let left=this.parseYield();return afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),left}let ownExpressionErrors;refExpressionErrors?ownExpressionErrors=!1:(refExpressionErrors=new ExpressionErrors,ownExpressionErrors=!0);const{type}=this.state;(10===type||tokenIsIdentifier(type))&&(this.state.potentialArrowAt=this.state.start);let left=this.parseMaybeConditional(refExpressionErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),(token=this.state.type)>=29&&token<=33){const node=this.startNodeAt(startPos,startLoc),operator=this.state.value;return node.operator=operator,this.match(29)?(this.toAssignable(left,!0),node.left=left,null!=refExpressionErrors.doubleProtoLoc&&refExpressionErrors.doubleProtoLoc.index>=startPos&&(refExpressionErrors.doubleProtoLoc=null),null!=refExpressionErrors.shorthandAssignLoc&&refExpressionErrors.shorthandAssignLoc.index>=startPos&&(refExpressionErrors.shorthandAssignLoc=null),null!=refExpressionErrors.privateKeyLoc&&refExpressionErrors.privateKeyLoc.index>=startPos&&(this.checkDestructuringPrivate(refExpressionErrors),refExpressionErrors.privateKeyLoc=null)):node.left=left,this.next(),node.right=this.parseMaybeAssign(),this.checkLVal(left,{in:this.finishNode(node,"AssignmentExpression")}),node}var token;return ownExpressionErrors&&this.checkExpressionErrors(refExpressionErrors,!0),left}parseMaybeConditional(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseExprOps(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseConditional(expr,startPos,startLoc,refExpressionErrors)}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(this.eat(17)){const node=this.startNodeAt(startPos,startLoc);return node.test=expr,node.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),node.alternate=this.parseMaybeAssign(),this.finishNode(node,"ConditionalExpression")}return expr}parseMaybeUnaryOrPrivate(refExpressionErrors){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(refExpressionErrors)}parseExprOps(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseMaybeUnaryOrPrivate(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseExprOp(expr,startPos,startLoc,-1)}parseExprOp(left,leftStartPos,leftStartLoc,minPrec){if(this.isPrivateName(left)){const value=this.getPrivateNameSV(left);(minPrec>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Errors.PrivateInExpectedIn,{at:left,identifierName:value}),this.classScope.usePrivateName(value,left.loc.start);}const op=this.state.type;if((token=op)>=39&&token<=59&&(this.prodParam.hasIn||!this.match(58))){let prec=tokenOperatorPrecedence(op);if(prec>minPrec){if(39===op){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return left;this.checkPipelineAtInfixOperator(left,leftStartLoc);}const node=this.startNodeAt(leftStartPos,leftStartLoc);node.left=left,node.operator=this.state.value;const logical=41===op||42===op,coalesce=40===op;if(coalesce&&(prec=tokenOperatorPrecedence(42)),this.next(),39===op&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(Errors.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});node.right=this.parseExprOpRightExpr(op,prec);const finishedNode=this.finishNode(node,logical||coalesce?"LogicalExpression":"BinaryExpression"),nextOp=this.state.type;if(coalesce&&(41===nextOp||42===nextOp)||logical&&40===nextOp)throw this.raise(Errors.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(finishedNode,leftStartPos,leftStartLoc,minPrec)}}var token;return left}parseExprOpRightExpr(op,prec){const startPos=this.state.start,startLoc=this.state.startLoc;if(39===op)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(105))throw this.raise(Errors.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(op,prec),startPos,startLoc)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(prec)))}return this.parseExprOpBaseRightExpr(op,prec)}parseExprOpBaseRightExpr(op,prec){const startPos=this.state.start,startLoc=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),startPos,startLoc,57===op?prec-1:prec)}parseHackPipeBody(){var _body$extra;const{startLoc}=this.state,body=this.parseMaybeAssign();return !UnparenthesizedPipeBodyDescriptions.has(body.type)||null!=(_body$extra=body.extra)&&_body$extra.parenthesized||this.raise(Errors.PipeUnparenthesizedBody,{at:startLoc,type:body.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Errors.PipeTopicUnused,{at:startLoc}),body}checkExponentialAfterUnary(node){this.match(57)&&this.raise(Errors.UnexpectedTokenUnaryExponentiation,{at:node.argument});}parseMaybeUnary(refExpressionErrors,sawUnary){const startPos=this.state.start,startLoc=this.state.startLoc,isAwait=this.isContextual(96);if(isAwait&&this.isAwaitAllowed()){this.next();const expr=this.parseAwait(startPos,startLoc);return sawUnary||this.checkExponentialAfterUnary(expr),expr}const update=this.match(34),node=this.startNode();if(token=this.state.type,tokenPrefixes[token]){node.operator=this.state.value,node.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const isDelete=this.match(89);if(this.next(),node.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(refExpressionErrors,!0),this.state.strict&&isDelete){const arg=node.argument;"Identifier"===arg.type?this.raise(Errors.StrictDelete,{at:node}):this.hasPropertyAsPrivateName(arg)&&this.raise(Errors.DeletePrivateField,{at:node});}if(!update)return sawUnary||this.checkExponentialAfterUnary(node),this.finishNode(node,"UnaryExpression")}var token;const expr=this.parseUpdate(node,update,refExpressionErrors);if(isAwait){const{type}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(type):tokenCanStartExpression(type)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(Errors.AwaitNotInAsyncContext,{at:startLoc}),this.parseAwait(startPos,startLoc)}return expr}parseUpdate(node,update,refExpressionErrors){if(update){const updateExpressionNode=node;return this.checkLVal(updateExpressionNode.argument,{in:this.finishNode(updateExpressionNode,"UpdateExpression")}),node}const startPos=this.state.start,startLoc=this.state.startLoc;let expr=this.parseExprSubscripts(refExpressionErrors);if(this.checkExpressionErrors(refExpressionErrors,!1))return expr;for(;34===this.state.type&&!this.canInsertSemicolon();){const node=this.startNodeAt(startPos,startLoc);node.operator=this.state.value,node.prefix=!1,node.argument=expr,this.next(),this.checkLVal(expr,{in:expr=this.finishNode(node,"UpdateExpression")});}return expr}parseExprSubscripts(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseExprAtom(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseSubscripts(expr,startPos,startLoc)}parseSubscripts(base,startPos,startLoc,noCalls){const state={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(base),stop:!1};do{base=this.parseSubscript(base,startPos,startLoc,noCalls,state),state.maybeAsyncArrow=!1;}while(!state.stop);return base}parseSubscript(base,startPos,startLoc,noCalls,state){const{type}=this.state;if(!noCalls&&15===type)return this.parseBind(base,startPos,startLoc,noCalls,state);if(tokenIsTemplate(type))return this.parseTaggedTemplateExpression(base,startPos,startLoc,state);let optional=!1;if(18===type){if(noCalls&&40===this.lookaheadCharCode())return state.stop=!0,base;state.optionalChainMember=optional=!0,this.next();}if(!noCalls&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(base,startPos,startLoc,state,optional);{const computed=this.eat(0);return computed||optional||this.eat(16)?this.parseMember(base,startPos,startLoc,state,computed,optional):(state.stop=!0,base)}}parseMember(base,startPos,startLoc,state,computed,optional){const node=this.startNodeAt(startPos,startLoc);return node.object=base,node.computed=computed,computed?(node.property=this.parseExpression(),this.expect(3)):this.match(134)?("Super"===base.type&&this.raise(Errors.SuperPrivateField,{at:startLoc}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),node.property=this.parsePrivateName()):node.property=this.parseIdentifier(!0),state.optionalChainMember?(node.optional=optional,this.finishNode(node,"OptionalMemberExpression")):this.finishNode(node,"MemberExpression")}parseBind(base,startPos,startLoc,noCalls,state){const node=this.startNodeAt(startPos,startLoc);return node.object=base,this.next(),node.callee=this.parseNoCallExpr(),state.stop=!0,this.parseSubscripts(this.finishNode(node,"BindExpression"),startPos,startLoc,noCalls)}parseCoverCallAndAsyncArrowHead(base,startPos,startLoc,state,optional){const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;let refExpressionErrors=null;this.state.maybeInArrowParameters=!0,this.next();const node=this.startNodeAt(startPos,startLoc);node.callee=base;const{maybeAsyncArrow,optionalChainMember}=state;maybeAsyncArrow&&(this.expressionScope.enter(new ArrowHeadParsingScope(2)),refExpressionErrors=new ExpressionErrors),optionalChainMember&&(node.optional=optional),node.arguments=optional?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===base.type,"Super"!==base.type,node,refExpressionErrors);let finishedNode=this.finishCallExpression(node,optionalChainMember);return maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!optional?(state.stop=!0,this.checkDestructuringPrivate(refExpressionErrors),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),finishedNode=this.parseAsyncArrowFromCallExpression(this.startNodeAt(startPos,startLoc),finishedNode)):(maybeAsyncArrow&&(this.checkExpressionErrors(refExpressionErrors,!0),this.expressionScope.exit()),this.toReferencedArguments(finishedNode)),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,finishedNode}toReferencedArguments(node,isParenthesizedExpr){this.toReferencedListDeep(node.arguments,isParenthesizedExpr);}parseTaggedTemplateExpression(base,startPos,startLoc,state){const node=this.startNodeAt(startPos,startLoc);return node.tag=base,node.quasi=this.parseTemplate(!0),state.optionalChainMember&&this.raise(Errors.OptionalChainingNoTemplate,{at:startLoc}),this.finishNode(node,"TaggedTemplateExpression")}atPossibleAsyncArrow(base){return "Identifier"===base.type&&"async"===base.name&&this.state.lastTokEndLoc.index===base.end&&!this.canInsertSemicolon()&&base.end-base.start==5&&base.start===this.state.potentialArrowAt}finishCallExpression(node,optional){if("Import"===node.callee.type)if(2===node.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===node.arguments.length||node.arguments.length>2)this.raise(Errors.ImportCallArity,{at:node,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const arg of node.arguments)"SpreadElement"===arg.type&&this.raise(Errors.ImportCallSpreadArgument,{at:arg});return this.finishNode(node,optional?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(close,dynamicImport,allowPlaceholder,nodeForExtra,refExpressionErrors){const elts=[];let first=!0;const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){!dynamicImport||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(Errors.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),nodeForExtra&&this.addTrailingCommaExtraToNode(nodeForExtra),this.next();break}elts.push(this.parseExprListItem(!1,refExpressionErrors,allowPlaceholder));}return this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,elts}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(node,call){var _call$extra;return this.resetPreviousNodeTrailingComments(call),this.expect(19),this.parseArrowExpression(node,call.arguments,!0,null==(_call$extra=call.extra)?void 0:_call$extra.trailingCommaLoc),call.innerComments&&setInnerComments(node,call.innerComments),call.callee.trailingComments&&setInnerComments(node,call.callee.trailingComments),node}parseNoCallExpr(){const startPos=this.state.start,startLoc=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0)}parseExprAtom(refExpressionErrors){let node;const{type}=this.state;switch(type){case 79:return this.parseSuper();case 83:return node=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(node):(this.match(10)||this.raise(Errors.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(node,"Import"));case 78:return node=this.startNode(),this.next(),this.finishNode(node,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 130:return this.parseNumericLiteral(this.state.value);case 131:return this.parseBigIntLiteral(this.state.value);case 132:return this.parseDecimalLiteral(this.state.value);case 129:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const canBeArrow=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(canBeArrow)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,refExpressionErrors);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,refExpressionErrors);case 68:return this.parseFunctionOrFunctionSent();case 26:this.parseDecorators();case 80:return node=this.startNode(),this.takeDecorators(node),this.parseClass(node,!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{node=this.startNode(),this.next(),node.object=null;const callee=node.callee=this.parseNoCallExpr();if("MemberExpression"===callee.type)return this.finishNode(node,"BindExpression");throw this.raise(Errors.UnsupportedBind,{at:callee})}case 134:return this.raise(Errors.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const pipeProposal=this.getPluginOption("pipelineOperator","proposal");if(pipeProposal)return this.parseTopicReference(pipeProposal);throw this.unexpected()}case 47:{const lookaheadCh=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(lookaheadCh)||62===lookaheadCh){this.expectOnePlugin(["jsx","flow","typescript"]);break}throw this.unexpected()}default:if(tokenIsIdentifier(type)){if(this.isContextual(123)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const canBeArrow=this.state.potentialArrowAt===this.state.start,containsEsc=this.state.containsEsc,id=this.parseIdentifier();if(!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()){const{type}=this.state;if(68===type)return this.resetPreviousNodeTrailingComments(id),this.next(),this.parseFunction(this.startNodeAtNode(id),void 0,!0);if(tokenIsIdentifier(type))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id)):id;if(90===type)return this.resetPreviousNodeTrailingComments(id),this.parseDo(this.startNodeAtNode(id),!0)}return canBeArrow&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(id),[id],!1)):id}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(topicTokenType,topicTokenValue){const pipeProposal=this.getPluginOption("pipelineOperator","proposal");if(pipeProposal)return this.state.type=topicTokenType,this.state.value=topicTokenValue,this.state.pos--,this.state.end--,this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1),this.parseTopicReference(pipeProposal);throw this.unexpected()}parseTopicReference(pipeProposal){const node=this.startNode(),startLoc=this.state.startLoc,tokenType=this.state.type;return this.next(),this.finishTopicReference(node,startLoc,pipeProposal,tokenType)}finishTopicReference(node,startLoc,pipeProposal,tokenType){if(this.testTopicReferenceConfiguration(pipeProposal,startLoc,tokenType)){const nodeType="smart"===pipeProposal?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===pipeProposal?Errors.PrimaryTopicNotAllowed:Errors.PipeTopicUnbound,{at:startLoc}),this.registerTopicReference(),this.finishNode(node,nodeType)}throw this.raise(Errors.PipeTopicUnconfiguredToken,{at:startLoc,token:tokenLabelName(tokenType)})}testTopicReferenceConfiguration(pipeProposal,startLoc,tokenType){switch(pipeProposal){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(tokenType)}]);case"smart":return 27===tokenType;default:throw this.raise(Errors.PipeTopicRequiresHackPipes,{at:startLoc})}}parseAsyncArrowUnaryFunction(node){this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const params=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(Errors.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(node,params,!0)}parseDo(node,isAsync){this.expectPlugin("doExpressions"),isAsync&&this.expectPlugin("asyncDoExpressions"),node.async=isAsync,this.next();const oldLabels=this.state.labels;return this.state.labels=[],isAsync?(this.prodParam.enter(2),node.body=this.parseBlock(),this.prodParam.exit()):node.body=this.parseBlock(),this.state.labels=oldLabels,this.finishNode(node,"DoExpression")}parseSuper(){const node=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(Errors.UnexpectedSuper,{at:node}):this.raise(Errors.SuperNotAllowed,{at:node}),this.match(10)||this.match(0)||this.match(16)||this.raise(Errors.UnsupportedSuper,{at:node}),this.finishNode(node,"Super")}parsePrivateName(){const node=this.startNode(),id=this.startNodeAt(this.state.start+1,new Position(this.state.curLine,this.state.start+1-this.state.lineStart,this.state.start+1)),name=this.state.value;return this.next(),node.id=this.createIdentifier(id,name),this.finishNode(node,"PrivateName")}parseFunctionOrFunctionSent(){const node=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const meta=this.createIdentifier(this.startNodeAtNode(node),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(node,meta,"sent")}return this.parseFunction(node)}parseMetaProperty(node,meta,propertyName){node.meta=meta;const containsEsc=this.state.containsEsc;return node.property=this.parseIdentifier(!0),(node.property.name!==propertyName||containsEsc)&&this.raise(Errors.UnsupportedMetaProperty,{at:node.property,target:meta.name,onlyValidPropertyName:propertyName}),this.finishNode(node,"MetaProperty")}parseImportMetaProperty(node){const id=this.createIdentifier(this.startNodeAtNode(node),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(Errors.ImportMetaOutsideModule,{at:id}),this.sawUnambiguousESM=!0),this.parseMetaProperty(node,id,"meta")}parseLiteralAtNode(value,type,node){return this.addExtra(node,"rawValue",value),this.addExtra(node,"raw",this.input.slice(node.start,this.state.end)),node.value=value,this.next(),this.finishNode(node,type)}parseLiteral(value,type){const node=this.startNode();return this.parseLiteralAtNode(value,type,node)}parseStringLiteral(value){return this.parseLiteral(value,"StringLiteral")}parseNumericLiteral(value){return this.parseLiteral(value,"NumericLiteral")}parseBigIntLiteral(value){return this.parseLiteral(value,"BigIntLiteral")}parseDecimalLiteral(value){return this.parseLiteral(value,"DecimalLiteral")}parseRegExpLiteral(value){const node=this.parseLiteral(value.value,"RegExpLiteral");return node.pattern=value.pattern,node.flags=value.flags,node}parseBooleanLiteral(value){const node=this.startNode();return node.value=value,this.next(),this.finishNode(node,"BooleanLiteral")}parseNullLiteral(){const node=this.startNode();return this.next(),this.finishNode(node,"NullLiteral")}parseParenAndDistinguishExpression(canBeArrow){const startPos=this.state.start,startLoc=this.state.startLoc;let val;this.next(),this.expressionScope.enter(new ArrowHeadParsingScope(1));const oldMaybeInArrowParameters=this.state.maybeInArrowParameters,oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const innerStartPos=this.state.start,innerStartLoc=this.state.startLoc,exprList=[],refExpressionErrors=new ExpressionErrors;let spreadStartLoc,optionalCommaStartLoc,first=!0;for(;!this.match(11);){if(first)first=!1;else if(this.expect(12,null===refExpressionErrors.optionalParametersLoc?null:refExpressionErrors.optionalParametersLoc),this.match(11)){optionalCommaStartLoc=this.state.startLoc;break}if(this.match(21)){const spreadNodeStartPos=this.state.start,spreadNodeStartLoc=this.state.startLoc;if(spreadStartLoc=this.state.startLoc,exprList.push(this.parseParenItem(this.parseRestBinding(),spreadNodeStartPos,spreadNodeStartLoc)),!this.checkCommaAfterRest(41))break}else exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors,this.parseParenItem));}const innerEndLoc=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody;let arrowNode=this.startNodeAt(startPos,startLoc);return canBeArrow&&this.shouldParseArrow(exprList)&&(arrowNode=this.parseArrow(arrowNode))?(this.checkDestructuringPrivate(refExpressionErrors),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(arrowNode,exprList,!1),arrowNode):(this.expressionScope.exit(),exprList.length||this.unexpected(this.state.lastTokStartLoc),optionalCommaStartLoc&&this.unexpected(optionalCommaStartLoc),spreadStartLoc&&this.unexpected(spreadStartLoc),this.checkExpressionErrors(refExpressionErrors,!0),this.toReferencedListDeep(exprList,!0),exprList.length>1?(val=this.startNodeAt(innerStartPos,innerStartLoc),val.expressions=exprList,this.finishNode(val,"SequenceExpression"),this.resetEndLocation(val,innerEndLoc)):val=exprList[0],this.wrapParenthesis(startPos,startLoc,val))}wrapParenthesis(startPos,startLoc,expression){if(!this.options.createParenthesizedExpressions)return this.addExtra(expression,"parenthesized",!0),this.addExtra(expression,"parenStart",startPos),this.takeSurroundingComments(expression,startPos,this.state.lastTokEndLoc.index),expression;const parenExpression=this.startNodeAt(startPos,startLoc);return parenExpression.expression=expression,this.finishNode(parenExpression,"ParenthesizedExpression")}shouldParseArrow(params){return !this.canInsertSemicolon()}parseArrow(node){if(this.eat(19))return node}parseParenItem(node,startPos,startLoc){return node}parseNewOrNewTarget(){const node=this.startNode();if(this.next(),this.match(16)){const meta=this.createIdentifier(this.startNodeAtNode(node),"new");this.next();const metaProp=this.parseMetaProperty(node,meta,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(Errors.UnexpectedNewTarget,{at:metaProp}),metaProp}return this.parseNew(node)}parseNew(node){if(this.parseNewCallee(node),this.eat(10)){const args=this.parseExprList(11);this.toReferencedList(args),node.arguments=args;}else node.arguments=[];return this.finishNode(node,"NewExpression")}parseNewCallee(node){node.callee=this.parseNoCallExpr(),"Import"===node.callee.type?this.raise(Errors.ImportCallNotNewExpression,{at:node.callee}):this.isOptionalChain(node.callee)?this.raise(Errors.OptionalChainingNoNew,{at:this.state.lastTokEndLoc}):this.eat(18)&&this.raise(Errors.OptionalChainingNoNew,{at:this.state.startLoc});}parseTemplateElement(isTagged){const{start,startLoc,end,value}=this.state,elemStart=start+1,elem=this.startNodeAt(elemStart,createPositionWithColumnOffset(startLoc,1));null===value&&(isTagged||this.raise(Errors.InvalidEscapeSequenceTemplate,{at:createPositionWithColumnOffset(startLoc,2)}));const isTail=this.match(24),endOffset=isTail?-1:-2,elemEnd=end+endOffset;elem.value={raw:this.input.slice(elemStart,elemEnd).replace(/\r\n?/g,"\n"),cooked:null===value?null:value.slice(1,endOffset)},elem.tail=isTail,this.next();const finishedNode=this.finishNode(elem,"TemplateElement");return this.resetEndLocation(finishedNode,createPositionWithColumnOffset(this.state.lastTokEndLoc,endOffset)),finishedNode}parseTemplate(isTagged){const node=this.startNode();node.expressions=[];let curElt=this.parseTemplateElement(isTagged);for(node.quasis=[curElt];!curElt.tail;)node.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),node.quasis.push(curElt=this.parseTemplateElement(isTagged));return this.finishNode(node,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(close,isPattern,isRecord,refExpressionErrors){isRecord&&this.expectPlugin("recordAndTuple");const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const propHash=Object.create(null);let first=!0;const node=this.startNode();for(node.properties=[],this.next();!this.match(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){this.addTrailingCommaExtraToNode(node);break}let prop;isPattern?prop=this.parseBindingProperty():(prop=this.parsePropertyDefinition(refExpressionErrors),this.checkProto(prop,isRecord,propHash,refExpressionErrors)),isRecord&&!this.isObjectProperty(prop)&&"SpreadElement"!==prop.type&&this.raise(Errors.InvalidRecordProperty,{at:prop}),prop.shorthand&&this.addExtra(prop,"shorthand",!0),node.properties.push(prop);}this.next(),this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody;let type="ObjectExpression";return isPattern?type="ObjectPattern":isRecord&&(type="RecordExpression"),this.finishNode(node,type)}addTrailingCommaExtraToNode(node){this.addExtra(node,"trailingComma",this.state.lastTokStart),this.addExtra(node,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(prop){return !prop.computed&&"Identifier"===prop.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(refExpressionErrors){let decorators=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Errors.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)decorators.push(this.parseDecorator());const prop=this.startNode();let startPos,startLoc,isAsync=!1,isAccessor=!1;if(this.match(21))return decorators.length&&this.unexpected(),this.parseSpread();decorators.length&&(prop.decorators=decorators,decorators=[]),prop.method=!1,refExpressionErrors&&(startPos=this.state.start,startLoc=this.state.startLoc);let isGenerator=this.eat(55);this.parsePropertyNamePrefixOperator(prop);const containsEsc=this.state.containsEsc,key=this.parsePropertyName(prop,refExpressionErrors);if(!isGenerator&&!containsEsc&&this.maybeAsyncOrAccessorProp(prop)){const keyName=key.name;"async"!==keyName||this.hasPrecedingLineBreak()||(isAsync=!0,this.resetPreviousNodeTrailingComments(key),isGenerator=this.eat(55),this.parsePropertyName(prop)),"get"!==keyName&&"set"!==keyName||(isAccessor=!0,this.resetPreviousNodeTrailingComments(key),prop.kind=keyName,this.match(55)&&(isGenerator=!0,this.raise(Errors.AccessorIsGenerator,{at:this.state.curPosition(),kind:keyName}),this.next()),this.parsePropertyName(prop));}return this.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,!1,isAccessor,refExpressionErrors)}getGetterSetterExpectedParamCount(method){return "get"===method.kind?0:1}getObjectOrClassMethodParams(method){return method.params}checkGetterSetterParams(method){var _params;const paramCount=this.getGetterSetterExpectedParamCount(method),params=this.getObjectOrClassMethodParams(method);params.length!==paramCount&&this.raise("get"===method.kind?Errors.BadGetterArity:Errors.BadSetterArity,{at:method}),"set"===method.kind&&"RestElement"===(null==(_params=params[params.length-1])?void 0:_params.type)&&this.raise(Errors.BadSetterRestParameter,{at:method});}parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor){if(isAccessor){const finishedProp=this.parseMethod(prop,isGenerator,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(finishedProp),finishedProp}if(isAsync||isGenerator||this.match(10))return isPattern&&this.unexpected(),prop.kind="method",prop.method=!0,this.parseMethod(prop,isGenerator,isAsync,!1,!1,"ObjectMethod")}parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors){if(prop.shorthand=!1,this.eat(14))return prop.value=isPattern?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(refExpressionErrors),this.finishNode(prop,"ObjectProperty");if(!prop.computed&&"Identifier"===prop.key.type){if(this.checkReservedWord(prop.key.name,prop.key.loc.start,!0,!1),isPattern)prop.value=this.parseMaybeDefault(startPos,startLoc,cloneIdentifier(prop.key));else if(this.match(29)){const shorthandAssignLoc=this.state.startLoc;null!=refExpressionErrors?null===refExpressionErrors.shorthandAssignLoc&&(refExpressionErrors.shorthandAssignLoc=shorthandAssignLoc):this.raise(Errors.InvalidCoverInitializedName,{at:shorthandAssignLoc}),prop.value=this.parseMaybeDefault(startPos,startLoc,cloneIdentifier(prop.key));}else prop.value=cloneIdentifier(prop.key);return prop.shorthand=!0,this.finishNode(prop,"ObjectProperty")}}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){const node=this.parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor)||this.parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors);return node||this.unexpected(),node}parsePropertyName(prop,refExpressionErrors){if(this.eat(0))prop.computed=!0,prop.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {const{type,value}=this.state;let key;if(tokenIsKeywordOrIdentifier(type))key=this.parseIdentifier(!0);else switch(type){case 130:key=this.parseNumericLiteral(value);break;case 129:key=this.parseStringLiteral(value);break;case 131:key=this.parseBigIntLiteral(value);break;case 132:key=this.parseDecimalLiteral(value);break;case 134:{const privateKeyLoc=this.state.startLoc;null!=refExpressionErrors?null===refExpressionErrors.privateKeyLoc&&(refExpressionErrors.privateKeyLoc=privateKeyLoc):this.raise(Errors.UnexpectedPrivateField,{at:privateKeyLoc}),key=this.parsePrivateName();break}default:throw this.unexpected()}prop.key=key,134!==type&&(prop.computed=!1);}return prop.key}initFunction(node,isAsync){node.id=null,node.generator=!1,node.async=!!isAsync;}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope=!1){this.initFunction(node,isAsync),node.generator=!!isGenerator;const allowModifiers=isConstructor;this.scope.enter(18|(inClassScope?64:0)|(allowDirectSuper?32:0)),this.prodParam.enter(functionFlags(isAsync,node.generator)),this.parseFunctionParams(node,allowModifiers);const finishedNode=this.parseFunctionBodyAndFinish(node,type,!0);return this.prodParam.exit(),this.scope.exit(),finishedNode}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){isTuple&&this.expectPlugin("recordAndTuple");const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const node=this.startNode();return this.next(),node.elements=this.parseExprList(close,!isTuple,refExpressionErrors,node),this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,this.finishNode(node,isTuple?"TupleExpression":"ArrayExpression")}parseArrowExpression(node,params,isAsync,trailingCommaLoc){this.scope.enter(6);let flags=functionFlags(isAsync,!1);!this.match(5)&&this.prodParam.hasIn&&(flags|=8),this.prodParam.enter(flags),this.initFunction(node,isAsync);const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;return params&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(node,params,trailingCommaLoc)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(node,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,this.finishNode(node,"ArrowFunctionExpression")}setArrowFunctionParameters(node,params,trailingCommaLoc){this.toAssignableList(params,trailingCommaLoc,!1),node.params=params;}parseFunctionBodyAndFinish(node,type,isMethod=!1){return this.parseFunctionBody(node,!1,isMethod),this.finishNode(node,type)}parseFunctionBody(node,allowExpression,isMethod=!1){const isExpression=allowExpression&&!this.match(5);if(this.expressionScope.enter(newExpressionScope()),isExpression)node.body=this.parseMaybeAssign(),this.checkParams(node,!1,allowExpression,!1);else {const oldStrict=this.state.strict,oldLabels=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),node.body=this.parseBlock(!0,!1,(hasStrictModeDirective=>{const nonSimple=!this.isSimpleParamList(node.params);hasStrictModeDirective&&nonSimple&&this.raise(Errors.IllegalLanguageModeDirective,{at:"method"!==node.kind&&"constructor"!==node.kind||!node.key?node:node.key.loc.end});const strictModeChanged=!oldStrict&&this.state.strict;this.checkParams(node,!(this.state.strict||allowExpression||isMethod||nonSimple),allowExpression,strictModeChanged),this.state.strict&&node.id&&this.checkIdentifier(node.id,65,strictModeChanged);})),this.prodParam.exit(),this.state.labels=oldLabels;}this.expressionScope.exit();}isSimpleParameter(node){return "Identifier"===node.type}isSimpleParamList(params){for(let i=0,len=params.length;i<len;i++)if(!this.isSimpleParameter(params[i]))return !1;return !0}checkParams(node,allowDuplicates,isArrowFunction,strictModeChanged=!0){const checkClashes=!allowDuplicates&&new Set,formalParameters={type:"FormalParameters"};for(const param of node.params)this.checkLVal(param,{in:formalParameters,binding:5,checkClashes,strictModeChanged});}parseExprList(close,allowEmpty,refExpressionErrors,nodeForExtra){const elts=[];let first=!0;for(;!this.eat(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){nodeForExtra&&this.addTrailingCommaExtraToNode(nodeForExtra),this.next();break}elts.push(this.parseExprListItem(allowEmpty,refExpressionErrors));}return elts}parseExprListItem(allowEmpty,refExpressionErrors,allowPlaceholder){let elt;if(this.match(12))allowEmpty||this.raise(Errors.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),elt=null;else if(this.match(21)){const spreadNodeStartPos=this.state.start,spreadNodeStartLoc=this.state.startLoc;elt=this.parseParenItem(this.parseSpread(refExpressionErrors),spreadNodeStartPos,spreadNodeStartLoc);}else if(this.match(17)){this.expectPlugin("partialApplication"),allowPlaceholder||this.raise(Errors.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});const node=this.startNode();this.next(),elt=this.finishNode(node,"ArgumentPlaceholder");}else elt=this.parseMaybeAssignAllowIn(refExpressionErrors,this.parseParenItem);return elt}parseIdentifier(liberal){const node=this.startNode(),name=this.parseIdentifierName(node.start,liberal);return this.createIdentifier(node,name)}createIdentifier(node,name){return node.name=name,node.loc.identifierName=name,this.finishNode(node,"Identifier")}parseIdentifierName(pos,liberal){let name;const{startLoc,type}=this.state;if(!tokenIsKeywordOrIdentifier(type))throw this.unexpected();name=this.state.value;const tokenIsKeyword=type<=92;return liberal?tokenIsKeyword&&this.replaceToken(128):this.checkReservedWord(name,startLoc,tokenIsKeyword,!1),this.next(),name}checkReservedWord(word,startLoc,checkKeywords,isBinding){if(word.length>10)return;if(!function(word){return reservedWordLikeSet.has(word)}(word))return;if("yield"===word){if(this.prodParam.hasYield)return void this.raise(Errors.YieldBindingIdentifier,{at:startLoc})}else if("await"===word){if(this.prodParam.hasAwait)return void this.raise(Errors.AwaitBindingIdentifier,{at:startLoc});if(this.scope.inStaticBlock)return void this.raise(Errors.AwaitBindingIdentifierInStaticBlock,{at:startLoc});this.expressionScope.recordAsyncArrowParametersError({at:startLoc});}else if("arguments"===word&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(Errors.ArgumentsInClass,{at:startLoc});if(checkKeywords&&function(word){return keywords.has(word)}(word))return void this.raise(Errors.UnexpectedKeyword,{at:startLoc,keyword:word});(this.state.strict?isBinding?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(word,this.inModule)&&this.raise(Errors.UnexpectedReservedWord,{at:startLoc,reservedWord:word});}isAwaitAllowed(){return !!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter,{at:node}),this.eat(55)&&this.raise(Errors.ObsoleteAwaitStar,{at:node}),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(node.argument=this.parseMaybeUnary(null,!0)),this.finishNode(node,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;const{type}=this.state;return 53===type||10===type||0===type||tokenIsTemplate(type)||133===type||56===type||this.hasPlugin("v8intrinsic")&&54===type}parseYield(){const node=this.startNode();this.expressionScope.recordParameterInitializerError(Errors.YieldInParameter,{at:node}),this.next();let delegating=!1,argument=null;if(!this.hasPrecedingLineBreak())switch(delegating=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!delegating)break;default:argument=this.parseMaybeAssign();}return node.delegate=delegating,node.argument=argument,this.finishNode(node,"YieldExpression")}checkPipelineAtInfixOperator(left,leftStartLoc){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===left.type&&this.raise(Errors.PipelineHeadSequenceExpression,{at:leftStartLoc});}parseSmartPipelineBodyInStyle(childExpr,startPos,startLoc){if(this.isSimpleReference(childExpr)){const bodyNode=this.startNodeAt(startPos,startLoc);return bodyNode.callee=childExpr,this.finishNode(bodyNode,"PipelineBareFunction")}{const bodyNode=this.startNodeAt(startPos,startLoc);return this.checkSmartPipeTopicBodyEarlyErrors(startLoc),bodyNode.expression=childExpr,this.finishNode(bodyNode,"PipelineTopicExpression")}}isSimpleReference(expression){switch(expression.type){case"MemberExpression":return !expression.computed&&this.isSimpleReference(expression.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(startLoc){if(this.match(19))throw this.raise(Errors.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(Errors.PipelineTopicUnused,{at:startLoc});}withTopicBindingContext(callback){const outerContextTopicState=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return callback()}finally{this.state.topicContext=outerContextTopicState;}}withSmartMixTopicForbiddingContext(callback){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return callback();{const outerContextTopicState=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return callback()}finally{this.state.topicContext=outerContextTopicState;}}}withSoloAwaitPermittingContext(callback){const outerContextSoloAwaitState=this.state.soloAwait;this.state.soloAwait=!0;try{return callback()}finally{this.state.soloAwait=outerContextSoloAwaitState;}}allowInAnd(callback){const flags=this.prodParam.currentFlags();if(8&~flags){this.prodParam.enter(8|flags);try{return callback()}finally{this.prodParam.exit();}}return callback()}disallowInAnd(callback){const flags=this.prodParam.currentFlags();if(8&flags){this.prodParam.enter(-9&flags);try{return callback()}finally{this.prodParam.exit();}}return callback()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0;}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(prec){const startPos=this.state.start,startLoc=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const ret=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),startPos,startLoc,prec);return this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,ret}parseModuleExpression(){this.expectPlugin("moduleBlocks");const node=this.startNode();this.next(),this.eat(5);const revertScopes=this.initializeScopes(!0);this.enterInitialScopes();const program=this.startNode();try{node.body=this.parseProgram(program,8,"module");}finally{revertScopes();}return this.eat(8),this.finishNode(node,"ModuleExpression")}parsePropertyNamePrefixOperator(prop){}}{parseTopLevel(file,program){return file.program=this.parseProgram(program),file.comments=this.state.comments,this.options.tokens&&(file.tokens=function(tokens,input){for(let i=0;i<tokens.length;i++){const token=tokens[i],{type}=token;if("number"==typeof type){if(134===type){const{loc,start,value,end}=token,hashEndPos=start+1,hashEndLoc=createPositionWithColumnOffset(loc.start,1);tokens.splice(i,1,new Token({type:getExportedToken(27),value:"#",start,end:hashEndPos,startLoc:loc.start,endLoc:hashEndLoc}),new Token({type:getExportedToken(128),value,start:hashEndPos,end,startLoc:hashEndLoc,endLoc:loc.end})),i++;continue}if(tokenIsTemplate(type)){const{loc,start,value,end}=token,backquoteEnd=start+1,backquoteEndLoc=createPositionWithColumnOffset(loc.start,1);let startToken,templateValue,templateElementEnd,templateElementEndLoc,endToken;startToken=96===input.charCodeAt(start)?new Token({type:getExportedToken(22),value:"`",start,end:backquoteEnd,startLoc:loc.start,endLoc:backquoteEndLoc}):new Token({type:getExportedToken(8),value:"}",start,end:backquoteEnd,startLoc:loc.start,endLoc:backquoteEndLoc}),24===type?(templateElementEnd=end-1,templateElementEndLoc=createPositionWithColumnOffset(loc.end,-1),templateValue=null===value?null:value.slice(1,-1),endToken=new Token({type:getExportedToken(22),value:"`",start:templateElementEnd,end,startLoc:templateElementEndLoc,endLoc:loc.end})):(templateElementEnd=end-2,templateElementEndLoc=createPositionWithColumnOffset(loc.end,-2),templateValue=null===value?null:value.slice(1,-2),endToken=new Token({type:getExportedToken(23),value:"${",start:templateElementEnd,end,startLoc:templateElementEndLoc,endLoc:loc.end})),tokens.splice(i,1,startToken,new Token({type:getExportedToken(20),value:templateValue,start:backquoteEnd,end:templateElementEnd,startLoc:backquoteEndLoc,endLoc:templateElementEndLoc}),endToken),i+=2;continue}token.type=getExportedToken(type);}}return tokens}(this.tokens,this.input)),this.finishNode(file,"File")}parseProgram(program,end=135,sourceType=this.options.sourceType){if(program.sourceType=sourceType,program.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(program,!0,!0,end),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[localName,at]of Array.from(this.scope.undefinedExports))this.raise(Errors.ModuleExportUndefined,{at,localName});return this.finishNode(program,"Program")}stmtToDirective(stmt){const directive=stmt;directive.type="Directive",directive.value=directive.expression,delete directive.expression;const directiveLiteral=directive.value,expressionValue=directiveLiteral.value,raw=this.input.slice(directiveLiteral.start,directiveLiteral.end),val=directiveLiteral.value=raw.slice(1,-1);return this.addExtra(directiveLiteral,"raw",raw),this.addExtra(directiveLiteral,"rawValue",val),this.addExtra(directiveLiteral,"expressionValue",expressionValue),directiveLiteral.type="DirectiveLiteral",directive}parseInterpreterDirective(){if(!this.match(28))return null;const node=this.startNode();return node.value=this.state.value,this.next(),this.finishNode(node,"InterpreterDirective")}isLet(context){return !!this.isContextual(99)&&this.isLetKeyword(context)}isLetKeyword(context){const next=this.nextTokenStart(),nextCh=this.codePointAtPos(next);if(92===nextCh||91===nextCh)return !0;if(context)return !1;if(123===nextCh)return !0;if(isIdentifierStart(nextCh)){if(keywordRelationalOperator.lastIndex=next,keywordRelationalOperator.test(this.input)){const endCh=this.codePointAtPos(keywordRelationalOperator.lastIndex);if(!isIdentifierChar(endCh)&&92!==endCh)return !1}return !0}return !1}parseStatement(context,topLevel){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(context,topLevel)}parseStatementContent(context,topLevel){let starttype=this.state.type;const node=this.startNode();let kind;switch(this.isLet(context)&&(starttype=74,kind="let"),starttype){case 60:return this.parseBreakContinueStatement(node,!0);case 63:return this.parseBreakContinueStatement(node,!1);case 64:return this.parseDebuggerStatement(node);case 90:return this.parseDoStatement(node);case 91:return this.parseForStatement(node);case 68:if(46===this.lookaheadCharCode())break;return context&&(this.state.strict?this.raise(Errors.StrictFunction,{at:this.state.startLoc}):"if"!==context&&"label"!==context&&this.raise(Errors.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(node,!1,!context);case 80:return context&&this.unexpected(),this.parseClass(node,!0);case 69:return this.parseIfStatement(node);case 70:return this.parseReturnStatement(node);case 71:return this.parseSwitchStatement(node);case 72:return this.parseThrowStatement(node);case 73:return this.parseTryStatement(node);case 75:case 74:return kind=kind||this.state.value,context&&"var"!==kind&&this.raise(Errors.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(node,kind);case 92:return this.parseWhileStatement(node);case 76:return this.parseWithStatement(node);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(node);case 83:{const nextTokenCharCode=this.lookaheadCharCode();if(40===nextTokenCharCode||46===nextTokenCharCode)break}case 82:{let result;return this.options.allowImportExportEverywhere||topLevel||this.raise(Errors.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===starttype?(result=this.parseImport(node),"ImportDeclaration"!==result.type||result.importKind&&"value"!==result.importKind||(this.sawUnambiguousESM=!0)):(result=this.parseExport(node),("ExportNamedDeclaration"!==result.type||result.exportKind&&"value"!==result.exportKind)&&("ExportAllDeclaration"!==result.type||result.exportKind&&"value"!==result.exportKind)&&"ExportDefaultDeclaration"!==result.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(result),result}default:if(this.isAsyncFunction())return context&&this.raise(Errors.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(node,!0,!context)}const maybeName=this.state.value,expr=this.parseExpression();return tokenIsIdentifier(starttype)&&"Identifier"===expr.type&&this.eat(14)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}assertModuleNodeAllowed(node){this.options.allowImportExportEverywhere||this.inModule||this.raise(Errors.ImportOutsideModule,{at:node});}takeDecorators(node){const decorators=this.state.decoratorStack[this.state.decoratorStack.length-1];decorators.length&&(node.decorators=decorators,this.resetStartLocationFromNode(node,decorators[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[]);}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(allowExport){const currentContextDecorators=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){const decorator=this.parseDecorator();currentContextDecorators.push(decorator);}if(this.match(82))allowExport||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Errors.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(Errors.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const node=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const startPos=this.state.start,startLoc=this.state.startLoc;let expr;if(this.match(10)){const startPos=this.state.start,startLoc=this.state.startLoc;this.next(),expr=this.parseExpression(),this.expect(11),expr=this.wrapParenthesis(startPos,startLoc,expr);const paramsStartLoc=this.state.startLoc;node.expression=this.parseMaybeDecoratorArguments(expr),!1===this.getPluginOption("decorators","allowCallParenthesized")&&node.expression!==expr&&this.raise(Errors.DecoratorArgumentsOutsideParentheses,{at:paramsStartLoc});}else {for(expr=this.parseIdentifier(!1);this.eat(16);){const node=this.startNodeAt(startPos,startLoc);node.object=expr,this.match(134)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),node.property=this.parsePrivateName()):node.property=this.parseIdentifier(!0),node.computed=!1,expr=this.finishNode(node,"MemberExpression");}node.expression=this.parseMaybeDecoratorArguments(expr);}this.state.decoratorStack.pop();}else node.expression=this.parseExprSubscripts();return this.finishNode(node,"Decorator")}parseMaybeDecoratorArguments(expr){if(this.eat(10)){const node=this.startNodeAtNode(expr);return node.callee=expr,node.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(node.arguments),this.finishNode(node,"CallExpression")}return expr}parseBreakContinueStatement(node,isBreak){return this.next(),this.isLineTerminator()?node.label=null:(node.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(node,isBreak),this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")}verifyBreakContinue(node,isBreak){let i;for(i=0;i<this.state.labels.length;++i){const lab=this.state.labels[i];if(null==node.label||lab.name===node.label.name){if(null!=lab.kind&&(isBreak||"loop"===lab.kind))break;if(node.label&&isBreak)break}}if(i===this.state.labels.length){const type=isBreak?"BreakStatement":"ContinueStatement";this.raise(Errors.IllegalBreakContinue,{at:node,type});}}parseDebuggerStatement(node){return this.next(),this.semicolon(),this.finishNode(node,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const val=this.parseExpression();return this.expect(11),val}parseDoStatement(node){return this.next(),this.state.labels.push(loopLabel),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(92),node.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(node,"DoWhileStatement")}parseForStatement(node){this.next(),this.state.labels.push(loopLabel);let awaitAt=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(awaitAt=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,null);const startsWithLet=this.isContextual(99),isLet=startsWithLet&&this.isLetKeyword();if(this.match(74)||this.match(75)||isLet){const initNode=this.startNode(),kind=isLet?"let":this.state.value;this.next(),this.parseVar(initNode,!0,kind);const init=this.finishNode(initNode,"VariableDeclaration");return (this.match(58)||this.isContextual(101))&&1===init.declarations.length?this.parseForIn(node,init,awaitAt):(null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,init))}const startsWithAsync=this.isContextual(95),refExpressionErrors=new ExpressionErrors,init=this.parseExpression(!0,refExpressionErrors),isForOf=this.isContextual(101);if(isForOf&&(startsWithLet&&this.raise(Errors.ForOfLet,{at:init}),null===awaitAt&&startsWithAsync&&"Identifier"===init.type&&this.raise(Errors.ForOfAsync,{at:init})),isForOf||this.match(58)){this.checkDestructuringPrivate(refExpressionErrors),this.toAssignable(init,!0);const type=isForOf?"ForOfStatement":"ForInStatement";return this.checkLVal(init,{in:{type}}),this.parseForIn(node,init,awaitAt)}return this.checkExpressionErrors(refExpressionErrors,!0),null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,init)}parseFunctionStatement(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,1|(declarationPosition?0:2),isAsync)}parseIfStatement(node){return this.next(),node.test=this.parseHeaderExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")}parseReturnStatement(node){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(Errors.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")}parseSwitchStatement(node){this.next(),node.discriminant=this.parseHeaderExpression();const cases=node.cases=[];let cur,sawDefault;for(this.expect(5),this.state.labels.push(switchLabel),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){const isCase=this.match(61);cur&&this.finishNode(cur,"SwitchCase"),cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raise(Errors.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),sawDefault=!0,cur.test=null),this.expect(14);}else cur?cur.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(node,"SwitchStatement")}parseThrowStatement(node){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Errors.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")}parseCatchClauseParam(){const param=this.parseBindingAtom(),simple="Identifier"===param.type;return this.scope.enter(simple?8:0),this.checkLVal(param,{in:{type:"CatchClause"},binding:9,allowingSloppyLetBinding:!0}),param}parseTryStatement(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.match(62)){const clause=this.startNode();this.next(),this.match(10)?(this.expect(10),clause.param=this.parseCatchClauseParam(),this.expect(11)):(clause.param=null,this.scope.enter(0)),clause.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),node.handler=this.finishNode(clause,"CatchClause");}return node.finalizer=this.eat(67)?this.parseBlock():null,node.handler||node.finalizer||this.raise(Errors.NoCatchOrFinally,{at:node}),this.finishNode(node,"TryStatement")}parseVarStatement(node,kind,allowMissingInitializer=!1){return this.next(),this.parseVar(node,!1,kind,allowMissingInitializer),this.semicolon(),this.finishNode(node,"VariableDeclaration")}parseWhileStatement(node){return this.next(),node.test=this.parseHeaderExpression(),this.state.labels.push(loopLabel),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(node,"WhileStatement")}parseWithStatement(node){return this.state.strict&&this.raise(Errors.StrictWith,{at:this.state.startLoc}),this.next(),node.object=this.parseHeaderExpression(),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(node,"WithStatement")}parseEmptyStatement(node){return this.next(),this.finishNode(node,"EmptyStatement")}parseLabeledStatement(node,maybeName,expr,context){for(const label of this.state.labels)label.name===maybeName&&this.raise(Errors.LabelRedeclaration,{at:expr,labelName:maybeName});const kind=(token=this.state.type)>=90&&token<=92?"loop":this.match(71)?"switch":null;var token;for(let i=this.state.labels.length-1;i>=0;i--){const label=this.state.labels[i];if(label.statementStart!==node.start)break;label.statementStart=this.state.start,label.kind=kind;}return this.state.labels.push({name:maybeName,kind,statementStart:this.state.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.state.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")}parseExpressionStatement(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")}parseBlock(allowDirectives=!1,createNewLexicalScope=!0,afterBlockParse){const node=this.startNode();return allowDirectives&&this.state.strictErrors.clear(),this.expect(5),createNewLexicalScope&&this.scope.enter(0),this.parseBlockBody(node,allowDirectives,!1,8,afterBlockParse),createNewLexicalScope&&this.scope.exit(),this.finishNode(node,"BlockStatement")}isValidDirective(stmt){return "ExpressionStatement"===stmt.type&&"StringLiteral"===stmt.expression.type&&!stmt.expression.extra.parenthesized}parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse){const body=node.body=[],directives=node.directives=[];this.parseBlockOrModuleBlockBody(body,allowDirectives?directives:void 0,topLevel,end,afterBlockParse);}parseBlockOrModuleBlockBody(body,directives,topLevel,end,afterBlockParse){const oldStrict=this.state.strict;let hasStrictModeDirective=!1,parsedNonDirective=!1;for(;!this.match(end);){const stmt=this.parseStatement(null,topLevel);if(directives&&!parsedNonDirective){if(this.isValidDirective(stmt)){const directive=this.stmtToDirective(stmt);directives.push(directive),hasStrictModeDirective||"use strict"!==directive.value.value||(hasStrictModeDirective=!0,this.setStrict(!0));continue}parsedNonDirective=!0,this.state.strictErrors.clear();}body.push(stmt);}afterBlockParse&&afterBlockParse.call(this,hasStrictModeDirective),oldStrict||this.setStrict(!1),this.next();}parseFor(node,init){return node.init=init,this.semicolon(!1),node.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),node.update=this.match(11)?null:this.parseExpression(),this.expect(11),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(node,"ForStatement")}parseForIn(node,init,awaitAt){const isForIn=this.match(58);return this.next(),isForIn?null!==awaitAt&&this.unexpected(awaitAt):node.await=null!==awaitAt,"VariableDeclaration"!==init.type||null==init.declarations[0].init||isForIn&&!this.state.strict&&"var"===init.kind&&"Identifier"===init.declarations[0].id.type||this.raise(Errors.ForInOfLoopInitializer,{at:init,type:isForIn?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===init.type&&this.raise(Errors.InvalidLhs,{at:init,ancestor:{type:"ForStatement"}}),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")}parseVar(node,isFor,kind,allowMissingInitializer=!1){const declarations=node.declarations=[];for(node.kind=kind;;){const decl=this.startNode();if(this.parseVarId(decl,kind),decl.init=this.eat(29)?isFor?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==decl.init||allowMissingInitializer||("Identifier"===decl.id.type||isFor&&(this.match(58)||this.isContextual(101))?"const"!==kind||this.match(58)||this.isContextual(101)||this.raise(Errors.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(Errors.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(12))break}return node}parseVarId(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,{in:{type:"VariableDeclarator"},binding:"var"===kind?5:9});}parseFunction(node,statement=0,isAsync=!1){const isStatement=1&statement,isHangingStatement=2&statement,requireId=!(!isStatement||4&statement);this.initFunction(node,isAsync),this.match(55)&&isHangingStatement&&this.raise(Errors.GeneratorInSingleStatementContext,{at:this.state.startLoc}),node.generator=this.eat(55),isStatement&&(node.id=this.parseFunctionId(requireId));const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(isAsync,node.generator)),isStatement||(node.id=this.parseFunctionId()),this.parseFunctionParams(node,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(node,isStatement?"FunctionDeclaration":"FunctionExpression");})),this.prodParam.exit(),this.scope.exit(),isStatement&&!isHangingStatement&&this.registerFunctionStatementId(node),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,node}parseFunctionId(requireId){return requireId||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(node,allowModifiers){this.expect(10),this.expressionScope.enter(new ExpressionScope(3)),node.params=this.parseBindingList(11,41,!1,allowModifiers),this.expressionScope.exit();}registerFunctionStatementId(node){node.id&&this.scope.declareName(node.id.name,this.state.strict||node.generator||node.async?this.scope.treatFunctionsAsVar?5:9:17,node.id.loc.start);}parseClass(node,isStatement,optionalId){this.next(),this.takeDecorators(node);const oldStrict=this.state.strict;return this.state.strict=!0,this.parseClassId(node,isStatement,optionalId),this.parseClassSuper(node),node.body=this.parseClassBody(!!node.superClass,oldStrict),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(method){return !(method.computed||method.static||"constructor"!==method.key.name&&"constructor"!==method.key.value)}parseClassBody(hadSuperClass,oldStrict){this.classScope.enter();const state={hadConstructor:!1,hadSuperClass};let decorators=[];const classBody=this.startNode();if(classBody.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(decorators.length>0)throw this.raise(Errors.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){decorators.push(this.parseDecorator());continue}const member=this.startNode();decorators.length&&(member.decorators=decorators,this.resetStartLocationFromNode(member,decorators[0]),decorators=[]),this.parseClassMember(classBody,member,state),"constructor"===member.kind&&member.decorators&&member.decorators.length>0&&this.raise(Errors.DecoratorConstructor,{at:member});}})),this.state.strict=oldStrict,this.next(),decorators.length)throw this.raise(Errors.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(classBody,"ClassBody")}parseClassMemberFromModifier(classBody,member){const key=this.parseIdentifier(!0);if(this.isClassMethod()){const method=member;return method.kind="method",method.computed=!1,method.key=key,method.static=!1,this.pushClassMethod(classBody,method,!1,!1,!1,!1),!0}if(this.isClassProperty()){const prop=member;return prop.computed=!1,prop.key=key,prop.static=!1,classBody.body.push(this.parseClassProperty(prop)),!0}return this.resetPreviousNodeTrailingComments(key),!1}parseClassMember(classBody,member,state){const isStatic=this.isContextual(104);if(isStatic){if(this.parseClassMemberFromModifier(classBody,member))return;if(this.eat(5))return void this.parseClassStaticBlock(classBody,member)}this.parseClassMemberWithIsStatic(classBody,member,state,isStatic);}parseClassMemberWithIsStatic(classBody,member,state,isStatic){const publicMethod=member,privateMethod=member,publicProp=member,privateProp=member,accessorProp=member,method=publicMethod,publicMember=publicMethod;if(member.static=isStatic,this.parsePropertyNamePrefixOperator(member),this.eat(55)){method.kind="method";const isPrivateName=this.match(134);return this.parseClassElementName(method),isPrivateName?void this.pushClassPrivateMethod(classBody,privateMethod,!0,!1):(this.isNonstaticConstructor(publicMethod)&&this.raise(Errors.ConstructorIsGenerator,{at:publicMethod.key}),void this.pushClassMethod(classBody,publicMethod,!0,!1,!1,!1))}const isContextual=tokenIsIdentifier(this.state.type)&&!this.state.containsEsc,isPrivate=this.match(134),key=this.parseClassElementName(member),maybeQuestionTokenStartLoc=this.state.startLoc;if(this.parsePostMemberNameModifiers(publicMember),this.isClassMethod()){if(method.kind="method",isPrivate)return void this.pushClassPrivateMethod(classBody,privateMethod,!1,!1);const isConstructor=this.isNonstaticConstructor(publicMethod);let allowsDirectSuper=!1;isConstructor&&(publicMethod.kind="constructor",state.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Errors.DuplicateConstructor,{at:key}),isConstructor&&this.hasPlugin("typescript")&&member.override&&this.raise(Errors.OverrideOnConstructor,{at:key}),state.hadConstructor=!0,allowsDirectSuper=state.hadSuperClass),this.pushClassMethod(classBody,publicMethod,!1,!1,isConstructor,allowsDirectSuper);}else if(this.isClassProperty())isPrivate?this.pushClassPrivateProperty(classBody,privateProp):this.pushClassProperty(classBody,publicProp);else if(isContextual&&"async"===key.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(key);const isGenerator=this.eat(55);publicMember.optional&&this.unexpected(maybeQuestionTokenStartLoc),method.kind="method";const isPrivate=this.match(134);this.parseClassElementName(method),this.parsePostMemberNameModifiers(publicMember),isPrivate?this.pushClassPrivateMethod(classBody,privateMethod,isGenerator,!0):(this.isNonstaticConstructor(publicMethod)&&this.raise(Errors.ConstructorIsAsync,{at:publicMethod.key}),this.pushClassMethod(classBody,publicMethod,isGenerator,!0,!1,!1));}else if(!isContextual||"get"!==key.name&&"set"!==key.name||this.match(55)&&this.isLineTerminator())if(isContextual&&"accessor"===key.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(key);const isPrivate=this.match(134);this.parseClassElementName(publicProp),this.pushClassAccessorProperty(classBody,accessorProp,isPrivate);}else this.isLineTerminator()?isPrivate?this.pushClassPrivateProperty(classBody,privateProp):this.pushClassProperty(classBody,publicProp):this.unexpected();else {this.resetPreviousNodeTrailingComments(key),method.kind=key.name;const isPrivate=this.match(134);this.parseClassElementName(publicMethod),isPrivate?this.pushClassPrivateMethod(classBody,privateMethod,!1,!1):(this.isNonstaticConstructor(publicMethod)&&this.raise(Errors.ConstructorIsAccessor,{at:publicMethod.key}),this.pushClassMethod(classBody,publicMethod,!1,!1,!1,!1)),this.checkGetterSetterParams(publicMethod);}}parseClassElementName(member){const{type,value}=this.state;if(128!==type&&129!==type||!member.static||"prototype"!==value||this.raise(Errors.StaticPrototype,{at:this.state.startLoc}),134===type){"constructor"===value&&this.raise(Errors.ConstructorClassPrivateField,{at:this.state.startLoc});const key=this.parsePrivateName();return member.key=key,key}return this.parsePropertyName(member)}parseClassStaticBlock(classBody,member){var _member$decorators;this.scope.enter(208);const oldLabels=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const body=member.body=[];this.parseBlockOrModuleBlockBody(body,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=oldLabels,classBody.body.push(this.finishNode(member,"StaticBlock")),null!=(_member$decorators=member.decorators)&&_member$decorators.length&&this.raise(Errors.DecoratorStaticBlock,{at:member});}pushClassProperty(classBody,prop){prop.computed||"constructor"!==prop.key.name&&"constructor"!==prop.key.value||this.raise(Errors.ConstructorClassField,{at:prop.key}),classBody.body.push(this.parseClassProperty(prop));}pushClassPrivateProperty(classBody,prop){const node=this.parseClassPrivateProperty(prop);classBody.body.push(node),this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),0,node.key.loc.start);}pushClassAccessorProperty(classBody,prop,isPrivate){if(!isPrivate&&!prop.computed){const key=prop.key;"constructor"!==key.name&&"constructor"!==key.value||this.raise(Errors.ConstructorClassField,{at:key});}const node=this.parseClassAccessorProperty(prop);classBody.body.push(node),isPrivate&&this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),0,node.key.loc.start);}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){classBody.body.push(this.parseMethod(method,isGenerator,isAsync,isConstructor,allowsDirectSuper,"ClassMethod",!0));}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){const node=this.parseMethod(method,isGenerator,isAsync,!1,!1,"ClassPrivateMethod",!0);classBody.body.push(node);const kind="get"===node.kind?node.static?6:2:"set"===node.kind?node.static?5:1:0;this.declareClassPrivateMethodInScope(node,kind);}declareClassPrivateMethodInScope(node,kind){this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),kind,node.key.loc.start);}parsePostMemberNameModifiers(methodOrProp){}parseClassPrivateProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassPrivateProperty")}parseClassProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassProperty")}parseClassAccessorProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassAccessorProperty")}parseInitializer(node){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),node.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(node,isStatement,optionalId,bindingType=139){if(tokenIsIdentifier(this.state.type))node.id=this.parseIdentifier(),isStatement&&this.declareNameFromIdentifier(node.id,bindingType);else {if(!optionalId&&isStatement)throw this.raise(Errors.MissingClassName,{at:this.state.startLoc});node.id=null;}}parseClassSuper(node){node.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(node){const hasDefault=this.maybeParseExportDefaultSpecifier(node),parseAfterDefault=!hasDefault||this.eat(12),hasStar=parseAfterDefault&&this.eatExportStar(node),hasNamespace=hasStar&&this.maybeParseExportNamespaceSpecifier(node),parseAfterNamespace=parseAfterDefault&&(!hasNamespace||this.eat(12)),isFromRequired=hasDefault||hasStar;if(hasStar&&!hasNamespace)return hasDefault&&this.unexpected(),this.parseExportFrom(node,!0),this.finishNode(node,"ExportAllDeclaration");const hasSpecifiers=this.maybeParseExportNamedSpecifiers(node);if(hasDefault&&parseAfterDefault&&!hasStar&&!hasSpecifiers||hasNamespace&&parseAfterNamespace&&!hasSpecifiers)throw this.unexpected(null,5);let hasDeclaration;if(isFromRequired||hasSpecifiers?(hasDeclaration=!1,this.parseExportFrom(node,isFromRequired)):hasDeclaration=this.maybeParseExportDeclaration(node),isFromRequired||hasSpecifiers||hasDeclaration)return this.checkExport(node,!0,!1,!!node.source),this.finishNode(node,"ExportNamedDeclaration");if(this.eat(65))return node.declaration=this.parseExportDefaultExpression(),this.checkExport(node,!0,!0),this.finishNode(node,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(node){return this.eat(55)}maybeParseExportDefaultSpecifier(node){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const specifier=this.startNode();return specifier.exported=this.parseIdentifier(!0),node.specifiers=[this.finishNode(specifier,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(node){if(this.isContextual(93)){node.specifiers||(node.specifiers=[]);const specifier=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),specifier.exported=this.parseModuleExportName(),node.specifiers.push(this.finishNode(specifier,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(node){if(this.match(5)){node.specifiers||(node.specifiers=[]);const isTypeExport="type"===node.exportKind;return node.specifiers.push(...this.parseExportSpecifiers(isTypeExport)),node.source=null,node.declaration=null,this.hasPlugin("importAssertions")&&(node.assertions=[]),!0}return !1}maybeParseExportDeclaration(node){return !!this.shouldParseExportDeclaration()&&(node.specifiers=[],node.source=null,this.hasPlugin("importAssertions")&&(node.assertions=[]),node.declaration=this.parseExportDeclaration(node),!0)}isAsyncFunction(){if(!this.isContextual(95))return !1;const next=this.nextTokenStart();return !lineBreak.test(this.input.slice(this.state.pos,next))&&this.isUnparsedContextual(next,"function")}parseExportDefaultExpression(){const expr=this.startNode(),isAsync=this.isAsyncFunction();if(this.match(68)||isAsync)return this.next(),isAsync&&this.next(),this.parseFunction(expr,5,isAsync);if(this.match(80))return this.parseClass(expr,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Errors.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(expr,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Errors.UnsupportedDefaultExport,{at:this.state.startLoc});const res=this.parseMaybeAssignAllowIn();return this.semicolon(),res}parseExportDeclaration(node){return this.parseStatement(null)}isExportDefaultSpecifier(){const{type}=this.state;if(tokenIsIdentifier(type)){if(95===type&&!this.state.containsEsc||99===type)return !1;if((126===type||125===type)&&!this.state.containsEsc){const{type:nextType}=this.lookahead();if(tokenIsIdentifier(nextType)&&97!==nextType||5===nextType)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return !1;const next=this.nextTokenStart(),hasFrom=this.isUnparsedContextual(next,"from");if(44===this.input.charCodeAt(next)||tokenIsIdentifier(this.state.type)&&hasFrom)return !0;if(this.match(65)&&hasFrom){const nextAfterFrom=this.input.charCodeAt(this.nextTokenStartSince(next+4));return 34===nextAfterFrom||39===nextAfterFrom}return !1}parseExportFrom(node,expect){if(this.eatContextual(97)){node.source=this.parseImportSource(),this.checkExport(node);const assertions=this.maybeParseImportAssertions();assertions&&(node.assertions=assertions,this.checkJSONModuleImport(node));}else expect&&this.unexpected();this.semicolon();}shouldParseExportDeclaration(){const{type}=this.state;if(26===type&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(Errors.DecoratorBeforeExport,{at:this.state.startLoc});return !0}return 74===type||75===type||68===type||80===type||this.isLet()||this.isAsyncFunction()}checkExport(node,checkNames,isDefault,isFrom){if(checkNames)if(isDefault){if(this.checkDuplicateExports(node,"default"),this.hasPlugin("exportDefaultFrom")){var _declaration$extra;const declaration=node.declaration;"Identifier"!==declaration.type||"from"!==declaration.name||declaration.end-declaration.start!=4||null!=(_declaration$extra=declaration.extra)&&_declaration$extra.parenthesized||this.raise(Errors.ExportDefaultFromAsIdentifier,{at:declaration});}}else if(node.specifiers&&node.specifiers.length)for(const specifier of node.specifiers){const{exported}=specifier,exportName="Identifier"===exported.type?exported.name:exported.value;if(this.checkDuplicateExports(specifier,exportName),!isFrom&&specifier.local){const{local}=specifier;"Identifier"!==local.type?this.raise(Errors.ExportBindingIsString,{at:specifier,localName:local.value,exportName}):(this.checkReservedWord(local.name,local.loc.start,!0,!1),this.scope.checkLocalExport(local));}}else if(node.declaration)if("FunctionDeclaration"===node.declaration.type||"ClassDeclaration"===node.declaration.type){const id=node.declaration.id;if(!id)throw new Error("Assertion failure");this.checkDuplicateExports(node,id.name);}else if("VariableDeclaration"===node.declaration.type)for(const declaration of node.declaration.declarations)this.checkDeclaration(declaration.id);if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(Errors.UnsupportedDecoratorExport,{at:node})}checkDeclaration(node){if("Identifier"===node.type)this.checkDuplicateExports(node,node.name);else if("ObjectPattern"===node.type)for(const prop of node.properties)this.checkDeclaration(prop);else if("ArrayPattern"===node.type)for(const elem of node.elements)elem&&this.checkDeclaration(elem);else "ObjectProperty"===node.type?this.checkDeclaration(node.value):"RestElement"===node.type?this.checkDeclaration(node.argument):"AssignmentPattern"===node.type&&this.checkDeclaration(node.left);}checkDuplicateExports(node,exportName){this.exportedIdentifiers.has(exportName)&&("default"===exportName?this.raise(Errors.DuplicateDefaultExport,{at:node}):this.raise(Errors.DuplicateExport,{at:node,exportName})),this.exportedIdentifiers.add(exportName);}parseExportSpecifiers(isInTypeExport){const nodes=[];let first=!0;for(this.expect(5);!this.eat(8);){if(first)first=!1;else if(this.expect(12),this.eat(8))break;const isMaybeTypeOnly=this.isContextual(126),isString=this.match(129),node=this.startNode();node.local=this.parseModuleExportName(),nodes.push(this.parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly));}return nodes}parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly){return this.eatContextual(93)?node.exported=this.parseModuleExportName():isString?node.exported=cloneStringLiteral(node.local):node.exported||(node.exported=cloneIdentifier(node.local)),this.finishNode(node,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){const result=this.parseStringLiteral(this.state.value),surrogate=result.value.match(loneSurrogate);return surrogate&&this.raise(Errors.ModuleExportNameHasLoneSurrogate,{at:result,surrogateCharCode:surrogate[0].charCodeAt(0)}),result}return this.parseIdentifier(!0)}isJSONModuleImport(node){return null!=node.assertions&&node.assertions.some((({key,value})=>"json"===value.value&&("Identifier"===key.type?"type"===key.name:"type"===key.value)))}checkJSONModuleImport(node){if(this.isJSONModuleImport(node)&&"ExportAllDeclaration"!==node.type){const{specifiers}=node;if(null!=specifiers){const nonDefaultNamedSpecifier=specifiers.find((specifier=>{let imported;if("ExportSpecifier"===specifier.type?imported=specifier.local:"ImportSpecifier"===specifier.type&&(imported=specifier.imported),void 0!==imported)return "Identifier"===imported.type?"default"!==imported.name:"default"!==imported.value}));void 0!==nonDefaultNamedSpecifier&&this.raise(Errors.ImportJSONBindingNotDefault,{at:nonDefaultNamedSpecifier.loc.start});}}}parseImport(node){if(node.specifiers=[],!this.match(129)){const parseNext=!this.maybeParseDefaultImportSpecifier(node)||this.eat(12),hasStar=parseNext&&this.maybeParseStarImportSpecifier(node);parseNext&&!hasStar&&this.parseNamedImportSpecifiers(node),this.expectContextual(97);}node.source=this.parseImportSource();const assertions=this.maybeParseImportAssertions();if(assertions)node.assertions=assertions;else {const attributes=this.maybeParseModuleAttributes();attributes&&(node.attributes=attributes);}return this.checkJSONModuleImport(node),this.semicolon(),this.finishNode(node,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(node){return tokenIsIdentifier(this.state.type)}parseImportSpecifierLocal(node,specifier,type){specifier.local=this.parseIdentifier(),node.specifiers.push(this.finishImportSpecifier(specifier,type));}finishImportSpecifier(specifier,type,bindingType=9){return this.checkLVal(specifier.local,{in:specifier,binding:bindingType}),this.finishNode(specifier,type)}parseAssertEntries(){const attrs=[],attrNames=new Set;do{if(this.match(8))break;const node=this.startNode(),keyName=this.state.value;if(attrNames.has(keyName)&&this.raise(Errors.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:keyName}),attrNames.add(keyName),this.match(129)?node.key=this.parseStringLiteral(keyName):node.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(Errors.ModuleAttributeInvalidValue,{at:this.state.startLoc});node.value=this.parseStringLiteral(this.state.value),attrs.push(this.finishNode(node,"ImportAttribute"));}while(this.eat(12));return attrs}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const attrs=[],attributes=new Set;do{const node=this.startNode();if(node.key=this.parseIdentifier(!0),"type"!==node.key.name&&this.raise(Errors.ModuleAttributeDifferentFromType,{at:node.key}),attributes.has(node.key.name)&&this.raise(Errors.ModuleAttributesWithDuplicateKeys,{at:node.key,key:node.key.name}),attributes.add(node.key.name),this.expect(14),!this.match(129))throw this.raise(Errors.ModuleAttributeInvalidValue,{at:this.state.startLoc});node.value=this.parseStringLiteral(this.state.value),this.finishNode(node,"ImportAttribute"),attrs.push(node);}while(this.eat(12));return attrs}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);const attrs=this.parseAssertEntries();return this.eat(8),attrs}maybeParseDefaultImportSpecifier(node){return !!this.shouldParseDefaultImport(node)&&(this.parseImportSpecifierLocal(node,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(node){if(this.match(55)){const specifier=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(node,specifier,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(node){let first=!0;for(this.expect(5);!this.eat(8);){if(first)first=!1;else {if(this.eat(14))throw this.raise(Errors.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}const specifier=this.startNode(),importedIsString=this.match(129),isMaybeTypeOnly=this.isContextual(126);specifier.imported=this.parseModuleExportName();const importSpecifier=this.parseImportSpecifier(specifier,importedIsString,"type"===node.importKind||"typeof"===node.importKind,isMaybeTypeOnly,void 0);node.specifiers.push(importSpecifier);}}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly,bindingType){if(this.eatContextual(93))specifier.local=this.parseIdentifier();else {const{imported}=specifier;if(importedIsString)throw this.raise(Errors.ImportBindingIsString,{at:specifier,importName:imported.value});this.checkReservedWord(imported.name,specifier.loc.start,!0,!0),specifier.local||(specifier.local=cloneIdentifier(imported));}return this.finishImportSpecifier(specifier,"ImportSpecifier",bindingType)}isThisParam(param){return "Identifier"===param.type&&"this"===param.name}}{constructor(options,input){super(options=function(opts){const options={};for(const key of Object.keys(defaultOptions))options[key]=opts&&null!=opts[key]?opts[key]:defaultOptions[key];return options}(options),input),this.options=options,this.initializeScopes(),this.plugins=function(plugins){const pluginMap=new Map;for(const plugin of plugins){const[name,options]=Array.isArray(plugin)?plugin:[plugin,{}];pluginMap.has(name)||pluginMap.set(name,options||{});}return pluginMap}(this.options.plugins),this.filename=options.sourceFilename;}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const file=this.startNode(),program=this.startNode();return this.nextToken(),file.errors=null,this.parseTopLevel(file,program),file.errors=this.state.errors,file}}const tokTypes=function(internalTokenTypes){const tokenTypes={};for(const typeName of Object.keys(internalTokenTypes))tokenTypes[typeName]=getExportedToken(internalTokenTypes[typeName]);return tokenTypes}(tt);function getParser(options,input){let cls=Parser;return null!=options&&options.plugins&&(!function(plugins){if(hasPlugin(plugins,"decorators")){if(hasPlugin(plugins,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const decoratorsBeforeExport=getPluginOption(plugins,"decorators","decoratorsBeforeExport");if(null!=decoratorsBeforeExport&&"boolean"!=typeof decoratorsBeforeExport)throw new Error("'decoratorsBeforeExport' must be a boolean.");const allowCallParenthesized=getPluginOption(plugins,"decorators","allowCallParenthesized");if(null!=allowCallParenthesized&&"boolean"!=typeof allowCallParenthesized)throw new Error("'allowCallParenthesized' must be a boolean.")}if(hasPlugin(plugins,"flow")&&hasPlugin(plugins,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(plugins,"placeholders")&&hasPlugin(plugins,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(plugins,"pipelineOperator")){const proposal=getPluginOption(plugins,"pipelineOperator","proposal");if(!PIPELINE_PROPOSALS.includes(proposal)){const proposalList=PIPELINE_PROPOSALS.map((p=>`"${p}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`)}const tupleSyntaxIsHash=hasPlugin(plugins,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===proposal){if(hasPlugin(plugins,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(hasPlugin(plugins,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const topicToken=getPluginOption(plugins,"pipelineOperator","topicToken");if(!TOPIC_TOKENS.includes(topicToken)){const tokenList=TOPIC_TOKENS.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`)}if("#"===topicToken&&tupleSyntaxIsHash)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===proposal&&tupleSyntaxIsHash)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(hasPlugin(plugins,"moduleAttributes")){if(hasPlugin(plugins,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(plugins,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(hasPlugin(plugins,"recordAndTuple")&&null!=getPluginOption(plugins,"recordAndTuple","syntaxType")&&!RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+RECORD_AND_TUPLE_SYNTAX_TYPES.map((p=>`'${p}'`)).join(", "));if(hasPlugin(plugins,"asyncDoExpressions")&&!hasPlugin(plugins,"doExpressions")){const error=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw error.missingPlugins="doExpressions",error}}(options.plugins),cls=function(pluginsFromOptions){const pluginList=mixinPluginNames.filter((name=>hasPlugin(pluginsFromOptions,name))),key=pluginList.join("/");let cls=parserClassCache[key];if(!cls){cls=Parser;for(const plugin of pluginList)cls=mixinPlugins[plugin](cls);parserClassCache[key]=cls;}return cls}(options.plugins)),new cls(options,input)}const parserClassCache={};exports.parse=function(input,options){var _options;if("unambiguous"!==(null==(_options=options)?void 0:_options.sourceType))return getParser(options,input).parse();options=Object.assign({},options);try{options.sourceType="module";const parser=getParser(options,input),ast=parser.parse();if(parser.sawUnambiguousESM)return ast;if(parser.ambiguousScriptDifferentAst)try{return options.sourceType="script",getParser(options,input).parse()}catch(_unused){}else ast.program.sourceType="script";return ast}catch(moduleError){try{return options.sourceType="script",getParser(options,input).parse()}catch(_unused2){}throw moduleError}},exports.parseExpression=function(input,options){const parser=getParser(options,input);return parser.options.strictMode&&(parser.state.strict=!0),parser.getExpression()},exports.tokTypes=tokTypes;},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-decorators/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxDecorators=__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.19.0_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),_helperCreateClassFeaturesPlugin=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),_transformerLegacy=__webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js"),_transformer=__webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-decorators/lib/transformer-2022-03.js"),_default=(0, _helperPluginUtils.declare)(((api,options)=>{api.assertVersion(7);var{legacy}=options;const{version}=options;return legacy||"legacy"===version?{name:"proposal-decorators",inherits:_pluginSyntaxDecorators.default,visitor:_transformerLegacy.default}:"2021-12"===version||"2022-03"===version?(0, _transformer.default)(api,options,version):(0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({name:"proposal-decorators",api,feature:_helperCreateClassFeaturesPlugin.FEATURES.decorators,inherits:_pluginSyntaxDecorators.default})}));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-decorators/lib/transformer-2022-03.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function({assertVersion,assumption},{loose},version){var _assumption;assertVersion("2021-12"===version?"^7.16.0":"^7.19.0");const VISITED=new WeakSet,constantSuper=null!=(_assumption=assumption("constantSuper"))?_assumption:loose;return {name:"proposal-decorators",inherits:_pluginSyntaxDecorators.default,visitor:{"ExportNamedDeclaration|ExportDefaultDeclaration"(path){var _declaration$decorato;const{declaration}=path.node;"ClassDeclaration"===(null==declaration?void 0:declaration.type)&&(null==(_declaration$decorato=declaration.decorators)?void 0:_declaration$decorato.length)>0&&(0, _helperSplitExportDeclaration.default)(path);},Class(path,state){if(VISITED.has(path))return;const newPath=function(path,state,constantSuper,version){const body=path.get("body.body"),classDecorators=path.node.decorators;let hasElementDecorators=!1;const generateClassPrivateUid=function(classPath){let generator;return ()=>(generator||(generator=function(classPath){const currentPrivateId=[],privateNames=new Set;return classPath.traverse({PrivateName(path){privateNames.add(path.node.id.name);}}),()=>{let reifiedId;do{incrementId(currentPrivateId),reifiedId=String.fromCharCode(...currentPrivateId);}while(privateNames.has(reifiedId));return _core.types.privateName(_core.types.identifier(reifiedId))}}(classPath)),generator())}(path);for(const element of body)if(isClassDecoratableElementPath(element))if(element.node.decorators&&element.node.decorators.length>0)hasElementDecorators=!0;else if("ClassAccessorProperty"===element.node.type){const{key,value,static:isStatic,computed}=element.node,newId=generateClassPrivateUid(),newField=generateClassProperty(newId,value?_core.types.cloneNode(value):void 0,isStatic),[newPath]=element.replaceWith(newField);addProxyAccessorsFor(newPath,key,newId,computed);}if(!classDecorators&&!hasElementDecorators)return;const elementDecoratorInfo=[];let firstFieldPath,constructorPath,requiresProtoInit=!1,requiresStaticInit=!1;const decoratedPrivateMethods=new Set;let protoInitLocal,staticInitLocal,classInitLocal,classLocal;const assignments=[],scopeParent=path.scope.parent,memoiseExpression=(expression,hint)=>{const localEvaluatedId=scopeParent.generateDeclaredUidIdentifier(hint);return assignments.push(_core.types.assignmentExpression("=",localEvaluatedId,expression)),_core.types.cloneNode(localEvaluatedId)};if(classDecorators){classInitLocal=scopeParent.generateDeclaredUidIdentifier("initClass");const[localId,classPath]=function(path){if("ClassDeclaration"===path.type){const varId=path.scope.generateUidIdentifierBasedOnNode(path.node.id),classId=_core.types.identifier(path.node.id.name);return path.scope.rename(classId.name,varId.name),path.insertBefore(_core.types.variableDeclaration("let",[_core.types.variableDeclarator(varId)])),path.get("id").replaceWith(classId),[_core.types.cloneNode(varId),path]}{let className,varId;path.node.id?(className=path.node.id.name,varId=path.scope.parent.generateDeclaredUidIdentifier(className),path.scope.rename(className,varId.name)):"VariableDeclarator"===path.parentPath.node.type&&"Identifier"===path.parentPath.node.id.type?(className=path.parentPath.node.id.name,varId=path.scope.parent.generateDeclaredUidIdentifier(className)):varId=path.scope.parent.generateDeclaredUidIdentifier("decorated_class");const newClassExpr=_core.types.classExpression(className&&_core.types.identifier(className),path.node.superClass,path.node.body),[newPath]=path.replaceWith(_core.types.sequenceExpression([newClassExpr,varId]));return [_core.types.cloneNode(varId),newPath.get("expressions.0")]}}(path);classLocal=localId,(path=classPath).node.decorators=null;for(const classDecorator of classDecorators)scopeParent.isStatic(classDecorator.expression)||(classDecorator.expression=memoiseExpression(classDecorator.expression,"dec"));}else path.node.id||(path.node.id=path.scope.generateUidIdentifier("Class")),classLocal=_core.types.cloneNode(path.node.id);if(hasElementDecorators)for(const element of body){if(!isClassDecoratableElementPath(element))continue;const{node}=element,decorators=element.get("decorators"),hasDecorators=Array.isArray(decorators)&&decorators.length>0;if(hasDecorators)for(const decoratorPath of decorators)scopeParent.isStatic(decoratorPath.node.expression)||(decoratorPath.node.expression=memoiseExpression(decoratorPath.node.expression,"dec"));const isComputed="computed"in element.node&&!0===element.node.computed;isComputed&&(scopeParent.isStatic(node.key)||(node.key=memoiseExpression(node.key,"computedKey")));const kind=getElementKind(element),{key}=node,isPrivate="PrivateName"===key.type,isStatic=!!element.node.static;let name="computedKey";if(isPrivate?name=key.id.name:isComputed||"Identifier"!==key.type||(name=key.name),element.isClassMethod({kind:"constructor"})&&(constructorPath=element),hasDecorators){let locals,privateMethods,nameExpr;if(1===kind){const{value}=element.node,params=[_core.types.thisExpression()];value&&params.push(_core.types.cloneNode(value));const newId=generateClassPrivateUid(),newFieldInitId=element.scope.parent.generateDeclaredUidIdentifier(`init_${name}`),newField=generateClassProperty(newId,_core.types.callExpression(_core.types.cloneNode(newFieldInitId),params),isStatic),[newPath]=element.replaceWith(newField);if(isPrivate){privateMethods=extractProxyAccessorsFor(newId);const getId=newPath.scope.parent.generateDeclaredUidIdentifier(`get_${name}`),setId=newPath.scope.parent.generateDeclaredUidIdentifier(`set_${name}`);addCallAccessorsFor(newPath,key,getId,setId),locals=[newFieldInitId,getId,setId];}else addProxyAccessorsFor(newPath,key,newId,isComputed),locals=newFieldInitId;}else if(0===kind){const initId=element.scope.parent.generateDeclaredUidIdentifier(`init_${name}`),valuePath=element.get("value");valuePath.replaceWith(_core.types.callExpression(_core.types.cloneNode(initId),[_core.types.thisExpression(),valuePath.node].filter((v=>v)))),locals=initId,isPrivate&&(privateMethods=extractProxyAccessorsFor(key));}else if(isPrivate){locals=element.scope.parent.generateDeclaredUidIdentifier(`call_${name}`);new _helperReplaceSupers.default({constantSuper,methodPath:element,objectRef:classLocal,superRef:path.node.superClass,file:state.file,refToPreserve:classLocal}).replace();const{params,body,async:isAsync}=element.node;if(privateMethods=_core.types.functionExpression(void 0,params.filter(isNotTsParameter),body,isAsync),3===kind||4===kind)movePrivateAccessor(element,_core.types.cloneNode(key),_core.types.cloneNode(locals),isStatic);else {const node=element.node;path.node.body.body.unshift(_core.types.classPrivateProperty(key,_core.types.cloneNode(locals),[],node.static)),decoratedPrivateMethods.add(key.id.name),element.remove();}}nameExpr=isComputed?_core.types.cloneNode(key):"PrivateName"===key.type?_core.types.stringLiteral(key.id.name):"Identifier"===key.type?_core.types.stringLiteral(key.name):_core.types.cloneNode(key),elementDecoratorInfo.push({kind,decorators:decorators.map((d=>d.node.expression)),name:nameExpr,isStatic,privateMethods,locals}),0!==kind&&(isStatic?requiresStaticInit=!0:requiresProtoInit=!0),element.node&&(element.node.decorators=null),firstFieldPath||0!==kind&&1!==kind||(firstFieldPath=element);}}const elementDecorations=(info=elementDecoratorInfo,_core.types.arrayExpression(filteredOrderedDecoratorInfo(info).map((el=>{const decs=el.decorators.length>1?_core.types.arrayExpression(el.decorators):el.decorators[0],kind=el.isStatic?el.kind+5:el.kind,decInfo=[decs,_core.types.numericLiteral(kind),el.name],{privateMethods}=el;return Array.isArray(privateMethods)?decInfo.push(...privateMethods):privateMethods&&decInfo.push(privateMethods),_core.types.arrayExpression(decInfo)})))),classDecorations=_core.types.arrayExpression((classDecorators||[]).map((d=>d.expression))),locals=function(decorationInfo){const localIds=[];for(const el of filteredOrderedDecoratorInfo(decorationInfo)){const{locals}=el;Array.isArray(locals)?localIds.push(...locals):void 0!==locals&&localIds.push(locals);}return localIds}(elementDecoratorInfo);var info;if(requiresProtoInit){protoInitLocal=scopeParent.generateDeclaredUidIdentifier("initProto"),locals.push(protoInitLocal);const protoInitCall=_core.types.callExpression(_core.types.cloneNode(protoInitLocal),[_core.types.thisExpression()]);if(firstFieldPath){const value=firstFieldPath.get("value"),body=[protoInitCall];value.node&&body.push(value.node),value.replaceWith(_core.types.sequenceExpression(body));}else if(constructorPath)path.node.superClass?path.traverse({CallExpression:{exit(path){path.get("callee").isSuper()&&(path.replaceWith(_core.types.callExpression(_core.types.cloneNode(protoInitLocal),[path.node])),path.skip());}}}):constructorPath.node.body.body.unshift(_core.types.expressionStatement(protoInitCall));else {const body=[_core.types.expressionStatement(protoInitCall)];path.node.superClass&&body.unshift(_core.types.expressionStatement(_core.types.callExpression(_core.types.super(),[_core.types.spreadElement(_core.types.identifier("args"))]))),path.node.body.body.unshift(_core.types.classMethod("constructor",_core.types.identifier("constructor"),[_core.types.restElement(_core.types.identifier("args"))],_core.types.blockStatement(body)));}}requiresStaticInit&&(staticInitLocal=scopeParent.generateDeclaredUidIdentifier("initStatic"),locals.push(staticInitLocal));decoratedPrivateMethods.size>0&&path.traverse({PrivateName(path){if(!decoratedPrivateMethods.has(path.node.id.name))return;const parentPath=path.parentPath,parentParentPath=parentPath.parentPath;if("AssignmentExpression"===parentParentPath.node.type&&parentParentPath.node.left===parentPath.node||"UpdateExpression"===parentParentPath.node.type||"RestElement"===parentParentPath.node.type||"ArrayPattern"===parentParentPath.node.type||"ObjectProperty"===parentParentPath.node.type&&parentParentPath.node.value===parentPath.node&&"ObjectPattern"===parentParentPath.parentPath.type||"ForOfStatement"===parentParentPath.node.type&&parentParentPath.node.left===parentPath.node)throw path.buildCodeFrameError(`Decorated private methods are not updatable, but "#${path.node.id.name}" is updated via this expression.`)}});let classInitInjected=!1;const classInitCall=classInitLocal&&_core.types.callExpression(_core.types.cloneNode(classInitLocal),[]),originalClass=path.node;if(classDecorators){locals.push(classLocal,classInitLocal);const statics=[];let staticBlocks=[];if(path.get("body.body").forEach((element=>{if(element.isStaticBlock())return staticBlocks.push(element.node),void element.remove();const isProperty=element.isClassProperty()||element.isClassPrivateProperty();if((isProperty||element.isClassPrivateMethod())&&element.node.static){if(isProperty&&staticBlocks.length>0){const allValues=staticBlocks.map(staticBlockToIIFE);element.node.value&&allValues.push(element.node.value),element.node.value=0===(exprs=allValues).length?_core.types.unaryExpression("void",_core.types.numericLiteral(0)):1===exprs.length?exprs[0]:_core.types.sequenceExpression(exprs),staticBlocks=[];}element.node.static=!1,statics.push(element.node),element.remove();}var exprs;})),statics.length>0||staticBlocks.length>0){const staticsClass=_core.template.expression.ast`
2305 class extends ${state.addHelper("identity")} {}
2306 `;staticsClass.body.body=[_core.types.staticBlock([_core.types.toStatement(path.node,!1)]),...statics];const constructorBody=[],newExpr=_core.types.newExpression(staticsClass,[]);staticBlocks.length>0&&constructorBody.push(...staticBlocks.map(staticBlockToIIFE)),classInitCall&&(classInitInjected=!0,constructorBody.push(classInitCall)),constructorBody.length>0?(constructorBody.unshift(_core.types.callExpression(_core.types.super(),[_core.types.cloneNode(classLocal)])),staticsClass.body.body.push(_core.types.classMethod("constructor",_core.types.identifier("constructor"),[],_core.types.blockStatement([_core.types.expressionStatement(_core.types.sequenceExpression(constructorBody))])))):newExpr.arguments.push(_core.types.cloneNode(classLocal)),path.replaceWith(newExpr);}}!classInitInjected&&classInitCall&&path.node.body.body.push(_core.types.staticBlock([_core.types.expressionStatement(classInitCall)]));return originalClass.body.body.unshift(_core.types.staticBlock([_core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.arrayPattern(locals),_core.types.callExpression(state.addHelper("2021-12"===version?"applyDecs":"applyDecs2203"),[_core.types.thisExpression(),elementDecorations,classDecorations]))),requiresStaticInit&&_core.types.expressionStatement(_core.types.callExpression(_core.types.cloneNode(staticInitLocal),[_core.types.thisExpression()]))].filter(Boolean))),path.insertBefore(assignments.map((expr=>_core.types.expressionStatement(expr)))),path.scope.crawl(),path}(path,state,constantSuper,version);newPath&&VISITED.add(newPath);}}}};var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_pluginSyntaxDecorators=__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.19.0_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),_helperReplaceSupers=__webpack_require__("./node_modules/.pnpm/@babel+helper-replace-supers@7.19.1/node_modules/@babel/helper-replace-supers/lib/index.js"),_helperSplitExportDeclaration=__webpack_require__("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js");function incrementId(id,idx=id.length-1){if(-1===idx)return void id.unshift(65);const current=id[idx];90===current?id[idx]=97:122===current?(id[idx]=65,incrementId(id,idx-1)):id[idx]=current+1;}function generateClassProperty(key,value,isStatic){return "PrivateName"===key.type?_core.types.classPrivateProperty(key,value,void 0,isStatic):_core.types.classProperty(key,value,void 0,void 0,isStatic)}function addProxyAccessorsFor(element,originalKey,targetKey,isComputed=!1){const{static:isStatic}=element.node,getterBody=_core.types.blockStatement([_core.types.returnStatement(_core.types.memberExpression(_core.types.thisExpression(),_core.types.cloneNode(targetKey)))]),setterBody=_core.types.blockStatement([_core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.memberExpression(_core.types.thisExpression(),_core.types.cloneNode(targetKey)),_core.types.identifier("v")))]);let getter,setter;"PrivateName"===originalKey.type?(getter=_core.types.classPrivateMethod("get",_core.types.cloneNode(originalKey),[],getterBody,isStatic),setter=_core.types.classPrivateMethod("set",_core.types.cloneNode(originalKey),[_core.types.identifier("v")],setterBody,isStatic)):(getter=_core.types.classMethod("get",_core.types.cloneNode(originalKey),[],getterBody,isComputed,isStatic),setter=_core.types.classMethod("set",_core.types.cloneNode(originalKey),[_core.types.identifier("v")],setterBody,isComputed,isStatic)),element.insertAfter(setter),element.insertAfter(getter);}function extractProxyAccessorsFor(targetKey){return [_core.types.functionExpression(void 0,[],_core.types.blockStatement([_core.types.returnStatement(_core.types.memberExpression(_core.types.thisExpression(),_core.types.cloneNode(targetKey)))])),_core.types.functionExpression(void 0,[_core.types.identifier("value")],_core.types.blockStatement([_core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.memberExpression(_core.types.thisExpression(),_core.types.cloneNode(targetKey)),_core.types.identifier("value")))]))]}function getElementKind(element){switch(element.node.type){case"ClassProperty":case"ClassPrivateProperty":return 0;case"ClassAccessorProperty":return 1;case"ClassMethod":case"ClassPrivateMethod":return "get"===element.node.kind?3:"set"===element.node.kind?4:2}}function isDecoratorInfo(info){return "decorators"in info}function filteredOrderedDecoratorInfo(info){const filtered=info.filter(isDecoratorInfo);return [...filtered.filter((el=>el.isStatic&&el.kind>=1&&el.kind<=4)),...filtered.filter((el=>!el.isStatic&&el.kind>=1&&el.kind<=4)),...filtered.filter((el=>el.isStatic&&0===el.kind)),...filtered.filter((el=>!el.isStatic&&0===el.kind))]}function addCallAccessorsFor(element,key,getId,setId){element.insertAfter(_core.types.classPrivateMethod("get",_core.types.cloneNode(key),[],_core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.cloneNode(getId),[_core.types.thisExpression()]))]))),element.insertAfter(_core.types.classPrivateMethod("set",_core.types.cloneNode(key),[_core.types.identifier("v")],_core.types.blockStatement([_core.types.expressionStatement(_core.types.callExpression(_core.types.cloneNode(setId),[_core.types.thisExpression(),_core.types.identifier("v")]))])));}function isNotTsParameter(node){return "TSParameterProperty"!==node.type}function movePrivateAccessor(element,key,methodLocalVar,isStatic){let params,block;"set"===element.node.kind?(params=[_core.types.identifier("v")],block=[_core.types.expressionStatement(_core.types.callExpression(methodLocalVar,[_core.types.thisExpression(),_core.types.identifier("v")]))]):(params=[],block=[_core.types.returnStatement(_core.types.callExpression(methodLocalVar,[_core.types.thisExpression()]))]),element.replaceWith(_core.types.classPrivateMethod(element.node.kind,_core.types.cloneNode(key),params,_core.types.blockStatement(block),isStatic));}function isClassDecoratableElementPath(path){const{type}=path;return "TSDeclareMethod"!==type&&"TSIndexSignature"!==type&&"StaticBlock"!==type}function staticBlockToIIFE(block){return _core.types.callExpression(_core.types.arrowFunctionExpression([],_core.types.blockStatement(block.body)),[])}},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js");const buildClassDecorator=_core.template.statement("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),buildClassPrototype=(0, _core.template)("\n CLASS_REF.prototype;\n"),buildGetDescriptor=(0, _core.template)("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),buildGetObjectInitializer=(0, _core.template)("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),WARNING_CALLS=new WeakSet;function applyEnsureOrdering(path){const identDecorators=(path.isClass()?[path,...path.get("body.body")]:path.get("properties")).reduce(((acc,prop)=>acc.concat(prop.node.decorators||[])),[]).filter((decorator=>!_core.types.isIdentifier(decorator.expression)));if(0!==identDecorators.length)return _core.types.sequenceExpression(identDecorators.map((decorator=>{const expression=decorator.expression,id=decorator.expression=path.scope.generateDeclaredUidIdentifier("dec");return _core.types.assignmentExpression("=",id,expression)})).concat([path.node]))}function hasClassDecorators(classNode){return !(!classNode.decorators||!classNode.decorators.length)}function hasMethodDecorators(body){return body.some((node=>{var _node$decorators;return null==(_node$decorators=node.decorators)?void 0:_node$decorators.length}))}function applyTargetDecorators(path,state,decoratedProps){const name=path.scope.generateDeclaredUidIdentifier(path.isClass()?"class":"obj"),exprs=decoratedProps.reduce((function(acc,node){let decorators=[];if(null!=node.decorators&&(decorators=node.decorators,node.decorators=null),0===decorators.length)return acc;if(node.computed)throw path.buildCodeFrameError("Computed method/property decorators are not yet supported.");const property=_core.types.isLiteral(node.key)?node.key:_core.types.stringLiteral(node.key.name),target=path.isClass()&&!node.static?buildClassPrototype({CLASS_REF:name}).expression:name;if(_core.types.isClassProperty(node,{static:!1})){const descriptor=path.scope.generateDeclaredUidIdentifier("descriptor"),initializer=node.value?_core.types.functionExpression(null,[],_core.types.blockStatement([_core.types.returnStatement(node.value)])):_core.types.nullLiteral();node.value=_core.types.callExpression(state.addHelper("initializerWarningHelper"),[descriptor,_core.types.thisExpression()]),WARNING_CALLS.add(node.value),acc.push(_core.types.assignmentExpression("=",_core.types.cloneNode(descriptor),_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"),[_core.types.cloneNode(target),_core.types.cloneNode(property),_core.types.arrayExpression(decorators.map((dec=>_core.types.cloneNode(dec.expression)))),_core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"),_core.types.booleanLiteral(!0)),_core.types.objectProperty(_core.types.identifier("enumerable"),_core.types.booleanLiteral(!0)),_core.types.objectProperty(_core.types.identifier("writable"),_core.types.booleanLiteral(!0)),_core.types.objectProperty(_core.types.identifier("initializer"),initializer)])])));}else acc.push(_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"),[_core.types.cloneNode(target),_core.types.cloneNode(property),_core.types.arrayExpression(decorators.map((dec=>_core.types.cloneNode(dec.expression)))),_core.types.isObjectProperty(node)||_core.types.isClassProperty(node,{static:!0})?buildGetObjectInitializer({TEMP:path.scope.generateDeclaredUidIdentifier("init"),TARGET:_core.types.cloneNode(target),PROPERTY:_core.types.cloneNode(property)}).expression:buildGetDescriptor({TARGET:_core.types.cloneNode(target),PROPERTY:_core.types.cloneNode(property)}).expression,_core.types.cloneNode(target)]));return acc}),[]);return _core.types.sequenceExpression([_core.types.assignmentExpression("=",_core.types.cloneNode(name),path.node),_core.types.sequenceExpression(exprs),_core.types.cloneNode(name)])}function decoratedClassToExpression({node,scope}){if(!hasClassDecorators(node)&&!hasMethodDecorators(node.body.body))return;const ref=node.id?_core.types.cloneNode(node.id):scope.generateUidIdentifier("class");return _core.types.variableDeclaration("let",[_core.types.variableDeclarator(ref,_core.types.toExpression(node))])}var _default={ExportDefaultDeclaration(path){const decl=path.get("declaration");if(!decl.isClassDeclaration())return;const replacement=decoratedClassToExpression(decl);if(replacement){const[varDeclPath]=path.replaceWithMultiple([replacement,_core.types.exportNamedDeclaration(null,[_core.types.exportSpecifier(_core.types.cloneNode(replacement.declarations[0].id),_core.types.identifier("default"))])]);decl.node.id||path.scope.registerDeclaration(varDeclPath);}},ClassDeclaration(path){const replacement=decoratedClassToExpression(path);replacement&&path.replaceWith(replacement);},ClassExpression(path,state){const decoratedClass=applyEnsureOrdering(path)||function(classPath){if(!hasClassDecorators(classPath.node))return;const decorators=classPath.node.decorators||[];classPath.node.decorators=null;const name=classPath.scope.generateDeclaredUidIdentifier("class");return decorators.map((dec=>dec.expression)).reverse().reduce((function(acc,decorator){return buildClassDecorator({CLASS_REF:_core.types.cloneNode(name),DECORATOR:_core.types.cloneNode(decorator),INNER:acc}).expression}),classPath.node)}(path)||function(path,state){if(hasMethodDecorators(path.node.body.body))return applyTargetDecorators(path,state,path.node.body.body)}(path,state);decoratedClass&&path.replaceWith(decoratedClass);},ObjectExpression(path,state){const decoratedObject=applyEnsureOrdering(path)||function(path,state){if(hasMethodDecorators(path.node.properties))return applyTargetDecorators(path,state,path.node.properties.filter((prop=>"SpreadElement"!==prop.type)))}(path,state);decoratedObject&&path.replaceWith(decoratedObject);},AssignmentExpression(path,state){WARNING_CALLS.has(path.node.right)&&path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"),[_core.types.cloneNode(path.get("left.object").node),_core.types.stringLiteral(path.get("left.property").node.name||path.get("left.property").node.value),_core.types.cloneNode(path.get("right.arguments")[0].node),_core.types.cloneNode(path.get("right.arguments")[1].node)]));},CallExpression(path,state){3===path.node.arguments.length&&WARNING_CALLS.has(path.node.arguments[2])&&path.node.callee.name===state.addHelper("defineProperty").name&&path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"),[_core.types.cloneNode(path.get("arguments")[0].node),_core.types.cloneNode(path.get("arguments")[1].node),_core.types.cloneNode(path.get("arguments.2.arguments")[0].node),_core.types.cloneNode(path.get("arguments.2.arguments")[1].node)]));}};exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-proposal-export-namespace-from@7.18.9_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-export-namespace-from/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxExportNamespaceFrom=__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js"),_core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_default=(0, _helperPluginUtils.declare)((api=>(api.assertVersion(7),{name:"proposal-export-namespace-from",inherits:_pluginSyntaxExportNamespaceFrom.default,visitor:{ExportNamedDeclaration(path){var _exported$name;const{node,scope}=path,{specifiers}=node,index=_core.types.isExportDefaultSpecifier(specifiers[0])?1:0;if(!_core.types.isExportNamespaceSpecifier(specifiers[index]))return;const nodes=[];1===index&&nodes.push(_core.types.exportNamedDeclaration(null,[specifiers.shift()],node.source));const specifier=specifiers.shift(),{exported}=specifier,uid=scope.generateUidIdentifier(null!=(_exported$name=exported.name)?_exported$name:exported.value);nodes.push(_core.types.importDeclaration([_core.types.importNamespaceSpecifier(uid)],_core.types.cloneNode(node.source)),_core.types.exportNamedDeclaration(null,[_core.types.exportSpecifier(_core.types.cloneNode(uid),exported)])),node.specifiers.length>=1&&nodes.push(node);const[importDeclaration]=path.replaceWithMultiple(nodes);path.scope.registerDeclaration(importDeclaration);}}})));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-proposal-nullish-coalescing-operator@7.18.6_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.18.9/node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxNullishCoalescingOperator=__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js"),_core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_default=(0, _helperPluginUtils.declare)(((api,{loose=!1})=>{var _api$assumption;api.assertVersion(7);const noDocumentAll=null!=(_api$assumption=api.assumption("noDocumentAll"))?_api$assumption:loose;return {name:"proposal-nullish-coalescing-operator",inherits:_pluginSyntaxNullishCoalescingOperator.default,visitor:{LogicalExpression(path){const{node,scope}=path;if("??"!==node.operator)return;let ref,assignment;if(scope.isStatic(node.left))ref=node.left,assignment=_core.types.cloneNode(node.left);else {if(scope.path.isPattern())return void path.replaceWith(_core.template.statement.ast`(() => ${path.node})()`);ref=scope.generateUidIdentifierBasedOnNode(node.left),scope.push({id:_core.types.cloneNode(ref)}),assignment=_core.types.assignmentExpression("=",ref,node.left);}path.replaceWith(_core.types.conditionalExpression(noDocumentAll?_core.types.binaryExpression("!=",assignment,_core.types.nullLiteral()):_core.types.logicalExpression("&&",_core.types.binaryExpression("!==",assignment,_core.types.nullLiteral()),_core.types.binaryExpression("!==",_core.types.cloneNode(ref),scope.buildUndefinedNode())),_core.types.cloneNode(ref),node.right));}}}}));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-proposal-optional-chaining@7.18.9_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var helperPluginUtils=__webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.18.9/node_modules/@babel/helper-plugin-utils/lib/index.js"),syntaxOptionalChaining=__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js"),core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),helperSkipTransparentExpressionWrappers=__webpack_require__("./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.18.9/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var syntaxOptionalChaining__default=_interopDefaultLegacy(syntaxOptionalChaining);function willPathCastToBoolean(path){const maybeWrapped=findOutermostTransparentParent(path),{node,parentPath}=maybeWrapped;if(parentPath.isLogicalExpression()){const{operator,right}=parentPath.node;if("&&"===operator||"||"===operator||"??"===operator&&node===right)return willPathCastToBoolean(parentPath)}if(parentPath.isSequenceExpression()){const{expressions}=parentPath.node;return expressions[expressions.length-1]!==node||willPathCastToBoolean(parentPath)}return parentPath.isConditional({test:node})||parentPath.isUnaryExpression({operator:"!"})||parentPath.isLoop({test:node})}function findOutermostTransparentParent(path){let maybeWrapped=path;return path.findParent((p=>{if(!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p.node))return !0;maybeWrapped=p;})),maybeWrapped}const{ast}=core.template.expression;function isSimpleMemberExpression(expression){return expression=helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression),core.types.isIdentifier(expression)||core.types.isSuper(expression)||core.types.isMemberExpression(expression)&&!expression.computed&&isSimpleMemberExpression(expression.object)}function transform(path,{pureGetters,noDocumentAll}){const{scope}=path,maybeWrapped=findOutermostTransparentParent(path),{parentPath}=maybeWrapped,willReplacementCastToBoolean=willPathCastToBoolean(maybeWrapped);let isDeleteOperation=!1;const parentIsCall=parentPath.isCallExpression({callee:maybeWrapped.node})&&path.isOptionalMemberExpression(),optionals=[];let optionalPath=path;if(scope.path.isPattern()&&function(path){let optionalPath=path;const{scope}=path;for(;optionalPath.isOptionalMemberExpression()||optionalPath.isOptionalCallExpression();){const{node}=optionalPath,childPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.isOptionalMemberExpression()?optionalPath.get("object"):optionalPath.get("callee"));if(node.optional)return !scope.isStatic(childPath.node);optionalPath=childPath;}}(optionalPath))return void path.replaceWith(core.template.ast`(() => ${path.node})()`);for(;optionalPath.isOptionalMemberExpression()||optionalPath.isOptionalCallExpression();){const{node}=optionalPath;node.optional&&optionals.push(node),optionalPath.isOptionalMemberExpression()?(optionalPath.node.type="MemberExpression",optionalPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object"))):optionalPath.isOptionalCallExpression()&&(optionalPath.node.type="CallExpression",optionalPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")));}let replacementPath=path;parentPath.isUnaryExpression({operator:"delete"})&&(replacementPath=parentPath,isDeleteOperation=!0);for(let i=optionals.length-1;i>=0;i--){const node=optionals[i],isCall=core.types.isCallExpression(node),chainWithTypes=isCall?node.callee:node.object,chain=helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);let ref,check;if(isCall&&core.types.isIdentifier(chain,{name:"eval"})?(check=ref=chain,node.callee=core.types.sequenceExpression([core.types.numericLiteral(0),ref])):pureGetters&&isCall&&isSimpleMemberExpression(chain)?check=ref=node.callee:(ref=scope.maybeGenerateMemoised(chain),ref?(check=core.types.assignmentExpression("=",core.types.cloneNode(ref),chainWithTypes),isCall?node.callee=ref:node.object=ref):check=ref=chainWithTypes),isCall&&core.types.isMemberExpression(chain))if(pureGetters&&isSimpleMemberExpression(chain))node.callee=chainWithTypes;else {const{object}=chain;let context;if(core.types.isSuper(object))context=core.types.thisExpression();else {const memoized=scope.maybeGenerateMemoised(object);memoized?(context=memoized,chain.object=core.types.assignmentExpression("=",memoized,object)):context=object;}node.arguments.unshift(core.types.cloneNode(context)),node.callee=core.types.memberExpression(node.callee,core.types.identifier("call"));}let replacement=replacementPath.node;if(0===i&&parentIsCall){var _baseRef;const object=helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object);let baseRef;pureGetters&&isSimpleMemberExpression(object)||(baseRef=scope.maybeGenerateMemoised(object),baseRef&&(replacement.object=core.types.assignmentExpression("=",baseRef,object))),replacement=core.types.callExpression(core.types.memberExpression(replacement,core.types.identifier("bind")),[core.types.cloneNode(null!=(_baseRef=baseRef)?_baseRef:object)]);}if(willReplacementCastToBoolean){const nonNullishCheck=noDocumentAll?ast`${core.types.cloneNode(check)} != null`:ast`
2307 ${core.types.cloneNode(check)} !== null && ${core.types.cloneNode(ref)} !== void 0`;replacementPath.replaceWith(core.types.logicalExpression("&&",nonNullishCheck,replacement)),replacementPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(replacementPath.get("right"));}else {const nullishCheck=noDocumentAll?ast`${core.types.cloneNode(check)} == null`:ast`
2308 ${core.types.cloneNode(check)} === null || ${core.types.cloneNode(ref)} === void 0`,returnValue=isDeleteOperation?ast`true`:ast`void 0`;replacementPath.replaceWith(core.types.conditionalExpression(nullishCheck,returnValue,replacement)),replacementPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(replacementPath.get("alternate"));}}}var index=helperPluginUtils.declare(((api,options)=>{var _api$assumption,_api$assumption2;api.assertVersion(7);const{loose=!1}=options,noDocumentAll=null!=(_api$assumption=api.assumption("noDocumentAll"))?_api$assumption:loose,pureGetters=null!=(_api$assumption2=api.assumption("pureGetters"))?_api$assumption2:loose;return {name:"proposal-optional-chaining",inherits:syntaxOptionalChaining__default.default.default,visitor:{"OptionalCallExpression|OptionalMemberExpression"(path){transform(path,{noDocumentAll,pureGetters});}}}}));exports.default=index,exports.transform=transform;},"./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.19.0_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-decorators/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(((api,options)=>{api.assertVersion(7);let{version}=options;{const{legacy}=options;if(void 0!==legacy){if("boolean"!=typeof legacy)throw new Error(".legacy must be a boolean.");if(void 0!==version)throw new Error("You can either use the .legacy or the .version option, not both.")}if(void 0===version)version=legacy?"legacy":"2018-09";else if("2022-03"!==version&&"2021-12"!==version&&"2018-09"!==version&&"legacy"!==version)throw new Error("Unsupported decorators version: "+version);var{decoratorsBeforeExport}=options;if(void 0===decoratorsBeforeExport){if("2021-12"===version||"2022-03"===version)decoratorsBeforeExport=!1;else if("2018-09"===version)throw new Error("The decorators plugin, when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean.")}else {if("legacy"===version||"2022-03"===version)throw new Error(`'decoratorsBeforeExport' can't be used with ${version} decorators.`);if("boolean"!=typeof decoratorsBeforeExport)throw new Error("'decoratorsBeforeExport' must be a boolean.")}}return {name:"syntax-decorators",manipulateOptions({generatorOpts},parserOpts){"legacy"===version?parserOpts.plugins.push("decorators-legacy"):"2022-03"===version?parserOpts.plugins.push(["decorators",{decoratorsBeforeExport:!1,allowCallParenthesized:!1}],"decoratorAutoAccessors"):"2021-12"===version?(parserOpts.plugins.push(["decorators",{decoratorsBeforeExport}],"decoratorAutoAccessors"),generatorOpts.decoratorsBeforeExport=decoratorsBeforeExport):"2018-09"===version&&(parserOpts.plugins.push(["decorators",{decoratorsBeforeExport}]),generatorOpts.decoratorsBeforeExport=decoratorsBeforeExport);}}}));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-syntax-typescript@7.18.6_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-typescript/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{function removePlugin(plugins,name){const indices=[];plugins.forEach(((plugin,i)=>{(Array.isArray(plugin)?plugin[0]:plugin)===name&&indices.unshift(i);}));for(const i of indices)plugins.splice(i,1);}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(((api,{isTSX,disallowAmbiguousJSXLike})=>(api.assertVersion(7),{name:"syntax-typescript",manipulateOptions(opts,parserOpts){const{plugins}=parserOpts;removePlugin(plugins,"flow"),removePlugin(plugins,"jsx"),plugins.push(["typescript",{disallowAmbiguousJSXLike}],"classProperties"),plugins.push("objectRestSpread"),isTSX&&plugins.push("jsx");}})));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.18.6_@babel+core@7.19.1/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.18.9/node_modules/@babel/helper-plugin-utils/lib/index.js"),_helperModuleTransforms=__webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.18.9/node_modules/@babel/helper-module-transforms/lib/index.js"),_helperSimpleAccess=__webpack_require__("./node_modules/.pnpm/@babel+helper-simple-access@7.18.6/node_modules/@babel/helper-simple-access/lib/index.js"),_core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_utils=__webpack_require__("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/utils.js"),_default=(0, _helperPluginUtils.declare)(((api,options)=>{var _api$assumption,_api$assumption2,_api$assumption3;api.assertVersion(7);const transformImportCall=(0, _utils.createDynamicImportTransform)(api),{strictNamespace=!1,mjsStrictNamespace=strictNamespace,allowTopLevelThis,strict,strictMode,noInterop,importInterop,lazy=!1,allowCommonJSExports=!0,loose=!1}=options,constantReexports=null!=(_api$assumption=api.assumption("constantReexports"))?_api$assumption:loose,enumerableModuleMeta=null!=(_api$assumption2=api.assumption("enumerableModuleMeta"))?_api$assumption2:loose,noIncompleteNsImportDetection=null!=(_api$assumption3=api.assumption("noIncompleteNsImportDetection"))&&_api$assumption3;if(!("boolean"==typeof lazy||"function"==typeof lazy||Array.isArray(lazy)&&lazy.every((item=>"string"==typeof item))))throw new Error(".lazy must be a boolean, array of strings, or a function");if("boolean"!=typeof strictNamespace)throw new Error(".strictNamespace must be a boolean, or undefined");if("boolean"!=typeof mjsStrictNamespace)throw new Error(".mjsStrictNamespace must be a boolean, or undefined");const getAssertion=localName=>_core.template.expression.ast`
2309 (function(){
2310 throw new Error(
2311 "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." +
2312 "Consider setting setting sourceType:script or sourceType:unambiguous in your " +
2313 "Babel config for this file.");
2314 })()
2315 `,moduleExportsVisitor={ReferencedIdentifier(path){const localName=path.node.name;if("module"!==localName&&"exports"!==localName)return;const localBinding=path.scope.getBinding(localName);this.scope.getBinding(localName)!==localBinding||path.parentPath.isObjectProperty({value:path.node})&&path.parentPath.parentPath.isObjectPattern()||path.parentPath.isAssignmentExpression({left:path.node})||path.isAssignmentExpression({left:path.node})||path.replaceWith(getAssertion(localName));},UpdateExpression(path){const arg=path.get("argument");if(!arg.isIdentifier())return;const localName=arg.node.name;if("module"!==localName&&"exports"!==localName)return;const localBinding=path.scope.getBinding(localName);this.scope.getBinding(localName)===localBinding&&path.replaceWith(_core.types.assignmentExpression(path.node.operator[0]+"=",arg.node,getAssertion(localName)));},AssignmentExpression(path){const left=path.get("left");if(left.isIdentifier()){const localName=left.node.name;if("module"!==localName&&"exports"!==localName)return;const localBinding=path.scope.getBinding(localName);if(this.scope.getBinding(localName)!==localBinding)return;const right=path.get("right");right.replaceWith(_core.types.sequenceExpression([right.node,getAssertion(localName)]));}else if(left.isPattern()){const ids=left.getOuterBindingIdentifiers(),localName=Object.keys(ids).filter((localName=>("module"===localName||"exports"===localName)&&this.scope.getBinding(localName)===path.scope.getBinding(localName)))[0];if(localName){const right=path.get("right");right.replaceWith(_core.types.sequenceExpression([right.node,getAssertion(localName)]));}}}};return {name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs");},visitor:{CallExpression(path){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(!path.get("callee").isImport())return;let{scope}=path;do{scope.rename("require");}while(scope=scope.parent);transformImportCall(this,path.get("callee"));},Program:{exit(path,state){if(!(0, _helperModuleTransforms.isModule)(path))return;path.scope.rename("exports"),path.scope.rename("module"),path.scope.rename("require"),path.scope.rename("__filename"),path.scope.rename("__dirname"),allowCommonJSExports||((0, _helperSimpleAccess.default)(path,new Set(["module","exports"]),!1),path.traverse(moduleExportsVisitor,{scope:path.scope}));let moduleName=(0, _helperModuleTransforms.getModuleName)(this.file.opts,options);moduleName&&(moduleName=_core.types.stringLiteral(moduleName));const{meta,headers}=(0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path,{exportName:"exports",constantReexports,enumerableModuleMeta,strict,strictMode,allowTopLevelThis,noInterop,importInterop,lazy,esNamespaceOnly:"string"==typeof state.filename&&/\.mjs$/.test(state.filename)?mjsStrictNamespace:strictNamespace,noIncompleteNsImportDetection,filename:this.file.opts.filename});for(const[source,metadata]of meta.source){const loadExpr=_core.types.callExpression(_core.types.identifier("require"),[_core.types.stringLiteral(source)]);let header;if((0, _helperModuleTransforms.isSideEffectImport)(metadata)){if(metadata.lazy)throw new Error("Assertion failure");header=_core.types.expressionStatement(loadExpr);}else {const init=(0, _helperModuleTransforms.wrapInterop)(path,loadExpr,metadata.interop)||loadExpr;header=metadata.lazy?_core.template.statement.ast`
2316 function ${metadata.name}() {
2317 const data = ${init};
2318 ${metadata.name} = function(){ return data; };
2319 return data;
2320 }
2321 `:_core.template.statement.ast`
2322 var ${metadata.name} = ${init};
2323 `;}header.loc=metadata.loc,headers.push(header),headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta,metadata,constantReexports));}(0, _helperModuleTransforms.ensureStatementsHoisted)(headers),path.unshiftContainer("body",headers),path.get("body").forEach((path=>{-1!==headers.indexOf(path.node)&&path.isVariableDeclaration()&&path.scope.registerDeclaration(path);}));}}}}}));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,t){const{name}=path.node.id,parentIsExport=path.parentPath.isExportNamedDeclaration();let isExported=parentIsExport;!isExported&&t.isProgram(path.parent)&&(isExported=path.parent.body.some((stmt=>t.isExportNamedDeclaration(stmt)&&"type"!==stmt.exportKind&&!stmt.source&&stmt.specifiers.some((spec=>t.isExportSpecifier(spec)&&"type"!==spec.exportKind&&spec.local.name===name)))));const entries=(0, _enum.translateEnumValues)(path,t);if(isExported){const obj=t.objectExpression(entries.map((([name,value])=>t.objectProperty(t.isValidIdentifier(name)?t.identifier(name):t.stringLiteral(name),value))));return void(path.scope.hasOwnBinding(name)?(parentIsExport?path.parentPath:path).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[path.node.id,obj]))):(path.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(path.node.id,obj)])),path.scope.registerDeclaration(path)))}const entriesMap=new Map(entries);path.scope.path.traverse({Scope(path){path.scope.hasOwnBinding(name)&&path.skip();},MemberExpression(path){if(!t.isIdentifier(path.node.object,{name}))return;let key;if(path.node.computed){if(!t.isStringLiteral(path.node.property))return;key=path.node.property.value;}else {if(!t.isIdentifier(path.node.property))return;key=path.node.property.name;}entriesMap.has(key)&&path.replaceWith(t.cloneNode(entriesMap.get(key)));}}),path.remove();};var _enum=__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/enum.js");},"./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/enum.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,t){const{node}=path;if(node.declare)return void path.remove();const name=node.id.name,fill=function(path,t,id){const assignments=translateEnumValues(path,t).map((([memberName,memberValue])=>{return isString=t.isStringLiteral(memberValue),options={ENUM:t.cloneNode(id),NAME:memberName,VALUE:memberValue},(isString?buildStringAssignment:buildNumericAssignment)(options);var isString,options;}));return buildEnumWrapper({ID:t.cloneNode(id),ASSIGNMENTS:assignments})}(path,t,node.id);switch(path.parent.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":if(path.insertAfter(fill),function seen(parentPath){if(parentPath.isExportDeclaration())return seen(parentPath.parentPath);return !!parentPath.getData(name)||(parentPath.setData(name,!0),!1)}(path.parentPath))path.remove();else {const isGlobal=t.isProgram(path.parent);path.scope.registerDeclaration(path.replaceWith(function(id,t,kind){return t.variableDeclaration(kind,[t.variableDeclarator(id)])}(node.id,t,isGlobal?"var":"let"))[0]);}break;default:throw new Error(`Unexpected enum parent '${path.parent.type}`)}},exports.translateEnumValues=translateEnumValues;var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_assert=__webpack_require__("assert");const buildEnumWrapper=(0, _core.template)("\n (function (ID) {\n ASSIGNMENTS;\n })(ID || (ID = {}));\n"),buildStringAssignment=(0, _core.template)('\n ENUM["NAME"] = VALUE;\n'),buildNumericAssignment=(0, _core.template)('\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n');function ReferencedIdentifier(expr,state){const{seen,path,t}=state,name=expr.node.name;seen.has(name)&&!expr.scope.hasOwnBinding(name)&&(expr.replaceWith(t.memberExpression(t.cloneNode(path.node.id),t.cloneNode(expr.node))),expr.skip());}const enumSelfReferenceVisitor={ReferencedIdentifier};function translateEnumValues(path,t){const seen=new Map;let lastName,constValue=-1;return path.get("members").map((memberPath=>{const member=memberPath.node,name=t.isIdentifier(member.id)?member.id.name:member.id.value,initializer=member.initializer;let value;if(initializer)if(constValue=function(expr,seen){return evalConstant(expr);function evalConstant(expr){switch(expr.type){case"StringLiteral":return expr.value;case"UnaryExpression":return evalUnaryExpression(expr);case"BinaryExpression":return evalBinaryExpression(expr);case"NumericLiteral":return expr.value;case"ParenthesizedExpression":return evalConstant(expr.expression);case"Identifier":return seen.get(expr.name);case"TemplateLiteral":if(1===expr.quasis.length)return expr.quasis[0].value.cooked;default:return}}function evalUnaryExpression({argument,operator}){const value=evalConstant(argument);if(void 0!==value)switch(operator){case"+":return value;case"-":return -value;case"~":return ~value;default:return}}function evalBinaryExpression(expr){const left=evalConstant(expr.left);if(void 0===left)return;const right=evalConstant(expr.right);if(void 0!==right)switch(expr.operator){case"|":return left|right;case"&":return left&right;case">>":return left>>right;case">>>":return left>>>right;case"<<":return left<<right;case"^":return left^right;case"*":return left*right;case"/":return left/right;case"+":return left+right;case"-":return left-right;case"%":return left%right;default:return}}}(initializer,seen),void 0!==constValue)seen.set(name,constValue),"number"==typeof constValue?value=t.numericLiteral(constValue):(_assert("string"==typeof constValue),value=t.stringLiteral(constValue));else {const initializerPath=memberPath.get("initializer");initializerPath.isReferencedIdentifier()?ReferencedIdentifier(initializerPath,{t,seen,path}):initializerPath.traverse(enumSelfReferenceVisitor,{t,seen,path}),value=initializerPath.node,seen.set(name,void 0);}else if("number"==typeof constValue)constValue+=1,value=t.numericLiteral(constValue),seen.set(name,constValue);else {if("string"==typeof constValue)throw path.buildCodeFrameError("Enum member must have initializer.");{const lastRef=t.memberExpression(t.cloneNode(path.node.id),t.stringLiteral(lastName),!0);value=t.binaryExpression("+",t.numericLiteral(1),lastRef),seen.set(name,void 0);}}return lastName=name,[name,value]}))}},"./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.19.0/node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxTypescript=__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-typescript@7.18.6_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-typescript/lib/index.js"),_core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),_helperCreateClassFeaturesPlugin=__webpack_require__("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.19.0_@babel+core@7.19.1/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),_constEnum=__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js"),_enum=__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/enum.js"),_namespace=__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/namespace.js");function isInType(path){switch(path.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return !0;case"TSQualifiedName":return "TSImportEqualsDeclaration"!==path.parentPath.findParent((path=>"TSQualifiedName"!==path.type)).type;case"ExportSpecifier":return "type"===path.parentPath.parent.exportKind;default:return !1}}const GLOBAL_TYPES=new WeakMap,NEEDS_EXPLICIT_ESM=new WeakMap,PARSED_PARAMS=new WeakSet;function isGlobalType({scope},name){return !scope.hasBinding(name)&&(!!GLOBAL_TYPES.get(scope).has(name)||(console.warn(`The exported identifier "${name}" is not declared in Babel's scope tracker\nas a JavaScript value binding, and "@babel/plugin-transform-typescript"\nnever encountered it as a TypeScript type declaration.\nIt will be treated as a JavaScript value.\n\nThis problem is likely caused by another plugin injecting\n"${name}" without registering it in the scope tracker. If you are the author\n of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1))}function registerGlobalType(programScope,name){GLOBAL_TYPES.get(programScope).add(name);}var _default=(0, _helperPluginUtils.declare)(((api,opts)=>{api.assertVersion(7);const JSX_PRAGMA_REGEX=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,{allowNamespaces=!0,jsxPragma="React.createElement",jsxPragmaFrag="React.Fragment",onlyRemoveTypeImports=!1,optimizeConstEnums=!1}=opts;var{allowDeclareFields=!1}=opts;const classMemberVisitors={field(path){const{node}=path;if(!allowDeclareFields&&node.declare)throw path.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(node.declare){if(node.value)throw path.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");node.decorators||path.remove();}else if(node.definite){if(node.value)throw path.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");allowDeclareFields||node.decorators||_core.types.isClassPrivateProperty(node)||path.remove();}else allowDeclareFields||node.value||node.decorators||_core.types.isClassPrivateProperty(node)||path.remove();node.accessibility&&(node.accessibility=null),node.abstract&&(node.abstract=null),node.readonly&&(node.readonly=null),node.optional&&(node.optional=null),node.typeAnnotation&&(node.typeAnnotation=null),node.definite&&(node.definite=null),node.declare&&(node.declare=null),node.override&&(node.override=null);},method({node}){node.accessibility&&(node.accessibility=null),node.abstract&&(node.abstract=null),node.optional&&(node.optional=null),node.override&&(node.override=null);},constructor(path,classPath){path.node.accessibility&&(path.node.accessibility=null);const assigns=[],{scope}=path;for(const paramPath of path.get("params")){const param=paramPath.node;if("TSParameterProperty"===param.type){const parameter=param.parameter;if(PARSED_PARAMS.has(parameter))continue;let id;if(PARSED_PARAMS.add(parameter),_core.types.isIdentifier(parameter))id=parameter;else {if(!_core.types.isAssignmentPattern(parameter)||!_core.types.isIdentifier(parameter.left))throw paramPath.buildCodeFrameError("Parameter properties can not be destructuring patterns.");id=parameter.left;}assigns.push(_core.template.statement.ast`
2324 this.${_core.types.cloneNode(id)} = ${_core.types.cloneNode(id)}`),paramPath.replaceWith(paramPath.get("parameter")),scope.registerBinding("param",paramPath);}}(0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath,path,assigns);}};return {name:"transform-typescript",inherits:_pluginSyntaxTypescript.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(path,state){const{file}=state;let fileJsxPragma=null,fileJsxPragmaFrag=null;const programScope=path.scope;if(GLOBAL_TYPES.has(programScope)||GLOBAL_TYPES.set(programScope,new Set),file.ast.comments)for(const comment of file.ast.comments){const jsxMatches=JSX_PRAGMA_REGEX.exec(comment.value);jsxMatches&&(jsxMatches[1]?fileJsxPragmaFrag=jsxMatches[2]:fileJsxPragma=jsxMatches[2]);}let pragmaImportName=fileJsxPragma||jsxPragma;pragmaImportName&&([pragmaImportName]=pragmaImportName.split("."));let pragmaFragImportName=fileJsxPragmaFrag||jsxPragmaFrag;pragmaFragImportName&&([pragmaFragImportName]=pragmaFragImportName.split("."));for(let stmt of path.get("body"))if(stmt.isImportDeclaration()){if(NEEDS_EXPLICIT_ESM.has(state.file.ast.program)||NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!0),"type"===stmt.node.importKind){for(const specifier of stmt.node.specifiers)registerGlobalType(programScope,specifier.local.name);stmt.remove();continue}const importsToRemove=new Set,specifiersLength=stmt.node.specifiers.length,isAllSpecifiersElided=()=>specifiersLength>0&&specifiersLength===importsToRemove.size;for(const specifier of stmt.node.specifiers)if("ImportSpecifier"===specifier.type&&"type"===specifier.importKind){registerGlobalType(programScope,specifier.local.name);const binding=stmt.scope.getBinding(specifier.local.name);binding&&importsToRemove.add(binding.path);}if(onlyRemoveTypeImports)NEEDS_EXPLICIT_ESM.set(path.node,!1);else {if(0===stmt.node.specifiers.length){NEEDS_EXPLICIT_ESM.set(path.node,!1);continue}for(const specifier of stmt.node.specifiers){const binding=stmt.scope.getBinding(specifier.local.name);binding&&!importsToRemove.has(binding.path)&&(isImportTypeOnly({binding,programPath:path,pragmaImportName,pragmaFragImportName})?importsToRemove.add(binding.path):NEEDS_EXPLICIT_ESM.set(path.node,!1));}}if(isAllSpecifiersElided())stmt.remove();else for(const importPath of importsToRemove)importPath.remove();}else if(stmt.isExportDeclaration()&&(stmt=stmt.get("declaration")),stmt.isVariableDeclaration({declare:!0}))for(const name of Object.keys(stmt.getBindingIdentifiers()))registerGlobalType(programScope,name);else (stmt.isTSTypeAliasDeclaration()||stmt.isTSDeclareFunction()&&stmt.get("id").isIdentifier()||stmt.isTSInterfaceDeclaration()||stmt.isClassDeclaration({declare:!0})||stmt.isTSEnumDeclaration({declare:!0})||stmt.isTSModuleDeclaration({declare:!0})&&stmt.get("id").isIdentifier())&&registerGlobalType(programScope,stmt.node.id.name);},exit(path){"module"===path.node.sourceType&&NEEDS_EXPLICIT_ESM.get(path.node)&&path.pushContainer("body",_core.types.exportNamedDeclaration());}},ExportNamedDeclaration(path,state){NEEDS_EXPLICIT_ESM.has(state.file.ast.program)||NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!0),"type"!==path.node.exportKind?path.node.source&&path.node.specifiers.length>0&&path.node.specifiers.every((specifier=>"ExportSpecifier"===specifier.type&&"type"===specifier.exportKind))||!path.node.source&&path.node.specifiers.length>0&&path.node.specifiers.every((specifier=>_core.types.isExportSpecifier(specifier)&&isGlobalType(path,specifier.local.name)))?path.remove():NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!1):path.remove();},ExportSpecifier(path){(!path.parent.source&&isGlobalType(path,path.node.local.name)||"type"===path.node.exportKind)&&path.remove();},ExportDefaultDeclaration(path,state){NEEDS_EXPLICIT_ESM.has(state.file.ast.program)||NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!0),_core.types.isIdentifier(path.node.declaration)&&isGlobalType(path,path.node.declaration.name)?path.remove():NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!1);},TSDeclareFunction(path){path.remove();},TSDeclareMethod(path){path.remove();},VariableDeclaration(path){path.node.declare&&path.remove();},VariableDeclarator({node}){node.definite&&(node.definite=null);},TSIndexSignature(path){path.remove();},ClassDeclaration(path){const{node}=path;node.declare&&path.remove();},Class(path){const{node}=path;node.typeParameters&&(node.typeParameters=null),node.superTypeParameters&&(node.superTypeParameters=null),node.implements&&(node.implements=null),node.abstract&&(node.abstract=null),path.get("body.body").forEach((child=>{child.isClassMethod()||child.isClassPrivateMethod()?"constructor"===child.node.kind?classMemberVisitors.constructor(child,path):classMemberVisitors.method(child):(child.isClassProperty()||child.isClassPrivateProperty())&&classMemberVisitors.field(child);}));},Function(path){const{node}=path;node.typeParameters&&(node.typeParameters=null),node.returnType&&(node.returnType=null);const params=node.params;params.length>0&&_core.types.isIdentifier(params[0],{name:"this"})&&params.shift();},TSModuleDeclaration(path){(0, _namespace.default)(path,allowNamespaces);},TSInterfaceDeclaration(path){path.remove();},TSTypeAliasDeclaration(path){path.remove();},TSEnumDeclaration(path){optimizeConstEnums&&path.node.const?(0, _constEnum.default)(path,_core.types):(0, _enum.default)(path,_core.types);},TSImportEqualsDeclaration(path){if(_core.types.isTSExternalModuleReference(path.node.moduleReference))throw path.buildCodeFrameError(`\`import ${path.node.id.name} = require('${path.node.moduleReference.expression.value}')\` is not supported by @babel/plugin-transform-typescript\nPlease consider using \`import ${path.node.id.name} from '${path.node.moduleReference.expression.value}';\` alongside Typescript's --allowSyntheticDefaultImports option.`);path.replaceWith(_core.types.variableDeclaration("var",[_core.types.variableDeclarator(path.node.id,entityNameToExpr(path.node.moduleReference))]));},TSExportAssignment(path){throw path.buildCodeFrameError("`export =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `export <value>;`.")},TSTypeAssertion(path){path.replaceWith(path.node.expression);},TSAsExpression(path){let{node}=path;do{node=node.expression;}while(_core.types.isTSAsExpression(node));path.replaceWith(node);},[api.types.tsInstantiationExpression?"TSNonNullExpression|TSInstantiationExpression":"TSNonNullExpression"](path){path.replaceWith(path.node.expression);},CallExpression(path){path.node.typeParameters=null;},OptionalCallExpression(path){path.node.typeParameters=null;},NewExpression(path){path.node.typeParameters=null;},JSXOpeningElement(path){path.node.typeParameters=null;},TaggedTemplateExpression(path){path.node.typeParameters=null;}}};function entityNameToExpr(node){return _core.types.isTSQualifiedName(node)?_core.types.memberExpression(entityNameToExpr(node.left),node.right):node}function visitPattern({node}){node.typeAnnotation&&(node.typeAnnotation=null),_core.types.isIdentifier(node)&&node.optional&&(node.optional=null);}function isImportTypeOnly({binding,programPath,pragmaImportName,pragmaFragImportName}){for(const path of binding.referencePaths)if(!isInType(path))return !1;if(binding.identifier.name!==pragmaImportName&&binding.identifier.name!==pragmaFragImportName)return !0;let sourceFileHasJsx=!1;return programPath.traverse({"JSXElement|JSXFragment"(path){sourceFileHasJsx=!0,path.stop();}}),!sourceFileHasJsx}}));exports.default=_default;},"./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/namespace.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,allowNamespaces){if(path.node.declare||"StringLiteral"===path.node.id.type)return void path.remove();if(!allowNamespaces)throw path.get("id").buildCodeFrameError("Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const name=path.node.id.name,value=handleNested(path,_core.types.cloneNode(path.node,!0)),bound=path.scope.hasOwnBinding(name);"ExportNamedDeclaration"===path.parent.type?bound?path.parentPath.replaceWith(value):(path.parentPath.insertAfter(value),path.replaceWith(getDeclaration(name)),path.scope.registerDeclaration(path.parentPath)):bound?path.replaceWith(value):path.scope.registerDeclaration(path.replaceWithMultiple([getDeclaration(name),value])[0]);};var _core=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js");function getDeclaration(name){return _core.types.variableDeclaration("let",[_core.types.variableDeclarator(_core.types.identifier(name))])}function getMemberExpression(name,itemName){return _core.types.memberExpression(_core.types.identifier(name),_core.types.identifier(itemName))}function handleVariableDeclaration(node,name,hub){if("const"!==node.kind)throw hub.file.buildCodeFrameError(node,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const{declarations}=node;if(declarations.every((declarator=>_core.types.isIdentifier(declarator.id)))){for(const declarator of declarations)declarator.init&&(declarator.init=_core.types.assignmentExpression("=",getMemberExpression(name,declarator.id.name),declarator.init));return [node]}const bindingIdentifiers=_core.types.getBindingIdentifiers(node),assignments=[];for(const idName in bindingIdentifiers)assignments.push(_core.types.assignmentExpression("=",getMemberExpression(name,idName),_core.types.cloneNode(bindingIdentifiers[idName])));return [node,_core.types.expressionStatement(_core.types.sequenceExpression(assignments))]}function buildNestedAmbiendModuleError(path,node){throw path.hub.buildError(node,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function handleNested(path,node,parentExport){const names=new Set,realName=node.id;_core.types.assertIdentifier(realName);const name=path.scope.generateUid(realName.name),namespaceTopLevel=_core.types.isTSModuleBlock(node.body)?node.body.body:[_core.types.exportNamedDeclaration(node.body)];for(let i=0;i<namespaceTopLevel.length;i++){const subNode=namespaceTopLevel[i];switch(subNode.type){case"TSModuleDeclaration":{if(!_core.types.isIdentifier(subNode.id))throw buildNestedAmbiendModuleError(path,subNode);const transformed=handleNested(path,subNode),moduleName=subNode.id.name;names.has(moduleName)?namespaceTopLevel[i]=transformed:(names.add(moduleName),namespaceTopLevel.splice(i++,1,getDeclaration(moduleName),transformed));continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":names.add(subNode.id.name);continue;case"VariableDeclaration":for(const name in _core.types.getBindingIdentifiers(subNode))names.add(name);continue;default:continue;case"ExportNamedDeclaration":}switch(subNode.declaration.type){case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":{if(subNode.declaration.declare)continue;const itemName=subNode.declaration.id.name;names.add(itemName),namespaceTopLevel.splice(i++,1,subNode.declaration,_core.types.expressionStatement(_core.types.assignmentExpression("=",getMemberExpression(name,itemName),_core.types.identifier(itemName))));break}case"VariableDeclaration":{const nodes=handleVariableDeclaration(subNode.declaration,name,path.hub);namespaceTopLevel.splice(i,nodes.length,...nodes),i+=nodes.length-1;break}case"TSModuleDeclaration":{if(!_core.types.isIdentifier(subNode.declaration.id))throw buildNestedAmbiendModuleError(path,subNode.declaration);const transformed=handleNested(path,subNode.declaration,_core.types.identifier(name)),moduleName=subNode.declaration.id.name;names.has(moduleName)?namespaceTopLevel[i]=transformed:(names.add(moduleName),namespaceTopLevel.splice(i++,1,getDeclaration(moduleName),transformed));}}}let fallthroughValue=_core.types.objectExpression([]);if(parentExport){const memberExpr=_core.types.memberExpression(parentExport,realName);fallthroughValue=_core.template.expression.ast`
2325 ${_core.types.cloneNode(memberExpr)} ||
2326 (${_core.types.cloneNode(memberExpr)} = ${fallthroughValue})
2327 `;}return _core.template.statement.ast`
2328 (function (${_core.types.identifier(name)}) {
2329 ${namespaceTopLevel}
2330 })(${realName} || (${_core.types.cloneNode(realName)} = ${fallthroughValue}));
2331 `}},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/builder.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function createTemplateBuilder(formatter,defaultOpts){const templateFnCache=new WeakMap,templateAstCache=new WeakMap,cachedOpts=defaultOpts||(0, _options.validate)(null);return Object.assign(((tpl,...args)=>{if("string"==typeof tpl){if(args.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,_string.default)(formatter,tpl,(0,_options.merge)(cachedOpts,(0,_options.validate)(args[0]))))}if(Array.isArray(tpl)){let builder=templateFnCache.get(tpl);return builder||(builder=(0, _literal.default)(formatter,tpl,cachedOpts),templateFnCache.set(tpl,builder)),extendedTrace(builder(args))}if("object"==typeof tpl&&tpl){if(args.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(formatter,(0, _options.merge)(cachedOpts,(0, _options.validate)(tpl)))}throw new Error("Unexpected template param "+typeof tpl)}),{ast:(tpl,...args)=>{if("string"==typeof tpl){if(args.length>1)throw new Error("Unexpected extra params.");return (0, _string.default)(formatter,tpl,(0, _options.merge)((0, _options.merge)(cachedOpts,(0, _options.validate)(args[0])),NO_PLACEHOLDER))()}if(Array.isArray(tpl)){let builder=templateAstCache.get(tpl);return builder||(builder=(0, _literal.default)(formatter,tpl,(0, _options.merge)(cachedOpts,NO_PLACEHOLDER)),templateAstCache.set(tpl,builder)),builder(args)()}throw new Error("Unexpected template param "+typeof tpl)}})};var _options=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/options.js"),_string=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/string.js"),_literal=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/literal.js");const NO_PLACEHOLDER=(0, _options.validate)({placeholderPattern:!1});function extendedTrace(fn){let rootStack="";try{throw new Error}catch(error){error.stack&&(rootStack=error.stack.split("\n").slice(3).join("\n"));}return arg=>{try{return fn(arg)}catch(err){throw err.stack+=`\n =============\n${rootStack}`,err}}}},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/formatters.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.statements=exports.statement=exports.smart=exports.program=exports.expression=void 0;var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{assertExpressionStatement}=_t;function makeStatementFormatter(fn){return {code:str=>`/* @babel/template */;\n${str}`,validate:()=>{},unwrap:ast=>fn(ast.program.body.slice(1))}}const smart=makeStatementFormatter((body=>body.length>1?body:body[0]));exports.smart=smart;const statements=makeStatementFormatter((body=>body));exports.statements=statements;const statement=makeStatementFormatter((body=>{if(0===body.length)throw new Error("Found nothing to return.");if(body.length>1)throw new Error("Found multiple statements but wanted one");return body[0]}));exports.statement=statement;const expression={code:str=>`(\n${str}\n)`,validate:ast=>{if(ast.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===expression.unwrap(ast).start)throw new Error("Parse result included parens.")},unwrap:({program})=>{const[stmt]=program.body;return assertExpressionStatement(stmt),stmt.expression}};exports.expression=expression;exports.program={code:str=>str,validate:()=>{},unwrap:ast=>ast.program};},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.statements=exports.statement=exports.smart=exports.program=exports.expression=exports.default=void 0;var formatters=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/formatters.js"),_builder=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/builder.js");const smart=(0, _builder.default)(formatters.smart);exports.smart=smart;const statement=(0, _builder.default)(formatters.statement);exports.statement=statement;const statements=(0, _builder.default)(formatters.statements);exports.statements=statements;const expression=(0, _builder.default)(formatters.expression);exports.expression=expression;const program=(0, _builder.default)(formatters.program);exports.program=program;var _default=Object.assign(smart.bind(void 0),{smart,statement,statements,expression,program,ast:smart.ast});exports.default=_default;},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/literal.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(formatter,tpl,opts){const{metadata,names}=function(formatter,tpl,opts){let names,nameSet,metadata,prefix="";do{prefix+="$";const result=buildTemplateCode(tpl,prefix);names=result.names,nameSet=new Set(names),metadata=(0, _parse.default)(formatter,formatter.code(result.code),{parser:opts.parser,placeholderWhitelist:new Set(result.names.concat(opts.placeholderWhitelist?Array.from(opts.placeholderWhitelist):[])),placeholderPattern:opts.placeholderPattern,preserveComments:opts.preserveComments,syntacticPlaceholders:opts.syntacticPlaceholders});}while(metadata.placeholders.some((placeholder=>placeholder.isDuplicate&&nameSet.has(placeholder.name))));return {metadata,names}}(formatter,tpl,opts);return arg=>{const defaultReplacements={};return arg.forEach(((replacement,i)=>{defaultReplacements[names[i]]=replacement;})),arg=>{const replacements=(0, _options.normalizeReplacements)(arg);return replacements&&Object.keys(replacements).forEach((key=>{if(Object.prototype.hasOwnProperty.call(defaultReplacements,key))throw new Error("Unexpected replacement overlap.")})),formatter.unwrap((0, _populate.default)(metadata,replacements?Object.assign(replacements,defaultReplacements):defaultReplacements))}}};var _options=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/options.js"),_parse=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/parse.js"),_populate=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/populate.js");function buildTemplateCode(tpl,prefix){const names=[];let code=tpl[0];for(let i=1;i<tpl.length;i++){const value=`${prefix}${i-1}`;names.push(value),code+=value+tpl[i];}return {names,code}}},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/options.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.merge=function(a,b){const{placeholderWhitelist=a.placeholderWhitelist,placeholderPattern=a.placeholderPattern,preserveComments=a.preserveComments,syntacticPlaceholders=a.syntacticPlaceholders}=b;return {parser:Object.assign({},a.parser,b.parser),placeholderWhitelist,placeholderPattern,preserveComments,syntacticPlaceholders}},exports.normalizeReplacements=function(replacements){if(Array.isArray(replacements))return replacements.reduce(((acc,replacement,i)=>(acc["$"+i]=replacement,acc)),{});if("object"==typeof replacements||null==replacements)return replacements||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},exports.validate=function(opts){if(null!=opts&&"object"!=typeof opts)throw new Error("Unknown template options.");const _ref=opts||{},{placeholderWhitelist,placeholderPattern,preserveComments,syntacticPlaceholders}=_ref,parser=function(source,excluded){if(null==source)return {};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}(_ref,_excluded);if(null!=placeholderWhitelist&&!(placeholderWhitelist instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=placeholderPattern&&!(placeholderPattern instanceof RegExp)&&!1!==placeholderPattern)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=preserveComments&&"boolean"!=typeof preserveComments)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=syntacticPlaceholders&&"boolean"!=typeof syntacticPlaceholders)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===syntacticPlaceholders&&(null!=placeholderWhitelist||null!=placeholderPattern))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return {parser,placeholderWhitelist:placeholderWhitelist||void 0,placeholderPattern:null==placeholderPattern?void 0:placeholderPattern,preserveComments:null==preserveComments?void 0:preserveComments,syntacticPlaceholders:null==syntacticPlaceholders?void 0:syntacticPlaceholders}};const _excluded=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/parse.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(formatter,code,opts){const{placeholderWhitelist,placeholderPattern,preserveComments,syntacticPlaceholders}=opts,ast=function(code,parserOpts,syntacticPlaceholders){const plugins=(parserOpts.plugins||[]).slice();!1!==syntacticPlaceholders&&plugins.push("placeholders");parserOpts=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},parserOpts,{plugins});try{return (0,_parser.parse)(code,parserOpts)}catch(err){const loc=err.loc;throw loc&&(err.message+="\n"+(0, _codeFrame.codeFrameColumns)(code,{start:loc}),err.code="BABEL_TEMPLATE_PARSE_ERROR"),err}}(code,opts.parser,syntacticPlaceholders);removePropertiesDeep(ast,{preserveComments}),formatter.validate(ast);const syntactic={placeholders:[],placeholderNames:new Set},legacy={placeholders:[],placeholderNames:new Set},isLegacyRef={value:void 0};return traverse(ast,placeholderVisitorHandler,{syntactic,legacy,isLegacyRef,placeholderWhitelist,placeholderPattern,syntacticPlaceholders}),Object.assign({ast},isLegacyRef.value?legacy:syntactic)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_parser=__webpack_require__("./node_modules/.pnpm/@babel+parser@7.18.13/node_modules/@babel/parser/lib/index.js"),_codeFrame=__webpack_require__("./stubs/babel_codeframe.js");const{isCallExpression,isExpressionStatement,isFunction,isIdentifier,isJSXIdentifier,isNewExpression,isPlaceholder,isStatement,isStringLiteral,removePropertiesDeep,traverse}=_t,PATTERN=/^[_$A-Z0-9]+$/;function placeholderVisitorHandler(node,ancestors,state){var _state$placeholderWhi;let name;if(isPlaceholder(node)){if(!1===state.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");name=node.name.name,state.isLegacyRef.value=!1;}else {if(!1===state.isLegacyRef.value||state.syntacticPlaceholders)return;if(isIdentifier(node)||isJSXIdentifier(node))name=node.name,state.isLegacyRef.value=!0;else {if(!isStringLiteral(node))return;name=node.value,state.isLegacyRef.value=!0;}}if(!state.isLegacyRef.value&&(null!=state.placeholderPattern||null!=state.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(state.isLegacyRef.value&&(!1===state.placeholderPattern||!(state.placeholderPattern||PATTERN).test(name))&&(null==(_state$placeholderWhi=state.placeholderWhitelist)||!_state$placeholderWhi.has(name)))return;ancestors=ancestors.slice();const{node:parent,key}=ancestors[ancestors.length-1];let type;isStringLiteral(node)||isPlaceholder(node,{expectedNode:"StringLiteral"})?type="string":isNewExpression(parent)&&"arguments"===key||isCallExpression(parent)&&"arguments"===key||isFunction(parent)&&"params"===key?type="param":isExpressionStatement(parent)&&!isPlaceholder(node)?(type="statement",ancestors=ancestors.slice(0,-1)):type=isStatement(node)&&isPlaceholder(node)?"statement":"other";const{placeholders,placeholderNames}=state.isLegacyRef.value?state.legacy:state.syntactic;placeholders.push({name,type,resolve:ast=>function(ast,ancestors){let parent=ast;for(let i=0;i<ancestors.length-1;i++){const{key,index}=ancestors[i];parent=void 0===index?parent[key]:parent[key][index];}const{key,index}=ancestors[ancestors.length-1];return {parent,key,index}}(ast,ancestors),isDuplicate:placeholderNames.has(name)}),placeholderNames.add(name);}},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/populate.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(metadata,replacements){const ast=cloneNode(metadata.ast);replacements&&(metadata.placeholders.forEach((placeholder=>{if(!Object.prototype.hasOwnProperty.call(replacements,placeholder.name)){const placeholderName=placeholder.name;throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}\n - { placeholderPattern: /^${placeholderName}$/ }`)}})),Object.keys(replacements).forEach((key=>{if(!metadata.placeholderNames.has(key))throw new Error(`Unknown substitution "${key}" given`)})));return metadata.placeholders.slice().reverse().forEach((placeholder=>{try{!function(placeholder,ast,replacement){placeholder.isDuplicate&&(Array.isArray(replacement)?replacement=replacement.map((node=>cloneNode(node))):"object"==typeof replacement&&(replacement=cloneNode(replacement)));const{parent,key,index}=placeholder.resolve(ast);if("string"===placeholder.type){if("string"==typeof replacement&&(replacement=stringLiteral(replacement)),!replacement||!isStringLiteral(replacement))throw new Error("Expected string substitution")}else if("statement"===placeholder.type)void 0===index?replacement?Array.isArray(replacement)?replacement=blockStatement(replacement):"string"==typeof replacement?replacement=expressionStatement(identifier(replacement)):isStatement(replacement)||(replacement=expressionStatement(replacement)):replacement=emptyStatement():replacement&&!Array.isArray(replacement)&&("string"==typeof replacement&&(replacement=identifier(replacement)),isStatement(replacement)||(replacement=expressionStatement(replacement)));else if("param"===placeholder.type){if("string"==typeof replacement&&(replacement=identifier(replacement)),void 0===index)throw new Error("Assertion failure.")}else if("string"==typeof replacement&&(replacement=identifier(replacement)),Array.isArray(replacement))throw new Error("Cannot replace single expression with an array.");if(void 0===index)validate(parent,key,replacement),parent[key]=replacement;else {const items=parent[key].slice();"statement"===placeholder.type||"param"===placeholder.type?null==replacement?items.splice(index,1):Array.isArray(replacement)?items.splice(index,1,...replacement):items[index]=replacement:items[index]=replacement,validate(parent,key,items),parent[key]=items;}}(placeholder,ast,replacements&&replacements[placeholder.name]||null);}catch(e){throw e.message=`@babel/template placeholder "${placeholder.name}": ${e.message}`,e}})),ast};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{blockStatement,cloneNode,emptyStatement,expressionStatement,identifier,isStatement,isStringLiteral,stringLiteral,validate}=_t;},"./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/string.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(formatter,code,opts){let metadata;return code=formatter.code(code),arg=>{const replacements=(0, _options.normalizeReplacements)(arg);return metadata||(metadata=(0, _parse.default)(formatter,code,opts)),formatter.unwrap((0, _populate.default)(metadata,replacements))}};var _options=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/options.js"),_parse=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/parse.js"),_populate=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/populate.js");},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.clear=function(){clearPath(),clearScope();},exports.clearPath=clearPath,exports.clearScope=clearScope,exports.scope=exports.path=void 0;let path=new WeakMap;exports.path=path;let scope=new WeakMap;function clearPath(){exports.path=path=new WeakMap;}function clearScope(){exports.scope=scope=new WeakMap;}exports.scope=scope;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/context.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _path=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;exports.default=class{constructor(scope,opts,state,parentPath){this.queue=null,this.priorityQueue=null,this.parentPath=parentPath,this.scope=scope,this.state=state,this.opts=opts;}shouldVisit(node){const opts=this.opts;if(opts.enter||opts.exit)return !0;if(opts[node.type])return !0;const keys=VISITOR_KEYS[node.type];if(null==keys||!keys.length)return !1;for(const key of keys)if(node[key])return !0;return !1}create(node,container,key,listKey){return _path.default.get({parentPath:this.parentPath,parent:node,container,key,listKey})}maybeQueue(path,notPriority){this.queue&&(notPriority?this.queue.push(path):this.priorityQueue.push(path));}visitMultiple(container,parent,listKey){if(0===container.length)return !1;const queue=[];for(let key=0;key<container.length;key++){const node=container[key];node&&this.shouldVisit(node)&&queue.push(this.create(parent,container,key,listKey));}return this.visitQueue(queue)}visitSingle(node,key){return !!this.shouldVisit(node[key])&&this.visitQueue([this.create(node,node,key)])}visitQueue(queue){this.queue=queue,this.priorityQueue=[];const visited=new WeakSet;let stop=!1;for(const path of queue){if(path.resync(),0!==path.contexts.length&&path.contexts[path.contexts.length-1]===this||path.pushContext(this),null===path.key)continue;const{node}=path;if(!visited.has(node)){if(node&&visited.add(node),path.visit()){stop=!0;break}if(this.priorityQueue.length&&(stop=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=queue,stop))break}}for(const path of queue)path.popContext();return this.queue=null,stop}visit(node,key){const nodes=node[key];return !!nodes&&(Array.isArray(nodes)?this.visitMultiple(nodes,node,key):this.visitSingle(node,key))}};},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/hub.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(node,msg,Error=TypeError){return new Error(msg)}};},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Hub",{enumerable:!0,get:function(){return _hub.default}}),Object.defineProperty(exports,"NodePath",{enumerable:!0,get:function(){return _path.default}}),Object.defineProperty(exports,"Scope",{enumerable:!0,get:function(){return _scope.default}}),exports.visitors=exports.default=void 0;var visitors=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/visitors.js");exports.visitors=visitors;var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js"),_traverseNode=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/traverse-node.js"),_path=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js"),_scope=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/index.js"),_hub=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/hub.js");const{VISITOR_KEYS,removeProperties,traverseFast}=_t;function traverse(parent,opts={},scope,state,parentPath){if(parent){if(!opts.noScope&&!scope&&"Program"!==parent.type&&"File"!==parent.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${parent.type} node without passing scope and parentPath.`);VISITOR_KEYS[parent.type]&&(visitors.explode(opts),(0, _traverseNode.traverseNode)(parent,opts,scope,state,parentPath));}}var _default=traverse;function hasDenylistedType(path,state){path.node.type===state.type&&(state.has=!0,path.stop());}exports.default=_default,traverse.visitors=visitors,traverse.verify=visitors.verify,traverse.explode=visitors.explode,traverse.cheap=function(node,enter){return traverseFast(node,enter)},traverse.node=function(node,opts,scope,state,path,skipKeys){(0, _traverseNode.traverseNode)(node,opts,scope,state,path,skipKeys);},traverse.clearNode=function(node,opts){removeProperties(node,opts),cache.path.delete(node);},traverse.removeProperties=function(tree,opts){return traverseFast(tree,traverse.clearNode,opts),tree},traverse.hasType=function(tree,type,denylistTypes){if(null!=denylistTypes&&denylistTypes.includes(tree.type))return !1;if(tree.type===type)return !0;const state={has:!1,type};return traverse(tree,{noScope:!0,denylist:denylistTypes,enter:hasDenylistedType},null,state),state.has},traverse.cache=cache;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/ancestry.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.find=function(callback){let path=this;do{if(callback(path))return path}while(path=path.parentPath);return null},exports.findParent=function(callback){let path=this;for(;path=path.parentPath;)if(callback(path))return path;return null},exports.getAncestry=function(){let path=this;const paths=[];do{paths.push(path);}while(path=path.parentPath);return paths},exports.getDeepestCommonAncestorFrom=function(paths,filter){if(!paths.length)return this;if(1===paths.length)return paths[0];let lastCommonIndex,lastCommon,minDepth=1/0;const ancestries=paths.map((path=>{const ancestry=[];do{ancestry.unshift(path);}while((path=path.parentPath)&&path!==this);return ancestry.length<minDepth&&(minDepth=ancestry.length),ancestry})),first=ancestries[0];depthLoop:for(let i=0;i<minDepth;i++){const shouldMatch=first[i];for(const ancestry of ancestries)if(ancestry[i]!==shouldMatch)break depthLoop;lastCommonIndex=i,lastCommon=shouldMatch;}if(lastCommon)return filter?filter(lastCommon,lastCommonIndex,ancestries):lastCommon;throw new Error("Couldn't find intersection")},exports.getEarliestCommonAncestorFrom=function(paths){return this.getDeepestCommonAncestorFrom(paths,(function(deepest,i,ancestries){let earliest;const keys=VISITOR_KEYS[deepest.type];for(const ancestry of ancestries){const path=ancestry[i+1];if(!earliest){earliest=path;continue}if(path.listKey&&earliest.listKey===path.listKey&&path.key<earliest.key){earliest=path;continue}keys.indexOf(earliest.parentKey)>keys.indexOf(path.parentKey)&&(earliest=path);}return earliest}))},exports.getFunctionParent=function(){return this.findParent((p=>p.isFunction()))},exports.getStatementParent=function(){let path=this;do{if(!path.parentPath||Array.isArray(path.container)&&path.isStatement())break;path=path.parentPath;}while(path);if(path&&(path.isProgram()||path.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return path},exports.inType=function(...candidateTypes){let path=this;for(;path;){for(const type of candidateTypes)if(path.node.type===type)return !0;path=path.parentPath;}return !1},exports.isAncestor=function(maybeDescendant){return maybeDescendant.isDescendant(this)},exports.isDescendant=function(maybeAncestor){return !!this.findParent((parent=>parent===maybeAncestor))};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/comments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.addComment=function(type,content,line){_addComment(this.node,type,content,line);},exports.addComments=function(type,comments){_addComments(this.node,type,comments);},exports.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const node=this.node;if(!node)return;const trailing=node.trailingComments,leading=node.leadingComments;if(!trailing&&!leading)return;const prev=this.getSibling(this.key-1),next=this.getSibling(this.key+1),hasPrev=Boolean(prev.node),hasNext=Boolean(next.node);hasPrev&&!hasNext?prev.addComments("trailing",trailing):hasNext&&!hasPrev&&next.addComments("leading",leading);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{addComment:_addComment,addComments:_addComments}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/context.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._call=function(fns){if(!fns)return !1;for(const fn of fns){if(!fn)continue;const node=this.node;if(!node)return !0;const ret=fn.call(this.state,this,this.state);if(ret&&"object"==typeof ret&&"function"==typeof ret.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(ret)throw new Error(`Unexpected return value from visitor method ${fn}`);if(this.node!==node)return !0;if(this._traverseFlags>0)return !0}return !1},exports._getQueueContexts=function(){let path=this,contexts=this.contexts;for(;!contexts.length&&(path=path.parentPath,path);)contexts=path.contexts;return contexts},exports._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let i=0;i<this.container.length;i++)if(this.container[i]===this.node)return this.setKey(i)}else for(const key of Object.keys(this.container))if(this.container[key]===this.node)return this.setKey(key);this.key=null;},exports._resyncList=function(){if(!this.parent||!this.inList)return;const newContainer=this.parent[this.listKey];if(this.container===newContainer)return;this.container=newContainer||null;},exports._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node);},exports._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved();},exports.call=function(key){const opts=this.opts;if(this.debug(key),this.node&&this._call(opts[key]))return !0;if(this.node)return this._call(opts[this.node.type]&&opts[this.node.type][key]);return !1},exports.isBlacklisted=exports.isDenylisted=function(){var _this$opts$denylist;const denylist=null!=(_this$opts$denylist=this.opts.denylist)?_this$opts$denylist:this.opts.blacklist;return denylist&&denylist.indexOf(this.node.type)>-1},exports.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0);},exports.pushContext=function(context){this.contexts.push(context),this.setContext(context);},exports.requeue=function(pathToQueue=this){if(pathToQueue.removed)return;const contexts=this.contexts;for(const context of contexts)context.maybeQueue(pathToQueue);},exports.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey();},exports.setContext=function(context){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,context&&(this.context=context,this.state=context.state,this.opts=context.opts);return this.setScope(),this},exports.setKey=function(key){var _this$node;this.key=key,this.node=this.container[this.key],this.type=null==(_this$node=this.node)?void 0:_this$node.type;},exports.setScope=function(){if(this.opts&&this.opts.noScope)return;let target,path=this.parentPath;"key"!==this.key&&"decorators"!==this.listKey||!path.isMethod()||(path=path.parentPath);for(;path&&!target;){if(path.opts&&path.opts.noScope)return;target=path.scope,path=path.parentPath;}this.scope=this.getScope(target),this.scope&&this.scope.init();},exports.setup=function(parentPath,container,listKey,key){this.listKey=listKey,this.container=container,this.parentPath=parentPath||this.parentPath,this.setKey(key);},exports.skip=function(){this.shouldSkip=!0;},exports.skipKey=function(key){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[key]=!0;},exports.stop=function(){this._traverseFlags|=_index.SHOULD_SKIP|_index.SHOULD_STOP;},exports.visit=function(){if(!this.node)return !1;if(this.isDenylisted())return !1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return !1;const currentContext=this.context;if(this.shouldSkip||this.call("enter"))return this.debug("Skip..."),this.shouldStop;return restoreContext(this,currentContext),this.debug("Recursing into..."),this.shouldStop=(0, _traverseNode.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),restoreContext(this,currentContext),this.call("exit"),this.shouldStop};var _traverseNode=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/traverse-node.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js");function restoreContext(path,context){path.context!==context&&(path.context=context,path.state=context.state,path.opts=context.opts);}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/conversion.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrowFunctionToExpression=function({allowInsertArrow=!0,specCompliant=!1,noNewArrows=!specCompliant}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const{thisBinding,fnPath:fn}=hoistFunctionEnvironment(this,noNewArrows,allowInsertArrow);if(fn.ensureBlock(),function(path,type){path.node.type=type;}(fn,"FunctionExpression"),!noNewArrows){const checkBinding=thisBinding?null:fn.scope.generateUidIdentifier("arrowCheckId");return checkBinding&&fn.parentPath.scope.push({id:checkBinding,init:objectExpression([])}),fn.get("body").unshiftContainer("body",expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"),[thisExpression(),identifier(checkBinding?checkBinding.name:thisBinding)]))),fn.replaceWith(callExpression(memberExpression((0, _helperFunctionName.default)(this,!0)||fn.node,identifier("bind")),[checkBinding?identifier(checkBinding.name):thisExpression()])),fn.get("callee.object")}return fn},exports.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression();},exports.ensureBlock=function(){const body=this.get("body"),bodyNode=body.node;if(Array.isArray(body))throw new Error("Can't convert array path to a block statement");if(!bodyNode)throw new Error("Can't convert node without a body");if(body.isBlockStatement())return bodyNode;const statements=[];let key,listKey,stringPath="body";body.isStatement()?(listKey="body",key=0,statements.push(body.node)):(stringPath+=".body.0",this.isFunction()?(key="argument",statements.push(returnStatement(body.node))):(key="expression",statements.push(expressionStatement(body.node))));this.node.body=blockStatement(statements);const parentPath=this.get(stringPath);return body.setup(parentPath,listKey?parentPath.node[listKey]:parentPath.node,listKey,key),this.node},exports.toComputedKey=function(){let key;if(this.isMemberExpression())key=this.node.property;else {if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");key=this.node.key;}this.node.computed||isIdentifier(key)&&(key=stringLiteral(key.name));return key},exports.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/.pnpm/@babel+helper-function-name@7.19.0/node_modules/@babel/helper-function-name/lib/index.js"),_visitors=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/visitors.js");const{arrowFunctionExpression,assignmentExpression,binaryExpression,blockStatement,callExpression,conditionalExpression,expressionStatement,identifier,isIdentifier,jsxIdentifier,logicalExpression,LOGICAL_OPERATORS,memberExpression,metaProperty,numericLiteral,objectExpression,restElement,returnStatement,sequenceExpression,spreadElement,stringLiteral,super:_super,thisExpression,toExpression,unaryExpression}=_t;const getSuperCallsVisitor=(0, _visitors.merge)([{CallExpression(child,{allSuperCalls}){child.get("callee").isSuper()&&allSuperCalls.push(child);}},_helperEnvironmentVisitor.default]);function hoistFunctionEnvironment(fnPath,noNewArrows=!0,allowInsertArrow=!0){let arrowParent,thisEnvFn=fnPath.findParent((p=>p.isArrowFunctionExpression()?(null!=arrowParent||(arrowParent=p),!1):p.isFunction()||p.isProgram()||p.isClassProperty({static:!1})||p.isClassPrivateProperty({static:!1})));const inConstructor=thisEnvFn.isClassMethod({kind:"constructor"});if(thisEnvFn.isClassProperty()||thisEnvFn.isClassPrivateProperty())if(arrowParent)thisEnvFn=arrowParent;else {if(!allowInsertArrow)throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");fnPath.replaceWith(callExpression(arrowFunctionExpression([],toExpression(fnPath.node)),[])),thisEnvFn=fnPath.get("callee"),fnPath=thisEnvFn.get("body");}const{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}=function(fnPath){const thisPaths=[],argumentsPaths=[],newTargetPaths=[],superProps=[],superCalls=[];return fnPath.traverse(getScopeInformationVisitor,{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}),{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}}(fnPath);if(inConstructor&&superCalls.length>0){if(!allowInsertArrow)throw superCalls[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const allSuperCalls=[];thisEnvFn.traverse(getSuperCallsVisitor,{allSuperCalls});const superBinding=function(thisEnvFn){return getBinding(thisEnvFn,"supercall",(()=>{const argsBinding=thisEnvFn.scope.generateUidIdentifier("args");return arrowFunctionExpression([restElement(argsBinding)],callExpression(_super(),[spreadElement(identifier(argsBinding.name))]))}))}(thisEnvFn);allSuperCalls.forEach((superCall=>{const callee=identifier(superBinding);callee.loc=superCall.node.callee.loc,superCall.get("callee").replaceWith(callee);}));}if(argumentsPaths.length>0){const argumentsBinding=getBinding(thisEnvFn,"arguments",(()=>{const args=()=>identifier("arguments");return thisEnvFn.scope.path.isProgram()?conditionalExpression(binaryExpression("===",unaryExpression("typeof",args()),stringLiteral("undefined")),thisEnvFn.scope.buildUndefinedNode(),args()):args()}));argumentsPaths.forEach((argumentsChild=>{const argsRef=identifier(argumentsBinding);argsRef.loc=argumentsChild.node.loc,argumentsChild.replaceWith(argsRef);}));}if(newTargetPaths.length>0){const newTargetBinding=getBinding(thisEnvFn,"newtarget",(()=>metaProperty(identifier("new"),identifier("target"))));newTargetPaths.forEach((targetChild=>{const targetRef=identifier(newTargetBinding);targetRef.loc=targetChild.node.loc,targetChild.replaceWith(targetRef);}));}if(superProps.length>0){if(!allowInsertArrow)throw superProps[0].buildCodeFrameError("Unable to handle nested super.prop usage");superProps.reduce(((acc,superProp)=>acc.concat(function(superProp){if(superProp.parentPath.isAssignmentExpression()&&"="!==superProp.parentPath.node.operator){const assignmentPath=superProp.parentPath,op=assignmentPath.node.operator.slice(0,-1),value=assignmentPath.node.right,isLogicalAssignment=function(op){return LOGICAL_OPERATORS.includes(op)}(op);if(superProp.node.computed){const tmp=superProp.scope.generateDeclaredUidIdentifier("tmp"),object=superProp.node.object,property=superProp.node.property;assignmentPath.get("left").replaceWith(memberExpression(object,assignmentExpression("=",tmp,property),!0)),assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment?"=":op,memberExpression(object,identifier(tmp.name),!0),value));}else {const object=superProp.node.object,property=superProp.node.property;assignmentPath.get("left").replaceWith(memberExpression(object,property)),assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment?"=":op,memberExpression(object,identifier(property.name)),value));}return isLogicalAssignment?assignmentPath.replaceWith(logicalExpression(op,assignmentPath.node.left,assignmentPath.node.right)):assignmentPath.node.operator="=",[assignmentPath.get("left"),assignmentPath.get("right").get("left")]}if(superProp.parentPath.isUpdateExpression()){const updateExpr=superProp.parentPath,tmp=superProp.scope.generateDeclaredUidIdentifier("tmp"),computedKey=superProp.node.computed?superProp.scope.generateDeclaredUidIdentifier("prop"):null,parts=[assignmentExpression("=",tmp,memberExpression(superProp.node.object,computedKey?assignmentExpression("=",computedKey,superProp.node.property):superProp.node.property,superProp.node.computed)),assignmentExpression("=",memberExpression(superProp.node.object,computedKey?identifier(computedKey.name):superProp.node.property,superProp.node.computed),binaryExpression(superProp.parentPath.node.operator[0],identifier(tmp.name),numericLiteral(1)))];superProp.parentPath.node.prefix||parts.push(identifier(tmp.name)),updateExpr.replaceWith(sequenceExpression(parts));return [updateExpr.get("expressions.0.right"),updateExpr.get("expressions.1.left")]}return [superProp];function rightExpression(op,left,right){return "="===op?assignmentExpression("=",left,right):binaryExpression(op,left,right)}}(superProp))),[]).forEach((superProp=>{const key=superProp.node.computed?"":superProp.get("property").node.name,superParentPath=superProp.parentPath,isAssignment=superParentPath.isAssignmentExpression({left:superProp.node}),isCall=superParentPath.isCallExpression({callee:superProp.node}),superBinding=function(thisEnvFn,isAssignment,propName){return getBinding(thisEnvFn,`superprop_${isAssignment?"set":"get"}:${propName||""}`,(()=>{const argsList=[];let fnBody;if(propName)fnBody=memberExpression(_super(),identifier(propName));else {const method=thisEnvFn.scope.generateUidIdentifier("prop");argsList.unshift(method),fnBody=memberExpression(_super(),identifier(method.name),!0);}if(isAssignment){const valueIdent=thisEnvFn.scope.generateUidIdentifier("value");argsList.push(valueIdent),fnBody=assignmentExpression("=",fnBody,identifier(valueIdent.name));}return arrowFunctionExpression(argsList,fnBody)}))}(thisEnvFn,isAssignment,key),args=[];if(superProp.node.computed&&args.push(superProp.get("property").node),isAssignment){const value=superParentPath.node.right;args.push(value);}const call=callExpression(identifier(superBinding),args);isCall?(superParentPath.unshiftContainer("arguments",thisExpression()),superProp.replaceWith(memberExpression(call,identifier("call"))),thisPaths.push(superParentPath.get("arguments.0"))):isAssignment?superParentPath.replaceWith(call):superProp.replaceWith(call);}));}let thisBinding;return (thisPaths.length>0||!noNewArrows)&&(thisBinding=function(thisEnvFn,inConstructor){return getBinding(thisEnvFn,"this",(thisBinding=>{if(!inConstructor||!hasSuperClass(thisEnvFn))return thisExpression();thisEnvFn.traverse(assignSuperThisVisitor,{supers:new WeakSet,thisBinding});}))}(thisEnvFn,inConstructor),(noNewArrows||inConstructor&&hasSuperClass(thisEnvFn))&&(thisPaths.forEach((thisChild=>{const thisRef=thisChild.isJSX()?jsxIdentifier(thisBinding):identifier(thisBinding);thisRef.loc=thisChild.node.loc,thisChild.replaceWith(thisRef);})),noNewArrows||(thisBinding=null))),{thisBinding,fnPath}}function hasSuperClass(thisEnvFn){return thisEnvFn.isClassMethod()&&!!thisEnvFn.parentPath.parentPath.node.superClass}const assignSuperThisVisitor=(0, _visitors.merge)([{CallExpression(child,{supers,thisBinding}){child.get("callee").isSuper()&&(supers.has(child.node)||(supers.add(child.node),child.replaceWithMultiple([child.node,assignmentExpression("=",identifier(thisBinding),identifier("this"))])));}},_helperEnvironmentVisitor.default]);function getBinding(thisEnvFn,key,init){const cacheKey="binding:"+key;let data=thisEnvFn.getData(cacheKey);if(!data){const id=thisEnvFn.scope.generateUidIdentifier(key);data=id.name,thisEnvFn.setData(cacheKey,data),thisEnvFn.scope.push({id,init:init(data)});}return data}const getScopeInformationVisitor=(0, _visitors.merge)([{ThisExpression(child,{thisPaths}){thisPaths.push(child);},JSXIdentifier(child,{thisPaths}){"this"===child.node.name&&(child.parentPath.isJSXMemberExpression({object:child.node})||child.parentPath.isJSXOpeningElement({name:child.node}))&&thisPaths.push(child);},CallExpression(child,{superCalls}){child.get("callee").isSuper()&&superCalls.push(child);},MemberExpression(child,{superProps}){child.get("object").isSuper()&&superProps.push(child);},Identifier(child,{argumentsPaths}){if(!child.isReferencedIdentifier({name:"arguments"}))return;let curr=child.scope;do{if(curr.hasOwnBinding("arguments"))return void curr.rename("arguments");if(curr.path.isFunction()&&!curr.path.isArrowFunctionExpression())break}while(curr=curr.parent);argumentsPaths.push(child);},MetaProperty(child,{newTargetPaths}){child.get("meta").isIdentifier({name:"new"})&&child.get("property").isIdentifier({name:"target"})&&newTargetPaths.push(child);}},_helperEnvironmentVisitor.default]);},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/evaluation.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.evaluate=function(){const state={confident:!0,deoptPath:null,seen:new Map};let value=evaluateCached(this,state);state.confident||(value=void 0);return {confident:state.confident,deopt:state.deoptPath,value}},exports.evaluateTruthy=function(){const res=this.evaluate();if(res.confident)return !!res.value};const VALID_CALLEES=["String","Number","Math"],INVALID_METHODS=["random"];function isValidCallee(val){return VALID_CALLEES.includes(val)}function deopt(path,state){state.confident&&(state.deoptPath=path,state.confident=!1);}function evaluateCached(path,state){const{node}=path,{seen}=state;if(seen.has(node)){const existing=seen.get(node);return existing.resolved?existing.value:void deopt(path,state)}{const item={resolved:!1};seen.set(node,item);const val=function(path,state){if(!state.confident)return;if(path.isSequenceExpression()){const exprs=path.get("expressions");return evaluateCached(exprs[exprs.length-1],state)}if(path.isStringLiteral()||path.isNumericLiteral()||path.isBooleanLiteral())return path.node.value;if(path.isNullLiteral())return null;if(path.isTemplateLiteral())return evaluateQuasis(path,path.node.quasis,state);if(path.isTaggedTemplateExpression()&&path.get("tag").isMemberExpression()){const object=path.get("tag.object"),{node:{name}}=object,property=path.get("tag.property");if(object.isIdentifier()&&"String"===name&&!path.scope.getBinding(name)&&property.isIdentifier()&&"raw"===property.node.name)return evaluateQuasis(path,path.node.quasi.quasis,state,!0)}if(path.isConditionalExpression()){const testResult=evaluateCached(path.get("test"),state);if(!state.confident)return;return evaluateCached(testResult?path.get("consequent"):path.get("alternate"),state)}if(path.isExpressionWrapper())return evaluateCached(path.get("expression"),state);if(path.isMemberExpression()&&!path.parentPath.isCallExpression({callee:path.node})){const property=path.get("property"),object=path.get("object");if(object.isLiteral()&&property.isIdentifier()){const value=object.node.value,type=typeof value;if("number"===type||"string"===type)return value[property.node.name]}}if(path.isReferencedIdentifier()){const binding=path.scope.getBinding(path.node.name);if(binding&&binding.constantViolations.length>0)return deopt(binding.path,state);if(binding&&path.node.start<binding.path.node.end)return deopt(binding.path,state);if(null!=binding&&binding.hasValue)return binding.value;{if("undefined"===path.node.name)return binding?deopt(binding.path,state):void 0;if("Infinity"===path.node.name)return binding?deopt(binding.path,state):1/0;if("NaN"===path.node.name)return binding?deopt(binding.path,state):NaN;const resolved=path.resolve();return resolved===path?deopt(path,state):evaluateCached(resolved,state)}}if(path.isUnaryExpression({prefix:!0})){if("void"===path.node.operator)return;const argument=path.get("argument");if("typeof"===path.node.operator&&(argument.isFunction()||argument.isClass()))return "function";const arg=evaluateCached(argument,state);if(!state.confident)return;switch(path.node.operator){case"!":return !arg;case"+":return +arg;case"-":return -arg;case"~":return ~arg;case"typeof":return typeof arg}}if(path.isArrayExpression()){const arr=[],elems=path.get("elements");for(const elem of elems){const elemValue=elem.evaluate();if(!elemValue.confident)return deopt(elemValue.deopt,state);arr.push(elemValue.value);}return arr}if(path.isObjectExpression()){const obj={},props=path.get("properties");for(const prop of props){if(prop.isObjectMethod()||prop.isSpreadElement())return deopt(prop,state);const keyPath=prop.get("key");let key;if(prop.node.computed){if(key=keyPath.evaluate(),!key.confident)return deopt(key.deopt,state);key=key.value;}else key=keyPath.isIdentifier()?keyPath.node.name:keyPath.node.value;let value=prop.get("value").evaluate();if(!value.confident)return deopt(value.deopt,state);value=value.value,obj[key]=value;}return obj}if(path.isLogicalExpression()){const wasConfident=state.confident,left=evaluateCached(path.get("left"),state),leftConfident=state.confident;state.confident=wasConfident;const right=evaluateCached(path.get("right"),state),rightConfident=state.confident;switch(path.node.operator){case"||":if(state.confident=leftConfident&&(!!left||rightConfident),!state.confident)return;return left||right;case"&&":if(state.confident=leftConfident&&(!left||rightConfident),!state.confident)return;return left&&right;case"??":if(state.confident=leftConfident&&(null!=left||rightConfident),!state.confident)return;return null!=left?left:right}}if(path.isBinaryExpression()){const left=evaluateCached(path.get("left"),state);if(!state.confident)return;const right=evaluateCached(path.get("right"),state);if(!state.confident)return;switch(path.node.operator){case"-":return left-right;case"+":return left+right;case"/":return left/right;case"*":return left*right;case"%":return left%right;case"**":return Math.pow(left,right);case"<":return left<right;case">":return left>right;case"<=":return left<=right;case">=":return left>=right;case"==":return left==right;case"!=":return left!=right;case"===":return left===right;case"!==":return left!==right;case"|":return left|right;case"&":return left&right;case"^":return left^right;case"<<":return left<<right;case">>":return left>>right;case">>>":return left>>>right}}if(path.isCallExpression()){const callee=path.get("callee");let context,func;if(callee.isIdentifier()&&!path.scope.getBinding(callee.node.name)&&isValidCallee(callee.node.name)&&(func=commonjsGlobal[callee.node.name]),callee.isMemberExpression()){const object=callee.get("object"),property=callee.get("property");if(object.isIdentifier()&&property.isIdentifier()&&isValidCallee(object.node.name)&&!function(val){return INVALID_METHODS.includes(val)}(property.node.name)&&(context=commonjsGlobal[object.node.name],func=context[property.node.name]),object.isLiteral()&&property.isIdentifier()){const type=typeof object.node.value;"string"!==type&&"number"!==type||(context=object.node.value,func=context[property.node.name]);}}if(func){const args=path.get("arguments").map((arg=>evaluateCached(arg,state)));if(!state.confident)return;return func.apply(context,args)}}deopt(path,state);}(path,state);return state.confident&&(item.resolved=!0,item.value=val),val}}function evaluateQuasis(path,quasis,state,raw=!1){let str="",i=0;const exprs=path.get("expressions");for(const elem of quasis){if(!state.confident)break;str+=raw?elem.value.raw:elem.value.cooked;const expr=exprs[i++];expr&&(str+=String(evaluateCached(expr,state)));}if(state.confident)return str}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/family.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._getKey=function(key,context){const node=this.node,container=node[key];return Array.isArray(container)?container.map(((_,i)=>_index.default.get({listKey:key,parentPath:this,parent:node,container,key:i}).setContext(context))):_index.default.get({parentPath:this,parent:node,container:node,key}).setContext(context)},exports._getPattern=function(parts,context){let path=this;for(const part of parts)path="."===part?path.parentPath:Array.isArray(path)?path[part]:path.get(part,context);return path},exports.get=function(key,context=!0){!0===context&&(context=this.context);const parts=key.split(".");return 1===parts.length?this._getKey(key,context):this._getPattern(parts,context)},exports.getAllNextSiblings=function(){let _key=this.key,sibling=this.getSibling(++_key);const siblings=[];for(;sibling.node;)siblings.push(sibling),sibling=this.getSibling(++_key);return siblings},exports.getAllPrevSiblings=function(){let _key=this.key,sibling=this.getSibling(--_key);const siblings=[];for(;sibling.node;)siblings.push(sibling),sibling=this.getSibling(--_key);return siblings},exports.getBindingIdentifierPaths=function(duplicates=!1,outerOnly=!1){const search=[this],ids=Object.create(null);for(;search.length;){const id=search.shift();if(!id)continue;if(!id.node)continue;const keys=_getBindingIdentifiers.keys[id.node.type];if(id.isIdentifier())if(duplicates){(ids[id.node.name]=ids[id.node.name]||[]).push(id);}else ids[id.node.name]=id;else if(id.isExportDeclaration()){const declaration=id.get("declaration");isDeclaration(declaration)&&search.push(declaration);}else {if(outerOnly){if(id.isFunctionDeclaration()){search.push(id.get("id"));continue}if(id.isFunctionExpression())continue}if(keys)for(let i=0;i<keys.length;i++){const key=keys[i],child=id.get(key);Array.isArray(child)?search.push(...child):child.node&&search.push(child);}}}return ids},exports.getBindingIdentifiers=function(duplicates){return _getBindingIdentifiers(this.node,duplicates)},exports.getCompletionRecords=function(){return _getCompletionRecords(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((r=>r.path))},exports.getNextSibling=function(){return this.getSibling(this.key+1)},exports.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},exports.getOuterBindingIdentifierPaths=function(duplicates=!1){return this.getBindingIdentifierPaths(duplicates,!0)},exports.getOuterBindingIdentifiers=function(duplicates){return _getOuterBindingIdentifiers(this.node,duplicates)},exports.getPrevSibling=function(){return this.getSibling(this.key-1)},exports.getSibling=function(key){return _index.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key}).setContext(this.context)};var _index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{getBindingIdentifiers:_getBindingIdentifiers,getOuterBindingIdentifiers:_getOuterBindingIdentifiers,isDeclaration,numericLiteral,unaryExpression}=_t;function addCompletionRecords(path,records,context){return path&&records.push(..._getCompletionRecords(path,context)),records}function normalCompletionToBreak(completions){completions.forEach((c=>{c.type=1;}));}function replaceBreakStatementInBreakCompletion(completions,reachable){completions.forEach((c=>{c.path.isBreakStatement({label:null})&&(reachable?c.path.replaceWith(unaryExpression("void",numericLiteral(0))):c.path.remove());}));}function getStatementListCompletion(paths,context){const completions=[];if(context.canHaveBreak){let lastNormalCompletions=[];for(let i=0;i<paths.length;i++){const path=paths[i],newContext=Object.assign({},context,{inCaseClause:!1});path.isBlockStatement()&&(context.inCaseClause||context.shouldPopulateBreak)?newContext.shouldPopulateBreak=!0:newContext.shouldPopulateBreak=!1;const statementCompletions=_getCompletionRecords(path,newContext);if(statementCompletions.length>0&&statementCompletions.every((c=>1===c.type))){lastNormalCompletions.length>0&&statementCompletions.every((c=>c.path.isBreakStatement({label:null})))?(normalCompletionToBreak(lastNormalCompletions),completions.push(...lastNormalCompletions),lastNormalCompletions.some((c=>c.path.isDeclaration()))&&(completions.push(...statementCompletions),replaceBreakStatementInBreakCompletion(statementCompletions,!0)),replaceBreakStatementInBreakCompletion(statementCompletions,!1)):(completions.push(...statementCompletions),context.shouldPopulateBreak||replaceBreakStatementInBreakCompletion(statementCompletions,!0));break}if(i===paths.length-1)completions.push(...statementCompletions);else {lastNormalCompletions=[];for(let i=0;i<statementCompletions.length;i++){const c=statementCompletions[i];1===c.type&&completions.push(c),0===c.type&&lastNormalCompletions.push(c);}}}}else if(paths.length)for(let i=paths.length-1;i>=0;i--){const pathCompletions=_getCompletionRecords(paths[i],context);if(pathCompletions.length>1||1===pathCompletions.length&&!pathCompletions[0].path.isVariableDeclaration()){completions.push(...pathCompletions);break}}return completions}function _getCompletionRecords(path,context){let records=[];if(path.isIfStatement())records=addCompletionRecords(path.get("consequent"),records,context),records=addCompletionRecords(path.get("alternate"),records,context);else {if(path.isDoExpression()||path.isFor()||path.isWhile()||path.isLabeledStatement())return addCompletionRecords(path.get("body"),records,context);if(path.isProgram()||path.isBlockStatement())return getStatementListCompletion(path.get("body"),context);if(path.isFunction())return _getCompletionRecords(path.get("body"),context);if(path.isTryStatement())records=addCompletionRecords(path.get("block"),records,context),records=addCompletionRecords(path.get("handler"),records,context);else {if(path.isCatchClause())return addCompletionRecords(path.get("body"),records,context);if(path.isSwitchStatement())return function(cases,records,context){let lastNormalCompletions=[];for(let i=0;i<cases.length;i++){const caseCompletions=_getCompletionRecords(cases[i],context),normalCompletions=[],breakCompletions=[];for(const c of caseCompletions)0===c.type&&normalCompletions.push(c),1===c.type&&breakCompletions.push(c);normalCompletions.length&&(lastNormalCompletions=normalCompletions),records.push(...breakCompletions);}return records.push(...lastNormalCompletions),records}(path.get("cases"),records,context);if(path.isSwitchCase())return getStatementListCompletion(path.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});path.isBreakStatement()?records.push(function(path){return {type:1,path}}(path)):records.push(function(path){return {type:0,path}}(path));}}return records}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.SHOULD_STOP=exports.SHOULD_SKIP=exports.REMOVED=void 0;var virtualTypes=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),_debug=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/index.js"),_scope=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),t=_t,_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js"),_generator=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/index.js"),NodePath_ancestry=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/ancestry.js"),NodePath_inference=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/index.js"),NodePath_replacement=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/replacement.js"),NodePath_evaluation=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/evaluation.js"),NodePath_conversion=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/conversion.js"),NodePath_introspection=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/introspection.js"),NodePath_context=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/context.js"),NodePath_removal=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/removal.js"),NodePath_modification=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/modification.js"),NodePath_family=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/family.js"),NodePath_comments=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/comments.js"),NodePath_virtual_types_validator=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js");const{validate}=_t,debug=_debug("babel");exports.REMOVED=1;exports.SHOULD_STOP=2;exports.SHOULD_SKIP=4;class NodePath{constructor(hub,parent){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=parent,this.hub=hub,this.data=null,this.context=null,this.scope=null;}static get({hub,parentPath,parent,container,listKey,key}){if(!hub&&parentPath&&(hub=parentPath.hub),!parent)throw new Error("To get a node path the parent needs to exist");const targetNode=container[key];let paths=_cache.path.get(parent);paths||(paths=new Map,_cache.path.set(parent,paths));let path=paths.get(targetNode);return path||(path=new NodePath(hub,parent),targetNode&&paths.set(targetNode,path)),path.setup(parentPath,container,listKey,key),path}getScope(scope){return this.isScope()?new _scope.default(this):scope}setData(key,val){return null==this.data&&(this.data=Object.create(null)),this.data[key]=val}getData(key,def){null==this.data&&(this.data=Object.create(null));let val=this.data[key];return void 0===val&&void 0!==def&&(val=this.data[key]=def),val}hasNode(){return null!=this.node}buildCodeFrameError(msg,Error=SyntaxError){return this.hub.buildError(this.node,msg,Error)}traverse(visitor,state){(0, _index.default)(this.node,visitor,this.scope,state,this);}set(key,node){validate(this.node,key,node),this.node[key]=node;}getPathLocation(){const parts=[];let path=this;do{let key=path.key;path.inList&&(key=`${path.listKey}[${key}]`),parts.unshift(key);}while(path=path.parentPath);return parts.join(".")}debug(message){debug.enabled&&debug(`${this.getPathLocation()} ${this.type}: ${message}`);}toString(){return (0, _generator.default)(this.node).code}get inList(){return !!this.listKey}set inList(inList){inList||(this.listKey=null);}get parentKey(){return this.listKey||this.key}get shouldSkip(){return !!(4&this._traverseFlags)}set shouldSkip(v){v?this._traverseFlags|=4:this._traverseFlags&=-5;}get shouldStop(){return !!(2&this._traverseFlags)}set shouldStop(v){v?this._traverseFlags|=2:this._traverseFlags&=-3;}get removed(){return !!(1&this._traverseFlags)}set removed(v){v?this._traverseFlags|=1:this._traverseFlags&=-2;}}Object.assign(NodePath.prototype,NodePath_ancestry,NodePath_inference,NodePath_replacement,NodePath_evaluation,NodePath_conversion,NodePath_introspection,NodePath_context,NodePath_removal,NodePath_modification,NodePath_family,NodePath_comments),NodePath.prototype._guessExecutionStatusRelativeToDifferentFunctions=NodePath_introspection._guessExecutionStatusRelativeTo;for(const type of t.TYPES){const typeKey=`is${type}`,fn=t[typeKey];NodePath.prototype[typeKey]=function(opts){return fn(this.node,opts)},NodePath.prototype[`assert${type}`]=function(opts){if(!fn(this.node,opts))throw new TypeError(`Expected node path of type ${type}`)};}Object.assign(NodePath.prototype,NodePath_virtual_types_validator);for(const type of Object.keys(virtualTypes))"_"!==type[0]&&(t.TYPES.includes(type)||t.TYPES.push(type));var _default=NodePath;exports.default=_default;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._getTypeAnnotation=function(){const node=this.node;if(!node){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const declar=this.parentPath.parentPath,declarParent=declar.parentPath;return "left"===declar.key&&declarParent.isForInStatement()?stringTypeAnnotation():"left"===declar.key&&declarParent.isForOfStatement()?anyTypeAnnotation():voidTypeAnnotation()}return}if(node.typeAnnotation)return node.typeAnnotation;if(typeAnnotationInferringNodes.has(node))return;typeAnnotationInferringNodes.add(node);try{var _inferer;let inferer=inferers[node.type];if(inferer)return inferer.call(this,node);if(inferer=inferers[this.parentPath.type],null!=(_inferer=inferer)&&_inferer.validParent)return this.parentPath.getTypeAnnotation()}finally{typeAnnotationInferringNodes.delete(node);}},exports.baseTypeStrictlyMatches=function(rightArg){const left=this.getTypeAnnotation(),right=rightArg.getTypeAnnotation();if(!isAnyTypeAnnotation(left)&&isFlowBaseAnnotation(left))return right.type===left.type;return !1},exports.couldBeBaseType=function(name){const type=this.getTypeAnnotation();if(isAnyTypeAnnotation(type))return !0;if(isUnionTypeAnnotation(type)){for(const type2 of type.types)if(isAnyTypeAnnotation(type2)||_isBaseType(name,type2,!0))return !0;return !1}return _isBaseType(name,type,!0)},exports.getTypeAnnotation=function(){let type=this.getData("typeAnnotation");if(null!=type)return type;type=this._getTypeAnnotation()||anyTypeAnnotation(),(isTypeAnnotation(type)||isTSTypeAnnotation(type))&&(type=type.typeAnnotation);return this.setData("typeAnnotation",type),type},exports.isBaseType=function(baseName,soft){return _isBaseType(baseName,this.getTypeAnnotation(),soft)},exports.isGenericType=function(genericName){const type=this.getTypeAnnotation();if("Array"===genericName&&(isTSArrayType(type)||isArrayTypeAnnotation(type)||isTupleTypeAnnotation(type)))return !0;return isGenericTypeAnnotation(type)&&isIdentifier(type.id,{name:genericName})||isTSTypeReference(type)&&isIdentifier(type.typeName,{name:genericName})};var inferers=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/inferers.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{anyTypeAnnotation,isAnyTypeAnnotation,isArrayTypeAnnotation,isBooleanTypeAnnotation,isEmptyTypeAnnotation,isFlowBaseAnnotation,isGenericTypeAnnotation,isIdentifier,isMixedTypeAnnotation,isNumberTypeAnnotation,isStringTypeAnnotation,isTSArrayType,isTSTypeAnnotation,isTSTypeReference,isTupleTypeAnnotation,isTypeAnnotation,isUnionTypeAnnotation,isVoidTypeAnnotation,stringTypeAnnotation,voidTypeAnnotation}=_t;const typeAnnotationInferringNodes=new WeakSet;function _isBaseType(baseName,type,soft){if("string"===baseName)return isStringTypeAnnotation(type);if("number"===baseName)return isNumberTypeAnnotation(type);if("boolean"===baseName)return isBooleanTypeAnnotation(type);if("any"===baseName)return isAnyTypeAnnotation(type);if("mixed"===baseName)return isMixedTypeAnnotation(type);if("empty"===baseName)return isEmptyTypeAnnotation(type);if("void"===baseName)return isVoidTypeAnnotation(type);if(soft)return !1;throw new Error(`Unknown base type ${baseName}`)}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if(!this.isReferenced())return;const binding=this.scope.getBinding(node.name);if(binding)return binding.identifier.typeAnnotation?binding.identifier.typeAnnotation:function(binding,path,name){const types=[],functionConstantViolations=[];let constantViolations=getConstantViolationsBefore(binding,path,functionConstantViolations);const testType=getConditionalAnnotation(binding,path,name);if(testType){const testConstantViolations=getConstantViolationsBefore(binding,testType.ifStatement);constantViolations=constantViolations.filter((path=>testConstantViolations.indexOf(path)<0)),types.push(testType.typeAnnotation);}if(constantViolations.length){constantViolations.push(...functionConstantViolations);for(const violation of constantViolations)types.push(violation.getTypeAnnotation());}if(!types.length)return;return (0, _util.createUnionType)(types)}(binding,this,node.name);if("undefined"===node.name)return voidTypeAnnotation();if("NaN"===node.name||"Infinity"===node.name)return numberTypeAnnotation();node.name;};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/util.js");const{BOOLEAN_NUMBER_BINARY_OPERATORS,createTypeAnnotationBasedOnTypeof,numberTypeAnnotation,voidTypeAnnotation}=_t;function getConstantViolationsBefore(binding,path,functions){const violations=binding.constantViolations.slice();return violations.unshift(binding.path),violations.filter((violation=>{const status=(violation=violation.resolve())._guessExecutionStatusRelativeTo(path);return functions&&"unknown"===status&&functions.push(violation),"before"===status}))}function inferAnnotationFromBinaryExpression(name,path){const operator=path.node.operator,right=path.get("right").resolve(),left=path.get("left").resolve();let target,typeofPath,typePath;if(left.isIdentifier({name})?target=right:right.isIdentifier({name})&&(target=left),target)return "==="===operator?target.getTypeAnnotation():BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator)>=0?numberTypeAnnotation():void 0;if("==="!==operator&&"=="!==operator)return;if(left.isUnaryExpression({operator:"typeof"})?(typeofPath=left,typePath=right):right.isUnaryExpression({operator:"typeof"})&&(typeofPath=right,typePath=left),!typeofPath)return;if(!typeofPath.get("argument").isIdentifier({name}))return;if(typePath=typePath.resolve(),!typePath.isLiteral())return;const typeValue=typePath.node.value;return "string"==typeof typeValue?createTypeAnnotationBasedOnTypeof(typeValue):void 0}function getConditionalAnnotation(binding,path,name){const ifStatement=function(binding,path,name){let parentPath;for(;parentPath=path.parentPath;){if(parentPath.isIfStatement()||parentPath.isConditionalExpression()){if("test"===path.key)return;return parentPath}if(parentPath.isFunction()&&parentPath.parentPath.scope.getBinding(name)!==binding)return;path=parentPath;}}(binding,path,name);if(!ifStatement)return;const paths=[ifStatement.get("test")],types=[];for(let i=0;i<paths.length;i++){const path=paths[i];if(path.isLogicalExpression())"&&"===path.node.operator&&(paths.push(path.get("left")),paths.push(path.get("right")));else if(path.isBinaryExpression()){const type=inferAnnotationFromBinaryExpression(name,path);type&&types.push(type);}}return types.length?{typeAnnotation:(0, _util.createUnionType)(types),ifStatement}:getConditionalAnnotation(binding,ifStatement,name)}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/inferers.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrayExpression=ArrayExpression,exports.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},exports.BinaryExpression=function(node){const operator=node.operator;if(NUMBER_BINARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(BOOLEAN_BINARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation();if("+"===operator){const right=this.get("right"),left=this.get("left");return left.isBaseType("number")&&right.isBaseType("number")?numberTypeAnnotation():left.isBaseType("string")||right.isBaseType("string")?stringTypeAnnotation():unionTypeAnnotation([stringTypeAnnotation(),numberTypeAnnotation()])}},exports.BooleanLiteral=function(){return booleanTypeAnnotation()},exports.CallExpression=function(){const{callee}=this.node;if(isObjectKeys(callee))return arrayTypeAnnotation(stringTypeAnnotation());if(isArrayFrom(callee)||isObjectValues(callee)||isIdentifier(callee,{name:"Array"}))return arrayTypeAnnotation(anyTypeAnnotation());if(isObjectEntries(callee))return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(),anyTypeAnnotation()]));return resolveCall(this.get("callee"))},exports.ConditionalExpression=function(){const argumentTypes=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return (0, _util.createUnionType)(argumentTypes)},exports.ClassDeclaration=exports.ClassExpression=exports.FunctionDeclaration=exports.ArrowFunctionExpression=exports.FunctionExpression=function(){return genericTypeAnnotation(identifier("Function"))},Object.defineProperty(exports,"Identifier",{enumerable:!0,get:function(){return _infererReference.default}}),exports.LogicalExpression=function(){const argumentTypes=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return (0, _util.createUnionType)(argumentTypes)},exports.NewExpression=function(node){if("Identifier"===node.callee.type)return genericTypeAnnotation(node.callee)},exports.NullLiteral=function(){return nullLiteralTypeAnnotation()},exports.NumericLiteral=function(){return numberTypeAnnotation()},exports.ObjectExpression=function(){return genericTypeAnnotation(identifier("Object"))},exports.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},exports.RegExpLiteral=function(){return genericTypeAnnotation(identifier("RegExp"))},exports.RestElement=RestElement,exports.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},exports.StringLiteral=function(){return stringTypeAnnotation()},exports.TSAsExpression=TSAsExpression,exports.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},exports.TaggedTemplateExpression=function(){return resolveCall(this.get("tag"))},exports.TemplateLiteral=function(){return stringTypeAnnotation()},exports.TypeCastExpression=TypeCastExpression,exports.UnaryExpression=function(node){const operator=node.operator;if("void"===operator)return voidTypeAnnotation();if(NUMBER_UNARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(STRING_UNARY_OPERATORS.indexOf(operator)>=0)return stringTypeAnnotation();if(BOOLEAN_UNARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation()},exports.UpdateExpression=function(node){const operator=node.operator;if("++"===operator||"--"===operator)return numberTypeAnnotation()},exports.VariableDeclarator=function(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_infererReference=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/util.js");const{BOOLEAN_BINARY_OPERATORS,BOOLEAN_UNARY_OPERATORS,NUMBER_BINARY_OPERATORS,NUMBER_UNARY_OPERATORS,STRING_UNARY_OPERATORS,anyTypeAnnotation,arrayTypeAnnotation,booleanTypeAnnotation,buildMatchMemberExpression,genericTypeAnnotation,identifier,nullLiteralTypeAnnotation,numberTypeAnnotation,stringTypeAnnotation,tupleTypeAnnotation,unionTypeAnnotation,voidTypeAnnotation,isIdentifier}=_t;function TypeCastExpression(node){return node.typeAnnotation}function TSAsExpression(node){return node.typeAnnotation}function ArrayExpression(){return genericTypeAnnotation(identifier("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,TSAsExpression.validParent=!0,RestElement.validParent=!0;const isArrayFrom=buildMatchMemberExpression("Array.from"),isObjectKeys=buildMatchMemberExpression("Object.keys"),isObjectValues=buildMatchMemberExpression("Object.values"),isObjectEntries=buildMatchMemberExpression("Object.entries");function resolveCall(callee){if((callee=callee.resolve()).isFunction()){const{node}=callee;if(node.async)return node.generator?genericTypeAnnotation(identifier("AsyncIterator")):genericTypeAnnotation(identifier("Promise"));if(node.generator)return genericTypeAnnotation(identifier("Iterator"));if(callee.node.returnType)return callee.node.returnType}}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/inference/util.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.createUnionType=function(types){if(isFlowType(types[0]))return createFlowUnionType?createFlowUnionType(types):createUnionTypeAnnotation(types);if(createTSUnionType)return createTSUnionType(types)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{createFlowUnionType,createTSUnionType,createUnionTypeAnnotation,isFlowType,isTSType}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/introspection.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._guessExecutionStatusRelativeTo=function(target){return _guessExecutionStatusRelativeToCached(this,target,new Map)},exports._resolve=function(dangerous,resolved){if(resolved&&resolved.indexOf(this)>=0)return;if((resolved=resolved||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(dangerous,resolved)}else if(this.isReferencedIdentifier()){const binding=this.scope.getBinding(this.node.name);if(!binding)return;if(!binding.constant)return;if("module"===binding.kind)return;if(binding.path!==this){const ret=binding.path.resolve(dangerous,resolved);if(this.find((parent=>parent.node===ret.node)))return;return ret}}else {if(this.isTypeCastExpression())return this.get("expression").resolve(dangerous,resolved);if(dangerous&&this.isMemberExpression()){const targetKey=this.toComputedKey();if(!isLiteral(targetKey))return;const targetName=targetKey.value,target=this.get("object").resolve(dangerous,resolved);if(target.isObjectExpression()){const props=target.get("properties");for(const prop of props){if(!prop.isProperty())continue;const key=prop.get("key");let match=prop.isnt("computed")&&key.isIdentifier({name:targetName});if(match=match||key.isLiteral({value:targetName}),match)return prop.get("value").resolve(dangerous,resolved)}}else if(target.isArrayExpression()&&!isNaN(+targetName)){const elem=target.get("elements")[targetName];if(elem)return elem.resolve(dangerous,resolved)}}}},exports.canHaveVariableDeclarationOrExpression=function(){return ("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},exports.canSwapBetweenExpressionAndStatement=function(replacement){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return !1;if(this.isExpression())return isBlockStatement(replacement);if(this.isBlockStatement())return isExpression(replacement);return !1},exports.equals=function(key,value){return this.node[key]===value},exports.getSource=function(){const node=this.node;if(node.end){const code=this.hub.getCode();if(code)return code.slice(node.start,node.end)}return ""},exports.has=has,exports.is=void 0,exports.isCompletionRecord=function(allowInsideFunction){let path=this,first=!0;do{const{type,container}=path;if(!first&&(path.isFunction()||"StaticBlock"===type))return !!allowInsideFunction;if(first=!1,Array.isArray(container)&&path.key!==container.length-1)return !1}while((path=path.parentPath)&&!path.isProgram()&&!path.isDoExpression());return !0},exports.isConstantExpression=function(){if(this.isIdentifier()){const binding=this.scope.getBinding(this.node.name);return !!binding&&binding.constant}if(this.isLiteral())return !this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((expression=>expression.isConstantExpression())));if(this.isUnaryExpression())return "void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return !1},exports.isInStrictMode=function(){const start=this.isProgram()?this:this.parentPath;return !!start.find((path=>{if(path.isProgram({sourceType:"module"}))return !0;if(path.isClass())return !0;if(path.isArrowFunctionExpression()&&!path.get("body").isBlockStatement())return !1;let body;if(path.isFunction())body=path.node.body;else {if(!path.isProgram())return !1;body=path.node;}for(const directive of body.directives)if("use strict"===directive.value.value)return !0}))},exports.isNodeType=function(type){return isType(this.type,type)},exports.isStatementOrBlock=function(){return !this.parentPath.isLabeledStatement()&&!isBlockStatement(this.container)&&STATEMENT_OR_BLOCK_KEYS.includes(this.key)},exports.isStatic=function(){return this.scope.isStatic(this.node)},exports.isnt=function(key){return !this.has(key)},exports.matchesPattern=function(pattern,allowPartial){return _matchesPattern(this.node,pattern,allowPartial)},exports.referencesImport=function(moduleSource,importName){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===importName||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?isStringLiteral(this.node.property,{value:importName}):this.node.property.name===importName)){const object=this.get("object");return object.isReferencedIdentifier()&&object.referencesImport(moduleSource,"*")}return !1}const binding=this.scope.getBinding(this.node.name);if(!binding||"module"!==binding.kind)return !1;const path=binding.path,parent=path.parentPath;if(!parent.isImportDeclaration())return !1;if(parent.node.source.value!==moduleSource)return !1;if(!importName)return !0;if(path.isImportDefaultSpecifier()&&"default"===importName)return !0;if(path.isImportNamespaceSpecifier()&&"*"===importName)return !0;if(path.isImportSpecifier()&&isIdentifier(path.node.imported,{name:importName}))return !0;return !1},exports.resolve=function(dangerous,resolved){return this._resolve(dangerous,resolved)||this},exports.willIMaybeExecuteBefore=function(target){return "after"!==this._guessExecutionStatusRelativeTo(target)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{STATEMENT_OR_BLOCK_KEYS,VISITOR_KEYS,isBlockStatement,isExpression,isIdentifier,isLiteral,isStringLiteral,isType,matchesPattern:_matchesPattern}=_t;function has(key){const val=this.node&&this.node[key];return val&&Array.isArray(val)?!!val.length:!!val}const is=has;function getOuterFunction(path){return (path.scope.getFunctionParent()||path.scope.getProgramParent()).path}function isExecutionUncertain(type,key){switch(type){case"LogicalExpression":case"AssignmentPattern":return "right"===key;case"ConditionalExpression":case"IfStatement":return "consequent"===key||"alternate"===key;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return "body"===key;case"ForStatement":return "body"===key||"update"===key;case"SwitchStatement":return "cases"===key;case"TryStatement":return "handler"===key;case"OptionalMemberExpression":return "property"===key;case"OptionalCallExpression":return "arguments"===key;default:return !1}}function isExecutionUncertainInList(paths,maxIndex){for(let i=0;i<maxIndex;i++){const path=paths[i];if(isExecutionUncertain(path.parent.type,path.parentKey))return !0}return !1}function _guessExecutionStatusRelativeToCached(base,target,cache){const funcParent={this:getOuterFunction(base),target:getOuterFunction(target)};if(funcParent.target.node!==funcParent.this.node)return function(base,target,cache){let nodeMap=cache.get(base.node);if(nodeMap){if(nodeMap.has(target.node))return nodeMap.get(target.node)}else cache.set(base.node,nodeMap=new Map);const result=function(base,target,cache){if(!target.isFunctionDeclaration()||target.parentPath.isExportDeclaration())return "unknown";const binding=target.scope.getBinding(target.node.id.name);if(!binding.references)return "before";const referencePaths=binding.referencePaths;let allStatus;for(const path of referencePaths){if(!!!path.find((path=>path.node===target.node))){if("callee"!==path.key||!path.parentPath.isCallExpression())return "unknown";if(!executionOrderCheckedNodes.has(path.node)){executionOrderCheckedNodes.add(path.node);try{const status=_guessExecutionStatusRelativeToCached(base,path,cache);if(allStatus&&allStatus!==status)return "unknown";allStatus=status;}finally{executionOrderCheckedNodes.delete(path.node);}}}}return allStatus}(base,target,cache);return nodeMap.set(target.node,result),result}(base,funcParent.target,cache);const paths={target:target.getAncestry(),this:base.getAncestry()};if(paths.target.indexOf(base)>=0)return "after";if(paths.this.indexOf(target)>=0)return "before";let commonPath;const commonIndex={target:0,this:0};for(;!commonPath&&commonIndex.this<paths.this.length;){const path=paths.this[commonIndex.this];commonIndex.target=paths.target.indexOf(path),commonIndex.target>=0?commonPath=path:commonIndex.this++;}if(!commonPath)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(isExecutionUncertainInList(paths.this,commonIndex.this-1)||isExecutionUncertainInList(paths.target,commonIndex.target-1))return "unknown";const divergence={this:paths.this[commonIndex.this-1],target:paths.target[commonIndex.target-1]};if(divergence.target.listKey&&divergence.this.listKey&&divergence.target.container===divergence.this.container)return divergence.target.key>divergence.this.key?"before":"after";const keys=VISITOR_KEYS[commonPath.type],keyPosition_this=keys.indexOf(divergence.this.parentKey);return keys.indexOf(divergence.target.parentKey)>keyPosition_this?"before":"after"}exports.is=is;const executionOrderCheckedNodes=new Set;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/hoister.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_t2=_t;const{react}=_t,{cloneNode,jsxExpressionContainer,variableDeclaration,variableDeclarator}=_t2,referenceVisitor={ReferencedIdentifier(path,state){if(path.isJSXIdentifier()&&react.isCompatTag(path.node.name)&&!path.parentPath.isJSXMemberExpression())return;if("this"===path.node.name){let scope=path.scope;do{if(scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break}while(scope=scope.parent);scope&&state.breakOnScopePaths.push(scope.path);}const binding=path.scope.getBinding(path.node.name);if(binding){for(const violation of binding.constantViolations)if(violation.scope!==binding.path.scope)return state.mutableBinding=!0,void path.stop();binding===state.scope.getBinding(path.node.name)&&(state.bindings[path.node.name]=binding);}}};exports.default=class{constructor(path,scope){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=scope,this.path=path,this.attachAfter=!1;}isCompatibleScope(scope){for(const key of Object.keys(this.bindings)){const binding=this.bindings[key];if(!scope.bindingIdentifierEquals(key,binding.identifier))return !1}return !0}getCompatibleScopes(){let scope=this.path.scope;do{if(!this.isCompatibleScope(scope))break;if(this.scopes.push(scope),this.breakOnScopePaths.indexOf(scope.path)>=0)break}while(scope=scope.parent)}getAttachmentPath(){let path=this._getAttachmentPath();if(!path)return;let targetScope=path.scope;if(targetScope.path===path&&(targetScope=path.scope.parent),targetScope.path.isProgram()||targetScope.path.isFunction())for(const name of Object.keys(this.bindings)){if(!targetScope.hasOwnBinding(name))continue;const binding=this.bindings[name];if("param"===binding.kind||"params"===binding.path.parentKey)continue;if(this.getAttachmentParentForPath(binding.path).key>=path.key){this.attachAfter=!0,path=binding.path;for(const violationPath of binding.constantViolations)this.getAttachmentParentForPath(violationPath).key>path.key&&(path=violationPath);}}return path}_getAttachmentPath(){const scope=this.scopes.pop();if(scope)if(scope.path.isFunction()){if(!this.hasOwnParamBindings(scope))return this.getNextScopeAttachmentParent();{if(this.scope===scope)return;const bodies=scope.path.get("body").get("body");for(let i=0;i<bodies.length;i++)if(!bodies[i].node._blockHoist)return bodies[i]}}else if(scope.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const scope=this.scopes.pop();if(scope)return this.getAttachmentParentForPath(scope.path)}getAttachmentParentForPath(path){do{if(!path.parentPath||Array.isArray(path.container)&&path.isStatement())return path}while(path=path.parentPath)}hasOwnParamBindings(scope){for(const name of Object.keys(this.bindings)){if(!scope.hasOwnBinding(name))continue;const binding=this.bindings[name];if("param"===binding.kind&&binding.constant)return !0}return !1}run(){if(this.path.traverse(referenceVisitor,this),this.mutableBinding)return;this.getCompatibleScopes();const attachTo=this.getAttachmentPath();if(!attachTo)return;if(attachTo.getFunctionParent()===this.path.getFunctionParent())return;let uid=attachTo.scope.generateUidIdentifier("ref");const declarator=variableDeclarator(uid,this.path.node),insertFn=this.attachAfter?"insertAfter":"insertBefore",[attached]=attachTo[insertFn]([attachTo.isVariableDeclarator()?declarator:variableDeclaration("var",[declarator])]),parent=this.path.parentPath;return parent.isJSXElement()&&this.path.container===parent.node.children&&(uid=jsxExpressionContainer(uid)),this.path.replaceWith(cloneNode(uid)),attachTo.isVariableDeclarator()?attached.get("init"):attached.get("declarations.0.init")}};},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.hooks=void 0;exports.hooks=[function(self,parent){if("test"===self.key&&(parent.isWhile()||parent.isSwitchCase())||"declaration"===self.key&&parent.isExportDeclaration()||"body"===self.key&&parent.isLabeledStatement()||"declarations"===self.listKey&&parent.isVariableDeclaration()&&1===parent.node.declarations.length||"expression"===self.key&&parent.isExpressionStatement())return parent.remove(),!0},function(self,parent){if(parent.isSequenceExpression()&&1===parent.node.expressions.length)return parent.replaceWith(parent.node.expressions[0]),!0},function(self,parent){if(parent.isBinary())return "left"===self.key?parent.replaceWith(parent.node.right):parent.replaceWith(parent.node.left),!0},function(self,parent){if(parent.isIfStatement()&&"consequent"===self.key||"body"===self.key&&(parent.isLoop()||parent.isArrowFunctionExpression()))return self.replaceWith({type:"BlockStatement",body:[]}),!0}];},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBindingIdentifier=function(){const{node,parent}=this,grandparent=this.parentPath.parent;return isIdentifier(node)&&isBinding(node,parent,grandparent)},exports.isBlockScoped=function(){return nodeIsBlockScoped(this.node)},exports.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},exports.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():nodeIsExpression(this.node)},exports.isFlow=function(){const{node}=this;return !!nodeIsFlow(node)||(isImportDeclaration(node)?"type"===node.importKind||"typeof"===node.importKind:isExportDeclaration(node)?"type"===node.exportKind:!!isImportSpecifier(node)&&("type"===node.importKind||"typeof"===node.importKind))},exports.isForAwaitStatement=function(){return isForStatement(this.node,{await:!0})},exports.isGenerated=function(){return !this.isUser()},exports.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},exports.isPure=function(constantsOnly){return this.scope.isPure(this.node,constantsOnly)},exports.isReferenced=function(){return nodeIsReferenced(this.node,this.parent)},exports.isReferencedIdentifier=function(opts){const{node,parent}=this;if(!isIdentifier(node,opts)&&!isJSXMemberExpression(parent,opts)){if(!isJSXIdentifier(node,opts))return !1;if(isCompatTag(node.name))return !1}return nodeIsReferenced(node,parent,this.parentPath.parent)},exports.isReferencedMemberExpression=function(){const{node,parent}=this;return isMemberExpression(node)&&nodeIsReferenced(node,parent)},exports.isRestProperty=function(){return nodeIsRestElement(this.node)&&this.parentPath&&this.parentPath.isObjectPattern()},exports.isScope=function(){return nodeIsScope(this.node,this.parent)},exports.isSpreadProperty=function(){return nodeIsRestElement(this.node)&&this.parentPath&&this.parentPath.isObjectExpression()},exports.isStatement=function(){const{node,parent}=this;if(nodeIsStatement(node)){if(isVariableDeclaration(node)){if(isForXStatement(parent,{left:node}))return !1;if(isForStatement(parent,{init:node}))return !1}return !0}return !1},exports.isUser=function(){return this.node&&!!this.node.loc},exports.isVar=function(){return nodeIsVar(this.node)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isBinding,isBlockScoped:nodeIsBlockScoped,isExportDeclaration,isExpression:nodeIsExpression,isFlow:nodeIsFlow,isForStatement,isForXStatement,isIdentifier,isImportDeclaration,isImportSpecifier,isJSXIdentifier,isJSXMemberExpression,isMemberExpression,isRestElement:nodeIsRestElement,isReferenced:nodeIsReferenced,isScope:nodeIsScope,isStatement:nodeIsStatement,isVar:nodeIsVar,isVariableDeclaration,react}=_t,{isCompatTag}=react;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/virtual-types.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.Var=exports.User=exports.Statement=exports.SpreadProperty=exports.Scope=exports.RestProperty=exports.ReferencedMemberExpression=exports.ReferencedIdentifier=exports.Referenced=exports.Pure=exports.NumericLiteralTypeAnnotation=exports.Generated=exports.ForAwaitStatement=exports.Flow=exports.Expression=exports.ExistentialTypeParam=exports.BlockScoped=exports.BindingIdentifier=void 0;exports.ReferencedIdentifier=["Identifier","JSXIdentifier"];exports.ReferencedMemberExpression=["MemberExpression"];exports.BindingIdentifier=["Identifier"];exports.Statement=["Statement"];exports.Expression=["Expression"];exports.Scope=["Scopable","Pattern"];exports.Referenced=null;exports.BlockScoped=null;exports.Var=["VariableDeclaration"];exports.User=null;exports.Generated=null;exports.Pure=null;exports.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];exports.RestProperty=["RestElement"];exports.SpreadProperty=["RestElement"];exports.ExistentialTypeParam=["ExistsTypeAnnotation"];exports.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];exports.ForAwaitStatement=["ForOfStatement"];},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/modification.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._containerInsert=function(from,nodes){this.updateSiblingKeys(from,nodes.length);const paths=[];this.container.splice(from,0,...nodes);for(let i=0;i<nodes.length;i++){const to=from+i,path=this.getSibling(to);paths.push(path),this.context&&this.context.queue&&path.pushContext(this.context);}const contexts=this._getQueueContexts();for(const path of paths){path.setScope(),path.debug("Inserted.");for(const context of contexts)context.maybeQueue(path,!0);}return paths},exports._containerInsertAfter=function(nodes){return this._containerInsert(this.key+1,nodes)},exports._containerInsertBefore=function(nodes){return this._containerInsert(this.key,nodes)},exports._verifyNodeList=function(nodes){if(!nodes)return [];Array.isArray(nodes)||(nodes=[nodes]);for(let i=0;i<nodes.length;i++){const node=nodes[i];let msg;if(node?"object"!=typeof node?msg="contains a non-object node":node.type?node instanceof _index.default&&(msg="has a NodePath when it expected a raw object"):msg="without a type":msg="has falsy node",msg){const type=Array.isArray(node)?"array":typeof node;throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`)}}return nodes},exports.hoist=function(scope=this.scope){return new _hoister.default(this,scope).run()},exports.insertAfter=function(nodes_){if(this._assertUnremoved(),this.isSequenceExpression())return last(this.get("expressions")).insertAfter(nodes_);const nodes=this._verifyNodeList(nodes_),{parentPath}=this;if(parentPath.isExpressionStatement()||parentPath.isLabeledStatement()||parentPath.isExportNamedDeclaration()||parentPath.isExportDefaultDeclaration()&&this.isDeclaration())return parentPath.insertAfter(nodes.map((node=>isExpression(node)?expressionStatement(node):node)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!parentPath.isJSXElement()||parentPath.isForStatement()&&"init"===this.key){if(this.node){const node=this.node;let{scope}=this;if(scope.path.isPattern())return assertExpression(node),this.replaceWith(callExpression(arrowFunctionExpression([],node),[])),this.get("callee.body").insertAfter(nodes),[this];if(isHiddenInSequenceExpression(this))nodes.unshift(node);else if(isCallExpression(node)&&isSuper(node.callee))nodes.unshift(node),nodes.push(thisExpression());else if(function(node,scope){if(!isAssignmentExpression(node)||!isIdentifier(node.left))return !1;const blockScope=scope.getBlockParent();return blockScope.hasOwnBinding(node.left.name)&&blockScope.getOwnBinding(node.left.name).constantViolations.length<=1}(node,scope))nodes.unshift(node),nodes.push(cloneNode(node.left));else if(scope.isPure(node,!0))nodes.push(node);else {parentPath.isMethod({computed:!0,key:node})&&(scope=scope.parent);const temp=scope.generateDeclaredUidIdentifier();nodes.unshift(expressionStatement(assignmentExpression("=",cloneNode(temp),node))),nodes.push(expressionStatement(cloneNode(temp)));}}return this.replaceExpressionWithStatements(nodes)}if(Array.isArray(this.container))return this._containerInsertAfter(nodes);if(this.isStatementOrBlock()){const node=this.node,shouldInsertCurrentNode=node&&(!this.isExpressionStatement()||null!=node.expression);return this.replaceWith(blockStatement(shouldInsertCurrentNode?[node]:[])),this.pushContainer("body",nodes)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},exports.insertBefore=function(nodes_){this._assertUnremoved();const nodes=this._verifyNodeList(nodes_),{parentPath}=this;if(parentPath.isExpressionStatement()||parentPath.isLabeledStatement()||parentPath.isExportNamedDeclaration()||parentPath.isExportDefaultDeclaration()&&this.isDeclaration())return parentPath.insertBefore(nodes);if(this.isNodeType("Expression")&&!this.isJSXElement()||parentPath.isForStatement()&&"init"===this.key)return this.node&&nodes.push(this.node),this.replaceExpressionWithStatements(nodes);if(Array.isArray(this.container))return this._containerInsertBefore(nodes);if(this.isStatementOrBlock()){const node=this.node,shouldInsertCurrentNode=node&&(!this.isExpressionStatement()||null!=node.expression);return this.replaceWith(blockStatement(shouldInsertCurrentNode?[node]:[])),this.unshiftContainer("body",nodes)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},exports.pushContainer=function(listKey,nodes){this._assertUnremoved();const verifiedNodes=this._verifyNodeList(nodes),container=this.node[listKey];return _index.default.get({parentPath:this,parent:this.node,container,listKey,key:container.length}).setContext(this.context).replaceWithMultiple(verifiedNodes)},exports.unshiftContainer=function(listKey,nodes){this._assertUnremoved(),nodes=this._verifyNodeList(nodes);return _index.default.get({parentPath:this,parent:this.node,container:this.node[listKey],listKey,key:0}).setContext(this.context)._containerInsertBefore(nodes)},exports.updateSiblingKeys=function(fromIndex,incrementBy){if(!this.parent)return;const paths=_cache.path.get(this.parent);for(const[,path]of paths)path.key>=fromIndex&&(path.key+=incrementBy);};var _cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js"),_hoister=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/hoister.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{arrowFunctionExpression,assertExpression,assignmentExpression,blockStatement,callExpression,cloneNode,expressionStatement,isAssignmentExpression,isCallExpression,isExpression,isIdentifier,isSequenceExpression,isSuper,thisExpression}=_t;const last=arr=>arr[arr.length-1];function isHiddenInSequenceExpression(path){return isSequenceExpression(path.parent)&&(last(path.parent.expressions)!==path.node||isHiddenInSequenceExpression(path.parentPath))}},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/removal.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")},exports._callRemovalHooks=function(){for(const fn of _removalHooks.hooks)if(fn(this,this.parentPath))return !0},exports._markRemoved=function(){this._traverseFlags|=_index.SHOULD_SKIP|_index.REMOVED,this.parent&&_cache.path.get(this.parent).delete(this.node);this.node=null;},exports._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null);},exports._removeFromScope=function(){const bindings=this.getBindingIdentifiers();Object.keys(bindings).forEach((name=>this.scope.removeBinding(name)));},exports.remove=function(){var _this$opts;this._assertUnremoved(),this.resync(),null!=(_this$opts=this.opts)&&_this$opts.noScope||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved();};var _removalHooks=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js"),_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js");},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/replacement.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._replaceWith=function(node){var _pathCache$get2;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?validate(this.parent,this.key,[node]):validate(this.parent,this.key,node);this.debug(`Replace with ${null==node?void 0:node.type}`),null==(_pathCache$get2=_cache.path.get(this.parent))||_pathCache$get2.set(node,this).delete(this.node),this.node=this.container[this.key]=node;},exports.replaceExpressionWithStatements=function(nodes){this.resync();const nodesAsSequenceExpression=toSequenceExpression(nodes,this.scope);if(nodesAsSequenceExpression)return this.replaceWith(nodesAsSequenceExpression)[0].get("expressions");const functionParent=this.getFunctionParent(),isParentAsync=null==functionParent?void 0:functionParent.is("async"),isParentGenerator=null==functionParent?void 0:functionParent.is("generator"),container=arrowFunctionExpression([],blockStatement(nodes));this.replaceWith(callExpression(container,[]));const callee=this.get("callee");(0, _helperHoistVariables.default)(callee.get("body"),(id=>{this.scope.push({id});}),"var");const completionRecords=this.get("callee").getCompletionRecords();for(const path of completionRecords){if(!path.isExpressionStatement())continue;const loop=path.findParent((path=>path.isLoop()));if(loop){let uid=loop.getData("expressionReplacementReturnUid");uid?uid=identifier(uid.name):(uid=callee.scope.generateDeclaredUidIdentifier("ret"),callee.get("body").pushContainer("body",returnStatement(cloneNode(uid))),loop.setData("expressionReplacementReturnUid",uid)),path.get("expression").replaceWith(assignmentExpression("=",cloneNode(uid),path.node.expression));}else path.replaceWith(returnStatement(path.node.expression));}callee.arrowFunctionToExpression();const newCallee=callee,needToAwaitFunction=isParentAsync&&_index.default.hasType(this.get("callee.body").node,"AwaitExpression",FUNCTION_TYPES),needToYieldFunction=isParentGenerator&&_index.default.hasType(this.get("callee.body").node,"YieldExpression",FUNCTION_TYPES);needToAwaitFunction&&(newCallee.set("async",!0),needToYieldFunction||this.replaceWith(awaitExpression(this.node)));needToYieldFunction&&(newCallee.set("generator",!0),this.replaceWith(yieldExpression(this.node,!0)));return newCallee.get("body.body")},exports.replaceInline=function(nodes){if(this.resync(),Array.isArray(nodes)){if(Array.isArray(this.container)){nodes=this._verifyNodeList(nodes);const paths=this._containerInsertAfter(nodes);return this.remove(),paths}return this.replaceWithMultiple(nodes)}return this.replaceWith(nodes)},exports.replaceWith=function(replacementPath){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let replacement=replacementPath instanceof _index2.default?replacementPath.node:replacementPath;if(!replacement)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===replacement)return [this];if(this.isProgram()&&!isProgram(replacement))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(replacement))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof replacement)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let nodePath="";this.isNodeType("Statement")&&isExpression(replacement)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(replacement)||this.parentPath.isExportDefaultDeclaration()||(replacement=expressionStatement(replacement),nodePath="expression"));if(this.isNodeType("Expression")&&isStatement(replacement)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(replacement))return this.replaceExpressionWithStatements([replacement]);const oldNode=this.node;oldNode&&(inheritsComments(replacement,oldNode),removeComments(oldNode));return this._replaceWith(replacement),this.type=replacement.type,this.setScope(),this.requeue(),[nodePath?this.get(nodePath):this]},exports.replaceWithMultiple=function(nodes){var _pathCache$get;this.resync(),nodes=this._verifyNodeList(nodes),inheritLeadingComments(nodes[0],this.node),inheritTrailingComments(nodes[nodes.length-1],this.node),null==(_pathCache$get=_cache.path.get(this.parent))||_pathCache$get.delete(this.node),this.node=this.container[this.key]=null;const paths=this.insertAfter(nodes);this.node?this.requeue():this.remove();return paths},exports.replaceWithSourceString=function(replacement){let ast;this.resync();try{replacement=`(${replacement})`,ast=(0,_parser.parse)(replacement);}catch(err){const loc=err.loc;throw loc&&(err.message+=" - make sure this is an expression.\n"+(0, _codeFrame.codeFrameColumns)(replacement,{start:{line:loc.line,column:loc.column+1}}),err.code="BABEL_REPLACE_SOURCE_ERROR"),err}const expressionAST=ast.program.body[0].expression;return _index.default.removeProperties(expressionAST),this.replaceWith(expressionAST)};var _codeFrame=__webpack_require__("./stubs/babel_codeframe.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/index.js"),_index2=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/index.js"),_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js"),_parser=__webpack_require__("./node_modules/.pnpm/@babel+parser@7.19.1/node_modules/@babel/parser/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helperHoistVariables=__webpack_require__("./node_modules/.pnpm/@babel+helper-hoist-variables@7.18.6/node_modules/@babel/helper-hoist-variables/lib/index.js");const{FUNCTION_TYPES,arrowFunctionExpression,assignmentExpression,awaitExpression,blockStatement,callExpression,cloneNode,expressionStatement,identifier,inheritLeadingComments,inheritTrailingComments,inheritsComments,isExpression,isProgram,isStatement,removeComments,returnStatement,toSequenceExpression,validate,yieldExpression}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/binding.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{constructor({identifier,scope,path,kind}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=identifier,this.scope=scope,this.path=path,this.kind=kind,this.clearValue();}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0;}setValue(value){this.hasDeoptedValue||(this.hasValue=!0,this.value=value);}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null;}reassign(path){this.constant=!1,-1===this.constantViolations.indexOf(path)&&this.constantViolations.push(path);}reference(path){-1===this.referencePaths.indexOf(path)&&(this.referenced=!0,this.references++,this.referencePaths.push(path));}dereference(){this.references--,this.referenced=!!this.references;}};},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _renamer=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/lib/renamer.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/index.js"),_binding=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/binding.js"),_globals=__webpack_require__("./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/cache.js");const{NOT_LOCAL_BINDING,callExpression,cloneNode,getBindingIdentifiers,identifier,isArrayExpression,isBinary,isClass,isClassBody,isClassDeclaration,isExportAllDeclaration,isExportDefaultDeclaration,isExportNamedDeclaration,isFunctionDeclaration,isIdentifier,isImportDeclaration,isLiteral,isMethod,isModuleDeclaration,isModuleSpecifier,isNullLiteral,isObjectExpression,isProperty,isPureish,isRegExpLiteral,isSuper,isTaggedTemplateExpression,isTemplateLiteral,isThisExpression,isUnaryExpression,isVariableDeclaration,matchesPattern,memberExpression,numericLiteral,toIdentifier,unaryExpression,variableDeclaration,variableDeclarator,isRecordExpression,isTupleExpression,isObjectProperty,isTopicReference,isMetaProperty,isPrivateName}=_t;function gatherNodeParts(node,parts){switch(null==node?void 0:node.type){default:if(isModuleDeclaration(node))if((isExportAllDeclaration(node)||isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.source)gatherNodeParts(node.source,parts);else if((isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.specifiers&&node.specifiers.length)for(const e of node.specifiers)gatherNodeParts(e,parts);else (isExportDefaultDeclaration(node)||isExportNamedDeclaration(node))&&node.declaration&&gatherNodeParts(node.declaration,parts);else isModuleSpecifier(node)?gatherNodeParts(node.local,parts):!isLiteral(node)||isNullLiteral(node)||isRegExpLiteral(node)||isTemplateLiteral(node)||parts.push(node.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(node.object,parts),gatherNodeParts(node.property,parts);break;case"Identifier":case"JSXIdentifier":parts.push(node.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(node.callee,parts);break;case"ObjectExpression":case"ObjectPattern":for(const e of node.properties)gatherNodeParts(e,parts);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":gatherNodeParts(node.argument,parts);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(node.key,parts);break;case"ThisExpression":parts.push("this");break;case"Super":parts.push("super");break;case"Import":parts.push("import");break;case"DoExpression":parts.push("do");break;case"YieldExpression":parts.push("yield"),gatherNodeParts(node.argument,parts);break;case"AwaitExpression":parts.push("await"),gatherNodeParts(node.argument,parts);break;case"AssignmentExpression":gatherNodeParts(node.left,parts);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":gatherNodeParts(node.id,parts);break;case"ParenthesizedExpression":gatherNodeParts(node.expression,parts);break;case"MetaProperty":gatherNodeParts(node.meta,parts),gatherNodeParts(node.property,parts);break;case"JSXElement":gatherNodeParts(node.openingElement,parts);break;case"JSXOpeningElement":gatherNodeParts(node.name,parts);break;case"JSXFragment":gatherNodeParts(node.openingFragment,parts);break;case"JSXOpeningFragment":parts.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(node.namespace,parts),gatherNodeParts(node.name,parts);}}const collectorVisitor={ForStatement(path){const declar=path.get("init");if(declar.isVar()){const{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",declar);}},Declaration(path){if(path.isBlockScoped())return;if(path.isImportDeclaration())return;if(path.isExportDeclaration())return;(path.scope.getFunctionParent()||path.scope.getProgramParent()).registerDeclaration(path);},ImportDeclaration(path){path.scope.getBlockParent().registerDeclaration(path);},ReferencedIdentifier(path,state){state.references.push(path);},ForXStatement(path,state){const left=path.get("left");if(left.isPattern()||left.isIdentifier())state.constantViolations.push(path);else if(left.isVar()){const{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",left);}},ExportDeclaration:{exit(path){const{node,scope}=path;if(isExportAllDeclaration(node))return;const declar=node.declaration;if(isClassDeclaration(declar)||isFunctionDeclaration(declar)){const id=declar.id;if(!id)return;const binding=scope.getBinding(id.name);null==binding||binding.reference(path);}else if(isVariableDeclaration(declar))for(const decl of declar.declarations)for(const name of Object.keys(getBindingIdentifiers(decl))){const binding=scope.getBinding(name);null==binding||binding.reference(path);}}},LabeledStatement(path){path.scope.getBlockParent().registerDeclaration(path);},AssignmentExpression(path,state){state.assignments.push(path);},UpdateExpression(path,state){state.constantViolations.push(path);},UnaryExpression(path,state){"delete"===path.node.operator&&state.constantViolations.push(path);},BlockScoped(path){let scope=path.scope;scope.path===path&&(scope=scope.parent);if(scope.getBlockParent().registerDeclaration(path),path.isClassDeclaration()&&path.node.id){const name=path.node.id.name;path.scope.bindings[name]=path.scope.parent.getBinding(name);}},CatchClause(path){path.scope.registerBinding("let",path);},Function(path){const params=path.get("params");for(const param of params)path.scope.registerBinding("param",param);path.isFunctionExpression()&&path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path.get("id"),path);},ClassExpression(path){path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path);}};let uid=0;class Scope{constructor(path){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;const{node}=path,cached=_cache.scope.get(node);if((null==cached?void 0:cached.path)===path)return cached;_cache.scope.set(node,this),this.uid=uid++,this.block=node,this.path=path,this.labels=new Map,this.inited=!1;}get parent(){var _parent;let parent,path=this.path;do{const shouldSkip="key"===path.key||"decorators"===path.listKey;path=path.parentPath,shouldSkip&&path.isMethod()&&(path=path.parentPath),path&&path.isScope()&&(parent=path);}while(path&&!parent);return null==(_parent=parent)?void 0:_parent.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(node,opts,state){(0, _index.default)(node,opts,this,state,this.path);}generateDeclaredUidIdentifier(name){const id=this.generateUidIdentifier(name);return this.push({id}),cloneNode(id)}generateUidIdentifier(name){return identifier(this.generateUid(name))}generateUid(name="temp"){let uid;name=toIdentifier(name).replace(/^_+/,"").replace(/[0-9]+$/g,"");let i=1;do{uid=this._generateUid(name,i),i++;}while(this.hasLabel(uid)||this.hasBinding(uid)||this.hasGlobal(uid)||this.hasReference(uid));const program=this.getProgramParent();return program.references[uid]=!0,program.uids[uid]=!0,uid}_generateUid(name,i){let id=name;return i>1&&(id+=i),`_${id}`}generateUidBasedOnNode(node,defaultName){const parts=[];gatherNodeParts(node,parts);let id=parts.join("$");return id=id.replace(/^_/,"")||defaultName||"ref",this.generateUid(id.slice(0,20))}generateUidIdentifierBasedOnNode(node,defaultName){return identifier(this.generateUidBasedOnNode(node,defaultName))}isStatic(node){if(isThisExpression(node)||isSuper(node)||isTopicReference(node))return !0;if(isIdentifier(node)){const binding=this.getBinding(node.name);return binding?binding.constant:this.hasBinding(node.name)}return !1}maybeGenerateMemoised(node,dontPush){if(this.isStatic(node))return null;{const id=this.generateUidIdentifierBasedOnNode(node);return dontPush?id:(this.push({id}),cloneNode(id))}}checkBlockScopedCollisions(local,kind,name,id){if("param"===kind)return;if("local"===local.kind)return;if("let"===kind||"let"===local.kind||"const"===local.kind||"module"===local.kind||"param"===local.kind&&"const"===kind)throw this.hub.buildError(id,`Duplicate declaration "${name}"`,TypeError)}rename(oldName,newName,block){const binding=this.getBinding(oldName);if(binding)return newName=newName||this.generateUidIdentifier(oldName).name,new _renamer.default(binding,oldName,newName).rename(block)}_renameFromMap(map,oldName,newName,value){map[oldName]&&(map[newName]=value,map[oldName]=null);}dump(){const sep="-".repeat(60);console.log(sep);let scope=this;do{console.log("#",scope.block.type);for(const name of Object.keys(scope.bindings)){const binding=scope.bindings[name];console.log(" -",name,{constant:binding.constant,references:binding.references,violations:binding.constantViolations.length,kind:binding.kind});}}while(scope=scope.parent);console.log(sep);}toArray(node,i,arrayLikeIsIterable){if(isIdentifier(node)){const binding=this.getBinding(node.name);if(null!=binding&&binding.constant&&binding.path.isGenericType("Array"))return node}if(isArrayExpression(node))return node;if(isIdentifier(node,{name:"arguments"}))return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"),identifier("prototype")),identifier("slice")),identifier("call")),[node]);let helperName;const args=[node];return !0===i?helperName="toConsumableArray":i?(args.push(numericLiteral(i)),helperName="slicedToArray"):helperName="toArray",arrayLikeIsIterable&&(args.unshift(this.hub.addHelper(helperName)),helperName="maybeArrayLike"),callExpression(this.hub.addHelper(helperName),args)}hasLabel(name){return !!this.getLabel(name)}getLabel(name){return this.labels.get(name)}registerLabel(path){this.labels.set(path.node.label.name,path);}registerDeclaration(path){if(path.isLabeledStatement())this.registerLabel(path);else if(path.isFunctionDeclaration())this.registerBinding("hoisted",path.get("id"),path);else if(path.isVariableDeclaration()){const declarations=path.get("declarations");for(const declar of declarations)this.registerBinding(path.node.kind,declar);}else if(path.isClassDeclaration()){if(path.node.declare)return;this.registerBinding("let",path);}else if(path.isImportDeclaration()){const specifiers=path.get("specifiers");for(const specifier of specifiers)this.registerBinding("module",specifier);}else if(path.isExportDeclaration()){const declar=path.get("declaration");(declar.isClassDeclaration()||declar.isFunctionDeclaration()||declar.isVariableDeclaration())&&this.registerDeclaration(declar);}else this.registerBinding("unknown",path);}buildUndefinedNode(){return unaryExpression("void",numericLiteral(0),!0)}registerConstantViolation(path){const ids=path.getBindingIdentifiers();for(const name of Object.keys(ids)){const binding=this.getBinding(name);binding&&binding.reassign(path);}}registerBinding(kind,path,bindingPath=path){if(!kind)throw new ReferenceError("no `kind`");if(path.isVariableDeclaration()){const declarators=path.get("declarations");for(const declar of declarators)this.registerBinding(kind,declar);return}const parent=this.getProgramParent(),ids=path.getOuterBindingIdentifiers(!0);for(const name of Object.keys(ids)){parent.references[name]=!0;for(const id of ids[name]){const local=this.getOwnBinding(name);if(local){if(local.identifier===id)continue;this.checkBlockScopedCollisions(local,kind,name,id);}local?this.registerConstantViolation(bindingPath):this.bindings[name]=new _binding.default({identifier:id,scope:this,path:bindingPath,kind});}}}addGlobal(node){this.globals[node.name]=node;}hasUid(name){let scope=this;do{if(scope.uids[name])return !0}while(scope=scope.parent);return !1}hasGlobal(name){let scope=this;do{if(scope.globals[name])return !0}while(scope=scope.parent);return !1}hasReference(name){return !!this.getProgramParent().references[name]}isPure(node,constantsOnly){if(isIdentifier(node)){const binding=this.getBinding(node.name);return !!binding&&(!constantsOnly||binding.constant)}if(isThisExpression(node)||isMetaProperty(node)||isTopicReference(node)||isPrivateName(node))return !0;var _node$decorators,_node$decorators2,_node$decorators3;if(isClass(node))return !(node.superClass&&!this.isPure(node.superClass,constantsOnly))&&(!((null==(_node$decorators=node.decorators)?void 0:_node$decorators.length)>0)&&this.isPure(node.body,constantsOnly));if(isClassBody(node)){for(const method of node.body)if(!this.isPure(method,constantsOnly))return !1;return !0}if(isBinary(node))return this.isPure(node.left,constantsOnly)&&this.isPure(node.right,constantsOnly);if(isArrayExpression(node)||isTupleExpression(node)){for(const elem of node.elements)if(null!==elem&&!this.isPure(elem,constantsOnly))return !1;return !0}if(isObjectExpression(node)||isRecordExpression(node)){for(const prop of node.properties)if(!this.isPure(prop,constantsOnly))return !1;return !0}if(isMethod(node))return !(node.computed&&!this.isPure(node.key,constantsOnly))&&!((null==(_node$decorators2=node.decorators)?void 0:_node$decorators2.length)>0);if(isProperty(node))return !(node.computed&&!this.isPure(node.key,constantsOnly))&&(!((null==(_node$decorators3=node.decorators)?void 0:_node$decorators3.length)>0)&&!((isObjectProperty(node)||node.static)&&null!==node.value&&!this.isPure(node.value,constantsOnly)));if(isUnaryExpression(node))return this.isPure(node.argument,constantsOnly);if(isTaggedTemplateExpression(node))return matchesPattern(node.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(node.quasi,constantsOnly);if(isTemplateLiteral(node)){for(const expression of node.expressions)if(!this.isPure(expression,constantsOnly))return !1;return !0}return isPureish(node)}setData(key,val){return this.data[key]=val}getData(key){let scope=this;do{const data=scope.data[key];if(null!=data)return data}while(scope=scope.parent)}removeData(key){let scope=this;do{null!=scope.data[key]&&(scope.data[key]=null);}while(scope=scope.parent)}init(){this.inited||(this.inited=!0,this.crawl());}crawl(){const path=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);const programParent=this.getProgramParent();if(programParent.crawling)return;const state={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==path.type&&collectorVisitor._exploded){for(const visit of collectorVisitor.enter)visit(path,state);const typeVisitors=collectorVisitor[path.type];if(typeVisitors)for(const visit of typeVisitors.enter)visit(path,state);}path.traverse(collectorVisitor,state),this.crawling=!1;for(const path of state.assignments){const ids=path.getBindingIdentifiers();for(const name of Object.keys(ids))path.scope.getBinding(name)||programParent.addGlobal(ids[name]);path.scope.registerConstantViolation(path);}for(const ref of state.references){const binding=ref.scope.getBinding(ref.node.name);binding?binding.reference(ref):programParent.addGlobal(ref.node);}for(const path of state.constantViolations)path.scope.registerConstantViolation(path);}push(opts){let path=this.path;path.isPattern()?path=this.getPatternParent().path:path.isBlockStatement()||path.isProgram()||(path=this.getBlockParent().path),path.isSwitchStatement()&&(path=(this.getFunctionParent()||this.getProgramParent()).path),(path.isLoop()||path.isCatchClause()||path.isFunction())&&(path.ensureBlock(),path=path.get("body"));const unique=opts.unique,kind=opts.kind||"var",blockHoist=null==opts._blockHoist?2:opts._blockHoist,dataKey=`declaration:${kind}:${blockHoist}`;let declarPath=!unique&&path.getData(dataKey);if(!declarPath){const declar=variableDeclaration(kind,[]);declar._blockHoist=blockHoist,[declarPath]=path.unshiftContainer("body",[declar]),unique||path.setData(dataKey,declarPath);}const declarator=variableDeclarator(opts.id,opts.init),len=declarPath.node.declarations.push(declarator);path.scope.registerBinding(kind,declarPath.get("declarations")[len-1]);}getProgramParent(){let scope=this;do{if(scope.path.isProgram())return scope}while(scope=scope.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let scope=this;do{if(scope.path.isFunctionParent())return scope}while(scope=scope.parent);return null}getBlockParent(){let scope=this;do{if(scope.path.isBlockParent())return scope}while(scope=scope.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let scope=this;do{if(!scope.path.isPattern())return scope.getBlockParent()}while(scope=scope.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const ids=Object.create(null);let scope=this;do{for(const key of Object.keys(scope.bindings))key in ids==!1&&(ids[key]=scope.bindings[key]);scope=scope.parent;}while(scope);return ids}getAllBindingsOfKind(...kinds){const ids=Object.create(null);for(const kind of kinds){let scope=this;do{for(const name of Object.keys(scope.bindings)){const binding=scope.bindings[name];binding.kind===kind&&(ids[name]=binding);}scope=scope.parent;}while(scope)}return ids}bindingIdentifierEquals(name,node){return this.getBindingIdentifier(name)===node}getBinding(name){let previousPath,scope=this;do{const binding=scope.getOwnBinding(name);var _previousPath;if(binding){if(null==(_previousPath=previousPath)||!_previousPath.isPattern()||"param"===binding.kind||"local"===binding.kind)return binding}else if(!binding&&"arguments"===name&&scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break;previousPath=scope.path;}while(scope=scope.parent)}getOwnBinding(name){return this.bindings[name]}getBindingIdentifier(name){var _this$getBinding;return null==(_this$getBinding=this.getBinding(name))?void 0:_this$getBinding.identifier}getOwnBindingIdentifier(name){const binding=this.bindings[name];return null==binding?void 0:binding.identifier}hasOwnBinding(name){return !!this.getOwnBinding(name)}hasBinding(name,noGlobals){return !!name&&(!!this.hasOwnBinding(name)||(!!this.parentHasBinding(name,noGlobals)||(!!this.hasUid(name)||(!(noGlobals||!Scope.globals.includes(name))||!(noGlobals||!Scope.contextVariables.includes(name))))))}parentHasBinding(name,noGlobals){var _this$parent;return null==(_this$parent=this.parent)?void 0:_this$parent.hasBinding(name,noGlobals)}moveBindingTo(name,scope){const info=this.getBinding(name);info&&(info.scope.removeOwnBinding(name),info.scope=scope,scope.bindings[name]=info);}removeOwnBinding(name){delete this.bindings[name];}removeBinding(name){var _this$getBinding2;null==(_this$getBinding2=this.getBinding(name))||_this$getBinding2.scope.removeOwnBinding(name);let scope=this;do{scope.uids[name]&&(scope.uids[name]=!1);}while(scope=scope.parent)}}exports.default=Scope,Scope.globals=Object.keys(_globals.builtin),Scope.contextVariables=["arguments","undefined","Infinity","NaN"];},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/scope/lib/renamer.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperSplitExportDeclaration=__webpack_require__("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js"),t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js");const renameVisitor={ReferencedIdentifier({node},state){node.name===state.oldName&&(node.name=state.newName);},Scope(path,state){path.scope.bindingIdentifierEquals(state.oldName,state.binding.identifier)||(path.skip(),path.isMethod()&&(0, _helperEnvironmentVisitor.requeueComputedKeyAndDecorators)(path));},"AssignmentExpression|Declaration|VariableDeclarator"(path,state){if(path.isVariableDeclaration())return;const ids=path.getOuterBindingIdentifiers();for(const name in ids)name===state.oldName&&(ids[name].name=state.newName);}};exports.default=class{constructor(binding,oldName,newName){this.newName=newName,this.oldName=oldName,this.binding=binding;}maybeConvertFromExportDeclaration(parentDeclar){const maybeExportDeclar=parentDeclar.parentPath;if(maybeExportDeclar.isExportDeclaration()){if(maybeExportDeclar.isExportDefaultDeclaration()){const{declaration}=maybeExportDeclar.node;if(t.isDeclaration(declaration)&&!declaration.id)return}maybeExportDeclar.isExportAllDeclaration()||(0, _helperSplitExportDeclaration.default)(maybeExportDeclar);}}maybeConvertFromClassFunctionDeclaration(path){return path}maybeConvertFromClassFunctionExpression(path){return path}rename(block){const{binding,oldName,newName}=this,{scope,path}=binding,parentDeclar=path.find((path=>path.isDeclaration()||path.isFunctionExpression()||path.isClassExpression()));if(parentDeclar){parentDeclar.getOuterBindingIdentifiers()[oldName]===binding.identifier&&this.maybeConvertFromExportDeclaration(parentDeclar);}const blockToTraverse=block||scope.block;"SwitchStatement"===(null==blockToTraverse?void 0:blockToTraverse.type)?blockToTraverse.cases.forEach((c=>{scope.traverse(c,renameVisitor,this);})):scope.traverse(blockToTraverse,renameVisitor,this),block||(scope.removeOwnBinding(oldName),scope.bindings[newName]=binding,this.binding.identifier.name=newName),parentDeclar&&(this.maybeConvertFromClassFunctionDeclaration(path),this.maybeConvertFromClassFunctionExpression(path));}};},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/traverse-node.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.traverseNode=function(node,opts,scope,state,path,skipKeys){const keys=VISITOR_KEYS[node.type];if(!keys)return !1;const context=new _context.default(scope,opts,state,path);for(const key of keys)if((!skipKeys||!skipKeys[key])&&context.visit(node,key))return !0;return !1};var _context=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/context.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/visitors.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.explode=explode,exports.merge=function(visitors,states=[],wrapper){const rootVisitor={};for(let i=0;i<visitors.length;i++){const visitor=visitors[i],state=states[i];explode(visitor);for(const type of Object.keys(visitor)){let visitorType=visitor[type];(state||wrapper)&&(visitorType=wrapWithStateOrWrapper(visitorType,state,wrapper));mergePair(rootVisitor[type]||(rootVisitor[type]={}),visitorType);}}return rootVisitor},exports.verify=verify;var virtualTypes=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.0/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{DEPRECATED_KEYS,FLIPPED_ALIAS_KEYS,TYPES}=_t;function explode(visitor){if(visitor._exploded)return visitor;visitor._exploded=!0;for(const nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;const parts=nodeType.split("|");if(1===parts.length)continue;const fns=visitor[nodeType];delete visitor[nodeType];for(const part of parts)visitor[part]=fns;}verify(visitor),delete visitor.__esModule,function(obj){for(const key of Object.keys(obj)){if(shouldIgnoreKey(key))continue;const fns=obj[key];"function"==typeof fns&&(obj[key]={enter:fns});}}(visitor),ensureCallbackArrays(visitor);for(const nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;if(!(nodeType in virtualTypes))continue;const fns=visitor[nodeType];for(const type of Object.keys(fns))fns[type]=wrapCheck(nodeType,fns[type]);delete visitor[nodeType];const types=virtualTypes[nodeType];if(null!==types)for(const type of types)visitor[type]?mergePair(visitor[type],fns):visitor[type]=fns;else mergePair(visitor,fns);}for(const nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;const fns=visitor[nodeType];let aliases=FLIPPED_ALIAS_KEYS[nodeType];const deprecatedKey=DEPRECATED_KEYS[nodeType];if(deprecatedKey&&(console.trace(`Visitor defined for ${nodeType} but it has been renamed to ${deprecatedKey}`),aliases=[deprecatedKey]),aliases){delete visitor[nodeType];for(const alias of aliases){const existing=visitor[alias];existing?mergePair(existing,fns):visitor[alias]=Object.assign({},fns);}}}for(const nodeType of Object.keys(visitor))shouldIgnoreKey(nodeType)||ensureCallbackArrays(visitor[nodeType]);return visitor}function verify(visitor){if(!visitor._verified){if("function"==typeof visitor)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const nodeType of Object.keys(visitor)){if("enter"!==nodeType&&"exit"!==nodeType||validateVisitorMethods(nodeType,visitor[nodeType]),shouldIgnoreKey(nodeType))continue;if(TYPES.indexOf(nodeType)<0)throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`);const visitors=visitor[nodeType];if("object"==typeof visitors)for(const visitorKey of Object.keys(visitors)){if("enter"!==visitorKey&&"exit"!==visitorKey)throw new Error(`You passed \`traverse()\` a visitor object with the property ${nodeType} that has the invalid property ${visitorKey}`);validateVisitorMethods(`${nodeType}.${visitorKey}`,visitors[visitorKey]);}}visitor._verified=!0;}}function validateVisitorMethods(path,val){const fns=[].concat(val);for(const fn of fns)if("function"!=typeof fn)throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`)}function wrapWithStateOrWrapper(oldVisitor,state,wrapper){const newVisitor={};for(const key of Object.keys(oldVisitor)){let fns=oldVisitor[key];Array.isArray(fns)&&(fns=fns.map((function(fn){let newFn=fn;return state&&(newFn=function(path){return fn.call(state,path,state)}),wrapper&&(newFn=wrapper(state.key,key,newFn)),newFn!==fn&&(newFn.toString=()=>fn.toString()),newFn})),newVisitor[key]=fns);}return newVisitor}function ensureCallbackArrays(obj){obj.enter&&!Array.isArray(obj.enter)&&(obj.enter=[obj.enter]),obj.exit&&!Array.isArray(obj.exit)&&(obj.exit=[obj.exit]);}function wrapCheck(nodeType,fn){const newFn=function(path){if(path[`is${nodeType}`]())return fn.apply(this,arguments)};return newFn.toString=()=>fn.toString(),newFn}function shouldIgnoreKey(key){return "_"===key[0]||("enter"===key||"exit"===key||"shouldSkip"===key||("denylist"===key||"noScope"===key||"skipKeys"===key||"blacklist"===key))}function mergePair(dest,src){for(const key of Object.keys(src))dest[key]=[].concat(dest[key]||[],src[key]);}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.clear=function(){clearPath(),clearScope();},exports.clearPath=clearPath,exports.clearScope=clearScope,exports.scope=exports.path=void 0;let path=new WeakMap;exports.path=path;let scope=new WeakMap;function clearPath(){exports.path=path=new WeakMap;}function clearScope(){exports.scope=scope=new WeakMap;}exports.scope=scope;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/context.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _path=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;exports.default=class{constructor(scope,opts,state,parentPath){this.queue=null,this.priorityQueue=null,this.parentPath=parentPath,this.scope=scope,this.state=state,this.opts=opts;}shouldVisit(node){const opts=this.opts;if(opts.enter||opts.exit)return !0;if(opts[node.type])return !0;const keys=VISITOR_KEYS[node.type];if(null==keys||!keys.length)return !1;for(const key of keys)if(node[key])return !0;return !1}create(node,container,key,listKey){return _path.default.get({parentPath:this.parentPath,parent:node,container,key,listKey})}maybeQueue(path,notPriority){this.queue&&(notPriority?this.queue.push(path):this.priorityQueue.push(path));}visitMultiple(container,parent,listKey){if(0===container.length)return !1;const queue=[];for(let key=0;key<container.length;key++){const node=container[key];node&&this.shouldVisit(node)&&queue.push(this.create(parent,container,key,listKey));}return this.visitQueue(queue)}visitSingle(node,key){return !!this.shouldVisit(node[key])&&this.visitQueue([this.create(node,node,key)])}visitQueue(queue){this.queue=queue,this.priorityQueue=[];const visited=new WeakSet;let stop=!1;for(const path of queue){if(path.resync(),0!==path.contexts.length&&path.contexts[path.contexts.length-1]===this||path.pushContext(this),null===path.key)continue;const{node}=path;if(!visited.has(node)){if(node&&visited.add(node),path.visit()){stop=!0;break}if(this.priorityQueue.length&&(stop=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=queue,stop))break}}for(const path of queue)path.popContext();return this.queue=null,stop}visit(node,key){const nodes=node[key];return !!nodes&&(Array.isArray(nodes)?this.visitMultiple(nodes,node,key):this.visitSingle(node,key))}};},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/hub.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(node,msg,Error=TypeError){return new Error(msg)}};},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Hub",{enumerable:!0,get:function(){return _hub.default}}),Object.defineProperty(exports,"NodePath",{enumerable:!0,get:function(){return _path.default}}),Object.defineProperty(exports,"Scope",{enumerable:!0,get:function(){return _scope.default}}),exports.visitors=exports.default=void 0;var visitors=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/visitors.js");exports.visitors=visitors;var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js"),_traverseNode=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/traverse-node.js"),_path=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js"),_scope=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/index.js"),_hub=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/hub.js");const{VISITOR_KEYS,removeProperties,traverseFast}=_t;function traverse(parent,opts={},scope,state,parentPath){if(parent){if(!opts.noScope&&!scope&&"Program"!==parent.type&&"File"!==parent.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${parent.type} node without passing scope and parentPath.`);VISITOR_KEYS[parent.type]&&(visitors.explode(opts),(0, _traverseNode.traverseNode)(parent,opts,scope,state,parentPath));}}var _default=traverse;function hasDenylistedType(path,state){path.node.type===state.type&&(state.has=!0,path.stop());}exports.default=_default,traverse.visitors=visitors,traverse.verify=visitors.verify,traverse.explode=visitors.explode,traverse.cheap=function(node,enter){return traverseFast(node,enter)},traverse.node=function(node,opts,scope,state,path,skipKeys){(0, _traverseNode.traverseNode)(node,opts,scope,state,path,skipKeys);},traverse.clearNode=function(node,opts){removeProperties(node,opts),cache.path.delete(node);},traverse.removeProperties=function(tree,opts){return traverseFast(tree,traverse.clearNode,opts),tree},traverse.hasType=function(tree,type,denylistTypes){if(null!=denylistTypes&&denylistTypes.includes(tree.type))return !1;if(tree.type===type)return !0;const state={has:!1,type};return traverse(tree,{noScope:!0,denylist:denylistTypes,enter:hasDenylistedType},null,state),state.has},traverse.cache=cache;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/ancestry.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.find=function(callback){let path=this;do{if(callback(path))return path}while(path=path.parentPath);return null},exports.findParent=function(callback){let path=this;for(;path=path.parentPath;)if(callback(path))return path;return null},exports.getAncestry=function(){let path=this;const paths=[];do{paths.push(path);}while(path=path.parentPath);return paths},exports.getDeepestCommonAncestorFrom=function(paths,filter){if(!paths.length)return this;if(1===paths.length)return paths[0];let lastCommonIndex,lastCommon,minDepth=1/0;const ancestries=paths.map((path=>{const ancestry=[];do{ancestry.unshift(path);}while((path=path.parentPath)&&path!==this);return ancestry.length<minDepth&&(minDepth=ancestry.length),ancestry})),first=ancestries[0];depthLoop:for(let i=0;i<minDepth;i++){const shouldMatch=first[i];for(const ancestry of ancestries)if(ancestry[i]!==shouldMatch)break depthLoop;lastCommonIndex=i,lastCommon=shouldMatch;}if(lastCommon)return filter?filter(lastCommon,lastCommonIndex,ancestries):lastCommon;throw new Error("Couldn't find intersection")},exports.getEarliestCommonAncestorFrom=function(paths){return this.getDeepestCommonAncestorFrom(paths,(function(deepest,i,ancestries){let earliest;const keys=VISITOR_KEYS[deepest.type];for(const ancestry of ancestries){const path=ancestry[i+1];if(!earliest){earliest=path;continue}if(path.listKey&&earliest.listKey===path.listKey&&path.key<earliest.key){earliest=path;continue}keys.indexOf(earliest.parentKey)>keys.indexOf(path.parentKey)&&(earliest=path);}return earliest}))},exports.getFunctionParent=function(){return this.findParent((p=>p.isFunction()))},exports.getStatementParent=function(){let path=this;do{if(!path.parentPath||Array.isArray(path.container)&&path.isStatement())break;path=path.parentPath;}while(path);if(path&&(path.isProgram()||path.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return path},exports.inType=function(...candidateTypes){let path=this;for(;path;){for(const type of candidateTypes)if(path.node.type===type)return !0;path=path.parentPath;}return !1},exports.isAncestor=function(maybeDescendant){return maybeDescendant.isDescendant(this)},exports.isDescendant=function(maybeAncestor){return !!this.findParent((parent=>parent===maybeAncestor))};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/comments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.addComment=function(type,content,line){_addComment(this.node,type,content,line);},exports.addComments=function(type,comments){_addComments(this.node,type,comments);},exports.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const node=this.node;if(!node)return;const trailing=node.trailingComments,leading=node.leadingComments;if(!trailing&&!leading)return;const prev=this.getSibling(this.key-1),next=this.getSibling(this.key+1),hasPrev=Boolean(prev.node),hasNext=Boolean(next.node);hasPrev&&!hasNext?prev.addComments("trailing",trailing):hasNext&&!hasPrev&&next.addComments("leading",leading);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{addComment:_addComment,addComments:_addComments}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/context.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._call=function(fns){if(!fns)return !1;for(const fn of fns){if(!fn)continue;const node=this.node;if(!node)return !0;const ret=fn.call(this.state,this,this.state);if(ret&&"object"==typeof ret&&"function"==typeof ret.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(ret)throw new Error(`Unexpected return value from visitor method ${fn}`);if(this.node!==node)return !0;if(this._traverseFlags>0)return !0}return !1},exports._getQueueContexts=function(){let path=this,contexts=this.contexts;for(;!contexts.length&&(path=path.parentPath,path);)contexts=path.contexts;return contexts},exports._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let i=0;i<this.container.length;i++)if(this.container[i]===this.node)return this.setKey(i)}else for(const key of Object.keys(this.container))if(this.container[key]===this.node)return this.setKey(key);this.key=null;},exports._resyncList=function(){if(!this.parent||!this.inList)return;const newContainer=this.parent[this.listKey];if(this.container===newContainer)return;this.container=newContainer||null;},exports._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node);},exports._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved();},exports.call=function(key){const opts=this.opts;if(this.debug(key),this.node&&this._call(opts[key]))return !0;if(this.node)return this._call(opts[this.node.type]&&opts[this.node.type][key]);return !1},exports.isBlacklisted=exports.isDenylisted=function(){var _this$opts$denylist;const denylist=null!=(_this$opts$denylist=this.opts.denylist)?_this$opts$denylist:this.opts.blacklist;return denylist&&denylist.indexOf(this.node.type)>-1},exports.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0);},exports.pushContext=function(context){this.contexts.push(context),this.setContext(context);},exports.requeue=function(pathToQueue=this){if(pathToQueue.removed)return;const contexts=this.contexts;for(const context of contexts)context.maybeQueue(pathToQueue);},exports.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey();},exports.setContext=function(context){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,context&&(this.context=context,this.state=context.state,this.opts=context.opts);return this.setScope(),this},exports.setKey=function(key){var _this$node;this.key=key,this.node=this.container[this.key],this.type=null==(_this$node=this.node)?void 0:_this$node.type;},exports.setScope=function(){if(this.opts&&this.opts.noScope)return;let target,path=this.parentPath;"key"!==this.key&&"decorators"!==this.listKey||!path.isMethod()||(path=path.parentPath);for(;path&&!target;){if(path.opts&&path.opts.noScope)return;target=path.scope,path=path.parentPath;}this.scope=this.getScope(target),this.scope&&this.scope.init();},exports.setup=function(parentPath,container,listKey,key){this.listKey=listKey,this.container=container,this.parentPath=parentPath||this.parentPath,this.setKey(key);},exports.skip=function(){this.shouldSkip=!0;},exports.skipKey=function(key){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[key]=!0;},exports.stop=function(){this._traverseFlags|=_index.SHOULD_SKIP|_index.SHOULD_STOP;},exports.visit=function(){if(!this.node)return !1;if(this.isDenylisted())return !1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return !1;const currentContext=this.context;if(this.shouldSkip||this.call("enter"))return this.debug("Skip..."),this.shouldStop;return restoreContext(this,currentContext),this.debug("Recursing into..."),this.shouldStop=(0, _traverseNode.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),restoreContext(this,currentContext),this.call("exit"),this.shouldStop};var _traverseNode=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/traverse-node.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js");function restoreContext(path,context){path.context!==context&&(path.context=context,path.state=context.state,path.opts=context.opts);}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/conversion.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrowFunctionToExpression=function({allowInsertArrow=!0,specCompliant=!1,noNewArrows=!specCompliant}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const{thisBinding,fnPath:fn}=hoistFunctionEnvironment(this,noNewArrows,allowInsertArrow);if(fn.ensureBlock(),function(path,type){path.node.type=type;}(fn,"FunctionExpression"),!noNewArrows){const checkBinding=thisBinding?null:fn.scope.generateUidIdentifier("arrowCheckId");return checkBinding&&fn.parentPath.scope.push({id:checkBinding,init:objectExpression([])}),fn.get("body").unshiftContainer("body",expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"),[thisExpression(),identifier(checkBinding?checkBinding.name:thisBinding)]))),fn.replaceWith(callExpression(memberExpression((0, _helperFunctionName.default)(this,!0)||fn.node,identifier("bind")),[checkBinding?identifier(checkBinding.name):thisExpression()])),fn.get("callee.object")}return fn},exports.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression();},exports.ensureBlock=function(){const body=this.get("body"),bodyNode=body.node;if(Array.isArray(body))throw new Error("Can't convert array path to a block statement");if(!bodyNode)throw new Error("Can't convert node without a body");if(body.isBlockStatement())return bodyNode;const statements=[];let key,listKey,stringPath="body";body.isStatement()?(listKey="body",key=0,statements.push(body.node)):(stringPath+=".body.0",this.isFunction()?(key="argument",statements.push(returnStatement(body.node))):(key="expression",statements.push(expressionStatement(body.node))));this.node.body=blockStatement(statements);const parentPath=this.get(stringPath);return body.setup(parentPath,listKey?parentPath.node[listKey]:parentPath.node,listKey,key),this.node},exports.toComputedKey=function(){let key;if(this.isMemberExpression())key=this.node.property;else {if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");key=this.node.key;}this.node.computed||isIdentifier(key)&&(key=stringLiteral(key.name));return key},exports.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this);};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/.pnpm/@babel+helper-function-name@7.19.0/node_modules/@babel/helper-function-name/lib/index.js"),_visitors=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/visitors.js");const{arrowFunctionExpression,assignmentExpression,binaryExpression,blockStatement,callExpression,conditionalExpression,expressionStatement,identifier,isIdentifier,jsxIdentifier,logicalExpression,LOGICAL_OPERATORS,memberExpression,metaProperty,numericLiteral,objectExpression,restElement,returnStatement,sequenceExpression,spreadElement,stringLiteral,super:_super,thisExpression,toExpression,unaryExpression}=_t;const getSuperCallsVisitor=(0, _visitors.merge)([{CallExpression(child,{allSuperCalls}){child.get("callee").isSuper()&&allSuperCalls.push(child);}},_helperEnvironmentVisitor.default]);function hoistFunctionEnvironment(fnPath,noNewArrows=!0,allowInsertArrow=!0){let arrowParent,thisEnvFn=fnPath.findParent((p=>p.isArrowFunctionExpression()?(null!=arrowParent||(arrowParent=p),!1):p.isFunction()||p.isProgram()||p.isClassProperty({static:!1})||p.isClassPrivateProperty({static:!1})));const inConstructor=thisEnvFn.isClassMethod({kind:"constructor"});if(thisEnvFn.isClassProperty()||thisEnvFn.isClassPrivateProperty())if(arrowParent)thisEnvFn=arrowParent;else {if(!allowInsertArrow)throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");fnPath.replaceWith(callExpression(arrowFunctionExpression([],toExpression(fnPath.node)),[])),thisEnvFn=fnPath.get("callee"),fnPath=thisEnvFn.get("body");}const{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}=function(fnPath){const thisPaths=[],argumentsPaths=[],newTargetPaths=[],superProps=[],superCalls=[];return fnPath.traverse(getScopeInformationVisitor,{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}),{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}}(fnPath);if(inConstructor&&superCalls.length>0){if(!allowInsertArrow)throw superCalls[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const allSuperCalls=[];thisEnvFn.traverse(getSuperCallsVisitor,{allSuperCalls});const superBinding=function(thisEnvFn){return getBinding(thisEnvFn,"supercall",(()=>{const argsBinding=thisEnvFn.scope.generateUidIdentifier("args");return arrowFunctionExpression([restElement(argsBinding)],callExpression(_super(),[spreadElement(identifier(argsBinding.name))]))}))}(thisEnvFn);allSuperCalls.forEach((superCall=>{const callee=identifier(superBinding);callee.loc=superCall.node.callee.loc,superCall.get("callee").replaceWith(callee);}));}if(argumentsPaths.length>0){const argumentsBinding=getBinding(thisEnvFn,"arguments",(()=>{const args=()=>identifier("arguments");return thisEnvFn.scope.path.isProgram()?conditionalExpression(binaryExpression("===",unaryExpression("typeof",args()),stringLiteral("undefined")),thisEnvFn.scope.buildUndefinedNode(),args()):args()}));argumentsPaths.forEach((argumentsChild=>{const argsRef=identifier(argumentsBinding);argsRef.loc=argumentsChild.node.loc,argumentsChild.replaceWith(argsRef);}));}if(newTargetPaths.length>0){const newTargetBinding=getBinding(thisEnvFn,"newtarget",(()=>metaProperty(identifier("new"),identifier("target"))));newTargetPaths.forEach((targetChild=>{const targetRef=identifier(newTargetBinding);targetRef.loc=targetChild.node.loc,targetChild.replaceWith(targetRef);}));}if(superProps.length>0){if(!allowInsertArrow)throw superProps[0].buildCodeFrameError("Unable to handle nested super.prop usage");superProps.reduce(((acc,superProp)=>acc.concat(function(superProp){if(superProp.parentPath.isAssignmentExpression()&&"="!==superProp.parentPath.node.operator){const assignmentPath=superProp.parentPath,op=assignmentPath.node.operator.slice(0,-1),value=assignmentPath.node.right,isLogicalAssignment=function(op){return LOGICAL_OPERATORS.includes(op)}(op);if(superProp.node.computed){const tmp=superProp.scope.generateDeclaredUidIdentifier("tmp"),object=superProp.node.object,property=superProp.node.property;assignmentPath.get("left").replaceWith(memberExpression(object,assignmentExpression("=",tmp,property),!0)),assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment?"=":op,memberExpression(object,identifier(tmp.name),!0),value));}else {const object=superProp.node.object,property=superProp.node.property;assignmentPath.get("left").replaceWith(memberExpression(object,property)),assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment?"=":op,memberExpression(object,identifier(property.name)),value));}return isLogicalAssignment?assignmentPath.replaceWith(logicalExpression(op,assignmentPath.node.left,assignmentPath.node.right)):assignmentPath.node.operator="=",[assignmentPath.get("left"),assignmentPath.get("right").get("left")]}if(superProp.parentPath.isUpdateExpression()){const updateExpr=superProp.parentPath,tmp=superProp.scope.generateDeclaredUidIdentifier("tmp"),computedKey=superProp.node.computed?superProp.scope.generateDeclaredUidIdentifier("prop"):null,parts=[assignmentExpression("=",tmp,memberExpression(superProp.node.object,computedKey?assignmentExpression("=",computedKey,superProp.node.property):superProp.node.property,superProp.node.computed)),assignmentExpression("=",memberExpression(superProp.node.object,computedKey?identifier(computedKey.name):superProp.node.property,superProp.node.computed),binaryExpression(superProp.parentPath.node.operator[0],identifier(tmp.name),numericLiteral(1)))];superProp.parentPath.node.prefix||parts.push(identifier(tmp.name)),updateExpr.replaceWith(sequenceExpression(parts));return [updateExpr.get("expressions.0.right"),updateExpr.get("expressions.1.left")]}return [superProp];function rightExpression(op,left,right){return "="===op?assignmentExpression("=",left,right):binaryExpression(op,left,right)}}(superProp))),[]).forEach((superProp=>{const key=superProp.node.computed?"":superProp.get("property").node.name,superParentPath=superProp.parentPath,isAssignment=superParentPath.isAssignmentExpression({left:superProp.node}),isCall=superParentPath.isCallExpression({callee:superProp.node}),superBinding=function(thisEnvFn,isAssignment,propName){return getBinding(thisEnvFn,`superprop_${isAssignment?"set":"get"}:${propName||""}`,(()=>{const argsList=[];let fnBody;if(propName)fnBody=memberExpression(_super(),identifier(propName));else {const method=thisEnvFn.scope.generateUidIdentifier("prop");argsList.unshift(method),fnBody=memberExpression(_super(),identifier(method.name),!0);}if(isAssignment){const valueIdent=thisEnvFn.scope.generateUidIdentifier("value");argsList.push(valueIdent),fnBody=assignmentExpression("=",fnBody,identifier(valueIdent.name));}return arrowFunctionExpression(argsList,fnBody)}))}(thisEnvFn,isAssignment,key),args=[];if(superProp.node.computed&&args.push(superProp.get("property").node),isAssignment){const value=superParentPath.node.right;args.push(value);}const call=callExpression(identifier(superBinding),args);isCall?(superParentPath.unshiftContainer("arguments",thisExpression()),superProp.replaceWith(memberExpression(call,identifier("call"))),thisPaths.push(superParentPath.get("arguments.0"))):isAssignment?superParentPath.replaceWith(call):superProp.replaceWith(call);}));}let thisBinding;return (thisPaths.length>0||!noNewArrows)&&(thisBinding=function(thisEnvFn,inConstructor){return getBinding(thisEnvFn,"this",(thisBinding=>{if(!inConstructor||!hasSuperClass(thisEnvFn))return thisExpression();thisEnvFn.traverse(assignSuperThisVisitor,{supers:new WeakSet,thisBinding});}))}(thisEnvFn,inConstructor),(noNewArrows||inConstructor&&hasSuperClass(thisEnvFn))&&(thisPaths.forEach((thisChild=>{const thisRef=thisChild.isJSX()?jsxIdentifier(thisBinding):identifier(thisBinding);thisRef.loc=thisChild.node.loc,thisChild.replaceWith(thisRef);})),noNewArrows||(thisBinding=null))),{thisBinding,fnPath}}function hasSuperClass(thisEnvFn){return thisEnvFn.isClassMethod()&&!!thisEnvFn.parentPath.parentPath.node.superClass}const assignSuperThisVisitor=(0, _visitors.merge)([{CallExpression(child,{supers,thisBinding}){child.get("callee").isSuper()&&(supers.has(child.node)||(supers.add(child.node),child.replaceWithMultiple([child.node,assignmentExpression("=",identifier(thisBinding),identifier("this"))])));}},_helperEnvironmentVisitor.default]);function getBinding(thisEnvFn,key,init){const cacheKey="binding:"+key;let data=thisEnvFn.getData(cacheKey);if(!data){const id=thisEnvFn.scope.generateUidIdentifier(key);data=id.name,thisEnvFn.setData(cacheKey,data),thisEnvFn.scope.push({id,init:init(data)});}return data}const getScopeInformationVisitor=(0, _visitors.merge)([{ThisExpression(child,{thisPaths}){thisPaths.push(child);},JSXIdentifier(child,{thisPaths}){"this"===child.node.name&&(child.parentPath.isJSXMemberExpression({object:child.node})||child.parentPath.isJSXOpeningElement({name:child.node}))&&thisPaths.push(child);},CallExpression(child,{superCalls}){child.get("callee").isSuper()&&superCalls.push(child);},MemberExpression(child,{superProps}){child.get("object").isSuper()&&superProps.push(child);},Identifier(child,{argumentsPaths}){if(!child.isReferencedIdentifier({name:"arguments"}))return;let curr=child.scope;do{if(curr.hasOwnBinding("arguments"))return void curr.rename("arguments");if(curr.path.isFunction()&&!curr.path.isArrowFunctionExpression())break}while(curr=curr.parent);argumentsPaths.push(child);},MetaProperty(child,{newTargetPaths}){child.get("meta").isIdentifier({name:"new"})&&child.get("property").isIdentifier({name:"target"})&&newTargetPaths.push(child);}},_helperEnvironmentVisitor.default]);},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/evaluation.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.evaluate=function(){const state={confident:!0,deoptPath:null,seen:new Map};let value=evaluateCached(this,state);state.confident||(value=void 0);return {confident:state.confident,deopt:state.deoptPath,value}},exports.evaluateTruthy=function(){const res=this.evaluate();if(res.confident)return !!res.value};const VALID_CALLEES=["String","Number","Math"],INVALID_METHODS=["random"];function isValidCallee(val){return VALID_CALLEES.includes(val)}function deopt(path,state){state.confident&&(state.deoptPath=path,state.confident=!1);}function evaluateCached(path,state){const{node}=path,{seen}=state;if(seen.has(node)){const existing=seen.get(node);return existing.resolved?existing.value:void deopt(path,state)}{const item={resolved:!1};seen.set(node,item);const val=function(path,state){if(!state.confident)return;if(path.isSequenceExpression()){const exprs=path.get("expressions");return evaluateCached(exprs[exprs.length-1],state)}if(path.isStringLiteral()||path.isNumericLiteral()||path.isBooleanLiteral())return path.node.value;if(path.isNullLiteral())return null;if(path.isTemplateLiteral())return evaluateQuasis(path,path.node.quasis,state);if(path.isTaggedTemplateExpression()&&path.get("tag").isMemberExpression()){const object=path.get("tag.object"),{node:{name}}=object,property=path.get("tag.property");if(object.isIdentifier()&&"String"===name&&!path.scope.getBinding(name)&&property.isIdentifier()&&"raw"===property.node.name)return evaluateQuasis(path,path.node.quasi.quasis,state,!0)}if(path.isConditionalExpression()){const testResult=evaluateCached(path.get("test"),state);if(!state.confident)return;return evaluateCached(testResult?path.get("consequent"):path.get("alternate"),state)}if(path.isExpressionWrapper())return evaluateCached(path.get("expression"),state);if(path.isMemberExpression()&&!path.parentPath.isCallExpression({callee:path.node})){const property=path.get("property"),object=path.get("object");if(object.isLiteral()&&property.isIdentifier()){const value=object.node.value,type=typeof value;if("number"===type||"string"===type)return value[property.node.name]}}if(path.isReferencedIdentifier()){const binding=path.scope.getBinding(path.node.name);if(binding&&binding.constantViolations.length>0)return deopt(binding.path,state);if(binding&&path.node.start<binding.path.node.end)return deopt(binding.path,state);if(null!=binding&&binding.hasValue)return binding.value;{if("undefined"===path.node.name)return binding?deopt(binding.path,state):void 0;if("Infinity"===path.node.name)return binding?deopt(binding.path,state):1/0;if("NaN"===path.node.name)return binding?deopt(binding.path,state):NaN;const resolved=path.resolve();return resolved===path?deopt(path,state):evaluateCached(resolved,state)}}if(path.isUnaryExpression({prefix:!0})){if("void"===path.node.operator)return;const argument=path.get("argument");if("typeof"===path.node.operator&&(argument.isFunction()||argument.isClass()))return "function";const arg=evaluateCached(argument,state);if(!state.confident)return;switch(path.node.operator){case"!":return !arg;case"+":return +arg;case"-":return -arg;case"~":return ~arg;case"typeof":return typeof arg}}if(path.isArrayExpression()){const arr=[],elems=path.get("elements");for(const elem of elems){const elemValue=elem.evaluate();if(!elemValue.confident)return deopt(elemValue.deopt,state);arr.push(elemValue.value);}return arr}if(path.isObjectExpression()){const obj={},props=path.get("properties");for(const prop of props){if(prop.isObjectMethod()||prop.isSpreadElement())return deopt(prop,state);const keyPath=prop.get("key");let key;if(prop.node.computed){if(key=keyPath.evaluate(),!key.confident)return deopt(key.deopt,state);key=key.value;}else key=keyPath.isIdentifier()?keyPath.node.name:keyPath.node.value;let value=prop.get("value").evaluate();if(!value.confident)return deopt(value.deopt,state);value=value.value,obj[key]=value;}return obj}if(path.isLogicalExpression()){const wasConfident=state.confident,left=evaluateCached(path.get("left"),state),leftConfident=state.confident;state.confident=wasConfident;const right=evaluateCached(path.get("right"),state),rightConfident=state.confident;switch(path.node.operator){case"||":if(state.confident=leftConfident&&(!!left||rightConfident),!state.confident)return;return left||right;case"&&":if(state.confident=leftConfident&&(!left||rightConfident),!state.confident)return;return left&&right;case"??":if(state.confident=leftConfident&&(null!=left||rightConfident),!state.confident)return;return null!=left?left:right}}if(path.isBinaryExpression()){const left=evaluateCached(path.get("left"),state);if(!state.confident)return;const right=evaluateCached(path.get("right"),state);if(!state.confident)return;switch(path.node.operator){case"-":return left-right;case"+":return left+right;case"/":return left/right;case"*":return left*right;case"%":return left%right;case"**":return Math.pow(left,right);case"<":return left<right;case">":return left>right;case"<=":return left<=right;case">=":return left>=right;case"==":return left==right;case"!=":return left!=right;case"===":return left===right;case"!==":return left!==right;case"|":return left|right;case"&":return left&right;case"^":return left^right;case"<<":return left<<right;case">>":return left>>right;case">>>":return left>>>right}}if(path.isCallExpression()){const callee=path.get("callee");let context,func;if(callee.isIdentifier()&&!path.scope.getBinding(callee.node.name)&&isValidCallee(callee.node.name)&&(func=commonjsGlobal[callee.node.name]),callee.isMemberExpression()){const object=callee.get("object"),property=callee.get("property");if(object.isIdentifier()&&property.isIdentifier()&&isValidCallee(object.node.name)&&!function(val){return INVALID_METHODS.includes(val)}(property.node.name)&&(context=commonjsGlobal[object.node.name],func=context[property.node.name]),object.isLiteral()&&property.isIdentifier()){const type=typeof object.node.value;"string"!==type&&"number"!==type||(context=object.node.value,func=context[property.node.name]);}}if(func){const args=path.get("arguments").map((arg=>evaluateCached(arg,state)));if(!state.confident)return;return func.apply(context,args)}}deopt(path,state);}(path,state);return state.confident&&(item.resolved=!0,item.value=val),val}}function evaluateQuasis(path,quasis,state,raw=!1){let str="",i=0;const exprs=path.get("expressions");for(const elem of quasis){if(!state.confident)break;str+=raw?elem.value.raw:elem.value.cooked;const expr=exprs[i++];expr&&(str+=String(evaluateCached(expr,state)));}if(state.confident)return str}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/family.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._getKey=function(key,context){const node=this.node,container=node[key];return Array.isArray(container)?container.map(((_,i)=>_index.default.get({listKey:key,parentPath:this,parent:node,container,key:i}).setContext(context))):_index.default.get({parentPath:this,parent:node,container:node,key}).setContext(context)},exports._getPattern=function(parts,context){let path=this;for(const part of parts)path="."===part?path.parentPath:Array.isArray(path)?path[part]:path.get(part,context);return path},exports.get=function(key,context=!0){!0===context&&(context=this.context);const parts=key.split(".");return 1===parts.length?this._getKey(key,context):this._getPattern(parts,context)},exports.getAllNextSiblings=function(){let _key=this.key,sibling=this.getSibling(++_key);const siblings=[];for(;sibling.node;)siblings.push(sibling),sibling=this.getSibling(++_key);return siblings},exports.getAllPrevSiblings=function(){let _key=this.key,sibling=this.getSibling(--_key);const siblings=[];for(;sibling.node;)siblings.push(sibling),sibling=this.getSibling(--_key);return siblings},exports.getBindingIdentifierPaths=function(duplicates=!1,outerOnly=!1){const search=[this],ids=Object.create(null);for(;search.length;){const id=search.shift();if(!id)continue;if(!id.node)continue;const keys=_getBindingIdentifiers.keys[id.node.type];if(id.isIdentifier())if(duplicates){(ids[id.node.name]=ids[id.node.name]||[]).push(id);}else ids[id.node.name]=id;else if(id.isExportDeclaration()){const declaration=id.get("declaration");isDeclaration(declaration)&&search.push(declaration);}else {if(outerOnly){if(id.isFunctionDeclaration()){search.push(id.get("id"));continue}if(id.isFunctionExpression())continue}if(keys)for(let i=0;i<keys.length;i++){const key=keys[i],child=id.get(key);Array.isArray(child)?search.push(...child):child.node&&search.push(child);}}}return ids},exports.getBindingIdentifiers=function(duplicates){return _getBindingIdentifiers(this.node,duplicates)},exports.getCompletionRecords=function(){return _getCompletionRecords(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((r=>r.path))},exports.getNextSibling=function(){return this.getSibling(this.key+1)},exports.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},exports.getOuterBindingIdentifierPaths=function(duplicates=!1){return this.getBindingIdentifierPaths(duplicates,!0)},exports.getOuterBindingIdentifiers=function(duplicates){return _getOuterBindingIdentifiers(this.node,duplicates)},exports.getPrevSibling=function(){return this.getSibling(this.key-1)},exports.getSibling=function(key){return _index.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key}).setContext(this.context)};var _index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{getBindingIdentifiers:_getBindingIdentifiers,getOuterBindingIdentifiers:_getOuterBindingIdentifiers,isDeclaration,numericLiteral,unaryExpression}=_t;function addCompletionRecords(path,records,context){return path&&records.push(..._getCompletionRecords(path,context)),records}function normalCompletionToBreak(completions){completions.forEach((c=>{c.type=1;}));}function replaceBreakStatementInBreakCompletion(completions,reachable){completions.forEach((c=>{c.path.isBreakStatement({label:null})&&(reachable?c.path.replaceWith(unaryExpression("void",numericLiteral(0))):c.path.remove());}));}function getStatementListCompletion(paths,context){const completions=[];if(context.canHaveBreak){let lastNormalCompletions=[];for(let i=0;i<paths.length;i++){const path=paths[i],newContext=Object.assign({},context,{inCaseClause:!1});path.isBlockStatement()&&(context.inCaseClause||context.shouldPopulateBreak)?newContext.shouldPopulateBreak=!0:newContext.shouldPopulateBreak=!1;const statementCompletions=_getCompletionRecords(path,newContext);if(statementCompletions.length>0&&statementCompletions.every((c=>1===c.type))){lastNormalCompletions.length>0&&statementCompletions.every((c=>c.path.isBreakStatement({label:null})))?(normalCompletionToBreak(lastNormalCompletions),completions.push(...lastNormalCompletions),lastNormalCompletions.some((c=>c.path.isDeclaration()))&&(completions.push(...statementCompletions),replaceBreakStatementInBreakCompletion(statementCompletions,!0)),replaceBreakStatementInBreakCompletion(statementCompletions,!1)):(completions.push(...statementCompletions),context.shouldPopulateBreak||replaceBreakStatementInBreakCompletion(statementCompletions,!0));break}if(i===paths.length-1)completions.push(...statementCompletions);else {lastNormalCompletions=[];for(let i=0;i<statementCompletions.length;i++){const c=statementCompletions[i];1===c.type&&completions.push(c),0===c.type&&lastNormalCompletions.push(c);}}}}else if(paths.length)for(let i=paths.length-1;i>=0;i--){const pathCompletions=_getCompletionRecords(paths[i],context);if(pathCompletions.length>1||1===pathCompletions.length&&!pathCompletions[0].path.isVariableDeclaration()){completions.push(...pathCompletions);break}}return completions}function _getCompletionRecords(path,context){let records=[];if(path.isIfStatement())records=addCompletionRecords(path.get("consequent"),records,context),records=addCompletionRecords(path.get("alternate"),records,context);else {if(path.isDoExpression()||path.isFor()||path.isWhile()||path.isLabeledStatement())return addCompletionRecords(path.get("body"),records,context);if(path.isProgram()||path.isBlockStatement())return getStatementListCompletion(path.get("body"),context);if(path.isFunction())return _getCompletionRecords(path.get("body"),context);if(path.isTryStatement())records=addCompletionRecords(path.get("block"),records,context),records=addCompletionRecords(path.get("handler"),records,context);else {if(path.isCatchClause())return addCompletionRecords(path.get("body"),records,context);if(path.isSwitchStatement())return function(cases,records,context){let lastNormalCompletions=[];for(let i=0;i<cases.length;i++){const caseCompletions=_getCompletionRecords(cases[i],context),normalCompletions=[],breakCompletions=[];for(const c of caseCompletions)0===c.type&&normalCompletions.push(c),1===c.type&&breakCompletions.push(c);normalCompletions.length&&(lastNormalCompletions=normalCompletions),records.push(...breakCompletions);}return records.push(...lastNormalCompletions),records}(path.get("cases"),records,context);if(path.isSwitchCase())return getStatementListCompletion(path.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});path.isBreakStatement()?records.push(function(path){return {type:1,path}}(path)):records.push(function(path){return {type:0,path}}(path));}}return records}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.SHOULD_STOP=exports.SHOULD_SKIP=exports.REMOVED=void 0;var virtualTypes=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),_debug=__webpack_require__("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js"),_scope=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),t=_t,_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js"),_generator=__webpack_require__("./node_modules/.pnpm/@babel+generator@7.19.0/node_modules/@babel/generator/lib/index.js"),NodePath_ancestry=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/ancestry.js"),NodePath_inference=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/index.js"),NodePath_replacement=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/replacement.js"),NodePath_evaluation=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/evaluation.js"),NodePath_conversion=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/conversion.js"),NodePath_introspection=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/introspection.js"),NodePath_context=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/context.js"),NodePath_removal=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/removal.js"),NodePath_modification=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/modification.js"),NodePath_family=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/family.js"),NodePath_comments=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/comments.js"),NodePath_virtual_types_validator=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js");const{validate}=_t,debug=_debug("babel");exports.REMOVED=1;exports.SHOULD_STOP=2;exports.SHOULD_SKIP=4;class NodePath{constructor(hub,parent){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=parent,this.hub=hub,this.data=null,this.context=null,this.scope=null;}static get({hub,parentPath,parent,container,listKey,key}){if(!hub&&parentPath&&(hub=parentPath.hub),!parent)throw new Error("To get a node path the parent needs to exist");const targetNode=container[key];let paths=_cache.path.get(parent);paths||(paths=new Map,_cache.path.set(parent,paths));let path=paths.get(targetNode);return path||(path=new NodePath(hub,parent),targetNode&&paths.set(targetNode,path)),path.setup(parentPath,container,listKey,key),path}getScope(scope){return this.isScope()?new _scope.default(this):scope}setData(key,val){return null==this.data&&(this.data=Object.create(null)),this.data[key]=val}getData(key,def){null==this.data&&(this.data=Object.create(null));let val=this.data[key];return void 0===val&&void 0!==def&&(val=this.data[key]=def),val}hasNode(){return null!=this.node}buildCodeFrameError(msg,Error=SyntaxError){return this.hub.buildError(this.node,msg,Error)}traverse(visitor,state){(0, _index.default)(this.node,visitor,this.scope,state,this);}set(key,node){validate(this.node,key,node),this.node[key]=node;}getPathLocation(){const parts=[];let path=this;do{let key=path.key;path.inList&&(key=`${path.listKey}[${key}]`),parts.unshift(key);}while(path=path.parentPath);return parts.join(".")}debug(message){debug.enabled&&debug(`${this.getPathLocation()} ${this.type}: ${message}`);}toString(){return (0, _generator.default)(this.node).code}get inList(){return !!this.listKey}set inList(inList){inList||(this.listKey=null);}get parentKey(){return this.listKey||this.key}get shouldSkip(){return !!(4&this._traverseFlags)}set shouldSkip(v){v?this._traverseFlags|=4:this._traverseFlags&=-5;}get shouldStop(){return !!(2&this._traverseFlags)}set shouldStop(v){v?this._traverseFlags|=2:this._traverseFlags&=-3;}get removed(){return !!(1&this._traverseFlags)}set removed(v){v?this._traverseFlags|=1:this._traverseFlags&=-2;}}Object.assign(NodePath.prototype,NodePath_ancestry,NodePath_inference,NodePath_replacement,NodePath_evaluation,NodePath_conversion,NodePath_introspection,NodePath_context,NodePath_removal,NodePath_modification,NodePath_family,NodePath_comments),NodePath.prototype._guessExecutionStatusRelativeToDifferentFunctions=NodePath_introspection._guessExecutionStatusRelativeTo;for(const type of t.TYPES){const typeKey=`is${type}`,fn=t[typeKey];NodePath.prototype[typeKey]=function(opts){return fn(this.node,opts)},NodePath.prototype[`assert${type}`]=function(opts){if(!fn(this.node,opts))throw new TypeError(`Expected node path of type ${type}`)};}Object.assign(NodePath.prototype,NodePath_virtual_types_validator);for(const type of Object.keys(virtualTypes))"_"!==type[0]&&(t.TYPES.includes(type)||t.TYPES.push(type));var _default=NodePath;exports.default=_default;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._getTypeAnnotation=function(){const node=this.node;if(!node){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const declar=this.parentPath.parentPath,declarParent=declar.parentPath;return "left"===declar.key&&declarParent.isForInStatement()?stringTypeAnnotation():"left"===declar.key&&declarParent.isForOfStatement()?anyTypeAnnotation():voidTypeAnnotation()}return}if(node.typeAnnotation)return node.typeAnnotation;if(typeAnnotationInferringNodes.has(node))return;typeAnnotationInferringNodes.add(node);try{var _inferer;let inferer=inferers[node.type];if(inferer)return inferer.call(this,node);if(inferer=inferers[this.parentPath.type],null!=(_inferer=inferer)&&_inferer.validParent)return this.parentPath.getTypeAnnotation()}finally{typeAnnotationInferringNodes.delete(node);}},exports.baseTypeStrictlyMatches=function(rightArg){const left=this.getTypeAnnotation(),right=rightArg.getTypeAnnotation();if(!isAnyTypeAnnotation(left)&&isFlowBaseAnnotation(left))return right.type===left.type;return !1},exports.couldBeBaseType=function(name){const type=this.getTypeAnnotation();if(isAnyTypeAnnotation(type))return !0;if(isUnionTypeAnnotation(type)){for(const type2 of type.types)if(isAnyTypeAnnotation(type2)||_isBaseType(name,type2,!0))return !0;return !1}return _isBaseType(name,type,!0)},exports.getTypeAnnotation=function(){let type=this.getData("typeAnnotation");if(null!=type)return type;type=this._getTypeAnnotation()||anyTypeAnnotation(),(isTypeAnnotation(type)||isTSTypeAnnotation(type))&&(type=type.typeAnnotation);return this.setData("typeAnnotation",type),type},exports.isBaseType=function(baseName,soft){return _isBaseType(baseName,this.getTypeAnnotation(),soft)},exports.isGenericType=function(genericName){const type=this.getTypeAnnotation();if("Array"===genericName&&(isTSArrayType(type)||isArrayTypeAnnotation(type)||isTupleTypeAnnotation(type)))return !0;return isGenericTypeAnnotation(type)&&isIdentifier(type.id,{name:genericName})||isTSTypeReference(type)&&isIdentifier(type.typeName,{name:genericName})};var inferers=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/inferers.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{anyTypeAnnotation,isAnyTypeAnnotation,isArrayTypeAnnotation,isBooleanTypeAnnotation,isEmptyTypeAnnotation,isFlowBaseAnnotation,isGenericTypeAnnotation,isIdentifier,isMixedTypeAnnotation,isNumberTypeAnnotation,isStringTypeAnnotation,isTSArrayType,isTSTypeAnnotation,isTSTypeReference,isTupleTypeAnnotation,isTypeAnnotation,isUnionTypeAnnotation,isVoidTypeAnnotation,stringTypeAnnotation,voidTypeAnnotation}=_t;const typeAnnotationInferringNodes=new WeakSet;function _isBaseType(baseName,type,soft){if("string"===baseName)return isStringTypeAnnotation(type);if("number"===baseName)return isNumberTypeAnnotation(type);if("boolean"===baseName)return isBooleanTypeAnnotation(type);if("any"===baseName)return isAnyTypeAnnotation(type);if("mixed"===baseName)return isMixedTypeAnnotation(type);if("empty"===baseName)return isEmptyTypeAnnotation(type);if("void"===baseName)return isVoidTypeAnnotation(type);if(soft)return !1;throw new Error(`Unknown base type ${baseName}`)}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if(!this.isReferenced())return;const binding=this.scope.getBinding(node.name);if(binding)return binding.identifier.typeAnnotation?binding.identifier.typeAnnotation:function(binding,path,name){const types=[],functionConstantViolations=[];let constantViolations=getConstantViolationsBefore(binding,path,functionConstantViolations);const testType=getConditionalAnnotation(binding,path,name);if(testType){const testConstantViolations=getConstantViolationsBefore(binding,testType.ifStatement);constantViolations=constantViolations.filter((path=>testConstantViolations.indexOf(path)<0)),types.push(testType.typeAnnotation);}if(constantViolations.length){constantViolations.push(...functionConstantViolations);for(const violation of constantViolations)types.push(violation.getTypeAnnotation());}if(!types.length)return;return (0, _util.createUnionType)(types)}(binding,this,node.name);if("undefined"===node.name)return voidTypeAnnotation();if("NaN"===node.name||"Infinity"===node.name)return numberTypeAnnotation();node.name;};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/util.js");const{BOOLEAN_NUMBER_BINARY_OPERATORS,createTypeAnnotationBasedOnTypeof,numberTypeAnnotation,voidTypeAnnotation}=_t;function getConstantViolationsBefore(binding,path,functions){const violations=binding.constantViolations.slice();return violations.unshift(binding.path),violations.filter((violation=>{const status=(violation=violation.resolve())._guessExecutionStatusRelativeTo(path);return functions&&"unknown"===status&&functions.push(violation),"before"===status}))}function inferAnnotationFromBinaryExpression(name,path){const operator=path.node.operator,right=path.get("right").resolve(),left=path.get("left").resolve();let target,typeofPath,typePath;if(left.isIdentifier({name})?target=right:right.isIdentifier({name})&&(target=left),target)return "==="===operator?target.getTypeAnnotation():BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator)>=0?numberTypeAnnotation():void 0;if("==="!==operator&&"=="!==operator)return;if(left.isUnaryExpression({operator:"typeof"})?(typeofPath=left,typePath=right):right.isUnaryExpression({operator:"typeof"})&&(typeofPath=right,typePath=left),!typeofPath)return;if(!typeofPath.get("argument").isIdentifier({name}))return;if(typePath=typePath.resolve(),!typePath.isLiteral())return;const typeValue=typePath.node.value;return "string"==typeof typeValue?createTypeAnnotationBasedOnTypeof(typeValue):void 0}function getConditionalAnnotation(binding,path,name){const ifStatement=function(binding,path,name){let parentPath;for(;parentPath=path.parentPath;){if(parentPath.isIfStatement()||parentPath.isConditionalExpression()){if("test"===path.key)return;return parentPath}if(parentPath.isFunction()&&parentPath.parentPath.scope.getBinding(name)!==binding)return;path=parentPath;}}(binding,path,name);if(!ifStatement)return;const paths=[ifStatement.get("test")],types=[];for(let i=0;i<paths.length;i++){const path=paths[i];if(path.isLogicalExpression())"&&"===path.node.operator&&(paths.push(path.get("left")),paths.push(path.get("right")));else if(path.isBinaryExpression()){const type=inferAnnotationFromBinaryExpression(name,path);type&&types.push(type);}}return types.length?{typeAnnotation:(0, _util.createUnionType)(types),ifStatement}:getConditionalAnnotation(binding,ifStatement,name)}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/inferers.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrayExpression=ArrayExpression,exports.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},exports.BinaryExpression=function(node){const operator=node.operator;if(NUMBER_BINARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(BOOLEAN_BINARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation();if("+"===operator){const right=this.get("right"),left=this.get("left");return left.isBaseType("number")&&right.isBaseType("number")?numberTypeAnnotation():left.isBaseType("string")||right.isBaseType("string")?stringTypeAnnotation():unionTypeAnnotation([stringTypeAnnotation(),numberTypeAnnotation()])}},exports.BooleanLiteral=function(){return booleanTypeAnnotation()},exports.CallExpression=function(){const{callee}=this.node;if(isObjectKeys(callee))return arrayTypeAnnotation(stringTypeAnnotation());if(isArrayFrom(callee)||isObjectValues(callee)||isIdentifier(callee,{name:"Array"}))return arrayTypeAnnotation(anyTypeAnnotation());if(isObjectEntries(callee))return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(),anyTypeAnnotation()]));return resolveCall(this.get("callee"))},exports.ConditionalExpression=function(){const argumentTypes=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return (0, _util.createUnionType)(argumentTypes)},exports.ClassDeclaration=exports.ClassExpression=exports.FunctionDeclaration=exports.ArrowFunctionExpression=exports.FunctionExpression=function(){return genericTypeAnnotation(identifier("Function"))},Object.defineProperty(exports,"Identifier",{enumerable:!0,get:function(){return _infererReference.default}}),exports.LogicalExpression=function(){const argumentTypes=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return (0, _util.createUnionType)(argumentTypes)},exports.NewExpression=function(node){if("Identifier"===node.callee.type)return genericTypeAnnotation(node.callee)},exports.NullLiteral=function(){return nullLiteralTypeAnnotation()},exports.NumericLiteral=function(){return numberTypeAnnotation()},exports.ObjectExpression=function(){return genericTypeAnnotation(identifier("Object"))},exports.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},exports.RegExpLiteral=function(){return genericTypeAnnotation(identifier("RegExp"))},exports.RestElement=RestElement,exports.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},exports.StringLiteral=function(){return stringTypeAnnotation()},exports.TSAsExpression=TSAsExpression,exports.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},exports.TaggedTemplateExpression=function(){return resolveCall(this.get("tag"))},exports.TemplateLiteral=function(){return stringTypeAnnotation()},exports.TypeCastExpression=TypeCastExpression,exports.UnaryExpression=function(node){const operator=node.operator;if("void"===operator)return voidTypeAnnotation();if(NUMBER_UNARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(STRING_UNARY_OPERATORS.indexOf(operator)>=0)return stringTypeAnnotation();if(BOOLEAN_UNARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation()},exports.UpdateExpression=function(node){const operator=node.operator;if("++"===operator||"--"===operator)return numberTypeAnnotation()},exports.VariableDeclarator=function(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_infererReference=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js"),_util=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/util.js");const{BOOLEAN_BINARY_OPERATORS,BOOLEAN_UNARY_OPERATORS,NUMBER_BINARY_OPERATORS,NUMBER_UNARY_OPERATORS,STRING_UNARY_OPERATORS,anyTypeAnnotation,arrayTypeAnnotation,booleanTypeAnnotation,buildMatchMemberExpression,genericTypeAnnotation,identifier,nullLiteralTypeAnnotation,numberTypeAnnotation,stringTypeAnnotation,tupleTypeAnnotation,unionTypeAnnotation,voidTypeAnnotation,isIdentifier}=_t;function TypeCastExpression(node){return node.typeAnnotation}function TSAsExpression(node){return node.typeAnnotation}function ArrayExpression(){return genericTypeAnnotation(identifier("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,TSAsExpression.validParent=!0,RestElement.validParent=!0;const isArrayFrom=buildMatchMemberExpression("Array.from"),isObjectKeys=buildMatchMemberExpression("Object.keys"),isObjectValues=buildMatchMemberExpression("Object.values"),isObjectEntries=buildMatchMemberExpression("Object.entries");function resolveCall(callee){if((callee=callee.resolve()).isFunction()){const{node}=callee;if(node.async)return node.generator?genericTypeAnnotation(identifier("AsyncIterator")):genericTypeAnnotation(identifier("Promise"));if(node.generator)return genericTypeAnnotation(identifier("Iterator"));if(callee.node.returnType)return callee.node.returnType}}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/inference/util.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.createUnionType=function(types){if(isFlowType(types[0]))return createFlowUnionType?createFlowUnionType(types):createUnionTypeAnnotation(types);if(createTSUnionType)return createTSUnionType(types)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{createFlowUnionType,createTSUnionType,createUnionTypeAnnotation,isFlowType,isTSType}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/introspection.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._guessExecutionStatusRelativeTo=function(target){return _guessExecutionStatusRelativeToCached(this,target,new Map)},exports._resolve=function(dangerous,resolved){if(resolved&&resolved.indexOf(this)>=0)return;if((resolved=resolved||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(dangerous,resolved)}else if(this.isReferencedIdentifier()){const binding=this.scope.getBinding(this.node.name);if(!binding)return;if(!binding.constant)return;if("module"===binding.kind)return;if(binding.path!==this){const ret=binding.path.resolve(dangerous,resolved);if(this.find((parent=>parent.node===ret.node)))return;return ret}}else {if(this.isTypeCastExpression())return this.get("expression").resolve(dangerous,resolved);if(dangerous&&this.isMemberExpression()){const targetKey=this.toComputedKey();if(!isLiteral(targetKey))return;const targetName=targetKey.value,target=this.get("object").resolve(dangerous,resolved);if(target.isObjectExpression()){const props=target.get("properties");for(const prop of props){if(!prop.isProperty())continue;const key=prop.get("key");let match=prop.isnt("computed")&&key.isIdentifier({name:targetName});if(match=match||key.isLiteral({value:targetName}),match)return prop.get("value").resolve(dangerous,resolved)}}else if(target.isArrayExpression()&&!isNaN(+targetName)){const elem=target.get("elements")[targetName];if(elem)return elem.resolve(dangerous,resolved)}}}},exports.canHaveVariableDeclarationOrExpression=function(){return ("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},exports.canSwapBetweenExpressionAndStatement=function(replacement){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return !1;if(this.isExpression())return isBlockStatement(replacement);if(this.isBlockStatement())return isExpression(replacement);return !1},exports.equals=function(key,value){return this.node[key]===value},exports.getSource=function(){const node=this.node;if(node.end){const code=this.hub.getCode();if(code)return code.slice(node.start,node.end)}return ""},exports.has=has,exports.is=void 0,exports.isCompletionRecord=function(allowInsideFunction){let path=this,first=!0;do{const{type,container}=path;if(!first&&(path.isFunction()||"StaticBlock"===type))return !!allowInsideFunction;if(first=!1,Array.isArray(container)&&path.key!==container.length-1)return !1}while((path=path.parentPath)&&!path.isProgram()&&!path.isDoExpression());return !0},exports.isConstantExpression=function(){if(this.isIdentifier()){const binding=this.scope.getBinding(this.node.name);return !!binding&&binding.constant}if(this.isLiteral())return !this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((expression=>expression.isConstantExpression())));if(this.isUnaryExpression())return "void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return !1},exports.isInStrictMode=function(){const start=this.isProgram()?this:this.parentPath;return !!start.find((path=>{if(path.isProgram({sourceType:"module"}))return !0;if(path.isClass())return !0;if(path.isArrowFunctionExpression()&&!path.get("body").isBlockStatement())return !1;let body;if(path.isFunction())body=path.node.body;else {if(!path.isProgram())return !1;body=path.node;}for(const directive of body.directives)if("use strict"===directive.value.value)return !0}))},exports.isNodeType=function(type){return isType(this.type,type)},exports.isStatementOrBlock=function(){return !this.parentPath.isLabeledStatement()&&!isBlockStatement(this.container)&&STATEMENT_OR_BLOCK_KEYS.includes(this.key)},exports.isStatic=function(){return this.scope.isStatic(this.node)},exports.isnt=function(key){return !this.has(key)},exports.matchesPattern=function(pattern,allowPartial){return _matchesPattern(this.node,pattern,allowPartial)},exports.referencesImport=function(moduleSource,importName){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===importName||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?isStringLiteral(this.node.property,{value:importName}):this.node.property.name===importName)){const object=this.get("object");return object.isReferencedIdentifier()&&object.referencesImport(moduleSource,"*")}return !1}const binding=this.scope.getBinding(this.node.name);if(!binding||"module"!==binding.kind)return !1;const path=binding.path,parent=path.parentPath;if(!parent.isImportDeclaration())return !1;if(parent.node.source.value!==moduleSource)return !1;if(!importName)return !0;if(path.isImportDefaultSpecifier()&&"default"===importName)return !0;if(path.isImportNamespaceSpecifier()&&"*"===importName)return !0;if(path.isImportSpecifier()&&isIdentifier(path.node.imported,{name:importName}))return !0;return !1},exports.resolve=function(dangerous,resolved){return this._resolve(dangerous,resolved)||this},exports.willIMaybeExecuteBefore=function(target){return "after"!==this._guessExecutionStatusRelativeTo(target)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{STATEMENT_OR_BLOCK_KEYS,VISITOR_KEYS,isBlockStatement,isExpression,isIdentifier,isLiteral,isStringLiteral,isType,matchesPattern:_matchesPattern}=_t;function has(key){const val=this.node&&this.node[key];return val&&Array.isArray(val)?!!val.length:!!val}const is=has;function getOuterFunction(path){return (path.scope.getFunctionParent()||path.scope.getProgramParent()).path}function isExecutionUncertain(type,key){switch(type){case"LogicalExpression":case"AssignmentPattern":return "right"===key;case"ConditionalExpression":case"IfStatement":return "consequent"===key||"alternate"===key;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return "body"===key;case"ForStatement":return "body"===key||"update"===key;case"SwitchStatement":return "cases"===key;case"TryStatement":return "handler"===key;case"OptionalMemberExpression":return "property"===key;case"OptionalCallExpression":return "arguments"===key;default:return !1}}function isExecutionUncertainInList(paths,maxIndex){for(let i=0;i<maxIndex;i++){const path=paths[i];if(isExecutionUncertain(path.parent.type,path.parentKey))return !0}return !1}function _guessExecutionStatusRelativeToCached(base,target,cache){const funcParent={this:getOuterFunction(base),target:getOuterFunction(target)};if(funcParent.target.node!==funcParent.this.node)return function(base,target,cache){let nodeMap=cache.get(base.node);if(nodeMap){if(nodeMap.has(target.node))return nodeMap.get(target.node)}else cache.set(base.node,nodeMap=new Map);const result=function(base,target,cache){if(!target.isFunctionDeclaration()||target.parentPath.isExportDeclaration())return "unknown";const binding=target.scope.getBinding(target.node.id.name);if(!binding.references)return "before";const referencePaths=binding.referencePaths;let allStatus;for(const path of referencePaths){if(!!!path.find((path=>path.node===target.node))){if("callee"!==path.key||!path.parentPath.isCallExpression())return "unknown";if(!executionOrderCheckedNodes.has(path.node)){executionOrderCheckedNodes.add(path.node);try{const status=_guessExecutionStatusRelativeToCached(base,path,cache);if(allStatus&&allStatus!==status)return "unknown";allStatus=status;}finally{executionOrderCheckedNodes.delete(path.node);}}}}return allStatus}(base,target,cache);return nodeMap.set(target.node,result),result}(base,funcParent.target,cache);const paths={target:target.getAncestry(),this:base.getAncestry()};if(paths.target.indexOf(base)>=0)return "after";if(paths.this.indexOf(target)>=0)return "before";let commonPath;const commonIndex={target:0,this:0};for(;!commonPath&&commonIndex.this<paths.this.length;){const path=paths.this[commonIndex.this];commonIndex.target=paths.target.indexOf(path),commonIndex.target>=0?commonPath=path:commonIndex.this++;}if(!commonPath)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(isExecutionUncertainInList(paths.this,commonIndex.this-1)||isExecutionUncertainInList(paths.target,commonIndex.target-1))return "unknown";const divergence={this:paths.this[commonIndex.this-1],target:paths.target[commonIndex.target-1]};if(divergence.target.listKey&&divergence.this.listKey&&divergence.target.container===divergence.this.container)return divergence.target.key>divergence.this.key?"before":"after";const keys=VISITOR_KEYS[commonPath.type],keyPosition_this=keys.indexOf(divergence.this.parentKey);return keys.indexOf(divergence.target.parentKey)>keyPosition_this?"before":"after"}exports.is=is;const executionOrderCheckedNodes=new Set;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/hoister.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_t2=_t;const{react}=_t,{cloneNode,jsxExpressionContainer,variableDeclaration,variableDeclarator}=_t2,referenceVisitor={ReferencedIdentifier(path,state){if(path.isJSXIdentifier()&&react.isCompatTag(path.node.name)&&!path.parentPath.isJSXMemberExpression())return;if("this"===path.node.name){let scope=path.scope;do{if(scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break}while(scope=scope.parent);scope&&state.breakOnScopePaths.push(scope.path);}const binding=path.scope.getBinding(path.node.name);if(binding){for(const violation of binding.constantViolations)if(violation.scope!==binding.path.scope)return state.mutableBinding=!0,void path.stop();binding===state.scope.getBinding(path.node.name)&&(state.bindings[path.node.name]=binding);}}};exports.default=class{constructor(path,scope){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=scope,this.path=path,this.attachAfter=!1;}isCompatibleScope(scope){for(const key of Object.keys(this.bindings)){const binding=this.bindings[key];if(!scope.bindingIdentifierEquals(key,binding.identifier))return !1}return !0}getCompatibleScopes(){let scope=this.path.scope;do{if(!this.isCompatibleScope(scope))break;if(this.scopes.push(scope),this.breakOnScopePaths.indexOf(scope.path)>=0)break}while(scope=scope.parent)}getAttachmentPath(){let path=this._getAttachmentPath();if(!path)return;let targetScope=path.scope;if(targetScope.path===path&&(targetScope=path.scope.parent),targetScope.path.isProgram()||targetScope.path.isFunction())for(const name of Object.keys(this.bindings)){if(!targetScope.hasOwnBinding(name))continue;const binding=this.bindings[name];if("param"===binding.kind||"params"===binding.path.parentKey)continue;if(this.getAttachmentParentForPath(binding.path).key>=path.key){this.attachAfter=!0,path=binding.path;for(const violationPath of binding.constantViolations)this.getAttachmentParentForPath(violationPath).key>path.key&&(path=violationPath);}}return path}_getAttachmentPath(){const scope=this.scopes.pop();if(scope)if(scope.path.isFunction()){if(!this.hasOwnParamBindings(scope))return this.getNextScopeAttachmentParent();{if(this.scope===scope)return;const bodies=scope.path.get("body").get("body");for(let i=0;i<bodies.length;i++)if(!bodies[i].node._blockHoist)return bodies[i]}}else if(scope.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const scope=this.scopes.pop();if(scope)return this.getAttachmentParentForPath(scope.path)}getAttachmentParentForPath(path){do{if(!path.parentPath||Array.isArray(path.container)&&path.isStatement())return path}while(path=path.parentPath)}hasOwnParamBindings(scope){for(const name of Object.keys(this.bindings)){if(!scope.hasOwnBinding(name))continue;const binding=this.bindings[name];if("param"===binding.kind&&binding.constant)return !0}return !1}run(){if(this.path.traverse(referenceVisitor,this),this.mutableBinding)return;this.getCompatibleScopes();const attachTo=this.getAttachmentPath();if(!attachTo)return;if(attachTo.getFunctionParent()===this.path.getFunctionParent())return;let uid=attachTo.scope.generateUidIdentifier("ref");const declarator=variableDeclarator(uid,this.path.node),insertFn=this.attachAfter?"insertAfter":"insertBefore",[attached]=attachTo[insertFn]([attachTo.isVariableDeclarator()?declarator:variableDeclaration("var",[declarator])]),parent=this.path.parentPath;return parent.isJSXElement()&&this.path.container===parent.node.children&&(uid=jsxExpressionContainer(uid)),this.path.replaceWith(cloneNode(uid)),attachTo.isVariableDeclarator()?attached.get("init"):attached.get("declarations.0.init")}};},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.hooks=void 0;exports.hooks=[function(self,parent){if("test"===self.key&&(parent.isWhile()||parent.isSwitchCase())||"declaration"===self.key&&parent.isExportDeclaration()||"body"===self.key&&parent.isLabeledStatement()||"declarations"===self.listKey&&parent.isVariableDeclaration()&&1===parent.node.declarations.length||"expression"===self.key&&parent.isExpressionStatement())return parent.remove(),!0},function(self,parent){if(parent.isSequenceExpression()&&1===parent.node.expressions.length)return parent.replaceWith(parent.node.expressions[0]),!0},function(self,parent){if(parent.isBinary())return "left"===self.key?parent.replaceWith(parent.node.right):parent.replaceWith(parent.node.left),!0},function(self,parent){if(parent.isIfStatement()&&"consequent"===self.key||"body"===self.key&&(parent.isLoop()||parent.isArrowFunctionExpression()))return self.replaceWith({type:"BlockStatement",body:[]}),!0}];},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBindingIdentifier=function(){const{node,parent}=this,grandparent=this.parentPath.parent;return isIdentifier(node)&&isBinding(node,parent,grandparent)},exports.isBlockScoped=function(){return nodeIsBlockScoped(this.node)},exports.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},exports.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():nodeIsExpression(this.node)},exports.isFlow=function(){const{node}=this;return !!nodeIsFlow(node)||(isImportDeclaration(node)?"type"===node.importKind||"typeof"===node.importKind:isExportDeclaration(node)?"type"===node.exportKind:!!isImportSpecifier(node)&&("type"===node.importKind||"typeof"===node.importKind))},exports.isForAwaitStatement=function(){return isForOfStatement(this.node,{await:!0})},exports.isGenerated=function(){return !this.isUser()},exports.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},exports.isPure=function(constantsOnly){return this.scope.isPure(this.node,constantsOnly)},exports.isReferenced=function(){return nodeIsReferenced(this.node,this.parent)},exports.isReferencedIdentifier=function(opts){const{node,parent}=this;if(!isIdentifier(node,opts)&&!isJSXMemberExpression(parent,opts)){if(!isJSXIdentifier(node,opts))return !1;if(isCompatTag(node.name))return !1}return nodeIsReferenced(node,parent,this.parentPath.parent)},exports.isReferencedMemberExpression=function(){const{node,parent}=this;return isMemberExpression(node)&&nodeIsReferenced(node,parent)},exports.isRestProperty=function(){return nodeIsRestElement(this.node)&&this.parentPath&&this.parentPath.isObjectPattern()},exports.isScope=function(){return nodeIsScope(this.node,this.parent)},exports.isSpreadProperty=function(){return nodeIsRestElement(this.node)&&this.parentPath&&this.parentPath.isObjectExpression()},exports.isStatement=function(){const{node,parent}=this;if(nodeIsStatement(node)){if(isVariableDeclaration(node)){if(isForXStatement(parent,{left:node}))return !1;if(isForStatement(parent,{init:node}))return !1}return !0}return !1},exports.isUser=function(){return this.node&&!!this.node.loc},exports.isVar=function(){return nodeIsVar(this.node)};var _t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{isBinding,isBlockScoped:nodeIsBlockScoped,isExportDeclaration,isExpression:nodeIsExpression,isFlow:nodeIsFlow,isForStatement,isForXStatement,isIdentifier,isImportDeclaration,isImportSpecifier,isJSXIdentifier,isJSXMemberExpression,isMemberExpression,isRestElement:nodeIsRestElement,isReferenced:nodeIsReferenced,isScope:nodeIsScope,isStatement:nodeIsStatement,isVar:nodeIsVar,isVariableDeclaration,react,isForOfStatement}=_t,{isCompatTag}=react;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/virtual-types.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.Var=exports.User=exports.Statement=exports.SpreadProperty=exports.Scope=exports.RestProperty=exports.ReferencedMemberExpression=exports.ReferencedIdentifier=exports.Referenced=exports.Pure=exports.NumericLiteralTypeAnnotation=exports.Generated=exports.ForAwaitStatement=exports.Flow=exports.Expression=exports.ExistentialTypeParam=exports.BlockScoped=exports.BindingIdentifier=void 0;exports.ReferencedIdentifier=["Identifier","JSXIdentifier"];exports.ReferencedMemberExpression=["MemberExpression"];exports.BindingIdentifier=["Identifier"];exports.Statement=["Statement"];exports.Expression=["Expression"];exports.Scope=["Scopable","Pattern"];exports.Referenced=null;exports.BlockScoped=null;exports.Var=["VariableDeclaration"];exports.User=null;exports.Generated=null;exports.Pure=null;exports.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];exports.RestProperty=["RestElement"];exports.SpreadProperty=["RestElement"];exports.ExistentialTypeParam=["ExistsTypeAnnotation"];exports.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];exports.ForAwaitStatement=["ForOfStatement"];},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/modification.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._containerInsert=function(from,nodes){this.updateSiblingKeys(from,nodes.length);const paths=[];this.container.splice(from,0,...nodes);for(let i=0;i<nodes.length;i++){const to=from+i,path=this.getSibling(to);paths.push(path),this.context&&this.context.queue&&path.pushContext(this.context);}const contexts=this._getQueueContexts();for(const path of paths){path.setScope(),path.debug("Inserted.");for(const context of contexts)context.maybeQueue(path,!0);}return paths},exports._containerInsertAfter=function(nodes){return this._containerInsert(this.key+1,nodes)},exports._containerInsertBefore=function(nodes){return this._containerInsert(this.key,nodes)},exports._verifyNodeList=function(nodes){if(!nodes)return [];Array.isArray(nodes)||(nodes=[nodes]);for(let i=0;i<nodes.length;i++){const node=nodes[i];let msg;if(node?"object"!=typeof node?msg="contains a non-object node":node.type?node instanceof _index.default&&(msg="has a NodePath when it expected a raw object"):msg="without a type":msg="has falsy node",msg){const type=Array.isArray(node)?"array":typeof node;throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`)}}return nodes},exports.hoist=function(scope=this.scope){return new _hoister.default(this,scope).run()},exports.insertAfter=function(nodes_){if(this._assertUnremoved(),this.isSequenceExpression())return last(this.get("expressions")).insertAfter(nodes_);const nodes=this._verifyNodeList(nodes_),{parentPath}=this;if(parentPath.isExpressionStatement()||parentPath.isLabeledStatement()||parentPath.isExportNamedDeclaration()||parentPath.isExportDefaultDeclaration()&&this.isDeclaration())return parentPath.insertAfter(nodes.map((node=>isExpression(node)?expressionStatement(node):node)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!parentPath.isJSXElement()||parentPath.isForStatement()&&"init"===this.key){if(this.node){const node=this.node;let{scope}=this;if(scope.path.isPattern())return assertExpression(node),this.replaceWith(callExpression(arrowFunctionExpression([],node),[])),this.get("callee.body").insertAfter(nodes),[this];if(isHiddenInSequenceExpression(this))nodes.unshift(node);else if(isCallExpression(node)&&isSuper(node.callee))nodes.unshift(node),nodes.push(thisExpression());else if(function(node,scope){if(!isAssignmentExpression(node)||!isIdentifier(node.left))return !1;const blockScope=scope.getBlockParent();return blockScope.hasOwnBinding(node.left.name)&&blockScope.getOwnBinding(node.left.name).constantViolations.length<=1}(node,scope))nodes.unshift(node),nodes.push(cloneNode(node.left));else if(scope.isPure(node,!0))nodes.push(node);else {parentPath.isMethod({computed:!0,key:node})&&(scope=scope.parent);const temp=scope.generateDeclaredUidIdentifier();nodes.unshift(expressionStatement(assignmentExpression("=",cloneNode(temp),node))),nodes.push(expressionStatement(cloneNode(temp)));}}return this.replaceExpressionWithStatements(nodes)}if(Array.isArray(this.container))return this._containerInsertAfter(nodes);if(this.isStatementOrBlock()){const node=this.node,shouldInsertCurrentNode=node&&(!this.isExpressionStatement()||null!=node.expression);return this.replaceWith(blockStatement(shouldInsertCurrentNode?[node]:[])),this.pushContainer("body",nodes)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},exports.insertBefore=function(nodes_){this._assertUnremoved();const nodes=this._verifyNodeList(nodes_),{parentPath}=this;if(parentPath.isExpressionStatement()||parentPath.isLabeledStatement()||parentPath.isExportNamedDeclaration()||parentPath.isExportDefaultDeclaration()&&this.isDeclaration())return parentPath.insertBefore(nodes);if(this.isNodeType("Expression")&&!this.isJSXElement()||parentPath.isForStatement()&&"init"===this.key)return this.node&&nodes.push(this.node),this.replaceExpressionWithStatements(nodes);if(Array.isArray(this.container))return this._containerInsertBefore(nodes);if(this.isStatementOrBlock()){const node=this.node,shouldInsertCurrentNode=node&&(!this.isExpressionStatement()||null!=node.expression);return this.replaceWith(blockStatement(shouldInsertCurrentNode?[node]:[])),this.unshiftContainer("body",nodes)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},exports.pushContainer=function(listKey,nodes){this._assertUnremoved();const verifiedNodes=this._verifyNodeList(nodes),container=this.node[listKey];return _index.default.get({parentPath:this,parent:this.node,container,listKey,key:container.length}).setContext(this.context).replaceWithMultiple(verifiedNodes)},exports.unshiftContainer=function(listKey,nodes){this._assertUnremoved(),nodes=this._verifyNodeList(nodes);return _index.default.get({parentPath:this,parent:this.node,container:this.node[listKey],listKey,key:0}).setContext(this.context)._containerInsertBefore(nodes)},exports.updateSiblingKeys=function(fromIndex,incrementBy){if(!this.parent)return;const paths=_cache.path.get(this.parent);for(const[,path]of paths)path.key>=fromIndex&&(path.key+=incrementBy);};var _cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js"),_hoister=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/hoister.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{arrowFunctionExpression,assertExpression,assignmentExpression,blockStatement,callExpression,cloneNode,expressionStatement,isAssignmentExpression,isCallExpression,isExpression,isIdentifier,isSequenceExpression,isSuper,thisExpression}=_t;const last=arr=>arr[arr.length-1];function isHiddenInSequenceExpression(path){return isSequenceExpression(path.parent)&&(last(path.parent.expressions)!==path.node||isHiddenInSequenceExpression(path.parentPath))}},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/removal.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")},exports._callRemovalHooks=function(){for(const fn of _removalHooks.hooks)if(fn(this,this.parentPath))return !0},exports._markRemoved=function(){this._traverseFlags|=_index.SHOULD_SKIP|_index.REMOVED,this.parent&&_cache.path.get(this.parent).delete(this.node);this.node=null;},exports._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null);},exports._removeFromScope=function(){const bindings=this.getBindingIdentifiers();Object.keys(bindings).forEach((name=>this.scope.removeBinding(name)));},exports.remove=function(){var _this$opts;this._assertUnremoved(),this.resync(),null!=(_this$opts=this.opts)&&_this$opts.noScope||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved();};var _removalHooks=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js"),_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js");},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/replacement.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports._replaceWith=function(node){var _pathCache$get2;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?validate(this.parent,this.key,[node]):validate(this.parent,this.key,node);this.debug(`Replace with ${null==node?void 0:node.type}`),null==(_pathCache$get2=_cache.path.get(this.parent))||_pathCache$get2.set(node,this).delete(this.node),this.node=this.container[this.key]=node;},exports.replaceExpressionWithStatements=function(nodes){this.resync();const nodesAsSequenceExpression=toSequenceExpression(nodes,this.scope);if(nodesAsSequenceExpression)return this.replaceWith(nodesAsSequenceExpression)[0].get("expressions");const functionParent=this.getFunctionParent(),isParentAsync=null==functionParent?void 0:functionParent.is("async"),isParentGenerator=null==functionParent?void 0:functionParent.is("generator"),container=arrowFunctionExpression([],blockStatement(nodes));this.replaceWith(callExpression(container,[]));const callee=this.get("callee");(0, _helperHoistVariables.default)(callee.get("body"),(id=>{this.scope.push({id});}),"var");const completionRecords=this.get("callee").getCompletionRecords();for(const path of completionRecords){if(!path.isExpressionStatement())continue;const loop=path.findParent((path=>path.isLoop()));if(loop){let uid=loop.getData("expressionReplacementReturnUid");uid?uid=identifier(uid.name):(uid=callee.scope.generateDeclaredUidIdentifier("ret"),callee.get("body").pushContainer("body",returnStatement(cloneNode(uid))),loop.setData("expressionReplacementReturnUid",uid)),path.get("expression").replaceWith(assignmentExpression("=",cloneNode(uid),path.node.expression));}else path.replaceWith(returnStatement(path.node.expression));}callee.arrowFunctionToExpression();const newCallee=callee,needToAwaitFunction=isParentAsync&&_index.default.hasType(this.get("callee.body").node,"AwaitExpression",FUNCTION_TYPES),needToYieldFunction=isParentGenerator&&_index.default.hasType(this.get("callee.body").node,"YieldExpression",FUNCTION_TYPES);needToAwaitFunction&&(newCallee.set("async",!0),needToYieldFunction||this.replaceWith(awaitExpression(this.node)));needToYieldFunction&&(newCallee.set("generator",!0),this.replaceWith(yieldExpression(this.node,!0)));return newCallee.get("body.body")},exports.replaceInline=function(nodes){if(this.resync(),Array.isArray(nodes)){if(Array.isArray(this.container)){nodes=this._verifyNodeList(nodes);const paths=this._containerInsertAfter(nodes);return this.remove(),paths}return this.replaceWithMultiple(nodes)}return this.replaceWith(nodes)},exports.replaceWith=function(replacementPath){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let replacement=replacementPath instanceof _index2.default?replacementPath.node:replacementPath;if(!replacement)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===replacement)return [this];if(this.isProgram()&&!isProgram(replacement))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(replacement))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof replacement)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let nodePath="";this.isNodeType("Statement")&&isExpression(replacement)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(replacement)||this.parentPath.isExportDefaultDeclaration()||(replacement=expressionStatement(replacement),nodePath="expression"));if(this.isNodeType("Expression")&&isStatement(replacement)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(replacement))return this.replaceExpressionWithStatements([replacement]);const oldNode=this.node;oldNode&&(inheritsComments(replacement,oldNode),removeComments(oldNode));return this._replaceWith(replacement),this.type=replacement.type,this.setScope(),this.requeue(),[nodePath?this.get(nodePath):this]},exports.replaceWithMultiple=function(nodes){var _pathCache$get;this.resync(),nodes=this._verifyNodeList(nodes),inheritLeadingComments(nodes[0],this.node),inheritTrailingComments(nodes[nodes.length-1],this.node),null==(_pathCache$get=_cache.path.get(this.parent))||_pathCache$get.delete(this.node),this.node=this.container[this.key]=null;const paths=this.insertAfter(nodes);this.node?this.requeue():this.remove();return paths},exports.replaceWithSourceString=function(replacement){let ast;this.resync();try{replacement=`(${replacement})`,ast=(0,_parser.parse)(replacement);}catch(err){const loc=err.loc;throw loc&&(err.message+=" - make sure this is an expression.\n"+(0, _codeFrame.codeFrameColumns)(replacement,{start:{line:loc.line,column:loc.column+1}}),err.code="BABEL_REPLACE_SOURCE_ERROR"),err}const expressionAST=ast.program.body[0].expression;return _index.default.removeProperties(expressionAST),this.replaceWith(expressionAST)};var _codeFrame=__webpack_require__("./stubs/babel_codeframe.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js"),_index2=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/index.js"),_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js"),_parser=__webpack_require__("./node_modules/.pnpm/@babel+parser@7.19.1/node_modules/@babel/parser/lib/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helperHoistVariables=__webpack_require__("./node_modules/.pnpm/@babel+helper-hoist-variables@7.18.6/node_modules/@babel/helper-hoist-variables/lib/index.js");const{FUNCTION_TYPES,arrowFunctionExpression,assignmentExpression,awaitExpression,blockStatement,callExpression,cloneNode,expressionStatement,identifier,inheritLeadingComments,inheritTrailingComments,inheritsComments,isExpression,isProgram,isStatement,removeComments,returnStatement,toSequenceExpression,validate,yieldExpression}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/binding.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{constructor({identifier,scope,path,kind}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=identifier,this.scope=scope,this.path=path,this.kind=kind,this.clearValue();}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0;}setValue(value){this.hasDeoptedValue||(this.hasValue=!0,this.value=value);}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null;}reassign(path){this.constant=!1,-1===this.constantViolations.indexOf(path)&&this.constantViolations.push(path);}reference(path){-1===this.referencePaths.indexOf(path)&&(this.referenced=!0,this.references++,this.referencePaths.push(path));}dereference(){this.references--,this.referenced=!!this.references;}};},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _renamer=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/lib/renamer.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/index.js"),_binding=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/binding.js"),_globals=__webpack_require__("./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_cache=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/cache.js");const{NOT_LOCAL_BINDING,callExpression,cloneNode,getBindingIdentifiers,identifier,isArrayExpression,isBinary,isClass,isClassBody,isClassDeclaration,isExportAllDeclaration,isExportDefaultDeclaration,isExportNamedDeclaration,isFunctionDeclaration,isIdentifier,isImportDeclaration,isLiteral,isMethod,isModuleDeclaration,isModuleSpecifier,isNullLiteral,isObjectExpression,isProperty,isPureish,isRegExpLiteral,isSuper,isTaggedTemplateExpression,isTemplateLiteral,isThisExpression,isUnaryExpression,isVariableDeclaration,matchesPattern,memberExpression,numericLiteral,toIdentifier,unaryExpression,variableDeclaration,variableDeclarator,isRecordExpression,isTupleExpression,isObjectProperty,isTopicReference,isMetaProperty,isPrivateName}=_t;function gatherNodeParts(node,parts){switch(null==node?void 0:node.type){default:if(isModuleDeclaration(node))if((isExportAllDeclaration(node)||isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.source)gatherNodeParts(node.source,parts);else if((isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.specifiers&&node.specifiers.length)for(const e of node.specifiers)gatherNodeParts(e,parts);else (isExportDefaultDeclaration(node)||isExportNamedDeclaration(node))&&node.declaration&&gatherNodeParts(node.declaration,parts);else isModuleSpecifier(node)?gatherNodeParts(node.local,parts):!isLiteral(node)||isNullLiteral(node)||isRegExpLiteral(node)||isTemplateLiteral(node)||parts.push(node.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(node.object,parts),gatherNodeParts(node.property,parts);break;case"Identifier":case"JSXIdentifier":parts.push(node.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(node.callee,parts);break;case"ObjectExpression":case"ObjectPattern":for(const e of node.properties)gatherNodeParts(e,parts);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":gatherNodeParts(node.argument,parts);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(node.key,parts);break;case"ThisExpression":parts.push("this");break;case"Super":parts.push("super");break;case"Import":parts.push("import");break;case"DoExpression":parts.push("do");break;case"YieldExpression":parts.push("yield"),gatherNodeParts(node.argument,parts);break;case"AwaitExpression":parts.push("await"),gatherNodeParts(node.argument,parts);break;case"AssignmentExpression":gatherNodeParts(node.left,parts);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":gatherNodeParts(node.id,parts);break;case"ParenthesizedExpression":gatherNodeParts(node.expression,parts);break;case"MetaProperty":gatherNodeParts(node.meta,parts),gatherNodeParts(node.property,parts);break;case"JSXElement":gatherNodeParts(node.openingElement,parts);break;case"JSXOpeningElement":gatherNodeParts(node.name,parts);break;case"JSXFragment":gatherNodeParts(node.openingFragment,parts);break;case"JSXOpeningFragment":parts.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(node.namespace,parts),gatherNodeParts(node.name,parts);}}const collectorVisitor={ForStatement(path){const declar=path.get("init");if(declar.isVar()){const{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",declar);}},Declaration(path){if(path.isBlockScoped())return;if(path.isImportDeclaration())return;if(path.isExportDeclaration())return;(path.scope.getFunctionParent()||path.scope.getProgramParent()).registerDeclaration(path);},ImportDeclaration(path){path.scope.getBlockParent().registerDeclaration(path);},ReferencedIdentifier(path,state){state.references.push(path);},ForXStatement(path,state){const left=path.get("left");if(left.isPattern()||left.isIdentifier())state.constantViolations.push(path);else if(left.isVar()){const{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",left);}},ExportDeclaration:{exit(path){const{node,scope}=path;if(isExportAllDeclaration(node))return;const declar=node.declaration;if(isClassDeclaration(declar)||isFunctionDeclaration(declar)){const id=declar.id;if(!id)return;const binding=scope.getBinding(id.name);null==binding||binding.reference(path);}else if(isVariableDeclaration(declar))for(const decl of declar.declarations)for(const name of Object.keys(getBindingIdentifiers(decl))){const binding=scope.getBinding(name);null==binding||binding.reference(path);}}},LabeledStatement(path){path.scope.getBlockParent().registerDeclaration(path);},AssignmentExpression(path,state){state.assignments.push(path);},UpdateExpression(path,state){state.constantViolations.push(path);},UnaryExpression(path,state){"delete"===path.node.operator&&state.constantViolations.push(path);},BlockScoped(path){let scope=path.scope;scope.path===path&&(scope=scope.parent);if(scope.getBlockParent().registerDeclaration(path),path.isClassDeclaration()&&path.node.id){const name=path.node.id.name;path.scope.bindings[name]=path.scope.parent.getBinding(name);}},CatchClause(path){path.scope.registerBinding("let",path);},Function(path){const params=path.get("params");for(const param of params)path.scope.registerBinding("param",param);path.isFunctionExpression()&&path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path.get("id"),path);},ClassExpression(path){path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path);}};let uid=0;class Scope{constructor(path){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;const{node}=path,cached=_cache.scope.get(node);if((null==cached?void 0:cached.path)===path)return cached;_cache.scope.set(node,this),this.uid=uid++,this.block=node,this.path=path,this.labels=new Map,this.inited=!1;}get parent(){var _parent;let parent,path=this.path;do{const shouldSkip="key"===path.key||"decorators"===path.listKey;path=path.parentPath,shouldSkip&&path.isMethod()&&(path=path.parentPath),path&&path.isScope()&&(parent=path);}while(path&&!parent);return null==(_parent=parent)?void 0:_parent.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(node,opts,state){(0, _index.default)(node,opts,this,state,this.path);}generateDeclaredUidIdentifier(name){const id=this.generateUidIdentifier(name);return this.push({id}),cloneNode(id)}generateUidIdentifier(name){return identifier(this.generateUid(name))}generateUid(name="temp"){let uid;name=toIdentifier(name).replace(/^_+/,"").replace(/[0-9]+$/g,"");let i=1;do{uid=this._generateUid(name,i),i++;}while(this.hasLabel(uid)||this.hasBinding(uid)||this.hasGlobal(uid)||this.hasReference(uid));const program=this.getProgramParent();return program.references[uid]=!0,program.uids[uid]=!0,uid}_generateUid(name,i){let id=name;return i>1&&(id+=i),`_${id}`}generateUidBasedOnNode(node,defaultName){const parts=[];gatherNodeParts(node,parts);let id=parts.join("$");return id=id.replace(/^_/,"")||defaultName||"ref",this.generateUid(id.slice(0,20))}generateUidIdentifierBasedOnNode(node,defaultName){return identifier(this.generateUidBasedOnNode(node,defaultName))}isStatic(node){if(isThisExpression(node)||isSuper(node)||isTopicReference(node))return !0;if(isIdentifier(node)){const binding=this.getBinding(node.name);return binding?binding.constant:this.hasBinding(node.name)}return !1}maybeGenerateMemoised(node,dontPush){if(this.isStatic(node))return null;{const id=this.generateUidIdentifierBasedOnNode(node);return dontPush?id:(this.push({id}),cloneNode(id))}}checkBlockScopedCollisions(local,kind,name,id){if("param"===kind)return;if("local"===local.kind)return;if("let"===kind||"let"===local.kind||"const"===local.kind||"module"===local.kind||"param"===local.kind&&"const"===kind)throw this.hub.buildError(id,`Duplicate declaration "${name}"`,TypeError)}rename(oldName,newName,block){const binding=this.getBinding(oldName);if(binding)return newName=newName||this.generateUidIdentifier(oldName).name,new _renamer.default(binding,oldName,newName).rename(block)}_renameFromMap(map,oldName,newName,value){map[oldName]&&(map[newName]=value,map[oldName]=null);}dump(){const sep="-".repeat(60);console.log(sep);let scope=this;do{console.log("#",scope.block.type);for(const name of Object.keys(scope.bindings)){const binding=scope.bindings[name];console.log(" -",name,{constant:binding.constant,references:binding.references,violations:binding.constantViolations.length,kind:binding.kind});}}while(scope=scope.parent);console.log(sep);}toArray(node,i,arrayLikeIsIterable){if(isIdentifier(node)){const binding=this.getBinding(node.name);if(null!=binding&&binding.constant&&binding.path.isGenericType("Array"))return node}if(isArrayExpression(node))return node;if(isIdentifier(node,{name:"arguments"}))return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"),identifier("prototype")),identifier("slice")),identifier("call")),[node]);let helperName;const args=[node];return !0===i?helperName="toConsumableArray":i?(args.push(numericLiteral(i)),helperName="slicedToArray"):helperName="toArray",arrayLikeIsIterable&&(args.unshift(this.hub.addHelper(helperName)),helperName="maybeArrayLike"),callExpression(this.hub.addHelper(helperName),args)}hasLabel(name){return !!this.getLabel(name)}getLabel(name){return this.labels.get(name)}registerLabel(path){this.labels.set(path.node.label.name,path);}registerDeclaration(path){if(path.isLabeledStatement())this.registerLabel(path);else if(path.isFunctionDeclaration())this.registerBinding("hoisted",path.get("id"),path);else if(path.isVariableDeclaration()){const declarations=path.get("declarations");for(const declar of declarations)this.registerBinding(path.node.kind,declar);}else if(path.isClassDeclaration()){if(path.node.declare)return;this.registerBinding("let",path);}else if(path.isImportDeclaration()){const specifiers=path.get("specifiers");for(const specifier of specifiers)this.registerBinding("module",specifier);}else if(path.isExportDeclaration()){const declar=path.get("declaration");(declar.isClassDeclaration()||declar.isFunctionDeclaration()||declar.isVariableDeclaration())&&this.registerDeclaration(declar);}else this.registerBinding("unknown",path);}buildUndefinedNode(){return unaryExpression("void",numericLiteral(0),!0)}registerConstantViolation(path){const ids=path.getBindingIdentifiers();for(const name of Object.keys(ids)){const binding=this.getBinding(name);binding&&binding.reassign(path);}}registerBinding(kind,path,bindingPath=path){if(!kind)throw new ReferenceError("no `kind`");if(path.isVariableDeclaration()){const declarators=path.get("declarations");for(const declar of declarators)this.registerBinding(kind,declar);return}const parent=this.getProgramParent(),ids=path.getOuterBindingIdentifiers(!0);for(const name of Object.keys(ids)){parent.references[name]=!0;for(const id of ids[name]){const local=this.getOwnBinding(name);if(local){if(local.identifier===id)continue;this.checkBlockScopedCollisions(local,kind,name,id);}local?this.registerConstantViolation(bindingPath):this.bindings[name]=new _binding.default({identifier:id,scope:this,path:bindingPath,kind});}}}addGlobal(node){this.globals[node.name]=node;}hasUid(name){let scope=this;do{if(scope.uids[name])return !0}while(scope=scope.parent);return !1}hasGlobal(name){let scope=this;do{if(scope.globals[name])return !0}while(scope=scope.parent);return !1}hasReference(name){return !!this.getProgramParent().references[name]}isPure(node,constantsOnly){if(isIdentifier(node)){const binding=this.getBinding(node.name);return !!binding&&(!constantsOnly||binding.constant)}if(isThisExpression(node)||isMetaProperty(node)||isTopicReference(node)||isPrivateName(node))return !0;var _node$decorators,_node$decorators2,_node$decorators3;if(isClass(node))return !(node.superClass&&!this.isPure(node.superClass,constantsOnly))&&(!((null==(_node$decorators=node.decorators)?void 0:_node$decorators.length)>0)&&this.isPure(node.body,constantsOnly));if(isClassBody(node)){for(const method of node.body)if(!this.isPure(method,constantsOnly))return !1;return !0}if(isBinary(node))return this.isPure(node.left,constantsOnly)&&this.isPure(node.right,constantsOnly);if(isArrayExpression(node)||isTupleExpression(node)){for(const elem of node.elements)if(null!==elem&&!this.isPure(elem,constantsOnly))return !1;return !0}if(isObjectExpression(node)||isRecordExpression(node)){for(const prop of node.properties)if(!this.isPure(prop,constantsOnly))return !1;return !0}if(isMethod(node))return !(node.computed&&!this.isPure(node.key,constantsOnly))&&!((null==(_node$decorators2=node.decorators)?void 0:_node$decorators2.length)>0);if(isProperty(node))return !(node.computed&&!this.isPure(node.key,constantsOnly))&&(!((null==(_node$decorators3=node.decorators)?void 0:_node$decorators3.length)>0)&&!((isObjectProperty(node)||node.static)&&null!==node.value&&!this.isPure(node.value,constantsOnly)));if(isUnaryExpression(node))return this.isPure(node.argument,constantsOnly);if(isTaggedTemplateExpression(node))return matchesPattern(node.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(node.quasi,constantsOnly);if(isTemplateLiteral(node)){for(const expression of node.expressions)if(!this.isPure(expression,constantsOnly))return !1;return !0}return isPureish(node)}setData(key,val){return this.data[key]=val}getData(key){let scope=this;do{const data=scope.data[key];if(null!=data)return data}while(scope=scope.parent)}removeData(key){let scope=this;do{null!=scope.data[key]&&(scope.data[key]=null);}while(scope=scope.parent)}init(){this.inited||(this.inited=!0,this.crawl());}crawl(){const path=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);const programParent=this.getProgramParent();if(programParent.crawling)return;const state={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==path.type&&collectorVisitor._exploded){for(const visit of collectorVisitor.enter)visit(path,state);const typeVisitors=collectorVisitor[path.type];if(typeVisitors)for(const visit of typeVisitors.enter)visit(path,state);}path.traverse(collectorVisitor,state),this.crawling=!1;for(const path of state.assignments){const ids=path.getBindingIdentifiers();for(const name of Object.keys(ids))path.scope.getBinding(name)||programParent.addGlobal(ids[name]);path.scope.registerConstantViolation(path);}for(const ref of state.references){const binding=ref.scope.getBinding(ref.node.name);binding?binding.reference(ref):programParent.addGlobal(ref.node);}for(const path of state.constantViolations)path.scope.registerConstantViolation(path);}push(opts){let path=this.path;path.isPattern()?path=this.getPatternParent().path:path.isBlockStatement()||path.isProgram()||(path=this.getBlockParent().path),path.isSwitchStatement()&&(path=(this.getFunctionParent()||this.getProgramParent()).path),(path.isLoop()||path.isCatchClause()||path.isFunction())&&(path.ensureBlock(),path=path.get("body"));const unique=opts.unique,kind=opts.kind||"var",blockHoist=null==opts._blockHoist?2:opts._blockHoist,dataKey=`declaration:${kind}:${blockHoist}`;let declarPath=!unique&&path.getData(dataKey);if(!declarPath){const declar=variableDeclaration(kind,[]);declar._blockHoist=blockHoist,[declarPath]=path.unshiftContainer("body",[declar]),unique||path.setData(dataKey,declarPath);}const declarator=variableDeclarator(opts.id,opts.init),len=declarPath.node.declarations.push(declarator);path.scope.registerBinding(kind,declarPath.get("declarations")[len-1]);}getProgramParent(){let scope=this;do{if(scope.path.isProgram())return scope}while(scope=scope.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let scope=this;do{if(scope.path.isFunctionParent())return scope}while(scope=scope.parent);return null}getBlockParent(){let scope=this;do{if(scope.path.isBlockParent())return scope}while(scope=scope.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let scope=this;do{if(!scope.path.isPattern())return scope.getBlockParent()}while(scope=scope.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const ids=Object.create(null);let scope=this;do{for(const key of Object.keys(scope.bindings))key in ids==!1&&(ids[key]=scope.bindings[key]);scope=scope.parent;}while(scope);return ids}getAllBindingsOfKind(...kinds){const ids=Object.create(null);for(const kind of kinds){let scope=this;do{for(const name of Object.keys(scope.bindings)){const binding=scope.bindings[name];binding.kind===kind&&(ids[name]=binding);}scope=scope.parent;}while(scope)}return ids}bindingIdentifierEquals(name,node){return this.getBindingIdentifier(name)===node}getBinding(name){let previousPath,scope=this;do{const binding=scope.getOwnBinding(name);var _previousPath;if(binding){if(null==(_previousPath=previousPath)||!_previousPath.isPattern()||"param"===binding.kind||"local"===binding.kind)return binding}else if(!binding&&"arguments"===name&&scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break;previousPath=scope.path;}while(scope=scope.parent)}getOwnBinding(name){return this.bindings[name]}getBindingIdentifier(name){var _this$getBinding;return null==(_this$getBinding=this.getBinding(name))?void 0:_this$getBinding.identifier}getOwnBindingIdentifier(name){const binding=this.bindings[name];return null==binding?void 0:binding.identifier}hasOwnBinding(name){return !!this.getOwnBinding(name)}hasBinding(name,noGlobals){return !!name&&(!!this.hasOwnBinding(name)||(!!this.parentHasBinding(name,noGlobals)||(!!this.hasUid(name)||(!(noGlobals||!Scope.globals.includes(name))||!(noGlobals||!Scope.contextVariables.includes(name))))))}parentHasBinding(name,noGlobals){var _this$parent;return null==(_this$parent=this.parent)?void 0:_this$parent.hasBinding(name,noGlobals)}moveBindingTo(name,scope){const info=this.getBinding(name);info&&(info.scope.removeOwnBinding(name),info.scope=scope,scope.bindings[name]=info);}removeOwnBinding(name){delete this.bindings[name];}removeBinding(name){var _this$getBinding2;null==(_this$getBinding2=this.getBinding(name))||_this$getBinding2.scope.removeOwnBinding(name);let scope=this;do{scope.uids[name]&&(scope.uids[name]=!1);}while(scope=scope.parent)}}exports.default=Scope,Scope.globals=Object.keys(_globals.builtin),Scope.contextVariables=["arguments","undefined","Infinity","NaN"];},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/scope/lib/renamer.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperSplitExportDeclaration=__webpack_require__("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.18.6/node_modules/@babel/helper-split-export-declaration/lib/index.js"),t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/.pnpm/@babel+helper-environment-visitor@7.18.9/node_modules/@babel/helper-environment-visitor/lib/index.js");const renameVisitor={ReferencedIdentifier({node},state){node.name===state.oldName&&(node.name=state.newName);},Scope(path,state){path.scope.bindingIdentifierEquals(state.oldName,state.binding.identifier)||(path.skip(),path.isMethod()&&(0, _helperEnvironmentVisitor.requeueComputedKeyAndDecorators)(path));},"AssignmentExpression|Declaration|VariableDeclarator"(path,state){if(path.isVariableDeclaration())return;const ids=path.getOuterBindingIdentifiers();for(const name in ids)name===state.oldName&&(ids[name].name=state.newName);}};exports.default=class{constructor(binding,oldName,newName){this.newName=newName,this.oldName=oldName,this.binding=binding;}maybeConvertFromExportDeclaration(parentDeclar){const maybeExportDeclar=parentDeclar.parentPath;if(maybeExportDeclar.isExportDeclaration()){if(maybeExportDeclar.isExportDefaultDeclaration()){const{declaration}=maybeExportDeclar.node;if(t.isDeclaration(declaration)&&!declaration.id)return}maybeExportDeclar.isExportAllDeclaration()||(0, _helperSplitExportDeclaration.default)(maybeExportDeclar);}}maybeConvertFromClassFunctionDeclaration(path){return path}maybeConvertFromClassFunctionExpression(path){return path}rename(block){const{binding,oldName,newName}=this,{scope,path}=binding,parentDeclar=path.find((path=>path.isDeclaration()||path.isFunctionExpression()||path.isClassExpression()));if(parentDeclar){parentDeclar.getOuterBindingIdentifiers()[oldName]===binding.identifier&&this.maybeConvertFromExportDeclaration(parentDeclar);}const blockToTraverse=block||scope.block;"SwitchStatement"===(null==blockToTraverse?void 0:blockToTraverse.type)?blockToTraverse.cases.forEach((c=>{scope.traverse(c,renameVisitor,this);})):scope.traverse(blockToTraverse,renameVisitor,this),block||(scope.removeOwnBinding(oldName),scope.bindings[newName]=binding,this.binding.identifier.name=newName),parentDeclar&&(this.maybeConvertFromClassFunctionDeclaration(path),this.maybeConvertFromClassFunctionExpression(path));}};},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/traverse-node.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.traverseNode=function(node,opts,scope,state,path,skipKeys){const keys=VISITOR_KEYS[node.type];if(!keys)return !1;const context=new _context.default(scope,opts,state,path);for(const key of keys)if((!skipKeys||!skipKeys[key])&&context.visit(node,key))return !0;return !1};var _context=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/context.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;},"./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/visitors.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.explode=explode,exports.merge=function(visitors,states=[],wrapper){const rootVisitor={};for(let i=0;i<visitors.length;i++){const visitor=visitors[i],state=states[i];explode(visitor);for(const type of Object.keys(visitor)){let visitorType=visitor[type];(state||wrapper)&&(visitorType=wrapWithStateOrWrapper(visitorType,state,wrapper));mergePair(rootVisitor[type]||(rootVisitor[type]={}),visitorType);}}return rootVisitor},exports.verify=verify;var virtualTypes=__webpack_require__("./node_modules/.pnpm/@babel+traverse@7.19.1/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),_t=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");const{DEPRECATED_KEYS,FLIPPED_ALIAS_KEYS,TYPES}=_t;function explode(visitor){if(visitor._exploded)return visitor;visitor._exploded=!0;for(const nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;const parts=nodeType.split("|");if(1===parts.length)continue;const fns=visitor[nodeType];delete visitor[nodeType];for(const part of parts)visitor[part]=fns;}verify(visitor),delete visitor.__esModule,function(obj){for(const key of Object.keys(obj)){if(shouldIgnoreKey(key))continue;const fns=obj[key];"function"==typeof fns&&(obj[key]={enter:fns});}}(visitor),ensureCallbackArrays(visitor);for(const nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;if(!(nodeType in virtualTypes))continue;const fns=visitor[nodeType];for(const type of Object.keys(fns))fns[type]=wrapCheck(nodeType,fns[type]);delete visitor[nodeType];const types=virtualTypes[nodeType];if(null!==types)for(const type of types)visitor[type]?mergePair(visitor[type],fns):visitor[type]=fns;else mergePair(visitor,fns);}for(const nodeType of Object.keys(visitor)){if(shouldIgnoreKey(nodeType))continue;const fns=visitor[nodeType];let aliases=FLIPPED_ALIAS_KEYS[nodeType];const deprecatedKey=DEPRECATED_KEYS[nodeType];if(deprecatedKey&&(console.trace(`Visitor defined for ${nodeType} but it has been renamed to ${deprecatedKey}`),aliases=[deprecatedKey]),aliases){delete visitor[nodeType];for(const alias of aliases){const existing=visitor[alias];existing?mergePair(existing,fns):visitor[alias]=Object.assign({},fns);}}}for(const nodeType of Object.keys(visitor))shouldIgnoreKey(nodeType)||ensureCallbackArrays(visitor[nodeType]);return visitor}function verify(visitor){if(!visitor._verified){if("function"==typeof visitor)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const nodeType of Object.keys(visitor)){if("enter"!==nodeType&&"exit"!==nodeType||validateVisitorMethods(nodeType,visitor[nodeType]),shouldIgnoreKey(nodeType))continue;if(TYPES.indexOf(nodeType)<0)throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`);const visitors=visitor[nodeType];if("object"==typeof visitors)for(const visitorKey of Object.keys(visitors)){if("enter"!==visitorKey&&"exit"!==visitorKey)throw new Error(`You passed \`traverse()\` a visitor object with the property ${nodeType} that has the invalid property ${visitorKey}`);validateVisitorMethods(`${nodeType}.${visitorKey}`,visitors[visitorKey]);}}visitor._verified=!0;}}function validateVisitorMethods(path,val){const fns=[].concat(val);for(const fn of fns)if("function"!=typeof fn)throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`)}function wrapWithStateOrWrapper(oldVisitor,state,wrapper){const newVisitor={};for(const key of Object.keys(oldVisitor)){let fns=oldVisitor[key];Array.isArray(fns)&&(fns=fns.map((function(fn){let newFn=fn;return state&&(newFn=function(path){return fn.call(state,path,state)}),wrapper&&(newFn=wrapper(state.key,key,newFn)),newFn!==fn&&(newFn.toString=()=>fn.toString()),newFn})),newVisitor[key]=fns);}return newVisitor}function ensureCallbackArrays(obj){obj.enter&&!Array.isArray(obj.enter)&&(obj.enter=[obj.enter]),obj.exit&&!Array.isArray(obj.exit)&&(obj.exit=[obj.exit]);}function wrapCheck(nodeType,fn){const newFn=function(path){if(path[`is${nodeType}`]())return fn.apply(this,arguments)};return newFn.toString=()=>fn.toString(),newFn}function shouldIgnoreKey(key){return "_"===key[0]||("enter"===key||"exit"===key||"shouldSkip"===key||("denylist"===key||"noScope"===key||"skipKeys"===key||"blacklist"===key))}function mergePair(dest,src){for(const key of Object.keys(src))dest[key]=[].concat(dest[key]||[],src[key]);}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/asserts/assertNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if(!(0, _isNode.default)(node)){var _node$type;const type=null!=(_node$type=null==node?void 0:node.type)?_node$type:JSON.stringify(node);throw new TypeError(`Not a valid node of type "${type}"`)}};var _isNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isNode.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/asserts/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertAccessor=function(node,opts){assert("Accessor",node,opts);},exports.assertAnyTypeAnnotation=function(node,opts){assert("AnyTypeAnnotation",node,opts);},exports.assertArgumentPlaceholder=function(node,opts){assert("ArgumentPlaceholder",node,opts);},exports.assertArrayExpression=function(node,opts){assert("ArrayExpression",node,opts);},exports.assertArrayPattern=function(node,opts){assert("ArrayPattern",node,opts);},exports.assertArrayTypeAnnotation=function(node,opts){assert("ArrayTypeAnnotation",node,opts);},exports.assertArrowFunctionExpression=function(node,opts){assert("ArrowFunctionExpression",node,opts);},exports.assertAssignmentExpression=function(node,opts){assert("AssignmentExpression",node,opts);},exports.assertAssignmentPattern=function(node,opts){assert("AssignmentPattern",node,opts);},exports.assertAwaitExpression=function(node,opts){assert("AwaitExpression",node,opts);},exports.assertBigIntLiteral=function(node,opts){assert("BigIntLiteral",node,opts);},exports.assertBinary=function(node,opts){assert("Binary",node,opts);},exports.assertBinaryExpression=function(node,opts){assert("BinaryExpression",node,opts);},exports.assertBindExpression=function(node,opts){assert("BindExpression",node,opts);},exports.assertBlock=function(node,opts){assert("Block",node,opts);},exports.assertBlockParent=function(node,opts){assert("BlockParent",node,opts);},exports.assertBlockStatement=function(node,opts){assert("BlockStatement",node,opts);},exports.assertBooleanLiteral=function(node,opts){assert("BooleanLiteral",node,opts);},exports.assertBooleanLiteralTypeAnnotation=function(node,opts){assert("BooleanLiteralTypeAnnotation",node,opts);},exports.assertBooleanTypeAnnotation=function(node,opts){assert("BooleanTypeAnnotation",node,opts);},exports.assertBreakStatement=function(node,opts){assert("BreakStatement",node,opts);},exports.assertCallExpression=function(node,opts){assert("CallExpression",node,opts);},exports.assertCatchClause=function(node,opts){assert("CatchClause",node,opts);},exports.assertClass=function(node,opts){assert("Class",node,opts);},exports.assertClassAccessorProperty=function(node,opts){assert("ClassAccessorProperty",node,opts);},exports.assertClassBody=function(node,opts){assert("ClassBody",node,opts);},exports.assertClassDeclaration=function(node,opts){assert("ClassDeclaration",node,opts);},exports.assertClassExpression=function(node,opts){assert("ClassExpression",node,opts);},exports.assertClassImplements=function(node,opts){assert("ClassImplements",node,opts);},exports.assertClassMethod=function(node,opts){assert("ClassMethod",node,opts);},exports.assertClassPrivateMethod=function(node,opts){assert("ClassPrivateMethod",node,opts);},exports.assertClassPrivateProperty=function(node,opts){assert("ClassPrivateProperty",node,opts);},exports.assertClassProperty=function(node,opts){assert("ClassProperty",node,opts);},exports.assertCompletionStatement=function(node,opts){assert("CompletionStatement",node,opts);},exports.assertConditional=function(node,opts){assert("Conditional",node,opts);},exports.assertConditionalExpression=function(node,opts){assert("ConditionalExpression",node,opts);},exports.assertContinueStatement=function(node,opts){assert("ContinueStatement",node,opts);},exports.assertDebuggerStatement=function(node,opts){assert("DebuggerStatement",node,opts);},exports.assertDecimalLiteral=function(node,opts){assert("DecimalLiteral",node,opts);},exports.assertDeclaration=function(node,opts){assert("Declaration",node,opts);},exports.assertDeclareClass=function(node,opts){assert("DeclareClass",node,opts);},exports.assertDeclareExportAllDeclaration=function(node,opts){assert("DeclareExportAllDeclaration",node,opts);},exports.assertDeclareExportDeclaration=function(node,opts){assert("DeclareExportDeclaration",node,opts);},exports.assertDeclareFunction=function(node,opts){assert("DeclareFunction",node,opts);},exports.assertDeclareInterface=function(node,opts){assert("DeclareInterface",node,opts);},exports.assertDeclareModule=function(node,opts){assert("DeclareModule",node,opts);},exports.assertDeclareModuleExports=function(node,opts){assert("DeclareModuleExports",node,opts);},exports.assertDeclareOpaqueType=function(node,opts){assert("DeclareOpaqueType",node,opts);},exports.assertDeclareTypeAlias=function(node,opts){assert("DeclareTypeAlias",node,opts);},exports.assertDeclareVariable=function(node,opts){assert("DeclareVariable",node,opts);},exports.assertDeclaredPredicate=function(node,opts){assert("DeclaredPredicate",node,opts);},exports.assertDecorator=function(node,opts){assert("Decorator",node,opts);},exports.assertDirective=function(node,opts){assert("Directive",node,opts);},exports.assertDirectiveLiteral=function(node,opts){assert("DirectiveLiteral",node,opts);},exports.assertDoExpression=function(node,opts){assert("DoExpression",node,opts);},exports.assertDoWhileStatement=function(node,opts){assert("DoWhileStatement",node,opts);},exports.assertEmptyStatement=function(node,opts){assert("EmptyStatement",node,opts);},exports.assertEmptyTypeAnnotation=function(node,opts){assert("EmptyTypeAnnotation",node,opts);},exports.assertEnumBody=function(node,opts){assert("EnumBody",node,opts);},exports.assertEnumBooleanBody=function(node,opts){assert("EnumBooleanBody",node,opts);},exports.assertEnumBooleanMember=function(node,opts){assert("EnumBooleanMember",node,opts);},exports.assertEnumDeclaration=function(node,opts){assert("EnumDeclaration",node,opts);},exports.assertEnumDefaultedMember=function(node,opts){assert("EnumDefaultedMember",node,opts);},exports.assertEnumMember=function(node,opts){assert("EnumMember",node,opts);},exports.assertEnumNumberBody=function(node,opts){assert("EnumNumberBody",node,opts);},exports.assertEnumNumberMember=function(node,opts){assert("EnumNumberMember",node,opts);},exports.assertEnumStringBody=function(node,opts){assert("EnumStringBody",node,opts);},exports.assertEnumStringMember=function(node,opts){assert("EnumStringMember",node,opts);},exports.assertEnumSymbolBody=function(node,opts){assert("EnumSymbolBody",node,opts);},exports.assertExistsTypeAnnotation=function(node,opts){assert("ExistsTypeAnnotation",node,opts);},exports.assertExportAllDeclaration=function(node,opts){assert("ExportAllDeclaration",node,opts);},exports.assertExportDeclaration=function(node,opts){assert("ExportDeclaration",node,opts);},exports.assertExportDefaultDeclaration=function(node,opts){assert("ExportDefaultDeclaration",node,opts);},exports.assertExportDefaultSpecifier=function(node,opts){assert("ExportDefaultSpecifier",node,opts);},exports.assertExportNamedDeclaration=function(node,opts){assert("ExportNamedDeclaration",node,opts);},exports.assertExportNamespaceSpecifier=function(node,opts){assert("ExportNamespaceSpecifier",node,opts);},exports.assertExportSpecifier=function(node,opts){assert("ExportSpecifier",node,opts);},exports.assertExpression=function(node,opts){assert("Expression",node,opts);},exports.assertExpressionStatement=function(node,opts){assert("ExpressionStatement",node,opts);},exports.assertExpressionWrapper=function(node,opts){assert("ExpressionWrapper",node,opts);},exports.assertFile=function(node,opts){assert("File",node,opts);},exports.assertFlow=function(node,opts){assert("Flow",node,opts);},exports.assertFlowBaseAnnotation=function(node,opts){assert("FlowBaseAnnotation",node,opts);},exports.assertFlowDeclaration=function(node,opts){assert("FlowDeclaration",node,opts);},exports.assertFlowPredicate=function(node,opts){assert("FlowPredicate",node,opts);},exports.assertFlowType=function(node,opts){assert("FlowType",node,opts);},exports.assertFor=function(node,opts){assert("For",node,opts);},exports.assertForInStatement=function(node,opts){assert("ForInStatement",node,opts);},exports.assertForOfStatement=function(node,opts){assert("ForOfStatement",node,opts);},exports.assertForStatement=function(node,opts){assert("ForStatement",node,opts);},exports.assertForXStatement=function(node,opts){assert("ForXStatement",node,opts);},exports.assertFunction=function(node,opts){assert("Function",node,opts);},exports.assertFunctionDeclaration=function(node,opts){assert("FunctionDeclaration",node,opts);},exports.assertFunctionExpression=function(node,opts){assert("FunctionExpression",node,opts);},exports.assertFunctionParent=function(node,opts){assert("FunctionParent",node,opts);},exports.assertFunctionTypeAnnotation=function(node,opts){assert("FunctionTypeAnnotation",node,opts);},exports.assertFunctionTypeParam=function(node,opts){assert("FunctionTypeParam",node,opts);},exports.assertGenericTypeAnnotation=function(node,opts){assert("GenericTypeAnnotation",node,opts);},exports.assertIdentifier=function(node,opts){assert("Identifier",node,opts);},exports.assertIfStatement=function(node,opts){assert("IfStatement",node,opts);},exports.assertImmutable=function(node,opts){assert("Immutable",node,opts);},exports.assertImport=function(node,opts){assert("Import",node,opts);},exports.assertImportAttribute=function(node,opts){assert("ImportAttribute",node,opts);},exports.assertImportDeclaration=function(node,opts){assert("ImportDeclaration",node,opts);},exports.assertImportDefaultSpecifier=function(node,opts){assert("ImportDefaultSpecifier",node,opts);},exports.assertImportNamespaceSpecifier=function(node,opts){assert("ImportNamespaceSpecifier",node,opts);},exports.assertImportSpecifier=function(node,opts){assert("ImportSpecifier",node,opts);},exports.assertIndexedAccessType=function(node,opts){assert("IndexedAccessType",node,opts);},exports.assertInferredPredicate=function(node,opts){assert("InferredPredicate",node,opts);},exports.assertInterfaceDeclaration=function(node,opts){assert("InterfaceDeclaration",node,opts);},exports.assertInterfaceExtends=function(node,opts){assert("InterfaceExtends",node,opts);},exports.assertInterfaceTypeAnnotation=function(node,opts){assert("InterfaceTypeAnnotation",node,opts);},exports.assertInterpreterDirective=function(node,opts){assert("InterpreterDirective",node,opts);},exports.assertIntersectionTypeAnnotation=function(node,opts){assert("IntersectionTypeAnnotation",node,opts);},exports.assertJSX=function(node,opts){assert("JSX",node,opts);},exports.assertJSXAttribute=function(node,opts){assert("JSXAttribute",node,opts);},exports.assertJSXClosingElement=function(node,opts){assert("JSXClosingElement",node,opts);},exports.assertJSXClosingFragment=function(node,opts){assert("JSXClosingFragment",node,opts);},exports.assertJSXElement=function(node,opts){assert("JSXElement",node,opts);},exports.assertJSXEmptyExpression=function(node,opts){assert("JSXEmptyExpression",node,opts);},exports.assertJSXExpressionContainer=function(node,opts){assert("JSXExpressionContainer",node,opts);},exports.assertJSXFragment=function(node,opts){assert("JSXFragment",node,opts);},exports.assertJSXIdentifier=function(node,opts){assert("JSXIdentifier",node,opts);},exports.assertJSXMemberExpression=function(node,opts){assert("JSXMemberExpression",node,opts);},exports.assertJSXNamespacedName=function(node,opts){assert("JSXNamespacedName",node,opts);},exports.assertJSXOpeningElement=function(node,opts){assert("JSXOpeningElement",node,opts);},exports.assertJSXOpeningFragment=function(node,opts){assert("JSXOpeningFragment",node,opts);},exports.assertJSXSpreadAttribute=function(node,opts){assert("JSXSpreadAttribute",node,opts);},exports.assertJSXSpreadChild=function(node,opts){assert("JSXSpreadChild",node,opts);},exports.assertJSXText=function(node,opts){assert("JSXText",node,opts);},exports.assertLVal=function(node,opts){assert("LVal",node,opts);},exports.assertLabeledStatement=function(node,opts){assert("LabeledStatement",node,opts);},exports.assertLiteral=function(node,opts){assert("Literal",node,opts);},exports.assertLogicalExpression=function(node,opts){assert("LogicalExpression",node,opts);},exports.assertLoop=function(node,opts){assert("Loop",node,opts);},exports.assertMemberExpression=function(node,opts){assert("MemberExpression",node,opts);},exports.assertMetaProperty=function(node,opts){assert("MetaProperty",node,opts);},exports.assertMethod=function(node,opts){assert("Method",node,opts);},exports.assertMiscellaneous=function(node,opts){assert("Miscellaneous",node,opts);},exports.assertMixedTypeAnnotation=function(node,opts){assert("MixedTypeAnnotation",node,opts);},exports.assertModuleDeclaration=function(node,opts){assert("ModuleDeclaration",node,opts);},exports.assertModuleExpression=function(node,opts){assert("ModuleExpression",node,opts);},exports.assertModuleSpecifier=function(node,opts){assert("ModuleSpecifier",node,opts);},exports.assertNewExpression=function(node,opts){assert("NewExpression",node,opts);},exports.assertNoop=function(node,opts){assert("Noop",node,opts);},exports.assertNullLiteral=function(node,opts){assert("NullLiteral",node,opts);},exports.assertNullLiteralTypeAnnotation=function(node,opts){assert("NullLiteralTypeAnnotation",node,opts);},exports.assertNullableTypeAnnotation=function(node,opts){assert("NullableTypeAnnotation",node,opts);},exports.assertNumberLiteral=function(node,opts){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),assert("NumberLiteral",node,opts);},exports.assertNumberLiteralTypeAnnotation=function(node,opts){assert("NumberLiteralTypeAnnotation",node,opts);},exports.assertNumberTypeAnnotation=function(node,opts){assert("NumberTypeAnnotation",node,opts);},exports.assertNumericLiteral=function(node,opts){assert("NumericLiteral",node,opts);},exports.assertObjectExpression=function(node,opts){assert("ObjectExpression",node,opts);},exports.assertObjectMember=function(node,opts){assert("ObjectMember",node,opts);},exports.assertObjectMethod=function(node,opts){assert("ObjectMethod",node,opts);},exports.assertObjectPattern=function(node,opts){assert("ObjectPattern",node,opts);},exports.assertObjectProperty=function(node,opts){assert("ObjectProperty",node,opts);},exports.assertObjectTypeAnnotation=function(node,opts){assert("ObjectTypeAnnotation",node,opts);},exports.assertObjectTypeCallProperty=function(node,opts){assert("ObjectTypeCallProperty",node,opts);},exports.assertObjectTypeIndexer=function(node,opts){assert("ObjectTypeIndexer",node,opts);},exports.assertObjectTypeInternalSlot=function(node,opts){assert("ObjectTypeInternalSlot",node,opts);},exports.assertObjectTypeProperty=function(node,opts){assert("ObjectTypeProperty",node,opts);},exports.assertObjectTypeSpreadProperty=function(node,opts){assert("ObjectTypeSpreadProperty",node,opts);},exports.assertOpaqueType=function(node,opts){assert("OpaqueType",node,opts);},exports.assertOptionalCallExpression=function(node,opts){assert("OptionalCallExpression",node,opts);},exports.assertOptionalIndexedAccessType=function(node,opts){assert("OptionalIndexedAccessType",node,opts);},exports.assertOptionalMemberExpression=function(node,opts){assert("OptionalMemberExpression",node,opts);},exports.assertParenthesizedExpression=function(node,opts){assert("ParenthesizedExpression",node,opts);},exports.assertPattern=function(node,opts){assert("Pattern",node,opts);},exports.assertPatternLike=function(node,opts){assert("PatternLike",node,opts);},exports.assertPipelineBareFunction=function(node,opts){assert("PipelineBareFunction",node,opts);},exports.assertPipelinePrimaryTopicReference=function(node,opts){assert("PipelinePrimaryTopicReference",node,opts);},exports.assertPipelineTopicExpression=function(node,opts){assert("PipelineTopicExpression",node,opts);},exports.assertPlaceholder=function(node,opts){assert("Placeholder",node,opts);},exports.assertPrivate=function(node,opts){assert("Private",node,opts);},exports.assertPrivateName=function(node,opts){assert("PrivateName",node,opts);},exports.assertProgram=function(node,opts){assert("Program",node,opts);},exports.assertProperty=function(node,opts){assert("Property",node,opts);},exports.assertPureish=function(node,opts){assert("Pureish",node,opts);},exports.assertQualifiedTypeIdentifier=function(node,opts){assert("QualifiedTypeIdentifier",node,opts);},exports.assertRecordExpression=function(node,opts){assert("RecordExpression",node,opts);},exports.assertRegExpLiteral=function(node,opts){assert("RegExpLiteral",node,opts);},exports.assertRegexLiteral=function(node,opts){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),assert("RegexLiteral",node,opts);},exports.assertRestElement=function(node,opts){assert("RestElement",node,opts);},exports.assertRestProperty=function(node,opts){console.trace("The node type RestProperty has been renamed to RestElement"),assert("RestProperty",node,opts);},exports.assertReturnStatement=function(node,opts){assert("ReturnStatement",node,opts);},exports.assertScopable=function(node,opts){assert("Scopable",node,opts);},exports.assertSequenceExpression=function(node,opts){assert("SequenceExpression",node,opts);},exports.assertSpreadElement=function(node,opts){assert("SpreadElement",node,opts);},exports.assertSpreadProperty=function(node,opts){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),assert("SpreadProperty",node,opts);},exports.assertStandardized=function(node,opts){assert("Standardized",node,opts);},exports.assertStatement=function(node,opts){assert("Statement",node,opts);},exports.assertStaticBlock=function(node,opts){assert("StaticBlock",node,opts);},exports.assertStringLiteral=function(node,opts){assert("StringLiteral",node,opts);},exports.assertStringLiteralTypeAnnotation=function(node,opts){assert("StringLiteralTypeAnnotation",node,opts);},exports.assertStringTypeAnnotation=function(node,opts){assert("StringTypeAnnotation",node,opts);},exports.assertSuper=function(node,opts){assert("Super",node,opts);},exports.assertSwitchCase=function(node,opts){assert("SwitchCase",node,opts);},exports.assertSwitchStatement=function(node,opts){assert("SwitchStatement",node,opts);},exports.assertSymbolTypeAnnotation=function(node,opts){assert("SymbolTypeAnnotation",node,opts);},exports.assertTSAnyKeyword=function(node,opts){assert("TSAnyKeyword",node,opts);},exports.assertTSArrayType=function(node,opts){assert("TSArrayType",node,opts);},exports.assertTSAsExpression=function(node,opts){assert("TSAsExpression",node,opts);},exports.assertTSBaseType=function(node,opts){assert("TSBaseType",node,opts);},exports.assertTSBigIntKeyword=function(node,opts){assert("TSBigIntKeyword",node,opts);},exports.assertTSBooleanKeyword=function(node,opts){assert("TSBooleanKeyword",node,opts);},exports.assertTSCallSignatureDeclaration=function(node,opts){assert("TSCallSignatureDeclaration",node,opts);},exports.assertTSConditionalType=function(node,opts){assert("TSConditionalType",node,opts);},exports.assertTSConstructSignatureDeclaration=function(node,opts){assert("TSConstructSignatureDeclaration",node,opts);},exports.assertTSConstructorType=function(node,opts){assert("TSConstructorType",node,opts);},exports.assertTSDeclareFunction=function(node,opts){assert("TSDeclareFunction",node,opts);},exports.assertTSDeclareMethod=function(node,opts){assert("TSDeclareMethod",node,opts);},exports.assertTSEntityName=function(node,opts){assert("TSEntityName",node,opts);},exports.assertTSEnumDeclaration=function(node,opts){assert("TSEnumDeclaration",node,opts);},exports.assertTSEnumMember=function(node,opts){assert("TSEnumMember",node,opts);},exports.assertTSExportAssignment=function(node,opts){assert("TSExportAssignment",node,opts);},exports.assertTSExpressionWithTypeArguments=function(node,opts){assert("TSExpressionWithTypeArguments",node,opts);},exports.assertTSExternalModuleReference=function(node,opts){assert("TSExternalModuleReference",node,opts);},exports.assertTSFunctionType=function(node,opts){assert("TSFunctionType",node,opts);},exports.assertTSImportEqualsDeclaration=function(node,opts){assert("TSImportEqualsDeclaration",node,opts);},exports.assertTSImportType=function(node,opts){assert("TSImportType",node,opts);},exports.assertTSIndexSignature=function(node,opts){assert("TSIndexSignature",node,opts);},exports.assertTSIndexedAccessType=function(node,opts){assert("TSIndexedAccessType",node,opts);},exports.assertTSInferType=function(node,opts){assert("TSInferType",node,opts);},exports.assertTSInstantiationExpression=function(node,opts){assert("TSInstantiationExpression",node,opts);},exports.assertTSInterfaceBody=function(node,opts){assert("TSInterfaceBody",node,opts);},exports.assertTSInterfaceDeclaration=function(node,opts){assert("TSInterfaceDeclaration",node,opts);},exports.assertTSIntersectionType=function(node,opts){assert("TSIntersectionType",node,opts);},exports.assertTSIntrinsicKeyword=function(node,opts){assert("TSIntrinsicKeyword",node,opts);},exports.assertTSLiteralType=function(node,opts){assert("TSLiteralType",node,opts);},exports.assertTSMappedType=function(node,opts){assert("TSMappedType",node,opts);},exports.assertTSMethodSignature=function(node,opts){assert("TSMethodSignature",node,opts);},exports.assertTSModuleBlock=function(node,opts){assert("TSModuleBlock",node,opts);},exports.assertTSModuleDeclaration=function(node,opts){assert("TSModuleDeclaration",node,opts);},exports.assertTSNamedTupleMember=function(node,opts){assert("TSNamedTupleMember",node,opts);},exports.assertTSNamespaceExportDeclaration=function(node,opts){assert("TSNamespaceExportDeclaration",node,opts);},exports.assertTSNeverKeyword=function(node,opts){assert("TSNeverKeyword",node,opts);},exports.assertTSNonNullExpression=function(node,opts){assert("TSNonNullExpression",node,opts);},exports.assertTSNullKeyword=function(node,opts){assert("TSNullKeyword",node,opts);},exports.assertTSNumberKeyword=function(node,opts){assert("TSNumberKeyword",node,opts);},exports.assertTSObjectKeyword=function(node,opts){assert("TSObjectKeyword",node,opts);},exports.assertTSOptionalType=function(node,opts){assert("TSOptionalType",node,opts);},exports.assertTSParameterProperty=function(node,opts){assert("TSParameterProperty",node,opts);},exports.assertTSParenthesizedType=function(node,opts){assert("TSParenthesizedType",node,opts);},exports.assertTSPropertySignature=function(node,opts){assert("TSPropertySignature",node,opts);},exports.assertTSQualifiedName=function(node,opts){assert("TSQualifiedName",node,opts);},exports.assertTSRestType=function(node,opts){assert("TSRestType",node,opts);},exports.assertTSStringKeyword=function(node,opts){assert("TSStringKeyword",node,opts);},exports.assertTSSymbolKeyword=function(node,opts){assert("TSSymbolKeyword",node,opts);},exports.assertTSThisType=function(node,opts){assert("TSThisType",node,opts);},exports.assertTSTupleType=function(node,opts){assert("TSTupleType",node,opts);},exports.assertTSType=function(node,opts){assert("TSType",node,opts);},exports.assertTSTypeAliasDeclaration=function(node,opts){assert("TSTypeAliasDeclaration",node,opts);},exports.assertTSTypeAnnotation=function(node,opts){assert("TSTypeAnnotation",node,opts);},exports.assertTSTypeAssertion=function(node,opts){assert("TSTypeAssertion",node,opts);},exports.assertTSTypeElement=function(node,opts){assert("TSTypeElement",node,opts);},exports.assertTSTypeLiteral=function(node,opts){assert("TSTypeLiteral",node,opts);},exports.assertTSTypeOperator=function(node,opts){assert("TSTypeOperator",node,opts);},exports.assertTSTypeParameter=function(node,opts){assert("TSTypeParameter",node,opts);},exports.assertTSTypeParameterDeclaration=function(node,opts){assert("TSTypeParameterDeclaration",node,opts);},exports.assertTSTypeParameterInstantiation=function(node,opts){assert("TSTypeParameterInstantiation",node,opts);},exports.assertTSTypePredicate=function(node,opts){assert("TSTypePredicate",node,opts);},exports.assertTSTypeQuery=function(node,opts){assert("TSTypeQuery",node,opts);},exports.assertTSTypeReference=function(node,opts){assert("TSTypeReference",node,opts);},exports.assertTSUndefinedKeyword=function(node,opts){assert("TSUndefinedKeyword",node,opts);},exports.assertTSUnionType=function(node,opts){assert("TSUnionType",node,opts);},exports.assertTSUnknownKeyword=function(node,opts){assert("TSUnknownKeyword",node,opts);},exports.assertTSVoidKeyword=function(node,opts){assert("TSVoidKeyword",node,opts);},exports.assertTaggedTemplateExpression=function(node,opts){assert("TaggedTemplateExpression",node,opts);},exports.assertTemplateElement=function(node,opts){assert("TemplateElement",node,opts);},exports.assertTemplateLiteral=function(node,opts){assert("TemplateLiteral",node,opts);},exports.assertTerminatorless=function(node,opts){assert("Terminatorless",node,opts);},exports.assertThisExpression=function(node,opts){assert("ThisExpression",node,opts);},exports.assertThisTypeAnnotation=function(node,opts){assert("ThisTypeAnnotation",node,opts);},exports.assertThrowStatement=function(node,opts){assert("ThrowStatement",node,opts);},exports.assertTopicReference=function(node,opts){assert("TopicReference",node,opts);},exports.assertTryStatement=function(node,opts){assert("TryStatement",node,opts);},exports.assertTupleExpression=function(node,opts){assert("TupleExpression",node,opts);},exports.assertTupleTypeAnnotation=function(node,opts){assert("TupleTypeAnnotation",node,opts);},exports.assertTypeAlias=function(node,opts){assert("TypeAlias",node,opts);},exports.assertTypeAnnotation=function(node,opts){assert("TypeAnnotation",node,opts);},exports.assertTypeCastExpression=function(node,opts){assert("TypeCastExpression",node,opts);},exports.assertTypeParameter=function(node,opts){assert("TypeParameter",node,opts);},exports.assertTypeParameterDeclaration=function(node,opts){assert("TypeParameterDeclaration",node,opts);},exports.assertTypeParameterInstantiation=function(node,opts){assert("TypeParameterInstantiation",node,opts);},exports.assertTypeScript=function(node,opts){assert("TypeScript",node,opts);},exports.assertTypeofTypeAnnotation=function(node,opts){assert("TypeofTypeAnnotation",node,opts);},exports.assertUnaryExpression=function(node,opts){assert("UnaryExpression",node,opts);},exports.assertUnaryLike=function(node,opts){assert("UnaryLike",node,opts);},exports.assertUnionTypeAnnotation=function(node,opts){assert("UnionTypeAnnotation",node,opts);},exports.assertUpdateExpression=function(node,opts){assert("UpdateExpression",node,opts);},exports.assertUserWhitespacable=function(node,opts){assert("UserWhitespacable",node,opts);},exports.assertV8IntrinsicIdentifier=function(node,opts){assert("V8IntrinsicIdentifier",node,opts);},exports.assertVariableDeclaration=function(node,opts){assert("VariableDeclaration",node,opts);},exports.assertVariableDeclarator=function(node,opts){assert("VariableDeclarator",node,opts);},exports.assertVariance=function(node,opts){assert("Variance",node,opts);},exports.assertVoidTypeAnnotation=function(node,opts){assert("VoidTypeAnnotation",node,opts);},exports.assertWhile=function(node,opts){assert("While",node,opts);},exports.assertWhileStatement=function(node,opts){assert("WhileStatement",node,opts);},exports.assertWithStatement=function(node,opts){assert("WithStatement",node,opts);},exports.assertYieldExpression=function(node,opts){assert("YieldExpression",node,opts);};var _is=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/is.js");function assert(type,node,opts){if(!(0, _is.default)(type,node,opts))throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, but instead got "${node.type}".`)}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/ast-types/generated/index.js":()=>{},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(types){const flattened=(0, _removeTypeDuplicates.default)(types);return 1===flattened.length?flattened[0]:(0, _generated.unionTypeAnnotation)(flattened)};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_removeTypeDuplicates=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_default=function(type){switch(type){case"string":return (0, _generated.stringTypeAnnotation)();case"number":return (0, _generated.numberTypeAnnotation)();case"undefined":return (0, _generated.voidTypeAnnotation)();case"boolean":return (0, _generated.booleanTypeAnnotation)();case"function":return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function"));case"object":return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object"));case"symbol":return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol"));case"bigint":return (0, _generated.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+type)};exports.default=_default;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.anyTypeAnnotation=function(){return {type:"AnyTypeAnnotation"}},exports.argumentPlaceholder=function(){return {type:"ArgumentPlaceholder"}},exports.arrayExpression=function(elements=[]){return (0, _validateNode.default)({type:"ArrayExpression",elements})},exports.arrayPattern=function(elements){return (0, _validateNode.default)({type:"ArrayPattern",elements})},exports.arrayTypeAnnotation=function(elementType){return (0, _validateNode.default)({type:"ArrayTypeAnnotation",elementType})},exports.arrowFunctionExpression=function(params,body,async=!1){return (0, _validateNode.default)({type:"ArrowFunctionExpression",params,body,async,expression:null})},exports.assignmentExpression=function(operator,left,right){return (0, _validateNode.default)({type:"AssignmentExpression",operator,left,right})},exports.assignmentPattern=function(left,right){return (0, _validateNode.default)({type:"AssignmentPattern",left,right})},exports.awaitExpression=function(argument){return (0, _validateNode.default)({type:"AwaitExpression",argument})},exports.bigIntLiteral=function(value){return (0, _validateNode.default)({type:"BigIntLiteral",value})},exports.binaryExpression=function(operator,left,right){return (0, _validateNode.default)({type:"BinaryExpression",operator,left,right})},exports.bindExpression=function(object,callee){return (0, _validateNode.default)({type:"BindExpression",object,callee})},exports.blockStatement=function(body,directives=[]){return (0, _validateNode.default)({type:"BlockStatement",body,directives})},exports.booleanLiteral=function(value){return (0, _validateNode.default)({type:"BooleanLiteral",value})},exports.booleanLiteralTypeAnnotation=function(value){return (0, _validateNode.default)({type:"BooleanLiteralTypeAnnotation",value})},exports.booleanTypeAnnotation=function(){return {type:"BooleanTypeAnnotation"}},exports.breakStatement=function(label=null){return (0, _validateNode.default)({type:"BreakStatement",label})},exports.callExpression=function(callee,_arguments){return (0, _validateNode.default)({type:"CallExpression",callee,arguments:_arguments})},exports.catchClause=function(param=null,body){return (0, _validateNode.default)({type:"CatchClause",param,body})},exports.classAccessorProperty=function(key,value=null,typeAnnotation=null,decorators=null,computed=!1,_static=!1){return (0, _validateNode.default)({type:"ClassAccessorProperty",key,value,typeAnnotation,decorators,computed,static:_static})},exports.classBody=function(body){return (0, _validateNode.default)({type:"ClassBody",body})},exports.classDeclaration=function(id,superClass=null,body,decorators=null){return (0, _validateNode.default)({type:"ClassDeclaration",id,superClass,body,decorators})},exports.classExpression=function(id=null,superClass=null,body,decorators=null){return (0, _validateNode.default)({type:"ClassExpression",id,superClass,body,decorators})},exports.classImplements=function(id,typeParameters=null){return (0, _validateNode.default)({type:"ClassImplements",id,typeParameters})},exports.classMethod=function(kind="method",key,params,body,computed=!1,_static=!1,generator=!1,async=!1){return (0, _validateNode.default)({type:"ClassMethod",kind,key,params,body,computed,static:_static,generator,async})},exports.classPrivateMethod=function(kind="method",key,params,body,_static=!1){return (0, _validateNode.default)({type:"ClassPrivateMethod",kind,key,params,body,static:_static})},exports.classPrivateProperty=function(key,value=null,decorators=null,_static=!1){return (0, _validateNode.default)({type:"ClassPrivateProperty",key,value,decorators,static:_static})},exports.classProperty=function(key,value=null,typeAnnotation=null,decorators=null,computed=!1,_static=!1){return (0, _validateNode.default)({type:"ClassProperty",key,value,typeAnnotation,decorators,computed,static:_static})},exports.conditionalExpression=function(test,consequent,alternate){return (0, _validateNode.default)({type:"ConditionalExpression",test,consequent,alternate})},exports.continueStatement=function(label=null){return (0, _validateNode.default)({type:"ContinueStatement",label})},exports.debuggerStatement=function(){return {type:"DebuggerStatement"}},exports.decimalLiteral=function(value){return (0, _validateNode.default)({type:"DecimalLiteral",value})},exports.declareClass=function(id,typeParameters=null,_extends=null,body){return (0, _validateNode.default)({type:"DeclareClass",id,typeParameters,extends:_extends,body})},exports.declareExportAllDeclaration=function(source){return (0, _validateNode.default)({type:"DeclareExportAllDeclaration",source})},exports.declareExportDeclaration=function(declaration=null,specifiers=null,source=null){return (0, _validateNode.default)({type:"DeclareExportDeclaration",declaration,specifiers,source})},exports.declareFunction=function(id){return (0, _validateNode.default)({type:"DeclareFunction",id})},exports.declareInterface=function(id,typeParameters=null,_extends=null,body){return (0, _validateNode.default)({type:"DeclareInterface",id,typeParameters,extends:_extends,body})},exports.declareModule=function(id,body,kind=null){return (0, _validateNode.default)({type:"DeclareModule",id,body,kind})},exports.declareModuleExports=function(typeAnnotation){return (0, _validateNode.default)({type:"DeclareModuleExports",typeAnnotation})},exports.declareOpaqueType=function(id,typeParameters=null,supertype=null){return (0, _validateNode.default)({type:"DeclareOpaqueType",id,typeParameters,supertype})},exports.declareTypeAlias=function(id,typeParameters=null,right){return (0, _validateNode.default)({type:"DeclareTypeAlias",id,typeParameters,right})},exports.declareVariable=function(id){return (0, _validateNode.default)({type:"DeclareVariable",id})},exports.declaredPredicate=function(value){return (0, _validateNode.default)({type:"DeclaredPredicate",value})},exports.decorator=function(expression){return (0, _validateNode.default)({type:"Decorator",expression})},exports.directive=function(value){return (0, _validateNode.default)({type:"Directive",value})},exports.directiveLiteral=function(value){return (0, _validateNode.default)({type:"DirectiveLiteral",value})},exports.doExpression=function(body,async=!1){return (0, _validateNode.default)({type:"DoExpression",body,async})},exports.doWhileStatement=function(test,body){return (0, _validateNode.default)({type:"DoWhileStatement",test,body})},exports.emptyStatement=function(){return {type:"EmptyStatement"}},exports.emptyTypeAnnotation=function(){return {type:"EmptyTypeAnnotation"}},exports.enumBooleanBody=function(members){return (0, _validateNode.default)({type:"EnumBooleanBody",members,explicitType:null,hasUnknownMembers:null})},exports.enumBooleanMember=function(id){return (0, _validateNode.default)({type:"EnumBooleanMember",id,init:null})},exports.enumDeclaration=function(id,body){return (0, _validateNode.default)({type:"EnumDeclaration",id,body})},exports.enumDefaultedMember=function(id){return (0, _validateNode.default)({type:"EnumDefaultedMember",id})},exports.enumNumberBody=function(members){return (0, _validateNode.default)({type:"EnumNumberBody",members,explicitType:null,hasUnknownMembers:null})},exports.enumNumberMember=function(id,init){return (0, _validateNode.default)({type:"EnumNumberMember",id,init})},exports.enumStringBody=function(members){return (0, _validateNode.default)({type:"EnumStringBody",members,explicitType:null,hasUnknownMembers:null})},exports.enumStringMember=function(id,init){return (0, _validateNode.default)({type:"EnumStringMember",id,init})},exports.enumSymbolBody=function(members){return (0, _validateNode.default)({type:"EnumSymbolBody",members,hasUnknownMembers:null})},exports.existsTypeAnnotation=function(){return {type:"ExistsTypeAnnotation"}},exports.exportAllDeclaration=function(source){return (0, _validateNode.default)({type:"ExportAllDeclaration",source})},exports.exportDefaultDeclaration=function(declaration){return (0, _validateNode.default)({type:"ExportDefaultDeclaration",declaration})},exports.exportDefaultSpecifier=function(exported){return (0, _validateNode.default)({type:"ExportDefaultSpecifier",exported})},exports.exportNamedDeclaration=function(declaration=null,specifiers=[],source=null){return (0, _validateNode.default)({type:"ExportNamedDeclaration",declaration,specifiers,source})},exports.exportNamespaceSpecifier=function(exported){return (0, _validateNode.default)({type:"ExportNamespaceSpecifier",exported})},exports.exportSpecifier=function(local,exported){return (0, _validateNode.default)({type:"ExportSpecifier",local,exported})},exports.expressionStatement=function(expression){return (0, _validateNode.default)({type:"ExpressionStatement",expression})},exports.file=function(program,comments=null,tokens=null){return (0, _validateNode.default)({type:"File",program,comments,tokens})},exports.forInStatement=function(left,right,body){return (0, _validateNode.default)({type:"ForInStatement",left,right,body})},exports.forOfStatement=function(left,right,body,_await=!1){return (0, _validateNode.default)({type:"ForOfStatement",left,right,body,await:_await})},exports.forStatement=function(init=null,test=null,update=null,body){return (0, _validateNode.default)({type:"ForStatement",init,test,update,body})},exports.functionDeclaration=function(id=null,params,body,generator=!1,async=!1){return (0, _validateNode.default)({type:"FunctionDeclaration",id,params,body,generator,async})},exports.functionExpression=function(id=null,params,body,generator=!1,async=!1){return (0, _validateNode.default)({type:"FunctionExpression",id,params,body,generator,async})},exports.functionTypeAnnotation=function(typeParameters=null,params,rest=null,returnType){return (0, _validateNode.default)({type:"FunctionTypeAnnotation",typeParameters,params,rest,returnType})},exports.functionTypeParam=function(name=null,typeAnnotation){return (0, _validateNode.default)({type:"FunctionTypeParam",name,typeAnnotation})},exports.genericTypeAnnotation=function(id,typeParameters=null){return (0, _validateNode.default)({type:"GenericTypeAnnotation",id,typeParameters})},exports.identifier=function(name){return (0, _validateNode.default)({type:"Identifier",name})},exports.ifStatement=function(test,consequent,alternate=null){return (0, _validateNode.default)({type:"IfStatement",test,consequent,alternate})},exports.import=function(){return {type:"Import"}},exports.importAttribute=function(key,value){return (0, _validateNode.default)({type:"ImportAttribute",key,value})},exports.importDeclaration=function(specifiers,source){return (0, _validateNode.default)({type:"ImportDeclaration",specifiers,source})},exports.importDefaultSpecifier=function(local){return (0, _validateNode.default)({type:"ImportDefaultSpecifier",local})},exports.importNamespaceSpecifier=function(local){return (0, _validateNode.default)({type:"ImportNamespaceSpecifier",local})},exports.importSpecifier=function(local,imported){return (0, _validateNode.default)({type:"ImportSpecifier",local,imported})},exports.indexedAccessType=function(objectType,indexType){return (0, _validateNode.default)({type:"IndexedAccessType",objectType,indexType})},exports.inferredPredicate=function(){return {type:"InferredPredicate"}},exports.interfaceDeclaration=function(id,typeParameters=null,_extends=null,body){return (0, _validateNode.default)({type:"InterfaceDeclaration",id,typeParameters,extends:_extends,body})},exports.interfaceExtends=function(id,typeParameters=null){return (0, _validateNode.default)({type:"InterfaceExtends",id,typeParameters})},exports.interfaceTypeAnnotation=function(_extends=null,body){return (0, _validateNode.default)({type:"InterfaceTypeAnnotation",extends:_extends,body})},exports.interpreterDirective=function(value){return (0, _validateNode.default)({type:"InterpreterDirective",value})},exports.intersectionTypeAnnotation=function(types){return (0, _validateNode.default)({type:"IntersectionTypeAnnotation",types})},exports.jSXAttribute=exports.jsxAttribute=function(name,value=null){return (0, _validateNode.default)({type:"JSXAttribute",name,value})},exports.jSXClosingElement=exports.jsxClosingElement=function(name){return (0, _validateNode.default)({type:"JSXClosingElement",name})},exports.jSXClosingFragment=exports.jsxClosingFragment=function(){return {type:"JSXClosingFragment"}},exports.jSXElement=exports.jsxElement=function(openingElement,closingElement=null,children,selfClosing=null){return (0, _validateNode.default)({type:"JSXElement",openingElement,closingElement,children,selfClosing})},exports.jSXEmptyExpression=exports.jsxEmptyExpression=function(){return {type:"JSXEmptyExpression"}},exports.jSXExpressionContainer=exports.jsxExpressionContainer=function(expression){return (0, _validateNode.default)({type:"JSXExpressionContainer",expression})},exports.jSXFragment=exports.jsxFragment=function(openingFragment,closingFragment,children){return (0, _validateNode.default)({type:"JSXFragment",openingFragment,closingFragment,children})},exports.jSXIdentifier=exports.jsxIdentifier=function(name){return (0, _validateNode.default)({type:"JSXIdentifier",name})},exports.jSXMemberExpression=exports.jsxMemberExpression=function(object,property){return (0, _validateNode.default)({type:"JSXMemberExpression",object,property})},exports.jSXNamespacedName=exports.jsxNamespacedName=function(namespace,name){return (0, _validateNode.default)({type:"JSXNamespacedName",namespace,name})},exports.jSXOpeningElement=exports.jsxOpeningElement=function(name,attributes,selfClosing=!1){return (0, _validateNode.default)({type:"JSXOpeningElement",name,attributes,selfClosing})},exports.jSXOpeningFragment=exports.jsxOpeningFragment=function(){return {type:"JSXOpeningFragment"}},exports.jSXSpreadAttribute=exports.jsxSpreadAttribute=function(argument){return (0, _validateNode.default)({type:"JSXSpreadAttribute",argument})},exports.jSXSpreadChild=exports.jsxSpreadChild=function(expression){return (0, _validateNode.default)({type:"JSXSpreadChild",expression})},exports.jSXText=exports.jsxText=function(value){return (0, _validateNode.default)({type:"JSXText",value})},exports.labeledStatement=function(label,body){return (0, _validateNode.default)({type:"LabeledStatement",label,body})},exports.logicalExpression=function(operator,left,right){return (0, _validateNode.default)({type:"LogicalExpression",operator,left,right})},exports.memberExpression=function(object,property,computed=!1,optional=null){return (0, _validateNode.default)({type:"MemberExpression",object,property,computed,optional})},exports.metaProperty=function(meta,property){return (0, _validateNode.default)({type:"MetaProperty",meta,property})},exports.mixedTypeAnnotation=function(){return {type:"MixedTypeAnnotation"}},exports.moduleExpression=function(body){return (0, _validateNode.default)({type:"ModuleExpression",body})},exports.newExpression=function(callee,_arguments){return (0, _validateNode.default)({type:"NewExpression",callee,arguments:_arguments})},exports.noop=function(){return {type:"Noop"}},exports.nullLiteral=function(){return {type:"NullLiteral"}},exports.nullLiteralTypeAnnotation=function(){return {type:"NullLiteralTypeAnnotation"}},exports.nullableTypeAnnotation=function(typeAnnotation){return (0, _validateNode.default)({type:"NullableTypeAnnotation",typeAnnotation})},exports.numberLiteral=function(value){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),numericLiteral(value)},exports.numberLiteralTypeAnnotation=function(value){return (0, _validateNode.default)({type:"NumberLiteralTypeAnnotation",value})},exports.numberTypeAnnotation=function(){return {type:"NumberTypeAnnotation"}},exports.numericLiteral=numericLiteral,exports.objectExpression=function(properties){return (0, _validateNode.default)({type:"ObjectExpression",properties})},exports.objectMethod=function(kind="method",key,params,body,computed=!1,generator=!1,async=!1){return (0, _validateNode.default)({type:"ObjectMethod",kind,key,params,body,computed,generator,async})},exports.objectPattern=function(properties){return (0, _validateNode.default)({type:"ObjectPattern",properties})},exports.objectProperty=function(key,value,computed=!1,shorthand=!1,decorators=null){return (0, _validateNode.default)({type:"ObjectProperty",key,value,computed,shorthand,decorators})},exports.objectTypeAnnotation=function(properties,indexers=[],callProperties=[],internalSlots=[],exact=!1){return (0, _validateNode.default)({type:"ObjectTypeAnnotation",properties,indexers,callProperties,internalSlots,exact})},exports.objectTypeCallProperty=function(value){return (0, _validateNode.default)({type:"ObjectTypeCallProperty",value,static:null})},exports.objectTypeIndexer=function(id=null,key,value,variance=null){return (0, _validateNode.default)({type:"ObjectTypeIndexer",id,key,value,variance,static:null})},exports.objectTypeInternalSlot=function(id,value,optional,_static,method){return (0, _validateNode.default)({type:"ObjectTypeInternalSlot",id,value,optional,static:_static,method})},exports.objectTypeProperty=function(key,value,variance=null){return (0, _validateNode.default)({type:"ObjectTypeProperty",key,value,variance,kind:null,method:null,optional:null,proto:null,static:null})},exports.objectTypeSpreadProperty=function(argument){return (0, _validateNode.default)({type:"ObjectTypeSpreadProperty",argument})},exports.opaqueType=function(id,typeParameters=null,supertype=null,impltype){return (0, _validateNode.default)({type:"OpaqueType",id,typeParameters,supertype,impltype})},exports.optionalCallExpression=function(callee,_arguments,optional){return (0, _validateNode.default)({type:"OptionalCallExpression",callee,arguments:_arguments,optional})},exports.optionalIndexedAccessType=function(objectType,indexType){return (0, _validateNode.default)({type:"OptionalIndexedAccessType",objectType,indexType,optional:null})},exports.optionalMemberExpression=function(object,property,computed=!1,optional){return (0, _validateNode.default)({type:"OptionalMemberExpression",object,property,computed,optional})},exports.parenthesizedExpression=function(expression){return (0, _validateNode.default)({type:"ParenthesizedExpression",expression})},exports.pipelineBareFunction=function(callee){return (0, _validateNode.default)({type:"PipelineBareFunction",callee})},exports.pipelinePrimaryTopicReference=function(){return {type:"PipelinePrimaryTopicReference"}},exports.pipelineTopicExpression=function(expression){return (0, _validateNode.default)({type:"PipelineTopicExpression",expression})},exports.placeholder=function(expectedNode,name){return (0, _validateNode.default)({type:"Placeholder",expectedNode,name})},exports.privateName=function(id){return (0, _validateNode.default)({type:"PrivateName",id})},exports.program=function(body,directives=[],sourceType="script",interpreter=null){return (0, _validateNode.default)({type:"Program",body,directives,sourceType,interpreter,sourceFile:null})},exports.qualifiedTypeIdentifier=function(id,qualification){return (0, _validateNode.default)({type:"QualifiedTypeIdentifier",id,qualification})},exports.recordExpression=function(properties){return (0, _validateNode.default)({type:"RecordExpression",properties})},exports.regExpLiteral=regExpLiteral,exports.regexLiteral=function(pattern,flags=""){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),regExpLiteral(pattern,flags)},exports.restElement=restElement,exports.restProperty=function(argument){return console.trace("The node type RestProperty has been renamed to RestElement"),restElement(argument)},exports.returnStatement=function(argument=null){return (0, _validateNode.default)({type:"ReturnStatement",argument})},exports.sequenceExpression=function(expressions){return (0, _validateNode.default)({type:"SequenceExpression",expressions})},exports.spreadElement=spreadElement,exports.spreadProperty=function(argument){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),spreadElement(argument)},exports.staticBlock=function(body){return (0, _validateNode.default)({type:"StaticBlock",body})},exports.stringLiteral=function(value){return (0, _validateNode.default)({type:"StringLiteral",value})},exports.stringLiteralTypeAnnotation=function(value){return (0, _validateNode.default)({type:"StringLiteralTypeAnnotation",value})},exports.stringTypeAnnotation=function(){return {type:"StringTypeAnnotation"}},exports.super=function(){return {type:"Super"}},exports.switchCase=function(test=null,consequent){return (0, _validateNode.default)({type:"SwitchCase",test,consequent})},exports.switchStatement=function(discriminant,cases){return (0, _validateNode.default)({type:"SwitchStatement",discriminant,cases})},exports.symbolTypeAnnotation=function(){return {type:"SymbolTypeAnnotation"}},exports.taggedTemplateExpression=function(tag,quasi){return (0, _validateNode.default)({type:"TaggedTemplateExpression",tag,quasi})},exports.templateElement=function(value,tail=!1){return (0, _validateNode.default)({type:"TemplateElement",value,tail})},exports.templateLiteral=function(quasis,expressions){return (0, _validateNode.default)({type:"TemplateLiteral",quasis,expressions})},exports.thisExpression=function(){return {type:"ThisExpression"}},exports.thisTypeAnnotation=function(){return {type:"ThisTypeAnnotation"}},exports.throwStatement=function(argument){return (0, _validateNode.default)({type:"ThrowStatement",argument})},exports.topicReference=function(){return {type:"TopicReference"}},exports.tryStatement=function(block,handler=null,finalizer=null){return (0, _validateNode.default)({type:"TryStatement",block,handler,finalizer})},exports.tSAnyKeyword=exports.tsAnyKeyword=function(){return {type:"TSAnyKeyword"}},exports.tSArrayType=exports.tsArrayType=function(elementType){return (0, _validateNode.default)({type:"TSArrayType",elementType})},exports.tSAsExpression=exports.tsAsExpression=function(expression,typeAnnotation){return (0, _validateNode.default)({type:"TSAsExpression",expression,typeAnnotation})},exports.tSBigIntKeyword=exports.tsBigIntKeyword=function(){return {type:"TSBigIntKeyword"}},exports.tSBooleanKeyword=exports.tsBooleanKeyword=function(){return {type:"TSBooleanKeyword"}},exports.tSCallSignatureDeclaration=exports.tsCallSignatureDeclaration=function(typeParameters=null,parameters,typeAnnotation=null){return (0, _validateNode.default)({type:"TSCallSignatureDeclaration",typeParameters,parameters,typeAnnotation})},exports.tSConditionalType=exports.tsConditionalType=function(checkType,extendsType,trueType,falseType){return (0, _validateNode.default)({type:"TSConditionalType",checkType,extendsType,trueType,falseType})},exports.tSConstructSignatureDeclaration=exports.tsConstructSignatureDeclaration=function(typeParameters=null,parameters,typeAnnotation=null){return (0, _validateNode.default)({type:"TSConstructSignatureDeclaration",typeParameters,parameters,typeAnnotation})},exports.tSConstructorType=exports.tsConstructorType=function(typeParameters=null,parameters,typeAnnotation=null){return (0, _validateNode.default)({type:"TSConstructorType",typeParameters,parameters,typeAnnotation})},exports.tSDeclareFunction=exports.tsDeclareFunction=function(id=null,typeParameters=null,params,returnType=null){return (0, _validateNode.default)({type:"TSDeclareFunction",id,typeParameters,params,returnType})},exports.tSDeclareMethod=exports.tsDeclareMethod=function(decorators=null,key,typeParameters=null,params,returnType=null){return (0, _validateNode.default)({type:"TSDeclareMethod",decorators,key,typeParameters,params,returnType})},exports.tSEnumDeclaration=exports.tsEnumDeclaration=function(id,members){return (0, _validateNode.default)({type:"TSEnumDeclaration",id,members})},exports.tSEnumMember=exports.tsEnumMember=function(id,initializer=null){return (0, _validateNode.default)({type:"TSEnumMember",id,initializer})},exports.tSExportAssignment=exports.tsExportAssignment=function(expression){return (0, _validateNode.default)({type:"TSExportAssignment",expression})},exports.tSExpressionWithTypeArguments=exports.tsExpressionWithTypeArguments=function(expression,typeParameters=null){return (0, _validateNode.default)({type:"TSExpressionWithTypeArguments",expression,typeParameters})},exports.tSExternalModuleReference=exports.tsExternalModuleReference=function(expression){return (0, _validateNode.default)({type:"TSExternalModuleReference",expression})},exports.tSFunctionType=exports.tsFunctionType=function(typeParameters=null,parameters,typeAnnotation=null){return (0, _validateNode.default)({type:"TSFunctionType",typeParameters,parameters,typeAnnotation})},exports.tSImportEqualsDeclaration=exports.tsImportEqualsDeclaration=function(id,moduleReference){return (0, _validateNode.default)({type:"TSImportEqualsDeclaration",id,moduleReference,isExport:null})},exports.tSImportType=exports.tsImportType=function(argument,qualifier=null,typeParameters=null){return (0, _validateNode.default)({type:"TSImportType",argument,qualifier,typeParameters})},exports.tSIndexSignature=exports.tsIndexSignature=function(parameters,typeAnnotation=null){return (0, _validateNode.default)({type:"TSIndexSignature",parameters,typeAnnotation})},exports.tSIndexedAccessType=exports.tsIndexedAccessType=function(objectType,indexType){return (0, _validateNode.default)({type:"TSIndexedAccessType",objectType,indexType})},exports.tSInferType=exports.tsInferType=function(typeParameter){return (0, _validateNode.default)({type:"TSInferType",typeParameter})},exports.tSInstantiationExpression=exports.tsInstantiationExpression=function(expression,typeParameters=null){return (0, _validateNode.default)({type:"TSInstantiationExpression",expression,typeParameters})},exports.tSInterfaceBody=exports.tsInterfaceBody=function(body){return (0, _validateNode.default)({type:"TSInterfaceBody",body})},exports.tSInterfaceDeclaration=exports.tsInterfaceDeclaration=function(id,typeParameters=null,_extends=null,body){return (0, _validateNode.default)({type:"TSInterfaceDeclaration",id,typeParameters,extends:_extends,body})},exports.tSIntersectionType=exports.tsIntersectionType=function(types){return (0, _validateNode.default)({type:"TSIntersectionType",types})},exports.tSIntrinsicKeyword=exports.tsIntrinsicKeyword=function(){return {type:"TSIntrinsicKeyword"}},exports.tSLiteralType=exports.tsLiteralType=function(literal){return (0, _validateNode.default)({type:"TSLiteralType",literal})},exports.tSMappedType=exports.tsMappedType=function(typeParameter,typeAnnotation=null,nameType=null){return (0, _validateNode.default)({type:"TSMappedType",typeParameter,typeAnnotation,nameType})},exports.tSMethodSignature=exports.tsMethodSignature=function(key,typeParameters=null,parameters,typeAnnotation=null){return (0, _validateNode.default)({type:"TSMethodSignature",key,typeParameters,parameters,typeAnnotation,kind:null})},exports.tSModuleBlock=exports.tsModuleBlock=function(body){return (0, _validateNode.default)({type:"TSModuleBlock",body})},exports.tSModuleDeclaration=exports.tsModuleDeclaration=function(id,body){return (0, _validateNode.default)({type:"TSModuleDeclaration",id,body})},exports.tSNamedTupleMember=exports.tsNamedTupleMember=function(label,elementType,optional=!1){return (0, _validateNode.default)({type:"TSNamedTupleMember",label,elementType,optional})},exports.tSNamespaceExportDeclaration=exports.tsNamespaceExportDeclaration=function(id){return (0, _validateNode.default)({type:"TSNamespaceExportDeclaration",id})},exports.tSNeverKeyword=exports.tsNeverKeyword=function(){return {type:"TSNeverKeyword"}},exports.tSNonNullExpression=exports.tsNonNullExpression=function(expression){return (0, _validateNode.default)({type:"TSNonNullExpression",expression})},exports.tSNullKeyword=exports.tsNullKeyword=function(){return {type:"TSNullKeyword"}},exports.tSNumberKeyword=exports.tsNumberKeyword=function(){return {type:"TSNumberKeyword"}},exports.tSObjectKeyword=exports.tsObjectKeyword=function(){return {type:"TSObjectKeyword"}},exports.tSOptionalType=exports.tsOptionalType=function(typeAnnotation){return (0, _validateNode.default)({type:"TSOptionalType",typeAnnotation})},exports.tSParameterProperty=exports.tsParameterProperty=function(parameter){return (0, _validateNode.default)({type:"TSParameterProperty",parameter})},exports.tSParenthesizedType=exports.tsParenthesizedType=function(typeAnnotation){return (0, _validateNode.default)({type:"TSParenthesizedType",typeAnnotation})},exports.tSPropertySignature=exports.tsPropertySignature=function(key,typeAnnotation=null,initializer=null){return (0, _validateNode.default)({type:"TSPropertySignature",key,typeAnnotation,initializer,kind:null})},exports.tSQualifiedName=exports.tsQualifiedName=function(left,right){return (0, _validateNode.default)({type:"TSQualifiedName",left,right})},exports.tSRestType=exports.tsRestType=function(typeAnnotation){return (0, _validateNode.default)({type:"TSRestType",typeAnnotation})},exports.tSStringKeyword=exports.tsStringKeyword=function(){return {type:"TSStringKeyword"}},exports.tSSymbolKeyword=exports.tsSymbolKeyword=function(){return {type:"TSSymbolKeyword"}},exports.tSThisType=exports.tsThisType=function(){return {type:"TSThisType"}},exports.tSTupleType=exports.tsTupleType=function(elementTypes){return (0, _validateNode.default)({type:"TSTupleType",elementTypes})},exports.tSTypeAliasDeclaration=exports.tsTypeAliasDeclaration=function(id,typeParameters=null,typeAnnotation){return (0, _validateNode.default)({type:"TSTypeAliasDeclaration",id,typeParameters,typeAnnotation})},exports.tSTypeAnnotation=exports.tsTypeAnnotation=function(typeAnnotation){return (0, _validateNode.default)({type:"TSTypeAnnotation",typeAnnotation})},exports.tSTypeAssertion=exports.tsTypeAssertion=function(typeAnnotation,expression){return (0, _validateNode.default)({type:"TSTypeAssertion",typeAnnotation,expression})},exports.tSTypeLiteral=exports.tsTypeLiteral=function(members){return (0, _validateNode.default)({type:"TSTypeLiteral",members})},exports.tSTypeOperator=exports.tsTypeOperator=function(typeAnnotation){return (0, _validateNode.default)({type:"TSTypeOperator",typeAnnotation,operator:null})},exports.tSTypeParameter=exports.tsTypeParameter=function(constraint=null,_default=null,name){return (0, _validateNode.default)({type:"TSTypeParameter",constraint,default:_default,name})},exports.tSTypeParameterDeclaration=exports.tsTypeParameterDeclaration=function(params){return (0, _validateNode.default)({type:"TSTypeParameterDeclaration",params})},exports.tSTypeParameterInstantiation=exports.tsTypeParameterInstantiation=function(params){return (0, _validateNode.default)({type:"TSTypeParameterInstantiation",params})},exports.tSTypePredicate=exports.tsTypePredicate=function(parameterName,typeAnnotation=null,asserts=null){return (0, _validateNode.default)({type:"TSTypePredicate",parameterName,typeAnnotation,asserts})},exports.tSTypeQuery=exports.tsTypeQuery=function(exprName,typeParameters=null){return (0, _validateNode.default)({type:"TSTypeQuery",exprName,typeParameters})},exports.tSTypeReference=exports.tsTypeReference=function(typeName,typeParameters=null){return (0, _validateNode.default)({type:"TSTypeReference",typeName,typeParameters})},exports.tSUndefinedKeyword=exports.tsUndefinedKeyword=function(){return {type:"TSUndefinedKeyword"}},exports.tSUnionType=exports.tsUnionType=function(types){return (0, _validateNode.default)({type:"TSUnionType",types})},exports.tSUnknownKeyword=exports.tsUnknownKeyword=function(){return {type:"TSUnknownKeyword"}},exports.tSVoidKeyword=exports.tsVoidKeyword=function(){return {type:"TSVoidKeyword"}},exports.tupleExpression=function(elements=[]){return (0, _validateNode.default)({type:"TupleExpression",elements})},exports.tupleTypeAnnotation=function(types){return (0, _validateNode.default)({type:"TupleTypeAnnotation",types})},exports.typeAlias=function(id,typeParameters=null,right){return (0, _validateNode.default)({type:"TypeAlias",id,typeParameters,right})},exports.typeAnnotation=function(typeAnnotation){return (0, _validateNode.default)({type:"TypeAnnotation",typeAnnotation})},exports.typeCastExpression=function(expression,typeAnnotation){return (0, _validateNode.default)({type:"TypeCastExpression",expression,typeAnnotation})},exports.typeParameter=function(bound=null,_default=null,variance=null){return (0, _validateNode.default)({type:"TypeParameter",bound,default:_default,variance,name:null})},exports.typeParameterDeclaration=function(params){return (0, _validateNode.default)({type:"TypeParameterDeclaration",params})},exports.typeParameterInstantiation=function(params){return (0, _validateNode.default)({type:"TypeParameterInstantiation",params})},exports.typeofTypeAnnotation=function(argument){return (0, _validateNode.default)({type:"TypeofTypeAnnotation",argument})},exports.unaryExpression=function(operator,argument,prefix=!0){return (0, _validateNode.default)({type:"UnaryExpression",operator,argument,prefix})},exports.unionTypeAnnotation=function(types){return (0, _validateNode.default)({type:"UnionTypeAnnotation",types})},exports.updateExpression=function(operator,argument,prefix=!1){return (0, _validateNode.default)({type:"UpdateExpression",operator,argument,prefix})},exports.v8IntrinsicIdentifier=function(name){return (0, _validateNode.default)({type:"V8IntrinsicIdentifier",name})},exports.variableDeclaration=function(kind,declarations){return (0, _validateNode.default)({type:"VariableDeclaration",kind,declarations})},exports.variableDeclarator=function(id,init=null){return (0, _validateNode.default)({type:"VariableDeclarator",id,init})},exports.variance=function(kind){return (0, _validateNode.default)({type:"Variance",kind})},exports.voidTypeAnnotation=function(){return {type:"VoidTypeAnnotation"}},exports.whileStatement=function(test,body){return (0, _validateNode.default)({type:"WhileStatement",test,body})},exports.withStatement=function(object,body){return (0, _validateNode.default)({type:"WithStatement",object,body})},exports.yieldExpression=function(argument=null,delegate=!1){return (0, _validateNode.default)({type:"YieldExpression",argument,delegate})};var _validateNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/validateNode.js");function numericLiteral(value){return (0, _validateNode.default)({type:"NumericLiteral",value})}function regExpLiteral(pattern,flags=""){return (0, _validateNode.default)({type:"RegExpLiteral",pattern,flags})}function restElement(argument){return (0, _validateNode.default)({type:"RestElement",argument})}function spreadElement(argument){return (0, _validateNode.default)({type:"SpreadElement",argument})}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/uppercase.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AnyTypeAnnotation",{enumerable:!0,get:function(){return _index.anyTypeAnnotation}}),Object.defineProperty(exports,"ArgumentPlaceholder",{enumerable:!0,get:function(){return _index.argumentPlaceholder}}),Object.defineProperty(exports,"ArrayExpression",{enumerable:!0,get:function(){return _index.arrayExpression}}),Object.defineProperty(exports,"ArrayPattern",{enumerable:!0,get:function(){return _index.arrayPattern}}),Object.defineProperty(exports,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return _index.arrayTypeAnnotation}}),Object.defineProperty(exports,"ArrowFunctionExpression",{enumerable:!0,get:function(){return _index.arrowFunctionExpression}}),Object.defineProperty(exports,"AssignmentExpression",{enumerable:!0,get:function(){return _index.assignmentExpression}}),Object.defineProperty(exports,"AssignmentPattern",{enumerable:!0,get:function(){return _index.assignmentPattern}}),Object.defineProperty(exports,"AwaitExpression",{enumerable:!0,get:function(){return _index.awaitExpression}}),Object.defineProperty(exports,"BigIntLiteral",{enumerable:!0,get:function(){return _index.bigIntLiteral}}),Object.defineProperty(exports,"BinaryExpression",{enumerable:!0,get:function(){return _index.binaryExpression}}),Object.defineProperty(exports,"BindExpression",{enumerable:!0,get:function(){return _index.bindExpression}}),Object.defineProperty(exports,"BlockStatement",{enumerable:!0,get:function(){return _index.blockStatement}}),Object.defineProperty(exports,"BooleanLiteral",{enumerable:!0,get:function(){return _index.booleanLiteral}}),Object.defineProperty(exports,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.booleanLiteralTypeAnnotation}}),Object.defineProperty(exports,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return _index.booleanTypeAnnotation}}),Object.defineProperty(exports,"BreakStatement",{enumerable:!0,get:function(){return _index.breakStatement}}),Object.defineProperty(exports,"CallExpression",{enumerable:!0,get:function(){return _index.callExpression}}),Object.defineProperty(exports,"CatchClause",{enumerable:!0,get:function(){return _index.catchClause}}),Object.defineProperty(exports,"ClassAccessorProperty",{enumerable:!0,get:function(){return _index.classAccessorProperty}}),Object.defineProperty(exports,"ClassBody",{enumerable:!0,get:function(){return _index.classBody}}),Object.defineProperty(exports,"ClassDeclaration",{enumerable:!0,get:function(){return _index.classDeclaration}}),Object.defineProperty(exports,"ClassExpression",{enumerable:!0,get:function(){return _index.classExpression}}),Object.defineProperty(exports,"ClassImplements",{enumerable:!0,get:function(){return _index.classImplements}}),Object.defineProperty(exports,"ClassMethod",{enumerable:!0,get:function(){return _index.classMethod}}),Object.defineProperty(exports,"ClassPrivateMethod",{enumerable:!0,get:function(){return _index.classPrivateMethod}}),Object.defineProperty(exports,"ClassPrivateProperty",{enumerable:!0,get:function(){return _index.classPrivateProperty}}),Object.defineProperty(exports,"ClassProperty",{enumerable:!0,get:function(){return _index.classProperty}}),Object.defineProperty(exports,"ConditionalExpression",{enumerable:!0,get:function(){return _index.conditionalExpression}}),Object.defineProperty(exports,"ContinueStatement",{enumerable:!0,get:function(){return _index.continueStatement}}),Object.defineProperty(exports,"DebuggerStatement",{enumerable:!0,get:function(){return _index.debuggerStatement}}),Object.defineProperty(exports,"DecimalLiteral",{enumerable:!0,get:function(){return _index.decimalLiteral}}),Object.defineProperty(exports,"DeclareClass",{enumerable:!0,get:function(){return _index.declareClass}}),Object.defineProperty(exports,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return _index.declareExportAllDeclaration}}),Object.defineProperty(exports,"DeclareExportDeclaration",{enumerable:!0,get:function(){return _index.declareExportDeclaration}}),Object.defineProperty(exports,"DeclareFunction",{enumerable:!0,get:function(){return _index.declareFunction}}),Object.defineProperty(exports,"DeclareInterface",{enumerable:!0,get:function(){return _index.declareInterface}}),Object.defineProperty(exports,"DeclareModule",{enumerable:!0,get:function(){return _index.declareModule}}),Object.defineProperty(exports,"DeclareModuleExports",{enumerable:!0,get:function(){return _index.declareModuleExports}}),Object.defineProperty(exports,"DeclareOpaqueType",{enumerable:!0,get:function(){return _index.declareOpaqueType}}),Object.defineProperty(exports,"DeclareTypeAlias",{enumerable:!0,get:function(){return _index.declareTypeAlias}}),Object.defineProperty(exports,"DeclareVariable",{enumerable:!0,get:function(){return _index.declareVariable}}),Object.defineProperty(exports,"DeclaredPredicate",{enumerable:!0,get:function(){return _index.declaredPredicate}}),Object.defineProperty(exports,"Decorator",{enumerable:!0,get:function(){return _index.decorator}}),Object.defineProperty(exports,"Directive",{enumerable:!0,get:function(){return _index.directive}}),Object.defineProperty(exports,"DirectiveLiteral",{enumerable:!0,get:function(){return _index.directiveLiteral}}),Object.defineProperty(exports,"DoExpression",{enumerable:!0,get:function(){return _index.doExpression}}),Object.defineProperty(exports,"DoWhileStatement",{enumerable:!0,get:function(){return _index.doWhileStatement}}),Object.defineProperty(exports,"EmptyStatement",{enumerable:!0,get:function(){return _index.emptyStatement}}),Object.defineProperty(exports,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return _index.emptyTypeAnnotation}}),Object.defineProperty(exports,"EnumBooleanBody",{enumerable:!0,get:function(){return _index.enumBooleanBody}}),Object.defineProperty(exports,"EnumBooleanMember",{enumerable:!0,get:function(){return _index.enumBooleanMember}}),Object.defineProperty(exports,"EnumDeclaration",{enumerable:!0,get:function(){return _index.enumDeclaration}}),Object.defineProperty(exports,"EnumDefaultedMember",{enumerable:!0,get:function(){return _index.enumDefaultedMember}}),Object.defineProperty(exports,"EnumNumberBody",{enumerable:!0,get:function(){return _index.enumNumberBody}}),Object.defineProperty(exports,"EnumNumberMember",{enumerable:!0,get:function(){return _index.enumNumberMember}}),Object.defineProperty(exports,"EnumStringBody",{enumerable:!0,get:function(){return _index.enumStringBody}}),Object.defineProperty(exports,"EnumStringMember",{enumerable:!0,get:function(){return _index.enumStringMember}}),Object.defineProperty(exports,"EnumSymbolBody",{enumerable:!0,get:function(){return _index.enumSymbolBody}}),Object.defineProperty(exports,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return _index.existsTypeAnnotation}}),Object.defineProperty(exports,"ExportAllDeclaration",{enumerable:!0,get:function(){return _index.exportAllDeclaration}}),Object.defineProperty(exports,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return _index.exportDefaultDeclaration}}),Object.defineProperty(exports,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return _index.exportDefaultSpecifier}}),Object.defineProperty(exports,"ExportNamedDeclaration",{enumerable:!0,get:function(){return _index.exportNamedDeclaration}}),Object.defineProperty(exports,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return _index.exportNamespaceSpecifier}}),Object.defineProperty(exports,"ExportSpecifier",{enumerable:!0,get:function(){return _index.exportSpecifier}}),Object.defineProperty(exports,"ExpressionStatement",{enumerable:!0,get:function(){return _index.expressionStatement}}),Object.defineProperty(exports,"File",{enumerable:!0,get:function(){return _index.file}}),Object.defineProperty(exports,"ForInStatement",{enumerable:!0,get:function(){return _index.forInStatement}}),Object.defineProperty(exports,"ForOfStatement",{enumerable:!0,get:function(){return _index.forOfStatement}}),Object.defineProperty(exports,"ForStatement",{enumerable:!0,get:function(){return _index.forStatement}}),Object.defineProperty(exports,"FunctionDeclaration",{enumerable:!0,get:function(){return _index.functionDeclaration}}),Object.defineProperty(exports,"FunctionExpression",{enumerable:!0,get:function(){return _index.functionExpression}}),Object.defineProperty(exports,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return _index.functionTypeAnnotation}}),Object.defineProperty(exports,"FunctionTypeParam",{enumerable:!0,get:function(){return _index.functionTypeParam}}),Object.defineProperty(exports,"GenericTypeAnnotation",{enumerable:!0,get:function(){return _index.genericTypeAnnotation}}),Object.defineProperty(exports,"Identifier",{enumerable:!0,get:function(){return _index.identifier}}),Object.defineProperty(exports,"IfStatement",{enumerable:!0,get:function(){return _index.ifStatement}}),Object.defineProperty(exports,"Import",{enumerable:!0,get:function(){return _index.import}}),Object.defineProperty(exports,"ImportAttribute",{enumerable:!0,get:function(){return _index.importAttribute}}),Object.defineProperty(exports,"ImportDeclaration",{enumerable:!0,get:function(){return _index.importDeclaration}}),Object.defineProperty(exports,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return _index.importDefaultSpecifier}}),Object.defineProperty(exports,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return _index.importNamespaceSpecifier}}),Object.defineProperty(exports,"ImportSpecifier",{enumerable:!0,get:function(){return _index.importSpecifier}}),Object.defineProperty(exports,"IndexedAccessType",{enumerable:!0,get:function(){return _index.indexedAccessType}}),Object.defineProperty(exports,"InferredPredicate",{enumerable:!0,get:function(){return _index.inferredPredicate}}),Object.defineProperty(exports,"InterfaceDeclaration",{enumerable:!0,get:function(){return _index.interfaceDeclaration}}),Object.defineProperty(exports,"InterfaceExtends",{enumerable:!0,get:function(){return _index.interfaceExtends}}),Object.defineProperty(exports,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return _index.interfaceTypeAnnotation}}),Object.defineProperty(exports,"InterpreterDirective",{enumerable:!0,get:function(){return _index.interpreterDirective}}),Object.defineProperty(exports,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return _index.intersectionTypeAnnotation}}),Object.defineProperty(exports,"JSXAttribute",{enumerable:!0,get:function(){return _index.jsxAttribute}}),Object.defineProperty(exports,"JSXClosingElement",{enumerable:!0,get:function(){return _index.jsxClosingElement}}),Object.defineProperty(exports,"JSXClosingFragment",{enumerable:!0,get:function(){return _index.jsxClosingFragment}}),Object.defineProperty(exports,"JSXElement",{enumerable:!0,get:function(){return _index.jsxElement}}),Object.defineProperty(exports,"JSXEmptyExpression",{enumerable:!0,get:function(){return _index.jsxEmptyExpression}}),Object.defineProperty(exports,"JSXExpressionContainer",{enumerable:!0,get:function(){return _index.jsxExpressionContainer}}),Object.defineProperty(exports,"JSXFragment",{enumerable:!0,get:function(){return _index.jsxFragment}}),Object.defineProperty(exports,"JSXIdentifier",{enumerable:!0,get:function(){return _index.jsxIdentifier}}),Object.defineProperty(exports,"JSXMemberExpression",{enumerable:!0,get:function(){return _index.jsxMemberExpression}}),Object.defineProperty(exports,"JSXNamespacedName",{enumerable:!0,get:function(){return _index.jsxNamespacedName}}),Object.defineProperty(exports,"JSXOpeningElement",{enumerable:!0,get:function(){return _index.jsxOpeningElement}}),Object.defineProperty(exports,"JSXOpeningFragment",{enumerable:!0,get:function(){return _index.jsxOpeningFragment}}),Object.defineProperty(exports,"JSXSpreadAttribute",{enumerable:!0,get:function(){return _index.jsxSpreadAttribute}}),Object.defineProperty(exports,"JSXSpreadChild",{enumerable:!0,get:function(){return _index.jsxSpreadChild}}),Object.defineProperty(exports,"JSXText",{enumerable:!0,get:function(){return _index.jsxText}}),Object.defineProperty(exports,"LabeledStatement",{enumerable:!0,get:function(){return _index.labeledStatement}}),Object.defineProperty(exports,"LogicalExpression",{enumerable:!0,get:function(){return _index.logicalExpression}}),Object.defineProperty(exports,"MemberExpression",{enumerable:!0,get:function(){return _index.memberExpression}}),Object.defineProperty(exports,"MetaProperty",{enumerable:!0,get:function(){return _index.metaProperty}}),Object.defineProperty(exports,"MixedTypeAnnotation",{enumerable:!0,get:function(){return _index.mixedTypeAnnotation}}),Object.defineProperty(exports,"ModuleExpression",{enumerable:!0,get:function(){return _index.moduleExpression}}),Object.defineProperty(exports,"NewExpression",{enumerable:!0,get:function(){return _index.newExpression}}),Object.defineProperty(exports,"Noop",{enumerable:!0,get:function(){return _index.noop}}),Object.defineProperty(exports,"NullLiteral",{enumerable:!0,get:function(){return _index.nullLiteral}}),Object.defineProperty(exports,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.nullLiteralTypeAnnotation}}),Object.defineProperty(exports,"NullableTypeAnnotation",{enumerable:!0,get:function(){return _index.nullableTypeAnnotation}}),Object.defineProperty(exports,"NumberLiteral",{enumerable:!0,get:function(){return _index.numberLiteral}}),Object.defineProperty(exports,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.numberLiteralTypeAnnotation}}),Object.defineProperty(exports,"NumberTypeAnnotation",{enumerable:!0,get:function(){return _index.numberTypeAnnotation}}),Object.defineProperty(exports,"NumericLiteral",{enumerable:!0,get:function(){return _index.numericLiteral}}),Object.defineProperty(exports,"ObjectExpression",{enumerable:!0,get:function(){return _index.objectExpression}}),Object.defineProperty(exports,"ObjectMethod",{enumerable:!0,get:function(){return _index.objectMethod}}),Object.defineProperty(exports,"ObjectPattern",{enumerable:!0,get:function(){return _index.objectPattern}}),Object.defineProperty(exports,"ObjectProperty",{enumerable:!0,get:function(){return _index.objectProperty}}),Object.defineProperty(exports,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return _index.objectTypeAnnotation}}),Object.defineProperty(exports,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return _index.objectTypeCallProperty}}),Object.defineProperty(exports,"ObjectTypeIndexer",{enumerable:!0,get:function(){return _index.objectTypeIndexer}}),Object.defineProperty(exports,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return _index.objectTypeInternalSlot}}),Object.defineProperty(exports,"ObjectTypeProperty",{enumerable:!0,get:function(){return _index.objectTypeProperty}}),Object.defineProperty(exports,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return _index.objectTypeSpreadProperty}}),Object.defineProperty(exports,"OpaqueType",{enumerable:!0,get:function(){return _index.opaqueType}}),Object.defineProperty(exports,"OptionalCallExpression",{enumerable:!0,get:function(){return _index.optionalCallExpression}}),Object.defineProperty(exports,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return _index.optionalIndexedAccessType}}),Object.defineProperty(exports,"OptionalMemberExpression",{enumerable:!0,get:function(){return _index.optionalMemberExpression}}),Object.defineProperty(exports,"ParenthesizedExpression",{enumerable:!0,get:function(){return _index.parenthesizedExpression}}),Object.defineProperty(exports,"PipelineBareFunction",{enumerable:!0,get:function(){return _index.pipelineBareFunction}}),Object.defineProperty(exports,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return _index.pipelinePrimaryTopicReference}}),Object.defineProperty(exports,"PipelineTopicExpression",{enumerable:!0,get:function(){return _index.pipelineTopicExpression}}),Object.defineProperty(exports,"Placeholder",{enumerable:!0,get:function(){return _index.placeholder}}),Object.defineProperty(exports,"PrivateName",{enumerable:!0,get:function(){return _index.privateName}}),Object.defineProperty(exports,"Program",{enumerable:!0,get:function(){return _index.program}}),Object.defineProperty(exports,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return _index.qualifiedTypeIdentifier}}),Object.defineProperty(exports,"RecordExpression",{enumerable:!0,get:function(){return _index.recordExpression}}),Object.defineProperty(exports,"RegExpLiteral",{enumerable:!0,get:function(){return _index.regExpLiteral}}),Object.defineProperty(exports,"RegexLiteral",{enumerable:!0,get:function(){return _index.regexLiteral}}),Object.defineProperty(exports,"RestElement",{enumerable:!0,get:function(){return _index.restElement}}),Object.defineProperty(exports,"RestProperty",{enumerable:!0,get:function(){return _index.restProperty}}),Object.defineProperty(exports,"ReturnStatement",{enumerable:!0,get:function(){return _index.returnStatement}}),Object.defineProperty(exports,"SequenceExpression",{enumerable:!0,get:function(){return _index.sequenceExpression}}),Object.defineProperty(exports,"SpreadElement",{enumerable:!0,get:function(){return _index.spreadElement}}),Object.defineProperty(exports,"SpreadProperty",{enumerable:!0,get:function(){return _index.spreadProperty}}),Object.defineProperty(exports,"StaticBlock",{enumerable:!0,get:function(){return _index.staticBlock}}),Object.defineProperty(exports,"StringLiteral",{enumerable:!0,get:function(){return _index.stringLiteral}}),Object.defineProperty(exports,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.stringLiteralTypeAnnotation}}),Object.defineProperty(exports,"StringTypeAnnotation",{enumerable:!0,get:function(){return _index.stringTypeAnnotation}}),Object.defineProperty(exports,"Super",{enumerable:!0,get:function(){return _index.super}}),Object.defineProperty(exports,"SwitchCase",{enumerable:!0,get:function(){return _index.switchCase}}),Object.defineProperty(exports,"SwitchStatement",{enumerable:!0,get:function(){return _index.switchStatement}}),Object.defineProperty(exports,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return _index.symbolTypeAnnotation}}),Object.defineProperty(exports,"TSAnyKeyword",{enumerable:!0,get:function(){return _index.tsAnyKeyword}}),Object.defineProperty(exports,"TSArrayType",{enumerable:!0,get:function(){return _index.tsArrayType}}),Object.defineProperty(exports,"TSAsExpression",{enumerable:!0,get:function(){return _index.tsAsExpression}}),Object.defineProperty(exports,"TSBigIntKeyword",{enumerable:!0,get:function(){return _index.tsBigIntKeyword}}),Object.defineProperty(exports,"TSBooleanKeyword",{enumerable:!0,get:function(){return _index.tsBooleanKeyword}}),Object.defineProperty(exports,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return _index.tsCallSignatureDeclaration}}),Object.defineProperty(exports,"TSConditionalType",{enumerable:!0,get:function(){return _index.tsConditionalType}}),Object.defineProperty(exports,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return _index.tsConstructSignatureDeclaration}}),Object.defineProperty(exports,"TSConstructorType",{enumerable:!0,get:function(){return _index.tsConstructorType}}),Object.defineProperty(exports,"TSDeclareFunction",{enumerable:!0,get:function(){return _index.tsDeclareFunction}}),Object.defineProperty(exports,"TSDeclareMethod",{enumerable:!0,get:function(){return _index.tsDeclareMethod}}),Object.defineProperty(exports,"TSEnumDeclaration",{enumerable:!0,get:function(){return _index.tsEnumDeclaration}}),Object.defineProperty(exports,"TSEnumMember",{enumerable:!0,get:function(){return _index.tsEnumMember}}),Object.defineProperty(exports,"TSExportAssignment",{enumerable:!0,get:function(){return _index.tsExportAssignment}}),Object.defineProperty(exports,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return _index.tsExpressionWithTypeArguments}}),Object.defineProperty(exports,"TSExternalModuleReference",{enumerable:!0,get:function(){return _index.tsExternalModuleReference}}),Object.defineProperty(exports,"TSFunctionType",{enumerable:!0,get:function(){return _index.tsFunctionType}}),Object.defineProperty(exports,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return _index.tsImportEqualsDeclaration}}),Object.defineProperty(exports,"TSImportType",{enumerable:!0,get:function(){return _index.tsImportType}}),Object.defineProperty(exports,"TSIndexSignature",{enumerable:!0,get:function(){return _index.tsIndexSignature}}),Object.defineProperty(exports,"TSIndexedAccessType",{enumerable:!0,get:function(){return _index.tsIndexedAccessType}}),Object.defineProperty(exports,"TSInferType",{enumerable:!0,get:function(){return _index.tsInferType}}),Object.defineProperty(exports,"TSInstantiationExpression",{enumerable:!0,get:function(){return _index.tsInstantiationExpression}}),Object.defineProperty(exports,"TSInterfaceBody",{enumerable:!0,get:function(){return _index.tsInterfaceBody}}),Object.defineProperty(exports,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return _index.tsInterfaceDeclaration}}),Object.defineProperty(exports,"TSIntersectionType",{enumerable:!0,get:function(){return _index.tsIntersectionType}}),Object.defineProperty(exports,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return _index.tsIntrinsicKeyword}}),Object.defineProperty(exports,"TSLiteralType",{enumerable:!0,get:function(){return _index.tsLiteralType}}),Object.defineProperty(exports,"TSMappedType",{enumerable:!0,get:function(){return _index.tsMappedType}}),Object.defineProperty(exports,"TSMethodSignature",{enumerable:!0,get:function(){return _index.tsMethodSignature}}),Object.defineProperty(exports,"TSModuleBlock",{enumerable:!0,get:function(){return _index.tsModuleBlock}}),Object.defineProperty(exports,"TSModuleDeclaration",{enumerable:!0,get:function(){return _index.tsModuleDeclaration}}),Object.defineProperty(exports,"TSNamedTupleMember",{enumerable:!0,get:function(){return _index.tsNamedTupleMember}}),Object.defineProperty(exports,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return _index.tsNamespaceExportDeclaration}}),Object.defineProperty(exports,"TSNeverKeyword",{enumerable:!0,get:function(){return _index.tsNeverKeyword}}),Object.defineProperty(exports,"TSNonNullExpression",{enumerable:!0,get:function(){return _index.tsNonNullExpression}}),Object.defineProperty(exports,"TSNullKeyword",{enumerable:!0,get:function(){return _index.tsNullKeyword}}),Object.defineProperty(exports,"TSNumberKeyword",{enumerable:!0,get:function(){return _index.tsNumberKeyword}}),Object.defineProperty(exports,"TSObjectKeyword",{enumerable:!0,get:function(){return _index.tsObjectKeyword}}),Object.defineProperty(exports,"TSOptionalType",{enumerable:!0,get:function(){return _index.tsOptionalType}}),Object.defineProperty(exports,"TSParameterProperty",{enumerable:!0,get:function(){return _index.tsParameterProperty}}),Object.defineProperty(exports,"TSParenthesizedType",{enumerable:!0,get:function(){return _index.tsParenthesizedType}}),Object.defineProperty(exports,"TSPropertySignature",{enumerable:!0,get:function(){return _index.tsPropertySignature}}),Object.defineProperty(exports,"TSQualifiedName",{enumerable:!0,get:function(){return _index.tsQualifiedName}}),Object.defineProperty(exports,"TSRestType",{enumerable:!0,get:function(){return _index.tsRestType}}),Object.defineProperty(exports,"TSStringKeyword",{enumerable:!0,get:function(){return _index.tsStringKeyword}}),Object.defineProperty(exports,"TSSymbolKeyword",{enumerable:!0,get:function(){return _index.tsSymbolKeyword}}),Object.defineProperty(exports,"TSThisType",{enumerable:!0,get:function(){return _index.tsThisType}}),Object.defineProperty(exports,"TSTupleType",{enumerable:!0,get:function(){return _index.tsTupleType}}),Object.defineProperty(exports,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return _index.tsTypeAliasDeclaration}}),Object.defineProperty(exports,"TSTypeAnnotation",{enumerable:!0,get:function(){return _index.tsTypeAnnotation}}),Object.defineProperty(exports,"TSTypeAssertion",{enumerable:!0,get:function(){return _index.tsTypeAssertion}}),Object.defineProperty(exports,"TSTypeLiteral",{enumerable:!0,get:function(){return _index.tsTypeLiteral}}),Object.defineProperty(exports,"TSTypeOperator",{enumerable:!0,get:function(){return _index.tsTypeOperator}}),Object.defineProperty(exports,"TSTypeParameter",{enumerable:!0,get:function(){return _index.tsTypeParameter}}),Object.defineProperty(exports,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return _index.tsTypeParameterDeclaration}}),Object.defineProperty(exports,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return _index.tsTypeParameterInstantiation}}),Object.defineProperty(exports,"TSTypePredicate",{enumerable:!0,get:function(){return _index.tsTypePredicate}}),Object.defineProperty(exports,"TSTypeQuery",{enumerable:!0,get:function(){return _index.tsTypeQuery}}),Object.defineProperty(exports,"TSTypeReference",{enumerable:!0,get:function(){return _index.tsTypeReference}}),Object.defineProperty(exports,"TSUndefinedKeyword",{enumerable:!0,get:function(){return _index.tsUndefinedKeyword}}),Object.defineProperty(exports,"TSUnionType",{enumerable:!0,get:function(){return _index.tsUnionType}}),Object.defineProperty(exports,"TSUnknownKeyword",{enumerable:!0,get:function(){return _index.tsUnknownKeyword}}),Object.defineProperty(exports,"TSVoidKeyword",{enumerable:!0,get:function(){return _index.tsVoidKeyword}}),Object.defineProperty(exports,"TaggedTemplateExpression",{enumerable:!0,get:function(){return _index.taggedTemplateExpression}}),Object.defineProperty(exports,"TemplateElement",{enumerable:!0,get:function(){return _index.templateElement}}),Object.defineProperty(exports,"TemplateLiteral",{enumerable:!0,get:function(){return _index.templateLiteral}}),Object.defineProperty(exports,"ThisExpression",{enumerable:!0,get:function(){return _index.thisExpression}}),Object.defineProperty(exports,"ThisTypeAnnotation",{enumerable:!0,get:function(){return _index.thisTypeAnnotation}}),Object.defineProperty(exports,"ThrowStatement",{enumerable:!0,get:function(){return _index.throwStatement}}),Object.defineProperty(exports,"TopicReference",{enumerable:!0,get:function(){return _index.topicReference}}),Object.defineProperty(exports,"TryStatement",{enumerable:!0,get:function(){return _index.tryStatement}}),Object.defineProperty(exports,"TupleExpression",{enumerable:!0,get:function(){return _index.tupleExpression}}),Object.defineProperty(exports,"TupleTypeAnnotation",{enumerable:!0,get:function(){return _index.tupleTypeAnnotation}}),Object.defineProperty(exports,"TypeAlias",{enumerable:!0,get:function(){return _index.typeAlias}}),Object.defineProperty(exports,"TypeAnnotation",{enumerable:!0,get:function(){return _index.typeAnnotation}}),Object.defineProperty(exports,"TypeCastExpression",{enumerable:!0,get:function(){return _index.typeCastExpression}}),Object.defineProperty(exports,"TypeParameter",{enumerable:!0,get:function(){return _index.typeParameter}}),Object.defineProperty(exports,"TypeParameterDeclaration",{enumerable:!0,get:function(){return _index.typeParameterDeclaration}}),Object.defineProperty(exports,"TypeParameterInstantiation",{enumerable:!0,get:function(){return _index.typeParameterInstantiation}}),Object.defineProperty(exports,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return _index.typeofTypeAnnotation}}),Object.defineProperty(exports,"UnaryExpression",{enumerable:!0,get:function(){return _index.unaryExpression}}),Object.defineProperty(exports,"UnionTypeAnnotation",{enumerable:!0,get:function(){return _index.unionTypeAnnotation}}),Object.defineProperty(exports,"UpdateExpression",{enumerable:!0,get:function(){return _index.updateExpression}}),Object.defineProperty(exports,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return _index.v8IntrinsicIdentifier}}),Object.defineProperty(exports,"VariableDeclaration",{enumerable:!0,get:function(){return _index.variableDeclaration}}),Object.defineProperty(exports,"VariableDeclarator",{enumerable:!0,get:function(){return _index.variableDeclarator}}),Object.defineProperty(exports,"Variance",{enumerable:!0,get:function(){return _index.variance}}),Object.defineProperty(exports,"VoidTypeAnnotation",{enumerable:!0,get:function(){return _index.voidTypeAnnotation}}),Object.defineProperty(exports,"WhileStatement",{enumerable:!0,get:function(){return _index.whileStatement}}),Object.defineProperty(exports,"WithStatement",{enumerable:!0,get:function(){return _index.withStatement}}),Object.defineProperty(exports,"YieldExpression",{enumerable:!0,get:function(){return _index.yieldExpression}});var _index=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/react/buildChildren.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){const elements=[];for(let i=0;i<node.children.length;i++){let child=node.children[i];(0, _generated.isJSXText)(child)?(0, _cleanJSXElementLiteralChild.default)(child,elements):((0, _generated.isJSXExpressionContainer)(child)&&(child=child.expression),(0, _generated.isJSXEmptyExpression)(child)||elements.push(child));}return elements};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_cleanJSXElementLiteralChild=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(typeAnnotations){const types=typeAnnotations.map((type=>(0, _index.isTSTypeAnnotation)(type)?type.typeAnnotation:type)),flattened=(0, _removeTypeDuplicates.default)(types);return 1===flattened.length?flattened[0]:(0, _generated.tsUnionType)(flattened)};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_removeTypeDuplicates=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js"),_index=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/validateNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){const keys=_.BUILDER_KEYS[node.type];for(const key of keys)(0, _validate.default)(node,key,node[key]);return node};var _validate=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/validate.js"),_=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/clone.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _cloneNode.default)(node,!1)};var _cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneDeep.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _cloneNode.default)(node)};var _cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _cloneNode.default)(node,!0,!0)};var _cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,deep=!0,withoutLoc=!1){return cloneNodeInternal(node,deep,withoutLoc,new Map)};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js"),_generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");const has=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(obj,deep,withoutLoc,commentsCache){return obj&&"string"==typeof obj.type?cloneNodeInternal(obj,deep,withoutLoc,commentsCache):obj}function cloneIfNodeOrArray(obj,deep,withoutLoc,commentsCache){return Array.isArray(obj)?obj.map((node=>cloneIfNode(node,deep,withoutLoc,commentsCache))):cloneIfNode(obj,deep,withoutLoc,commentsCache)}function cloneNodeInternal(node,deep=!0,withoutLoc=!1,commentsCache){if(!node)return node;const{type}=node,newNode={type:node.type};if((0, _generated.isIdentifier)(node))newNode.name=node.name,has(node,"optional")&&"boolean"==typeof node.optional&&(newNode.optional=node.optional),has(node,"typeAnnotation")&&(newNode.typeAnnotation=deep?cloneIfNodeOrArray(node.typeAnnotation,!0,withoutLoc,commentsCache):node.typeAnnotation);else {if(!has(_definitions.NODE_FIELDS,type))throw new Error(`Unknown node type: "${type}"`);for(const field of Object.keys(_definitions.NODE_FIELDS[type]))has(node,field)&&(newNode[field]=deep?(0, _generated.isFile)(node)&&"comments"===field?maybeCloneComments(node.comments,deep,withoutLoc,commentsCache):cloneIfNodeOrArray(node[field],!0,withoutLoc,commentsCache):node[field]);}return has(node,"loc")&&(newNode.loc=withoutLoc?null:node.loc),has(node,"leadingComments")&&(newNode.leadingComments=maybeCloneComments(node.leadingComments,deep,withoutLoc,commentsCache)),has(node,"innerComments")&&(newNode.innerComments=maybeCloneComments(node.innerComments,deep,withoutLoc,commentsCache)),has(node,"trailingComments")&&(newNode.trailingComments=maybeCloneComments(node.trailingComments,deep,withoutLoc,commentsCache)),has(node,"extra")&&(newNode.extra=Object.assign({},node.extra)),newNode}function maybeCloneComments(comments,deep,withoutLoc,commentsCache){return comments&&deep?comments.map((comment=>{const cache=commentsCache.get(comment);if(cache)return cache;const{type,value,loc}=comment,ret={type,value,loc};return withoutLoc&&(ret.loc=null),commentsCache.set(comment,ret),ret})):comments}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _cloneNode.default)(node,!1,!0)};var _cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/addComment.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,type,content,line){return (0, _addComments.default)(node,type,[{type:line?"CommentLine":"CommentBlock",value:content}])};var _addComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/addComments.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/addComments.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,type,comments){if(!comments||!node)return node;const key=`${type}Comments`;node[key]?"leading"===type?node[key]=comments.concat(node[key]):node[key].push(...comments):node[key]=comments;return node};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritInnerComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){(0, _inherit.default)("innerComments",child,parent);};var _inherit=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/inherit.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritLeadingComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){(0, _inherit.default)("leadingComments",child,parent);};var _inherit=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/inherit.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritTrailingComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){(0, _inherit.default)("trailingComments",child,parent);};var _inherit=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/inherit.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritsComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){return (0, _inheritTrailingComments.default)(child,parent),(0, _inheritLeadingComments.default)(child,parent),(0, _inheritInnerComments.default)(child,parent),child};var _inheritTrailingComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"),_inheritLeadingComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"),_inheritInnerComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritInnerComments.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/removeComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return _constants.COMMENT_KEYS.forEach((key=>{node[key]=null;})),node};var _constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.WHILE_TYPES=exports.USERWHITESPACABLE_TYPES=exports.UNARYLIKE_TYPES=exports.TYPESCRIPT_TYPES=exports.TSTYPE_TYPES=exports.TSTYPEELEMENT_TYPES=exports.TSENTITYNAME_TYPES=exports.TSBASETYPE_TYPES=exports.TERMINATORLESS_TYPES=exports.STATEMENT_TYPES=exports.STANDARDIZED_TYPES=exports.SCOPABLE_TYPES=exports.PUREISH_TYPES=exports.PROPERTY_TYPES=exports.PRIVATE_TYPES=exports.PATTERN_TYPES=exports.PATTERNLIKE_TYPES=exports.OBJECTMEMBER_TYPES=exports.MODULESPECIFIER_TYPES=exports.MODULEDECLARATION_TYPES=exports.MISCELLANEOUS_TYPES=exports.METHOD_TYPES=exports.LVAL_TYPES=exports.LOOP_TYPES=exports.LITERAL_TYPES=exports.JSX_TYPES=exports.IMMUTABLE_TYPES=exports.FUNCTION_TYPES=exports.FUNCTIONPARENT_TYPES=exports.FOR_TYPES=exports.FORXSTATEMENT_TYPES=exports.FLOW_TYPES=exports.FLOWTYPE_TYPES=exports.FLOWPREDICATE_TYPES=exports.FLOWDECLARATION_TYPES=exports.FLOWBASEANNOTATION_TYPES=exports.EXPRESSION_TYPES=exports.EXPRESSIONWRAPPER_TYPES=exports.EXPORTDECLARATION_TYPES=exports.ENUMMEMBER_TYPES=exports.ENUMBODY_TYPES=exports.DECLARATION_TYPES=exports.CONDITIONAL_TYPES=exports.COMPLETIONSTATEMENT_TYPES=exports.CLASS_TYPES=exports.BLOCK_TYPES=exports.BLOCKPARENT_TYPES=exports.BINARY_TYPES=exports.ACCESSOR_TYPES=void 0;var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");const STANDARDIZED_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Standardized;exports.STANDARDIZED_TYPES=STANDARDIZED_TYPES;const EXPRESSION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Expression;exports.EXPRESSION_TYPES=EXPRESSION_TYPES;const BINARY_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Binary;exports.BINARY_TYPES=BINARY_TYPES;const SCOPABLE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Scopable;exports.SCOPABLE_TYPES=SCOPABLE_TYPES;const BLOCKPARENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.BlockParent;exports.BLOCKPARENT_TYPES=BLOCKPARENT_TYPES;const BLOCK_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Block;exports.BLOCK_TYPES=BLOCK_TYPES;const STATEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Statement;exports.STATEMENT_TYPES=STATEMENT_TYPES;const TERMINATORLESS_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Terminatorless;exports.TERMINATORLESS_TYPES=TERMINATORLESS_TYPES;const COMPLETIONSTATEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.CompletionStatement;exports.COMPLETIONSTATEMENT_TYPES=COMPLETIONSTATEMENT_TYPES;const CONDITIONAL_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Conditional;exports.CONDITIONAL_TYPES=CONDITIONAL_TYPES;const LOOP_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Loop;exports.LOOP_TYPES=LOOP_TYPES;const WHILE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.While;exports.WHILE_TYPES=WHILE_TYPES;const EXPRESSIONWRAPPER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ExpressionWrapper;exports.EXPRESSIONWRAPPER_TYPES=EXPRESSIONWRAPPER_TYPES;const FOR_TYPES=_definitions.FLIPPED_ALIAS_KEYS.For;exports.FOR_TYPES=FOR_TYPES;const FORXSTATEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ForXStatement;exports.FORXSTATEMENT_TYPES=FORXSTATEMENT_TYPES;const FUNCTION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Function;exports.FUNCTION_TYPES=FUNCTION_TYPES;const FUNCTIONPARENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FunctionParent;exports.FUNCTIONPARENT_TYPES=FUNCTIONPARENT_TYPES;const PUREISH_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Pureish;exports.PUREISH_TYPES=PUREISH_TYPES;const DECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Declaration;exports.DECLARATION_TYPES=DECLARATION_TYPES;const PATTERNLIKE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.PatternLike;exports.PATTERNLIKE_TYPES=PATTERNLIKE_TYPES;const LVAL_TYPES=_definitions.FLIPPED_ALIAS_KEYS.LVal;exports.LVAL_TYPES=LVAL_TYPES;const TSENTITYNAME_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSEntityName;exports.TSENTITYNAME_TYPES=TSENTITYNAME_TYPES;const LITERAL_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Literal;exports.LITERAL_TYPES=LITERAL_TYPES;const IMMUTABLE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Immutable;exports.IMMUTABLE_TYPES=IMMUTABLE_TYPES;const USERWHITESPACABLE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.UserWhitespacable;exports.USERWHITESPACABLE_TYPES=USERWHITESPACABLE_TYPES;const METHOD_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Method;exports.METHOD_TYPES=METHOD_TYPES;const OBJECTMEMBER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ObjectMember;exports.OBJECTMEMBER_TYPES=OBJECTMEMBER_TYPES;const PROPERTY_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Property;exports.PROPERTY_TYPES=PROPERTY_TYPES;const UNARYLIKE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.UnaryLike;exports.UNARYLIKE_TYPES=UNARYLIKE_TYPES;const PATTERN_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Pattern;exports.PATTERN_TYPES=PATTERN_TYPES;const CLASS_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Class;exports.CLASS_TYPES=CLASS_TYPES;const MODULEDECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ModuleDeclaration;exports.MODULEDECLARATION_TYPES=MODULEDECLARATION_TYPES;const EXPORTDECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ExportDeclaration;exports.EXPORTDECLARATION_TYPES=EXPORTDECLARATION_TYPES;const MODULESPECIFIER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ModuleSpecifier;exports.MODULESPECIFIER_TYPES=MODULESPECIFIER_TYPES;const ACCESSOR_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Accessor;exports.ACCESSOR_TYPES=ACCESSOR_TYPES;const PRIVATE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Private;exports.PRIVATE_TYPES=PRIVATE_TYPES;const FLOW_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Flow;exports.FLOW_TYPES=FLOW_TYPES;const FLOWTYPE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowType;exports.FLOWTYPE_TYPES=FLOWTYPE_TYPES;const FLOWBASEANNOTATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;exports.FLOWBASEANNOTATION_TYPES=FLOWBASEANNOTATION_TYPES;const FLOWDECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowDeclaration;exports.FLOWDECLARATION_TYPES=FLOWDECLARATION_TYPES;const FLOWPREDICATE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowPredicate;exports.FLOWPREDICATE_TYPES=FLOWPREDICATE_TYPES;const ENUMBODY_TYPES=_definitions.FLIPPED_ALIAS_KEYS.EnumBody;exports.ENUMBODY_TYPES=ENUMBODY_TYPES;const ENUMMEMBER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.EnumMember;exports.ENUMMEMBER_TYPES=ENUMMEMBER_TYPES;const JSX_TYPES=_definitions.FLIPPED_ALIAS_KEYS.JSX;exports.JSX_TYPES=JSX_TYPES;const MISCELLANEOUS_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Miscellaneous;exports.MISCELLANEOUS_TYPES=MISCELLANEOUS_TYPES;const TYPESCRIPT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TypeScript;exports.TYPESCRIPT_TYPES=TYPESCRIPT_TYPES;const TSTYPEELEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSTypeElement;exports.TSTYPEELEMENT_TYPES=TSTYPEELEMENT_TYPES;const TSTYPE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSType;exports.TSTYPE_TYPES=TSTYPE_TYPES;const TSBASETYPE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSBaseType;exports.TSBASETYPE_TYPES=TSBASETYPE_TYPES;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.UPDATE_OPERATORS=exports.UNARY_OPERATORS=exports.STRING_UNARY_OPERATORS=exports.STATEMENT_OR_BLOCK_KEYS=exports.NUMBER_UNARY_OPERATORS=exports.NUMBER_BINARY_OPERATORS=exports.NOT_LOCAL_BINDING=exports.LOGICAL_OPERATORS=exports.INHERIT_KEYS=exports.FOR_INIT_KEYS=exports.FLATTENABLE_KEYS=exports.EQUALITY_BINARY_OPERATORS=exports.COMPARISON_BINARY_OPERATORS=exports.COMMENT_KEYS=exports.BOOLEAN_UNARY_OPERATORS=exports.BOOLEAN_NUMBER_BINARY_OPERATORS=exports.BOOLEAN_BINARY_OPERATORS=exports.BLOCK_SCOPED_SYMBOL=exports.BINARY_OPERATORS=exports.ASSIGNMENT_OPERATORS=void 0;exports.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];exports.FLATTENABLE_KEYS=["body","expressions"];exports.FOR_INIT_KEYS=["left","init"];exports.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const LOGICAL_OPERATORS=["||","&&","??"];exports.LOGICAL_OPERATORS=LOGICAL_OPERATORS;exports.UPDATE_OPERATORS=["++","--"];const BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="];exports.BOOLEAN_NUMBER_BINARY_OPERATORS=BOOLEAN_NUMBER_BINARY_OPERATORS;const EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="];exports.EQUALITY_BINARY_OPERATORS=EQUALITY_BINARY_OPERATORS;const COMPARISON_BINARY_OPERATORS=[...EQUALITY_BINARY_OPERATORS,"in","instanceof"];exports.COMPARISON_BINARY_OPERATORS=COMPARISON_BINARY_OPERATORS;const BOOLEAN_BINARY_OPERATORS=[...COMPARISON_BINARY_OPERATORS,...BOOLEAN_NUMBER_BINARY_OPERATORS];exports.BOOLEAN_BINARY_OPERATORS=BOOLEAN_BINARY_OPERATORS;const NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];exports.NUMBER_BINARY_OPERATORS=NUMBER_BINARY_OPERATORS;const BINARY_OPERATORS=["+",...NUMBER_BINARY_OPERATORS,...BOOLEAN_BINARY_OPERATORS,"|>"];exports.BINARY_OPERATORS=BINARY_OPERATORS;const ASSIGNMENT_OPERATORS=["=","+=",...NUMBER_BINARY_OPERATORS.map((op=>op+"=")),...LOGICAL_OPERATORS.map((op=>op+"="))];exports.ASSIGNMENT_OPERATORS=ASSIGNMENT_OPERATORS;const BOOLEAN_UNARY_OPERATORS=["delete","!"];exports.BOOLEAN_UNARY_OPERATORS=BOOLEAN_UNARY_OPERATORS;const NUMBER_UNARY_OPERATORS=["+","-","~"];exports.NUMBER_UNARY_OPERATORS=NUMBER_UNARY_OPERATORS;const STRING_UNARY_OPERATORS=["typeof"];exports.STRING_UNARY_OPERATORS=STRING_UNARY_OPERATORS;const UNARY_OPERATORS=["void","throw",...BOOLEAN_UNARY_OPERATORS,...NUMBER_UNARY_OPERATORS,...STRING_UNARY_OPERATORS];exports.UNARY_OPERATORS=UNARY_OPERATORS;exports.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");exports.BLOCK_SCOPED_SYMBOL=BLOCK_SCOPED_SYMBOL;const NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");exports.NOT_LOCAL_BINDING=NOT_LOCAL_BINDING;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/ensureBlock.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,key="body"){const result=(0, _toBlock.default)(node[key],node);return node[key]=result,result};var _toBlock=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toBlock.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function gatherSequenceExpressions(nodes,scope,declars){const exprs=[];let ensureLastUndefined=!0;for(const node of nodes)if((0, _generated.isEmptyStatement)(node)||(ensureLastUndefined=!1),(0, _generated.isExpression)(node))exprs.push(node);else if((0, _generated.isExpressionStatement)(node))exprs.push(node.expression);else if((0, _generated.isVariableDeclaration)(node)){if("var"!==node.kind)return;for(const declar of node.declarations){const bindings=(0, _getBindingIdentifiers.default)(declar);for(const key of Object.keys(bindings))declars.push({kind:node.kind,id:(0, _cloneNode.default)(bindings[key])});declar.init&&exprs.push((0, _generated2.assignmentExpression)("=",declar.id,declar.init));}ensureLastUndefined=!0;}else if((0, _generated.isIfStatement)(node)){const consequent=node.consequent?gatherSequenceExpressions([node.consequent],scope,declars):scope.buildUndefinedNode(),alternate=node.alternate?gatherSequenceExpressions([node.alternate],scope,declars):scope.buildUndefinedNode();if(!consequent||!alternate)return;exprs.push((0, _generated2.conditionalExpression)(node.test,consequent,alternate));}else if((0, _generated.isBlockStatement)(node)){const body=gatherSequenceExpressions(node.body,scope,declars);if(!body)return;exprs.push(body);}else {if(!(0, _generated.isEmptyStatement)(node))return;0===nodes.indexOf(node)&&(ensureLastUndefined=!0);}ensureLastUndefined&&exprs.push(scope.buildUndefinedNode());return 1===exprs.length?exprs[0]:(0, _generated2.sequenceExpression)(exprs)};var _getBindingIdentifiers=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),_generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(name){"eval"!==(name=(0, _toIdentifier.default)(name))&&"arguments"!==name||(name="_"+name);return name};var _toIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toIdentifier.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toBlock.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent){if((0, _generated.isBlockStatement)(node))return node;let blockNodes=[];(0, _generated.isEmptyStatement)(node)?blockNodes=[]:((0, _generated.isStatement)(node)||(node=(0, _generated.isFunction)(parent)?(0, _generated2.returnStatement)(node):(0, _generated2.expressionStatement)(node)),blockNodes=[node]);return (0, _generated2.blockStatement)(blockNodes)};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toComputedKey.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,key=node.key||node.property){!node.computed&&(0, _generated.isIdentifier)(key)&&(key=(0, _generated2.stringLiteral)(key.name));return key};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_default=function(node){(0, _generated.isExpressionStatement)(node)&&(node=node.expression);if((0, _generated.isExpression)(node))return node;(0, _generated.isClass)(node)?node.type="ClassExpression":(0, _generated.isFunction)(node)&&(node.type="FunctionExpression");if(!(0, _generated.isExpression)(node))throw new Error(`cannot turn ${node.type} to an expression`);return node};exports.default=_default;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toIdentifier.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(input){input+="";let name="";for(const c of input)name+=(0, _helperValidatorIdentifier.isIdentifierChar)(c.codePointAt(0))?c:"-";name=name.replace(/^[-0-9]+/,""),name=name.replace(/[-\s]+(.)?/g,(function(match,c){return c?c.toUpperCase():""})),(0, _isValidIdentifier.default)(name)||(name=`_${name}`);return name||"_"};var _isValidIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_helperValidatorIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toKeyAlias.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=toKeyAlias;var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js"),_removePropertiesDeep=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js");function toKeyAlias(node,key=node.key){let alias;return "method"===node.kind?toKeyAlias.increment()+"":(alias=(0, _generated.isIdentifier)(key)?key.name:(0, _generated.isStringLiteral)(key)?JSON.stringify(key.value):JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key))),node.computed&&(alias=`[${alias}]`),node.static&&(alias=`static:${alias}`),alias)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toSequenceExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(nodes,scope){if(null==nodes||!nodes.length)return;const declars=[],result=(0, _gatherSequenceExpressions.default)(nodes,scope,declars);if(!result)return;for(const declar of declars)scope.push(declar);return result};var _gatherSequenceExpressions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toStatement.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_default=function(node,ignore){if((0, _generated.isStatement)(node))return node;let newType,mustHaveId=!1;if((0, _generated.isClass)(node))mustHaveId=!0,newType="ClassDeclaration";else if((0, _generated.isFunction)(node))mustHaveId=!0,newType="FunctionDeclaration";else if((0, _generated.isAssignmentExpression)(node))return (0, _generated2.expressionStatement)(node);mustHaveId&&!node.id&&(newType=!1);if(!newType){if(ignore)return !1;throw new Error(`cannot turn ${node.type} to a statement`)}return node.type=newType,node};exports.default=_default;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/valueToNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _isValidIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_default=function valueToNode(value){if(void 0===value)return (0, _generated.identifier)("undefined");if(!0===value||!1===value)return (0, _generated.booleanLiteral)(value);if(null===value)return (0, _generated.nullLiteral)();if("string"==typeof value)return (0, _generated.stringLiteral)(value);if("number"==typeof value){let result;if(Number.isFinite(value))result=(0, _generated.numericLiteral)(Math.abs(value));else {let numerator;numerator=Number.isNaN(value)?(0, _generated.numericLiteral)(0):(0, _generated.numericLiteral)(1),result=(0, _generated.binaryExpression)("/",numerator,(0, _generated.numericLiteral)(0));}return (value<0||Object.is(value,-0))&&(result=(0, _generated.unaryExpression)("-",result)),result}if(function(value){return "[object RegExp]"===objectToString(value)}(value)){const pattern=value.source,flags=value.toString().match(/\/([a-z]+|)$/)[1];return (0, _generated.regExpLiteral)(pattern,flags)}if(Array.isArray(value))return (0, _generated.arrayExpression)(value.map(valueToNode));if(function(value){if("object"!=typeof value||null===value||"[object Object]"!==Object.prototype.toString.call(value))return !1;const proto=Object.getPrototypeOf(value);return null===proto||null===Object.getPrototypeOf(proto)}(value)){const props=[];for(const key of Object.keys(value)){let nodeKey;nodeKey=(0, _isValidIdentifier.default)(key)?(0, _generated.identifier)(key):(0, _generated.stringLiteral)(key),props.push((0, _generated.objectProperty)(nodeKey,valueToNode(value[key])));}return (0, _generated.objectExpression)(props)}throw new Error("don't know how to turn this value into a node")};exports.default=_default;const objectToString=Function.call.bind(Object.prototype.toString);},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/core.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.patternLikeCommon=exports.functionTypeAnnotationCommon=exports.functionDeclarationCommon=exports.functionCommon=exports.classMethodOrPropertyCommon=exports.classMethodOrDeclareMethodCommon=void 0;var _is=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/is.js"),_isValidIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_helperValidatorIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js"),_helperStringParser=__webpack_require__("./node_modules/.pnpm/@babel+helper-string-parser@7.18.10/node_modules/@babel/helper-string-parser/lib/index.js"),_constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js"),_utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js");const defineType=(0, _utils.defineAliasedType)("Standardized");defineType("ArrayExpression",{fields:{elements:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),defineType("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, _utils.assertValueType)("string");const identifier=(0, _utils.assertOneOf)(..._constants.ASSIGNMENT_OPERATORS),pattern=(0, _utils.assertOneOf)("=");return function(node,key,val){((0, _is.default)("Pattern",node.left)?pattern:identifier)(node,key,val);}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSTypeAssertion","TSNonNullExpression"):(0, _utils.assertNodeType)("LVal")},right:{validate:(0, _utils.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),defineType("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0, _utils.assertOneOf)(..._constants.BINARY_OPERATORS)},left:{validate:function(){const expression=(0, _utils.assertNodeType)("Expression"),inOp=(0, _utils.assertNodeType)("Expression","PrivateName");return Object.assign((function(node,key,val){("in"===node.operator?inOp:expression)(node,key,val);}),{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0, _utils.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),defineType("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("string")}}}),defineType("Directive",{visitor:["value"],fields:{value:{validate:(0, _utils.assertNodeType)("DirectiveLiteral")}}}),defineType("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("string")}}}),defineType("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))),default:[]},body:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),defineType("BreakStatement",{visitor:["label"],fields:{label:{validate:(0, _utils.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),defineType("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0, _utils.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, _utils.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0, _utils.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, _utils.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),defineType("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0, _utils.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0, _utils.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),defineType("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0, _utils.assertNodeType)("Expression")},consequent:{validate:(0, _utils.assertNodeType)("Expression")},alternate:{validate:(0, _utils.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),defineType("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0, _utils.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),defineType("DebuggerStatement",{aliases:["Statement"]}),defineType("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0, _utils.assertNodeType)("Expression")},body:{validate:(0, _utils.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),defineType("EmptyStatement",{aliases:["Statement"]}),defineType("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0, _utils.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),defineType("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0, _utils.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.assertEach)((0, _utils.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0, _utils.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),defineType("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSTypeAssertion","TSNonNullExpression"):(0, _utils.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0, _utils.assertNodeType)("Expression")},body:{validate:(0, _utils.assertNodeType)("Statement")}}}),defineType("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0, _utils.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0},update:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0},body:{validate:(0, _utils.assertNodeType)("Statement")}}});const functionCommon=()=>({params:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});exports.functionCommon=functionCommon;const functionTypeAnnotationCommon=()=>({returnType:{validate:(0, _utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});exports.functionTypeAnnotationCommon=functionTypeAnnotationCommon;const functionDeclarationCommon=()=>Object.assign({},functionCommon(),{declare:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},id:{validate:(0, _utils.assertNodeType)("Identifier"),optional:!0}});exports.functionDeclarationCommon=functionDeclarationCommon,defineType("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},functionDeclarationCommon(),functionTypeAnnotationCommon(),{body:{validate:(0, _utils.assertNodeType)("BlockStatement")},predicate:{validate:(0, _utils.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return ()=>{};const identifier=(0, _utils.assertNodeType)("Identifier");return function(parent,key,node){(0, _is.default)("ExportDefaultDeclaration",parent)||identifier(node,"id",node.id);}}()}),defineType("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{id:{validate:(0, _utils.assertNodeType)("Identifier"),optional:!0},body:{validate:(0, _utils.assertNodeType)("BlockStatement")},predicate:{validate:(0, _utils.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const patternLikeCommon=()=>({typeAnnotation:{validate:(0, _utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0}});exports.patternLikeCommon=patternLikeCommon,defineType("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},patternLikeCommon(),{name:{validate:(0, _utils.chain)((0, _utils.assertValueType)("string"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&!(0, _isValidIdentifier.default)(val,!1))throw new TypeError(`"${val}" is not a valid identifier name`)}),{type:"string"}))},optional:{validate:(0, _utils.assertValueType)("boolean"),optional:!0}}),validate(parent,key,node){if(!process.env.BABEL_TYPES_8_BREAKING)return;const match=/\.(\w+)$/.exec(key);if(!match)return;const[,parentKey]=match,nonComp={computed:!1};if("property"===parentKey){if((0, _is.default)("MemberExpression",parent,nonComp))return;if((0, _is.default)("OptionalMemberExpression",parent,nonComp))return}else if("key"===parentKey){if((0, _is.default)("Property",parent,nonComp))return;if((0, _is.default)("Method",parent,nonComp))return}else if("exported"===parentKey){if((0, _is.default)("ExportSpecifier",parent))return}else if("imported"===parentKey){if((0, _is.default)("ImportSpecifier",parent,{imported:node}))return}else if("meta"===parentKey&&(0, _is.default)("MetaProperty",parent,{meta:node}))return;if(((0, _helperValidatorIdentifier.isKeyword)(node.name)||(0, _helperValidatorIdentifier.isReservedWord)(node.name,!1))&&"this"!==node.name)throw new TypeError(`"${node.name}" is not a valid identifier`)}}),defineType("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0, _utils.assertNodeType)("Expression")},consequent:{validate:(0, _utils.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0, _utils.assertNodeType)("Statement")}}}),defineType("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0, _utils.assertNodeType)("Identifier")},body:{validate:(0, _utils.assertNodeType)("Statement")}}}),defineType("StringLiteral",{builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0, _utils.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0, _utils.assertValueType)("string")},flags:{validate:(0, _utils.chain)((0, _utils.assertValueType)("string"),Object.assign((function(node,key,val){if(!process.env.BABEL_TYPES_8_BREAKING)return;const invalid=/[^gimsuy]/.exec(val);if(invalid)throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`)}),{type:"string"})),default:""}}}),defineType("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0, _utils.assertOneOf)(..._constants.LOGICAL_OPERATORS)},left:{validate:(0, _utils.assertNodeType)("Expression")},right:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0, _utils.assertNodeType)("Expression","Super")},property:{validate:function(){const normal=(0, _utils.assertNodeType)("Identifier","PrivateName"),computed=(0, _utils.assertNodeType)("Expression"),validator=function(node,key,val){(node.computed?computed:normal)(node,key,val);};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, _utils.assertOneOf)(!0,!1),optional:!0}})}),defineType("NewExpression",{inherits:"CallExpression"}),defineType("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0, _utils.assertValueType)("string")},sourceType:{validate:(0, _utils.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0, _utils.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))),default:[]},body:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),defineType("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),defineType("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{kind:Object.assign({validate:(0, _utils.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const normal=(0, _utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),computed=(0, _utils.assertNodeType)("Expression"),validator=function(node,key,val){(node.computed?computed:normal)(node,key,val);};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],validator}()},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0, _utils.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),defineType("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const normal=(0, _utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),computed=(0, _utils.assertNodeType)("Expression");return Object.assign((function(node,key,val){(node.computed?computed:normal)(node,key,val);}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0, _utils.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0, _utils.chain)((0, _utils.assertValueType)("boolean"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&node.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}),{type:"boolean"}),(function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&!(0, _is.default)("Identifier",node.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")})),default:!1},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const pattern=(0, _utils.assertNodeType)("Identifier","Pattern","TSAsExpression","TSNonNullExpression","TSTypeAssertion"),expression=(0, _utils.assertNodeType)("Expression");return function(parent,key,node){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0, _is.default)("ObjectPattern",parent)?pattern:expression)(node,"value",node.value);}}()}),defineType("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},patternLikeCommon(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSTypeAssertion","TSNonNullExpression"):(0, _utils.assertNodeType)("LVal")},optional:{validate:(0, _utils.assertValueType)("boolean"),optional:!0}}),validate(parent,key){if(!process.env.BABEL_TYPES_8_BREAKING)return;const match=/(\w+)\[(\d+)\]/.exec(key);if(!match)throw new Error("Internal Babel error: malformed key.");const[,listKey,index]=match;if(parent[listKey].length>+index+1)throw new TypeError(`RestElement must be last element of ${listKey}`)}}),defineType("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0}}}),defineType("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Expression")))}},aliases:["Expression"]}),defineType("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))}}}),defineType("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0, _utils.assertNodeType)("Expression")},cases:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("SwitchCase")))}}}),defineType("ThisExpression",{aliases:["Expression"]}),defineType("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"),Object.assign((function(node){if(process.env.BABEL_TYPES_8_BREAKING&&!node.handler&&!node.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0, _utils.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0, _utils.assertNodeType)("BlockStatement")}}}),defineType("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0, _utils.assertNodeType)("Expression")},operator:{validate:(0, _utils.assertOneOf)(..._constants.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),defineType("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.assertNodeType)("Identifier","MemberExpression"):(0, _utils.assertNodeType)("Expression")},operator:{validate:(0, _utils.assertOneOf)(..._constants.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),defineType("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},kind:{validate:(0, _utils.assertOneOf)("var","let","const")},declarations:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("VariableDeclarator")))}},validate(parent,key,node){if(process.env.BABEL_TYPES_8_BREAKING&&(0, _is.default)("ForXStatement",parent,{left:node})&&1!==node.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`)}}),defineType("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, _utils.assertNodeType)("LVal");const normal=(0, _utils.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),without=(0, _utils.assertNodeType)("Identifier");return function(node,key,val){(node.init?normal:without)(node,key,val);}}()},definite:{optional:!0,validate:(0, _utils.assertValueType)("boolean")},init:{optional:!0,validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0, _utils.assertNodeType)("Expression")},body:{validate:(0, _utils.assertNodeType)("Statement")}}}),defineType("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0, _utils.assertNodeType)("Expression")},body:{validate:(0, _utils.assertNodeType)("Statement")}}}),defineType("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{left:{validate:(0, _utils.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0, _utils.assertNodeType)("Expression")},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0}})}),defineType("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{elements:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null","PatternLike","LVal")))},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},optional:{validate:(0, _utils.assertValueType)("boolean"),optional:!0}})}),defineType("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{expression:{validate:(0, _utils.assertValueType)("boolean")},body:{validate:(0, _utils.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0, _utils.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),defineType("ClassBody",{visitor:["body"],fields:{body:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}}),defineType("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0, _utils.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, _utils.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, _utils.assertNodeType)("Expression")},superTypeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, _utils.assertNodeType)("InterfaceExtends"),optional:!0}}}),defineType("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0, _utils.assertNodeType)("Identifier")},typeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, _utils.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, _utils.assertNodeType)("Expression")},superTypeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, _utils.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},abstract:{validate:(0, _utils.assertValueType)("boolean"),optional:!0}},validate:function(){const identifier=(0, _utils.assertNodeType)("Identifier");return function(parent,key,node){process.env.BABEL_TYPES_8_BREAKING&&((0, _is.default)("ExportDefaultDeclaration",parent)||identifier(node,"id",node.id));}}()}),defineType("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0, _utils.assertNodeType)("StringLiteral")},exportKind:(0, _utils.validateOptional)((0, _utils.assertOneOf)("type","value")),assertions:{optional:!0,validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute")))}}}),defineType("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0, _utils.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0, _utils.validateOptional)((0, _utils.assertOneOf)("value"))}}),defineType("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0, _utils.chain)((0, _utils.assertNodeType)("Declaration"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&node.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&node.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)(function(){const sourced=(0, _utils.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),sourceless=(0, _utils.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(node,key,val){(node.source?sourced:sourceless)(node,key,val);}:sourced}()))},source:{validate:(0, _utils.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0, _utils.validateOptional)((0, _utils.assertOneOf)("type","value"))}}),defineType("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, _utils.assertNodeType)("Identifier")},exported:{validate:(0, _utils.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0, _utils.assertOneOf)("type","value"),optional:!0}}}),defineType("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, _utils.assertNodeType)("VariableDeclaration","LVal");const declaration=(0, _utils.assertNodeType)("VariableDeclaration"),lval=(0, _utils.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSTypeAssertion","TSNonNullExpression");return function(node,key,val){(0, _is.default)("VariableDeclaration",val)?declaration(node,key,val):lval(node,key,val);}}()},right:{validate:(0, _utils.assertNodeType)("Expression")},body:{validate:(0, _utils.assertNodeType)("Statement")},await:{default:!1}}}),defineType("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute")))},specifiers:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0, _utils.assertNodeType)("StringLiteral")},importKind:{validate:(0, _utils.assertOneOf)("type","typeof","value"),optional:!0}}}),defineType("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, _utils.assertNodeType)("Identifier")}}}),defineType("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, _utils.assertNodeType)("Identifier")}}}),defineType("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, _utils.assertNodeType)("Identifier")},imported:{validate:(0, _utils.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0, _utils.assertOneOf)("type","typeof","value"),optional:!0}}}),defineType("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0, _utils.chain)((0, _utils.assertNodeType)("Identifier"),Object.assign((function(node,key,val){if(!process.env.BABEL_TYPES_8_BREAKING)return;let property;switch(val.name){case"function":property="sent";break;case"new":property="target";break;case"import":property="meta";}if(!(0, _is.default)("Identifier",node.property,{name:property}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0, _utils.assertNodeType)("Identifier")}}});const classMethodOrPropertyCommon=()=>({abstract:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0, _utils.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},key:{validate:(0, _utils.chain)(function(){const normal=(0, _utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),computed=(0, _utils.assertNodeType)("Expression");return function(node,key,val){(node.computed?computed:normal)(node,key,val);}}(),(0, _utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});exports.classMethodOrPropertyCommon=classMethodOrPropertyCommon;const classMethodOrDeclareMethodCommon=()=>Object.assign({},functionCommon(),classMethodOrPropertyCommon(),{params:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0, _utils.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0, _utils.chain)((0, _utils.assertValueType)("string"),(0, _utils.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0}});exports.classMethodOrDeclareMethodCommon=classMethodOrDeclareMethodCommon,defineType("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{body:{validate:(0, _utils.assertNodeType)("BlockStatement")}})}),defineType("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{properties:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("RestElement","ObjectProperty")))}})}),defineType("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("Super",{aliases:["Expression"]}),defineType("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0, _utils.assertNodeType)("Expression")},quasi:{validate:(0, _utils.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),defineType("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0, _utils.chain)((0, _utils.assertShape)({raw:{validate:(0, _utils.assertValueType)("string")},cooked:{validate:(0, _utils.assertValueType)("string"),optional:!0}}),(function(node){const raw=node.value.raw;let str,containsInvalid,unterminatedCalled=!1;try{const error=()=>{throw new Error};({str,containsInvalid}=(0,_helperStringParser.readStringContents)("template",raw,0,0,0,{unterminated(){unterminatedCalled=!0;},strictNumericEscape:error,invalidEscapeSequence:error,numericSeparatorInEscapeSequence:error,unexpectedNumericSeparator:error,invalidDigit:error,invalidCodePoint:error}));}catch(_unused){unterminatedCalled=!0,containsInvalid=!0;}if(!unterminatedCalled)throw new Error("Invalid raw");node.value.cooked=containsInvalid?null:str;}))},tail:{default:!1}}}),defineType("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("TemplateElement")))},expressions:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Expression","TSType")),(function(node,key,val){if(node.quasis.length!==val.length+1)throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length+1} quasis but got ${node.quasis.length}`)}))}}}),defineType("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0, _utils.chain)((0, _utils.assertValueType)("boolean"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&!node.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("Import",{aliases:["Expression"]}),defineType("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, _utils.assertNodeType)("Identifier")}}}),defineType("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0, _utils.assertNodeType)("Expression")},property:{validate:function(){const normal=(0, _utils.assertNodeType)("Identifier"),computed=(0, _utils.assertNodeType)("Expression");return Object.assign((function(node,key,val){(node.computed?computed:normal)(node,key,val);}),{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.chain)((0, _utils.assertValueType)("boolean"),(0, _utils.assertOptionalChainStart)()):(0, _utils.assertValueType)("boolean")}}}),defineType("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0, _utils.assertNodeType)("Expression")},arguments:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, _utils.chain)((0, _utils.assertValueType)("boolean"),(0, _utils.assertOptionalChainStart)()):(0, _utils.assertValueType)("boolean")},typeArguments:{validate:(0, _utils.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, _utils.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),defineType("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},classMethodOrPropertyCommon(),{value:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, _utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},declare:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},variance:{validate:(0, _utils.assertNodeType)("Variance"),optional:!0}})}),defineType("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},classMethodOrPropertyCommon(),{key:{validate:(0, _utils.chain)(function(){const normal=(0, _utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),computed=(0, _utils.assertNodeType)("Expression");return function(node,key,val){(node.computed?computed:normal)(node,key,val);}}(),(0, _utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, _utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},declare:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},variance:{validate:(0, _utils.assertNodeType)("Variance"),optional:!0}})}),defineType("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0, _utils.assertNodeType)("PrivateName")},value:{validate:(0, _utils.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0, _utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0, _utils.assertValueType)("boolean"),default:!1},readonly:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},definite:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},variance:{validate:(0, _utils.assertNodeType)("Variance"),optional:!0}}}),defineType("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{kind:{validate:(0, _utils.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0, _utils.assertNodeType)("PrivateName")},body:{validate:(0, _utils.assertNodeType)("BlockStatement")}})}),defineType("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0, _utils.assertNodeType)("Identifier")}}}),defineType("StaticBlock",{visitor:["body"],fields:{body:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]});},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/experimental.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js");(0, _utils.default)("ArgumentPlaceholder",{}),(0, _utils.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0, _utils.assertNodeType)("Expression")},callee:{validate:(0, _utils.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0, _utils.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0, _utils.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0, _utils.assertNodeType)("StringLiteral")}}}),(0, _utils.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0, _utils.assertNodeType)("Expression")}}}),(0, _utils.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0, _utils.assertNodeType)("BlockStatement")},async:{validate:(0, _utils.assertValueType)("boolean"),default:!1}}}),(0, _utils.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, _utils.assertNodeType)("Identifier")}}}),(0, _utils.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0, _utils.default)("TupleExpression",{fields:{elements:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0, _utils.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0, _utils.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0, _utils.assertNodeType)("Program")}},aliases:["Expression"]}),(0, _utils.default)("TopicReference",{aliases:["Expression"]}),(0, _utils.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0, _utils.assertNodeType)("Expression")}},aliases:["Expression"]}),(0, _utils.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0, _utils.assertNodeType)("Expression")}},aliases:["Expression"]}),(0, _utils.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/flow.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js");const defineType=(0, _utils.defineAliasedType)("Flow"),defineInterfaceishType=name=>{defineType(name,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TypeParameterDeclaration"),extends:(0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),mixins:(0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),implements:(0, _utils.validateOptional)((0, _utils.arrayOfType)("ClassImplements")),body:(0, _utils.validateType)("ObjectTypeAnnotation")}});};defineType("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0, _utils.validateType)("FlowType")}}),defineType("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),defineType("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier"),predicate:(0, _utils.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),defineType("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)(["Identifier","StringLiteral"]),body:(0, _utils.validateType)("BlockStatement"),kind:(0, _utils.validateOptional)((0, _utils.assertOneOf)("CommonJS","ES"))}}),defineType("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0, _utils.validateType)("TypeAnnotation")}}),defineType("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TypeParameterDeclaration"),right:(0, _utils.validateType)("FlowType")}}),defineType("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, _utils.validateOptionalType)("FlowType"),impltype:(0, _utils.validateOptionalType)("FlowType")}}),defineType("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier")}}),defineType("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0, _utils.validateOptionalType)("Flow"),specifiers:(0, _utils.validateOptional)((0, _utils.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0, _utils.validateOptionalType)("StringLiteral"),default:(0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))}}),defineType("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0, _utils.validateType)("StringLiteral"),exportKind:(0, _utils.validateOptional)((0, _utils.assertOneOf)("type","value"))}}),defineType("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0, _utils.validateType)("Flow")}}),defineType("ExistsTypeAnnotation",{aliases:["FlowType"]}),defineType("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0, _utils.validateOptionalType)("TypeParameterDeclaration"),params:(0, _utils.validate)((0, _utils.arrayOfType)("FunctionTypeParam")),rest:(0, _utils.validateOptionalType)("FunctionTypeParam"),this:(0, _utils.validateOptionalType)("FunctionTypeParam"),returnType:(0, _utils.validateType)("FlowType")}}),defineType("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0, _utils.validateOptionalType)("Identifier"),typeAnnotation:(0, _utils.validateType)("FlowType"),optional:(0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))}}),defineType("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0, _utils.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, _utils.validateOptionalType)("TypeParameterInstantiation")}}),defineType("InferredPredicate",{aliases:["FlowPredicate"]}),defineType("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0, _utils.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, _utils.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),defineType("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),body:(0, _utils.validateType)("ObjectTypeAnnotation")}}),defineType("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))}}),defineType("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0, _utils.validateType)("FlowType")}}),defineType("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, _utils.validate)((0, _utils.assertValueType)("number"))}}),defineType("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0, _utils.validate)((0, _utils.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0, _utils.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0, _utils.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0, _utils.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0, _utils.assertValueType)("boolean"),default:!1},inexact:(0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))}}),defineType("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0, _utils.validateType)("Identifier"),value:(0, _utils.validateType)("FlowType"),optional:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),static:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),method:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0, _utils.validateType)("FlowType"),static:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0, _utils.validateOptionalType)("Identifier"),key:(0, _utils.validateType)("FlowType"),value:(0, _utils.validateType)("FlowType"),static:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),variance:(0, _utils.validateOptionalType)("Variance")}}),defineType("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0, _utils.validateType)(["Identifier","StringLiteral"]),value:(0, _utils.validateType)("FlowType"),kind:(0, _utils.validate)((0, _utils.assertOneOf)("init","get","set")),static:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),proto:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),optional:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),variance:(0, _utils.validateOptionalType)("Variance"),method:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0, _utils.validateType)("FlowType")}}),defineType("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, _utils.validateOptionalType)("FlowType"),impltype:(0, _utils.validateType)("FlowType")}}),defineType("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0, _utils.validateType)("Identifier"),qualification:(0, _utils.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),defineType("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, _utils.validate)((0, _utils.assertValueType)("string"))}}),defineType("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))}}),defineType("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0, _utils.validateType)("FlowType")}}),defineType("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TypeParameterDeclaration"),right:(0, _utils.validateType)("FlowType")}}),defineType("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0, _utils.validateType)("FlowType")}}),defineType("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0, _utils.validateType)("Expression"),typeAnnotation:(0, _utils.validateType)("TypeAnnotation")}}),defineType("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0, _utils.validate)((0, _utils.assertValueType)("string")),bound:(0, _utils.validateOptionalType)("TypeAnnotation"),default:(0, _utils.validateOptionalType)("FlowType"),variance:(0, _utils.validateOptionalType)("Variance")}}),defineType("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0, _utils.validate)((0, _utils.arrayOfType)("TypeParameter"))}}),defineType("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))}}),defineType("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))}}),defineType("Variance",{builder:["kind"],fields:{kind:(0, _utils.validate)((0, _utils.assertOneOf)("minus","plus"))}}),defineType("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0, _utils.validateType)("Identifier"),body:(0, _utils.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),defineType("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),members:(0, _utils.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),members:(0, _utils.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, _utils.validate)((0, _utils.assertValueType)("boolean")),members:(0, _utils.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0, _utils.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}}),defineType("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, _utils.validateType)("Identifier"),init:(0, _utils.validateType)("BooleanLiteral")}}),defineType("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, _utils.validateType)("Identifier"),init:(0, _utils.validateType)("NumericLiteral")}}),defineType("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, _utils.validateType)("Identifier"),init:(0, _utils.validateType)("StringLiteral")}}),defineType("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, _utils.validateType)("Identifier")}}),defineType("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, _utils.validateType)("FlowType"),indexType:(0, _utils.validateType)("FlowType")}}),defineType("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, _utils.validateType)("FlowType"),indexType:(0, _utils.validateType)("FlowType"),optional:(0, _utils.validate)((0, _utils.assertValueType)("boolean"))}});},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ALIAS_KEYS",{enumerable:!0,get:function(){return _utils.ALIAS_KEYS}}),Object.defineProperty(exports,"BUILDER_KEYS",{enumerable:!0,get:function(){return _utils.BUILDER_KEYS}}),Object.defineProperty(exports,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return _utils.DEPRECATED_KEYS}}),Object.defineProperty(exports,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return _utils.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(exports,"NODE_FIELDS",{enumerable:!0,get:function(){return _utils.NODE_FIELDS}}),Object.defineProperty(exports,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return _utils.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(exports,"PLACEHOLDERS",{enumerable:!0,get:function(){return _placeholders.PLACEHOLDERS}}),Object.defineProperty(exports,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return _placeholders.PLACEHOLDERS_ALIAS}}),Object.defineProperty(exports,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return _placeholders.PLACEHOLDERS_FLIPPED_ALIAS}}),exports.TYPES=void 0,Object.defineProperty(exports,"VISITOR_KEYS",{enumerable:!0,get:function(){return _utils.VISITOR_KEYS}});var _toFastProperties=__webpack_require__("./node_modules/.pnpm/to-fast-properties@2.0.0/node_modules/to-fast-properties/index.js");__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/core.js"),__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/flow.js"),__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/jsx.js"),__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/misc.js"),__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/experimental.js"),__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/typescript.js");var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js"),_placeholders=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/placeholders.js");_toFastProperties(_utils.VISITOR_KEYS),_toFastProperties(_utils.ALIAS_KEYS),_toFastProperties(_utils.FLIPPED_ALIAS_KEYS),_toFastProperties(_utils.NODE_FIELDS),_toFastProperties(_utils.BUILDER_KEYS),_toFastProperties(_utils.DEPRECATED_KEYS),_toFastProperties(_placeholders.PLACEHOLDERS_ALIAS),_toFastProperties(_placeholders.PLACEHOLDERS_FLIPPED_ALIAS);const TYPES=[].concat(Object.keys(_utils.VISITOR_KEYS),Object.keys(_utils.FLIPPED_ALIAS_KEYS),Object.keys(_utils.DEPRECATED_KEYS));exports.TYPES=TYPES;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/jsx.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js");const defineType=(0, _utils.defineAliasedType)("JSX");defineType("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0, _utils.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0, _utils.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),defineType("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0, _utils.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),defineType("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0, _utils.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0, _utils.assertNodeType)("JSXClosingElement")},children:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0, _utils.assertValueType)("boolean"),optional:!0}})}),defineType("JSXEmptyExpression",{}),defineType("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, _utils.assertNodeType)("Expression","JSXEmptyExpression")}}}),defineType("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0, _utils.assertValueType)("string")}}}),defineType("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0, _utils.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0, _utils.assertNodeType)("JSXIdentifier")}}}),defineType("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0, _utils.assertNodeType)("JSXIdentifier")},name:{validate:(0, _utils.assertNodeType)("JSXIdentifier")}}}),defineType("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0, _utils.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0, _utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),defineType("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0, _utils.assertNodeType)("Expression")}}}),defineType("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0, _utils.assertValueType)("string")}}}),defineType("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0, _utils.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0, _utils.assertNodeType)("JSXClosingFragment")},children:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),defineType("JSXOpeningFragment",{aliases:["Immutable"]}),defineType("JSXClosingFragment",{aliases:["Immutable"]});},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/misc.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js"),_placeholders=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/placeholders.js");const defineType=(0, _utils.defineAliasedType)("Miscellaneous");defineType("Noop",{visitor:[]}),defineType("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0, _utils.assertNodeType)("Identifier")},expectedNode:{validate:(0, _utils.assertOneOf)(..._placeholders.PLACEHOLDERS)}}}),defineType("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0, _utils.assertValueType)("string")}}});},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/placeholders.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.PLACEHOLDERS_FLIPPED_ALIAS=exports.PLACEHOLDERS_ALIAS=exports.PLACEHOLDERS=void 0;var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js");const PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];exports.PLACEHOLDERS=PLACEHOLDERS;const PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};exports.PLACEHOLDERS_ALIAS=PLACEHOLDERS_ALIAS;for(const type of PLACEHOLDERS){const alias=_utils.ALIAS_KEYS[type];null!=alias&&alias.length&&(PLACEHOLDERS_ALIAS[type]=alias);}const PLACEHOLDERS_FLIPPED_ALIAS={};exports.PLACEHOLDERS_FLIPPED_ALIAS=PLACEHOLDERS_FLIPPED_ALIAS,Object.keys(PLACEHOLDERS_ALIAS).forEach((type=>{PLACEHOLDERS_ALIAS[type].forEach((alias=>{Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS,alias)||(PLACEHOLDERS_FLIPPED_ALIAS[alias]=[]),PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type);}));}));},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/typescript.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _utils=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js"),_core=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/core.js"),_is=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/is.js");const defineType=(0, _utils.defineAliasedType)("TypeScript"),bool=(0, _utils.assertValueType)("boolean"),tSFunctionTypeAnnotationCommon=()=>({returnType:{validate:(0, _utils.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, _utils.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});defineType("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0, _utils.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},parameter:{validate:(0, _utils.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),optional:!0}}}),defineType("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0, _core.functionDeclarationCommon)(),tSFunctionTypeAnnotationCommon())}),defineType("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0, _core.classMethodOrDeclareMethodCommon)(),tSFunctionTypeAnnotationCommon())}),defineType("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0, _utils.validateType)("TSEntityName"),right:(0, _utils.validateType)("Identifier")}});const signatureDeclarationCommon=()=>({typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0, _utils.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0, _utils.validateOptionalType)("TSTypeAnnotation")}),callConstructSignatureDeclaration={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:signatureDeclarationCommon()};defineType("TSCallSignatureDeclaration",callConstructSignatureDeclaration),defineType("TSConstructSignatureDeclaration",callConstructSignatureDeclaration);const namedTypeElementCommon=()=>({key:(0, _utils.validateType)("Expression"),computed:{default:!1},optional:(0, _utils.validateOptional)(bool)});defineType("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},namedTypeElementCommon(),{readonly:(0, _utils.validateOptional)(bool),typeAnnotation:(0, _utils.validateOptionalType)("TSTypeAnnotation"),initializer:(0, _utils.validateOptionalType)("Expression"),kind:{validate:(0, _utils.assertOneOf)("get","set")}})}),defineType("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},signatureDeclarationCommon(),namedTypeElementCommon(),{kind:{validate:(0, _utils.assertOneOf)("method","get","set")}})}),defineType("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0, _utils.validateOptional)(bool),static:(0, _utils.validateOptional)(bool),parameters:(0, _utils.validateArrayOfType)("Identifier"),typeAnnotation:(0, _utils.validateOptionalType)("TSTypeAnnotation")}});const tsKeywordTypes=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const type of tsKeywordTypes)defineType(type,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});defineType("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const fnOrCtrBase={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};defineType("TSFunctionType",Object.assign({},fnOrCtrBase,{fields:signatureDeclarationCommon()})),defineType("TSConstructorType",Object.assign({},fnOrCtrBase,{fields:Object.assign({},signatureDeclarationCommon(),{abstract:(0, _utils.validateOptional)(bool)})})),defineType("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0, _utils.validateType)("TSEntityName"),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0, _utils.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0, _utils.validateOptionalType)("TSTypeAnnotation"),asserts:(0, _utils.validateOptional)(bool)}}),defineType("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0, _utils.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0, _utils.validateArrayOfType)("TSTypeElement")}}),defineType("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0, _utils.validateType)("TSType")}}),defineType("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0, _utils.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),defineType("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, _utils.validateType)("TSType")}}),defineType("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, _utils.validateType)("TSType")}}),defineType("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0, _utils.validateType)("Identifier"),optional:{validate:bool,default:!1},elementType:(0, _utils.validateType)("TSType")}});const unionOrIntersection={aliases:["TSType"],visitor:["types"],fields:{types:(0, _utils.validateArrayOfType)("TSType")}};defineType("TSUnionType",unionOrIntersection),defineType("TSIntersectionType",unionOrIntersection),defineType("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0, _utils.validateType)("TSType"),extendsType:(0, _utils.validateType)("TSType"),trueType:(0, _utils.validateType)("TSType"),falseType:(0, _utils.validateType)("TSType")}}),defineType("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0, _utils.validateType)("TSTypeParameter")}}),defineType("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, _utils.validateType)("TSType")}}),defineType("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0, _utils.validate)((0, _utils.assertValueType)("string")),typeAnnotation:(0, _utils.validateType)("TSType")}}),defineType("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0, _utils.validateType)("TSType"),indexType:(0, _utils.validateType)("TSType")}}),defineType("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0, _utils.validateOptional)((0, _utils.assertOneOf)(!0,!1,"+","-")),typeParameter:(0, _utils.validateType)("TSTypeParameter"),optional:(0, _utils.validateOptional)((0, _utils.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0, _utils.validateOptionalType)("TSType"),nameType:(0, _utils.validateOptionalType)("TSType")}}),defineType("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const unaryExpression=(0, _utils.assertNodeType)("NumericLiteral","BigIntLiteral"),unaryOperator=(0, _utils.assertOneOf)("-"),literal=(0, _utils.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function validator(parent,key,node){(0, _is.default)("UnaryExpression",node)?(unaryOperator(node,"operator",node.operator),unaryExpression(node,"argument",node.argument)):literal(parent,key,node);}return validator.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],validator}()}}}),defineType("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0, _utils.validateType)("TSEntityName"),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0, _utils.validateOptional)(bool),id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0, _utils.validateOptional)((0, _utils.arrayOfType)("TSExpressionWithTypeArguments")),body:(0, _utils.validateType)("TSInterfaceBody")}}),defineType("TSInterfaceBody",{visitor:["body"],fields:{body:(0, _utils.validateArrayOfType)("TSTypeElement")}}),defineType("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0, _utils.validateOptional)(bool),id:(0, _utils.validateType)("Identifier"),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0, _utils.validateType)("TSType")}}),defineType("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0, _utils.validateType)("Expression"),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSAsExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0, _utils.validateType)("Expression"),typeAnnotation:(0, _utils.validateType)("TSType")}}),defineType("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0, _utils.validateType)("TSType"),expression:(0, _utils.validateType)("Expression")}}),defineType("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0, _utils.validateOptional)(bool),const:(0, _utils.validateOptional)(bool),id:(0, _utils.validateType)("Identifier"),members:(0, _utils.validateArrayOfType)("TSEnumMember"),initializer:(0, _utils.validateOptionalType)("Expression")}}),defineType("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0, _utils.validateType)(["Identifier","StringLiteral"]),initializer:(0, _utils.validateOptionalType)("Expression")}}),defineType("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0, _utils.validateOptional)(bool),global:(0, _utils.validateOptional)(bool),id:(0, _utils.validateType)(["Identifier","StringLiteral"]),body:(0, _utils.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),defineType("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0, _utils.validateArrayOfType)("Statement")}}),defineType("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0, _utils.validateType)("StringLiteral"),qualifier:(0, _utils.validateOptionalType)("TSEntityName"),typeParameters:(0, _utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0, _utils.validate)(bool),id:(0, _utils.validateType)("Identifier"),moduleReference:(0, _utils.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0, _utils.assertOneOf)("type","value"),optional:!0}}}),defineType("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0, _utils.validateType)("StringLiteral")}}),defineType("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0, _utils.validateType)("Expression")}}),defineType("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0, _utils.validateType)("Expression")}}),defineType("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0, _utils.validateType)("Identifier")}}),defineType("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0, _utils.assertNodeType)("TSType")}}}),defineType("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("TSType")))}}}),defineType("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0, _utils.chain)((0, _utils.assertValueType)("array"),(0, _utils.assertEach)((0, _utils.assertNodeType)("TSTypeParameter")))}}}),defineType("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0, _utils.assertValueType)("string")},in:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},out:{validate:(0, _utils.assertValueType)("boolean"),optional:!0},constraint:{validate:(0, _utils.assertNodeType)("TSType"),optional:!0},default:{validate:(0, _utils.assertNodeType)("TSType"),optional:!0}}});},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.VISITOR_KEYS=exports.NODE_PARENT_VALIDATIONS=exports.NODE_FIELDS=exports.FLIPPED_ALIAS_KEYS=exports.DEPRECATED_KEYS=exports.BUILDER_KEYS=exports.ALIAS_KEYS=void 0,exports.arrayOf=arrayOf,exports.arrayOfType=arrayOfType,exports.assertEach=assertEach,exports.assertNodeOrValueType=function(...types){function validate(node,key,val){for(const type of types)if(getType(val)===type||(0, _is.default)(type,val))return void(0, _validate.validateChild)(node,key,val);throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null==val?void 0:val.type)}`)}return validate.oneOfNodeOrValueTypes=types,validate},exports.assertNodeType=assertNodeType,exports.assertOneOf=function(...values){function validate(node,key,val){if(values.indexOf(val)<0)throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values)} but got ${JSON.stringify(val)}`)}return validate.oneOf=values,validate},exports.assertOptionalChainStart=function(){return function(node){var _current;let current=node;for(;node;){const{type}=current;if("OptionalCallExpression"!==type){if("OptionalMemberExpression"!==type)break;if(current.optional)return;current=current.object;}else {if(current.optional)return;current=current.callee;}}throw new TypeError(`Non-optional ${node.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(_current=current)?void 0:_current.type}`)}},exports.assertShape=function(shape){function validate(node,key,val){const errors=[];for(const property of Object.keys(shape))try{(0,_validate.validateField)(node,property,val[property],shape[property]);}catch(error){if(error instanceof TypeError){errors.push(error.message);continue}throw error}if(errors.length)throw new TypeError(`Property ${key} of ${node.type} expected to have the following:\n${errors.join("\n")}`)}return validate.shapeOf=shape,validate},exports.assertValueType=assertValueType,exports.chain=chain,exports.default=defineType,exports.defineAliasedType=function(...aliases){return (type,opts={})=>{let defined=opts.aliases;var _store$opts$inherits$;defined||(opts.inherits&&(defined=null==(_store$opts$inherits$=store[opts.inherits].aliases)?void 0:_store$opts$inherits$.slice()),null!=defined||(defined=[]),opts.aliases=defined);const additional=aliases.filter((a=>!defined.includes(a)));return defined.unshift(...additional),defineType(type,opts)}},exports.typeIs=typeIs,exports.validate=validate,exports.validateArrayOfType=function(typeName){return validate(arrayOfType(typeName))},exports.validateOptional=function(validate){return {validate,optional:!0}},exports.validateOptionalType=function(typeName){return {validate:typeIs(typeName),optional:!0}},exports.validateType=function(typeName){return validate(typeIs(typeName))};var _is=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/is.js"),_validate=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/validate.js");const VISITOR_KEYS={};exports.VISITOR_KEYS=VISITOR_KEYS;const ALIAS_KEYS={};exports.ALIAS_KEYS=ALIAS_KEYS;const FLIPPED_ALIAS_KEYS={};exports.FLIPPED_ALIAS_KEYS=FLIPPED_ALIAS_KEYS;const NODE_FIELDS={};exports.NODE_FIELDS=NODE_FIELDS;const BUILDER_KEYS={};exports.BUILDER_KEYS=BUILDER_KEYS;const DEPRECATED_KEYS={};exports.DEPRECATED_KEYS=DEPRECATED_KEYS;const NODE_PARENT_VALIDATIONS={};function getType(val){return Array.isArray(val)?"array":null===val?"null":typeof val}function validate(validate){return {validate}}function typeIs(typeName){return "string"==typeof typeName?assertNodeType(typeName):assertNodeType(...typeName)}function arrayOf(elementType){return chain(assertValueType("array"),assertEach(elementType))}function arrayOfType(typeName){return arrayOf(typeIs(typeName))}function assertEach(callback){function validator(node,key,val){if(Array.isArray(val))for(let i=0;i<val.length;i++){const subkey=`${key}[${i}]`,v=val[i];callback(node,subkey,v),process.env.BABEL_TYPES_8_BREAKING&&(0, _validate.validateChild)(node,subkey,v);}}return validator.each=callback,validator}function assertNodeType(...types){function validate(node,key,val){for(const type of types)if((0, _is.default)(type,val))return void(0, _validate.validateChild)(node,key,val);throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null==val?void 0:val.type)}`)}return validate.oneOfNodeTypes=types,validate}function assertValueType(type){function validate(node,key,val){if(!(getType(val)===type))throw new TypeError(`Property ${key} expected type of ${type} but got ${getType(val)}`)}return validate.type=type,validate}function chain(...fns){function validate(...args){for(const fn of fns)fn(...args);}if(validate.chainOf=fns,fns.length>=2&&"type"in fns[0]&&"array"===fns[0].type&&!("each"in fns[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return validate}exports.NODE_PARENT_VALIDATIONS=NODE_PARENT_VALIDATIONS;const validTypeOpts=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],validFieldKeys=["default","optional","validate"];function defineType(type,opts={}){const inherits=opts.inherits&&store[opts.inherits]||{};let fields=opts.fields;if(!fields&&(fields={},inherits.fields)){const keys=Object.getOwnPropertyNames(inherits.fields);for(const key of keys){const field=inherits.fields[key],def=field.default;if(Array.isArray(def)?def.length>0:def&&"object"==typeof def)throw new Error("field defaults can only be primitives or empty arrays currently");fields[key]={default:Array.isArray(def)?[]:def,optional:field.optional,validate:field.validate};}}const visitor=opts.visitor||inherits.visitor||[],aliases=opts.aliases||inherits.aliases||[],builder=opts.builder||inherits.builder||opts.visitor||[];for(const k of Object.keys(opts))if(-1===validTypeOpts.indexOf(k))throw new Error(`Unknown type option "${k}" on ${type}`);opts.deprecatedAlias&&(DEPRECATED_KEYS[opts.deprecatedAlias]=type);for(const key of visitor.concat(builder))fields[key]=fields[key]||{};for(const key of Object.keys(fields)){const field=fields[key];void 0!==field.default&&-1===builder.indexOf(key)&&(field.optional=!0),void 0===field.default?field.default=null:field.validate||null==field.default||(field.validate=assertValueType(getType(field.default)));for(const k of Object.keys(field))if(-1===validFieldKeys.indexOf(k))throw new Error(`Unknown field key "${k}" on ${type}.${key}`)}VISITOR_KEYS[type]=opts.visitor=visitor,BUILDER_KEYS[type]=opts.builder=builder,NODE_FIELDS[type]=opts.fields=fields,ALIAS_KEYS[type]=opts.aliases=aliases,aliases.forEach((alias=>{FLIPPED_ALIAS_KEYS[alias]=FLIPPED_ALIAS_KEYS[alias]||[],FLIPPED_ALIAS_KEYS[alias].push(type);})),opts.validate&&(NODE_PARENT_VALIDATIONS[type]=opts.validate),store[type]=opts;}const store={};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toSequenceExpression:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0};Object.defineProperty(exports,"addComment",{enumerable:!0,get:function(){return _addComment.default}}),Object.defineProperty(exports,"addComments",{enumerable:!0,get:function(){return _addComments.default}}),Object.defineProperty(exports,"appendToMemberExpression",{enumerable:!0,get:function(){return _appendToMemberExpression.default}}),Object.defineProperty(exports,"assertNode",{enumerable:!0,get:function(){return _assertNode.default}}),Object.defineProperty(exports,"buildMatchMemberExpression",{enumerable:!0,get:function(){return _buildMatchMemberExpression.default}}),Object.defineProperty(exports,"clone",{enumerable:!0,get:function(){return _clone.default}}),Object.defineProperty(exports,"cloneDeep",{enumerable:!0,get:function(){return _cloneDeep.default}}),Object.defineProperty(exports,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return _cloneDeepWithoutLoc.default}}),Object.defineProperty(exports,"cloneNode",{enumerable:!0,get:function(){return _cloneNode.default}}),Object.defineProperty(exports,"cloneWithoutLoc",{enumerable:!0,get:function(){return _cloneWithoutLoc.default}}),Object.defineProperty(exports,"createFlowUnionType",{enumerable:!0,get:function(){return _createFlowUnionType.default}}),Object.defineProperty(exports,"createTSUnionType",{enumerable:!0,get:function(){return _createTSUnionType.default}}),Object.defineProperty(exports,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return _createTypeAnnotationBasedOnTypeof.default}}),Object.defineProperty(exports,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return _createFlowUnionType.default}}),Object.defineProperty(exports,"ensureBlock",{enumerable:!0,get:function(){return _ensureBlock.default}}),Object.defineProperty(exports,"getBindingIdentifiers",{enumerable:!0,get:function(){return _getBindingIdentifiers.default}}),Object.defineProperty(exports,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return _getOuterBindingIdentifiers.default}}),Object.defineProperty(exports,"inheritInnerComments",{enumerable:!0,get:function(){return _inheritInnerComments.default}}),Object.defineProperty(exports,"inheritLeadingComments",{enumerable:!0,get:function(){return _inheritLeadingComments.default}}),Object.defineProperty(exports,"inheritTrailingComments",{enumerable:!0,get:function(){return _inheritTrailingComments.default}}),Object.defineProperty(exports,"inherits",{enumerable:!0,get:function(){return _inherits.default}}),Object.defineProperty(exports,"inheritsComments",{enumerable:!0,get:function(){return _inheritsComments.default}}),Object.defineProperty(exports,"is",{enumerable:!0,get:function(){return _is.default}}),Object.defineProperty(exports,"isBinding",{enumerable:!0,get:function(){return _isBinding.default}}),Object.defineProperty(exports,"isBlockScoped",{enumerable:!0,get:function(){return _isBlockScoped.default}}),Object.defineProperty(exports,"isImmutable",{enumerable:!0,get:function(){return _isImmutable.default}}),Object.defineProperty(exports,"isLet",{enumerable:!0,get:function(){return _isLet.default}}),Object.defineProperty(exports,"isNode",{enumerable:!0,get:function(){return _isNode.default}}),Object.defineProperty(exports,"isNodesEquivalent",{enumerable:!0,get:function(){return _isNodesEquivalent.default}}),Object.defineProperty(exports,"isPlaceholderType",{enumerable:!0,get:function(){return _isPlaceholderType.default}}),Object.defineProperty(exports,"isReferenced",{enumerable:!0,get:function(){return _isReferenced.default}}),Object.defineProperty(exports,"isScope",{enumerable:!0,get:function(){return _isScope.default}}),Object.defineProperty(exports,"isSpecifierDefault",{enumerable:!0,get:function(){return _isSpecifierDefault.default}}),Object.defineProperty(exports,"isType",{enumerable:!0,get:function(){return _isType.default}}),Object.defineProperty(exports,"isValidES3Identifier",{enumerable:!0,get:function(){return _isValidES3Identifier.default}}),Object.defineProperty(exports,"isValidIdentifier",{enumerable:!0,get:function(){return _isValidIdentifier.default}}),Object.defineProperty(exports,"isVar",{enumerable:!0,get:function(){return _isVar.default}}),Object.defineProperty(exports,"matchesPattern",{enumerable:!0,get:function(){return _matchesPattern.default}}),Object.defineProperty(exports,"prependToMemberExpression",{enumerable:!0,get:function(){return _prependToMemberExpression.default}}),exports.react=void 0,Object.defineProperty(exports,"removeComments",{enumerable:!0,get:function(){return _removeComments.default}}),Object.defineProperty(exports,"removeProperties",{enumerable:!0,get:function(){return _removeProperties.default}}),Object.defineProperty(exports,"removePropertiesDeep",{enumerable:!0,get:function(){return _removePropertiesDeep.default}}),Object.defineProperty(exports,"removeTypeDuplicates",{enumerable:!0,get:function(){return _removeTypeDuplicates.default}}),Object.defineProperty(exports,"shallowEqual",{enumerable:!0,get:function(){return _shallowEqual.default}}),Object.defineProperty(exports,"toBindingIdentifierName",{enumerable:!0,get:function(){return _toBindingIdentifierName.default}}),Object.defineProperty(exports,"toBlock",{enumerable:!0,get:function(){return _toBlock.default}}),Object.defineProperty(exports,"toComputedKey",{enumerable:!0,get:function(){return _toComputedKey.default}}),Object.defineProperty(exports,"toExpression",{enumerable:!0,get:function(){return _toExpression.default}}),Object.defineProperty(exports,"toIdentifier",{enumerable:!0,get:function(){return _toIdentifier.default}}),Object.defineProperty(exports,"toKeyAlias",{enumerable:!0,get:function(){return _toKeyAlias.default}}),Object.defineProperty(exports,"toSequenceExpression",{enumerable:!0,get:function(){return _toSequenceExpression.default}}),Object.defineProperty(exports,"toStatement",{enumerable:!0,get:function(){return _toStatement.default}}),Object.defineProperty(exports,"traverse",{enumerable:!0,get:function(){return _traverse.default}}),Object.defineProperty(exports,"traverseFast",{enumerable:!0,get:function(){return _traverseFast.default}}),Object.defineProperty(exports,"validate",{enumerable:!0,get:function(){return _validate.default}}),Object.defineProperty(exports,"valueToNode",{enumerable:!0,get:function(){return _valueToNode.default}});var _isReactComponent=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/react/isReactComponent.js"),_isCompatTag=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/react/isCompatTag.js"),_buildChildren=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/react/buildChildren.js"),_assertNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/asserts/assertNode.js"),_generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/asserts/generated/index.js");Object.keys(_generated).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated[key]}}));}));var _createTypeAnnotationBasedOnTypeof=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js"),_createFlowUnionType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js"),_createTSUnionType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js"),_generated2=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js");Object.keys(_generated2).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated2[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated2[key]}}));}));var _uppercase=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/uppercase.js");Object.keys(_uppercase).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_uppercase[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _uppercase[key]}}));}));var _cloneNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneNode.js"),_clone=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/clone.js"),_cloneDeep=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneDeep.js"),_cloneDeepWithoutLoc=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js"),_cloneWithoutLoc=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js"),_addComment=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/addComment.js"),_addComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/addComments.js"),_inheritInnerComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritInnerComments.js"),_inheritLeadingComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"),_inheritsComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritsComments.js"),_inheritTrailingComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"),_removeComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/removeComments.js"),_generated3=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/generated/index.js");Object.keys(_generated3).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated3[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated3[key]}}));}));var _constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js");Object.keys(_constants).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_constants[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _constants[key]}}));}));var _ensureBlock=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/ensureBlock.js"),_toBindingIdentifierName=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js"),_toBlock=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toBlock.js"),_toComputedKey=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toComputedKey.js"),_toExpression=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toExpression.js"),_toIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toIdentifier.js"),_toKeyAlias=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toKeyAlias.js"),_toSequenceExpression=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toSequenceExpression.js"),_toStatement=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/toStatement.js"),_valueToNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/converters/valueToNode.js"),_definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");Object.keys(_definitions).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_definitions[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _definitions[key]}}));}));var _appendToMemberExpression=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js"),_inherits=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/inherits.js"),_prependToMemberExpression=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js"),_removeProperties=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/removeProperties.js"),_removePropertiesDeep=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js"),_removeTypeDuplicates=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js"),_getBindingIdentifiers=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),_getOuterBindingIdentifiers=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js"),_traverse=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/traverse/traverse.js");Object.keys(_traverse).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_traverse[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _traverse[key]}}));}));var _traverseFast=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/traverse/traverseFast.js"),_shallowEqual=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/shallowEqual.js"),_is=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/is.js"),_isBinding=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isBinding.js"),_isBlockScoped=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isBlockScoped.js"),_isImmutable=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isImmutable.js"),_isLet=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isLet.js"),_isNode=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isNode.js"),_isNodesEquivalent=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isNodesEquivalent.js"),_isPlaceholderType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isPlaceholderType.js"),_isReferenced=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isReferenced.js"),_isScope=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isScope.js"),_isSpecifierDefault=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isSpecifierDefault.js"),_isType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isType.js"),_isValidES3Identifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidES3Identifier.js"),_isValidIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_isVar=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isVar.js"),_matchesPattern=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/matchesPattern.js"),_validate=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/validate.js"),_buildMatchMemberExpression=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js"),_generated4=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");Object.keys(_generated4).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated4[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated4[key]}}));}));var _generated5=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/ast-types/generated/index.js");Object.keys(_generated5).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated5[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated5[key]}}));}));const react={isReactComponent:_isReactComponent.default,isCompatTag:_isCompatTag.default,buildChildren:_buildChildren.default};exports.react=react;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(member,append,computed=!1){return member.object=(0, _generated.memberExpression)(member.object,member.property,member.computed),member.property=append,member.computed=!!computed,member};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function removeTypeDuplicates(nodes){const generics=new Map,bases=new Map,typeGroups=new Set,types=[];for(let i=0;i<nodes.length;i++){const node=nodes[i];if(node&&!(types.indexOf(node)>=0)){if((0, _generated.isAnyTypeAnnotation)(node))return [node];if((0, _generated.isFlowBaseAnnotation)(node))bases.set(node.type,node);else if((0, _generated.isUnionTypeAnnotation)(node))typeGroups.has(node.types)||(nodes=nodes.concat(node.types),typeGroups.add(node.types));else if((0, _generated.isGenericTypeAnnotation)(node)){const name=getQualifiedName(node.id);if(generics.has(name)){let existing=generics.get(name);existing.typeParameters?node.typeParameters&&(existing.typeParameters.params=removeTypeDuplicates(existing.typeParameters.params.concat(node.typeParameters.params))):existing=node.typeParameters;}else generics.set(name,node);}else types.push(node);}}for(const[,baseType]of bases)types.push(baseType);for(const[,genericName]of generics)types.push(genericName);return types};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");function getQualifiedName(node){return (0, _generated.isIdentifier)(node)?node.name:`${node.id.name}.${getQualifiedName(node.qualification)}`}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/inherits.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){if(!child||!parent)return child;for(const key of _constants.INHERIT_KEYS.optional)null==child[key]&&(child[key]=parent[key]);for(const key of Object.keys(parent))"_"===key[0]&&"__clone"!==key&&(child[key]=parent[key]);for(const key of _constants.INHERIT_KEYS.force)child[key]=parent[key];return (0, _inheritsComments.default)(child,parent),child};var _constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js"),_inheritsComments=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/comments/inheritsComments.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(member,prepend){if((0, _.isSuper)(member.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return member.object=(0, _generated.memberExpression)(prepend,member.object),member};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js"),_=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/removeProperties.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,opts={}){const map=opts.preserveComments?CLEAR_KEYS:CLEAR_KEYS_PLUS_COMMENTS;for(const key of map)null!=node[key]&&(node[key]=void 0);for(const key of Object.keys(node))"_"===key[0]&&null!=node[key]&&(node[key]=void 0);const symbols=Object.getOwnPropertySymbols(node);for(const sym of symbols)node[sym]=null;};var _constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js");const CLEAR_KEYS=["tokens","start","end","loc","raw","rawValue"],CLEAR_KEYS_PLUS_COMMENTS=[..._constants.COMMENT_KEYS,"comments",...CLEAR_KEYS];},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(tree,opts){return (0, _traverseFast.default)(tree,_removeProperties.default,opts),tree};var _traverseFast=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/traverse/traverseFast.js"),_removeProperties=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/removeProperties.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function removeTypeDuplicates(nodes){const generics=new Map,bases=new Map,typeGroups=new Set,types=[];for(let i=0;i<nodes.length;i++){const node=nodes[i];if(node&&!(types.indexOf(node)>=0)){if((0, _generated.isTSAnyKeyword)(node))return [node];if((0, _generated.isTSBaseType)(node))bases.set(node.type,node);else if((0, _generated.isTSUnionType)(node))typeGroups.has(node.types)||(nodes.push(...node.types),typeGroups.add(node.types));else if((0, _generated.isTSTypeReference)(node)&&node.typeParameters){const name=getQualifiedName(node.typeName);if(generics.has(name)){let existing=generics.get(name);existing.typeParameters?node.typeParameters&&(existing.typeParameters.params=removeTypeDuplicates(existing.typeParameters.params.concat(node.typeParameters.params))):existing=node.typeParameters;}else generics.set(name,node);}else types.push(node);}}for(const[,baseType]of bases)types.push(baseType);for(const[,genericName]of generics)types.push(genericName);return types};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");function getQualifiedName(node){return (0, _generated.isIdentifier)(node)?node.name:`${node.right.name}.${getQualifiedName(node.left)}`}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getBindingIdentifiers;var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");function getBindingIdentifiers(node,duplicates,outerOnly){const search=[].concat(node),ids=Object.create(null);for(;search.length;){const id=search.shift();if(!id)continue;const keys=getBindingIdentifiers.keys[id.type];if((0, _generated.isIdentifier)(id))if(duplicates){(ids[id.name]=ids[id.name]||[]).push(id);}else ids[id.name]=id;else if(!(0, _generated.isExportDeclaration)(id)||(0, _generated.isExportAllDeclaration)(id)){if(outerOnly){if((0, _generated.isFunctionDeclaration)(id)){search.push(id.id);continue}if((0, _generated.isFunctionExpression)(id))continue}if(keys)for(let i=0;i<keys.length;i++){const nodes=id[keys[i]];nodes&&(Array.isArray(nodes)?search.push(...nodes):search.push(nodes));}}else (0, _generated.isDeclaration)(id.declaration)&&search.push(id.declaration);}return ids}getBindingIdentifiers.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _getBindingIdentifiers=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),_default=function(node,duplicates){return (0, _getBindingIdentifiers.default)(node,duplicates,!0)};exports.default=_default;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/traverse/traverse.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,handlers,state){"function"==typeof handlers&&(handlers={enter:handlers});const{enter,exit}=handlers;traverseSimpleImpl(node,enter,exit,state,[]);};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");function traverseSimpleImpl(node,enter,exit,state,ancestors){const keys=_definitions.VISITOR_KEYS[node.type];if(keys){enter&&enter(node,ancestors,state);for(const key of keys){const subNode=node[key];if(Array.isArray(subNode))for(let i=0;i<subNode.length;i++){const child=subNode[i];child&&(ancestors.push({node,key,index:i}),traverseSimpleImpl(child,enter,exit,state,ancestors),ancestors.pop());}else subNode&&(ancestors.push({node,key}),traverseSimpleImpl(subNode,enter,exit,state,ancestors),ancestors.pop());}exit&&exit(node,ancestors,state);}}},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/traverse/traverseFast.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function traverseFast(node,enter,opts){if(!node)return;const keys=_definitions.VISITOR_KEYS[node.type];if(!keys)return;enter(node,opts=opts||{});for(const key of keys){const subNode=node[key];if(Array.isArray(subNode))for(const node of subNode)traverseFast(node,enter,opts);else traverseFast(subNode,enter,opts);}};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/inherit.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(key,child,parent){child&&parent&&(child[key]=Array.from(new Set([].concat(child[key],parent[key]).filter(Boolean))));};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,args){const lines=child.value.split(/\r\n|\n|\r/);let lastNonEmptyLine=0;for(let i=0;i<lines.length;i++)lines[i].match(/[^ \t]/)&&(lastNonEmptyLine=i);let str="";for(let i=0;i<lines.length;i++){const line=lines[i],isFirstLine=0===i,isLastLine=i===lines.length-1,isLastNonEmptyLine=i===lastNonEmptyLine;let trimmedLine=line.replace(/\t/g," ");isFirstLine||(trimmedLine=trimmedLine.replace(/^[ ]+/,"")),isLastLine||(trimmedLine=trimmedLine.replace(/[ ]+$/,"")),trimmedLine&&(isLastNonEmptyLine||(trimmedLine+=" "),str+=trimmedLine);}str&&args.push((0, _generated.stringLiteral)(str));};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/builders/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/shallowEqual.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(actual,expected){const keys=Object.keys(expected);for(const key of keys)if(actual[key]!==expected[key])return !1;return !0};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(match,allowPartial){const parts=match.split(".");return member=>(0, _matchesPattern.default)(member,parts,allowPartial)};var _matchesPattern=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/matchesPattern.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.isAccessor=function(node,opts){if(!node)return !1;if("ClassAccessorProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isAnyTypeAnnotation=function(node,opts){if(!node)return !1;if("AnyTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isArgumentPlaceholder=function(node,opts){if(!node)return !1;if("ArgumentPlaceholder"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isArrayExpression=function(node,opts){if(!node)return !1;if("ArrayExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isArrayPattern=function(node,opts){if(!node)return !1;if("ArrayPattern"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isArrayTypeAnnotation=function(node,opts){if(!node)return !1;if("ArrayTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isArrowFunctionExpression=function(node,opts){if(!node)return !1;if("ArrowFunctionExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isAssignmentExpression=function(node,opts){if(!node)return !1;if("AssignmentExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isAssignmentPattern=function(node,opts){if(!node)return !1;if("AssignmentPattern"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isAwaitExpression=function(node,opts){if(!node)return !1;if("AwaitExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBigIntLiteral=function(node,opts){if(!node)return !1;if("BigIntLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBinary=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BinaryExpression"===nodeType||"LogicalExpression"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBinaryExpression=function(node,opts){if(!node)return !1;if("BinaryExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBindExpression=function(node,opts){if(!node)return !1;if("BindExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBlock=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BlockStatement"===nodeType||"Program"===nodeType||"TSModuleBlock"===nodeType||"Placeholder"===nodeType&&"BlockStatement"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBlockParent=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BlockStatement"===nodeType||"CatchClause"===nodeType||"DoWhileStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"Program"===nodeType||"ObjectMethod"===nodeType||"SwitchStatement"===nodeType||"WhileStatement"===nodeType||"ArrowFunctionExpression"===nodeType||"ForOfStatement"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType||"StaticBlock"===nodeType||"TSModuleBlock"===nodeType||"Placeholder"===nodeType&&"BlockStatement"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBlockStatement=function(node,opts){if(!node)return !1;if("BlockStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBooleanLiteral=function(node,opts){if(!node)return !1;if("BooleanLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBooleanLiteralTypeAnnotation=function(node,opts){if(!node)return !1;if("BooleanLiteralTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBooleanTypeAnnotation=function(node,opts){if(!node)return !1;if("BooleanTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isBreakStatement=function(node,opts){if(!node)return !1;if("BreakStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isCallExpression=function(node,opts){if(!node)return !1;if("CallExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isCatchClause=function(node,opts){if(!node)return !1;if("CatchClause"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClass=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ClassExpression"===nodeType||"ClassDeclaration"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassAccessorProperty=function(node,opts){if(!node)return !1;if("ClassAccessorProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassBody=function(node,opts){if(!node)return !1;if("ClassBody"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassDeclaration=function(node,opts){if(!node)return !1;if("ClassDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassExpression=function(node,opts){if(!node)return !1;if("ClassExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassImplements=function(node,opts){if(!node)return !1;if("ClassImplements"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassMethod=function(node,opts){if(!node)return !1;if("ClassMethod"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassPrivateMethod=function(node,opts){if(!node)return !1;if("ClassPrivateMethod"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassPrivateProperty=function(node,opts){if(!node)return !1;if("ClassPrivateProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isClassProperty=function(node,opts){if(!node)return !1;if("ClassProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isCompletionStatement=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BreakStatement"===nodeType||"ContinueStatement"===nodeType||"ReturnStatement"===nodeType||"ThrowStatement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isConditional=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ConditionalExpression"===nodeType||"IfStatement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isConditionalExpression=function(node,opts){if(!node)return !1;if("ConditionalExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isContinueStatement=function(node,opts){if(!node)return !1;if("ContinueStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDebuggerStatement=function(node,opts){if(!node)return !1;if("DebuggerStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDecimalLiteral=function(node,opts){if(!node)return !1;if("DecimalLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclaration=function(node,opts){if(!node)return !1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"VariableDeclaration"===nodeType||"ClassDeclaration"===nodeType||"ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ImportDeclaration"===nodeType||"DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"InterfaceDeclaration"===nodeType||"OpaqueType"===nodeType||"TypeAlias"===nodeType||"EnumDeclaration"===nodeType||"TSDeclareFunction"===nodeType||"TSInterfaceDeclaration"===nodeType||"TSTypeAliasDeclaration"===nodeType||"TSEnumDeclaration"===nodeType||"TSModuleDeclaration"===nodeType||"Placeholder"===nodeType&&"Declaration"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareClass=function(node,opts){if(!node)return !1;if("DeclareClass"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareExportAllDeclaration=function(node,opts){if(!node)return !1;if("DeclareExportAllDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareExportDeclaration=function(node,opts){if(!node)return !1;if("DeclareExportDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareFunction=function(node,opts){if(!node)return !1;if("DeclareFunction"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareInterface=function(node,opts){if(!node)return !1;if("DeclareInterface"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareModule=function(node,opts){if(!node)return !1;if("DeclareModule"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareModuleExports=function(node,opts){if(!node)return !1;if("DeclareModuleExports"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareOpaqueType=function(node,opts){if(!node)return !1;if("DeclareOpaqueType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareTypeAlias=function(node,opts){if(!node)return !1;if("DeclareTypeAlias"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclareVariable=function(node,opts){if(!node)return !1;if("DeclareVariable"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDeclaredPredicate=function(node,opts){if(!node)return !1;if("DeclaredPredicate"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDecorator=function(node,opts){if(!node)return !1;if("Decorator"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDirective=function(node,opts){if(!node)return !1;if("Directive"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDirectiveLiteral=function(node,opts){if(!node)return !1;if("DirectiveLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDoExpression=function(node,opts){if(!node)return !1;if("DoExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isDoWhileStatement=function(node,opts){if(!node)return !1;if("DoWhileStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEmptyStatement=function(node,opts){if(!node)return !1;if("EmptyStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEmptyTypeAnnotation=function(node,opts){if(!node)return !1;if("EmptyTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumBody=function(node,opts){if(!node)return !1;const nodeType=node.type;if("EnumBooleanBody"===nodeType||"EnumNumberBody"===nodeType||"EnumStringBody"===nodeType||"EnumSymbolBody"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumBooleanBody=function(node,opts){if(!node)return !1;if("EnumBooleanBody"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumBooleanMember=function(node,opts){if(!node)return !1;if("EnumBooleanMember"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumDeclaration=function(node,opts){if(!node)return !1;if("EnumDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumDefaultedMember=function(node,opts){if(!node)return !1;if("EnumDefaultedMember"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumMember=function(node,opts){if(!node)return !1;const nodeType=node.type;if("EnumBooleanMember"===nodeType||"EnumNumberMember"===nodeType||"EnumStringMember"===nodeType||"EnumDefaultedMember"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumNumberBody=function(node,opts){if(!node)return !1;if("EnumNumberBody"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumNumberMember=function(node,opts){if(!node)return !1;if("EnumNumberMember"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumStringBody=function(node,opts){if(!node)return !1;if("EnumStringBody"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumStringMember=function(node,opts){if(!node)return !1;if("EnumStringMember"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isEnumSymbolBody=function(node,opts){if(!node)return !1;if("EnumSymbolBody"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExistsTypeAnnotation=function(node,opts){if(!node)return !1;if("ExistsTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportAllDeclaration=function(node,opts){if(!node)return !1;if("ExportAllDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportDeclaration=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportDefaultDeclaration=function(node,opts){if(!node)return !1;if("ExportDefaultDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportDefaultSpecifier=function(node,opts){if(!node)return !1;if("ExportDefaultSpecifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportNamedDeclaration=function(node,opts){if(!node)return !1;if("ExportNamedDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportNamespaceSpecifier=function(node,opts){if(!node)return !1;if("ExportNamespaceSpecifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExportSpecifier=function(node,opts){if(!node)return !1;if("ExportSpecifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExpression=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ArrayExpression"===nodeType||"AssignmentExpression"===nodeType||"BinaryExpression"===nodeType||"CallExpression"===nodeType||"ConditionalExpression"===nodeType||"FunctionExpression"===nodeType||"Identifier"===nodeType||"StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"LogicalExpression"===nodeType||"MemberExpression"===nodeType||"NewExpression"===nodeType||"ObjectExpression"===nodeType||"SequenceExpression"===nodeType||"ParenthesizedExpression"===nodeType||"ThisExpression"===nodeType||"UnaryExpression"===nodeType||"UpdateExpression"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassExpression"===nodeType||"MetaProperty"===nodeType||"Super"===nodeType||"TaggedTemplateExpression"===nodeType||"TemplateLiteral"===nodeType||"YieldExpression"===nodeType||"AwaitExpression"===nodeType||"Import"===nodeType||"BigIntLiteral"===nodeType||"OptionalMemberExpression"===nodeType||"OptionalCallExpression"===nodeType||"TypeCastExpression"===nodeType||"JSXElement"===nodeType||"JSXFragment"===nodeType||"BindExpression"===nodeType||"DoExpression"===nodeType||"RecordExpression"===nodeType||"TupleExpression"===nodeType||"DecimalLiteral"===nodeType||"ModuleExpression"===nodeType||"TopicReference"===nodeType||"PipelineTopicExpression"===nodeType||"PipelineBareFunction"===nodeType||"PipelinePrimaryTopicReference"===nodeType||"TSInstantiationExpression"===nodeType||"TSAsExpression"===nodeType||"TSTypeAssertion"===nodeType||"TSNonNullExpression"===nodeType||"Placeholder"===nodeType&&("Expression"===node.expectedNode||"Identifier"===node.expectedNode||"StringLiteral"===node.expectedNode))return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExpressionStatement=function(node,opts){if(!node)return !1;if("ExpressionStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isExpressionWrapper=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ExpressionStatement"===nodeType||"ParenthesizedExpression"===nodeType||"TypeCastExpression"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFile=function(node,opts){if(!node)return !1;if("File"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFlow=function(node,opts){if(!node)return !1;const nodeType=node.type;if("AnyTypeAnnotation"===nodeType||"ArrayTypeAnnotation"===nodeType||"BooleanTypeAnnotation"===nodeType||"BooleanLiteralTypeAnnotation"===nodeType||"NullLiteralTypeAnnotation"===nodeType||"ClassImplements"===nodeType||"DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"DeclaredPredicate"===nodeType||"ExistsTypeAnnotation"===nodeType||"FunctionTypeAnnotation"===nodeType||"FunctionTypeParam"===nodeType||"GenericTypeAnnotation"===nodeType||"InferredPredicate"===nodeType||"InterfaceExtends"===nodeType||"InterfaceDeclaration"===nodeType||"InterfaceTypeAnnotation"===nodeType||"IntersectionTypeAnnotation"===nodeType||"MixedTypeAnnotation"===nodeType||"EmptyTypeAnnotation"===nodeType||"NullableTypeAnnotation"===nodeType||"NumberLiteralTypeAnnotation"===nodeType||"NumberTypeAnnotation"===nodeType||"ObjectTypeAnnotation"===nodeType||"ObjectTypeInternalSlot"===nodeType||"ObjectTypeCallProperty"===nodeType||"ObjectTypeIndexer"===nodeType||"ObjectTypeProperty"===nodeType||"ObjectTypeSpreadProperty"===nodeType||"OpaqueType"===nodeType||"QualifiedTypeIdentifier"===nodeType||"StringLiteralTypeAnnotation"===nodeType||"StringTypeAnnotation"===nodeType||"SymbolTypeAnnotation"===nodeType||"ThisTypeAnnotation"===nodeType||"TupleTypeAnnotation"===nodeType||"TypeofTypeAnnotation"===nodeType||"TypeAlias"===nodeType||"TypeAnnotation"===nodeType||"TypeCastExpression"===nodeType||"TypeParameter"===nodeType||"TypeParameterDeclaration"===nodeType||"TypeParameterInstantiation"===nodeType||"UnionTypeAnnotation"===nodeType||"Variance"===nodeType||"VoidTypeAnnotation"===nodeType||"EnumDeclaration"===nodeType||"EnumBooleanBody"===nodeType||"EnumNumberBody"===nodeType||"EnumStringBody"===nodeType||"EnumSymbolBody"===nodeType||"EnumBooleanMember"===nodeType||"EnumNumberMember"===nodeType||"EnumStringMember"===nodeType||"EnumDefaultedMember"===nodeType||"IndexedAccessType"===nodeType||"OptionalIndexedAccessType"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFlowBaseAnnotation=function(node,opts){if(!node)return !1;const nodeType=node.type;if("AnyTypeAnnotation"===nodeType||"BooleanTypeAnnotation"===nodeType||"NullLiteralTypeAnnotation"===nodeType||"MixedTypeAnnotation"===nodeType||"EmptyTypeAnnotation"===nodeType||"NumberTypeAnnotation"===nodeType||"StringTypeAnnotation"===nodeType||"SymbolTypeAnnotation"===nodeType||"ThisTypeAnnotation"===nodeType||"VoidTypeAnnotation"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFlowDeclaration=function(node,opts){if(!node)return !1;const nodeType=node.type;if("DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"InterfaceDeclaration"===nodeType||"OpaqueType"===nodeType||"TypeAlias"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFlowPredicate=function(node,opts){if(!node)return !1;const nodeType=node.type;if("DeclaredPredicate"===nodeType||"InferredPredicate"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFlowType=function(node,opts){if(!node)return !1;const nodeType=node.type;if("AnyTypeAnnotation"===nodeType||"ArrayTypeAnnotation"===nodeType||"BooleanTypeAnnotation"===nodeType||"BooleanLiteralTypeAnnotation"===nodeType||"NullLiteralTypeAnnotation"===nodeType||"ExistsTypeAnnotation"===nodeType||"FunctionTypeAnnotation"===nodeType||"GenericTypeAnnotation"===nodeType||"InterfaceTypeAnnotation"===nodeType||"IntersectionTypeAnnotation"===nodeType||"MixedTypeAnnotation"===nodeType||"EmptyTypeAnnotation"===nodeType||"NullableTypeAnnotation"===nodeType||"NumberLiteralTypeAnnotation"===nodeType||"NumberTypeAnnotation"===nodeType||"ObjectTypeAnnotation"===nodeType||"StringLiteralTypeAnnotation"===nodeType||"StringTypeAnnotation"===nodeType||"SymbolTypeAnnotation"===nodeType||"ThisTypeAnnotation"===nodeType||"TupleTypeAnnotation"===nodeType||"TypeofTypeAnnotation"===nodeType||"UnionTypeAnnotation"===nodeType||"VoidTypeAnnotation"===nodeType||"IndexedAccessType"===nodeType||"OptionalIndexedAccessType"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFor=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ForInStatement"===nodeType||"ForStatement"===nodeType||"ForOfStatement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isForInStatement=function(node,opts){if(!node)return !1;if("ForInStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isForOfStatement=function(node,opts){if(!node)return !1;if("ForOfStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isForStatement=function(node,opts){if(!node)return !1;if("ForStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isForXStatement=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ForInStatement"===nodeType||"ForOfStatement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFunction=function(node,opts){if(!node)return !1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"ObjectMethod"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFunctionDeclaration=function(node,opts){if(!node)return !1;if("FunctionDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFunctionExpression=function(node,opts){if(!node)return !1;if("FunctionExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFunctionParent=function(node,opts){if(!node)return !1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"ObjectMethod"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType||"StaticBlock"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFunctionTypeAnnotation=function(node,opts){if(!node)return !1;if("FunctionTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isFunctionTypeParam=function(node,opts){if(!node)return !1;if("FunctionTypeParam"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isGenericTypeAnnotation=function(node,opts){if(!node)return !1;if("GenericTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isIdentifier=function(node,opts){if(!node)return !1;if("Identifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isIfStatement=function(node,opts){if(!node)return !1;if("IfStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImmutable=function(node,opts){if(!node)return !1;const nodeType=node.type;if("StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"BigIntLiteral"===nodeType||"JSXAttribute"===nodeType||"JSXClosingElement"===nodeType||"JSXElement"===nodeType||"JSXExpressionContainer"===nodeType||"JSXSpreadChild"===nodeType||"JSXOpeningElement"===nodeType||"JSXText"===nodeType||"JSXFragment"===nodeType||"JSXOpeningFragment"===nodeType||"JSXClosingFragment"===nodeType||"DecimalLiteral"===nodeType||"Placeholder"===nodeType&&"StringLiteral"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImport=function(node,opts){if(!node)return !1;if("Import"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImportAttribute=function(node,opts){if(!node)return !1;if("ImportAttribute"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImportDeclaration=function(node,opts){if(!node)return !1;if("ImportDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImportDefaultSpecifier=function(node,opts){if(!node)return !1;if("ImportDefaultSpecifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImportNamespaceSpecifier=function(node,opts){if(!node)return !1;if("ImportNamespaceSpecifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isImportSpecifier=function(node,opts){if(!node)return !1;if("ImportSpecifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isIndexedAccessType=function(node,opts){if(!node)return !1;if("IndexedAccessType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isInferredPredicate=function(node,opts){if(!node)return !1;if("InferredPredicate"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isInterfaceDeclaration=function(node,opts){if(!node)return !1;if("InterfaceDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isInterfaceExtends=function(node,opts){if(!node)return !1;if("InterfaceExtends"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isInterfaceTypeAnnotation=function(node,opts){if(!node)return !1;if("InterfaceTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isInterpreterDirective=function(node,opts){if(!node)return !1;if("InterpreterDirective"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isIntersectionTypeAnnotation=function(node,opts){if(!node)return !1;if("IntersectionTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSX=function(node,opts){if(!node)return !1;const nodeType=node.type;if("JSXAttribute"===nodeType||"JSXClosingElement"===nodeType||"JSXElement"===nodeType||"JSXEmptyExpression"===nodeType||"JSXExpressionContainer"===nodeType||"JSXSpreadChild"===nodeType||"JSXIdentifier"===nodeType||"JSXMemberExpression"===nodeType||"JSXNamespacedName"===nodeType||"JSXOpeningElement"===nodeType||"JSXSpreadAttribute"===nodeType||"JSXText"===nodeType||"JSXFragment"===nodeType||"JSXOpeningFragment"===nodeType||"JSXClosingFragment"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXAttribute=function(node,opts){if(!node)return !1;if("JSXAttribute"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXClosingElement=function(node,opts){if(!node)return !1;if("JSXClosingElement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXClosingFragment=function(node,opts){if(!node)return !1;if("JSXClosingFragment"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXElement=function(node,opts){if(!node)return !1;if("JSXElement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXEmptyExpression=function(node,opts){if(!node)return !1;if("JSXEmptyExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXExpressionContainer=function(node,opts){if(!node)return !1;if("JSXExpressionContainer"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXFragment=function(node,opts){if(!node)return !1;if("JSXFragment"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXIdentifier=function(node,opts){if(!node)return !1;if("JSXIdentifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXMemberExpression=function(node,opts){if(!node)return !1;if("JSXMemberExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXNamespacedName=function(node,opts){if(!node)return !1;if("JSXNamespacedName"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXOpeningElement=function(node,opts){if(!node)return !1;if("JSXOpeningElement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXOpeningFragment=function(node,opts){if(!node)return !1;if("JSXOpeningFragment"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXSpreadAttribute=function(node,opts){if(!node)return !1;if("JSXSpreadAttribute"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXSpreadChild=function(node,opts){if(!node)return !1;if("JSXSpreadChild"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isJSXText=function(node,opts){if(!node)return !1;if("JSXText"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isLVal=function(node,opts){if(!node)return !1;const nodeType=node.type;if("Identifier"===nodeType||"MemberExpression"===nodeType||"RestElement"===nodeType||"AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ObjectPattern"===nodeType||"TSParameterProperty"===nodeType||"TSAsExpression"===nodeType||"TSTypeAssertion"===nodeType||"TSNonNullExpression"===nodeType||"Placeholder"===nodeType&&("Pattern"===node.expectedNode||"Identifier"===node.expectedNode))return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isLabeledStatement=function(node,opts){if(!node)return !1;if("LabeledStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isLiteral=function(node,opts){if(!node)return !1;const nodeType=node.type;if("StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"TemplateLiteral"===nodeType||"BigIntLiteral"===nodeType||"DecimalLiteral"===nodeType||"Placeholder"===nodeType&&"StringLiteral"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isLogicalExpression=function(node,opts){if(!node)return !1;if("LogicalExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isLoop=function(node,opts){if(!node)return !1;const nodeType=node.type;if("DoWhileStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"WhileStatement"===nodeType||"ForOfStatement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isMemberExpression=function(node,opts){if(!node)return !1;if("MemberExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isMetaProperty=function(node,opts){if(!node)return !1;if("MetaProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isMethod=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ObjectMethod"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isMiscellaneous=function(node,opts){if(!node)return !1;const nodeType=node.type;if("Noop"===nodeType||"Placeholder"===nodeType||"V8IntrinsicIdentifier"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isMixedTypeAnnotation=function(node,opts){if(!node)return !1;if("MixedTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isModuleDeclaration=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ImportDeclaration"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isModuleExpression=function(node,opts){if(!node)return !1;if("ModuleExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isModuleSpecifier=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ExportSpecifier"===nodeType||"ImportDefaultSpecifier"===nodeType||"ImportNamespaceSpecifier"===nodeType||"ImportSpecifier"===nodeType||"ExportNamespaceSpecifier"===nodeType||"ExportDefaultSpecifier"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNewExpression=function(node,opts){if(!node)return !1;if("NewExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNoop=function(node,opts){if(!node)return !1;if("Noop"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNullLiteral=function(node,opts){if(!node)return !1;if("NullLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNullLiteralTypeAnnotation=function(node,opts){if(!node)return !1;if("NullLiteralTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNullableTypeAnnotation=function(node,opts){if(!node)return !1;if("NullableTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNumberLiteral=function(node,opts){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!node)return !1;if("NumberLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNumberLiteralTypeAnnotation=function(node,opts){if(!node)return !1;if("NumberLiteralTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNumberTypeAnnotation=function(node,opts){if(!node)return !1;if("NumberTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isNumericLiteral=function(node,opts){if(!node)return !1;if("NumericLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectExpression=function(node,opts){if(!node)return !1;if("ObjectExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectMember=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ObjectMethod"===nodeType||"ObjectProperty"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectMethod=function(node,opts){if(!node)return !1;if("ObjectMethod"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectPattern=function(node,opts){if(!node)return !1;if("ObjectPattern"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectProperty=function(node,opts){if(!node)return !1;if("ObjectProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectTypeAnnotation=function(node,opts){if(!node)return !1;if("ObjectTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectTypeCallProperty=function(node,opts){if(!node)return !1;if("ObjectTypeCallProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectTypeIndexer=function(node,opts){if(!node)return !1;if("ObjectTypeIndexer"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectTypeInternalSlot=function(node,opts){if(!node)return !1;if("ObjectTypeInternalSlot"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectTypeProperty=function(node,opts){if(!node)return !1;if("ObjectTypeProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isObjectTypeSpreadProperty=function(node,opts){if(!node)return !1;if("ObjectTypeSpreadProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isOpaqueType=function(node,opts){if(!node)return !1;if("OpaqueType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isOptionalCallExpression=function(node,opts){if(!node)return !1;if("OptionalCallExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isOptionalIndexedAccessType=function(node,opts){if(!node)return !1;if("OptionalIndexedAccessType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isOptionalMemberExpression=function(node,opts){if(!node)return !1;if("OptionalMemberExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isParenthesizedExpression=function(node,opts){if(!node)return !1;if("ParenthesizedExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPattern=function(node,opts){if(!node)return !1;const nodeType=node.type;if("AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ObjectPattern"===nodeType||"Placeholder"===nodeType&&"Pattern"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPatternLike=function(node,opts){if(!node)return !1;const nodeType=node.type;if("Identifier"===nodeType||"RestElement"===nodeType||"AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ObjectPattern"===nodeType||"TSAsExpression"===nodeType||"TSTypeAssertion"===nodeType||"TSNonNullExpression"===nodeType||"Placeholder"===nodeType&&("Pattern"===node.expectedNode||"Identifier"===node.expectedNode))return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPipelineBareFunction=function(node,opts){if(!node)return !1;if("PipelineBareFunction"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPipelinePrimaryTopicReference=function(node,opts){if(!node)return !1;if("PipelinePrimaryTopicReference"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPipelineTopicExpression=function(node,opts){if(!node)return !1;if("PipelineTopicExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPlaceholder=function(node,opts){if(!node)return !1;if("Placeholder"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPrivate=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ClassPrivateProperty"===nodeType||"ClassPrivateMethod"===nodeType||"PrivateName"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPrivateName=function(node,opts){if(!node)return !1;if("PrivateName"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isProgram=function(node,opts){if(!node)return !1;if("Program"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isProperty=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ObjectProperty"===nodeType||"ClassProperty"===nodeType||"ClassAccessorProperty"===nodeType||"ClassPrivateProperty"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isPureish=function(node,opts){if(!node)return !1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"ArrowFunctionExpression"===nodeType||"BigIntLiteral"===nodeType||"DecimalLiteral"===nodeType||"Placeholder"===nodeType&&"StringLiteral"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isQualifiedTypeIdentifier=function(node,opts){if(!node)return !1;if("QualifiedTypeIdentifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isRecordExpression=function(node,opts){if(!node)return !1;if("RecordExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isRegExpLiteral=function(node,opts){if(!node)return !1;if("RegExpLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isRegexLiteral=function(node,opts){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!node)return !1;if("RegexLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isRestElement=function(node,opts){if(!node)return !1;if("RestElement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isRestProperty=function(node,opts){if(console.trace("The node type RestProperty has been renamed to RestElement"),!node)return !1;if("RestProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isReturnStatement=function(node,opts){if(!node)return !1;if("ReturnStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isScopable=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BlockStatement"===nodeType||"CatchClause"===nodeType||"DoWhileStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"Program"===nodeType||"ObjectMethod"===nodeType||"SwitchStatement"===nodeType||"WhileStatement"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassExpression"===nodeType||"ClassDeclaration"===nodeType||"ForOfStatement"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType||"StaticBlock"===nodeType||"TSModuleBlock"===nodeType||"Placeholder"===nodeType&&"BlockStatement"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSequenceExpression=function(node,opts){if(!node)return !1;if("SequenceExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSpreadElement=function(node,opts){if(!node)return !1;if("SpreadElement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSpreadProperty=function(node,opts){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!node)return !1;if("SpreadProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isStandardized=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ArrayExpression"===nodeType||"AssignmentExpression"===nodeType||"BinaryExpression"===nodeType||"InterpreterDirective"===nodeType||"Directive"===nodeType||"DirectiveLiteral"===nodeType||"BlockStatement"===nodeType||"BreakStatement"===nodeType||"CallExpression"===nodeType||"CatchClause"===nodeType||"ConditionalExpression"===nodeType||"ContinueStatement"===nodeType||"DebuggerStatement"===nodeType||"DoWhileStatement"===nodeType||"EmptyStatement"===nodeType||"ExpressionStatement"===nodeType||"File"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"Identifier"===nodeType||"IfStatement"===nodeType||"LabeledStatement"===nodeType||"StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"LogicalExpression"===nodeType||"MemberExpression"===nodeType||"NewExpression"===nodeType||"Program"===nodeType||"ObjectExpression"===nodeType||"ObjectMethod"===nodeType||"ObjectProperty"===nodeType||"RestElement"===nodeType||"ReturnStatement"===nodeType||"SequenceExpression"===nodeType||"ParenthesizedExpression"===nodeType||"SwitchCase"===nodeType||"SwitchStatement"===nodeType||"ThisExpression"===nodeType||"ThrowStatement"===nodeType||"TryStatement"===nodeType||"UnaryExpression"===nodeType||"UpdateExpression"===nodeType||"VariableDeclaration"===nodeType||"VariableDeclarator"===nodeType||"WhileStatement"===nodeType||"WithStatement"===nodeType||"AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassBody"===nodeType||"ClassExpression"===nodeType||"ClassDeclaration"===nodeType||"ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ExportSpecifier"===nodeType||"ForOfStatement"===nodeType||"ImportDeclaration"===nodeType||"ImportDefaultSpecifier"===nodeType||"ImportNamespaceSpecifier"===nodeType||"ImportSpecifier"===nodeType||"MetaProperty"===nodeType||"ClassMethod"===nodeType||"ObjectPattern"===nodeType||"SpreadElement"===nodeType||"Super"===nodeType||"TaggedTemplateExpression"===nodeType||"TemplateElement"===nodeType||"TemplateLiteral"===nodeType||"YieldExpression"===nodeType||"AwaitExpression"===nodeType||"Import"===nodeType||"BigIntLiteral"===nodeType||"ExportNamespaceSpecifier"===nodeType||"OptionalMemberExpression"===nodeType||"OptionalCallExpression"===nodeType||"ClassProperty"===nodeType||"ClassAccessorProperty"===nodeType||"ClassPrivateProperty"===nodeType||"ClassPrivateMethod"===nodeType||"PrivateName"===nodeType||"StaticBlock"===nodeType||"Placeholder"===nodeType&&("Identifier"===node.expectedNode||"StringLiteral"===node.expectedNode||"BlockStatement"===node.expectedNode||"ClassBody"===node.expectedNode))return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isStatement=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BlockStatement"===nodeType||"BreakStatement"===nodeType||"ContinueStatement"===nodeType||"DebuggerStatement"===nodeType||"DoWhileStatement"===nodeType||"EmptyStatement"===nodeType||"ExpressionStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"IfStatement"===nodeType||"LabeledStatement"===nodeType||"ReturnStatement"===nodeType||"SwitchStatement"===nodeType||"ThrowStatement"===nodeType||"TryStatement"===nodeType||"VariableDeclaration"===nodeType||"WhileStatement"===nodeType||"WithStatement"===nodeType||"ClassDeclaration"===nodeType||"ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ForOfStatement"===nodeType||"ImportDeclaration"===nodeType||"DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"InterfaceDeclaration"===nodeType||"OpaqueType"===nodeType||"TypeAlias"===nodeType||"EnumDeclaration"===nodeType||"TSDeclareFunction"===nodeType||"TSInterfaceDeclaration"===nodeType||"TSTypeAliasDeclaration"===nodeType||"TSEnumDeclaration"===nodeType||"TSModuleDeclaration"===nodeType||"TSImportEqualsDeclaration"===nodeType||"TSExportAssignment"===nodeType||"TSNamespaceExportDeclaration"===nodeType||"Placeholder"===nodeType&&("Statement"===node.expectedNode||"Declaration"===node.expectedNode||"BlockStatement"===node.expectedNode))return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isStaticBlock=function(node,opts){if(!node)return !1;if("StaticBlock"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isStringLiteral=function(node,opts){if(!node)return !1;if("StringLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isStringLiteralTypeAnnotation=function(node,opts){if(!node)return !1;if("StringLiteralTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isStringTypeAnnotation=function(node,opts){if(!node)return !1;if("StringTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSuper=function(node,opts){if(!node)return !1;if("Super"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSwitchCase=function(node,opts){if(!node)return !1;if("SwitchCase"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSwitchStatement=function(node,opts){if(!node)return !1;if("SwitchStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isSymbolTypeAnnotation=function(node,opts){if(!node)return !1;if("SymbolTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSAnyKeyword=function(node,opts){if(!node)return !1;if("TSAnyKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSArrayType=function(node,opts){if(!node)return !1;if("TSArrayType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSAsExpression=function(node,opts){if(!node)return !1;if("TSAsExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSBaseType=function(node,opts){if(!node)return !1;const nodeType=node.type;if("TSAnyKeyword"===nodeType||"TSBooleanKeyword"===nodeType||"TSBigIntKeyword"===nodeType||"TSIntrinsicKeyword"===nodeType||"TSNeverKeyword"===nodeType||"TSNullKeyword"===nodeType||"TSNumberKeyword"===nodeType||"TSObjectKeyword"===nodeType||"TSStringKeyword"===nodeType||"TSSymbolKeyword"===nodeType||"TSUndefinedKeyword"===nodeType||"TSUnknownKeyword"===nodeType||"TSVoidKeyword"===nodeType||"TSThisType"===nodeType||"TSLiteralType"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSBigIntKeyword=function(node,opts){if(!node)return !1;if("TSBigIntKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSBooleanKeyword=function(node,opts){if(!node)return !1;if("TSBooleanKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSCallSignatureDeclaration=function(node,opts){if(!node)return !1;if("TSCallSignatureDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSConditionalType=function(node,opts){if(!node)return !1;if("TSConditionalType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSConstructSignatureDeclaration=function(node,opts){if(!node)return !1;if("TSConstructSignatureDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSConstructorType=function(node,opts){if(!node)return !1;if("TSConstructorType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSDeclareFunction=function(node,opts){if(!node)return !1;if("TSDeclareFunction"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSDeclareMethod=function(node,opts){if(!node)return !1;if("TSDeclareMethod"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSEntityName=function(node,opts){if(!node)return !1;const nodeType=node.type;if("Identifier"===nodeType||"TSQualifiedName"===nodeType||"Placeholder"===nodeType&&"Identifier"===node.expectedNode)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSEnumDeclaration=function(node,opts){if(!node)return !1;if("TSEnumDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSEnumMember=function(node,opts){if(!node)return !1;if("TSEnumMember"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSExportAssignment=function(node,opts){if(!node)return !1;if("TSExportAssignment"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSExpressionWithTypeArguments=function(node,opts){if(!node)return !1;if("TSExpressionWithTypeArguments"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSExternalModuleReference=function(node,opts){if(!node)return !1;if("TSExternalModuleReference"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSFunctionType=function(node,opts){if(!node)return !1;if("TSFunctionType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSImportEqualsDeclaration=function(node,opts){if(!node)return !1;if("TSImportEqualsDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSImportType=function(node,opts){if(!node)return !1;if("TSImportType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSIndexSignature=function(node,opts){if(!node)return !1;if("TSIndexSignature"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSIndexedAccessType=function(node,opts){if(!node)return !1;if("TSIndexedAccessType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSInferType=function(node,opts){if(!node)return !1;if("TSInferType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSInstantiationExpression=function(node,opts){if(!node)return !1;if("TSInstantiationExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSInterfaceBody=function(node,opts){if(!node)return !1;if("TSInterfaceBody"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSInterfaceDeclaration=function(node,opts){if(!node)return !1;if("TSInterfaceDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSIntersectionType=function(node,opts){if(!node)return !1;if("TSIntersectionType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSIntrinsicKeyword=function(node,opts){if(!node)return !1;if("TSIntrinsicKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSLiteralType=function(node,opts){if(!node)return !1;if("TSLiteralType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSMappedType=function(node,opts){if(!node)return !1;if("TSMappedType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSMethodSignature=function(node,opts){if(!node)return !1;if("TSMethodSignature"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSModuleBlock=function(node,opts){if(!node)return !1;if("TSModuleBlock"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSModuleDeclaration=function(node,opts){if(!node)return !1;if("TSModuleDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSNamedTupleMember=function(node,opts){if(!node)return !1;if("TSNamedTupleMember"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSNamespaceExportDeclaration=function(node,opts){if(!node)return !1;if("TSNamespaceExportDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSNeverKeyword=function(node,opts){if(!node)return !1;if("TSNeverKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSNonNullExpression=function(node,opts){if(!node)return !1;if("TSNonNullExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSNullKeyword=function(node,opts){if(!node)return !1;if("TSNullKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSNumberKeyword=function(node,opts){if(!node)return !1;if("TSNumberKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSObjectKeyword=function(node,opts){if(!node)return !1;if("TSObjectKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSOptionalType=function(node,opts){if(!node)return !1;if("TSOptionalType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSParameterProperty=function(node,opts){if(!node)return !1;if("TSParameterProperty"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSParenthesizedType=function(node,opts){if(!node)return !1;if("TSParenthesizedType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSPropertySignature=function(node,opts){if(!node)return !1;if("TSPropertySignature"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSQualifiedName=function(node,opts){if(!node)return !1;if("TSQualifiedName"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSRestType=function(node,opts){if(!node)return !1;if("TSRestType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSStringKeyword=function(node,opts){if(!node)return !1;if("TSStringKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSSymbolKeyword=function(node,opts){if(!node)return !1;if("TSSymbolKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSThisType=function(node,opts){if(!node)return !1;if("TSThisType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTupleType=function(node,opts){if(!node)return !1;if("TSTupleType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSType=function(node,opts){if(!node)return !1;const nodeType=node.type;if("TSAnyKeyword"===nodeType||"TSBooleanKeyword"===nodeType||"TSBigIntKeyword"===nodeType||"TSIntrinsicKeyword"===nodeType||"TSNeverKeyword"===nodeType||"TSNullKeyword"===nodeType||"TSNumberKeyword"===nodeType||"TSObjectKeyword"===nodeType||"TSStringKeyword"===nodeType||"TSSymbolKeyword"===nodeType||"TSUndefinedKeyword"===nodeType||"TSUnknownKeyword"===nodeType||"TSVoidKeyword"===nodeType||"TSThisType"===nodeType||"TSFunctionType"===nodeType||"TSConstructorType"===nodeType||"TSTypeReference"===nodeType||"TSTypePredicate"===nodeType||"TSTypeQuery"===nodeType||"TSTypeLiteral"===nodeType||"TSArrayType"===nodeType||"TSTupleType"===nodeType||"TSOptionalType"===nodeType||"TSRestType"===nodeType||"TSUnionType"===nodeType||"TSIntersectionType"===nodeType||"TSConditionalType"===nodeType||"TSInferType"===nodeType||"TSParenthesizedType"===nodeType||"TSTypeOperator"===nodeType||"TSIndexedAccessType"===nodeType||"TSMappedType"===nodeType||"TSLiteralType"===nodeType||"TSExpressionWithTypeArguments"===nodeType||"TSImportType"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeAliasDeclaration=function(node,opts){if(!node)return !1;if("TSTypeAliasDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeAnnotation=function(node,opts){if(!node)return !1;if("TSTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeAssertion=function(node,opts){if(!node)return !1;if("TSTypeAssertion"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeElement=function(node,opts){if(!node)return !1;const nodeType=node.type;if("TSCallSignatureDeclaration"===nodeType||"TSConstructSignatureDeclaration"===nodeType||"TSPropertySignature"===nodeType||"TSMethodSignature"===nodeType||"TSIndexSignature"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeLiteral=function(node,opts){if(!node)return !1;if("TSTypeLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeOperator=function(node,opts){if(!node)return !1;if("TSTypeOperator"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeParameter=function(node,opts){if(!node)return !1;if("TSTypeParameter"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeParameterDeclaration=function(node,opts){if(!node)return !1;if("TSTypeParameterDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeParameterInstantiation=function(node,opts){if(!node)return !1;if("TSTypeParameterInstantiation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypePredicate=function(node,opts){if(!node)return !1;if("TSTypePredicate"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeQuery=function(node,opts){if(!node)return !1;if("TSTypeQuery"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSTypeReference=function(node,opts){if(!node)return !1;if("TSTypeReference"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSUndefinedKeyword=function(node,opts){if(!node)return !1;if("TSUndefinedKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSUnionType=function(node,opts){if(!node)return !1;if("TSUnionType"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSUnknownKeyword=function(node,opts){if(!node)return !1;if("TSUnknownKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTSVoidKeyword=function(node,opts){if(!node)return !1;if("TSVoidKeyword"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTaggedTemplateExpression=function(node,opts){if(!node)return !1;if("TaggedTemplateExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTemplateElement=function(node,opts){if(!node)return !1;if("TemplateElement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTemplateLiteral=function(node,opts){if(!node)return !1;if("TemplateLiteral"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTerminatorless=function(node,opts){if(!node)return !1;const nodeType=node.type;if("BreakStatement"===nodeType||"ContinueStatement"===nodeType||"ReturnStatement"===nodeType||"ThrowStatement"===nodeType||"YieldExpression"===nodeType||"AwaitExpression"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isThisExpression=function(node,opts){if(!node)return !1;if("ThisExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isThisTypeAnnotation=function(node,opts){if(!node)return !1;if("ThisTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isThrowStatement=function(node,opts){if(!node)return !1;if("ThrowStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTopicReference=function(node,opts){if(!node)return !1;if("TopicReference"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTryStatement=function(node,opts){if(!node)return !1;if("TryStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTupleExpression=function(node,opts){if(!node)return !1;if("TupleExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTupleTypeAnnotation=function(node,opts){if(!node)return !1;if("TupleTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeAlias=function(node,opts){if(!node)return !1;if("TypeAlias"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeAnnotation=function(node,opts){if(!node)return !1;if("TypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeCastExpression=function(node,opts){if(!node)return !1;if("TypeCastExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeParameter=function(node,opts){if(!node)return !1;if("TypeParameter"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeParameterDeclaration=function(node,opts){if(!node)return !1;if("TypeParameterDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeParameterInstantiation=function(node,opts){if(!node)return !1;if("TypeParameterInstantiation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeScript=function(node,opts){if(!node)return !1;const nodeType=node.type;if("TSParameterProperty"===nodeType||"TSDeclareFunction"===nodeType||"TSDeclareMethod"===nodeType||"TSQualifiedName"===nodeType||"TSCallSignatureDeclaration"===nodeType||"TSConstructSignatureDeclaration"===nodeType||"TSPropertySignature"===nodeType||"TSMethodSignature"===nodeType||"TSIndexSignature"===nodeType||"TSAnyKeyword"===nodeType||"TSBooleanKeyword"===nodeType||"TSBigIntKeyword"===nodeType||"TSIntrinsicKeyword"===nodeType||"TSNeverKeyword"===nodeType||"TSNullKeyword"===nodeType||"TSNumberKeyword"===nodeType||"TSObjectKeyword"===nodeType||"TSStringKeyword"===nodeType||"TSSymbolKeyword"===nodeType||"TSUndefinedKeyword"===nodeType||"TSUnknownKeyword"===nodeType||"TSVoidKeyword"===nodeType||"TSThisType"===nodeType||"TSFunctionType"===nodeType||"TSConstructorType"===nodeType||"TSTypeReference"===nodeType||"TSTypePredicate"===nodeType||"TSTypeQuery"===nodeType||"TSTypeLiteral"===nodeType||"TSArrayType"===nodeType||"TSTupleType"===nodeType||"TSOptionalType"===nodeType||"TSRestType"===nodeType||"TSNamedTupleMember"===nodeType||"TSUnionType"===nodeType||"TSIntersectionType"===nodeType||"TSConditionalType"===nodeType||"TSInferType"===nodeType||"TSParenthesizedType"===nodeType||"TSTypeOperator"===nodeType||"TSIndexedAccessType"===nodeType||"TSMappedType"===nodeType||"TSLiteralType"===nodeType||"TSExpressionWithTypeArguments"===nodeType||"TSInterfaceDeclaration"===nodeType||"TSInterfaceBody"===nodeType||"TSTypeAliasDeclaration"===nodeType||"TSInstantiationExpression"===nodeType||"TSAsExpression"===nodeType||"TSTypeAssertion"===nodeType||"TSEnumDeclaration"===nodeType||"TSEnumMember"===nodeType||"TSModuleDeclaration"===nodeType||"TSModuleBlock"===nodeType||"TSImportType"===nodeType||"TSImportEqualsDeclaration"===nodeType||"TSExternalModuleReference"===nodeType||"TSNonNullExpression"===nodeType||"TSExportAssignment"===nodeType||"TSNamespaceExportDeclaration"===nodeType||"TSTypeAnnotation"===nodeType||"TSTypeParameterInstantiation"===nodeType||"TSTypeParameterDeclaration"===nodeType||"TSTypeParameter"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isTypeofTypeAnnotation=function(node,opts){if(!node)return !1;if("TypeofTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isUnaryExpression=function(node,opts){if(!node)return !1;if("UnaryExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isUnaryLike=function(node,opts){if(!node)return !1;const nodeType=node.type;if("UnaryExpression"===nodeType||"SpreadElement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isUnionTypeAnnotation=function(node,opts){if(!node)return !1;if("UnionTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isUpdateExpression=function(node,opts){if(!node)return !1;if("UpdateExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isUserWhitespacable=function(node,opts){if(!node)return !1;const nodeType=node.type;if("ObjectMethod"===nodeType||"ObjectProperty"===nodeType||"ObjectTypeInternalSlot"===nodeType||"ObjectTypeCallProperty"===nodeType||"ObjectTypeIndexer"===nodeType||"ObjectTypeProperty"===nodeType||"ObjectTypeSpreadProperty"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isV8IntrinsicIdentifier=function(node,opts){if(!node)return !1;if("V8IntrinsicIdentifier"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isVariableDeclaration=function(node,opts){if(!node)return !1;if("VariableDeclaration"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isVariableDeclarator=function(node,opts){if(!node)return !1;if("VariableDeclarator"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isVariance=function(node,opts){if(!node)return !1;if("Variance"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isVoidTypeAnnotation=function(node,opts){if(!node)return !1;if("VoidTypeAnnotation"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isWhile=function(node,opts){if(!node)return !1;const nodeType=node.type;if("DoWhileStatement"===nodeType||"WhileStatement"===nodeType)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isWhileStatement=function(node,opts){if(!node)return !1;if("WhileStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isWithStatement=function(node,opts){if(!node)return !1;if("WithStatement"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1},exports.isYieldExpression=function(node,opts){if(!node)return !1;if("YieldExpression"===node.type)return void 0===opts||(0, _shallowEqual.default)(node,opts);return !1};var _shallowEqual=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/shallowEqual.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/is.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(type,node,opts){if(!node)return !1;if(!(0, _isType.default)(node.type,type))return !opts&&"Placeholder"===node.type&&type in _definitions.FLIPPED_ALIAS_KEYS&&(0, _isPlaceholderType.default)(node.expectedNode,type);return void 0===opts||(0, _shallowEqual.default)(node,opts)};var _shallowEqual=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/utils/shallowEqual.js"),_isType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isType.js"),_isPlaceholderType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isPlaceholderType.js"),_definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isBinding.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent,grandparent){if(grandparent&&"Identifier"===node.type&&"ObjectProperty"===parent.type&&"ObjectExpression"===grandparent.type)return !1;const keys=_getBindingIdentifiers.default.keys[parent.type];if(keys)for(let i=0;i<keys.length;i++){const key=keys[i],val=parent[key];if(Array.isArray(val)){if(val.indexOf(node)>=0)return !0}else if(val===node)return !0}return !1};var _getBindingIdentifiers=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isBlockScoped.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _generated.isFunctionDeclaration)(node)||(0, _generated.isClassDeclaration)(node)||(0, _isLet.default)(node)};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_isLet=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isLet.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isImmutable.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if((0, _isType.default)(node.type,"Immutable"))return !0;if((0, _generated.isIdentifier)(node))return "undefined"===node.name;return !1};var _isType=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isType.js"),_generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isLet.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _generated.isVariableDeclaration)(node)&&("var"!==node.kind||node[_constants.BLOCK_SCOPED_SYMBOL])};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return !(!node||!_definitions.VISITOR_KEYS[node.type])};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isNodesEquivalent.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function isNodesEquivalent(a,b){if("object"!=typeof a||"object"!=typeof b||null==a||null==b)return a===b;if(a.type!==b.type)return !1;const fields=Object.keys(_definitions.NODE_FIELDS[a.type]||a.type),visitorKeys=_definitions.VISITOR_KEYS[a.type];for(const field of fields){const val_a=a[field],val_b=b[field];if(typeof val_a!=typeof val_b)return !1;if(null!=val_a||null!=val_b){if(null==val_a||null==val_b)return !1;if(Array.isArray(val_a)){if(!Array.isArray(val_b))return !1;if(val_a.length!==val_b.length)return !1;for(let i=0;i<val_a.length;i++)if(!isNodesEquivalent(val_a[i],val_b[i]))return !1}else if("object"!=typeof val_a||null!=visitorKeys&&visitorKeys.includes(field)){if(!isNodesEquivalent(val_a,val_b))return !1}else for(const key of Object.keys(val_a))if(val_a[key]!==val_b[key])return !1}}return !0};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isPlaceholderType.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(placeholderType,targetType){if(placeholderType===targetType)return !0;const aliases=_definitions.PLACEHOLDERS_ALIAS[placeholderType];if(aliases)for(const alias of aliases)if(targetType===alias)return !0;return !1};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isReferenced.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent,grandparent){switch(parent.type){case"MemberExpression":case"OptionalMemberExpression":return parent.property===node?!!parent.computed:parent.object===node;case"JSXMemberExpression":return parent.object===node;case"VariableDeclarator":return parent.init===node;case"ArrowFunctionExpression":return parent.body===node;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return !1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return parent.key===node&&!!parent.computed;case"ObjectProperty":return parent.key===node?!!parent.computed:!grandparent||"ObjectPattern"!==grandparent.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return parent.key!==node||!!parent.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return parent.key!==node;case"ClassDeclaration":case"ClassExpression":return parent.superClass===node;case"AssignmentExpression":case"AssignmentPattern":return parent.right===node;case"ExportSpecifier":return (null==grandparent||!grandparent.source)&&parent.local===node;case"TSEnumMember":return parent.id!==node}return !0};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isScope.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent){if((0, _generated.isBlockStatement)(node)&&((0, _generated.isFunction)(parent)||(0, _generated.isCatchClause)(parent)))return !1;if((0, _generated.isPattern)(node)&&((0, _generated.isFunction)(parent)||(0, _generated.isCatchClause)(parent)))return !0;return (0, _generated.isScopable)(node)};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isSpecifierDefault.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(specifier){return (0, _generated.isImportDefaultSpecifier)(specifier)||(0, _generated.isIdentifier)(specifier.imported||specifier.exported,{name:"default"})};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isType.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(nodeType,targetType){if(nodeType===targetType)return !0;if(_definitions.ALIAS_KEYS[targetType])return !1;const aliases=_definitions.FLIPPED_ALIAS_KEYS[targetType];if(aliases){if(aliases[0]===nodeType)return !0;for(const alias of aliases)if(nodeType===alias)return !0}return !1};var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidES3Identifier.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(name){return (0, _isValidIdentifier.default)(name)&&!RESERVED_WORDS_ES3_ONLY.has(name)};var _isValidIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidIdentifier.js");const RESERVED_WORDS_ES3_ONLY=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isValidIdentifier.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(name,reserved=!0){if("string"!=typeof name)return !1;if(reserved&&((0, _helperValidatorIdentifier.isKeyword)(name)||(0, _helperValidatorIdentifier.isStrictReservedWord)(name,!0)))return !1;return (0, _helperValidatorIdentifier.isIdentifierName)(name)};var _helperValidatorIdentifier=__webpack_require__("./node_modules/.pnpm/@babel+helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/isVar.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return (0, _generated.isVariableDeclaration)(node,{kind:"var"})&&!node[_constants.BLOCK_SCOPED_SYMBOL]};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js"),_constants=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/constants/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/matchesPattern.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(member,match,allowPartial){if(!(0, _generated.isMemberExpression)(member))return !1;const parts=Array.isArray(match)?match:match.split("."),nodes=[];let node;for(node=member;(0, _generated.isMemberExpression)(node);node=node.object)nodes.push(node.property);if(nodes.push(node),nodes.length<parts.length)return !1;if(!allowPartial&&nodes.length>parts.length)return !1;for(let i=0,j=nodes.length-1;i<parts.length;i++,j--){const node=nodes[j];let value;if((0, _generated.isIdentifier)(node))value=node.name;else if((0, _generated.isStringLiteral)(node))value=node.value;else {if(!(0, _generated.isThisExpression)(node))return !1;value="this";}if(parts[i]!==value)return !1}return !0};var _generated=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/generated/index.js");},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/react/isCompatTag.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(tagName){return !!tagName&&/^[a-z]/.test(tagName)};},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/react/isReactComponent.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0, __webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js").default)("React.Component");exports.default=_default;},"./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/validators/validate.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,key,val){if(!node)return;const fields=_definitions.NODE_FIELDS[node.type];if(!fields)return;const field=fields[key];validateField(node,key,val,field),validateChild(node,key,val);},exports.validateChild=validateChild,exports.validateField=validateField;var _definitions=__webpack_require__("./node_modules/.pnpm/@babel+types@7.19.0/node_modules/@babel/types/lib/definitions/index.js");function validateField(node,key,val,field){null!=field&&field.validate&&(field.optional&&null==val||field.validate(node,key,val));}function validateChild(node,key,val){if(null==val)return;const validate=_definitions.NODE_PARENT_VALIDATIONS[val.type];validate&&validate(node,key,val);}},"./node_modules/.pnpm/@ampproject+remapping@2.2.0/node_modules/@ampproject/remapping/dist/remapping.mjs":(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>remapping});const comma=",".charCodeAt(0),semicolon=";".charCodeAt(0),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",intToChar=new Uint8Array(64),charToInt=new Uint8Array(128);for(let i=0;i<chars.length;i++){const c=chars.charCodeAt(i);intToChar[i]=c,charToInt[c]=i;}const td="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:buf=>Buffer.from(buf.buffer,buf.byteOffset,buf.byteLength).toString()}:{decode(buf){let out="";for(let i=0;i<buf.length;i++)out+=String.fromCharCode(buf[i]);return out}};function indexOf(mappings,index){const idx=mappings.indexOf(";",index);return -1===idx?mappings.length:idx}function decodeInteger(mappings,pos,state,j){let value=0,shift=0,integer=0;do{const c=mappings.charCodeAt(pos++);integer=charToInt[c],value|=(31&integer)<<shift,shift+=5;}while(32&integer);const shouldNegate=1&value;return value>>>=1,shouldNegate&&(value=-2147483648|-value),state[j]+=value,pos}function hasMoreVlq(mappings,i,length){return !(i>=length)&&mappings.charCodeAt(i)!==comma}function sort(line){line.sort(sortComparator);}function sortComparator(a,b){return a[0]-b[0]}function encode(decoded){const state=new Int32Array(5),buf=new Uint8Array(16384),sub=buf.subarray(0,16348);let pos=0,out="";for(let i=0;i<decoded.length;i++){const line=decoded[i];if(i>0&&(16384===pos&&(out+=td.decode(buf),pos=0),buf[pos++]=semicolon),0!==line.length){state[0]=0;for(let j=0;j<line.length;j++){const segment=line[j];pos>16348&&(out+=td.decode(sub),buf.copyWithin(0,16348,pos),pos-=16348),j>0&&(buf[pos++]=comma),pos=encodeInteger(buf,pos,state,segment,0),1!==segment.length&&(pos=encodeInteger(buf,pos,state,segment,1),pos=encodeInteger(buf,pos,state,segment,2),pos=encodeInteger(buf,pos,state,segment,3),4!==segment.length&&(pos=encodeInteger(buf,pos,state,segment,4)));}}}return out+td.decode(buf.subarray(0,pos))}function encodeInteger(buf,pos,state,segment,j){const next=segment[j];let num=next-state[j];state[j]=next,num=num<0?-num<<1|1:num<<1;do{let clamped=31&num;num>>>=5,num>0&&(clamped|=32),buf[pos++]=intToChar[clamped];}while(num>0);return pos}const schemeRegex=/^[\w+.-]+:\/\//,urlRegex=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/,fileRegex=/^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;function isAbsolutePath(input){return input.startsWith("/")}function parseAbsoluteUrl(input){const match=urlRegex.exec(input);return makeUrl(match[1],match[2]||"",match[3],match[4]||"",match[5]||"/")}function makeUrl(scheme,user,host,port,path){return {scheme,user,host,port,path,relativePath:!1}}function parseUrl(input){if(function(input){return input.startsWith("//")}(input)){const url=parseAbsoluteUrl("http:"+input);return url.scheme="",url}if(isAbsolutePath(input)){const url=parseAbsoluteUrl("http://foo.com"+input);return url.scheme="",url.host="",url}if(function(input){return input.startsWith("file:")}(input))return function(input){const match=fileRegex.exec(input),path=match[2];return makeUrl("file:","",match[1]||"","",isAbsolutePath(path)?path:"/"+path)}(input);if(function(input){return schemeRegex.test(input)}(input))return parseAbsoluteUrl(input);const url=parseAbsoluteUrl("http://foo.com/"+input);return url.scheme="",url.host="",url.relativePath=!0,url}function normalizePath(url){const{relativePath}=url,pieces=url.path.split("/");let pointer=1,positive=0,addTrailingSlash=!1;for(let i=1;i<pieces.length;i++){const piece=pieces[i];piece?(addTrailingSlash=!1,"."!==piece&&(".."!==piece?(pieces[pointer++]=piece,positive++):positive?(addTrailingSlash=!0,positive--,pointer--):relativePath&&(pieces[pointer++]=piece))):addTrailingSlash=!0;}let path="";for(let i=1;i<pointer;i++)path+="/"+pieces[i];(!path||addTrailingSlash&&!path.endsWith("/.."))&&(path+="/"),url.path=path;}function resolve(input,base){if(!input&&!base)return "";const url=parseUrl(input);if(base&&!url.scheme){const baseUrl=parseUrl(base);url.scheme=baseUrl.scheme,url.host||(url.user=baseUrl.user,url.host=baseUrl.host,url.port=baseUrl.port),function(url,base){url.relativePath&&(normalizePath(base),"/"===url.path?url.path=base.path:url.path=function(path){if(path.endsWith("/.."))return path;const index=path.lastIndexOf("/");return path.slice(0,index+1)}(base.path)+url.path,url.relativePath=base.relativePath);}(url,baseUrl);}if(normalizePath(url),url.relativePath){const path=url.path.slice(1);if(!path)return ".";return !(base||input).startsWith(".")||path.startsWith(".")?path:"./"+path}return url.scheme||url.host?`${url.scheme}//${url.user}${url.host}${url.port}${url.path}`:url.path}function trace_mapping_resolve(input,base){return base&&!base.endsWith("/")&&(base+="/"),resolve(input,base)}function nextUnsortedSegmentLine(mappings,start){for(let i=start;i<mappings.length;i++)if(!isSorted(mappings[i]))return i;return mappings.length}function isSorted(line){for(let j=1;j<line.length;j++)if(line[j][0]<line[j-1][0])return !1;return !0}function sortSegments(line,owned){return owned||(line=line.slice()),line.sort(trace_mapping_sortComparator)}function trace_mapping_sortComparator(a,b){return a[0]-b[0]}let found=!1;function upperBound(haystack,needle,index){for(let i=index+1;i<haystack.length&&haystack[i][0]===needle;index=i++);return index}function lowerBound(haystack,needle,index){for(let i=index-1;i>=0&&haystack[i][0]===needle;index=i--);return index}function memoizedBinarySearch(haystack,needle,state,key){const{lastKey,lastNeedle,lastIndex}=state;let low=0,high=haystack.length-1;if(key===lastKey){if(needle===lastNeedle)return found=-1!==lastIndex&&haystack[lastIndex][0]===needle,lastIndex;needle>=lastNeedle?low=-1===lastIndex?0:lastIndex:high=lastIndex;}return state.lastKey=key,state.lastNeedle=needle,state.lastIndex=function(haystack,needle,low,high){for(;low<=high;){const mid=low+(high-low>>1),cmp=haystack[mid][0]-needle;if(0===cmp)return found=!0,mid;cmp<0?low=mid+1:high=mid-1;}return found=!1,low-1}(haystack,needle,low,high)}let decodedMappings,traceSegment,get,put,addSegment,setSourceContent,gen_mapping_decodedMap,gen_mapping_encodedMap;class TraceMap{constructor(map,mapUrl){const isString="string"==typeof map;if(!isString&&map._decodedMemo)return map;const parsed=isString?JSON.parse(map):map,{version,file,names,sourceRoot,sources,sourcesContent}=parsed;this.version=version,this.file=file,this.names=names,this.sourceRoot=sourceRoot,this.sources=sources,this.sourcesContent=sourcesContent;const from=trace_mapping_resolve(sourceRoot||"",function(path){if(!path)return "";const index=path.lastIndexOf("/");return path.slice(0,index+1)}(mapUrl));this.resolvedSources=sources.map((s=>trace_mapping_resolve(s||"",from)));const{mappings}=parsed;"string"==typeof mappings?(this._encoded=mappings,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(mappings,owned){const unsortedIndex=nextUnsortedSegmentLine(mappings,0);if(unsortedIndex===mappings.length)return mappings;owned||(mappings=mappings.slice());for(let i=unsortedIndex;i<mappings.length;i=nextUnsortedSegmentLine(mappings,i+1))mappings[i]=sortSegments(mappings[i],owned);return mappings}(mappings,isString)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0;}}function traceSegmentInternal(segments,memo,line,column,bias){let index=memoizedBinarySearch(segments,column,memo,line);return found?index=(-1===bias?upperBound:lowerBound)(segments,column,index):-1===bias&&index++,-1===index||index===segments.length?null:segments[index]}decodedMappings=map=>map._decoded||(map._decoded=function(mappings){const state=new Int32Array(5),decoded=[];let index=0;do{const semi=indexOf(mappings,index),line=[];let sorted=!0,lastCol=0;state[0]=0;for(let i=index;i<semi;i++){let seg;i=decodeInteger(mappings,i,state,0);const col=state[0];col<lastCol&&(sorted=!1),lastCol=col,hasMoreVlq(mappings,i,semi)?(i=decodeInteger(mappings,i,state,1),i=decodeInteger(mappings,i,state,2),i=decodeInteger(mappings,i,state,3),hasMoreVlq(mappings,i,semi)?(i=decodeInteger(mappings,i,state,4),seg=[col,state[1],state[2],state[3],state[4]]):seg=[col,state[1],state[2],state[3]]):seg=[col],line.push(seg);}sorted||sort(line),decoded.push(line),index=semi+1;}while(index<=mappings.length);return decoded}(map._encoded)),traceSegment=(map,line,column)=>{const decoded=decodedMappings(map);return line>=decoded.length?null:traceSegmentInternal(decoded[line],map._decodedMemo,line,column,1)};class SetArray{constructor(){this._indexes={__proto__:null},this.array=[];}}get=(strarr,key)=>strarr._indexes[key],put=(strarr,key)=>{const index=get(strarr,key);if(void 0!==index)return index;const{array,_indexes:indexes}=strarr;return indexes[key]=array.push(key)-1};class GenMapping{constructor({file,sourceRoot}={}){this._names=new SetArray,this._sources=new SetArray,this._sourcesContent=[],this._mappings=[],this.file=file,this.sourceRoot=sourceRoot;}}function getColumnIndex(line,column,seg){let index=line.length;for(let i=index-1;i>=0;i--,index--){const current=line[i],col=current[0];if(col>column)continue;if(col<column)break;const cmp=compare(current,seg);if(0===cmp)return index;if(cmp<0)break}return index}function compare(a,b){let cmp=compareNum(a.length,b.length);return 0!==cmp?cmp:1===a.length?0:(cmp=compareNum(a[1],b[1]),0!==cmp?cmp:(cmp=compareNum(a[2],b[2]),0!==cmp?cmp:(cmp=compareNum(a[3],b[3]),0!==cmp?cmp:4===a.length?0:compareNum(a[4],b[4]))))}function compareNum(a,b){return a-b}function gen_mapping_insert(array,index,value){if(-1!==index){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value;}}addSegment=(map,genLine,genColumn,source,sourceLine,sourceColumn,name)=>{const{_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names}=map,line=function(mappings,index){for(let i=mappings.length;i<=index;i++)mappings[i]=[];return mappings[index]}(mappings,genLine);if(null==source){const seg=[genColumn];return gen_mapping_insert(line,getColumnIndex(line,genColumn,seg),seg)}const sourcesIndex=put(sources,source),seg=name?[genColumn,sourcesIndex,sourceLine,sourceColumn,put(names,name)]:[genColumn,sourcesIndex,sourceLine,sourceColumn],index=getColumnIndex(line,genColumn,seg);sourcesIndex===sourcesContent.length&&(sourcesContent[sourcesIndex]=null),gen_mapping_insert(line,index,seg);},setSourceContent=(map,source,content)=>{const{_sources:sources,_sourcesContent:sourcesContent}=map;sourcesContent[put(sources,source)]=content;},gen_mapping_decodedMap=map=>{const{file,sourceRoot,_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names}=map;return {version:3,file,names:names.array,sourceRoot:sourceRoot||void 0,sources:sources.array,sourcesContent,mappings}},gen_mapping_encodedMap=map=>{const decoded=gen_mapping_decodedMap(map);return Object.assign(Object.assign({},decoded),{mappings:encode(decoded.mappings)})};const SOURCELESS_MAPPING={source:null,column:null,line:null,name:null,content:null},EMPTY_SOURCES=[];function Source(map,sources,source,content){return {map,sources,source,content}}function MapSource(map,sources){return Source(map,sources,"",null)}function remapping_originalPositionFor(source,line,column,name){if(!source.map)return {column,line,name,source:source.source,content:source.content};const segment=traceSegment(source.map,line,column);return null==segment?null:1===segment.length?SOURCELESS_MAPPING:remapping_originalPositionFor(source.sources[segment[1]],segment[2],segment[3],5===segment.length?source.map.names[segment[4]]:name)}function buildSourceMapTree(input,loader){const maps=(value=input,Array.isArray(value)?value:[value]).map((m=>new TraceMap(m,"")));var value;const map=maps.pop();for(let i=0;i<maps.length;i++)if(maps[i].sources.length>1)throw new Error(`Transformation map ${i} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let tree=build(map,loader,"",0);for(let i=maps.length-1;i>=0;i--)tree=MapSource(maps[i],[tree]);return tree}function build(map,loader,importer,importerDepth){const{resolvedSources,sourcesContent}=map,depth=importerDepth+1;return MapSource(map,resolvedSources.map(((sourceFile,i)=>{const ctx={importer,depth,source:sourceFile||"",content:void 0},sourceMap=loader(ctx.source,ctx),{source,content}=ctx;if(sourceMap)return build(new TraceMap(sourceMap,source),loader,source,depth);return function(source,content){return Source(null,EMPTY_SOURCES,source,content)}(source,void 0!==content?content:sourcesContent?sourcesContent[i]:null)})))}class SourceMap{constructor(map,options){const out=options.decodedMappings?gen_mapping_decodedMap(map):gen_mapping_encodedMap(map);this.version=out.version,this.file=out.file,this.mappings=out.mappings,this.names=out.names,this.sourceRoot=out.sourceRoot,this.sources=out.sources,options.excludeContent||(this.sourcesContent=out.sourcesContent);}toString(){return JSON.stringify(this)}}function remapping(input,loader,options){const opts="object"==typeof options?options:{excludeContent:!!options,decodedMappings:!1},tree=buildSourceMapTree(input,loader);return new SourceMap(function(tree){const gen=new GenMapping({file:tree.map.file}),{sources:rootSources,map}=tree,rootNames=map.names,rootMappings=decodedMappings(map);for(let i=0;i<rootMappings.length;i++){const segments=rootMappings[i];let lastSource=null,lastSourceLine=null,lastSourceColumn=null;for(let j=0;j<segments.length;j++){const segment=segments[j],genCol=segment[0];let traced=SOURCELESS_MAPPING;if(1!==segment.length&&(traced=remapping_originalPositionFor(rootSources[segment[1]],segment[2],segment[3],5===segment.length?rootNames[segment[4]]:""),null==traced))continue;const{column,line,name,content,source}=traced;line===lastSourceLine&&column===lastSourceColumn&&source===lastSource||(lastSourceLine=line,lastSourceColumn=column,lastSource=source,addSegment(gen,i,genCol,source,line,column,name),null!=content&&setSourceContent(gen,source,content));}}return gen}(tree),opts)}},"./node_modules/.pnpm/json5@2.2.1/node_modules/json5/dist/index.mjs":(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var unicode={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},util={isSpaceSeparator:c=>"string"==typeof c&&unicode.Space_Separator.test(c),isIdStartChar:c=>"string"==typeof c&&(c>="a"&&c<="z"||c>="A"&&c<="Z"||"$"===c||"_"===c||unicode.ID_Start.test(c)),isIdContinueChar:c=>"string"==typeof c&&(c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"||"$"===c||"_"===c||"‌"===c||"‍"===c||unicode.ID_Continue.test(c)),isDigit:c=>"string"==typeof c&&/[0-9]/.test(c),isHexDigit:c=>"string"==typeof c&&/[0-9A-Fa-f]/.test(c)};let source,parseState,stack,pos,line,column,token,key,root;function internalize(holder,name,reviver){const value=holder[name];if(null!=value&&"object"==typeof value)for(const key in value){const replacement=internalize(value,key,reviver);void 0===replacement?delete value[key]:value[key]=replacement;}return reviver.call(holder,name,value)}let lexState,buffer,doubleQuote,sign,c;function lex(){for(lexState="default",buffer="",doubleQuote=!1,sign=1;;){c=peek();const token=lexStates[lexState]();if(token)return token}}function peek(){if(source[pos])return String.fromCodePoint(source.codePointAt(pos))}function read(){const c=peek();return "\n"===c?(line++,column=0):c?column+=c.length:column++,c&&(pos+=c.length),c}const lexStates={default(){switch(c){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void read();case"/":return read(),void(lexState="comment");case void 0:return read(),newToken("eof")}if(!util.isSpaceSeparator(c))return lexStates[parseState]();read();},comment(){switch(c){case"*":return read(),void(lexState="multiLineComment");case"/":return read(),void(lexState="singleLineComment")}throw invalidChar(read())},multiLineComment(){switch(c){case"*":return read(),void(lexState="multiLineCommentAsterisk");case void 0:throw invalidChar(read())}read();},multiLineCommentAsterisk(){switch(c){case"*":return void read();case"/":return read(),void(lexState="default");case void 0:throw invalidChar(read())}read(),lexState="multiLineComment";},singleLineComment(){switch(c){case"\n":case"\r":case"\u2028":case"\u2029":return read(),void(lexState="default");case void 0:return read(),newToken("eof")}read();},value(){switch(c){case"{":case"[":return newToken("punctuator",read());case"n":return read(),literal("ull"),newToken("null",null);case"t":return read(),literal("rue"),newToken("boolean",!0);case"f":return read(),literal("alse"),newToken("boolean",!1);case"-":case"+":return "-"===read()&&(sign=-1),void(lexState="sign");case".":return buffer=read(),void(lexState="decimalPointLeading");case"0":return buffer=read(),void(lexState="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return buffer=read(),void(lexState="decimalInteger");case"I":return read(),literal("nfinity"),newToken("numeric",1/0);case"N":return read(),literal("aN"),newToken("numeric",NaN);case'"':case"'":return doubleQuote='"'===read(),buffer="",void(lexState="string")}throw invalidChar(read())},identifierNameStartEscape(){if("u"!==c)throw invalidChar(read());read();const u=unicodeEscape();switch(u){case"$":case"_":break;default:if(!util.isIdStartChar(u))throw invalidIdentifier()}buffer+=u,lexState="identifierName";},identifierName(){switch(c){case"$":case"_":case"‌":case"‍":return void(buffer+=read());case"\\":return read(),void(lexState="identifierNameEscape")}if(!util.isIdContinueChar(c))return newToken("identifier",buffer);buffer+=read();},identifierNameEscape(){if("u"!==c)throw invalidChar(read());read();const u=unicodeEscape();switch(u){case"$":case"_":case"‌":case"‍":break;default:if(!util.isIdContinueChar(u))throw invalidIdentifier()}buffer+=u,lexState="identifierName";},sign(){switch(c){case".":return buffer=read(),void(lexState="decimalPointLeading");case"0":return buffer=read(),void(lexState="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return buffer=read(),void(lexState="decimalInteger");case"I":return read(),literal("nfinity"),newToken("numeric",sign*(1/0));case"N":return read(),literal("aN"),newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(c){case".":return buffer+=read(),void(lexState="decimalPoint");case"e":case"E":return buffer+=read(),void(lexState="decimalExponent");case"x":case"X":return buffer+=read(),void(lexState="hexadecimal")}return newToken("numeric",0*sign)},decimalInteger(){switch(c){case".":return buffer+=read(),void(lexState="decimalPoint");case"e":case"E":return buffer+=read(),void(lexState="decimalExponent")}if(!util.isDigit(c))return newToken("numeric",sign*Number(buffer));buffer+=read();},decimalPointLeading(){if(util.isDigit(c))return buffer+=read(),void(lexState="decimalFraction");throw invalidChar(read())},decimalPoint(){switch(c){case"e":case"E":return buffer+=read(),void(lexState="decimalExponent")}return util.isDigit(c)?(buffer+=read(),void(lexState="decimalFraction")):newToken("numeric",sign*Number(buffer))},decimalFraction(){switch(c){case"e":case"E":return buffer+=read(),void(lexState="decimalExponent")}if(!util.isDigit(c))return newToken("numeric",sign*Number(buffer));buffer+=read();},decimalExponent(){switch(c){case"+":case"-":return buffer+=read(),void(lexState="decimalExponentSign")}if(util.isDigit(c))return buffer+=read(),void(lexState="decimalExponentInteger");throw invalidChar(read())},decimalExponentSign(){if(util.isDigit(c))return buffer+=read(),void(lexState="decimalExponentInteger");throw invalidChar(read())},decimalExponentInteger(){if(!util.isDigit(c))return newToken("numeric",sign*Number(buffer));buffer+=read();},hexadecimal(){if(util.isHexDigit(c))return buffer+=read(),void(lexState="hexadecimalInteger");throw invalidChar(read())},hexadecimalInteger(){if(!util.isHexDigit(c))return newToken("numeric",sign*Number(buffer));buffer+=read();},string(){switch(c){case"\\":return read(),void(buffer+=function(){switch(peek()){case"b":return read(),"\b";case"f":return read(),"\f";case"n":return read(),"\n";case"r":return read(),"\r";case"t":return read(),"\t";case"v":return read(),"\v";case"0":if(read(),util.isDigit(peek()))throw invalidChar(read());return "\0";case"x":return read(),function(){let buffer="",c=peek();if(!util.isHexDigit(c))throw invalidChar(read());if(buffer+=read(),c=peek(),!util.isHexDigit(c))throw invalidChar(read());return buffer+=read(),String.fromCodePoint(parseInt(buffer,16))}();case"u":return read(),unicodeEscape();case"\n":case"\u2028":case"\u2029":return read(),"";case"\r":return read(),"\n"===peek()&&read(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw invalidChar(read())}return read()}());case'"':return doubleQuote?(read(),newToken("string",buffer)):void(buffer+=read());case"'":return doubleQuote?void(buffer+=read()):(read(),newToken("string",buffer));case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":!function(c){console.warn(`JSON5: '${formatChar(c)}' in strings is not valid ECMAScript; consider escaping`);}(c);break;case void 0:throw invalidChar(read())}buffer+=read();},start(){switch(c){case"{":case"[":return newToken("punctuator",read())}lexState="value";},beforePropertyName(){switch(c){case"$":case"_":return buffer=read(),void(lexState="identifierName");case"\\":return read(),void(lexState="identifierNameStartEscape");case"}":return newToken("punctuator",read());case'"':case"'":return doubleQuote='"'===read(),void(lexState="string")}if(util.isIdStartChar(c))return buffer+=read(),void(lexState="identifierName");throw invalidChar(read())},afterPropertyName(){if(":"===c)return newToken("punctuator",read());throw invalidChar(read())},beforePropertyValue(){lexState="value";},afterPropertyValue(){switch(c){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if("]"===c)return newToken("punctuator",read());lexState="value";},afterArrayValue(){switch(c){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(type,value){return {type,value,line,column}}function literal(s){for(const c of s){if(peek()!==c)throw invalidChar(read());read();}}function unicodeEscape(){let buffer="",count=4;for(;count-- >0;){const c=peek();if(!util.isHexDigit(c))throw invalidChar(read());buffer+=read();}return String.fromCodePoint(parseInt(buffer,16))}const parseStates={start(){if("eof"===token.type)throw invalidEOF();push();},beforePropertyName(){switch(token.type){case"identifier":case"string":return key=token.value,void(parseState="afterPropertyName");case"punctuator":return void pop();case"eof":throw invalidEOF()}},afterPropertyName(){if("eof"===token.type)throw invalidEOF();parseState="beforePropertyValue";},beforePropertyValue(){if("eof"===token.type)throw invalidEOF();push();},beforeArrayValue(){if("eof"===token.type)throw invalidEOF();"punctuator"!==token.type||"]"!==token.value?push():pop();},afterPropertyValue(){if("eof"===token.type)throw invalidEOF();switch(token.value){case",":return void(parseState="beforePropertyName");case"}":pop();}},afterArrayValue(){if("eof"===token.type)throw invalidEOF();switch(token.value){case",":return void(parseState="beforeArrayValue");case"]":pop();}},end(){}};function push(){let value;switch(token.type){case"punctuator":switch(token.value){case"{":value={};break;case"[":value=[];}break;case"null":case"boolean":case"numeric":case"string":value=token.value;}if(void 0===root)root=value;else {const parent=stack[stack.length-1];Array.isArray(parent)?parent.push(value):parent[key]=value;}if(null!==value&&"object"==typeof value)stack.push(value),parseState=Array.isArray(value)?"beforeArrayValue":"beforePropertyName";else {const current=stack[stack.length-1];parseState=null==current?"end":Array.isArray(current)?"afterArrayValue":"afterPropertyValue";}}function pop(){stack.pop();const current=stack[stack.length-1];parseState=null==current?"end":Array.isArray(current)?"afterArrayValue":"afterPropertyValue";}function invalidChar(c){return syntaxError(void 0===c?`JSON5: invalid end of input at ${line}:${column}`:`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)}function invalidIdentifier(){return column-=5,syntaxError(`JSON5: invalid identifier character at ${line}:${column}`)}function formatChar(c){const replacements={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(replacements[c])return replacements[c];if(c<" "){const hexString=c.charCodeAt(0).toString(16);return "\\x"+("00"+hexString).substring(hexString.length)}return c}function syntaxError(message){const err=new SyntaxError(message);return err.lineNumber=line,err.columnNumber=column,err}const JSON5={parse:function(text,reviver){source=String(text),parseState="start",stack=[],pos=0,line=1,column=0,token=void 0,key=void 0,root=void 0;do{token=lex(),parseStates[parseState]();}while("eof"!==token.type);return "function"==typeof reviver?internalize({"":root},"",reviver):root},stringify:function(value,replacer,space){const stack=[];let propertyList,replacerFunc,quote,indent="",gap="";if(null==replacer||"object"!=typeof replacer||Array.isArray(replacer)||(space=replacer.space,quote=replacer.quote,replacer=replacer.replacer),"function"==typeof replacer)replacerFunc=replacer;else if(Array.isArray(replacer)){propertyList=[];for(const v of replacer){let item;"string"==typeof v?item=v:("number"==typeof v||v instanceof String||v instanceof Number)&&(item=String(v)),void 0!==item&&propertyList.indexOf(item)<0&&propertyList.push(item);}}return space instanceof Number?space=Number(space):space instanceof String&&(space=String(space)),"number"==typeof space?space>0&&(space=Math.min(10,Math.floor(space)),gap=" ".substr(0,space)):"string"==typeof space&&(gap=space.substr(0,10)),serializeProperty("",{"":value});function serializeProperty(key,holder){let value=holder[key];switch(null!=value&&("function"==typeof value.toJSON5?value=value.toJSON5(key):"function"==typeof value.toJSON&&(value=value.toJSON(key))),replacerFunc&&(value=replacerFunc.call(holder,key,value)),value instanceof Number?value=Number(value):value instanceof String?value=String(value):value instanceof Boolean&&(value=value.valueOf()),value){case null:return "null";case!0:return "true";case!1:return "false"}return "string"==typeof value?quoteString(value):"number"==typeof value?String(value):"object"==typeof value?Array.isArray(value)?function(value){if(stack.indexOf(value)>=0)throw TypeError("Converting circular structure to JSON5");stack.push(value);let stepback=indent;indent+=gap;let final,partial=[];for(let i=0;i<value.length;i++){const propertyString=serializeProperty(String(i),value);partial.push(void 0!==propertyString?propertyString:"null");}if(0===partial.length)final="[]";else if(""===gap){final="["+partial.join(",")+"]";}else {let separator=",\n"+indent,properties=partial.join(separator);final="[\n"+indent+properties+",\n"+stepback+"]";}return stack.pop(),indent=stepback,final}(value):function(value){if(stack.indexOf(value)>=0)throw TypeError("Converting circular structure to JSON5");stack.push(value);let stepback=indent;indent+=gap;let final,keys=propertyList||Object.keys(value),partial=[];for(const key of keys){const propertyString=serializeProperty(key,value);if(void 0!==propertyString){let member=serializeKey(key)+":";""!==gap&&(member+=" "),member+=propertyString,partial.push(member);}}if(0===partial.length)final="{}";else {let properties;if(""===gap)properties=partial.join(","),final="{"+properties+"}";else {let separator=",\n"+indent;properties=partial.join(separator),final="{\n"+indent+properties+",\n"+stepback+"}";}}return stack.pop(),indent=stepback,final}(value):void 0}function quoteString(value){const quotes={"'":.1,'"':.2},replacements={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let product="";for(let i=0;i<value.length;i++){const c=value[i];switch(c){case"'":case'"':quotes[c]++,product+=c;continue;case"\0":if(util.isDigit(value[i+1])){product+="\\x00";continue}}if(replacements[c])product+=replacements[c];else if(c<" "){let hexString=c.charCodeAt(0).toString(16);product+="\\x"+("00"+hexString).substring(hexString.length);}else product+=c;}const quoteChar=quote||Object.keys(quotes).reduce(((a,b)=>quotes[a]<quotes[b]?a:b));return product=product.replace(new RegExp(quoteChar,"g"),replacements[quoteChar]),quoteChar+product+quoteChar}function serializeKey(key){if(0===key.length)return quoteString(key);const firstChar=String.fromCodePoint(key.codePointAt(0));if(!util.isIdStartChar(firstChar))return quoteString(key);for(let i=firstChar.length;i<key.length;i++)if(!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i))))return quoteString(key);return key}}};const __WEBPACK_DEFAULT_EXPORT__=JSON5;},"./node_modules/.pnpm/globals@11.12.0/node_modules/globals/globals.json":module=>{module.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}');}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]});},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0});};var __webpack_exports__={};(()=>{__webpack_require__.d(__webpack_exports__,{default:()=>transform});var lib=__webpack_require__("./node_modules/.pnpm/@babel+core@7.19.1/node_modules/@babel/core/lib/index.js"),external_url_=__webpack_require__("url"),template_lib=__webpack_require__("./node_modules/.pnpm/@babel+template@7.18.10/node_modules/@babel/template/lib/index.js");function TransformImportMetaPlugin(_ctx,opts){return {name:"transform-import-meta",visitor:{Program(path){const metas=[];if(path.traverse({MemberExpression(memberExpPath){const{node}=memberExpPath;"MetaProperty"===node.object.type&&"import"===node.object.meta.name&&"meta"===node.object.property.name&&"Identifier"===node.property.type&&"url"===node.property.name&&metas.push(memberExpPath);}}),0!==metas.length)for(const meta of metas)meta.replaceWith(template_lib.smart.ast`${opts.filename?JSON.stringify((0, external_url_.pathToFileURL)(opts.filename)):"require('url').pathToFileURL(__filename).toString()"}`);}}}}function transform(opts){var _a,_b,_c,_d,_e,_f;const _opts=Object.assign(Object.assign({babelrc:!1,configFile:!1,compact:!1,retainLines:"boolean"!=typeof opts.retainLines||opts.retainLines,filename:"",cwd:"/"},opts.babel),{plugins:[[__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.18.6_@babel+core@7.19.1/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),{allowTopLevelThis:!0}],[__webpack_require__("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js"),{noInterop:!0}],[TransformImportMetaPlugin,{filename:opts.filename}],[__webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.19.1/node_modules/@babel/plugin-syntax-class-properties/lib/index.js")],[__webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-export-namespace-from@7.18.9_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-export-namespace-from/lib/index.js")]]});opts.ts&&(_opts.plugins.push([__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-transform-typescript/lib/index.js"),{allowDeclareFields:!0}]),_opts.plugins.unshift([__webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.19.1_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-decorators/lib/index.js"),{legacy:!0}]),_opts.plugins.push(__webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"))),opts.legacy&&(_opts.plugins.push(__webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-nullish-coalescing-operator@7.18.6_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js")),_opts.plugins.push(__webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-optional-chaining@7.18.9_@babel+core@7.19.1/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js"))),opts.babel&&Array.isArray(opts.babel.plugins)&&(null===(_a=_opts.plugins)||void 0===_a||_a.push(...opts.babel.plugins));try{return {code:(null===(_b=(0,lib.transformSync)(opts.source,_opts))||void 0===_b?void 0:_b.code)||""}}catch(err){return {error:err,code:"exports.__JITI_ERROR__ = "+JSON.stringify({filename:opts.filename,line:(null===(_c=err.loc)||void 0===_c?void 0:_c.line)||0,column:(null===(_d=err.loc)||void 0===_d?void 0:_d.column)||0,code:null===(_e=err.code)||void 0===_e?void 0:_e.replace("BABEL_","").replace("PARSE_ERROR","ParseError"),message:null===(_f=err.message)||void 0===_f?void 0:_f.replace("/: ","").replace(/\(.+\)\s*$/,"")})}}}})(),module.exports=__webpack_exports__.default;})();
2332} (babel));
2333 return babel.exports;
2334}
2335
2336function onError (err) {
2337 throw err /* ↓ Check stack trace ↓ */
2338}
2339
2340var lib = function (filename, opts) {
2341 const jiti = requireJiti();
2342
2343 opts = { onError, ...opts };
2344
2345 if (!opts.transform) {
2346 opts.transform = requireBabel();
2347 }
2348
2349 return jiti(filename, opts)
2350};
2351
2352let cjsRequire;
2353const esmMode = import.meta.url.endsWith(".mjs") || process.argv[1].endsWith(".mjs");
2354const getFullPath = (path) => {
2355 const state = useState();
2356 const root = state.get("root") || __dirname;
2357 return resolve(root, path);
2358};
2359const load$1 = async function(path) {
2360 let module;
2361 const fullPath = getFullPath(path);
2362 const isTs = fullPath.endsWith(".ts");
2363 if (isTs && esmMode) {
2364 throw new Error(
2365 "ESM mode is not compatible with typescript. Please run drosse in standard (non-esm) mode."
2366 );
2367 }
2368 if (isTs) {
2369 module = lib(null, { interopDefault: true })(`file://${fullPath}`);
2370 } else if (esmMode) {
2371 module = (await import(fullPath)).default;
2372 } else {
2373 if (!cjsRequire) {
2374 cjsRequire = createRequire(import.meta.url);
2375 }
2376 delete require.cache[fullPath];
2377 module = require(fullPath);
2378 }
2379 return module;
2380};
2381const isEsmMode$1 = function() {
2382 return esmMode;
2383};
2384function useIO$1() {
2385 return { isEsmMode: isEsmMode$1, load: load$1 };
2386}
2387
2388const state$7 = useState();
2389const { load } = useIO$1();
2390const fileExists = async (path) => {
2391 let exists;
2392 try {
2393 await promises.access(path);
2394 exists = true;
2395 } catch {
2396 exists = false;
2397 }
2398 return exists;
2399};
2400const getScriptFile = async (path) => {
2401 let scriptFile = `${path}.js`;
2402 if (await fileExists(scriptFile)) {
2403 return scriptFile;
2404 }
2405 scriptFile = `${path}.ts`;
2406 if (await fileExists(scriptFile)) {
2407 return scriptFile;
2408 }
2409 throw new Error(`File not found: ${scriptFile}`);
2410};
2411const checkRoutesFile$1 = async () => {
2412 const filePath = join(
2413 state$7.get("root"),
2414 `${state$7.get("routesFile")}.json`
2415 );
2416 if (await fileExists(filePath)) {
2417 state$7.set("_routesFile", filePath);
2418 return true;
2419 }
2420 return false;
2421};
2422const getUserConfig$1 = async (root) => {
2423 try {
2424 const rcFilePath = await getScriptFile(
2425 join(root || state$7.get("root") || "", ".drosserc")
2426 );
2427 return load(rcFilePath);
2428 } catch (e) {
2429 console.error("Could not load any user config.");
2430 console.error(e);
2431 return {};
2432 }
2433};
2434const loadService$1 = async (routePath, verb) => {
2435 const serviceFile = await getScriptFile(
2436 join(
2437 state$7.get("root"),
2438 state$7.get("servicesPath"),
2439 routePath.filter((el) => el[0] !== ":").join(".")
2440 ) + `.${verb}`
2441 );
2442 if (!serviceFile) {
2443 return function() {
2444 logger.error(`service [${serviceFile}] not found`);
2445 };
2446 }
2447 const service = await load(serviceFile);
2448 return { serviceFile, service };
2449};
2450const loadScraperService$1 = async (routePath) => {
2451 const serviceFile = await getScriptFile(
2452 join(
2453 state$7.get("root"),
2454 state$7.get("scraperServicesPath"),
2455 routePath.filter((el) => el[0] !== ":").join(".")
2456 )
2457 );
2458 if (!serviceFile) {
2459 return function() {
2460 logger.error(`scraper service [${serviceFile}] not found`);
2461 };
2462 }
2463 return load(serviceFile);
2464};
2465const writeScrapedFile = async (filename, content) => {
2466 const root = join(state$7.get("root"), state$7.get("scrapedPath"));
2467 await promises.writeFile(
2468 join(root, filename),
2469 JSON.stringify(content),
2470 "utf-8"
2471 );
2472 return true;
2473};
2474const writeUploadedFile$1 = async (filename, binary) => {
2475 const root = join(state$7.get("root"), state$7.get("uploadPath"));
2476 const path = join(root, filename);
2477 await promises.writeFile(
2478 path,
2479 binary
2480 );
2481 return path;
2482};
2483const deleteAllUploadedFiles = async () => {
2484 const directory = join(state$7.get("root"), state$7.get("uploadPath"));
2485 for (const file of await promises.readdir(directory)) {
2486 await promises.unlink(join(directory, file));
2487 }
2488};
2489const loadStatic$2 = async ({
2490 routePath,
2491 params = {},
2492 query = {},
2493 verb = null,
2494 skipVerb = false,
2495 extensions = ["json"]
2496}) => {
2497 const root = join(state$7.get("root"), state$7.get("staticPath"));
2498 const files = await async(root);
2499 return findStatic({ root, files, routePath, params, verb, skipVerb, query, extensions });
2500};
2501const loadScraped$2 = async ({
2502 routePath,
2503 params = {},
2504 query = {},
2505 verb = null,
2506 skipVerb = false,
2507 extensions = ["json"]
2508}) => {
2509 const root = join(state$7.get("root"), state$7.get("scrapedPath"));
2510 const files = await async(root);
2511 return findStatic({ root, files, extensions, routePath, params, verb, skipVerb, query });
2512};
2513const loadUuid$1 = async () => {
2514 const uuidFile = join(state$7.get("root"), ".uuid");
2515 if (!await fileExists(uuidFile)) {
2516 await promises.writeFile(uuidFile, v4(), "utf8");
2517 }
2518 const uuid = await promises.readFile(uuidFile, "utf8");
2519 state$7.merge({ uuid });
2520};
2521const getRoutesDef$1 = async () => {
2522 const content = await promises.readFile(state$7.get("_routesFile"), "utf8");
2523 return JSON.parse(content);
2524};
2525const getStaticFileName = (routePath, extension, params = {}, verb = null, query = {}) => {
2526 const queryPart = Object.entries(query).sort(([name1], [name2]) => {
2527 return name1 > name2 ? 1 : -1;
2528 }).reduce((acc, [name, value]) => {
2529 return acc.concat(`${name}=${value}`);
2530 }, []).join("&");
2531 let filename = replace(
2532 routePath.join(".").concat(verb ? `.${verb.toLowerCase()}` : "").replace(/:([^\\/\\.]+)/gim, "{$1}").concat(queryPart ? `&&${queryPart}` : ""),
2533 params
2534 );
2535 const extensionLength = extension.length;
2536 return filename.concat(filename.slice(-(extensionLength + 1)) === `.${extension}` ? "" : `.${extension}`);
2537};
2538const findStatic = async ({
2539 root,
2540 files,
2541 routePath,
2542 extensions,
2543 params = {},
2544 verb = null,
2545 skipVerb = false,
2546 query = {},
2547 initial = null,
2548 extensionIndex = 0
2549}) => {
2550 const normalizedPath = (filePath) => filePath.replace(root, "").substring(1);
2551 if (initial === null) {
2552 initial = cloneDeep({
2553 params,
2554 query,
2555 verb,
2556 skipVerb
2557 });
2558 }
2559 const filename = getStaticFileName(
2560 routePath,
2561 extensions[extensionIndex],
2562 params,
2563 !skipVerb && verb,
2564 query
2565 );
2566 let staticFile = join(root, filename);
2567 const foundFiles = files.filter(
2568 (file) => normalizedPath(file.path).replace(/\//gim, ".") === normalizedPath(staticFile)
2569 );
2570 if (foundFiles.length > 1) {
2571 const error = `findStatic: more than 1 file found for:
2572[${staticFile}]:
2573${foundFiles.map((f) => f.path).join("\n")}`;
2574 throw new Error(error);
2575 }
2576 if (foundFiles.length === 0) {
2577 if (!isEmpty(query)) {
2578 logger.error(`findStatic: tried with [${staticFile}]. File not found.`);
2579 return findStatic({
2580 root,
2581 files,
2582 routePath,
2583 params,
2584 verb,
2585 skipVerb,
2586 extensions,
2587 initial,
2588 extensionIndex
2589 });
2590 }
2591 if (verb && !skipVerb) {
2592 logger.error(`findStatic: tried with [${staticFile}]. File not found.`);
2593 return findStatic({
2594 root,
2595 files,
2596 routePath,
2597 params,
2598 verb,
2599 skipVerb: true,
2600 query,
2601 extensions,
2602 initial,
2603 extensionIndex
2604 });
2605 }
2606 if (!isEmpty(params)) {
2607 logger.error(`findStatic: tried with [${staticFile}]. File not found.`);
2608 const newParams = Object.keys(params).slice(1).reduce((acc, name) => ({ ...acc, [name]: params[name] }), {});
2609 return findStatic({
2610 root,
2611 files,
2612 routePath,
2613 params: newParams,
2614 verb,
2615 extensions,
2616 initial,
2617 extensionIndex
2618 });
2619 }
2620 if (extensionIndex === extensions.length - 1) {
2621 logger.error(`findStatic: I think I've tried everything. No match...`);
2622 return [false, false];
2623 } else {
2624 logger.warn(`findStatic: Okay, tried everything with ${extensions[extensionIndex]} extension. Let's try with the next one.`);
2625 return findStatic({
2626 root,
2627 files,
2628 routePath,
2629 params: cloneDeep(initial.params),
2630 query: cloneDeep(initial.query),
2631 verb: initial.verb,
2632 skipVerb: initial.skipVerb,
2633 extensions,
2634 initial,
2635 extensionIndex: extensionIndex + 1
2636 });
2637 }
2638 } else {
2639 const foundExtension = extensions[extensionIndex];
2640 staticFile = foundFiles[0].path;
2641 logger.info(`findStatic: file used: ${staticFile}`);
2642 if (foundExtension === "json") {
2643 const fileContent = await promises.readFile(staticFile, "utf-8");
2644 const result = replace(fileContent, initial.params);
2645 return [JSON.parse(result), foundExtension];
2646 }
2647 return [staticFile, foundExtension];
2648 }
2649};
2650function useIO() {
2651 return {
2652 checkRoutesFile: checkRoutesFile$1,
2653 deleteAllUploadedFiles,
2654 getRoutesDef: getRoutesDef$1,
2655 getStaticFileName,
2656 getUserConfig: getUserConfig$1,
2657 loadService: loadService$1,
2658 loadScraperService: loadScraperService$1,
2659 loadStatic: loadStatic$2,
2660 loadScraped: loadScraped$2,
2661 loadUuid: loadUuid$1,
2662 writeScrapedFile,
2663 writeUploadedFile: writeUploadedFile$1
2664 };
2665}
2666
2667let db$2;
2668function useDB() {
2669 const state = useState();
2670 const collectionsPath = () => join(state.get("root"), state.get("collectionsPath"));
2671 const normalizedPath = (filePath) => filePath.replace(collectionsPath(), "").substr(1);
2672 const loadAllMockFiles = async () => {
2673 const res = await async(collectionsPath());
2674 return res.filter((entry) => !entry.directory && entry.path.endsWith("json")).map((entry) => {
2675 entry.path = normalizedPath(entry.path);
2676 return entry;
2677 });
2678 };
2679 const handleCollection = (name, alreadyHandled, newCollections) => {
2680 const shallowCollections = state.get("shallowCollections");
2681 const coll = db$2.getCollection(name);
2682 if (coll) {
2683 if (newCollections.includes(name)) {
2684 return coll;
2685 }
2686 if (!shallowCollections.includes(name)) {
2687 if (alreadyHandled.includes(name)) {
2688 return false;
2689 }
2690 logger.warn(
2691 "\u{1F4E6} collection",
2692 name,
2693 "already exists and won't be overriden."
2694 );
2695 alreadyHandled.push(name);
2696 return false;
2697 }
2698 if (alreadyHandled.includes(name)) {
2699 return coll;
2700 }
2701 logger.warn(
2702 "\u{1F30A} collection",
2703 name,
2704 "already exists and will be overriden."
2705 );
2706 db$2.removeCollection(name);
2707 alreadyHandled.push(name);
2708 }
2709 newCollections.push(name);
2710 return db$2.addCollection(name);
2711 };
2712 const loadContents = async () => {
2713 const files = await loadAllMockFiles();
2714 const handled = [];
2715 const newCollections = [];
2716 for (const entry of files) {
2717 const filename = entry.path.split(sep).pop();
2718 const fileContent = await promises.readFile(
2719 join(collectionsPath(), entry.path),
2720 "utf-8"
2721 );
2722 const content = JSON.parse(fileContent);
2723 const collectionName = Array.isArray(content) ? entry.path.slice(0, -5).split(sep).join(".") : entry.path.split(sep).slice(0, -1).join(".");
2724 const coll = handleCollection(collectionName, handled, newCollections);
2725 if (coll) {
2726 coll.insert(content);
2727 logger.success(`loaded ${filename} into collection ${collectionName}`);
2728 }
2729 }
2730 };
2731 const clean = (...fields) => (result) => omit(result, config.db.reservedFields.concat(fields || []));
2732 const service = {
2733 loadDb() {
2734 return new Promise((resolve, reject) => {
2735 try {
2736 const AdapterName = state.get("dbAdapter");
2737 const adapter = Loki[AdapterName] ? new Loki[AdapterName]() : new AdapterName();
2738 db$2 = new Loki(join(state.get("root"), state.get("database")), {
2739 adapter,
2740 autosave: true,
2741 autosaveInterval: 4e3,
2742 autoload: true,
2743 autoloadCallback: () => {
2744 loadContents().then(() => resolve(db$2));
2745 }
2746 });
2747 } catch (e) {
2748 reject(e);
2749 }
2750 });
2751 },
2752 loki: function() {
2753 return db$2;
2754 },
2755 collection: function(name) {
2756 let coll = db$2.getCollection(name);
2757 if (!coll) {
2758 coll = db$2.addCollection(name);
2759 }
2760 return coll;
2761 },
2762 list: {
2763 all(collection, cleanFields = []) {
2764 const coll = service.collection(collection);
2765 return coll.data.map(clean(...cleanFields));
2766 },
2767 byId(collection, id, cleanFields = []) {
2768 const coll = service.collection(collection);
2769 return coll.find({ "DROSSE.ids": { $contains: id } }).map(clean(...cleanFields));
2770 },
2771 byField(collection, field, value, cleanFields = []) {
2772 return this.byFields(collection, [field], value, cleanFields);
2773 },
2774 byFields(collection, fields, value, cleanFields = []) {
2775 return this.find(
2776 collection,
2777 {
2778 $or: fields.map((field) => ({
2779 [field]: { $contains: value }
2780 }))
2781 },
2782 cleanFields
2783 );
2784 },
2785 find(collection, query, cleanFields = []) {
2786 const coll = service.collection(collection);
2787 return coll.chain().find(query).data().map(clean(...cleanFields));
2788 },
2789 where(collection, searchFn, cleanFields = []) {
2790 const coll = service.collection(collection);
2791 return coll.chain().where(searchFn).data().map(clean(...cleanFields));
2792 }
2793 },
2794 get: {
2795 byId(collection, id, cleanFields = []) {
2796 const coll = service.collection(collection);
2797 return clean(...cleanFields)(
2798 coll.findOne({ "DROSSE.ids": { $contains: id } })
2799 );
2800 },
2801 byRef(refObj, dynamicId, cleanFields = []) {
2802 const { collection, id: refId } = refObj;
2803 const id = dynamicId || refId;
2804 return {
2805 ...this.byId(collection, id, cleanFields),
2806 ...omit(refObj, ["collection", "id"])
2807 };
2808 },
2809 byField(collection, field, value, cleanFields = []) {
2810 return this.byFields(collection, [field], value, cleanFields);
2811 },
2812 byFields(collection, fields, value, cleanFields = []) {
2813 return this.find(
2814 collection,
2815 {
2816 $or: fields.map((field) => ({
2817 [field]: { $contains: value }
2818 }))
2819 },
2820 cleanFields
2821 );
2822 },
2823 find(collection, query, cleanFields = []) {
2824 const coll = service.collection(collection);
2825 return clean(...cleanFields)(coll.findOne(query));
2826 },
2827 where(collection, searchFn, cleanFields = []) {
2828 const result = service.list.where(collection, searchFn, cleanFields);
2829 if (result.length > 0) {
2830 return result[0];
2831 }
2832 return null;
2833 }
2834 },
2835 query: {
2836 getIdMap(collection, fieldname, firstOnly = false) {
2837 const coll = service.collection(collection);
2838 return coll.data.reduce(
2839 (acc, item) => ({
2840 ...acc,
2841 [item[fieldname]]: firstOnly ? item.DROSSE.ids[0] : item.DROSSE.ids
2842 }),
2843 {}
2844 );
2845 },
2846 chain(collection) {
2847 return service.collection(collection).chain();
2848 },
2849 clean
2850 },
2851 insert(collection, ids, payload) {
2852 const coll = service.collection(collection);
2853 return coll.insert(cloneDeep({ ...payload, DROSSE: { ids } }));
2854 },
2855 update: {
2856 byId(collection, id, newValue) {
2857 const coll = service.collection(collection);
2858 coll.findAndUpdate({ "DROSSE.ids": { $contains: id } }, (doc) => {
2859 Object.entries(newValue).forEach(([key, value]) => {
2860 set(doc, key, value);
2861 });
2862 });
2863 },
2864 subItem: {
2865 append(collection, id, subPath, payload) {
2866 const coll = service.collection(collection);
2867 coll.findAndUpdate({ "DROSSE.ids": { $contains: id } }, (doc) => {
2868 if (!get(doc, subPath)) {
2869 set(doc, subPath, []);
2870 }
2871 get(doc, subPath).push(payload);
2872 });
2873 },
2874 prepend(collection, id, subPath, payload) {
2875 const coll = service.collection(collection);
2876 coll.findAndUpdate({ "DROSSE.ids": { $contains: id } }, (doc) => {
2877 if (!get(doc, subPath)) {
2878 set(doc, subPath, []);
2879 }
2880 get(doc, subPath).unshift(payload);
2881 });
2882 }
2883 }
2884 },
2885 remove: {
2886 byId(collection, id) {
2887 const coll = service.collection(collection);
2888 const toDelete = coll.findOne({ "DROSSE.ids": { $contains: id } });
2889 return toDelete && coll.remove(toDelete);
2890 }
2891 }
2892 };
2893 return service;
2894}
2895
2896const db$1 = useDB();
2897const state$6 = useState();
2898const { loadStatic: loadStatic$1, loadScraped: loadScraped$1, writeUploadedFile } = useIO();
2899function useAPI(event) {
2900 return {
2901 event,
2902 db: db$1,
2903 logger,
2904 io: { loadStatic: loadStatic$1, loadScraped: loadScraped$1, writeUploadedFile },
2905 config: state$6.get()
2906 };
2907}
2908
2909const state$5 = useState();
2910const parse$1 = async ({ routes, root = [], hierarchy = [], onRouteDef }) => {
2911 let inherited = [];
2912 const localHierarchy = [].concat(hierarchy);
2913 if (routes.DROSSE) {
2914 localHierarchy.push({ ...routes.DROSSE, path: root });
2915 }
2916 const orderedRoutes = Object.entries(routes).filter(([path]) => path !== "DROSSE");
2917 for (const orderedRoute of orderedRoutes) {
2918 const [path, content] = orderedRoute;
2919 const fullPath = `/${root.join("/")}`;
2920 if (Object.values(state$5.get("reservedRoutes")).includes(fullPath)) {
2921 throw new Error(`Route "${fullPath}" is reserved`);
2922 }
2923 const parsed = await parse$1({
2924 routes: content,
2925 root: root.concat(path),
2926 hierarchy: localHierarchy,
2927 onRouteDef
2928 });
2929 inherited = inherited.concat(parsed);
2930 }
2931 if (routes.DROSSE) {
2932 const routeDef = await onRouteDef(routes.DROSSE, root, localHierarchy);
2933 inherited = inherited.concat(routeDef);
2934 }
2935 return inherited;
2936};
2937function useParser() {
2938 return { parse: parse$1 };
2939}
2940
2941function useScraper() {
2942 const { getStaticFileName, writeScrapedFile } = useIO();
2943 const staticService = async (json, api) => {
2944 const { req } = api;
2945 const filename = getStaticFileName(
2946 req.baseUrl.split("/").slice(1),
2947 "json",
2948 req.params,
2949 req.method,
2950 req.query
2951 );
2952 await writeScrapedFile(filename, json);
2953 return true;
2954 };
2955 return {
2956 staticService
2957 };
2958}
2959
2960let state$4 = config.templates;
2961function useTemplates() {
2962 return {
2963 merge(tpls) {
2964 state$4 = { ...state$4, ...tpls };
2965 },
2966 set(tpl) {
2967 state$4 = tpl;
2968 },
2969 list() {
2970 return state$4;
2971 }
2972 };
2973}
2974
2975const { loadService, loadScraperService, loadStatic, loadScraped } = useIO();
2976const { parse } = useParser();
2977const state$3 = useState();
2978const templates = useTemplates();
2979const getThrottle = function(min, max) {
2980 return Math.floor(Math.random() * (max - min)) + min;
2981};
2982const throttle = (def) => new Promise((resolve) => {
2983 const delay = getThrottle(
2984 def.throttle.min || 0,
2985 def.throttle.max || def.throttle.min
2986 );
2987 logger.info(`${config.icons.plugin.throttle} throttling [${delay} ms]...`);
2988 setTimeout(resolve, delay);
2989});
2990const getProxy = function(def) {
2991 return typeof def.proxy === "string" ? { target: def.proxy } : def.proxy;
2992};
2993const createRoutes = async (app, router, routes) => {
2994 const context = { app, router, proxies: [], assets: [] };
2995 const inherited = await parse({
2996 routes,
2997 onRouteDef: await createRoute.bind(context)
2998 });
2999 const result = inherited.reduce((acc, item) => {
3000 if (!acc[item.path]) {
3001 acc[item.path] = {};
3002 }
3003 if (!acc[item.path][item.verb]) {
3004 acc[item.path][item.verb] = {
3005 template: false,
3006 throttle: false,
3007 proxy: false
3008 };
3009 }
3010 acc[item.path][item.verb][item.type] = true;
3011 return acc;
3012 }, {});
3013 createAssets(context);
3014 createProxies(context);
3015 return result;
3016};
3017const createRoute = async function(def, root, defHierarchy) {
3018 const { router, app, proxies, assets } = this;
3019 const inheritance = [];
3020 const verbs = ["get", "post", "put", "delete"].filter((verb) => def[verb]);
3021 for (const verb of verbs) {
3022 const originalThrottle = !isEmpty(def[verb].throttle);
3023 def[verb].throttle = def[verb].throttle || defHierarchy.reduce((acc, item) => item.throttle || acc, {});
3024 if (!originalThrottle && !isEmpty(def[verb].throttle)) {
3025 inheritance.push({ path: root.join("/"), type: "throttle", verb });
3026 }
3027 const originalTemplate = def[verb].template === null || Boolean(def[verb].template);
3028 def[verb].template = originalTemplate ? def[verb].template : defHierarchy.reduce((acc, item) => item.template || acc, {});
3029 if (!originalTemplate && Object.keys(def[verb].template).length) {
3030 inheritance.push({ path: root.join("/"), type: "template", verb });
3031 }
3032 const inheritsProxy = Boolean(
3033 defHierarchy.find((item) => root.join("/").includes(item.path.join("/")))?.proxy
3034 );
3035 await setRoute(app, router, def[verb], verb, root, inheritsProxy);
3036 }
3037 if (def.assets) {
3038 const routePath = [""].concat(root);
3039 const assetsSubPath = def.assets === true ? routePath : typeof def.assets === "string" ? def.assets.split("/") : def.assets;
3040 assets.push({
3041 path: routePath.join("/"),
3042 context: { target: join(state$3.get("assetsPath"), ...assetsSubPath) }
3043 });
3044 }
3045 if (def.proxy || def.scraper) {
3046 const proxyResHooks = [];
3047 const path = [""].concat(root);
3048 const onProxyReq = async function(proxyReq, req, res) {
3049 return new Promise((resolve, reject) => {
3050 try {
3051 if (!isEmpty(req.body)) {
3052 const bodyData = JSON.stringify(req.body);
3053 proxyReq.setHeader("Content-Type", "application/json");
3054 proxyReq.setHeader("Content-Length", Buffer.byteLength(bodyData));
3055 proxyReq.write(bodyData);
3056 }
3057 resolve();
3058 } catch (e) {
3059 reject(e);
3060 }
3061 });
3062 };
3063 const applyProxyRes = function(hooks, def2) {
3064 if (hooks.length === 0) {
3065 return;
3066 }
3067 return responseInterceptor(async (responseBuffer, proxyRes, req, res) => {
3068 const response = responseBuffer.toString("utf8");
3069 try {
3070 const json = JSON.parse(response);
3071 hooks.forEach((hook) => hook(json, req, res));
3072 return JSON.stringify(json);
3073 } catch (e) {
3074 console.log("Response error: could not encode string to JSON");
3075 console.log(response);
3076 console.log(e);
3077 console.log(
3078 "Will try to fallback on the static mock or at least return a vaild JSON string."
3079 );
3080 return JSON.stringify(def2.body) || "{}";
3081 }
3082 });
3083 };
3084 if (def.scraper) {
3085 let tmpProxy = def.proxy;
3086 if (!tmpProxy) {
3087 tmpProxy = defHierarchy.reduce((acc, item) => {
3088 if (item.proxy) {
3089 return {
3090 proxy: getProxy(item),
3091 path: item.path
3092 };
3093 } else {
3094 if (!acc) {
3095 return acc;
3096 }
3097 const subpath = item.path.filter((path2) => !acc.path.includes(path2));
3098 const proxy = getProxy(acc);
3099 proxy.target = proxy.target.split("/").concat(subpath).join("/");
3100 return {
3101 proxy,
3102 path: item.path
3103 };
3104 }
3105 }, null);
3106 def.proxy = tmpProxy && tmpProxy.proxy;
3107 }
3108 let scraperService;
3109 if (def.scraper.service) {
3110 scraperService = await loadScraperService(root);
3111 } else if (def.scraper.static) {
3112 scraperService = useScraper().staticService;
3113 }
3114 proxyResHooks.push((json, req, res) => {
3115 const api = useAPI(req);
3116 scraperService(json, api);
3117 });
3118 }
3119 if (def.proxy) {
3120 if (def.proxy.responseRewriters) {
3121 def.proxy.selfHandleResponse = true;
3122 def.proxy.responseRewriters.forEach((rewriterName) => {
3123 proxyResHooks.push(internalMiddlewares[rewriterName]);
3124 });
3125 }
3126 proxies.push({
3127 path: path.join("/"),
3128 context: {
3129 ...getProxy(def),
3130 changeOrigin: true,
3131 selfHandleResponse: Boolean(proxyResHooks.length),
3132 pathRewrite: {
3133 [path.join("/")]: "/"
3134 },
3135 onProxyReq,
3136 onProxyRes: applyProxyRes(proxyResHooks, def)
3137 },
3138 def
3139 });
3140 }
3141 }
3142 return inheritance;
3143};
3144const setRoute = async (app, router, def, verb, root, inheritsProxy) => {
3145 const path = `${state$3.get("basePath")}/${root.join("/")}`;
3146 const handlerType = def.service ? "service" : def.static ? "static" : "body";
3147 const handlerPlugins = Object.entries(def).reduce((list, [k, v]) => {
3148 if (k === "template") {
3149 list.push("template");
3150 }
3151 if (k === "throttle" && Object.keys(v).length) {
3152 list.push("throttle");
3153 }
3154 if (k === "proxy") {
3155 list.push("proxy");
3156 }
3157 return list;
3158 }, []);
3159 const handler = async (event) => {
3160 let response;
3161 let applyTemplate = true;
3162 let staticExtension = "json";
3163 setResponseHeader(event, "x-drosse-handler-type", handlerType);
3164 setResponseHeader(
3165 event,
3166 "x-drosse-handler-plugins",
3167 handlerPlugins.join(",")
3168 );
3169 if (Object.keys(def.throttle).length) {
3170 await throttle(def);
3171 }
3172 if (def.service) {
3173 const api = useAPI(event);
3174 const { serviceFile, service } = await loadService(root, verb);
3175 try {
3176 response = await service(api);
3177 } catch (e) {
3178 console.log("Error in service", serviceFile, e);
3179 throw e;
3180 }
3181 }
3182 if (def.static) {
3183 try {
3184 const params = getRouterParams(event);
3185 const query = getQuery(event);
3186 const { extensions } = def;
3187 const [result, extension] = await loadStatic({
3188 routePath: root,
3189 params,
3190 verb,
3191 query,
3192 extensions
3193 });
3194 response = result;
3195 staticExtension = extension;
3196 if (!response) {
3197 const [result2, extension2] = await loadScraped({
3198 routePath: root,
3199 params,
3200 verb,
3201 query,
3202 extensions
3203 });
3204 applyTemplate = false;
3205 response = result2;
3206 staticExtension = extension2;
3207 if (!response) {
3208 applyTemplate = true;
3209 response = {
3210 drosse: `loadStatic: file not found with routePath = ${root.join(
3211 "/"
3212 )}`
3213 };
3214 }
3215 }
3216 } catch (e) {
3217 response = {
3218 drosse: e.message,
3219 stack: e.stack
3220 };
3221 }
3222 }
3223 if (def.body) {
3224 response = def.body;
3225 applyTemplate = true;
3226 }
3227 if (applyTemplate && def.responseType !== "file" && staticExtension === "json" && def.template && Object.keys(def.template).length) {
3228 response = templates.list()[def.template](response);
3229 }
3230 if (def.responseType === "file" || staticExtension && staticExtension !== "json") {
3231 const content = await readFile(response);
3232 send(event, content, "application/octet-stream");
3233 }
3234 return response;
3235 };
3236 if (inheritsProxy) {
3237 app.use(path, eventHandler(handler), { match: (url) => url === "/" });
3238 } else {
3239 router[verb](path, eventHandler(handler));
3240 }
3241 const summary = {
3242 verb: verb.toUpperCase().padEnd(7),
3243 route: `${state$3.get("basePath")}/${root.join("/")}`,
3244 handler: config.icons.handler[handlerType],
3245 plugins: handlerPlugins.map((plugin) => config.icons.plugin[plugin]).join(" ")
3246 };
3247 logger.success(
3248 `-> ${summary.verb} ${summary.handler} ${summary.route} ${summary.plugins}`
3249 );
3250};
3251const createAssets = ({ app, assets }) => {
3252 if (!assets) {
3253 return;
3254 }
3255 const _assets = [];
3256 assets.forEach(({ path: routePath, context }) => {
3257 const fsPath = join(state$3.get("root"), context.target);
3258 let mwPath = routePath;
3259 if (routePath.includes("*")) {
3260 mwPath = mwPath.substring(0, mwPath.indexOf("*"));
3261 mwPath = mwPath.substring(0, mwPath.lastIndexOf("/"));
3262 const re = new RegExp(routePath.replaceAll("*", "[^/]*"));
3263 app.use(
3264 mwPath,
3265 eventHandler((event) => {
3266 if (re.test(`${mwPath}${event.node.req.url}`)) {
3267 setResponseHeader(event, "x-wildcard-asset-target", context.target);
3268 }
3269 })
3270 );
3271 _assets.push({ mwPath, fsPath, wildcardPath: routePath });
3272 } else {
3273 _assets.push({ mwPath, fsPath });
3274 }
3275 });
3276 _assets.forEach(({ mwPath, fsPath, wildcardPath }) => {
3277 app.use(
3278 mwPath,
3279 eventHandler(async (event) => {
3280 const wildcardAssetTarget = getResponseHeader(
3281 event,
3282 "x-wildcard-asset-target"
3283 );
3284 if (wildcardAssetTarget) {
3285 event.node.req.url = wildcardAssetTarget.replace(
3286 join(state$3.get("assetsPath"), mwPath),
3287 ""
3288 );
3289 }
3290 return fromNodeMiddleware(serveStatic$1(fsPath))(event);
3291 })
3292 );
3293 logger.info(
3294 `-> STATIC ASSETS ${wildcardPath || mwPath || "/"} => ${fsPath}`
3295 );
3296 });
3297};
3298const createProxies = ({ app, router, proxies }) => {
3299 if (!proxies) {
3300 return;
3301 }
3302 proxies.forEach(({ path, context, def }) => {
3303 const proxyMw = createProxyMiddleware({ ...context, logLevel: "warn" });
3304 if (Object.keys(def.throttle || {}).length) {
3305 app.use(path || "/", getThrottleMiddleware(def));
3306 }
3307 app.use(
3308 path || "/",
3309 eventHandler((event) => {
3310 return new Promise((resolve, reject) => {
3311 const next = (err) => {
3312 if (err) {
3313 reject(err);
3314 } else {
3315 resolve(true);
3316 }
3317 };
3318 setResponseHeader(event, "x-proxied", true);
3319 return proxyMw(event.node.req, event.node.res, next);
3320 });
3321 })
3322 );
3323 logger.info(`-> PROXY ${path || "/"} => ${context.target}`);
3324 });
3325};
3326
3327let state$2 = config.commands;
3328function useCommand() {
3329 return {
3330 merge(commands) {
3331 state$2 = { ...state$2, ...commands };
3332 },
3333 executeCommand(command) {
3334 return get(state$2, command.name)(command.params);
3335 }
3336 };
3337}
3338
3339let state$1 = [];
3340function useMiddlewares() {
3341 return {
3342 append(mw) {
3343 state$1 = [...state$1, ...mw];
3344 },
3345 set(mw) {
3346 state$1 = [...mw];
3347 },
3348 list() {
3349 return state$1;
3350 }
3351 };
3352}
3353
3354const api = useAPI();
3355const { executeCommand } = useCommand();
3356const { loadDb } = useDB();
3357const { checkRoutesFile, loadUuid, getUserConfig, getRoutesDef } = useIO();
3358const { isEsmMode } = useIO$1();
3359const middlewares = useMiddlewares();
3360const state = useState();
3361let app, emit$1, root, listener, userConfig, version, port;
3362const init = async (_root, _emit, _version, _port) => {
3363 version = _version;
3364 root = resolve(_root);
3365 emit$1 = _emit;
3366 port = _port;
3367 state.set("root", root);
3368 userConfig = await getUserConfig();
3369 state.merge(userConfig);
3370 if (!await checkRoutesFile()) {
3371 logger.error(
3372 `Please create a "${state.get(
3373 "routesFile"
3374 )}.json" file in this directory: ${state.get("root")}, and restart.`
3375 );
3376 process.exit();
3377 }
3378 await loadUuid();
3379};
3380const initServer = async () => {
3381 app = createApp({ debug: true });
3382 await loadDb();
3383 middlewares.set(config.middlewares);
3384 if (userConfig.middlewares) {
3385 middlewares.append(userConfig.middlewares);
3386 }
3387 if (userConfig.templates) {
3388 useTemplates().merge(userConfig.templates);
3389 }
3390 if (userConfig.commands) {
3391 useCommand().merge(userConfig.commands(api));
3392 }
3393 logger.info("-> Middlewares:");
3394 console.info(middlewares.list());
3395 for (let mw of middlewares.list()) {
3396 if (typeof mw !== "function") {
3397 mw = internalMiddlewares[mw];
3398 }
3399 if (mw.length === 2) {
3400 mw = curry(mw)(api);
3401 }
3402 app.use(eventHandler(mw));
3403 }
3404 const routesDef = await getRoutesDef();
3405 const router = createRouter();
3406 await createRoutes(app, router, routesDef);
3407 app.use(
3408 eventHandler((req) => {
3409 if (!Object.values(state.get("reservedRoutes")).includes(req.url)) {
3410 emit$1("request", {
3411 url: req.url,
3412 method: req.method
3413 });
3414 }
3415 })
3416 );
3417 app.use(
3418 state.get("reservedRoutes").ui,
3419 eventHandler(internalMiddlewares["open-cors"])
3420 );
3421 router.get(
3422 state.get("reservedRoutes").ui,
3423 eventHandler(() => {
3424 return { routes: routesDef };
3425 })
3426 );
3427 app.use(
3428 state.get("reservedRoutes").cmd,
3429 eventHandler(internalMiddlewares["open-cors"])
3430 );
3431 router.post(
3432 state.get("reservedRoutes").cmd,
3433 eventHandler(async (event) => {
3434 const body = await readBody(event);
3435 if (body.cmd === "restart") {
3436 emit$1("restart");
3437 if (isEsmMode()) {
3438 return {
3439 restarted: false,
3440 comment: RESTART_DISABLED_IN_ESM_MODE
3441 };
3442 } else {
3443 return { restarted: true };
3444 }
3445 } else {
3446 const result = await executeCommand({
3447 name: body.cmd,
3448 params: body
3449 });
3450 return result;
3451 }
3452 })
3453 );
3454 app.use(router);
3455};
3456const getDescription = () => ({
3457 isDrosse: true,
3458 version,
3459 uuid: state.get("uuid"),
3460 name: state.get("name"),
3461 proto: "http",
3462 port: state.get("port"),
3463 root: state.get("root"),
3464 routesFile: state.get("routesFile"),
3465 collectionsPath: state.get("collectionsPath")
3466});
3467const start = async () => {
3468 await initServer();
3469 const description = getDescription();
3470 console.log();
3471 logger.debug(
3472 `App ${description.name ? ansiColors.magenta(description.name) + " " : ""}(version ${ansiColors.magenta(version)}) running at:`
3473 );
3474 listener = await listen(toNodeListener(app), {
3475 port: port || description.port
3476 });
3477 if (typeof userConfig.extendServer === "function") {
3478 userConfig.extendServer({ server: listener.server, app, db: api.db });
3479 }
3480 if (typeof userConfig.onHttpUpgrade === "function") {
3481 listener.server.on("upgrade", userConfig.onHttpUpgrade);
3482 }
3483 console.log();
3484 logger.debug(`Mocks root: ${ansiColors.magenta(description.root)}`);
3485 console.log();
3486 emit$1("start", state.get());
3487 return listener;
3488};
3489const stop = async () => {
3490 await listener.close();
3491 logger.warn("Server stopped");
3492 emit$1("stop");
3493};
3494const restart = async () => {
3495 if (isEsmMode()) {
3496 console.warn(RESTART_DISABLED_IN_ESM_MODE);
3497 console.info("Please use ctrl+c to restart drosse.");
3498 } else {
3499 await stop();
3500 await start();
3501 }
3502};
3503const describe = () => {
3504 return getDescription();
3505};
3506
3507function serveStatic(root, port, proxy) {
3508 const app = createApp({ debug: true });
3509 app.use(internalMiddlewares.morgan);
3510 const staticMw = serveStatic$1(root, { fallthrough: false, redirect: false });
3511 if (proxy) {
3512 const proxyMw = createProxyMiddleware({
3513 target: proxy,
3514 changeOriging: true
3515 });
3516 app.use(async (req, res) => {
3517 let fileExists;
3518 try {
3519 await promises.access(join(root, req.url));
3520 fileExists = true;
3521 } catch {
3522 fileExists = false;
3523 }
3524 return new Promise((resolve, reject) => {
3525 const next = (err) => {
3526 if (err) {
3527 reject(err);
3528 } else {
3529 resolve(true);
3530 }
3531 };
3532 return fileExists ? staticMw(req, res, next) : proxyMw(req, res, next);
3533 });
3534 });
3535 } else {
3536 app.use("/", fromNodeMiddleware(staticMw));
3537 }
3538 listen(toNodeListener(app), { port });
3539}
3540
3541function db(vorpal, { config, restart }) {
3542 const dropDatabase = async () => {
3543 const { deleteAllUploadedFiles } = useIO();
3544 const dbFile = join(config.root, config.database);
3545 await promises.rm(dbFile);
3546 await deleteAllUploadedFiles();
3547 return restart();
3548 };
3549 vorpal.command("db drop", "Delete the database file and the uploaded files.").action(dropDatabase);
3550}
3551
3552function cli(vorpal, params) {
3553 vorpal.command("rs", "Restart the server.").action(() => {
3554 return params.restart();
3555 });
3556 db(vorpal, params);
3557}
3558
3559function useCLI(config, restart) {
3560 const vorpal = _vorpal();
3561 const { executeCommand } = useCommand();
3562 const runCommand = async (name, params) => executeCommand({ name, params });
3563 return {
3564 extend(callback) {
3565 callback(vorpal, { config, runCommand, restart });
3566 },
3567 start() {
3568 this.extend(cli);
3569 vorpal.delimiter("\u{1F3A4}").show();
3570 }
3571 };
3572}
3573
3574const defineDrosseServer = (userConfig) => userConfig;
3575const defineDrosseScraper = (handler) => handler;
3576const defineDrosseService = (handler) => handler;
3577process.title = `node drosse ${process.argv[1]}`;
3578let _version, discover, description, noRepl;
3579const getVersion = async () => {
3580 if (!_version) {
3581 try {
3582 const importPath = import.meta.url.replace("file://", "/");
3583 const packageFile = join(importPath, "..", "..", "package.json");
3584 const content = await readFile(packageFile, "utf8");
3585 _version = JSON.parse(content).version;
3586 } catch (e) {
3587 console.error("Failed to get Drosse version", e);
3588 }
3589 }
3590 return _version;
3591};
3592const emit = async (event, data) => {
3593 switch (event) {
3594 case "start":
3595 description = describe();
3596 if (!Boolean(discover)) {
3597 discover = new Discover();
3598 discover.advertise(description);
3599 }
3600 try {
3601 setTimeout(() => {
3602 discover?.send(event, { uuid: description.uuid });
3603 }, 10);
3604 } catch (e) {
3605 console.error(e);
3606 }
3607 if (Boolean(noRepl)) {
3608 return;
3609 }
3610 const io = useIO();
3611 const cli = useCLI(data, restart);
3612 const userConfig = await io.getUserConfig(data.root);
3613 if (userConfig.cli) {
3614 cli.extend(userConfig.cli);
3615 }
3616 cli.start();
3617 break;
3618 case "restart":
3619 restart();
3620 break;
3621 case "stop":
3622 discover?.send(event, { uuid: description.uuid });
3623 break;
3624 case "request":
3625 discover?.send(event, { uuid: description.uuid, ...data });
3626 break;
3627 }
3628};
3629function getMatchablePath(path) {
3630 let stop = false;
3631 return path.replace(/^(.*\/\/)?\/(.*)$/g, "/$2").split("/").reduce((matchablePath, dir) => {
3632 if (["node_modules", "dist", "src"].includes(dir)) {
3633 stop = true;
3634 }
3635 if (!stop) {
3636 matchablePath.push(dir);
3637 }
3638 return matchablePath;
3639 }, []).join("/");
3640}
3641if (getMatchablePath(import.meta.url) === getMatchablePath(process.argv[1])) {
3642 yargs(hideBin(process.argv)).usage("Usage: $0 <cmd> [args]").command({
3643 command: "describe <rootPath>",
3644 desc: "Describe the mock server",
3645 handler: async (argv) => {
3646 const version = await getVersion();
3647 await init(argv.rootPath, emit, version);
3648 console.log(describe());
3649 process.exit();
3650 }
3651 }).command({
3652 command: "serve <rootPath>",
3653 desc: "Run the mock server",
3654 builder: {
3655 port: {
3656 alias: "p",
3657 describe: "HTTP port",
3658 type: "number"
3659 },
3660 norepl: {
3661 default: false,
3662 describe: "Disable repl mode",
3663 type: "boolean"
3664 }
3665 },
3666 handler: async (argv) => {
3667 noRepl = argv.norepl;
3668 const version = await getVersion();
3669 await init(argv.rootPath, emit, version, argv.port);
3670 return start();
3671 }
3672 }).command({
3673 command: "static <rootPath>",
3674 desc: "Run a static file server",
3675 builder: {
3676 port: {
3677 alias: "p",
3678 describe: "HTTP port",
3679 type: "number"
3680 },
3681 proxy: {
3682 alias: "P",
3683 describe: "Proxy requests to another host",
3684 type: "string"
3685 }
3686 },
3687 handler: async (argv) => {
3688 return serveStatic(argv.rootPath, argv.port, argv.proxy);
3689 }
3690 }).demandCommand(1).strict().parse();
3691}
3692
3693export { defineDrosseScraper, defineDrosseServer, defineDrosseService };