makecoder 4.0.27 → 4.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/cc.mjs +2 -2
  2. package/dist/coder.js +1 -1
  3. package/dist/darwin-arm64/cc.js +41 -6
  4. package/dist/darwin-x64/cc.js +41 -6
  5. package/dist/gemini/{chunk-2SX35WX4.js → chunk-356OVHGG.js} +1 -1
  6. package/dist/gemini/{chunk-QLWIHN4W.js → chunk-63ULYU4I.js} +2 -2
  7. package/dist/gemini/{chunk-3MILFT2A.js → chunk-ACEDFBEP.js} +2 -2
  8. package/dist/gemini/{chunk-M4VGJYXT.js → chunk-CJ5VLAB6.js} +1 -1
  9. package/dist/gemini/{chunk-L6MG6Y4N.js → chunk-CNS6SZJ6.js} +1 -1
  10. package/dist/gemini/{chunk-CVQSCATI.js → chunk-FJMU6UNE.js} +1 -1
  11. package/dist/gemini/{chunk-REVEB6QQ.js → chunk-G6V3NYLD.js} +1 -1
  12. package/dist/gemini/{chunk-FLHTGF3O.js → chunk-MH5WU37R.js} +1 -1
  13. package/dist/gemini/{chunk-A6MX3ZUI.js → chunk-PZM5Q2NO.js} +2 -2
  14. package/dist/gemini/{chunk-7QO7ZB7U.js → chunk-R4YJJCUP.js} +1 -1
  15. package/dist/gemini/{chunk-GTU5AZLF.js → chunk-RTOTOYZ3.js} +1 -1
  16. package/dist/gemini/{chunk-A3CFCECQ.js → chunk-S5WFVXWE.js} +1 -1
  17. package/dist/gemini/{chunk-RFHUTEFF.js → chunk-VFMKTMIZ.js} +1 -1
  18. package/dist/gemini/{chunk-AHBTQKKJ.js → chunk-VJITGXD7.js} +2 -2
  19. package/dist/gemini/{chunk-QZZSKH6J.js → chunk-W5TDQYOY.js} +1 -1
  20. package/dist/gemini/{chunk-UFGP2VEQ.js → chunk-XPH4EMMZ.js} +1 -1
  21. package/dist/gemini/{cleanup-M2L7Y3J6.js → cleanup-IEMHEGQL.js} +1 -1
  22. package/dist/gemini/{cleanup-ZJ3DDNQU.js → cleanup-SFYLF5RQ.js} +1 -1
  23. package/dist/gemini/{core-SNF4J4VI.js → core-4QE6N7IV.js} +1 -1
  24. package/dist/gemini/{devtoolsService-FDXINY4I.js → devtoolsService-34NLK5WH.js} +2 -2
  25. package/dist/gemini/{devtoolsService-53YKYRAY.js → devtoolsService-J7RUHF7G.js} +2 -2
  26. package/dist/gemini/{dist-OHEMBVSW.js → dist-3KXWDUDH.js} +1 -1
  27. package/dist/gemini/{gemini-UJXQV7SS.js → gemini-VQICWID3.js} +5 -5
  28. package/dist/gemini/{gemini-LJKZO6ID.js → gemini-XKFI76VG.js} +5 -5
  29. package/dist/gemini/gemini.js +2 -2
  30. package/dist/gemini/{interactiveCli-E5EI2CZT.js → interactiveCli-DX6PGO5O.js} +2 -2
  31. package/dist/gemini/{interactiveCli-PRHLNZCE.js → interactiveCli-QF76UNZ5.js} +2 -2
  32. package/dist/gemini/{liteRtServerManager-5SQ2TTDE.js → liteRtServerManager-DQU232O5.js} +1 -1
  33. package/dist/gemini/{liteRtServerManager-JCWKAJFL.js → liteRtServerManager-HXFM7XV2.js} +1 -1
  34. package/dist/gemini/{oauth2-provider-Q6HTZTKH.js → oauth2-provider-3U23IVR2.js} +1 -1
  35. package/dist/gemini/{oauth2-provider-BA4IPWPG.js → oauth2-provider-SFOTVTXE.js} +1 -1
  36. package/dist/gemini/{start-3PMI6ZVJ.js → start-LAWWIE6I.js} +1 -1
  37. package/dist/gemini/{start-DO44GV2B.js → start-RDNQUCPC.js} +1 -1
  38. package/dist/linux-x64/cc.js +41 -6
  39. package/dist/win32-x64/cc.js +41 -6
  40. package/package.json +4 -4
  41. /package/dist/gemini/{tree-sitter-TTHZYMTS.js → tree-sitter-6LGKSRWQ.js} +0 -0
  42. /package/dist/gemini/{tree-sitter-bash-OIMPM64I.js → tree-sitter-bash-T5FTGOXW.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import{h as x}from"./chunk-FLHTGF3O.js";import{Og as P,Qg as h,yh as y}from"./chunk-QLWIHN4W.js";import{b as d}from"./chunk-PZNAC7U7.js";import*as l from"node:fs";import*as f from"node:path";import*as M from"node:child_process";import g from"node:process";var B=g.env.NODE_ENV==="development";function w(a,n){let i=g.argv[1];if(!i)return{packageManager:"unknown",isGlobal:!1};try{if(g.env.IS_BINARY==="true")return{packageManager:"binary",isGlobal:!0,updateMessage:"Running as a standalone binary. Please update by downloading the latest version from GitHub."};let e=l.realpathSync(i).replace(/\\/g,"/"),r=a?.replace(/\\/g,"/");if(y(g.cwd())&&r&&e.startsWith(r)&&!e.includes("/node_modules/"))return{packageManager:"unknown",isGlobal:!1,updateMessage:'Running from a local git clone. Please update with "git pull".'};if(e.includes("/.npm/_npx")||e.includes("/npm/_npx"))return{packageManager:"npx",isGlobal:!1,updateMessage:"Running via npx, update not applicable."};if(e.includes("/.pnpm/_pnpx")||e.includes("/.cache/pnpm/dlx"))return{packageManager:"pnpx",isGlobal:!1,updateMessage:"Running via pnpx, update not applicable."};if(g.platform==="darwin")try{let t=M.execSync("brew --prefix gemini-cli",{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim(),c=l.realpathSync(t);if(e.startsWith(c))return{packageManager:"homebrew",isGlobal:!0,updateMessage:'Installed via Homebrew. Please update with "brew upgrade gemini-cli".'}}catch{}if(e.includes("/.pnpm/global")||e.includes("/.local/share/pnpm")){let t="pnpm add -g @google/gemini-cli@latest";return{packageManager:"pnpm",isGlobal:!0,updateCommand:t,updateMessage:n?"Installed with pnpm. Attempting to automatically update now...":`Please run ${t} to update`}}if(e.includes("/.yarn/global")){let t="yarn global add @google/gemini-cli@latest";return{packageManager:"yarn",isGlobal:!0,updateCommand:t,updateMessage:n?"Installed with yarn. Attempting to automatically update now...":`Please run ${t} to update`}}if(e.includes("/.bun/install/cache"))return{packageManager:"bunx",isGlobal:!1,updateMessage:"Running via bunx, update not applicable."};if(e.includes("/.bun/install/global")){let t="bun add -g @google/gemini-cli@latest";return{packageManager:"bun",isGlobal:!0,updateCommand:t,updateMessage:n?"Installed with bun. Attempting to automatically update now...":`Please run ${t} to update`}}if(r&&e.startsWith(`${r}/node_modules`)){let t="npm";return l.existsSync(f.join(a,"yarn.lock"))?t="yarn":l.existsSync(f.join(a,"pnpm-lock.yaml"))?t="pnpm":l.existsSync(f.join(a,"bun.lockb"))&&(t="bun"),{packageManager:t,isGlobal:!1,updateMessage:"Locally installed. Please update via your project's package.json."}}let o="npm install -g @google/gemini-cli@latest";return{packageManager:"npm",isGlobal:!0,updateCommand:o,updateMessage:n?"Installed with npm. Attempting to automatically update now...":`Please run ${o} to update`}}catch(e){return d.log(e),{packageManager:"unknown",isGlobal:!1}}}import{EventEmitter as E}from"node:events";var s=new E;import{spawn as A}from"node:child_process";var v=A;var u=!1;async function I(a=3e4){if(u)return d.log(`
2
+ import{h as x}from"./chunk-MH5WU37R.js";import{Og as P,Qg as h,yh as y}from"./chunk-63ULYU4I.js";import{b as d}from"./chunk-PZNAC7U7.js";import*as l from"node:fs";import*as f from"node:path";import*as M from"node:child_process";import g from"node:process";var B=g.env.NODE_ENV==="development";function w(a,n){let i=g.argv[1];if(!i)return{packageManager:"unknown",isGlobal:!1};try{if(g.env.IS_BINARY==="true")return{packageManager:"binary",isGlobal:!0,updateMessage:"Running as a standalone binary. Please update by downloading the latest version from GitHub."};let e=l.realpathSync(i).replace(/\\/g,"/"),r=a?.replace(/\\/g,"/");if(y(g.cwd())&&r&&e.startsWith(r)&&!e.includes("/node_modules/"))return{packageManager:"unknown",isGlobal:!1,updateMessage:'Running from a local git clone. Please update with "git pull".'};if(e.includes("/.npm/_npx")||e.includes("/npm/_npx"))return{packageManager:"npx",isGlobal:!1,updateMessage:"Running via npx, update not applicable."};if(e.includes("/.pnpm/_pnpx")||e.includes("/.cache/pnpm/dlx"))return{packageManager:"pnpx",isGlobal:!1,updateMessage:"Running via pnpx, update not applicable."};if(g.platform==="darwin")try{let t=M.execSync("brew --prefix gemini-cli",{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim(),c=l.realpathSync(t);if(e.startsWith(c))return{packageManager:"homebrew",isGlobal:!0,updateMessage:'Installed via Homebrew. Please update with "brew upgrade gemini-cli".'}}catch{}if(e.includes("/.pnpm/global")||e.includes("/.local/share/pnpm")){let t="pnpm add -g @google/gemini-cli@latest";return{packageManager:"pnpm",isGlobal:!0,updateCommand:t,updateMessage:n?"Installed with pnpm. Attempting to automatically update now...":`Please run ${t} to update`}}if(e.includes("/.yarn/global")){let t="yarn global add @google/gemini-cli@latest";return{packageManager:"yarn",isGlobal:!0,updateCommand:t,updateMessage:n?"Installed with yarn. Attempting to automatically update now...":`Please run ${t} to update`}}if(e.includes("/.bun/install/cache"))return{packageManager:"bunx",isGlobal:!1,updateMessage:"Running via bunx, update not applicable."};if(e.includes("/.bun/install/global")){let t="bun add -g @google/gemini-cli@latest";return{packageManager:"bun",isGlobal:!0,updateCommand:t,updateMessage:n?"Installed with bun. Attempting to automatically update now...":`Please run ${t} to update`}}if(r&&e.startsWith(`${r}/node_modules`)){let t="npm";return l.existsSync(f.join(a,"yarn.lock"))?t="yarn":l.existsSync(f.join(a,"pnpm-lock.yaml"))?t="pnpm":l.existsSync(f.join(a,"bun.lockb"))&&(t="bun"),{packageManager:t,isGlobal:!1,updateMessage:"Locally installed. Please update via your project's package.json."}}let o="npm install -g @google/gemini-cli@latest";return{packageManager:"npm",isGlobal:!0,updateCommand:o,updateMessage:n?"Installed with npm. Attempting to automatically update now...":`Please run ${o} to update`}}catch(e){return d.log(e),{packageManager:"unknown",isGlobal:!1}}}import{EventEmitter as E}from"node:events";var s=new E;import{spawn as A}from"node:child_process";var v=A;var u=!1;async function I(a=3e4){if(u)return d.log(`
3
3
  Gemini CLI is waiting for a background update to complete before restarting...`),new Promise(n=>{if(!u){n();return}let i=setTimeout(e,a);function e(){clearTimeout(i),s.off("update-success",e),s.off("update-failed",e),n()}s.once("update-success",e),s.once("update-failed",e)})}function V(a,n,i,e,r=v){if(!a)return;if(e){s.emit("update-info",{message:`${a.message}
4
4
  Automatic update is not available in sandbox mode.`});return}if(!n.merged.general.enableAutoUpdateNotification)return;let p=w(i,n.merged.general.enableAutoUpdate);if(["npx","pnpx","bunx","binary"].includes(p.packageManager))return;let o=a.message;if(p.updateMessage&&(o+=`
5
5
  ${p.updateMessage}`),!p.updateCommand||!n.merged.general.enableAutoUpdate){s.emit("update-received",{...a,message:o,isUpdating:!1});return}if(s.emit("update-received",{...a,message:o,isUpdating:!0}),u)return;let t=a.update.current;if(!t){d.warn("Update check: current version is missing. Skipping automatic update for safety.");return}let c=h(t),k=h(a.update.latest);if(P[k]<P[c])return;let U=a.update.latest.includes("nightly"),b=p.updateCommand.replace("@latest",U?"@nightly":`@${a.update.latest}`),m=r(b,{stdio:"ignore",shell:!0,detached:!0});return u=!0,m.unref(),m.on("close",N=>{u=!1,N===0?s.emit("update-success",{message:"Update successful! The new version will be used on your next run."}):s.emit("update-failed",{message:`Automatic update failed. Please try updating manually:
@@ -1,5 +1,5 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import{B as ii,Dc as ni,Mh as li,Nh as Ke,Ok as Be,Xm as Lt,Y as Pt,Zg as oi,cm as ci,do as hi,em as Nt,ho as di,in as Vs,nk as ui,td as si,ud as ai,vd as je,wi as Fe,yd as pt,z as ri}from"./chunk-QLWIHN4W.js";import{Ca as ti,Ra as ve,a as N,aa as dt,b as te,da as ft,se as be,wa as ei}from"./chunk-PZNAC7U7.js";import{a as Ve,c as ie,e as ht}from"./chunk-YUXORC52.js";var Ei=ie((bc,ya)=>{ya.exports={name:"dotenv",version:"17.1.0",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var Ii=ie((xc,Ee)=>{var Zt=Ve("fs"),gt=Ve("path"),ba=Ve("os"),xa=Ve("crypto"),Da=Ei(),Qt=Da.version,Ai=["\u{1F510} encrypt with dotenvx: https://dotenvx.com","\u{1F510} prevent committing .env to code: https://dotenvx.com/precommit","\u{1F510} prevent building .env in docker: https://dotenvx.com/prebuild","\u{1F6E0}\uFE0F run anywhere with `dotenvx run -- yourcommand`","\u2699\uFE0F specify custom .env file path with { path: '/custom/path/.env' }","\u2699\uFE0F enable debug logging with { debug: true }","\u2699\uFE0F override existing env vars with { override: true }","\u2699\uFE0F suppress all logs with { quiet: true }","\u2699\uFE0F write to custom object with { processEnv: myObject }","\u2699\uFE0F load multiple .env files with { path: ['.env.local', '.env'] }"];function va(){return Ai[Math.floor(Math.random()*Ai.length)]}function Sa(){return process.stdout.isTTY}function Ea(e){return Sa()?`\x1B[2m${e}\x1B[0m`:e}var Aa=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Ca(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
2
+ import{B as ii,Dc as ni,Mh as li,Nh as Ke,Ok as Be,Xm as Lt,Y as Pt,Zg as oi,cm as ci,do as hi,em as Nt,ho as di,in as Vs,nk as ui,td as si,ud as ai,vd as je,wi as Fe,yd as pt,z as ri}from"./chunk-63ULYU4I.js";import{Ca as ti,Ra as ve,a as N,aa as dt,b as te,da as ft,se as be,wa as ei}from"./chunk-PZNAC7U7.js";import{a as Ve,c as ie,e as ht}from"./chunk-YUXORC52.js";var Ei=ie((bc,ya)=>{ya.exports={name:"dotenv",version:"17.1.0",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var Ii=ie((xc,Ee)=>{var Zt=Ve("fs"),gt=Ve("path"),ba=Ve("os"),xa=Ve("crypto"),Da=Ei(),Qt=Da.version,Ai=["\u{1F510} encrypt with dotenvx: https://dotenvx.com","\u{1F510} prevent committing .env to code: https://dotenvx.com/precommit","\u{1F510} prevent building .env in docker: https://dotenvx.com/prebuild","\u{1F6E0}\uFE0F run anywhere with `dotenvx run -- yourcommand`","\u2699\uFE0F specify custom .env file path with { path: '/custom/path/.env' }","\u2699\uFE0F enable debug logging with { debug: true }","\u2699\uFE0F override existing env vars with { override: true }","\u2699\uFE0F suppress all logs with { quiet: true }","\u2699\uFE0F write to custom object with { processEnv: myObject }","\u2699\uFE0F load multiple .env files with { path: ['.env.local', '.env'] }"];function va(){return Ai[Math.floor(Math.random()*Ai.length)]}function Sa(){return process.stdout.isTTY}function Ea(e){return Sa()?`\x1B[2m${e}\x1B[0m`:e}var Aa=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Ca(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
3
3
  `);let i;for(;(i=Aa.exec(r))!=null;){let o=i[1],u=i[2]||"";u=u.trim();let a=u[0];u=u.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(u=u.replace(/\\n/g,`
4
4
  `),u=u.replace(/\\r/g,"\r")),t[o]=u}return t}function wa(e){e=e||{};let t=ki(e);e.path=t;let r=V.configDotenv(e);if(!r.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw a.code="MISSING_DATA",a}let i=Fi(e).split(","),o=i.length,u;for(let a=0;a<o;a++)try{let f=i[a].trim(),p=ka(r,f);u=V.decrypt(p.ciphertext,p.key);break}catch(f){if(a+1>=o)throw f}return V.parse(u)}function Fa(e){console.error(`[dotenv@${Qt}][WARN] ${e}`)}function Ze(e){console.log(`[dotenv@${Qt}][DEBUG] ${e}`)}function wi(e){console.log(`[dotenv@${Qt}] ${e}`)}function Fi(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function ka(e,t){let r;try{r=new URL(t)}catch(f){if(f.code==="ERR_INVALID_URL"){let p=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw p.code="INVALID_DOTENV_KEY",p}throw f}let i=r.password;if(!i){let f=new Error("INVALID_DOTENV_KEY: Missing key part");throw f.code="INVALID_DOTENV_KEY",f}let o=r.searchParams.get("environment");if(!o){let f=new Error("INVALID_DOTENV_KEY: Missing environment part");throw f.code="INVALID_DOTENV_KEY",f}let u=`DOTENV_VAULT_${o.toUpperCase()}`,a=e.parsed[u];if(!a){let f=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${u} in your .env.vault file.`);throw f.code="NOT_FOUND_DOTENV_ENVIRONMENT",f}return{ciphertext:a,key:i}}function ki(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)Zt.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=gt.resolve(process.cwd(),".env.vault");return Zt.existsSync(t)?t:null}function Ci(e){return e[0]==="~"?gt.join(ba.homedir(),e.slice(1)):e}function Ia(e){let t=!!(e&&e.debug),r=!!(e&&e.quiet);(t||!r)&&wi("Loading env from encrypted .env.vault");let i=V._parseVault(e),o=process.env;return e&&e.processEnv!=null&&(o=e.processEnv),V.populate(o,i,e),{parsed:i}}function Ta(e){let t=gt.resolve(process.cwd(),".env"),r="utf8",i=!!(e&&e.debug),o=!!(e&&e.quiet);e&&e.encoding?r=e.encoding:i&&Ze("No encoding is specified. UTF-8 is used by default");let u=[t];if(e&&e.path)if(!Array.isArray(e.path))u=[Ci(e.path)];else{u=[];for(let h of e.path)u.push(Ci(h))}let a,f={};for(let h of u)try{let m=V.parse(Zt.readFileSync(h,{encoding:r}));V.populate(f,m,e)}catch(m){i&&Ze(`Failed to load ${h} ${m.message}`),a=m}let p=process.env;e&&e.processEnv!=null&&(p=e.processEnv);let g=V.populate(p,f,e);if(i||!o){let h=Object.keys(g).length,m=[];for(let d of u)try{let n=gt.relative(process.cwd(),d);m.push(n)}catch(n){i&&Ze(`Failed to load ${d} ${n.message}`),a=n}wi(`injecting env (${h}) from ${m.join(",")} ${Ea(`(tip: ${va()})`)}`)}return a?{parsed:f,error:a}:{parsed:f}}function Ra(e){if(Fi(e).length===0)return V.configDotenv(e);let t=ki(e);return t?V._configVault(e):(Fa(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),V.configDotenv(e))}function Ma(e,t){let r=Buffer.from(t.slice(-64),"hex"),i=Buffer.from(e,"base64"),o=i.subarray(0,12),u=i.subarray(-16);i=i.subarray(12,-16);try{let a=xa.createDecipheriv("aes-256-gcm",r,o);return a.setAuthTag(u),`${a.update(i)}${a.final()}`}catch(a){let f=a instanceof RangeError,p=a.message==="Invalid key length",g=a.message==="Unsupported state or unable to authenticate data";if(f||p){let h=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw h.code="INVALID_DOTENV_KEY",h}else if(g){let h=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw h.code="DECRYPTION_FAILED",h}else throw a}}function Ba(e,t,r={}){let i=!!(r&&r.debug),o=!!(r&&r.override),u={};if(typeof t!="object"){let a=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw a.code="OBJECT_REQUIRED",a}for(let a of Object.keys(t))Object.prototype.hasOwnProperty.call(e,a)?(o===!0&&(e[a]=t[a],u[a]=t[a]),i&&Ze(o===!0?`"${a}" is already defined and WAS overwritten`:`"${a}" is already defined and was NOT overwritten`)):(e[a]=t[a],u[a]=t[a]);return u}var V={configDotenv:Ta,_configVault:Ia,_parseVault:wa,config:Ra,decrypt:Ma,parse:Ca,populate:Ba};Ee.exports.configDotenv=V.configDotenv;Ee.exports._configVault=V._configVault;Ee.exports._parseVault=V._parseVault;Ee.exports.config=V.config;Ee.exports.decrypt=V.decrypt;Ee.exports.parse=V.parse;Ee.exports.populate=V.populate;Ee.exports=V});var Ti=ie((er,tr)=>{(function(e,t){typeof er=="object"&&typeof tr<"u"?tr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(er,function(){"use strict";function e(b){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},e(b)}var t=/^\s+/,r=/\s+$/;function i(b,D){if(b=b||"",D=D||{},b instanceof i)return b;if(!(this instanceof i))return new i(b,D);var x=o(b);this._originalInput=b,this._r=x.r,this._g=x.g,this._b=x.b,this._a=x.a,this._roundA=Math.round(100*this._a)/100,this._format=D.format||x.format,this._gradientType=D.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=x.ok}i.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var D=this.toRgb();return(D.r*299+D.g*587+D.b*114)/1e3},getLuminance:function(){var D=this.toRgb(),x,C,T,I,q,G;return x=D.r/255,C=D.g/255,T=D.b/255,x<=.03928?I=x/12.92:I=Math.pow((x+.055)/1.055,2.4),C<=.03928?q=C/12.92:q=Math.pow((C+.055)/1.055,2.4),T<=.03928?G=T/12.92:G=Math.pow((T+.055)/1.055,2.4),.2126*I+.7152*q+.0722*G},setAlpha:function(D){return this._a=ae(D),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var D=p(this._r,this._g,this._b);return{h:D.h*360,s:D.s,v:D.v,a:this._a}},toHsvString:function(){var D=p(this._r,this._g,this._b),x=Math.round(D.h*360),C=Math.round(D.s*100),T=Math.round(D.v*100);return this._a==1?"hsv("+x+", "+C+"%, "+T+"%)":"hsva("+x+", "+C+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var D=a(this._r,this._g,this._b);return{h:D.h*360,s:D.s,l:D.l,a:this._a}},toHslString:function(){var D=a(this._r,this._g,this._b),x=Math.round(D.h*360),C=Math.round(D.s*100),T=Math.round(D.l*100);return this._a==1?"hsl("+x+", "+C+"%, "+T+"%)":"hsla("+x+", "+C+"%, "+T+"%, "+this._roundA+")"},toHex:function(D){return h(this._r,this._g,this._b,D)},toHexString:function(D){return"#"+this.toHex(D)},toHex8:function(D){return m(this._r,this._g,this._b,this._a,D)},toHex8String:function(D){return"#"+this.toHex8(D)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(j(this._r,255)*100)+"%",g:Math.round(j(this._g,255)*100)+"%",b:Math.round(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(j(this._r,255)*100)+"%, "+Math.round(j(this._g,255)*100)+"%, "+Math.round(j(this._b,255)*100)+"%)":"rgba("+Math.round(j(this._r,255)*100)+"%, "+Math.round(j(this._g,255)*100)+"%, "+Math.round(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:z[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(D){var x="#"+d(this._r,this._g,this._b,this._a),C=x,T=this._gradientType?"GradientType = 1, ":"";if(D){var I=i(D);C="#"+d(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+x+",endColorstr="+C+")"},toString:function(D){var x=!!D;D=D||this._format;var C=!1,T=this._a<1&&this._a>=0,I=!x&&T&&(D==="hex"||D==="hex6"||D==="hex3"||D==="hex4"||D==="hex8"||D==="name");return I?D==="name"&&this._a===0?this.toName():this.toRgbString():(D==="rgb"&&(C=this.toRgbString()),D==="prgb"&&(C=this.toPercentageRgbString()),(D==="hex"||D==="hex6")&&(C=this.toHexString()),D==="hex3"&&(C=this.toHexString(!0)),D==="hex4"&&(C=this.toHex8String(!0)),D==="hex8"&&(C=this.toHex8String()),D==="name"&&(C=this.toName()),D==="hsl"&&(C=this.toHslString()),D==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(D,x){var C=D.apply(null,[this].concat([].slice.call(x)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(s,arguments)},greyscale:function(){return this._applyModification(l,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(D,x){return D.apply(null,[this].concat([].slice.call(x)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(k,[3])},tetrad:function(){return this._applyCombination(k,[4])}},i.fromRatio=function(b,D){if(e(b)=="object"){var x={};for(var C in b)b.hasOwnProperty(C)&&(C==="a"?x[C]=b[C]:x[C]=Re(b[C]));b=x}return i(b,D)};function o(b){var D={r:0,g:0,b:0},x=1,C=null,T=null,I=null,q=!1,G=!1;return typeof b=="string"&&(b=Mt(b)),e(b)=="object"&&(ge(b.r)&&ge(b.g)&&ge(b.b)?(D=u(b.r,b.g,b.b),q=!0,G=String(b.r).substr(-1)==="%"?"prgb":"rgb"):ge(b.h)&&ge(b.s)&&ge(b.v)?(C=Re(b.s),T=Re(b.v),D=g(b.h,C,T),q=!0,G="hsv"):ge(b.h)&&ge(b.s)&&ge(b.l)&&(C=Re(b.s),I=Re(b.l),D=f(b.h,C,I),q=!0,G="hsl"),b.hasOwnProperty("a")&&(x=b.a)),x=ae(x),{ok:q,format:b.format||G,r:Math.min(255,Math.max(D.r,0)),g:Math.min(255,Math.max(D.g,0)),b:Math.min(255,Math.max(D.b,0)),a:x}}function u(b,D,x){return{r:j(b,255)*255,g:j(D,255)*255,b:j(x,255)*255}}function a(b,D,x){b=j(b,255),D=j(D,255),x=j(x,255);var C=Math.max(b,D,x),T=Math.min(b,D,x),I,q,G=(C+T)/2;if(C==T)I=q=0;else{var X=C-T;switch(q=G>.5?X/(2-C-T):X/(C+T),C){case b:I=(D-x)/X+(D<x?6:0);break;case D:I=(x-b)/X+2;break;case x:I=(b-D)/X+4;break}I/=6}return{h:I,s:q,l:G}}function f(b,D,x){var C,T,I;b=j(b,360),D=j(D,100),x=j(x,100);function q(re,Me,ue){return ue<0&&(ue+=1),ue>1&&(ue-=1),ue<1/6?re+(Me-re)*6*ue:ue<1/2?Me:ue<2/3?re+(Me-re)*(2/3-ue)*6:re}if(D===0)C=T=I=x;else{var G=x<.5?x*(1+D):x+D-x*D,X=2*x-G;C=q(X,G,b+1/3),T=q(X,G,b),I=q(X,G,b-1/3)}return{r:C*255,g:T*255,b:I*255}}function p(b,D,x){b=j(b,255),D=j(D,255),x=j(x,255);var C=Math.max(b,D,x),T=Math.min(b,D,x),I,q,G=C,X=C-T;if(q=C===0?0:X/C,C==T)I=0;else{switch(C){case b:I=(D-x)/X+(D<x?6:0);break;case D:I=(x-b)/X+2;break;case x:I=(b-D)/X+4;break}I/=6}return{h:I,s:q,v:G}}function g(b,D,x){b=j(b,360)*6,D=j(D,100),x=j(x,100);var C=Math.floor(b),T=b-C,I=x*(1-D),q=x*(1-T*D),G=x*(1-(1-T)*D),X=C%6,re=[x,q,I,I,G,x][X],Me=[G,x,x,q,I,I][X],ue=[I,I,G,x,x,q][X];return{r:re*255,g:Me*255,b:ue*255}}function h(b,D,x,C){var T=[oe(Math.round(b).toString(16)),oe(Math.round(D).toString(16)),oe(Math.round(x).toString(16))];return C&&T[0].charAt(0)==T[0].charAt(1)&&T[1].charAt(0)==T[1].charAt(1)&&T[2].charAt(0)==T[2].charAt(1)?T[0].charAt(0)+T[1].charAt(0)+T[2].charAt(0):T.join("")}function m(b,D,x,C,T){var I=[oe(Math.round(b).toString(16)),oe(Math.round(D).toString(16)),oe(Math.round(x).toString(16)),oe(ut(C))];return T&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)&&I[3].charAt(0)==I[3].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0)+I[3].charAt(0):I.join("")}function d(b,D,x,C){var T=[oe(ut(C)),oe(Math.round(b).toString(16)),oe(Math.round(D).toString(16)),oe(Math.round(x).toString(16))];return T.join("")}i.equals=function(b,D){return!b||!D?!1:i(b).toRgbString()==i(D).toRgbString()},i.random=function(){return i.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function n(b,D){D=D===0?0:D||10;var x=i(b).toHsl();return x.s-=D/100,x.s=we(x.s),i(x)}function s(b,D){D=D===0?0:D||10;var x=i(b).toHsl();return x.s+=D/100,x.s=we(x.s),i(x)}function l(b){return i(b).desaturate(100)}function c(b,D){D=D===0?0:D||10;var x=i(b).toHsl();return x.l+=D/100,x.l=we(x.l),i(x)}function y(b,D){D=D===0?0:D||10;var x=i(b).toRgb();return x.r=Math.max(0,Math.min(255,x.r-Math.round(255*-(D/100)))),x.g=Math.max(0,Math.min(255,x.g-Math.round(255*-(D/100)))),x.b=Math.max(0,Math.min(255,x.b-Math.round(255*-(D/100)))),i(x)}function v(b,D){D=D===0?0:D||10;var x=i(b).toHsl();return x.l-=D/100,x.l=we(x.l),i(x)}function A(b,D){var x=i(b).toHsl(),C=(x.h+D)%360;return x.h=C<0?360+C:C,i(x)}function w(b){var D=i(b).toHsl();return D.h=(D.h+180)%360,i(D)}function k(b,D){if(isNaN(D)||D<=0)throw new Error("Argument to polyad must be a positive number");for(var x=i(b).toHsl(),C=[i(b)],T=360/D,I=1;I<D;I++)C.push(i({h:(x.h+I*T)%360,s:x.s,l:x.l}));return C}function R(b){var D=i(b).toHsl(),x=D.h;return[i(b),i({h:(x+72)%360,s:D.s,l:D.l}),i({h:(x+216)%360,s:D.s,l:D.l})]}function _(b,D,x){D=D||6,x=x||30;var C=i(b).toHsl(),T=360/x,I=[i(b)];for(C.h=(C.h-(T*D>>1)+720)%360;--D;)C.h=(C.h+T)%360,I.push(i(C));return I}function P(b,D){D=D||6;for(var x=i(b).toHsv(),C=x.h,T=x.s,I=x.v,q=[],G=1/D;D--;)q.push(i({h:C,s:T,v:I})),I=(I+G)%1;return q}i.mix=function(b,D,x){x=x===0?0:x||50;var C=i(b).toRgb(),T=i(D).toRgb(),I=x/100,q={r:(T.r-C.r)*I+C.r,g:(T.g-C.g)*I+C.g,b:(T.b-C.b)*I+C.b,a:(T.a-C.a)*I+C.a};return i(q)},i.readability=function(b,D){var x=i(b),C=i(D);return(Math.max(x.getLuminance(),C.getLuminance())+.05)/(Math.min(x.getLuminance(),C.getLuminance())+.05)},i.isReadable=function(b,D,x){var C=i.readability(b,D),T,I;switch(I=!1,T=Bt(x),T.level+T.size){case"AAsmall":case"AAAlarge":I=C>=4.5;break;case"AAlarge":I=C>=3;break;case"AAAsmall":I=C>=7;break}return I},i.mostReadable=function(b,D,x){var C=null,T=0,I,q,G,X;x=x||{},q=x.includeFallbackColors,G=x.level,X=x.size;for(var re=0;re<D.length;re++)I=i.readability(b,D[re]),I>T&&(T=I,C=i(D[re]));return i.isReadable(b,C,{level:G,size:X})||!q?C:(x.includeFallbackColors=!1,i.mostReadable(b,["#fff","#000"],x))};var U=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=i.hexNames=W(U);function W(b){var D={};for(var x in b)b.hasOwnProperty(x)&&(D[b[x]]=x);return D}function ae(b){return b=parseFloat(b),(isNaN(b)||b<0||b>1)&&(b=1),b}function j(b,D){Tt(b)&&(b="100%");var x=Rt(b);return b=Math.min(D,Math.max(0,parseFloat(b))),x&&(b=parseInt(b*D,10)/100),Math.abs(b-D)<1e-6?1:b%D/parseFloat(D)}function we(b){return Math.min(1,Math.max(0,b))}function ee(b){return parseInt(b,16)}function Tt(b){return typeof b=="string"&&b.indexOf(".")!=-1&&parseFloat(b)===1}function Rt(b){return typeof b=="string"&&b.indexOf("%")!=-1}function oe(b){return b.length==1?"0"+b:""+b}function Re(b){return b<=1&&(b=b*100+"%"),b}function ut(b){return Math.round(parseFloat(b)*255).toString(16)}function ct(b){return ee(b)/255}var le=function(){var b="[-\\+]?\\d+%?",D="[-\\+]?\\d*\\.\\d+%?",x="(?:"+D+")|(?:"+b+")",C="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",T="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?";return{CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ge(b){return!!le.CSS_UNIT.exec(b)}function Mt(b){b=b.replace(t,"").replace(r,"").toLowerCase();var D=!1;if(U[b])b=U[b],D=!0;else if(b=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var x;return(x=le.rgb.exec(b))?{r:x[1],g:x[2],b:x[3]}:(x=le.rgba.exec(b))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=le.hsl.exec(b))?{h:x[1],s:x[2],l:x[3]}:(x=le.hsla.exec(b))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=le.hsv.exec(b))?{h:x[1],s:x[2],v:x[3]}:(x=le.hsva.exec(b))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=le.hex8.exec(b))?{r:ee(x[1]),g:ee(x[2]),b:ee(x[3]),a:ct(x[4]),format:D?"name":"hex8"}:(x=le.hex6.exec(b))?{r:ee(x[1]),g:ee(x[2]),b:ee(x[3]),format:D?"name":"hex"}:(x=le.hex4.exec(b))?{r:ee(x[1]+""+x[1]),g:ee(x[2]+""+x[2]),b:ee(x[3]+""+x[3]),a:ct(x[4]+""+x[4]),format:D?"name":"hex8"}:(x=le.hex3.exec(b))?{r:ee(x[1]+""+x[1]),g:ee(x[2]+""+x[2]),b:ee(x[3]+""+x[3]),format:D?"name":"hex"}:!1}function Bt(b){var D,x;return b=b||{level:"AA",size:"small"},D=(b.level||"AA").toUpperCase(),x=(b.size||"small").toLowerCase(),D!=="AA"&&D!=="AAA"&&(D="AA"),x!=="small"&&x!=="large"&&(x="small"),{level:D,size:x}}return i})});var Li=ie((Dc,Ni)=>{var Qe=Ti(),_i={r:256,g:256,b:256,a:1},Pi={h:360,s:1,v:1,a:1};function nr(e,t,r){let i={};for(let o in e)e.hasOwnProperty(o)&&(i[o]=r===0?0:(t[o]-e[o])/r);return i}function sr(e,t,r,i){let o={};for(let u in t)t.hasOwnProperty(u)&&(o[u]=e[u]*r+t[u],o[u]=o[u]<0?o[u]+i[u]:i[u]!==1?o[u]%i[u]:o[u]);return o}function rr(e,t,r){let i=e.color.toRgb(),o=t.color.toRgb(),u=nr(i,o,r),a=[e.color];for(let f=1;f<r;f++){let p=sr(u,i,f,_i);a.push(Qe(p))}return a}function Ri(e,t,r,i){let o=e.color.toHsv(),u=t.color.toHsv();if(o.s===0||u.s===0)return rr(e,t,r);let a;if(typeof i=="boolean")a=i;else{let h=o.h<u.h&&u.h-o.h<180||o.h>u.h&&o.h-u.h>180;a=i==="long"&&h||i==="short"&&!h}let f=nr(o,u,r),p=[e.color],g;o.h<=u.h&&!a||o.h>=u.h&&a?g=u.h-o.h:a?g=360-u.h+o.h:g=360-o.h+u.h,f.h=Math.pow(-1,a?1:0)*Math.abs(g)/r;for(let h=1;h<r;h++){let m=sr(f,o,h,Pi);p.push(Qe(m))}return p}function Mi(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let i=[];for(let u=1;u<r;u++){let a=(t-1)*(e[u].pos-e[u-1].pos);i.push(Math.max(1,Math.round(a)))}let o=1;for(let u=r-1;u--;)o+=i[u];for(;o!==t;)if(o<t){let u=Math.min.apply(null,i);i[i.indexOf(u)]++,o++}else{let u=Math.max.apply(null,i);i[i.indexOf(u)]--,o--}return i}function Bi(e,t,r,i){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let o,u;for(let p=0,g=e.length;p<g-1;p++)if(t>=e[p].pos&&t<e[p+1].pos){o=e[p],u=e[p+1];break}o||(o=u=e[e.length-1]);let a=nr(o.color[r](),u.color[r](),(u.pos-o.pos)*100),f=sr(a,o.color[r](),(t-o.pos)*100,i);return Qe(f)}var ir=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,i=t.length,o=-1,u=!1;this.stops=t.map((a,f)=>{let p=a.pos!==void 0;if(r^p)throw new Error("Cannot mix positionned and not posionned color stops");if(p){let g=a.color!==void 0;if(!g&&(u||f===0||f===i-1))throw new Error("Cannot define two consecutive position-only stops");if(u=!g,a={color:g?Qe(a.color):null,colorLess:!g,pos:a.pos},a.pos<0||a.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(a.pos<o)throw new Error("Color stops positions are not ordered");o=a.pos}else a={color:Qe(a.color!==void 0?a.color:a),pos:f/(i-1)};return a}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(i=>{t.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new e(t.concat(r.reverse()))}rgb(t){let r=Mi(this.stops,t),i=[];this.stops.forEach((o,u)=>{o.colorLess&&(o.color=rr(this.stops[u-1],this.stops[u+1],2)[1])});for(let o=0,u=this.stops.length;o<u-1;o++){let a=rr(this.stops[o],this.stops[o+1],r[o]);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}hsv(t,r){let i=Mi(this.stops,t),o=[];this.stops.forEach((u,a)=>{u.colorLess&&(u.color=Ri(this.stops[a-1],this.stops[a+1],2,r)[1])});for(let u=0,a=this.stops.length;u<a-1;u++){let f=Ri(this.stops[u],this.stops[u+1],i[u],r);o.splice(o.length,0,...f)}return o.push(this.stops[this.stops.length-1].color),o}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let i=t+"-gradient("+r;return this.stops.forEach(function(o){i+=", "+(o.colorLess?"":o.color.toRgbString()+" ")+o.pos*100+"%"}),i+=")",i}rgbAt(t){return Bi(this.stops,t,"toRgb",_i)}hsvAt(t){return Bi(this.stops,t,"toHsv",Pi)}};Ni.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new ir(e)}});var Yi=ie((tt,fr)=>{(function(t,r){typeof tt=="object"&&typeof fr=="object"?fr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof tt=="object"?tt.esprima=r():t.esprima=r()})(tt,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),o=r(3),u=r(8),a=r(15);function f(d,n,s){var l=null,c=function(P,U){s&&s(P,U),l&&l.visit(P,U)},y=typeof s=="function"?c:null,v=!1;if(n){v=typeof n.comment=="boolean"&&n.comment;var A=typeof n.attachComment=="boolean"&&n.attachComment;(v||A)&&(l=new i.CommentHandler,l.attach=A,n.comment=!0,y=c)}var w=!1;n&&typeof n.sourceType=="string"&&(w=n.sourceType==="module");var k;n&&typeof n.jsx=="boolean"&&n.jsx?k=new o.JSXParser(d,n,y):k=new u.Parser(d,n,y);var R=w?k.parseModule():k.parseScript(),_=R;return v&&l&&(_.comments=l.comments),k.config.tokens&&(_.tokens=k.tokens),k.config.tolerant&&(_.errors=k.errorHandler.errors),_}t.parse=f;function p(d,n,s){var l=n||{};return l.sourceType="module",f(d,l,s)}t.parseModule=p;function g(d,n,s){var l=n||{};return l.sourceType="script",f(d,l,s)}t.parseScript=g;function h(d,n,s){var l=new a.Tokenizer(d,n),c;c=[];try{for(;;){var y=l.getNextToken();if(!y)break;s&&(y=s(y)),c.push(y)}}catch(v){l.errorHandler.tolerate(v)}return l.errorHandler.tolerant&&(c.errors=l.errors()),c}t.tokenize=h;var m=r(2);t.Syntax=m.Syntax,t.version="4.0.1"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),o=function(){function u(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return u.prototype.insertInnerComments=function(a,f){if(a.type===i.Syntax.BlockStatement&&a.body.length===0){for(var p=[],g=this.leading.length-1;g>=0;--g){var h=this.leading[g];f.end.offset>=h.start&&(p.unshift(h.comment),this.leading.splice(g,1),this.trailing.splice(g,1))}p.length&&(a.innerComments=p)}},u.prototype.findTrailingComments=function(a){var f=[];if(this.trailing.length>0){for(var p=this.trailing.length-1;p>=0;--p){var g=this.trailing[p];g.start>=a.end.offset&&f.unshift(g.comment)}return this.trailing.length=0,f}var h=this.stack[this.stack.length-1];if(h&&h.node.trailingComments){var m=h.node.trailingComments[0];m&&m.range[0]>=a.end.offset&&(f=h.node.trailingComments,delete h.node.trailingComments)}return f},u.prototype.findLeadingComments=function(a){for(var f=[],p;this.stack.length>0;){var g=this.stack[this.stack.length-1];if(g&&g.start>=a.start.offset)p=g.node,this.stack.pop();else break}if(p){for(var h=p.leadingComments?p.leadingComments.length:0,m=h-1;m>=0;--m){var d=p.leadingComments[m];d.range[1]<=a.start.offset&&(f.unshift(d),p.leadingComments.splice(m,1))}return p.leadingComments&&p.leadingComments.length===0&&delete p.leadingComments,f}for(var m=this.leading.length-1;m>=0;--m){var g=this.leading[m];g.start<=a.start.offset&&(f.unshift(g.comment),this.leading.splice(m,1))}return f},u.prototype.visitNode=function(a,f){if(!(a.type===i.Syntax.Program&&a.body.length>0)){this.insertInnerComments(a,f);var p=this.findTrailingComments(f),g=this.findLeadingComments(f);g.length>0&&(a.leadingComments=g),p.length>0&&(a.trailingComments=p),this.stack.push({node:a,start:f.start.offset})}},u.prototype.visitComment=function(a,f){var p=a.type[0]==="L"?"Line":"Block",g={type:p,value:a.value};if(a.range&&(g.range=a.range),a.loc&&(g.loc=a.loc),this.comments.push(g),this.attach){var h={comment:{type:p,value:a.value,range:[f.start.offset,f.end.offset]},start:f.start.offset};a.loc&&(h.comment.loc=a.loc),a.type=p,this.leading.push(h),this.trailing.push(h)}},u.prototype.visit=function(a,f){a.type==="LineComment"?this.visitComment(a,f):a.type==="BlockComment"?this.visitComment(a,f):this.attach&&this.visitNode(a,f)},u}();t.CommentHandler=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,r){"use strict";var i=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])};return function(s,l){n(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),u=r(5),a=r(6),f=r(7),p=r(8),g=r(13),h=r(14);g.TokenName[100]="JSXIdentifier",g.TokenName[101]="JSXText";function m(n){var s;switch(n.type){case a.JSXSyntax.JSXIdentifier:var l=n;s=l.name;break;case a.JSXSyntax.JSXNamespacedName:var c=n;s=m(c.namespace)+":"+m(c.name);break;case a.JSXSyntax.JSXMemberExpression:var y=n;s=m(y.object)+"."+m(y.property);break;default:break}return s}var d=function(n){i(s,n);function s(l,c,y){return n.call(this,l,c,y)||this}return s.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():n.prototype.parsePrimaryExpression.call(this)},s.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},s.prototype.finishJSX=function(){this.nextToken()},s.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},s.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},s.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},s.prototype.scanXHTMLEntity=function(l){for(var c="&",y=!0,v=!1,A=!1,w=!1;!this.scanner.eof()&&y&&!v;){var k=this.scanner.source[this.scanner.index];if(k===l)break;if(v=k===";",c+=k,++this.scanner.index,!v)switch(c.length){case 2:A=k==="#";break;case 3:A&&(w=k==="x",y=w||o.Character.isDecimalDigit(k.charCodeAt(0)),A=A&&!w);break;default:y=y&&!(A&&!o.Character.isDecimalDigit(k.charCodeAt(0))),y=y&&!(w&&!o.Character.isHexDigit(k.charCodeAt(0)));break}}if(y&&v&&c.length>2){var R=c.substr(1,c.length-2);A&&R.length>1?c=String.fromCharCode(parseInt(R.substr(1),10)):w&&R.length>2?c=String.fromCharCode(parseInt("0"+R.substr(1),16)):!A&&!w&&h.XHTMLEntities[R]&&(c=h.XHTMLEntities[R])}return c},s.prototype.lexJSX=function(){var l=this.scanner.source.charCodeAt(this.scanner.index);if(l===60||l===62||l===47||l===58||l===61||l===123||l===125){var c=this.scanner.source[this.scanner.index++];return{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(l===34||l===39){for(var y=this.scanner.index,v=this.scanner.source[this.scanner.index++],A="";!this.scanner.eof();){var w=this.scanner.source[this.scanner.index++];if(w===v)break;w==="&"?A+=this.scanXHTMLEntity(v):A+=w}return{type:8,value:A,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index}}if(l===46){var k=this.scanner.source.charCodeAt(this.scanner.index+1),R=this.scanner.source.charCodeAt(this.scanner.index+2),c=k===46&&R===46?"...":".",y=this.scanner.index;return this.scanner.index+=c.length,{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index}}if(l===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(l)&&l!==92){var y=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var w=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(w)&&w!==92)++this.scanner.index;else if(w===45)++this.scanner.index;else break}var _=this.scanner.source.slice(y,this.scanner.index);return{type:100,value:_,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index}}return this.scanner.lex()},s.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var l=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(l)),l},s.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var l=this.scanner.index,c="";!this.scanner.eof();){var y=this.scanner.source[this.scanner.index];if(y==="{"||y==="<")break;++this.scanner.index,c+=y,o.Character.isLineTerminator(y.charCodeAt(0))&&(++this.scanner.lineNumber,y==="\r"&&this.scanner.source[this.scanner.index]===`
5
5
  `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var v={type:101,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:l,end:this.scanner.index};return c.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},s.prototype.peekJSXToken=function(){var l=this.scanner.saveState();this.scanner.scanComments();var c=this.lexJSX();return this.scanner.restoreState(l),c},s.prototype.expectJSX=function(l){var c=this.nextJSXToken();(c.type!==7||c.value!==l)&&this.throwUnexpectedToken(c)},s.prototype.matchJSX=function(l){var c=this.peekJSXToken();return c.type===7&&c.value===l},s.prototype.parseJSXIdentifier=function(){var l=this.createJSXNode(),c=this.nextJSXToken();return c.type!==100&&this.throwUnexpectedToken(c),this.finalize(l,new u.JSXIdentifier(c.value))},s.prototype.parseJSXElementName=function(){var l=this.createJSXNode(),c=this.parseJSXIdentifier();if(this.matchJSX(":")){var y=c;this.expectJSX(":");var v=this.parseJSXIdentifier();c=this.finalize(l,new u.JSXNamespacedName(y,v))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var A=c;this.expectJSX(".");var w=this.parseJSXIdentifier();c=this.finalize(l,new u.JSXMemberExpression(A,w))}return c},s.prototype.parseJSXAttributeName=function(){var l=this.createJSXNode(),c,y=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=y;this.expectJSX(":");var A=this.parseJSXIdentifier();c=this.finalize(l,new u.JSXNamespacedName(v,A))}else c=y;return c},s.prototype.parseJSXStringLiteralAttribute=function(){var l=this.createJSXNode(),c=this.nextJSXToken();c.type!==8&&this.throwUnexpectedToken(c);var y=this.getTokenRaw(c);return this.finalize(l,new f.Literal(c.value,y))},s.prototype.parseJSXExpressionAttribute=function(){var l=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var c=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(l,new u.JSXExpressionContainer(c))},s.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},s.prototype.parseJSXNameValueAttribute=function(){var l=this.createJSXNode(),c=this.parseJSXAttributeName(),y=null;return this.matchJSX("=")&&(this.expectJSX("="),y=this.parseJSXAttributeValue()),this.finalize(l,new u.JSXAttribute(c,y))},s.prototype.parseJSXSpreadAttribute=function(){var l=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var c=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(l,new u.JSXSpreadAttribute(c))},s.prototype.parseJSXAttributes=function(){for(var l=[];!this.matchJSX("/")&&!this.matchJSX(">");){var c=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();l.push(c)}return l},s.prototype.parseJSXOpeningElement=function(){var l=this.createJSXNode();this.expectJSX("<");var c=this.parseJSXElementName(),y=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(l,new u.JSXOpeningElement(c,v,y))},s.prototype.parseJSXBoundaryElement=function(){var l=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var c=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(l,new u.JSXClosingElement(c))}var y=this.parseJSXElementName(),v=this.parseJSXAttributes(),A=this.matchJSX("/");return A&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(l,new u.JSXOpeningElement(y,A,v))},s.prototype.parseJSXEmptyExpression=function(){var l=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(l,new u.JSXEmptyExpression)},s.prototype.parseJSXExpressionContainer=function(){var l=this.createJSXNode();this.expectJSX("{");var c;return this.matchJSX("}")?(c=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),c=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(l,new u.JSXExpressionContainer(c))},s.prototype.parseJSXChildren=function(){for(var l=[];!this.scanner.eof();){var c=this.createJSXChildNode(),y=this.nextJSXText();if(y.start<y.end){var v=this.getTokenRaw(y),A=this.finalize(c,new u.JSXText(y.value,v));l.push(A)}if(this.scanner.source[this.scanner.index]==="{"){var w=this.parseJSXExpressionContainer();l.push(w)}else break}return l},s.prototype.parseComplexJSXElement=function(l){for(var c=[];!this.scanner.eof();){l.children=l.children.concat(this.parseJSXChildren());var y=this.createJSXChildNode(),v=this.parseJSXBoundaryElement();if(v.type===a.JSXSyntax.JSXOpeningElement){var A=v;if(A.selfClosing){var w=this.finalize(y,new u.JSXElement(A,[],null));l.children.push(w)}else c.push(l),l={node:y,opening:A,closing:null,children:[]}}if(v.type===a.JSXSyntax.JSXClosingElement){l.closing=v;var k=m(l.opening.name),R=m(l.closing.name);if(k!==R&&this.tolerateError("Expected corresponding JSX closing tag for %0",k),c.length>0){var w=this.finalize(l.node,new u.JSXElement(l.opening,l.children,l.closing));l=c[c.length-1],l.children.push(w),c.pop()}else break}}return l},s.prototype.parseJSXElement=function(){var l=this.createJSXNode(),c=this.parseJSXOpeningElement(),y=[],v=null;if(!c.selfClosing){var A=this.parseComplexJSXElement({node:l,opening:c,closing:v,children:y});y=A.children,v=A.closing}return this.finalize(l,new u.JSXElement(c,y,v))},s.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var l=this.parseJSXElement();return this.finishJSX(),l},s.prototype.isStartOfExpression=function(){return n.prototype.isStartOfExpression.call(this)||this.match("<")},s}(p.Parser);t.JSXParser=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\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\u08A0-\u08B4\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\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\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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]|\uD82C[\uDC00\uDC01]|\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]|\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]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\u08A0-\u08B4\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\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\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\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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\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[\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\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(i){return i<65536?String.fromCharCode(i):String.fromCharCode(55296+(i-65536>>10))+String.fromCharCode(56320+(i-65536&1023))},isWhiteSpace:function(i){return i===32||i===9||i===11||i===12||i===160||i>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(i)>=0},isLineTerminator:function(i){return i===10||i===13||i===8232||i===8233},isIdentifierStart:function(i){return i===36||i===95||i>=65&&i<=90||i>=97&&i<=122||i===92||i>=128&&r.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(i))},isIdentifierPart:function(i){return i===36||i===95||i>=65&&i<=90||i>=97&&i<=122||i>=48&&i<=57||i===92||i>=128&&r.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(i))},isDecimalDigit:function(i){return i>=48&&i<=57},isHexDigit:function(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102},isOctalDigit:function(i){return i>=48&&i<=55}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(6),o=function(){function l(c){this.type=i.JSXSyntax.JSXClosingElement,this.name=c}return l}();t.JSXClosingElement=o;var u=function(){function l(c,y,v){this.type=i.JSXSyntax.JSXElement,this.openingElement=c,this.children=y,this.closingElement=v}return l}();t.JSXElement=u;var a=function(){function l(){this.type=i.JSXSyntax.JSXEmptyExpression}return l}();t.JSXEmptyExpression=a;var f=function(){function l(c){this.type=i.JSXSyntax.JSXExpressionContainer,this.expression=c}return l}();t.JSXExpressionContainer=f;var p=function(){function l(c){this.type=i.JSXSyntax.JSXIdentifier,this.name=c}return l}();t.JSXIdentifier=p;var g=function(){function l(c,y){this.type=i.JSXSyntax.JSXMemberExpression,this.object=c,this.property=y}return l}();t.JSXMemberExpression=g;var h=function(){function l(c,y){this.type=i.JSXSyntax.JSXAttribute,this.name=c,this.value=y}return l}();t.JSXAttribute=h;var m=function(){function l(c,y){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=c,this.name=y}return l}();t.JSXNamespacedName=m;var d=function(){function l(c,y,v){this.type=i.JSXSyntax.JSXOpeningElement,this.name=c,this.selfClosing=y,this.attributes=v}return l}();t.JSXOpeningElement=d;var n=function(){function l(c){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=c}return l}();t.JSXSpreadAttribute=n;var s=function(){function l(c,y){this.type=i.JSXSyntax.JSXText,this.value=c,this.raw=y}return l}();t.JSXText=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),o=function(){function S(E){this.type=i.Syntax.ArrayExpression,this.elements=E}return S}();t.ArrayExpression=o;var u=function(){function S(E){this.type=i.Syntax.ArrayPattern,this.elements=E}return S}();t.ArrayPattern=u;var a=function(){function S(E,F,L){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=E,this.body=F,this.generator=!1,this.expression=L,this.async=!1}return S}();t.ArrowFunctionExpression=a;var f=function(){function S(E,F,L){this.type=i.Syntax.AssignmentExpression,this.operator=E,this.left=F,this.right=L}return S}();t.AssignmentExpression=f;var p=function(){function S(E,F){this.type=i.Syntax.AssignmentPattern,this.left=E,this.right=F}return S}();t.AssignmentPattern=p;var g=function(){function S(E,F,L){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=E,this.body=F,this.generator=!1,this.expression=L,this.async=!0}return S}();t.AsyncArrowFunctionExpression=g;var h=function(){function S(E,F,L){this.type=i.Syntax.FunctionDeclaration,this.id=E,this.params=F,this.body=L,this.generator=!1,this.expression=!1,this.async=!0}return S}();t.AsyncFunctionDeclaration=h;var m=function(){function S(E,F,L){this.type=i.Syntax.FunctionExpression,this.id=E,this.params=F,this.body=L,this.generator=!1,this.expression=!1,this.async=!0}return S}();t.AsyncFunctionExpression=m;var d=function(){function S(E){this.type=i.Syntax.AwaitExpression,this.argument=E}return S}();t.AwaitExpression=d;var n=function(){function S(E,F,L){var ce=E==="||"||E==="&&";this.type=ce?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=E,this.left=F,this.right=L}return S}();t.BinaryExpression=n;var s=function(){function S(E){this.type=i.Syntax.BlockStatement,this.body=E}return S}();t.BlockStatement=s;var l=function(){function S(E){this.type=i.Syntax.BreakStatement,this.label=E}return S}();t.BreakStatement=l;var c=function(){function S(E,F){this.type=i.Syntax.CallExpression,this.callee=E,this.arguments=F}return S}();t.CallExpression=c;var y=function(){function S(E,F){this.type=i.Syntax.CatchClause,this.param=E,this.body=F}return S}();t.CatchClause=y;var v=function(){function S(E){this.type=i.Syntax.ClassBody,this.body=E}return S}();t.ClassBody=v;var A=function(){function S(E,F,L){this.type=i.Syntax.ClassDeclaration,this.id=E,this.superClass=F,this.body=L}return S}();t.ClassDeclaration=A;var w=function(){function S(E,F,L){this.type=i.Syntax.ClassExpression,this.id=E,this.superClass=F,this.body=L}return S}();t.ClassExpression=w;var k=function(){function S(E,F){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=E,this.property=F}return S}();t.ComputedMemberExpression=k;var R=function(){function S(E,F,L){this.type=i.Syntax.ConditionalExpression,this.test=E,this.consequent=F,this.alternate=L}return S}();t.ConditionalExpression=R;var _=function(){function S(E){this.type=i.Syntax.ContinueStatement,this.label=E}return S}();t.ContinueStatement=_;var P=function(){function S(){this.type=i.Syntax.DebuggerStatement}return S}();t.DebuggerStatement=P;var U=function(){function S(E,F){this.type=i.Syntax.ExpressionStatement,this.expression=E,this.directive=F}return S}();t.Directive=U;var z=function(){function S(E,F){this.type=i.Syntax.DoWhileStatement,this.body=E,this.test=F}return S}();t.DoWhileStatement=z;var W=function(){function S(){this.type=i.Syntax.EmptyStatement}return S}();t.EmptyStatement=W;var ae=function(){function S(E){this.type=i.Syntax.ExportAllDeclaration,this.source=E}return S}();t.ExportAllDeclaration=ae;var j=function(){function S(E){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=E}return S}();t.ExportDefaultDeclaration=j;var we=function(){function S(E,F,L){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=E,this.specifiers=F,this.source=L}return S}();t.ExportNamedDeclaration=we;var ee=function(){function S(E,F){this.type=i.Syntax.ExportSpecifier,this.exported=F,this.local=E}return S}();t.ExportSpecifier=ee;var Tt=function(){function S(E){this.type=i.Syntax.ExpressionStatement,this.expression=E}return S}();t.ExpressionStatement=Tt;var Rt=function(){function S(E,F,L){this.type=i.Syntax.ForInStatement,this.left=E,this.right=F,this.body=L,this.each=!1}return S}();t.ForInStatement=Rt;var oe=function(){function S(E,F,L){this.type=i.Syntax.ForOfStatement,this.left=E,this.right=F,this.body=L}return S}();t.ForOfStatement=oe;var Re=function(){function S(E,F,L,ce){this.type=i.Syntax.ForStatement,this.init=E,this.test=F,this.update=L,this.body=ce}return S}();t.ForStatement=Re;var ut=function(){function S(E,F,L,ce){this.type=i.Syntax.FunctionDeclaration,this.id=E,this.params=F,this.body=L,this.generator=ce,this.expression=!1,this.async=!1}return S}();t.FunctionDeclaration=ut;var ct=function(){function S(E,F,L,ce){this.type=i.Syntax.FunctionExpression,this.id=E,this.params=F,this.body=L,this.generator=ce,this.expression=!1,this.async=!1}return S}();t.FunctionExpression=ct;var le=function(){function S(E){this.type=i.Syntax.Identifier,this.name=E}return S}();t.Identifier=le;var ge=function(){function S(E,F,L){this.type=i.Syntax.IfStatement,this.test=E,this.consequent=F,this.alternate=L}return S}();t.IfStatement=ge;var Mt=function(){function S(E,F){this.type=i.Syntax.ImportDeclaration,this.specifiers=E,this.source=F}return S}();t.ImportDeclaration=Mt;var Bt=function(){function S(E){this.type=i.Syntax.ImportDefaultSpecifier,this.local=E}return S}();t.ImportDefaultSpecifier=Bt;var b=function(){function S(E){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=E}return S}();t.ImportNamespaceSpecifier=b;var D=function(){function S(E,F){this.type=i.Syntax.ImportSpecifier,this.local=E,this.imported=F}return S}();t.ImportSpecifier=D;var x=function(){function S(E,F){this.type=i.Syntax.LabeledStatement,this.label=E,this.body=F}return S}();t.LabeledStatement=x;var C=function(){function S(E,F){this.type=i.Syntax.Literal,this.value=E,this.raw=F}return S}();t.Literal=C;var T=function(){function S(E,F){this.type=i.Syntax.MetaProperty,this.meta=E,this.property=F}return S}();t.MetaProperty=T;var I=function(){function S(E,F,L,ce,_t){this.type=i.Syntax.MethodDefinition,this.key=E,this.computed=F,this.value=L,this.kind=ce,this.static=_t}return S}();t.MethodDefinition=I;var q=function(){function S(E){this.type=i.Syntax.Program,this.body=E,this.sourceType="module"}return S}();t.Module=q;var G=function(){function S(E,F){this.type=i.Syntax.NewExpression,this.callee=E,this.arguments=F}return S}();t.NewExpression=G;var X=function(){function S(E){this.type=i.Syntax.ObjectExpression,this.properties=E}return S}();t.ObjectExpression=X;var re=function(){function S(E){this.type=i.Syntax.ObjectPattern,this.properties=E}return S}();t.ObjectPattern=re;var Me=function(){function S(E,F,L,ce,_t,Ws){this.type=i.Syntax.Property,this.key=F,this.computed=L,this.value=ce,this.kind=E,this.method=_t,this.shorthand=Ws}return S}();t.Property=Me;var ue=function(){function S(E,F,L,ce){this.type=i.Syntax.Literal,this.value=E,this.raw=F,this.regex={pattern:L,flags:ce}}return S}();t.RegexLiteral=ue;var Cs=function(){function S(E){this.type=i.Syntax.RestElement,this.argument=E}return S}();t.RestElement=Cs;var ws=function(){function S(E){this.type=i.Syntax.ReturnStatement,this.argument=E}return S}();t.ReturnStatement=ws;var Fs=function(){function S(E){this.type=i.Syntax.Program,this.body=E,this.sourceType="script"}return S}();t.Script=Fs;var ks=function(){function S(E){this.type=i.Syntax.SequenceExpression,this.expressions=E}return S}();t.SequenceExpression=ks;var Is=function(){function S(E){this.type=i.Syntax.SpreadElement,this.argument=E}return S}();t.SpreadElement=Is;var Ts=function(){function S(E,F){this.type=i.Syntax.MemberExpression,this.computed=!1,this.object=E,this.property=F}return S}();t.StaticMemberExpression=Ts;var Rs=function(){function S(){this.type=i.Syntax.Super}return S}();t.Super=Rs;var Ms=function(){function S(E,F){this.type=i.Syntax.SwitchCase,this.test=E,this.consequent=F}return S}();t.SwitchCase=Ms;var Bs=function(){function S(E,F){this.type=i.Syntax.SwitchStatement,this.discriminant=E,this.cases=F}return S}();t.SwitchStatement=Bs;var _s=function(){function S(E,F){this.type=i.Syntax.TaggedTemplateExpression,this.tag=E,this.quasi=F}return S}();t.TaggedTemplateExpression=_s;var Ps=function(){function S(E,F){this.type=i.Syntax.TemplateElement,this.value=E,this.tail=F}return S}();t.TemplateElement=Ps;var Ns=function(){function S(E,F){this.type=i.Syntax.TemplateLiteral,this.quasis=E,this.expressions=F}return S}();t.TemplateLiteral=Ns;var Ls=function(){function S(){this.type=i.Syntax.ThisExpression}return S}();t.ThisExpression=Ls;var Os=function(){function S(E){this.type=i.Syntax.ThrowStatement,this.argument=E}return S}();t.ThrowStatement=Os;var Us=function(){function S(E,F,L){this.type=i.Syntax.TryStatement,this.block=E,this.handler=F,this.finalizer=L}return S}();t.TryStatement=Us;var js=function(){function S(E,F){this.type=i.Syntax.UnaryExpression,this.operator=E,this.argument=F,this.prefix=!0}return S}();t.UnaryExpression=js;var qs=function(){function S(E,F,L){this.type=i.Syntax.UpdateExpression,this.operator=E,this.argument=F,this.prefix=L}return S}();t.UpdateExpression=qs;var Hs=function(){function S(E,F){this.type=i.Syntax.VariableDeclaration,this.declarations=E,this.kind=F}return S}();t.VariableDeclaration=Hs;var Gs=function(){function S(E,F){this.type=i.Syntax.VariableDeclarator,this.id=E,this.init=F}return S}();t.VariableDeclarator=Gs;var zs=function(){function S(E,F){this.type=i.Syntax.WhileStatement,this.test=E,this.body=F}return S}();t.WhileStatement=zs;var Js=function(){function S(E,F){this.type=i.Syntax.WithStatement,this.object=E,this.body=F}return S}();t.WithStatement=Js;var Xs=function(){function S(E,F){this.type=i.Syntax.YieldExpression,this.argument=E,this.delegate=F}return S}();t.YieldExpression=Xs},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),o=r(10),u=r(11),a=r(7),f=r(12),p=r(2),g=r(13),h="ArrowParameterPlaceHolder",m=function(){function d(n,s,l){s===void 0&&(s={}),this.config={range:typeof s.range=="boolean"&&s.range,loc:typeof s.loc=="boolean"&&s.loc,source:null,tokens:typeof s.tokens=="boolean"&&s.tokens,comment:typeof s.comment=="boolean"&&s.comment,tolerant:typeof s.tolerant=="boolean"&&s.tolerant},this.config.loc&&s.source&&s.source!==null&&(this.config.source=String(s.source)),this.delegate=l,this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new f.Scanner(n,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return d.prototype.throwError=function(n){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];var c=Array.prototype.slice.call(arguments,1),y=n.replace(/%(\d)/g,function(k,R){return i.assert(R<c.length,"Message reference must be in range"),c[R]}),v=this.lastMarker.index,A=this.lastMarker.line,w=this.lastMarker.column+1;throw this.errorHandler.createError(v,A,w,y)},d.prototype.tolerateError=function(n){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];var c=Array.prototype.slice.call(arguments,1),y=n.replace(/%(\d)/g,function(k,R){return i.assert(R<c.length,"Message reference must be in range"),c[R]}),v=this.lastMarker.index,A=this.scanner.lineNumber,w=this.lastMarker.column+1;this.errorHandler.tolerateError(v,A,w,y)},d.prototype.unexpectedTokenError=function(n,s){var l=s||u.Messages.UnexpectedToken,c;if(n?(s||(l=n.type===2?u.Messages.UnexpectedEOS:n.type===3?u.Messages.UnexpectedIdentifier:n.type===6?u.Messages.UnexpectedNumber:n.type===8?u.Messages.UnexpectedString:n.type===10?u.Messages.UnexpectedTemplate:u.Messages.UnexpectedToken,n.type===4&&(this.scanner.isFutureReservedWord(n.value)?l=u.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(n.value)&&(l=u.Messages.StrictReservedWord))),c=n.value):c="ILLEGAL",l=l.replace("%0",c),n&&typeof n.lineNumber=="number"){var y=n.start,v=n.lineNumber,A=this.lastMarker.index-this.lastMarker.column,w=n.start-A+1;return this.errorHandler.createError(y,v,w,l)}else{var y=this.lastMarker.index,v=this.lastMarker.line,w=this.lastMarker.column+1;return this.errorHandler.createError(y,v,w,l)}},d.prototype.throwUnexpectedToken=function(n,s){throw this.unexpectedTokenError(n,s)},d.prototype.tolerateUnexpectedToken=function(n,s){this.errorHandler.tolerate(this.unexpectedTokenError(n,s))},d.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var n=this.scanner.scanComments();if(n.length>0&&this.delegate)for(var s=0;s<n.length;++s){var l=n[s],c=void 0;c={type:l.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(l.slice[0],l.slice[1])},this.config.range&&(c.range=l.range),this.config.loc&&(c.loc=l.loc);var y={start:{line:l.loc.start.line,column:l.loc.start.column,offset:l.range[0]},end:{line:l.loc.end.line,column:l.loc.end.column,offset:l.range[1]}};this.delegate(c,y)}}},d.prototype.getTokenRaw=function(n){return this.scanner.source.slice(n.start,n.end)},d.prototype.convertToken=function(n){var s={type:g.TokenName[n.type],value:this.getTokenRaw(n)};if(this.config.range&&(s.range=[n.start,n.end]),this.config.loc&&(s.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),n.type===9){var l=n.pattern,c=n.flags;s.regex={pattern:l,flags:c}}return s},d.prototype.nextToken=function(){var n=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var s=this.scanner.lex();return this.hasLineTerminator=n.lineNumber!==s.lineNumber,s&&this.context.strict&&s.type===3&&this.scanner.isStrictModeReservedWord(s.value)&&(s.type=4),this.lookahead=s,this.config.tokens&&s.type!==2&&this.tokens.push(this.convertToken(s)),n},d.prototype.nextRegexToken=function(){this.collectComments();var n=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(n))),this.lookahead=n,this.nextToken(),n},d.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},d.prototype.startNode=function(n,s){s===void 0&&(s=0);var l=n.start-n.lineStart,c=n.lineNumber;return l<0&&(l+=s,c--),{index:n.start,line:c,column:l}},d.prototype.finalize=function(n,s){if(this.config.range&&(s.range=[n.index,this.lastMarker.index]),this.config.loc&&(s.loc={start:{line:n.line,column:n.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(s.loc.source=this.config.source)),this.delegate){var l={start:{line:n.line,column:n.column,offset:n.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(s,l)}return s},d.prototype.expect=function(n){var s=this.nextToken();(s.type!==7||s.value!==n)&&this.throwUnexpectedToken(s)},d.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var n=this.lookahead;n.type===7&&n.value===","?this.nextToken():n.type===7&&n.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(n)):this.tolerateUnexpectedToken(n,u.Messages.UnexpectedToken)}else this.expect(",")},d.prototype.expectKeyword=function(n){var s=this.nextToken();(s.type!==4||s.value!==n)&&this.throwUnexpectedToken(s)},d.prototype.match=function(n){return this.lookahead.type===7&&this.lookahead.value===n},d.prototype.matchKeyword=function(n){return this.lookahead.type===4&&this.lookahead.value===n},d.prototype.matchContextualKeyword=function(n){return this.lookahead.type===3&&this.lookahead.value===n},d.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var n=this.lookahead.value;return n==="="||n==="*="||n==="**="||n==="/="||n==="%="||n==="+="||n==="-="||n==="<<="||n===">>="||n===">>>="||n==="&="||n==="^="||n==="|="},d.prototype.isolateCoverGrammar=function(n){var s=this.context.isBindingElement,l=this.context.isAssignmentTarget,c=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var y=n.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=s,this.context.isAssignmentTarget=l,this.context.firstCoverInitializedNameError=c,y},d.prototype.inheritCoverGrammar=function(n){var s=this.context.isBindingElement,l=this.context.isAssignmentTarget,c=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var y=n.call(this);return this.context.isBindingElement=this.context.isBindingElement&&s,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&l,this.context.firstCoverInitializedNameError=c||this.context.firstCoverInitializedNameError,y},d.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},d.prototype.parsePrimaryExpression=function(){var n=this.createNode(),s,l,c;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),s=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(n,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,u.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,l=this.nextToken(),c=this.getTokenRaw(l),s=this.finalize(n,new a.Literal(l.value,c));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,l=this.nextToken(),c=this.getTokenRaw(l),s=this.finalize(n,new a.Literal(l.value==="true",c));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,l=this.nextToken(),c=this.getTokenRaw(l),s=this.finalize(n,new a.Literal(null,c));break;case 10:s=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,s=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":s=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":s=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,l=this.nextRegexToken(),c=this.getTokenRaw(l),s=this.finalize(n,new a.RegexLiteral(l.regex,c,l.pattern,l.flags));break;default:s=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?s=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?s=this.finalize(n,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?s=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),s=this.finalize(n,new a.ThisExpression)):this.matchKeyword("class")?s=this.parseClassExpression():s=this.throwUnexpectedToken(this.nextToken()));break;default:s=this.throwUnexpectedToken(this.nextToken())}return s},d.prototype.parseSpreadElement=function(){var n=this.createNode();this.expect("...");var s=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(n,new a.SpreadElement(s))},d.prototype.parseArrayInitializer=function(){var n=this.createNode(),s=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),s.push(null);else if(this.match("...")){var l=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),s.push(l)}else s.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(n,new a.ArrayExpression(s))},d.prototype.parsePropertyMethod=function(n){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var s=this.context.strict,l=this.context.allowStrictDirective;this.context.allowStrictDirective=n.simple;var c=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&n.firstRestricted&&this.tolerateUnexpectedToken(n.firstRestricted,n.message),this.context.strict&&n.stricted&&this.tolerateUnexpectedToken(n.stricted,n.message),this.context.strict=s,this.context.allowStrictDirective=l,c},d.prototype.parsePropertyMethodFunction=function(){var n=!1,s=this.createNode(),l=this.context.allowYield;this.context.allowYield=!0;var c=this.parseFormalParameters(),y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(s,new a.FunctionExpression(null,c.params,y,n))},d.prototype.parsePropertyMethodAsyncFunction=function(){var n=this.createNode(),s=this.context.allowYield,l=this.context.await;this.context.allowYield=!1,this.context.await=!0;var c=this.parseFormalParameters(),y=this.parsePropertyMethod(c);return this.context.allowYield=s,this.context.await=l,this.finalize(n,new a.AsyncFunctionExpression(null,c.params,y))},d.prototype.parseObjectPropertyKey=function(){var n=this.createNode(),s=this.nextToken(),l;switch(s.type){case 8:case 6:this.context.strict&&s.octal&&this.tolerateUnexpectedToken(s,u.Messages.StrictOctalLiteral);var c=this.getTokenRaw(s);l=this.finalize(n,new a.Literal(s.value,c));break;case 3:case 1:case 5:case 4:l=this.finalize(n,new a.Identifier(s.value));break;case 7:s.value==="["?(l=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):l=this.throwUnexpectedToken(s);break;default:l=this.throwUnexpectedToken(s)}return l},d.prototype.isPropertyKey=function(n,s){return n.type===p.Syntax.Identifier&&n.name===s||n.type===p.Syntax.Literal&&n.value===s},d.prototype.parseObjectProperty=function(n){var s=this.createNode(),l=this.lookahead,c,y=null,v=null,A=!1,w=!1,k=!1,R=!1;if(l.type===3){var _=l.value;this.nextToken(),A=this.match("["),R=!this.hasLineTerminator&&_==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),y=R?this.parseObjectPropertyKey():this.finalize(s,new a.Identifier(_))}else this.match("*")?this.nextToken():(A=this.match("["),y=this.parseObjectPropertyKey());var P=this.qualifiedPropertyName(this.lookahead);if(l.type===3&&!R&&l.value==="get"&&P)c="get",A=this.match("["),y=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod();else if(l.type===3&&!R&&l.value==="set"&&P)c="set",A=this.match("["),y=this.parseObjectPropertyKey(),v=this.parseSetterMethod();else if(l.type===7&&l.value==="*"&&P)c="init",A=this.match("["),y=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),w=!0;else if(y||this.throwUnexpectedToken(this.lookahead),c="init",this.match(":")&&!R)!A&&this.isPropertyKey(y,"__proto__")&&(n.value&&this.tolerateError(u.Messages.DuplicateProtoProperty),n.value=!0),this.nextToken(),v=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))v=R?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),w=!0;else if(l.type===3){var _=this.finalize(s,new a.Identifier(l.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),k=!0;var U=this.isolateCoverGrammar(this.parseAssignmentExpression);v=this.finalize(s,new a.AssignmentPattern(_,U))}else k=!0,v=_}else this.throwUnexpectedToken(this.nextToken());return this.finalize(s,new a.Property(c,y,A,v,w,k))},d.prototype.parseObjectInitializer=function(){var n=this.createNode();this.expect("{");for(var s=[],l={value:!1};!this.match("}");)s.push(this.parseObjectProperty(l)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(n,new a.ObjectExpression(s))},d.prototype.parseTemplateHead=function(){i.assert(this.lookahead.head,"Template literal must start with a template head");var n=this.createNode(),s=this.nextToken(),l=s.value,c=s.cooked;return this.finalize(n,new a.TemplateElement({raw:l,cooked:c},s.tail))},d.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var n=this.createNode(),s=this.nextToken(),l=s.value,c=s.cooked;return this.finalize(n,new a.TemplateElement({raw:l,cooked:c},s.tail))},d.prototype.parseTemplateLiteral=function(){var n=this.createNode(),s=[],l=[],c=this.parseTemplateHead();for(l.push(c);!c.tail;)s.push(this.parseExpression()),c=this.parseTemplateElement(),l.push(c);return this.finalize(n,new a.TemplateLiteral(l,s))},d.prototype.reinterpretExpressionAsPattern=function(n){switch(n.type){case p.Syntax.Identifier:case p.Syntax.MemberExpression:case p.Syntax.RestElement:case p.Syntax.AssignmentPattern:break;case p.Syntax.SpreadElement:n.type=p.Syntax.RestElement,this.reinterpretExpressionAsPattern(n.argument);break;case p.Syntax.ArrayExpression:n.type=p.Syntax.ArrayPattern;for(var s=0;s<n.elements.length;s++)n.elements[s]!==null&&this.reinterpretExpressionAsPattern(n.elements[s]);break;case p.Syntax.ObjectExpression:n.type=p.Syntax.ObjectPattern;for(var s=0;s<n.properties.length;s++)this.reinterpretExpressionAsPattern(n.properties[s].value);break;case p.Syntax.AssignmentExpression:n.type=p.Syntax.AssignmentPattern,delete n.operator,this.reinterpretExpressionAsPattern(n.left);break;default:break}},d.prototype.parseGroupExpression=function(){var n;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),n={type:h,params:[],async:!1};else{var s=this.lookahead,l=[];if(this.match("..."))n=this.parseRestElement(l),this.expect(")"),this.match("=>")||this.expect("=>"),n={type:h,params:[n],async:!1};else{var c=!1;if(this.context.isBindingElement=!0,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var y=[];for(this.context.isAssignmentTarget=!1,y.push(n);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var v=0;v<y.length;v++)this.reinterpretExpressionAsPattern(y[v]);c=!0,n={type:h,params:y,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),y.push(this.parseRestElement(l)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var v=0;v<y.length;v++)this.reinterpretExpressionAsPattern(y[v]);c=!0,n={type:h,params:y,async:!1}}else y.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(c)break}c||(n=this.finalize(this.startNode(s),new a.SequenceExpression(y)))}if(!c){if(this.expect(")"),this.match("=>")&&(n.type===p.Syntax.Identifier&&n.name==="yield"&&(c=!0,n={type:h,params:[n],async:!1}),!c)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),n.type===p.Syntax.SequenceExpression)for(var v=0;v<n.expressions.length;v++)this.reinterpretExpressionAsPattern(n.expressions[v]);else this.reinterpretExpressionAsPattern(n);var A=n.type===p.Syntax.SequenceExpression?n.expressions:[n];n={type:h,params:A,async:!1}}this.context.isBindingElement=!1}}}return n},d.prototype.parseArguments=function(){this.expect("(");var n=[];if(!this.match(")"))for(;;){var s=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(n.push(s),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),n},d.prototype.isIdentifierName=function(n){return n.type===3||n.type===4||n.type===1||n.type===5},d.prototype.parseIdentifierName=function(){var n=this.createNode(),s=this.nextToken();return this.isIdentifierName(s)||this.throwUnexpectedToken(s),this.finalize(n,new a.Identifier(s.value))},d.prototype.parseNewExpression=function(){var n=this.createNode(),s=this.parseIdentifierName();i.assert(s.name==="new","New expression must start with `new`");var l;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var c=this.parseIdentifierName();l=new a.MetaProperty(s,c)}else this.throwUnexpectedToken(this.lookahead);else{var y=this.isolateCoverGrammar(this.parseLeftHandSideExpression),v=this.match("(")?this.parseArguments():[];l=new a.NewExpression(y,v),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(n,l)},d.prototype.parseAsyncArgument=function(){var n=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,n},d.prototype.parseAsyncArguments=function(){this.expect("(");var n=[];if(!this.match(")"))for(;;){var s=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(n.push(s),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),n},d.prototype.parseLeftHandSideExpressionAllowCall=function(){var n=this.lookahead,s=this.matchContextualKeyword("async"),l=this.context.allowIn;this.context.allowIn=!0;var c;for(this.matchKeyword("super")&&this.context.inFunctionBody?(c=this.createNode(),this.nextToken(),c=this.finalize(c,new a.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):c=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var y=this.parseIdentifierName();c=this.finalize(this.startNode(n),new a.StaticMemberExpression(c,y))}else if(this.match("(")){var v=s&&n.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var A=v?this.parseAsyncArguments():this.parseArguments();if(c=this.finalize(this.startNode(n),new a.CallExpression(c,A)),v&&this.match("=>")){for(var w=0;w<A.length;++w)this.reinterpretExpressionAsPattern(A[w]);c={type:h,params:A,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var y=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),c=this.finalize(this.startNode(n),new a.ComputedMemberExpression(c,y))}else if(this.lookahead.type===10&&this.lookahead.head){var k=this.parseTemplateLiteral();c=this.finalize(this.startNode(n),new a.TaggedTemplateExpression(c,k))}else break;return this.context.allowIn=l,c},d.prototype.parseSuper=function(){var n=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(n,new a.Super)},d.prototype.parseLeftHandSideExpression=function(){i.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var n=this.startNode(this.lookahead),s=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var l=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),s=this.finalize(n,new a.ComputedMemberExpression(s,l))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var l=this.parseIdentifierName();s=this.finalize(n,new a.StaticMemberExpression(s,l))}else if(this.lookahead.type===10&&this.lookahead.head){var c=this.parseTemplateLiteral();s=this.finalize(n,new a.TaggedTemplateExpression(s,c))}else break;return s},d.prototype.parseUpdateExpression=function(){var n,s=this.lookahead;if(this.match("++")||this.match("--")){var l=this.startNode(s),c=this.nextToken();n=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&n.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(u.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(u.Messages.InvalidLHSInAssignment);var y=!0;n=this.finalize(l,new a.UpdateExpression(c.value,n,y)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(n=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&n.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(u.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(u.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var v=this.nextToken().value,y=!1;n=this.finalize(this.startNode(s),new a.UpdateExpression(v,n,y))}return n},d.prototype.parseAwaitExpression=function(){var n=this.createNode();this.nextToken();var s=this.parseUnaryExpression();return this.finalize(n,new a.AwaitExpression(s))},d.prototype.parseUnaryExpression=function(){var n;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var s=this.startNode(this.lookahead),l=this.nextToken();n=this.inheritCoverGrammar(this.parseUnaryExpression),n=this.finalize(s,new a.UnaryExpression(l.value,n)),this.context.strict&&n.operator==="delete"&&n.argument.type===p.Syntax.Identifier&&this.tolerateError(u.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?n=this.parseAwaitExpression():n=this.parseUpdateExpression();return n},d.prototype.parseExponentiationExpression=function(){var n=this.lookahead,s=this.inheritCoverGrammar(this.parseUnaryExpression);if(s.type!==p.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var l=s,c=this.isolateCoverGrammar(this.parseExponentiationExpression);s=this.finalize(this.startNode(n),new a.BinaryExpression("**",l,c))}return s},d.prototype.binaryPrecedence=function(n){var s=n.value,l;return n.type===7?l=this.operatorPrecedence[s]||0:n.type===4?l=s==="instanceof"||this.context.allowIn&&s==="in"?7:0:l=0,l},d.prototype.parseBinaryExpression=function(){var n=this.lookahead,s=this.inheritCoverGrammar(this.parseExponentiationExpression),l=this.lookahead,c=this.binaryPrecedence(l);if(c>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var y=[n,this.lookahead],v=s,A=this.isolateCoverGrammar(this.parseExponentiationExpression),w=[v,l.value,A],k=[c];c=this.binaryPrecedence(this.lookahead),!(c<=0);){for(;w.length>2&&c<=k[k.length-1];){A=w.pop();var R=w.pop();k.pop(),v=w.pop(),y.pop();var _=this.startNode(y[y.length-1]);w.push(this.finalize(_,new a.BinaryExpression(R,v,A)))}w.push(this.nextToken().value),k.push(c),y.push(this.lookahead),w.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var P=w.length-1;s=w[P];for(var U=y.pop();P>1;){var z=y.pop(),W=U&&U.lineStart,_=this.startNode(z,W),R=w[P-1];s=this.finalize(_,new a.BinaryExpression(R,w[P-2],s)),P-=2,U=z}}return s},d.prototype.parseConditionalExpression=function(){var n=this.lookahead,s=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var l=this.context.allowIn;this.context.allowIn=!0;var c=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=l,this.expect(":");var y=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(this.startNode(n),new a.ConditionalExpression(s,c,y)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return s},d.prototype.checkPatternParam=function(n,s){switch(s.type){case p.Syntax.Identifier:this.validateParam(n,s,s.name);break;case p.Syntax.RestElement:this.checkPatternParam(n,s.argument);break;case p.Syntax.AssignmentPattern:this.checkPatternParam(n,s.left);break;case p.Syntax.ArrayPattern:for(var l=0;l<s.elements.length;l++)s.elements[l]!==null&&this.checkPatternParam(n,s.elements[l]);break;case p.Syntax.ObjectPattern:for(var l=0;l<s.properties.length;l++)this.checkPatternParam(n,s.properties[l].value);break;default:break}n.simple=n.simple&&s instanceof a.Identifier},d.prototype.reinterpretAsCoverFormalsList=function(n){var s=[n],l,c=!1;switch(n.type){case p.Syntax.Identifier:break;case h:s=n.params,c=n.async;break;default:return null}l={simple:!0,paramSet:{}};for(var y=0;y<s.length;++y){var v=s[y];v.type===p.Syntax.AssignmentPattern?v.right.type===p.Syntax.YieldExpression&&(v.right.argument&&this.throwUnexpectedToken(this.lookahead),v.right.type=p.Syntax.Identifier,v.right.name="yield",delete v.right.argument,delete v.right.delegate):c&&v.type===p.Syntax.Identifier&&v.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(l,v),s[y]=v}if(this.context.strict||!this.context.allowYield)for(var y=0;y<s.length;++y){var v=s[y];v.type===p.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(l.message===u.Messages.StrictParamDupe){var A=this.context.strict?l.stricted:l.firstRestricted;this.throwUnexpectedToken(A,l.message)}return{simple:l.simple,params:s,stricted:l.stricted,firstRestricted:l.firstRestricted,message:l.message}},d.prototype.parseAssignmentExpression=function(){var n;if(!this.context.allowYield&&this.matchKeyword("yield"))n=this.parseYieldExpression();else{var s=this.lookahead,l=s;if(n=this.parseConditionalExpression(),l.type===3&&l.lineNumber===this.lookahead.lineNumber&&l.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var c=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(c),n={type:h,params:[c],async:!0}}if(n.type===h||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var y=n.async,v=this.reinterpretAsCoverFormalsList(n);if(v){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var A=this.context.strict,w=this.context.allowStrictDirective;this.context.allowStrictDirective=v.simple;var k=this.context.allowYield,R=this.context.await;this.context.allowYield=!0,this.context.await=y;var _=this.startNode(s);this.expect("=>");var P=void 0;if(this.match("{")){var U=this.context.allowIn;this.context.allowIn=!0,P=this.parseFunctionSourceElements(),this.context.allowIn=U}else P=this.isolateCoverGrammar(this.parseAssignmentExpression);var z=P.type!==p.Syntax.BlockStatement;this.context.strict&&v.firstRestricted&&this.throwUnexpectedToken(v.firstRestricted,v.message),this.context.strict&&v.stricted&&this.tolerateUnexpectedToken(v.stricted,v.message),n=y?this.finalize(_,new a.AsyncArrowFunctionExpression(v.params,P,z)):this.finalize(_,new a.ArrowFunctionExpression(v.params,P,z)),this.context.strict=A,this.context.allowStrictDirective=w,this.context.allowYield=k,this.context.await=R}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(u.Messages.InvalidLHSInAssignment),this.context.strict&&n.type===p.Syntax.Identifier){var W=n;this.scanner.isRestrictedWord(W.name)&&this.tolerateUnexpectedToken(l,u.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(W.name)&&this.tolerateUnexpectedToken(l,u.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(n):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),l=this.nextToken();var ae=l.value,j=this.isolateCoverGrammar(this.parseAssignmentExpression);n=this.finalize(this.startNode(s),new a.AssignmentExpression(ae,n,j)),this.context.firstCoverInitializedNameError=null}}return n},d.prototype.parseExpression=function(){var n=this.lookahead,s=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var l=[];for(l.push(s);this.lookahead.type!==2&&this.match(",");)this.nextToken(),l.push(this.isolateCoverGrammar(this.parseAssignmentExpression));s=this.finalize(this.startNode(n),new a.SequenceExpression(l))}return s},d.prototype.parseStatementListItem=function(){var n;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,u.Messages.IllegalExportDeclaration),n=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,u.Messages.IllegalImportDeclaration),n=this.parseImportDeclaration();break;case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"function":n=this.parseFunctionDeclaration();break;case"class":n=this.parseClassDeclaration();break;case"let":n=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:n=this.parseStatement();break}else n=this.parseStatement();return n},d.prototype.parseBlock=function(){var n=this.createNode();this.expect("{");for(var s=[];!this.match("}");)s.push(this.parseStatementListItem());return this.expect("}"),this.finalize(n,new a.BlockStatement(s))},d.prototype.parseLexicalBinding=function(n,s){var l=this.createNode(),c=[],y=this.parsePattern(c,n);this.context.strict&&y.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(y.name)&&this.tolerateError(u.Messages.StrictVarName);var v=null;return n==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),v=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(u.Messages.DeclarationMissingInitializer,"const")):(!s.inFor&&y.type!==p.Syntax.Identifier||this.match("="))&&(this.expect("="),v=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(l,new a.VariableDeclarator(y,v))},d.prototype.parseBindingList=function(n,s){for(var l=[this.parseLexicalBinding(n,s)];this.match(",");)this.nextToken(),l.push(this.parseLexicalBinding(n,s));return l},d.prototype.isLexicalDeclaration=function(){var n=this.scanner.saveState();this.scanner.scanComments();var s=this.scanner.lex();return this.scanner.restoreState(n),s.type===3||s.type===7&&s.value==="["||s.type===7&&s.value==="{"||s.type===4&&s.value==="let"||s.type===4&&s.value==="yield"},d.prototype.parseLexicalDeclaration=function(n){var s=this.createNode(),l=this.nextToken().value;i.assert(l==="let"||l==="const","Lexical declaration must be either let or const");var c=this.parseBindingList(l,n);return this.consumeSemicolon(),this.finalize(s,new a.VariableDeclaration(c,l))},d.prototype.parseBindingRestElement=function(n,s){var l=this.createNode();this.expect("...");var c=this.parsePattern(n,s);return this.finalize(l,new a.RestElement(c))},d.prototype.parseArrayPattern=function(n,s){var l=this.createNode();this.expect("[");for(var c=[];!this.match("]");)if(this.match(","))this.nextToken(),c.push(null);else{if(this.match("...")){c.push(this.parseBindingRestElement(n,s));break}else c.push(this.parsePatternWithDefault(n,s));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(l,new a.ArrayPattern(c))},d.prototype.parsePropertyPattern=function(n,s){var l=this.createNode(),c=!1,y=!1,v=!1,A,w;if(this.lookahead.type===3){var k=this.lookahead;A=this.parseVariableIdentifier();var R=this.finalize(l,new a.Identifier(k.value));if(this.match("=")){n.push(k),y=!0,this.nextToken();var _=this.parseAssignmentExpression();w=this.finalize(this.startNode(k),new a.AssignmentPattern(R,_))}else this.match(":")?(this.expect(":"),w=this.parsePatternWithDefault(n,s)):(n.push(k),y=!0,w=R)}else c=this.match("["),A=this.parseObjectPropertyKey(),this.expect(":"),w=this.parsePatternWithDefault(n,s);return this.finalize(l,new a.Property("init",A,c,w,v,y))},d.prototype.parseObjectPattern=function(n,s){var l=this.createNode(),c=[];for(this.expect("{");!this.match("}");)c.push(this.parsePropertyPattern(n,s)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(l,new a.ObjectPattern(c))},d.prototype.parsePattern=function(n,s){var l;return this.match("[")?l=this.parseArrayPattern(n,s):this.match("{")?l=this.parseObjectPattern(n,s):(this.matchKeyword("let")&&(s==="const"||s==="let")&&this.tolerateUnexpectedToken(this.lookahead,u.Messages.LetInLexicalBinding),n.push(this.lookahead),l=this.parseVariableIdentifier(s)),l},d.prototype.parsePatternWithDefault=function(n,s){var l=this.lookahead,c=this.parsePattern(n,s);if(this.match("=")){this.nextToken();var y=this.context.allowYield;this.context.allowYield=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=y,c=this.finalize(this.startNode(l),new a.AssignmentPattern(c,v))}return c},d.prototype.parseVariableIdentifier=function(n){var s=this.createNode(),l=this.nextToken();return l.type===4&&l.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(l,u.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(l):l.type!==3?this.context.strict&&l.type===4&&this.scanner.isStrictModeReservedWord(l.value)?this.tolerateUnexpectedToken(l,u.Messages.StrictReservedWord):(this.context.strict||l.value!=="let"||n!=="var")&&this.throwUnexpectedToken(l):(this.context.isModule||this.context.await)&&l.type===3&&l.value==="await"&&this.tolerateUnexpectedToken(l),this.finalize(s,new a.Identifier(l.value))},d.prototype.parseVariableDeclaration=function(n){var s=this.createNode(),l=[],c=this.parsePattern(l,"var");this.context.strict&&c.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(c.name)&&this.tolerateError(u.Messages.StrictVarName);var y=null;return this.match("=")?(this.nextToken(),y=this.isolateCoverGrammar(this.parseAssignmentExpression)):c.type!==p.Syntax.Identifier&&!n.inFor&&this.expect("="),this.finalize(s,new a.VariableDeclarator(c,y))},d.prototype.parseVariableDeclarationList=function(n){var s={inFor:n.inFor},l=[];for(l.push(this.parseVariableDeclaration(s));this.match(",");)this.nextToken(),l.push(this.parseVariableDeclaration(s));return l},d.prototype.parseVariableStatement=function(){var n=this.createNode();this.expectKeyword("var");var s=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(n,new a.VariableDeclaration(s,"var"))},d.prototype.parseEmptyStatement=function(){var n=this.createNode();return this.expect(";"),this.finalize(n,new a.EmptyStatement)},d.prototype.parseExpressionStatement=function(){var n=this.createNode(),s=this.parseExpression();return this.consumeSemicolon(),this.finalize(n,new a.ExpressionStatement(s))},d.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(u.Messages.StrictFunction),this.parseStatement()},d.prototype.parseIfStatement=function(){var n=this.createNode(),s,l=null;this.expectKeyword("if"),this.expect("(");var c=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),s=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),l=this.parseIfClause())),this.finalize(n,new a.IfStatement(c,s,l))},d.prototype.parseDoWhileStatement=function(){var n=this.createNode();this.expectKeyword("do");var s=this.context.inIteration;this.context.inIteration=!0;var l=this.parseStatement();this.context.inIteration=s,this.expectKeyword("while"),this.expect("(");var c=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(n,new a.DoWhileStatement(l,c))},d.prototype.parseWhileStatement=function(){var n=this.createNode(),s;this.expectKeyword("while"),this.expect("(");var l=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var c=this.context.inIteration;this.context.inIteration=!0,s=this.parseStatement(),this.context.inIteration=c}return this.finalize(n,new a.WhileStatement(l,s))},d.prototype.parseForStatement=function(){var n=null,s=null,l=null,c=!0,y,v,A=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){n=this.createNode(),this.nextToken();var w=this.context.allowIn;this.context.allowIn=!1;var k=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=w,k.length===1&&this.matchKeyword("in")){var R=k[0];R.init&&(R.id.type===p.Syntax.ArrayPattern||R.id.type===p.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(u.Messages.ForInOfLoopInitializer,"for-in"),n=this.finalize(n,new a.VariableDeclaration(k,"var")),this.nextToken(),y=n,v=this.parseExpression(),n=null}else k.length===1&&k[0].init===null&&this.matchContextualKeyword("of")?(n=this.finalize(n,new a.VariableDeclaration(k,"var")),this.nextToken(),y=n,v=this.parseAssignmentExpression(),n=null,c=!1):(n=this.finalize(n,new a.VariableDeclaration(k,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){n=this.createNode();var _=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")n=this.finalize(n,new a.Identifier(_)),this.nextToken(),y=n,v=this.parseExpression(),n=null;else{var w=this.context.allowIn;this.context.allowIn=!1;var k=this.parseBindingList(_,{inFor:!0});this.context.allowIn=w,k.length===1&&k[0].init===null&&this.matchKeyword("in")?(n=this.finalize(n,new a.VariableDeclaration(k,_)),this.nextToken(),y=n,v=this.parseExpression(),n=null):k.length===1&&k[0].init===null&&this.matchContextualKeyword("of")?(n=this.finalize(n,new a.VariableDeclaration(k,_)),this.nextToken(),y=n,v=this.parseAssignmentExpression(),n=null,c=!1):(this.consumeSemicolon(),n=this.finalize(n,new a.VariableDeclaration(k,_)))}}else{var P=this.lookahead,w=this.context.allowIn;if(this.context.allowIn=!1,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=w,this.matchKeyword("in"))(!this.context.isAssignmentTarget||n.type===p.Syntax.AssignmentExpression)&&this.tolerateError(u.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(n),y=n,v=this.parseExpression(),n=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||n.type===p.Syntax.AssignmentExpression)&&this.tolerateError(u.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(n),y=n,v=this.parseAssignmentExpression(),n=null,c=!1;else{if(this.match(",")){for(var U=[n];this.match(",");)this.nextToken(),U.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(P),new a.SequenceExpression(U))}this.expect(";")}}typeof y>"u"&&(this.match(";")||(s=this.parseExpression()),this.expect(";"),this.match(")")||(l=this.parseExpression()));var z;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),z=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var W=this.context.inIteration;this.context.inIteration=!0,z=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=W}return typeof y>"u"?this.finalize(A,new a.ForStatement(n,s,l,z)):c?this.finalize(A,new a.ForInStatement(y,v,z)):this.finalize(A,new a.ForOfStatement(y,v,z))},d.prototype.parseContinueStatement=function(){var n=this.createNode();this.expectKeyword("continue");var s=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var l=this.parseVariableIdentifier();s=l;var c="$"+l.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,c)||this.throwError(u.Messages.UnknownLabel,l.name)}return this.consumeSemicolon(),s===null&&!this.context.inIteration&&this.throwError(u.Messages.IllegalContinue),this.finalize(n,new a.ContinueStatement(s))},d.prototype.parseBreakStatement=function(){var n=this.createNode();this.expectKeyword("break");var s=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var l=this.parseVariableIdentifier(),c="$"+l.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,c)||this.throwError(u.Messages.UnknownLabel,l.name),s=l}return this.consumeSemicolon(),s===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(u.Messages.IllegalBreak),this.finalize(n,new a.BreakStatement(s))},d.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(u.Messages.IllegalReturn);var n=this.createNode();this.expectKeyword("return");var s=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,l=s?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(n,new a.ReturnStatement(l))},d.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(u.Messages.StrictModeWith);var n=this.createNode(),s;this.expectKeyword("with"),this.expect("(");var l=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),s=this.parseStatement()),this.finalize(n,new a.WithStatement(l,s))},d.prototype.parseSwitchCase=function(){var n=this.createNode(),s;this.matchKeyword("default")?(this.nextToken(),s=null):(this.expectKeyword("case"),s=this.parseExpression()),this.expect(":");for(var l=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)l.push(this.parseStatementListItem());return this.finalize(n,new a.SwitchCase(s,l))},d.prototype.parseSwitchStatement=function(){var n=this.createNode();this.expectKeyword("switch"),this.expect("(");var s=this.parseExpression();this.expect(")");var l=this.context.inSwitch;this.context.inSwitch=!0;var c=[],y=!1;for(this.expect("{");!this.match("}");){var v=this.parseSwitchCase();v.test===null&&(y&&this.throwError(u.Messages.MultipleDefaultsInSwitch),y=!0),c.push(v)}return this.expect("}"),this.context.inSwitch=l,this.finalize(n,new a.SwitchStatement(s,c))},d.prototype.parseLabelledStatement=function(){var n=this.createNode(),s=this.parseExpression(),l;if(s.type===p.Syntax.Identifier&&this.match(":")){this.nextToken();var c=s,y="$"+c.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,y)&&this.throwError(u.Messages.Redeclaration,"Label",c.name),this.context.labelSet[y]=!0;var v=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),v=this.parseClassDeclaration();else if(this.matchKeyword("function")){var A=this.lookahead,w=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(A,u.Messages.StrictFunction):w.generator&&this.tolerateUnexpectedToken(A,u.Messages.GeneratorInLegacyContext),v=w}else v=this.parseStatement();delete this.context.labelSet[y],l=new a.LabeledStatement(c,v)}else this.consumeSemicolon(),l=new a.ExpressionStatement(s);return this.finalize(n,l)},d.prototype.parseThrowStatement=function(){var n=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(u.Messages.NewlineAfterThrow);var s=this.parseExpression();return this.consumeSemicolon(),this.finalize(n,new a.ThrowStatement(s))},d.prototype.parseCatchClause=function(){var n=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var s=[],l=this.parsePattern(s),c={},y=0;y<s.length;y++){var v="$"+s[y].value;Object.prototype.hasOwnProperty.call(c,v)&&this.tolerateError(u.Messages.DuplicateBinding,s[y].value),c[v]=!0}this.context.strict&&l.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(l.name)&&this.tolerateError(u.Messages.StrictCatchVariable),this.expect(")");var A=this.parseBlock();return this.finalize(n,new a.CatchClause(l,A))},d.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},d.prototype.parseTryStatement=function(){var n=this.createNode();this.expectKeyword("try");var s=this.parseBlock(),l=this.matchKeyword("catch")?this.parseCatchClause():null,c=this.matchKeyword("finally")?this.parseFinallyClause():null;return!l&&!c&&this.throwError(u.Messages.NoCatchOrFinally),this.finalize(n,new a.TryStatement(s,l,c))},d.prototype.parseDebuggerStatement=function(){var n=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(n,new a.DebuggerStatement)},d.prototype.parseStatement=function(){var n;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:n=this.parseExpressionStatement();break;case 7:var s=this.lookahead.value;s==="{"?n=this.parseBlock():s==="("?n=this.parseExpressionStatement():s===";"?n=this.parseEmptyStatement():n=this.parseExpressionStatement();break;case 3:n=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":n=this.parseBreakStatement();break;case"continue":n=this.parseContinueStatement();break;case"debugger":n=this.parseDebuggerStatement();break;case"do":n=this.parseDoWhileStatement();break;case"for":n=this.parseForStatement();break;case"function":n=this.parseFunctionDeclaration();break;case"if":n=this.parseIfStatement();break;case"return":n=this.parseReturnStatement();break;case"switch":n=this.parseSwitchStatement();break;case"throw":n=this.parseThrowStatement();break;case"try":n=this.parseTryStatement();break;case"var":n=this.parseVariableStatement();break;case"while":n=this.parseWhileStatement();break;case"with":n=this.parseWithStatement();break;default:n=this.parseExpressionStatement();break}break;default:n=this.throwUnexpectedToken(this.lookahead)}return n},d.prototype.parseFunctionSourceElements=function(){var n=this.createNode();this.expect("{");var s=this.parseDirectivePrologues(),l=this.context.labelSet,c=this.context.inIteration,y=this.context.inSwitch,v=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)s.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=l,this.context.inIteration=c,this.context.inSwitch=y,this.context.inFunctionBody=v,this.finalize(n,new a.BlockStatement(s))},d.prototype.validateParam=function(n,s,l){var c="$"+l;this.context.strict?(this.scanner.isRestrictedWord(l)&&(n.stricted=s,n.message=u.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(n.paramSet,c)&&(n.stricted=s,n.message=u.Messages.StrictParamDupe)):n.firstRestricted||(this.scanner.isRestrictedWord(l)?(n.firstRestricted=s,n.message=u.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(l)?(n.firstRestricted=s,n.message=u.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(n.paramSet,c)&&(n.stricted=s,n.message=u.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(n.paramSet,c,{value:!0,enumerable:!0,writable:!0,configurable:!0}):n.paramSet[c]=!0},d.prototype.parseRestElement=function(n){var s=this.createNode();this.expect("...");var l=this.parsePattern(n);return this.match("=")&&this.throwError(u.Messages.DefaultRestParameter),this.match(")")||this.throwError(u.Messages.ParameterAfterRestParameter),this.finalize(s,new a.RestElement(l))},d.prototype.parseFormalParameter=function(n){for(var s=[],l=this.match("...")?this.parseRestElement(s):this.parsePatternWithDefault(s),c=0;c<s.length;c++)this.validateParam(n,s[c],s[c].value);n.simple=n.simple&&l instanceof a.Identifier,n.params.push(l)},d.prototype.parseFormalParameters=function(n){var s;if(s={simple:!0,params:[],firstRestricted:n},this.expect("("),!this.match(")"))for(s.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(s),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:s.simple,params:s.params,stricted:s.stricted,firstRestricted:s.firstRestricted,message:s.message}},d.prototype.matchAsyncFunction=function(){var n=this.matchContextualKeyword("async");if(n){var s=this.scanner.saveState();this.scanner.scanComments();var l=this.scanner.lex();this.scanner.restoreState(s),n=s.lineNumber===l.lineNumber&&l.type===4&&l.value==="function"}return n},d.prototype.parseFunctionDeclaration=function(n){var s=this.createNode(),l=this.matchContextualKeyword("async");l&&this.nextToken(),this.expectKeyword("function");var c=l?!1:this.match("*");c&&this.nextToken();var y,v=null,A=null;if(!n||!this.match("(")){var w=this.lookahead;v=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(w.value)&&this.tolerateUnexpectedToken(w,u.Messages.StrictFunctionName):this.scanner.isRestrictedWord(w.value)?(A=w,y=u.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(w.value)&&(A=w,y=u.Messages.StrictReservedWord)}var k=this.context.await,R=this.context.allowYield;this.context.await=l,this.context.allowYield=!c;var _=this.parseFormalParameters(A),P=_.params,U=_.stricted;A=_.firstRestricted,_.message&&(y=_.message);var z=this.context.strict,W=this.context.allowStrictDirective;this.context.allowStrictDirective=_.simple;var ae=this.parseFunctionSourceElements();return this.context.strict&&A&&this.throwUnexpectedToken(A,y),this.context.strict&&U&&this.tolerateUnexpectedToken(U,y),this.context.strict=z,this.context.allowStrictDirective=W,this.context.await=k,this.context.allowYield=R,l?this.finalize(s,new a.AsyncFunctionDeclaration(v,P,ae)):this.finalize(s,new a.FunctionDeclaration(v,P,ae,c))},d.prototype.parseFunctionExpression=function(){var n=this.createNode(),s=this.matchContextualKeyword("async");s&&this.nextToken(),this.expectKeyword("function");var l=s?!1:this.match("*");l&&this.nextToken();var c,y=null,v,A=this.context.await,w=this.context.allowYield;if(this.context.await=s,this.context.allowYield=!l,!this.match("(")){var k=this.lookahead;y=!this.context.strict&&!l&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(k.value)&&this.tolerateUnexpectedToken(k,u.Messages.StrictFunctionName):this.scanner.isRestrictedWord(k.value)?(v=k,c=u.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(k.value)&&(v=k,c=u.Messages.StrictReservedWord)}var R=this.parseFormalParameters(v),_=R.params,P=R.stricted;v=R.firstRestricted,R.message&&(c=R.message);var U=this.context.strict,z=this.context.allowStrictDirective;this.context.allowStrictDirective=R.simple;var W=this.parseFunctionSourceElements();return this.context.strict&&v&&this.throwUnexpectedToken(v,c),this.context.strict&&P&&this.tolerateUnexpectedToken(P,c),this.context.strict=U,this.context.allowStrictDirective=z,this.context.await=A,this.context.allowYield=w,s?this.finalize(n,new a.AsyncFunctionExpression(y,_,W)):this.finalize(n,new a.FunctionExpression(y,_,W,l))},d.prototype.parseDirective=function(){var n=this.lookahead,s=this.createNode(),l=this.parseExpression(),c=l.type===p.Syntax.Literal?this.getTokenRaw(n).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(s,c?new a.Directive(l,c):new a.ExpressionStatement(l))},d.prototype.parseDirectivePrologues=function(){for(var n=null,s=[];;){var l=this.lookahead;if(l.type!==8)break;var c=this.parseDirective();s.push(c);var y=c.directive;if(typeof y!="string")break;y==="use strict"?(this.context.strict=!0,n&&this.tolerateUnexpectedToken(n,u.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(l,u.Messages.IllegalLanguageModeDirective)):!n&&l.octal&&(n=l)}return s},d.prototype.qualifiedPropertyName=function(n){switch(n.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return n.value==="[";default:break}return!1},d.prototype.parseGetterMethod=function(){var n=this.createNode(),s=!1,l=this.context.allowYield;this.context.allowYield=!s;var c=this.parseFormalParameters();c.params.length>0&&this.tolerateError(u.Messages.BadGetterArity);var y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(n,new a.FunctionExpression(null,c.params,y,s))},d.prototype.parseSetterMethod=function(){var n=this.createNode(),s=!1,l=this.context.allowYield;this.context.allowYield=!s;var c=this.parseFormalParameters();c.params.length!==1?this.tolerateError(u.Messages.BadSetterArity):c.params[0]instanceof a.RestElement&&this.tolerateError(u.Messages.BadSetterRestParameter);var y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(n,new a.FunctionExpression(null,c.params,y,s))},d.prototype.parseGeneratorMethod=function(){var n=this.createNode(),s=!0,l=this.context.allowYield;this.context.allowYield=!0;var c=this.parseFormalParameters();this.context.allowYield=!1;var y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(n,new a.FunctionExpression(null,c.params,y,s))},d.prototype.isStartOfExpression=function(){var n=!0,s=this.lookahead.value;switch(this.lookahead.type){case 7:n=s==="["||s==="("||s==="{"||s==="+"||s==="-"||s==="!"||s==="~"||s==="++"||s==="--"||s==="/"||s==="/=";break;case 4:n=s==="class"||s==="delete"||s==="function"||s==="let"||s==="new"||s==="super"||s==="this"||s==="typeof"||s==="void"||s==="yield";break;default:break}return n},d.prototype.parseYieldExpression=function(){var n=this.createNode();this.expectKeyword("yield");var s=null,l=!1;if(!this.hasLineTerminator){var c=this.context.allowYield;this.context.allowYield=!1,l=this.match("*"),l?(this.nextToken(),s=this.parseAssignmentExpression()):this.isStartOfExpression()&&(s=this.parseAssignmentExpression()),this.context.allowYield=c}return this.finalize(n,new a.YieldExpression(s,l))},d.prototype.parseClassElement=function(n){var s=this.lookahead,l=this.createNode(),c="",y=null,v=null,A=!1,w=!1,k=!1,R=!1;if(this.match("*"))this.nextToken();else{A=this.match("["),y=this.parseObjectPropertyKey();var _=y;if(_.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(s=this.lookahead,k=!0,A=this.match("["),this.match("*")?this.nextToken():y=this.parseObjectPropertyKey()),s.type===3&&!this.hasLineTerminator&&s.value==="async"){var P=this.lookahead.value;P!==":"&&P!=="("&&P!=="*"&&(R=!0,s=this.lookahead,y=this.parseObjectPropertyKey(),s.type===3&&s.value==="constructor"&&this.tolerateUnexpectedToken(s,u.Messages.ConstructorIsAsync))}}var U=this.qualifiedPropertyName(this.lookahead);return s.type===3?s.value==="get"&&U?(c="get",A=this.match("["),y=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod()):s.value==="set"&&U&&(c="set",A=this.match("["),y=this.parseObjectPropertyKey(),v=this.parseSetterMethod()):s.type===7&&s.value==="*"&&U&&(c="init",A=this.match("["),y=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),w=!0),!c&&y&&this.match("(")&&(c="init",v=R?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),w=!0),c||this.throwUnexpectedToken(this.lookahead),c==="init"&&(c="method"),A||(k&&this.isPropertyKey(y,"prototype")&&this.throwUnexpectedToken(s,u.Messages.StaticPrototype),!k&&this.isPropertyKey(y,"constructor")&&((c!=="method"||!w||v&&v.generator)&&this.throwUnexpectedToken(s,u.Messages.ConstructorSpecialMethod),n.value?this.throwUnexpectedToken(s,u.Messages.DuplicateConstructor):n.value=!0,c="constructor")),this.finalize(l,new a.MethodDefinition(y,A,v,c,k))},d.prototype.parseClassElementList=function(){var n=[],s={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():n.push(this.parseClassElement(s));return this.expect("}"),n},d.prototype.parseClassBody=function(){var n=this.createNode(),s=this.parseClassElementList();return this.finalize(n,new a.ClassBody(s))},d.prototype.parseClassDeclaration=function(n){var s=this.createNode(),l=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var c=n&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),y=null;this.matchKeyword("extends")&&(this.nextToken(),y=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var v=this.parseClassBody();return this.context.strict=l,this.finalize(s,new a.ClassDeclaration(c,y,v))},d.prototype.parseClassExpression=function(){var n=this.createNode(),s=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var l=this.lookahead.type===3?this.parseVariableIdentifier():null,c=null;this.matchKeyword("extends")&&(this.nextToken(),c=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var y=this.parseClassBody();return this.context.strict=s,this.finalize(n,new a.ClassExpression(l,c,y))},d.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var n=this.createNode(),s=this.parseDirectivePrologues();this.lookahead.type!==2;)s.push(this.parseStatementListItem());return this.finalize(n,new a.Module(s))},d.prototype.parseScript=function(){for(var n=this.createNode(),s=this.parseDirectivePrologues();this.lookahead.type!==2;)s.push(this.parseStatementListItem());return this.finalize(n,new a.Script(s))},d.prototype.parseModuleSpecifier=function(){var n=this.createNode();this.lookahead.type!==8&&this.throwError(u.Messages.InvalidModuleSpecifier);var s=this.nextToken(),l=this.getTokenRaw(s);return this.finalize(n,new a.Literal(s.value,l))},d.prototype.parseImportSpecifier=function(){var n=this.createNode(),s,l;return this.lookahead.type===3?(s=this.parseVariableIdentifier(),l=s,this.matchContextualKeyword("as")&&(this.nextToken(),l=this.parseVariableIdentifier())):(s=this.parseIdentifierName(),l=s,this.matchContextualKeyword("as")?(this.nextToken(),l=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new a.ImportSpecifier(l,s))},d.prototype.parseNamedImports=function(){this.expect("{");for(var n=[];!this.match("}");)n.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),n},d.prototype.parseImportDefaultSpecifier=function(){var n=this.createNode(),s=this.parseIdentifierName();return this.finalize(n,new a.ImportDefaultSpecifier(s))},d.prototype.parseImportNamespaceSpecifier=function(){var n=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(u.Messages.NoAsAfterImportNamespace),this.nextToken();var s=this.parseIdentifierName();return this.finalize(n,new a.ImportNamespaceSpecifier(s))},d.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(u.Messages.IllegalImportDeclaration);var n=this.createNode();this.expectKeyword("import");var s,l=[];if(this.lookahead.type===8)s=this.parseModuleSpecifier();else{if(this.match("{")?l=l.concat(this.parseNamedImports()):this.match("*")?l.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(l.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?l.push(this.parseImportNamespaceSpecifier()):this.match("{")?l=l.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var c=this.lookahead.value?u.Messages.UnexpectedToken:u.Messages.MissingFromClause;this.throwError(c,this.lookahead.value)}this.nextToken(),s=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(n,new a.ImportDeclaration(l,s))},d.prototype.parseExportSpecifier=function(){var n=this.createNode(),s=this.parseIdentifierName(),l=s;return this.matchContextualKeyword("as")&&(this.nextToken(),l=this.parseIdentifierName()),this.finalize(n,new a.ExportSpecifier(s,l))},d.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(u.Messages.IllegalExportDeclaration);var n=this.createNode();this.expectKeyword("export");var s;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var l=this.parseFunctionDeclaration(!0);s=this.finalize(n,new a.ExportDefaultDeclaration(l))}else if(this.matchKeyword("class")){var l=this.parseClassDeclaration(!0);s=this.finalize(n,new a.ExportDefaultDeclaration(l))}else if(this.matchContextualKeyword("async")){var l=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();s=this.finalize(n,new a.ExportDefaultDeclaration(l))}else{this.matchContextualKeyword("from")&&this.throwError(u.Messages.UnexpectedToken,this.lookahead.value);var l=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),s=this.finalize(n,new a.ExportDefaultDeclaration(l))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var c=this.lookahead.value?u.Messages.UnexpectedToken:u.Messages.MissingFromClause;this.throwError(c,this.lookahead.value)}this.nextToken();var y=this.parseModuleSpecifier();this.consumeSemicolon(),s=this.finalize(n,new a.ExportAllDeclaration(y))}else if(this.lookahead.type===4){var l=void 0;switch(this.lookahead.value){case"let":case"const":l=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":l=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}s=this.finalize(n,new a.ExportNamedDeclaration(l,[],null))}else if(this.matchAsyncFunction()){var l=this.parseFunctionDeclaration();s=this.finalize(n,new a.ExportNamedDeclaration(l,[],null))}else{var v=[],A=null,w=!1;for(this.expect("{");!this.match("}");)w=w||this.matchKeyword("default"),v.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),A=this.parseModuleSpecifier(),this.consumeSemicolon();else if(w){var c=this.lookahead.value?u.Messages.UnexpectedToken:u.Messages.MissingFromClause;this.throwError(c,this.lookahead.value)}else this.consumeSemicolon();s=this.finalize(n,new a.ExportNamedDeclaration(null,v,A))}return s},d}();t.Parser=m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(i,o){if(!i)throw new Error("ASSERT: "+o)}t.assert=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function i(){this.errors=[],this.tolerant=!1}return i.prototype.recordError=function(o){this.errors.push(o)},i.prototype.tolerate=function(o){if(this.tolerant)this.recordError(o);else throw o},i.prototype.constructError=function(o,u){var a=new Error(o);try{throw a}catch(f){Object.create&&Object.defineProperty&&(a=Object.create(f),Object.defineProperty(a,"column",{value:u}))}return a},i.prototype.createError=function(o,u,a,f){var p="Line "+u+": "+f,g=this.constructError(p,a);return g.index=o,g.lineNumber=u,g.description=f,g},i.prototype.throwError=function(o,u,a,f){throw this.createError(o,u,a,f)},i.prototype.tolerateError=function(o,u,a,f){var p=this.createError(o,u,a,f);if(this.tolerant)this.recordError(p);else throw p},i}();t.ErrorHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),o=r(4),u=r(11);function a(g){return"0123456789abcdef".indexOf(g.toLowerCase())}function f(g){return"01234567".indexOf(g)}var p=function(){function g(h,m){this.source=h,this.errorHandler=m,this.trackComment=!1,this.isModule=!1,this.length=h.length,this.index=0,this.lineNumber=h.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return g.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},g.prototype.restoreState=function(h){this.index=h.index,this.lineNumber=h.lineNumber,this.lineStart=h.lineStart},g.prototype.eof=function(){return this.index>=this.length},g.prototype.throwUnexpectedToken=function(h){return h===void 0&&(h=u.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,h)},g.prototype.tolerateUnexpectedToken=function(h){h===void 0&&(h=u.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,h)},g.prototype.skipSingleLineComment=function(h){var m=[],d,n;for(this.trackComment&&(m=[],d=this.index-h,n={start:{line:this.lineNumber,column:this.index-this.lineStart-h},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(++this.index,o.Character.isLineTerminator(s)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var l={multiLine:!1,slice:[d+h,this.index-1],range:[d,this.index-1],loc:n};m.push(l)}return s===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m}}if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var l={multiLine:!1,slice:[d+h,this.index],range:[d,this.index],loc:n};m.push(l)}return m},g.prototype.skipMultiLineComment=function(){var h=[],m,d;for(this.trackComment&&(h=[],m=this.index-2,d={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(o.Character.isLineTerminator(n))n===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(n===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[m+2,this.index-2],range:[m,this.index],loc:d};h.push(s)}return h}++this.index}else++this.index}if(this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[m+2,this.index],range:[m,this.index],loc:d};h.push(s)}return this.tolerateUnexpectedToken(),h},g.prototype.scanComments=function(){var h;this.trackComment&&(h=[]);for(var m=this.index===0;!this.eof();){var d=this.source.charCodeAt(this.index);if(o.Character.isWhiteSpace(d))++this.index;else if(o.Character.isLineTerminator(d))++this.index,d===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m=!0;else if(d===47)if(d=this.source.charCodeAt(this.index+1),d===47){this.index+=2;var n=this.skipSingleLineComment(2);this.trackComment&&(h=h.concat(n)),m=!0}else if(d===42){this.index+=2;var n=this.skipMultiLineComment();this.trackComment&&(h=h.concat(n))}else break;else if(m&&d===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var n=this.skipSingleLineComment(3);this.trackComment&&(h=h.concat(n))}else break;else if(d===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var n=this.skipSingleLineComment(4);this.trackComment&&(h=h.concat(n))}else break;else break}return h},g.prototype.isFutureReservedWord=function(h){switch(h){case"enum":case"export":case"import":case"super":return!0;default:return!1}},g.prototype.isStrictModeReservedWord=function(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},g.prototype.isRestrictedWord=function(h){return h==="eval"||h==="arguments"},g.prototype.isKeyword=function(h){switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}},g.prototype.codePointAt=function(h){var m=this.source.charCodeAt(h);if(m>=55296&&m<=56319){var d=this.source.charCodeAt(h+1);if(d>=56320&&d<=57343){var n=m;m=(n-55296)*1024+d-56320+65536}}return m},g.prototype.scanHexEscape=function(h){for(var m=h==="u"?4:2,d=0,n=0;n<m;++n)if(!this.eof()&&o.Character.isHexDigit(this.source.charCodeAt(this.index)))d=d*16+a(this.source[this.index++]);else return null;return String.fromCharCode(d)},g.prototype.scanUnicodeCodePointEscape=function(){var h=this.source[this.index],m=0;for(h==="}"&&this.throwUnexpectedToken();!this.eof()&&(h=this.source[this.index++],!!o.Character.isHexDigit(h.charCodeAt(0)));)m=m*16+a(h);return(m>1114111||h!=="}")&&this.throwUnexpectedToken(),o.Character.fromCodePoint(m)},g.prototype.getIdentifier=function(){for(var h=this.index++;!this.eof();){var m=this.source.charCodeAt(this.index);if(m===92)return this.index=h,this.getComplexIdentifier();if(m>=55296&&m<57343)return this.index=h,this.getComplexIdentifier();if(o.Character.isIdentifierPart(m))++this.index;else break}return this.source.slice(h,this.index)},g.prototype.getComplexIdentifier=function(){var h=this.codePointAt(this.index),m=o.Character.fromCodePoint(h);this.index+=m.length;var d;for(h===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!o.Character.isIdentifierStart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),m=d);!this.eof()&&(h=this.codePointAt(this.index),!!o.Character.isIdentifierPart(h));)d=o.Character.fromCodePoint(h),m+=d,this.index+=d.length,h===92&&(m=m.substr(0,m.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!o.Character.isIdentifierPart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),m+=d);return m},g.prototype.octalToDecimal=function(h){var m=h!=="0",d=f(h);return!this.eof()&&o.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(m=!0,d=d*8+f(this.source[this.index++]),"0123".indexOf(h)>=0&&!this.eof()&&o.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=d*8+f(this.source[this.index++]))),{code:d,octal:m}},g.prototype.scanIdentifier=function(){var h,m=this.index,d=this.source.charCodeAt(m)===92?this.getComplexIdentifier():this.getIdentifier();if(d.length===1?h=3:this.isKeyword(d)?h=4:d==="null"?h=5:d==="true"||d==="false"?h=1:h=3,h!==3&&m+d.length!==this.index){var n=this.index;this.index=m,this.tolerateUnexpectedToken(u.Messages.InvalidEscapedReservedWord),this.index=n}return{type:h,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},g.prototype.scanPunctuator=function(){var h=this.index,m=this.source[this.index];switch(m){case"(":case"{":m==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,m="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:m=this.source.substr(this.index,4),m===">>>="?this.index+=4:(m=m.substr(0,3),m==="==="||m==="!=="||m===">>>"||m==="<<="||m===">>="||m==="**="?this.index+=3:(m=m.substr(0,2),m==="&&"||m==="||"||m==="=="||m==="!="||m==="+="||m==="-="||m==="*="||m==="/="||m==="++"||m==="--"||m==="<<"||m===">>"||m==="&="||m==="|="||m==="^="||m==="%="||m==="<="||m===">="||m==="=>"||m==="**"?this.index+=2:(m=this.source[this.index],"<>=!+-*%&|^/".indexOf(m)>=0&&++this.index)))}return this.index===h&&this.throwUnexpectedToken(),{type:7,value:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},g.prototype.scanHexLiteral=function(h){for(var m="";!this.eof()&&o.Character.isHexDigit(this.source.charCodeAt(this.index));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),o.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+m,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},g.prototype.scanBinaryLiteral=function(h){for(var m="",d;!this.eof()&&(d=this.source[this.index],!(d!=="0"&&d!=="1"));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),this.eof()||(d=this.source.charCodeAt(this.index),(o.Character.isIdentifierStart(d)||o.Character.isDecimalDigit(d))&&this.throwUnexpectedToken()),{type:6,value:parseInt(m,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},g.prototype.scanOctalLiteral=function(h,m){var d="",n=!1;for(o.Character.isOctalDigit(h.charCodeAt(0))?(n=!0,d="0"+this.source[this.index++]):++this.index;!this.eof()&&o.Character.isOctalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];return!n&&d.length===0&&this.throwUnexpectedToken(),(o.Character.isIdentifierStart(this.source.charCodeAt(this.index))||o.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(d,8),octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},g.prototype.isImplicitOctalLiteral=function(){for(var h=this.index+1;h<this.length;++h){var m=this.source[h];if(m==="8"||m==="9")return!1;if(!o.Character.isOctalDigit(m.charCodeAt(0)))return!0}return!0},g.prototype.scanNumericLiteral=function(){var h=this.index,m=this.source[h];i.assert(o.Character.isDecimalDigit(m.charCodeAt(0))||m===".","Numeric literal must start with a decimal digit or a decimal point");var d="";if(m!=="."){if(d=this.source[this.index++],m=this.source[this.index],d==="0"){if(m==="x"||m==="X")return++this.index,this.scanHexLiteral(h);if(m==="b"||m==="B")return++this.index,this.scanBinaryLiteral(h);if(m==="o"||m==="O")return this.scanOctalLiteral(m,h);if(m&&o.Character.isOctalDigit(m.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(m,h)}for(;o.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];m=this.source[this.index]}if(m==="."){for(d+=this.source[this.index++];o.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];m=this.source[this.index]}if(m==="e"||m==="E")if(d+=this.source[this.index++],m=this.source[this.index],(m==="+"||m==="-")&&(d+=this.source[this.index++]),o.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;o.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];else this.throwUnexpectedToken();return o.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(d),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},g.prototype.scanStringLiteral=function(){var h=this.index,m=this.source[h];i.assert(m==="'"||m==='"',"String literal must starts with a quote"),++this.index;for(var d=!1,n="";!this.eof();){var s=this.source[this.index++];if(s===m){m="";break}else if(s==="\\")if(s=this.source[this.index++],!s||!o.Character.isLineTerminator(s.charCodeAt(0)))switch(s){case"u":if(this.source[this.index]==="{")++this.index,n+=this.scanUnicodeCodePointEscape();else{var l=this.scanHexEscape(s);l===null&&this.throwUnexpectedToken(),n+=l}break;case"x":var c=this.scanHexEscape(s);c===null&&this.throwUnexpectedToken(u.Messages.InvalidHexEscapeSequence),n+=c;break;case"n":n+=`