From f12068acae0af5831304442e2189718d80e106d4 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 10 Feb 2026 19:05:04 -0500 Subject: [PATCH 1/9] Add RSC Sandboxes --- .claude/settings.json | 1 + .claude/skills/docs-rsc-sandpack/SKILL.md | 407 + .eslintignore | 1 + package.json | 6 +- scripts/buildRscWorker.mjs | 44 + src/components/MDX/MDXComponents.tsx | 3 +- src/components/MDX/Sandpack/Console.tsx | 2 +- src/components/MDX/Sandpack/CustomPreset.tsx | 10 +- src/components/MDX/Sandpack/NavigationBar.tsx | 10 +- .../MDX/Sandpack/SandpackRSCRoot.tsx | 119 + src/components/MDX/Sandpack/index.tsx | 30 +- .../Sandpack/sandpack-rsc/RscFileBridge.tsx | 40 + .../sandbox-code/src/rsc-client.js | 302 + .../sandbox-code/src/rsc-server.js | 340 + .../sandbox-code/src/webpack-shim.js | 24 + .../sandbox-code/src/worker-bundle.dist.js | 25093 ++++++++++++++++ src/components/MDX/Sandpack/templateRSC.ts | 79 + src/components/MDX/SandpackWithHTMLOutput.tsx | 6 +- src/content/learn/rsc-sandbox-test.md | 137 + src/sidebarLearn.json | 5 + tsconfig.json | 1 + yarn.lock | 245 +- 22 files changed, 26889 insertions(+), 16 deletions(-) create mode 100644 .claude/skills/docs-rsc-sandpack/SKILL.md create mode 100644 scripts/buildRscWorker.mjs create mode 100644 src/components/MDX/Sandpack/SandpackRSCRoot.tsx create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/webpack-shim.js create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js create mode 100644 src/components/MDX/Sandpack/templateRSC.ts create mode 100644 src/content/learn/rsc-sandbox-test.md diff --git a/.claude/settings.json b/.claude/settings.json index 4648ad90dfe..11140318370 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -16,6 +16,7 @@ "Skill(docs-voice)", "Skill(docs-components)", "Skill(docs-sandpack)", + "Skill(docs-rsc-sandpack)", "Skill(docs-writer-learn)", "Skill(docs-writer-reference)", "Bash(yarn lint:*)", diff --git a/.claude/skills/docs-rsc-sandpack/SKILL.md b/.claude/skills/docs-rsc-sandpack/SKILL.md new file mode 100644 index 00000000000..a08098f5af8 --- /dev/null +++ b/.claude/skills/docs-rsc-sandpack/SKILL.md @@ -0,0 +1,407 @@ +--- +name: docs-rsc-sandpack +description: Use when adding interactive RSC (React Server Components) code examples to React docs using , or when modifying the RSC sandpack infrastructure. +--- + +# RSC Sandpack Patterns + +For general Sandpack conventions (code style, naming, file naming, line highlighting, hidden files, CSS guidelines), see `/docs-sandpack`. This skill covers only RSC-specific patterns. + +## Quick Start Template + +Minimal single-file `` example: + +```mdx + + +` ` `js src/App.js +export default function App() { + return

Hello from a Server Component!

; +} +` ` ` + +
+``` + +--- + +## How It Differs from `` + +| Feature | `` | `` | +|---------|-------------|-----------------| +| Execution model | All code runs in iframe | Server code runs in Web Worker, client code in iframe | +| `'use client'` directive | Ignored (everything is client) | Required to mark client components | +| `'use server'` directive | Not supported | Marks server actions callable from client | +| `async` components | Not supported | Supported (server components can be async) | +| External dependencies | Supported via `package.json` | Not supported (only React + react-dom) | +| Entry point | `App.js` with `export default` | `src/App.js` with `export default` | +| Component tag | `` | `` | + +--- + +## File Directives + +Files are classified by the directive at the top of the file: + +| Directive | Where it runs | Rules | +|-----------|--------------|-------| +| (none) | Web Worker (server) | Default. Can be `async`. Can import other server files. Cannot use hooks, event handlers, or browser APIs. | +| `'use client'` | Sandpack iframe (browser) | Must be first statement. Can use hooks, event handlers, browser APIs. Cannot be `async`. Cannot import server files. | +| `'use server'` | Web Worker (server) | Marks server actions. Can be module-level (all exports are actions) or function-level. Callable from client via props or form `action`. | + +**Directive detection** is a string match on the first non-comment statement. The directive must appear exactly as `'use client';` or `'use server';` (single or double quotes, semicolon optional). + +--- + +## Common Patterns + +### 1. Server + Client Components + +```mdx + + +` ` `js src/App.js +import Counter from './Counter'; + +export default function App() { + return ( +
+

Server-rendered heading

+ +
+ ); +} +` ` ` + +` ` `js src/Counter.js +'use client'; + +import { useState } from 'react'; + +export default function Counter() { + const [count, setCount] = useState(0); + return ( + + ); +} +` ` ` + +
+``` + +### 2. Async Server Component with Suspense + +```mdx + + +` ` `js src/App.js +import { Suspense } from 'react'; +import Albums from './Albums'; + +export default function App() { + return ( + Loading...

}> + +
+ ); +} +` ` ` + +` ` `js src/Albums.js +async function fetchAlbums() { + await new Promise(resolve => setTimeout(resolve, 1000)); + return ['Abbey Road', 'Let It Be', 'Revolver']; +} + +export default async function Albums() { + const albums = await fetchAlbums(); + return ( +
    + {albums.map(album => ( +
  • {album}
  • + ))} +
+ ); +} +` ` ` + +
+``` + +### 3. Server Functions (Actions) + +```mdx + + +` ` `js src/App.js +import { addLike, getLikeCount } from './actions'; +import LikeButton from './LikeButton'; + +export default async function App() { + const count = await getLikeCount(); + return ( +
+

Likes: {count}

+ +
+ ); +} +` ` ` + +` ` `js src/actions.js +'use server'; + +let count = 0; + +export async function addLike() { + count++; +} + +export async function getLikeCount() { + return count; +} +` ` ` + +` ` `js src/LikeButton.js +'use client'; + +export default function LikeButton({ addLike }) { + return ( +
+ +
+ ); +} +` ` ` + +
+``` + +--- + +## File Structure Requirements + +### Entry Point + +- **`src/App.js` is required** as the main entry point +- Must have `export default` (function component) +- Case-insensitive fallback: `src/app.js` also works + +### Auto-Injected Infrastructure Files + +These files are automatically injected by `sandpack-rsc-setup.ts` and should never be included in MDX: + +| File | Purpose | +|------|---------| +| `/src/index.js` | Bootstraps the RSC pipeline | +| `/src/rsc-client.js` | Client bridge — creates Worker, consumes Flight stream | +| `/src/rsc-server.js` | Wraps pre-bundled worker runtime as ES module | +| `/node_modules/__webpack_shim__/index.js` | Minimal webpack compatibility layer | +| `/node_modules/__rsdw_client__/index.js` | `react-server-dom-webpack/client` as local dependency | +| `/src/styles.css` | Base styles | + +### No External Dependencies + +`` does not support external npm packages. Only `react` and `react-dom` are available. Do not include `package.json` in RSC examples. + +--- + +## Constraints and Pitfalls + +### What Server Components Cannot Do + +| Cannot | Reason | +|--------|--------| +| Use hooks (`useState`, `useEffect`, etc.) | Server components are stateless, run once | +| Attach event handlers (`onClick`, `onChange`) | No interactivity on server | +| Access browser APIs (`window`, `document`, `localStorage`) | Runs in Web Worker, not browser | +| Import client components without `'use client'` | Client code must be explicitly marked | +| Use `useContext` | Context is a client concept | + +### What Client Components Cannot Do + +| Cannot | Reason | +|--------|--------| +| Be `async` | Client components render synchronously | +| Import server-only files directly | Would execute server code in browser | +| Use `'use server'` at module level | That marks a server actions file | +| Read from databases or file systems | Runs in browser | + +### Sucrase Compilation Limitations + +| Limitation | Detail | +|------------|--------| +| No TypeScript type erasure for complex generics | Sucrase handles basic TS but not all edge cases | +| No decorators | Not supported by Sucrase | +| No dynamic `import()` | Worker module system uses synchronous `require()` | +| CommonJS output only (server side) | Server files compiled to CJS with `var` declarations | + +### Other Constraints + +| Constraint | Detail | +|------------|--------| +| FormData serialization | FormData is not structurally cloneable for `postMessage`; serialized as `[key, value]` entries and reconstructed in Worker | +| Module resolution | Custom `resolvePath()` — only relative paths (`./`, `../`) with `.js`, `.jsx`, `.ts`, `.tsx` extensions. No `node_modules` resolution. | +| CSS imports | `require('*.css')` returns empty object. No CSS bundling in the Worker. | +| Circular dependencies | Partially supported — partially populated exports returned during circular `require()` | +| React version | Client: `^19.2.1` via Sandpack CDN. Server: pinned to pre-bundled version in `worker-bundle.source.js`. Must stay in sync. | + +--- + +## Architecture Reference + +### Three-Layer Architecture + +``` +react.dev page (Next.js) + ┌─────────────────────────────────────────┐ + │ │ + │ ┌─────────┐ ┌──────────────────────┐ │ + │ │ Editor │ │ Preview (iframe) │ │ + │ │ App.js │ │ Client React app │ │ + │ │ (edit) │ │ consumes Flight │ │ + │ │ │ │ stream from Worker │ │ + │ └─────────┘ └──────────┬───────────┘ │ + └───────────────────────────┼─────────────┘ + │ postMessage + ┌───────────────────────────▼─────────────┐ + │ Web Worker (Blob URL) │ + │ - React server build (pre-bundled) │ + │ - react-server-dom-webpack/server │ + │ - webpack shim │ + │ - User server code (Sucrase → CJS) │ + └─────────────────────────────────────────┘ +``` + +### Data Flow (14 Steps) + +1. MDX parser extracts code blocks from `` children +2. `createFileMap()` converts code blocks to Sandpack file map +3. `sandpack-rsc-setup.ts` injects infrastructure files (client bridge, worker bundle, webpack shim) +4. `SandpackProvider` initializes Sandpack with custom bundler URL +5. Sandpack compiles client files and boots the iframe +6. `RscFileBridge` listens for Sandpack `done` events +7. `RscFileBridge` posts all raw file contents to iframe via `postMessage` +8. `rsc-client.source.js` receives files, classifies by directive +9. Client files compiled by Sucrase and registered as webpack modules +10. Server files + manifest sent to Worker via `postMessage` (`deploy` message) +11. Worker compiles server files with Sucrase to CJS, executes with `new Function()` +12. Worker calls `renderToReadableStream()` from `react-server-dom-webpack/server.browser` +13. Flight stream chunks sent back to client via `postMessage` with Transferable `Uint8Array` buffers +14. Client consumes stream with `createFromReadableStream()`, renders via React DOM `startTransition` + +### Key Source Files + +| File | Purpose | +|------------------------------------------------------------------|---------| +| `src/components/MDX/Sandpack/sandpack-rsc/index.tsx` | Lazy-loading wrapper, file map extraction | +| `src/components/MDX/Sandpack/sandpack-rsc/SandpackRSCRoot.tsx` | SandpackProvider setup, custom bundler URL, UI layout | +| `src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx` | Monitors Sandpack; posts raw files to iframe | +| `src/components/MDX/Sandpack/sandpack-rsc/sandpack-rsc-setup.ts` | Loads raw source files, assembles infrastructure file map | +| `.../sandbox-code/src/worker-server.source.js` | Worker runtime: module system, Sucrase compilation, `renderToReadableStream()` | +| `.../sandbox-code/src/rsc-client.source.js` | Client bridge: Worker creation, file classification, Flight stream consumption | +| `.../sandbox-code/src/webpack-shim.source.js` | Minimal `__webpack_require__` / `__webpack_module_cache__` shim | +| `.../sandbox-code/src/worker-bundle.source.js` | Pre-bundled IIFE (generated): React server + RSDW/server + Sucrase | +| `scripts/buildRscWorker.mjs` | esbuild script: bundles worker-server.source.js into worker-bundle.source.js | +| `next.config.js` (lines 49-60) | Webpack `raw-loader` rule for `.source.js` files | +| `src/components/MDX/MDXComponents.tsx` | Registers `` as MDX component | + +--- + +## Build System + +### Rebuilding the Worker Bundle + +After modifying `worker-server.source.js` or `webpack-shim.source.js`: + +```bash +node scripts/buildRscWorker.mjs +``` + +This runs esbuild with: +- `format: 'iife'`, `platform: 'browser'` +- `conditions: ['react-server', 'browser']` (activates React server export conditions) +- `minify: true` +- Prepends `webpack-shim.source.js` to the output + +### Raw-Loader Configuration + +In `next.config.js`, `.source.js` files are loaded as raw strings: + +```javascript +config.module.rules.unshift({ + test: /\.source\.js$/, + enforce: 'pre', // Bypass Babel/react-refresh + use: [{ loader: 'raw-loader', options: { esModule: false } }], +}); +``` + +`enforce: 'pre'` ensures raw-loader runs before any other loaders (Babel, react-refresh). + +### Custom Bundler URL + +``` +https://786946de.sandpack-bundler-4bw.pages.dev +``` + +A custom Sandpack bundler deployment on Cloudflare Pages. Configured in `SandpackRSCRoot.tsx`. + +### RSDW Client Inline Import + +The `react-server-dom-webpack` client module is loaded directly from `node_modules` via an inline raw-loader import in `sandpack-rsc-setup.ts`: + +```typescript +const rsdwClientCode = require( + '!!raw-loader!react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js' +).default; +``` + +--- + +## Debugging + +### Common Errors + +| Error | Cause | Fix | +|-------|-------|-----| +| `Cannot find module './Component'` | Missing file or wrong path in import | Check file names match exactly (case-sensitive) | +| `X is not a function` | Server component imported without `'use client'` in client file | Add `'use client'` directive to the importing file, or restructure imports | +| Flight stream parse error | Server code threw during render | Check server component for runtime errors (bad data, missing imports) | +| `__webpack_require__ is not defined` | Worker bundle not rebuilt after shim changes | Run `node scripts/buildRscWorker.mjs` | +| Blank preview, no errors | Infrastructure files not injected | Verify `sandpack-rsc-setup.ts` loads all `.source.js` files | +| `FormData is not defined` | Using FormData in server action without proper serialization | The system handles this automatically; check for custom FormData usage | +| Hooks in server component | `useState`/`useEffect` used without `'use client'` | Move interactive code to a client component | + +### Debugging Steps + +1. **Check browser console** — Flight stream errors and Worker errors surface here +2. **Check the Worker** — In DevTools, navigate to Sources > Worker threads to inspect the Worker +3. **Verify directives** — Ensure `'use client'` / `'use server'` are the first statement (no imports before them) +4. **Test in isolation** — Create a minimal `` with just `App.js` to rule out file interaction issues +5. **Rebuild worker bundle** — After any changes to `.source.js` files: `node scripts/buildRscWorker.mjs` + +### Development Commands + +```bash +node scripts/buildRscWorker.mjs # Rebuild worker bundle after source changes +yarn dev # Start dev server to test examples +yarn build # Full production build (includes worker) +``` + +--- + +## Anti-Patterns + +| Pattern | Problem | Fix | +|---------|---------|-----| +| `'use client'` in `App.js` | Makes entire app client-rendered, defeats RSC purpose | Keep `App.js` as server component; extract interactive parts to separate client files | +| Hooks in server component | Runtime error — hooks not available in Worker | Move to `'use client'` component | +| `import` before `'use client'` | Directive not detected (must be first statement) | Move `'use client'` to line 1 | +| `package.json` in `` | External dependencies not supported | Remove; use only React built-ins | +| `window`/`document` in server file | Not available in Web Worker | Move to `'use client'` component | +| Server component importing client component without directive | Client code executes in Worker and fails | Add `'use client'` to the client file | +| Passing non-serializable props to client components | Flight protocol can only serialize JSON-compatible values + React elements + server references | Use serializable data; pass server actions for functions | +| `async` client component | Client components cannot be async | Only server components can be `async` | +| `` instead of `` | Standard Sandpack has no RSC support | Use `` for RSC examples | diff --git a/.eslintignore b/.eslintignore index 3c83df826c4..ae0737173e3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ scripts plugins next.config.js .claude/ +worker-bundle.dist.js \ No newline at end of file diff --git a/package.json b/package.json index 8cb257733fb..359f30d3e21 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "analyze": "ANALYZE=true next build", "dev": "next-remote-watch ./src/content", - "build": "next build && node --experimental-modules ./scripts/downloadFonts.mjs", + "prebuild:rsc": "node scripts/buildRscWorker.mjs", + "build": "node scripts/buildRscWorker.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs", "lint": "next lint && eslint \"src/content/**/*.md\"", "lint:fix": "next lint --fix && eslint \"src/content/**/*.md\" --fix", "format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"", @@ -38,6 +39,7 @@ "next": "15.1.12", "next-remote-watch": "^1.0.0", "parse-numeric-range": "^1.2.0", + "raw-loader": "^4.0.2", "react": "^19.0.0", "react-collapsed": "4.0.4", "react-dom": "^19.0.0", @@ -65,6 +67,7 @@ "babel-eslint": "10.x", "babel-plugin-react-compiler": "^1.0.0", "chalk": "4.1.2", + "esbuild": "^0.24.0", "eslint": "7.x", "eslint-config-next": "12.0.3", "eslint-config-react-app": "^5.2.1", @@ -88,6 +91,7 @@ "postcss-flexbugs-fixes": "4.2.1", "postcss-preset-env": "^6.7.0", "prettier": "^2.5.1", + "react-server-dom-webpack": "^19.2.4", "reading-time": "^1.2.0", "remark": "^12.0.1", "remark-external-links": "^7.0.0", diff --git a/scripts/buildRscWorker.mjs b/scripts/buildRscWorker.mjs new file mode 100644 index 00000000000..b02cb8f432b --- /dev/null +++ b/scripts/buildRscWorker.mjs @@ -0,0 +1,44 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import * as esbuild from 'esbuild'; +import fs from 'fs'; +import path from 'path'; +import {fileURLToPath} from 'url'; + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); +const root = path.resolve(__dirname, '..'); +const sandboxBase = path.resolve( + root, + 'src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src' +); + +// 1. Bundle the server Worker runtime (React server build + RSDW/server.browser + Sucrase → IIFE) +// Minified because this runs inside a Web Worker (not parsed by Sandpack's Babel). +const workerOutfile = path.resolve(sandboxBase, 'worker-bundle.dist.js'); +await esbuild.build({ + entryPoints: [path.resolve(sandboxBase, 'rsc-server.js')], + bundle: true, + format: 'iife', + platform: 'browser', + conditions: ['react-server', 'browser'], + outfile: workerOutfile, + define: {'process.env.NODE_ENV': '"production"'}, + minify: true, +}); + +// Post-process worker bundle: +// Prepend the webpack shim so __webpack_require__ (used by react-server-dom-webpack) +// is defined before the IIFE evaluates. The shim sets globalThis.__webpack_require__, +// which is accessible as a bare identifier since globalThis IS the Worker's global scope. +let workerCode = fs.readFileSync(workerOutfile, 'utf8'); + +const shimPath = path.resolve(sandboxBase, 'webpack-shim.js'); +const shimCode = fs.readFileSync(shimPath, 'utf8'); +workerCode = shimCode + '\n' + workerCode; + +fs.writeFileSync(workerOutfile, workerCode); diff --git a/src/components/MDX/MDXComponents.tsx b/src/components/MDX/MDXComponents.tsx index a32dad27174..334e72f3482 100644 --- a/src/components/MDX/MDXComponents.tsx +++ b/src/components/MDX/MDXComponents.tsx @@ -26,7 +26,7 @@ import BlogCard from './BlogCard'; import Link from './Link'; import {PackageImport} from './PackageImport'; import Recap from './Recap'; -import Sandpack from './Sandpack'; +import {SandpackClient as Sandpack, SandpackRSC} from './Sandpack'; import SandpackWithHTMLOutput from './SandpackWithHTMLOutput'; import Diagram from './Diagram'; import DiagramGroup from './DiagramGroup'; @@ -551,6 +551,7 @@ export const MDXComponents = { Recap, Recipes, Sandpack, + SandpackRSC, SandpackWithHTMLOutput, TeamMember, TerminalBlock, diff --git a/src/components/MDX/Sandpack/Console.tsx b/src/components/MDX/Sandpack/Console.tsx index 3417e11f123..625b1c365b4 100644 --- a/src/components/MDX/Sandpack/Console.tsx +++ b/src/components/MDX/Sandpack/Console.tsx @@ -119,7 +119,7 @@ export const SandpackConsole = ({visible}: {visible: boolean}) => { setLogs((prev) => { const newLogs = message.log .filter((consoleData) => { - if (!consoleData.method) { + if (!consoleData.method || !consoleData.data) { return false; } if ( diff --git a/src/components/MDX/Sandpack/CustomPreset.tsx b/src/components/MDX/Sandpack/CustomPreset.tsx index 4a241c87cbf..3ff1beae620 100644 --- a/src/components/MDX/Sandpack/CustomPreset.tsx +++ b/src/components/MDX/Sandpack/CustomPreset.tsx @@ -26,8 +26,10 @@ import {useSandpackLint} from './useSandpackLint'; export const CustomPreset = memo(function CustomPreset({ providedFiles, + showOpenInCodeSandbox = true, }: { providedFiles: Array; + showOpenInCodeSandbox?: boolean; }) { const {lintErrors, lintExtensions} = useSandpackLint(); const {sandpack} = useSandpack(); @@ -46,6 +48,7 @@ export const CustomPreset = memo(function CustomPreset({ lintErrors={lintErrors} lintExtensions={lintExtensions} isExpandable={isExpandable} + showOpenInCodeSandbox={showOpenInCodeSandbox} /> ); }); @@ -55,11 +58,13 @@ const SandboxShell = memo(function SandboxShell({ lintErrors, lintExtensions, isExpandable, + showOpenInCodeSandbox, }: { providedFiles: Array; lintErrors: Array; lintExtensions: Array; isExpandable: boolean; + showOpenInCodeSandbox: boolean; }) { const containerRef = useRef(null); const [isExpanded, setIsExpanded] = useState(false); @@ -71,7 +76,10 @@ const SandboxShell = memo(function SandboxShell({ style={{ contain: 'content', }}> - + { return filePath.slice(lastIndexOfSlash + 1); }; -export function NavigationBar({providedFiles}: {providedFiles: Array}) { +export function NavigationBar({ + providedFiles, + showOpenInCodeSandbox = true, +}: { + providedFiles: Array; + showOpenInCodeSandbox?: boolean; +}) { const {sandpack} = useSandpack(); const containerRef = useRef(null); const tabsRef = useRef(null); @@ -198,7 +204,7 @@ export function NavigationBar({providedFiles}: {providedFiles: Array}) { - + {showOpenInCodeSandbox && } {activeFile.endsWith('.tsx') && ( + + + + + + ); +} + +export default SandpackRSCRoot; diff --git a/src/components/MDX/Sandpack/index.tsx b/src/components/MDX/Sandpack/index.tsx index 08e7dd6f0b4..a8b802cec75 100644 --- a/src/components/MDX/Sandpack/index.tsx +++ b/src/components/MDX/Sandpack/index.tsx @@ -52,7 +52,7 @@ const SandpackGlimmer = ({code}: {code: string}) => ( ); -export default memo(function SandpackWrapper(props: any): any { +export const SandpackClient = memo(function SandpackWrapper(props: any): any { const codeSnippet = createFileMap(Children.toArray(props.children)); // To set the active file in the fallback we have to find the active file first. @@ -75,3 +75,31 @@ export default memo(function SandpackWrapper(props: any): any { ); }); + +const SandpackRSCRoot = lazy(() => import('./SandpackRSCRoot')); + +export const SandpackRSC = memo(function SandpackRSCWrapper(props: { + children: React.ReactNode; +}): any { + const codeSnippet = createFileMap(Children.toArray(props.children)); + + // To set the active file in the fallback we have to find the active file first. + // If there are no active files we fallback to App.js as default. + let activeCodeSnippet = Object.keys(codeSnippet).filter( + (fileName) => + codeSnippet[fileName]?.active === true && + codeSnippet[fileName]?.hidden === false + ); + let activeCode; + if (!activeCodeSnippet.length) { + activeCode = codeSnippet[AppJSPath]?.code ?? ''; + } else { + activeCode = codeSnippet[activeCodeSnippet[0]].code; + } + + return ( + }> + {props.children} + + ); +}); diff --git a/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx b/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx new file mode 100644 index 00000000000..cca545a40d0 --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx @@ -0,0 +1,40 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {useEffect, useRef} from 'react'; +import {useSandpack} from '@codesandbox/sandpack-react/unstyled'; + +/** + * Bridges file contents from the Sandpack editor to the RSC client entry + * running inside the iframe. When the Sandpack bundler finishes compiling, + * reads all raw file contents and posts them to the iframe via postMessage. + */ +export function RscFileBridge() { + const {sandpack, dispatch, listen} = useSandpack(); + const filesRef = useRef(sandpack.files); + + // TODO: fix this with useEffectEvent + // eslint-disable-next-line react-compiler/react-compiler + filesRef.current = sandpack.files; + + useEffect(() => { + const unsubscribe = listen((msg: any) => { + if (msg.type !== 'done') return; + + const files: Record = {}; + for (const [path, file] of Object.entries(filesRef.current)) { + files[path] = file.code; + } + + dispatch({type: 'rsc-file-update', files} as any); + }); + + return unsubscribe; + }, [dispatch, listen]); + + return null; +} diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js new file mode 100644 index 00000000000..d2bb9e2e569 --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js @@ -0,0 +1,302 @@ +// RSC Client Entry Point +// Runs inside the Sandpack iframe. Orchestrates the RSC pipeline: +// 1. Creates a Web Worker from pre-bundled server runtime +// 2. Receives file updates from parent (RscFileBridge) via postMessage +// 3. Classifies files by directive, sends raw source to Worker +// 4. Worker compiles with Sucrase + executes, sends back Flight chunks +// 5. Renders the Flight stream result with React + +// Minimal webpack shim for RSDW compatibility. +// Works in both browser (window) and worker (self) contexts via globalThis. + +import * as React from 'react'; +import * as ReactJSXRuntime from 'react/jsx-runtime'; +import * as ReactJSXDevRuntime from 'react/jsx-dev-runtime'; +import {useState, startTransition, use} from 'react'; +import {jsx} from 'react/jsx-runtime'; +import {createRoot} from 'react-dom/client'; + +import rscServerForWorker from './rsc-server.js'; + +import './__webpack_shim__'; +import { + createFromReadableStream, + encodeReply, +} from 'react-server-dom-webpack/client.browser'; + +export function initClient() { + // Create Worker from pre-bundled server runtime + var blob = new Blob([rscServerForWorker], {type: 'application/javascript'}); + var workerUrl = URL.createObjectURL(blob); + var worker = new Worker(workerUrl); + + // Render tracking + var renderRequestId = 0; + var chunkControllers = {}; + var setCurrentPromise; + var firstRender = true; + var workerReady = false; + var pendingFiles = null; + + function Root({initialPromise}) { + var _state = useState(initialPromise); + setCurrentPromise = _state[1]; + return use(_state[0]); + } + + // Set up React root + var initialResolve; + var initialPromise = new Promise(function (resolve) { + initialResolve = resolve; + }); + + var rootEl = document.getElementById('root'); + if (!rootEl) throw new Error('#root element not found'); + var root = createRoot(rootEl); + startTransition(function () { + root.render(jsx(Root, {initialPromise: initialPromise})); + }); + + // Worker message handler + worker.onmessage = function (e) { + var msg = e.data; + if (msg.type === 'ready') { + workerReady = true; + if (pendingFiles) { + processFiles(pendingFiles); + pendingFiles = null; + } + } else if (msg.type === 'deploy-result') { + // Register compiled client modules in the webpack cache before rendering + if (msg.result && msg.result.compiledClients) { + registerClientModules(msg.result.compiledClients); + } + triggerRender(); + } else if (msg.type === 'rsc-chunk') { + handleChunk(msg); + } else if (msg.type === 'rsc-error') { + console.error('RSC Worker error:', msg.error); + } + }; + + function callServer(id, args) { + return encodeReply(args).then(function (body) { + renderRequestId++; + var reqId = renderRequestId; + + var stream = new ReadableStream({ + start: function (controller) { + chunkControllers[reqId] = controller; + }, + }); + + // FormData is not structured-cloneable for postMessage. + // Serialize to an array of entries; the worker reconstructs it. + var encodedArgs; + if (typeof body === 'string') { + encodedArgs = body; + } else { + var entries = []; + body.forEach(function (value, key) { + entries.push([key, value]); + }); + encodedArgs = {__formData: entries}; + } + + worker.postMessage({ + type: 'callAction', + requestId: reqId, + actionId: id, + encodedArgs: encodedArgs, + }); + + var response = createFromReadableStream(stream, { + callServer: callServer, + }); + + // Update UI with re-rendered root + startTransition(function () { + updateUI( + Promise.resolve(response).then(function (v) { + return v.root; + }) + ); + }); + + // Return action's return value (for useActionState support) + return Promise.resolve(response).then(function (v) { + return v.returnValue; + }); + }); + } + + function triggerRender() { + renderRequestId++; + var reqId = renderRequestId; + + var stream = new ReadableStream({ + start: function (controller) { + chunkControllers[reqId] = controller; + }, + }); + + worker.postMessage({type: 'render', requestId: reqId}); + + var promise = createFromReadableStream(stream, { + callServer: callServer, + }); + + updateUI(promise); + } + + function handleChunk(msg) { + var ctrl = chunkControllers[msg.requestId]; + if (!ctrl) return; + if (msg.done) { + ctrl.close(); + delete chunkControllers[msg.requestId]; + } else { + ctrl.enqueue(msg.chunk); + } + } + + function updateUI(promise) { + if (firstRender) { + firstRender = false; + if (initialResolve) initialResolve(promise); + } else { + startTransition(function () { + if (setCurrentPromise) setCurrentPromise(promise); + }); + } + } + + // File update handler — receives raw file contents from RscFileBridge + window.addEventListener('message', function (e) { + var msg = e.data; + if (msg.type !== 'rsc-file-update') return; + if (!workerReady) { + pendingFiles = msg.files; + return; + } + processFiles(msg.files); + }); + + function processFiles(files) { + console.clear(); + var serverFiles = {}; + var clientManifest = {}; + var clientFiles = {}; + + Object.keys(files).forEach(function (filePath) { + var code = files[filePath]; + + // Skip non-JS files and infrastructure files + if (!filePath.match(/\.(js|jsx|ts|tsx)$/)) return; + if (filePath.indexOf('node_modules') !== -1) return; + if (filePath === '/src/index.js') return; + if (filePath === '/src/rsc-client.js') return; + if (filePath === '/src/rsc-server.js') return; + + // Check for 'use client' directive + if (hasDirective(code, 'use client')) { + clientManifest[filePath] = true; + clientFiles[filePath] = code; + } else { + // Server file — send raw source to Worker for compilation + serverFiles[filePath] = code; + } + }); + + // Send raw server + client files to Worker (Worker compiles with Sucrase) + worker.postMessage({ + type: 'deploy', + requestId: ++renderRequestId, + serverFiles: serverFiles, + clientManifest: clientManifest, + clientFiles: clientFiles, + }); + } + + // Resolve relative paths (e.g., './Button' from '/src/Counter.js' → '/src/Button') + function resolvePath(from, to) { + if (!to.startsWith('.')) return to; + var parts = from.split('/'); + parts.pop(); + var toParts = to.split('/'); + for (var i = 0; i < toParts.length; i++) { + if (toParts[i] === '.') continue; + if (toParts[i] === '..') { + parts.pop(); + continue; + } + parts.push(toParts[i]); + } + return parts.join('/'); + } + + // Evaluate compiled client modules and register them in the webpack cache + // so RSDW client can resolve them via __webpack_require__. + function registerClientModules(compiledClients) { + var moduleIds = Object.keys(compiledClients); + moduleIds.forEach(function (moduleId) { + var code = compiledClients[moduleId]; + var mod = {exports: {}}; + var clientRequire = function (id) { + if (id === 'react') return React; + if (id === 'react/jsx-runtime') return ReactJSXRuntime; + if (id === 'react/jsx-dev-runtime') return ReactJSXDevRuntime; + if (id.endsWith('.css')) return {}; + var resolvedId = id.startsWith('.') ? resolvePath(moduleId, id) : id; + // Try exact match, then with extensions + var candidates = [resolvedId]; + var exts = ['.js', '.jsx', '.ts', '.tsx']; + for (var i = 0; i < exts.length; i++) { + candidates.push(resolvedId + exts[i]); + } + for (var j = 0; j < candidates.length; j++) { + var cached = globalThis.__webpack_module_cache__[candidates[j]]; + if (cached) + return cached.exports !== undefined ? cached.exports : cached; + } + throw new Error('Client require: module "' + id + '" not found'); + }; + try { + new Function( + 'module', + 'exports', + 'require', + 'React', + code + )(mod, mod.exports, clientRequire, React); + } catch (err) { + console.error('Error executing client module ' + moduleId + ':', err); + return; + } + globalThis.__webpack_module_cache__[moduleId] = {exports: mod.exports}; + }); + } + + function hasDirective(code, directive) { + var lines = code.split('\n'); + for (var i = 0; i < Math.min(lines.length, 10); i++) { + var line = lines[i].trim(); + if (line === '') continue; + if (line.startsWith('//')) continue; + if (line.startsWith('/*')) { + while (i < lines.length && !lines[i].includes('*/')) i++; + continue; + } + if ( + line === "'" + directive + "';" || + line === '"' + directive + '";' || + line === "'" + directive + "'" || + line === '"' + directive + '"' + ) { + return true; + } + return false; + } + return false; + } +} diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js new file mode 100644 index 00000000000..352bb30209d --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js @@ -0,0 +1,340 @@ +// Server Worker for RSC Sandboxes +// Runs inside a Blob URL Web Worker. +// Pre-bundled by esbuild with React (server build), react-server-dom-webpack/server.browser, and Sucrase. + +// IMPORTANT +// If this file changes, run: +// yarn prebuild:rsc + +var React = require('react'); +var ReactJSXRuntime = require('react/jsx-runtime'); +var RSDWServer = require('react-server-dom-webpack/server.browser'); +var Sucrase = require('sucrase'); + +var deployed = null; + +// Module map proxy: generates module references on-demand for client components. +// When server code imports a 'use client' file, it gets a proxy reference +// that serializes into the Flight stream. +function createModuleMap() { + return new Proxy( + {}, + { + get: function (target, key) { + if (key in target) return target[key]; + var parts = String(key).split('#'); + var moduleId = parts[0]; + var exportName = parts[1] || 'default'; + var entry = { + id: moduleId, + chunks: [moduleId], + name: exportName, + async: true, + }; + target[key] = entry; + return entry; + }, + } + ); +} + +// Server actions registry +var serverActionsRegistry = {}; + +function registerServerReference(impl, moduleId, name) { + var ref = RSDWServer.registerServerReference(impl, moduleId, name); + var id = moduleId + '#' + name; + serverActionsRegistry[id] = impl; + return ref; +} + +function hasDirective(code, directive) { + var lines = code.split('\n'); + for (var i = 0; i < Math.min(lines.length, 10); i++) { + var line = lines[i].trim(); + if (line === '') continue; + if (line.startsWith('//')) continue; + if (line.startsWith('/*')) { + while (i < lines.length && !lines[i].includes('*/')) i++; + continue; + } + if ( + line === "'" + directive + "';" || + line === '"' + directive + '";' || + line === "'" + directive + "'" || + line === '"' + directive + '"' + ) { + return true; + } + return false; + } + return false; +} + +// Resolve relative paths (e.g., './Counter.js' from '/src/App.js' → '/src/Counter.js') +function resolvePath(from, to) { + if (!to.startsWith('.')) return to; + var parts = from.split('/'); + parts.pop(); // remove filename + var toParts = to.split('/'); + for (var i = 0; i < toParts.length; i++) { + if (toParts[i] === '.') continue; + if (toParts[i] === '..') { + parts.pop(); + continue; + } + parts.push(toParts[i]); + } + return parts.join('/'); +} + +// Deploy new server code into the Worker +// Receives raw source files — compiles them with Sucrase before execution. +function deploy(rawFiles, clientManifest, clientFiles) { + // Build a require function for the server module scope + var modules = { + react: React, + 'react/jsx-runtime': ReactJSXRuntime, + }; + + // Create client module proxies for 'use client' files + Object.keys(clientManifest).forEach(function (moduleId) { + modules[moduleId] = RSDWServer.createClientModuleProxy(moduleId); + }); + + // Compile all server files first, then execute on-demand via require. + // This avoids ordering issues where a file imports another that hasn't been executed yet. + var compiled = {}; + var hasCompileError = false; + Object.keys(rawFiles).forEach(function (filePath) { + try { + compiled[filePath] = Sucrase.transform(rawFiles[filePath], { + transforms: ['jsx', 'imports'], + jsxRuntime: 'automatic', + production: true, + }).code; + } catch (err) { + hasCompileError = true; + } + }); + + if (hasCompileError) return null; + + // Resolve a module id relative to a requesting file + function resolveModuleId(from, id) { + if (modules[id]) return id; + if (id.startsWith('.')) { + var resolved = resolvePath(from, id); + if (modules[resolved] || compiled[resolved]) return resolved; + var exts = ['.js', '.jsx', '.ts', '.tsx']; + for (var ei = 0; ei < exts.length; ei++) { + var withExt = resolved + exts[ei]; + if (modules[withExt] || compiled[withExt]) return withExt; + } + } + return id; + } + + // Execute a module lazily and cache its exports + var executing = {}; + function executeModule(filePath) { + if (modules[filePath]) return modules[filePath]; + if (!compiled[filePath]) { + throw new Error('Module "' + filePath + '" not found'); + } + if (executing[filePath]) { + // Circular dependency — return partially populated exports + return executing[filePath].exports; + } + var mod = {exports: {}}; + executing[filePath] = mod; + + var localRequire = function (id) { + if (id.endsWith('.css')) return {}; + var resolved = resolveModuleId(filePath, id); + if (modules[resolved]) return modules[resolved]; + return executeModule(resolved); + }; + + new Function('module', 'exports', 'require', 'React', compiled[filePath])( + mod, + mod.exports, + localRequire, + React + ); + + modules[filePath] = mod.exports; + + // Register server functions from 'use server' modules + if (hasDirective(rawFiles[filePath], 'use server')) { + var exportNames = Object.keys(mod.exports); + for (var i = 0; i < exportNames.length; i++) { + var name = exportNames[i]; + if (typeof mod.exports[name] === 'function') { + registerServerReference(mod.exports[name], filePath, name); + } + } + } + + delete executing[filePath]; + return mod.exports; + } + + // Execute all files (order no longer matters — require triggers lazy execution) + var mainModule = {exports: {}}; + Object.keys(compiled).forEach(function (filePath) { + executeModule(filePath); + if ( + filePath === '/src/App.js' || + filePath === './App.js' || + filePath === './src/App.js' + ) { + mainModule.exports = modules[filePath]; + } + }); + + deployed = { + module: mainModule.exports, + manifest: clientManifest, + }; + + // Compile client files with Sucrase so the client can evaluate and register them. + var compiledClients = {}; + if (clientFiles) { + Object.keys(clientFiles).forEach(function (filePath) { + try { + compiledClients[filePath] = Sucrase.transform(clientFiles[filePath], { + transforms: ['jsx', 'imports'], + jsxRuntime: 'automatic', + production: true, + }).code; + } catch (err) { + self.postMessage({ + type: 'rsc-error', + requestId: -1, + error: 'Sucrase compile error in ' + filePath + ': ' + String(err), + }); + } + }); + } + + return {type: 'deployed', compiledClients: compiledClients}; +} + +// Render the deployed app to a Flight stream +function render() { + if (!deployed) throw new Error('No code deployed'); + var App = deployed.module.default || deployed.module; + var element = React.createElement(App); + return RSDWServer.renderToReadableStream(element, createModuleMap(), { + onError: console.error, + }); +} + +// Execute a server action and re-render +function callAction(actionId, encodedArgs) { + if (!deployed) throw new Error('No code deployed'); + var action = serverActionsRegistry[actionId]; + if (!action) throw new Error('Action "' + actionId + '" not found'); + // Reconstruct FormData from serialized entries (postMessage can't clone FormData) + var decoded = encodedArgs; + if ( + typeof encodedArgs !== 'string' && + encodedArgs && + encodedArgs.__formData + ) { + decoded = new FormData(); + for (var i = 0; i < encodedArgs.__formData.length; i++) { + decoded.append( + encodedArgs.__formData[i][0], + encodedArgs.__formData[i][1] + ); + } + } + return Promise.resolve(RSDWServer.decodeReply(decoded)).then(function (args) { + var resultPromise = Promise.resolve(action.apply(null, args)); + return resultPromise.then(function () { + var App = deployed.module.default || deployed.module; + return RSDWServer.renderToReadableStream( + {root: React.createElement(App), returnValue: resultPromise}, + createModuleMap() + ); + }); + }); +} + +// Stream chunks back to the main thread via postMessage +function sendStream(requestId, stream) { + var reader = stream.getReader(); + function pump() { + return reader.read().then(function (result) { + if (result.done) { + self.postMessage({type: 'rsc-chunk', requestId: requestId, done: true}); + return; + } + self.postMessage( + { + type: 'rsc-chunk', + requestId: requestId, + done: false, + chunk: result.value, + }, + [result.value.buffer] + ); + return pump(); + }); + } + pump().catch(function (err) { + self.postMessage({ + type: 'rsc-error', + requestId: requestId, + error: String(err), + }); + }); +} + +// RPC message handler +self.onmessage = function (e) { + var msg = e.data; + if (msg.type === 'deploy') { + try { + var result = deploy(msg.serverFiles, msg.clientManifest, msg.clientFiles); + if (result) { + self.postMessage({ + type: 'deploy-result', + requestId: msg.requestId, + result: result, + }); + } + } catch (err) { + // Silently ignore — likely mid-edit syntax errors + } + } else if (msg.type === 'render') { + try { + var streamPromise = render(); + Promise.resolve(streamPromise).then(function (stream) { + sendStream(msg.requestId, stream); + }); + } catch (err) { + self.postMessage({ + type: 'rsc-error', + requestId: msg.requestId, + error: String(err), + }); + } + } else if (msg.type === 'callAction') { + try { + callAction(msg.actionId, msg.encodedArgs).then(function (stream) { + sendStream(msg.requestId, stream); + }); + } catch (err) { + self.postMessage({ + type: 'rsc-error', + requestId: msg.requestId, + error: String(err), + }); + } + } +}; + +self.postMessage({type: 'ready'}); diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/webpack-shim.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/webpack-shim.js new file mode 100644 index 00000000000..5573bf15377 --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/webpack-shim.js @@ -0,0 +1,24 @@ +// Minimal webpack shim for RSDW compatibility. +// Works in both browser (window) and worker (self) contexts via globalThis. + +var moduleCache = {}; + +globalThis.__webpack_module_cache__ = moduleCache; + +globalThis.__webpack_require__ = function (moduleId) { + var cached = moduleCache[moduleId]; + if (cached) return cached.exports !== undefined ? cached.exports : cached; + throw new Error('Module "' + moduleId + '" not found in webpack shim cache'); +}; + +globalThis.__webpack_chunk_load__ = function () { + return Promise.resolve(); +}; + +globalThis.__webpack_require__.u = function (chunkId) { + return chunkId; +}; + +globalThis.__webpack_get_script_filename__ = function (chunkId) { + return chunkId; +}; diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js new file mode 100644 index 00000000000..e03d651b1c2 --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js @@ -0,0 +1,25093 @@ +// Minimal webpack shim for RSDW compatibility. +// Works in both browser (window) and worker (self) contexts via globalThis. + +var moduleCache = {}; + +globalThis.__webpack_module_cache__ = moduleCache; + +globalThis.__webpack_require__ = function (moduleId) { + var cached = moduleCache[moduleId]; + if (cached) return cached.exports !== undefined ? cached.exports : cached; + throw new Error('Module "' + moduleId + '" not found in webpack shim cache'); +}; + +globalThis.__webpack_chunk_load__ = function () { + return Promise.resolve(); +}; + +globalThis.__webpack_require__.u = function (chunkId) { + return chunkId; +}; + +globalThis.__webpack_get_script_filename__ = function (chunkId) { + return chunkId; +}; + +('use strict'); +(() => { + var H = (e, t) => () => (t || e((t = {exports: {}}).exports, t), t.exports); + var G1 = H((Ke) => { + 'use strict'; + var ro = {H: null, A: null}; + function ci(e) { + var t = 'https://react.dev/errors/' + e; + if (1 < arguments.length) { + t += '?args[]=' + encodeURIComponent(arguments[1]); + for (var n = 2; n < arguments.length; n++) + t += '&args[]=' + encodeURIComponent(arguments[n]); + } + return ( + 'Minified React error #' + + e + + '; visit ' + + t + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' + ); + } + var U1 = Array.isArray, + ui = Symbol.for('react.transitional.element'), + Od = Symbol.for('react.portal'), + Md = Symbol.for('react.fragment'), + Ld = Symbol.for('react.strict_mode'), + Fd = Symbol.for('react.profiler'), + $d = Symbol.for('react.forward_ref'), + Bd = Symbol.for('react.suspense'), + jd = Symbol.for('react.memo'), + X1 = Symbol.for('react.lazy'), + W1 = Symbol.iterator; + function Kd(e) { + return e === null || typeof e != 'object' + ? null + : ((e = (W1 && e[W1]) || e['@@iterator']), + typeof e == 'function' ? e : null); + } + var Y1 = Object.prototype.hasOwnProperty, + qd = Object.assign; + function pi(e, t, n, o, r, s) { + return ( + (n = s.ref), + {$$typeof: ui, type: e, key: t, ref: n !== void 0 ? n : null, props: s} + ); + } + function Hd(e, t) { + return pi(e.type, t, void 0, void 0, void 0, e.props); + } + function di(e) { + return typeof e == 'object' && e !== null && e.$$typeof === ui; + } + function Ud(e) { + var t = {'=': '=0', ':': '=2'}; + return ( + '$' + + e.replace(/[=:]/g, function (n) { + return t[n]; + }) + ); + } + var V1 = /\/+/g; + function ai(e, t) { + return typeof e == 'object' && e !== null && e.key != null + ? Ud('' + e.key) + : t.toString(36); + } + function z1() {} + function Wd(e) { + switch (e.status) { + case 'fulfilled': + return e.value; + case 'rejected': + throw e.reason; + default: + switch ( + (typeof e.status == 'string' + ? e.then(z1, z1) + : ((e.status = 'pending'), + e.then( + function (t) { + e.status === 'pending' && + ((e.status = 'fulfilled'), (e.value = t)); + }, + function (t) { + e.status === 'pending' && + ((e.status = 'rejected'), (e.reason = t)); + } + )), + e.status) + ) { + case 'fulfilled': + return e.value; + case 'rejected': + throw e.reason; + } + } + throw e; + } + function oo(e, t, n, o, r) { + var s = typeof e; + (s === 'undefined' || s === 'boolean') && (e = null); + var i = !1; + if (e === null) i = !0; + else + switch (s) { + case 'bigint': + case 'string': + case 'number': + i = !0; + break; + case 'object': + switch (e.$$typeof) { + case ui: + case Od: + i = !0; + break; + case X1: + return (i = e._init), oo(i(e._payload), t, n, o, r); + } + } + if (i) + return ( + (r = r(e)), + (i = o === '' ? '.' + ai(e, 0) : o), + U1(r) + ? ((n = ''), + i != null && (n = i.replace(V1, '$&/') + '/'), + oo(r, t, n, '', function (h) { + return h; + })) + : r != null && + (di(r) && + (r = Hd( + r, + n + + (r.key == null || (e && e.key === r.key) + ? '' + : ('' + r.key).replace(V1, '$&/') + '/') + + i + )), + t.push(r)), + 1 + ); + i = 0; + var a = o === '' ? '.' : o + ':'; + if (U1(e)) + for (var u = 0; u < e.length; u++) + (o = e[u]), (s = a + ai(o, u)), (i += oo(o, t, n, s, r)); + else if (((u = Kd(e)), typeof u == 'function')) + for (e = u.call(e), u = 0; !(o = e.next()).done; ) + (o = o.value), (s = a + ai(o, u++)), (i += oo(o, t, n, s, r)); + else if (s === 'object') { + if (typeof e.then == 'function') return oo(Wd(e), t, n, o, r); + throw ( + ((t = String(e)), + Error( + ci( + 31, + t === '[object Object]' + ? 'object with keys {' + Object.keys(e).join(', ') + '}' + : t + ) + )) + ); + } + return i; + } + function ur(e, t, n) { + if (e == null) return e; + var o = [], + r = 0; + return ( + oo(e, o, '', '', function (s) { + return t.call(n, s, r++); + }), + o + ); + } + function Vd(e) { + if (e._status === -1) { + var t = e._result; + (t = t()), + t.then( + function (n) { + (e._status === 0 || e._status === -1) && + ((e._status = 1), (e._result = n)); + }, + function (n) { + (e._status === 0 || e._status === -1) && + ((e._status = 2), (e._result = n)); + } + ), + e._status === -1 && ((e._status = 0), (e._result = t)); + } + if (e._status === 1) return e._result.default; + throw e._result; + } + function zd() { + return new WeakMap(); + } + function li() { + return {s: 0, v: void 0, o: null, p: null}; + } + Ke.Children = { + map: ur, + forEach: function (e, t, n) { + ur( + e, + function () { + t.apply(this, arguments); + }, + n + ); + }, + count: function (e) { + var t = 0; + return ( + ur(e, function () { + t++; + }), + t + ); + }, + toArray: function (e) { + return ( + ur(e, function (t) { + return t; + }) || [] + ); + }, + only: function (e) { + if (!di(e)) throw Error(ci(143)); + return e; + }, + }; + Ke.Fragment = Md; + Ke.Profiler = Fd; + Ke.StrictMode = Ld; + Ke.Suspense = Bd; + Ke.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ro; + Ke.cache = function (e) { + return function () { + var t = ro.A; + if (!t) return e.apply(null, arguments); + var n = t.getCacheForType(zd); + (t = n.get(e)), t === void 0 && ((t = li()), n.set(e, t)), (n = 0); + for (var o = arguments.length; n < o; n++) { + var r = arguments[n]; + if (typeof r == 'function' || (typeof r == 'object' && r !== null)) { + var s = t.o; + s === null && (t.o = s = new WeakMap()), + (t = s.get(r)), + t === void 0 && ((t = li()), s.set(r, t)); + } else + (s = t.p), + s === null && (t.p = s = new Map()), + (t = s.get(r)), + t === void 0 && ((t = li()), s.set(r, t)); + } + if (t.s === 1) return t.v; + if (t.s === 2) throw t.v; + try { + var i = e.apply(null, arguments); + return (n = t), (n.s = 1), (n.v = i); + } catch (a) { + throw ((i = t), (i.s = 2), (i.v = a), a); + } + }; + }; + Ke.cloneElement = function (e, t, n) { + if (e == null) throw Error(ci(267, e)); + var o = qd({}, e.props), + r = e.key, + s = void 0; + if (t != null) + for (i in (t.ref !== void 0 && (s = void 0), + t.key !== void 0 && (r = '' + t.key), + t)) + !Y1.call(t, i) || + i === 'key' || + i === '__self' || + i === '__source' || + (i === 'ref' && t.ref === void 0) || + (o[i] = t[i]); + var i = arguments.length - 2; + if (i === 1) o.children = n; + else if (1 < i) { + for (var a = Array(i), u = 0; u < i; u++) a[u] = arguments[u + 2]; + o.children = a; + } + return pi(e.type, r, void 0, void 0, s, o); + }; + Ke.createElement = function (e, t, n) { + var o, + r = {}, + s = null; + if (t != null) + for (o in (t.key !== void 0 && (s = '' + t.key), t)) + Y1.call(t, o) && + o !== 'key' && + o !== '__self' && + o !== '__source' && + (r[o] = t[o]); + var i = arguments.length - 2; + if (i === 1) r.children = n; + else if (1 < i) { + for (var a = Array(i), u = 0; u < i; u++) a[u] = arguments[u + 2]; + r.children = a; + } + if (e && e.defaultProps) + for (o in ((i = e.defaultProps), i)) r[o] === void 0 && (r[o] = i[o]); + return pi(e, s, void 0, void 0, null, r); + }; + Ke.createRef = function () { + return {current: null}; + }; + Ke.forwardRef = function (e) { + return {$$typeof: $d, render: e}; + }; + Ke.isValidElement = di; + Ke.lazy = function (e) { + return {$$typeof: X1, _payload: {_status: -1, _result: e}, _init: Vd}; + }; + Ke.memo = function (e, t) { + return {$$typeof: jd, type: e, compare: t === void 0 ? null : t}; + }; + Ke.use = function (e) { + return ro.H.use(e); + }; + Ke.useCallback = function (e, t) { + return ro.H.useCallback(e, t); + }; + Ke.useDebugValue = function () {}; + Ke.useId = function () { + return ro.H.useId(); + }; + Ke.useMemo = function (e, t) { + return ro.H.useMemo(e, t); + }; + Ke.version = '19.0.0'; + }); + var Eo = H((sx, J1) => { + 'use strict'; + J1.exports = G1(); + }); + var Z1 = H((Ao) => { + 'use strict'; + var Xd = Eo(), + Yd = Symbol.for('react.transitional.element'), + Gd = Symbol.for('react.fragment'); + if (!Xd.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) + throw Error( + 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' + ); + function Q1(e, t, n) { + var o = null; + if ( + (n !== void 0 && (o = '' + n), + t.key !== void 0 && (o = '' + t.key), + 'key' in t) + ) { + n = {}; + for (var r in t) r !== 'key' && (n[r] = t[r]); + } else n = t; + return ( + (t = n.ref), + {$$typeof: Yd, type: e, key: o, ref: t !== void 0 ? t : null, props: n} + ); + } + Ao.Fragment = Gd; + Ao.jsx = Q1; + Ao.jsxDEV = void 0; + Ao.jsxs = Q1; + }); + var tl = H((ax, el) => { + 'use strict'; + el.exports = Z1(); + }); + var nl = H((rn) => { + 'use strict'; + var Jd = Eo(); + function vn() {} + var Xt = { + d: { + f: vn, + r: function () { + throw Error( + 'Invalid form element. requestFormReset must be passed a form that was rendered by React.' + ); + }, + D: vn, + C: vn, + L: vn, + m: vn, + X: vn, + S: vn, + M: vn, + }, + p: 0, + findDOMNode: null, + }; + if (!Jd.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) + throw Error( + 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' + ); + function pr(e, t) { + if (e === 'font') return ''; + if (typeof t == 'string') return t === 'use-credentials' ? t : ''; + } + rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Xt; + rn.preconnect = function (e, t) { + typeof e == 'string' && + (t + ? ((t = t.crossOrigin), + (t = + typeof t == 'string' + ? t === 'use-credentials' + ? t + : '' + : void 0)) + : (t = null), + Xt.d.C(e, t)); + }; + rn.prefetchDNS = function (e) { + typeof e == 'string' && Xt.d.D(e); + }; + rn.preinit = function (e, t) { + if (typeof e == 'string' && t && typeof t.as == 'string') { + var n = t.as, + o = pr(n, t.crossOrigin), + r = typeof t.integrity == 'string' ? t.integrity : void 0, + s = typeof t.fetchPriority == 'string' ? t.fetchPriority : void 0; + n === 'style' + ? Xt.d.S(e, typeof t.precedence == 'string' ? t.precedence : void 0, { + crossOrigin: o, + integrity: r, + fetchPriority: s, + }) + : n === 'script' && + Xt.d.X(e, { + crossOrigin: o, + integrity: r, + fetchPriority: s, + nonce: typeof t.nonce == 'string' ? t.nonce : void 0, + }); + } + }; + rn.preinitModule = function (e, t) { + if (typeof e == 'string') + if (typeof t == 'object' && t !== null) { + if (t.as == null || t.as === 'script') { + var n = pr(t.as, t.crossOrigin); + Xt.d.M(e, { + crossOrigin: n, + integrity: typeof t.integrity == 'string' ? t.integrity : void 0, + nonce: typeof t.nonce == 'string' ? t.nonce : void 0, + }); + } + } else t == null && Xt.d.M(e); + }; + rn.preload = function (e, t) { + if ( + typeof e == 'string' && + typeof t == 'object' && + t !== null && + typeof t.as == 'string' + ) { + var n = t.as, + o = pr(n, t.crossOrigin); + Xt.d.L(e, n, { + crossOrigin: o, + integrity: typeof t.integrity == 'string' ? t.integrity : void 0, + nonce: typeof t.nonce == 'string' ? t.nonce : void 0, + type: typeof t.type == 'string' ? t.type : void 0, + fetchPriority: + typeof t.fetchPriority == 'string' ? t.fetchPriority : void 0, + referrerPolicy: + typeof t.referrerPolicy == 'string' ? t.referrerPolicy : void 0, + imageSrcSet: + typeof t.imageSrcSet == 'string' ? t.imageSrcSet : void 0, + imageSizes: typeof t.imageSizes == 'string' ? t.imageSizes : void 0, + media: typeof t.media == 'string' ? t.media : void 0, + }); + } + }; + rn.preloadModule = function (e, t) { + if (typeof e == 'string') + if (t) { + var n = pr(t.as, t.crossOrigin); + Xt.d.m(e, { + as: typeof t.as == 'string' && t.as !== 'script' ? t.as : void 0, + crossOrigin: n, + integrity: typeof t.integrity == 'string' ? t.integrity : void 0, + }); + } else Xt.d.m(e); + }; + rn.version = '19.0.0'; + }); + var rl = H((cx, ol) => { + 'use strict'; + ol.exports = nl(); + }); + var oc = H((Gt) => { + 'use strict'; + var Qd = rl(), + Zd = Eo(), + xl = new MessageChannel(), + gl = []; + xl.port1.onmessage = function () { + var e = gl.shift(); + e && e(); + }; + function Do(e) { + gl.push(e), xl.port2.postMessage(null); + } + function ef(e) { + setTimeout(function () { + throw e; + }); + } + var tf = Promise, + Cl = + typeof queueMicrotask == 'function' + ? queueMicrotask + : function (e) { + tf.resolve(null).then(e).catch(ef); + }, + Et = null, + At = 0; + function dr(e, t) { + if (t.byteLength !== 0) + if (2048 < t.byteLength) + 0 < At && + (e.enqueue(new Uint8Array(Et.buffer, 0, At)), + (Et = new Uint8Array(2048)), + (At = 0)), + e.enqueue(t); + else { + var n = Et.length - At; + n < t.byteLength && + (n === 0 + ? e.enqueue(Et) + : (Et.set(t.subarray(0, n), At), + e.enqueue(Et), + (t = t.subarray(n))), + (Et = new Uint8Array(2048)), + (At = 0)), + Et.set(t, At), + (At += t.byteLength); + } + return !0; + } + var nf = new TextEncoder(); + function Rt(e) { + return nf.encode(e); + } + function xi(e) { + return e.byteLength; + } + function wl(e, t) { + typeof e.error == 'function' ? e.error(t) : e.close(); + } + var gn = Symbol.for('react.client.reference'), + mr = Symbol.for('react.server.reference'); + function so(e, t, n) { + return Object.defineProperties(e, { + $$typeof: {value: gn}, + $$id: {value: t}, + $$async: {value: n}, + }); + } + var of = Function.prototype.bind, + rf = Array.prototype.slice; + function Il() { + var e = of.apply(this, arguments); + if (this.$$typeof === mr) { + var t = rf.call(arguments, 1), + n = {value: mr}, + o = {value: this.$$id}; + return ( + (t = {value: this.$$bound ? this.$$bound.concat(t) : t}), + Object.defineProperties(e, { + $$typeof: n, + $$id: o, + $$bound: t, + bind: {value: Il, configurable: !0}, + }) + ); + } + return e; + } + var sf = { + value: function () { + return 'function () { [omitted code] }'; + }, + configurable: !0, + writable: !0, + }, + af = Promise.prototype, + lf = { + get: function (e, t) { + switch (t) { + case '$$typeof': + return e.$$typeof; + case '$$id': + return e.$$id; + case '$$async': + return e.$$async; + case 'name': + return e.name; + case 'displayName': + return; + case 'defaultProps': + return; + case '_debugInfo': + return; + case 'toJSON': + return; + case Symbol.toPrimitive: + return Object.prototype[Symbol.toPrimitive]; + case Symbol.toStringTag: + return Object.prototype[Symbol.toStringTag]; + case 'Provider': + throw Error( + 'Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.' + ); + case 'then': + throw Error( + 'Cannot await or return from a thenable. You cannot await a client module from a server component.' + ); + } + throw Error( + 'Cannot access ' + + (String(e.name) + '.' + String(t)) + + ' on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.' + ); + }, + set: function () { + throw Error('Cannot assign to a client module from a server module.'); + }, + }; + function sl(e, t) { + switch (t) { + case '$$typeof': + return e.$$typeof; + case '$$id': + return e.$$id; + case '$$async': + return e.$$async; + case 'name': + return e.name; + case 'defaultProps': + return; + case '_debugInfo': + return; + case 'toJSON': + return; + case Symbol.toPrimitive: + return Object.prototype[Symbol.toPrimitive]; + case Symbol.toStringTag: + return Object.prototype[Symbol.toStringTag]; + case '__esModule': + var n = e.$$id; + return ( + (e.default = so( + function () { + throw Error( + 'Attempted to call the default export of ' + + n + + " from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component." + ); + }, + e.$$id + '#', + e.$$async + )), + !0 + ); + case 'then': + if (e.then) return e.then; + if (e.$$async) return; + var o = so({}, e.$$id, !0), + r = new Proxy(o, Sl); + return ( + (e.status = 'fulfilled'), + (e.value = r), + (e.then = so( + function (s) { + return Promise.resolve(s(r)); + }, + e.$$id + '#then', + !1 + )) + ); + } + if (typeof t == 'symbol') + throw Error( + 'Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.' + ); + return ( + (o = e[t]), + o || + ((o = so( + function () { + throw Error( + 'Attempted to call ' + + String(t) + + '() from the server but ' + + String(t) + + " is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component." + ); + }, + e.$$id + '#' + t, + e.$$async + )), + Object.defineProperty(o, 'name', {value: t}), + (o = e[t] = new Proxy(o, lf))), + o + ); + } + var Sl = { + get: function (e, t) { + return sl(e, t); + }, + getOwnPropertyDescriptor: function (e, t) { + var n = Object.getOwnPropertyDescriptor(e, t); + return ( + n || + ((n = { + value: sl(e, t), + writable: !1, + configurable: !1, + enumerable: !1, + }), + Object.defineProperty(e, t, n)), + n + ); + }, + getPrototypeOf: function () { + return af; + }, + set: function () { + throw Error('Cannot assign to a client module from a server module.'); + }, + }, + bl = Qd.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, + an = bl.d; + bl.d = {f: an.f, r: an.r, D: cf, C: uf, L: hr, m: El, X: df, S: pf, M: ff}; + function cf(e) { + if (typeof e == 'string' && e) { + var t = De || null; + if (t) { + var n = t.hints, + o = 'D|' + e; + n.has(o) || (n.add(o), ft(t, 'D', e)); + } else an.D(e); + } + } + function uf(e, t) { + if (typeof e == 'string') { + var n = De || null; + if (n) { + var o = n.hints, + r = 'C|' + (t ?? 'null') + '|' + e; + o.has(r) || + (o.add(r), + typeof t == 'string' ? ft(n, 'C', [e, t]) : ft(n, 'C', e)); + } else an.C(e, t); + } + } + function hr(e, t, n) { + if (typeof e == 'string') { + var o = De || null; + if (o) { + var r = o.hints, + s = 'L'; + if (t === 'image' && n) { + var i = n.imageSrcSet, + a = n.imageSizes, + u = ''; + typeof i == 'string' && i !== '' + ? ((u += '[' + i + ']'), + typeof a == 'string' && (u += '[' + a + ']')) + : (u += '[][]' + e), + (s += '[image]' + u); + } else s += '[' + t + ']' + e; + r.has(s) || + (r.add(s), + (n = Mo(n)) ? ft(o, 'L', [e, t, n]) : ft(o, 'L', [e, t])); + } else an.L(e, t, n); + } + } + function El(e, t) { + if (typeof e == 'string') { + var n = De || null; + if (n) { + var o = n.hints, + r = 'm|' + e; + return o.has(r) + ? void 0 + : (o.add(r), (t = Mo(t)) ? ft(n, 'm', [e, t]) : ft(n, 'm', e)); + } + an.m(e, t); + } + } + function pf(e, t, n) { + if (typeof e == 'string') { + var o = De || null; + if (o) { + var r = o.hints, + s = 'S|' + e; + return r.has(s) + ? void 0 + : (r.add(s), + (n = Mo(n)) + ? ft(o, 'S', [e, typeof t == 'string' ? t : 0, n]) + : typeof t == 'string' + ? ft(o, 'S', [e, t]) + : ft(o, 'S', e)); + } + an.S(e, t, n); + } + } + function df(e, t) { + if (typeof e == 'string') { + var n = De || null; + if (n) { + var o = n.hints, + r = 'X|' + e; + return o.has(r) + ? void 0 + : (o.add(r), (t = Mo(t)) ? ft(n, 'X', [e, t]) : ft(n, 'X', e)); + } + an.X(e, t); + } + } + function ff(e, t) { + if (typeof e == 'string') { + var n = De || null; + if (n) { + var o = n.hints, + r = 'M|' + e; + return o.has(r) + ? void 0 + : (o.add(r), (t = Mo(t)) ? ft(n, 'M', [e, t]) : ft(n, 'M', e)); + } + an.M(e, t); + } + } + function Mo(e) { + if (e == null) return null; + var t = !1, + n = {}, + o; + for (o in e) e[o] != null && ((t = !0), (n[o] = e[o])); + return t ? n : null; + } + function hf(e, t, n) { + switch (t) { + case 'img': + t = n.src; + var o = n.srcSet; + if ( + !( + n.loading === 'lazy' || + (!t && !o) || + (typeof t != 'string' && t != null) || + (typeof o != 'string' && o != null) || + n.fetchPriority === 'low' || + e & 3 + ) && + (typeof t != 'string' || + t[4] !== ':' || + (t[0] !== 'd' && t[0] !== 'D') || + (t[1] !== 'a' && t[1] !== 'A') || + (t[2] !== 't' && t[2] !== 'T') || + (t[3] !== 'a' && t[3] !== 'A')) && + (typeof o != 'string' || + o[4] !== ':' || + (o[0] !== 'd' && o[0] !== 'D') || + (o[1] !== 'a' && o[1] !== 'A') || + (o[2] !== 't' && o[2] !== 'T') || + (o[3] !== 'a' && o[3] !== 'A')) + ) { + var r = typeof n.sizes == 'string' ? n.sizes : void 0, + s = n.crossOrigin; + hr(t || '', 'image', { + imageSrcSet: o, + imageSizes: r, + crossOrigin: + typeof s == 'string' + ? s === 'use-credentials' + ? s + : '' + : void 0, + integrity: n.integrity, + type: n.type, + fetchPriority: n.fetchPriority, + referrerPolicy: n.referrerPolicy, + }); + } + return e; + case 'link': + if ( + ((t = n.rel), + (o = n.href), + !( + e & 1 || + n.itemProp != null || + typeof t != 'string' || + typeof o != 'string' || + o === '' + )) + ) + switch (t) { + case 'preload': + hr(o, n.as, { + crossOrigin: n.crossOrigin, + integrity: n.integrity, + nonce: n.nonce, + type: n.type, + fetchPriority: n.fetchPriority, + referrerPolicy: n.referrerPolicy, + imageSrcSet: n.imageSrcSet, + imageSizes: n.imageSizes, + media: n.media, + }); + break; + case 'modulepreload': + El(o, { + as: n.as, + crossOrigin: n.crossOrigin, + integrity: n.integrity, + nonce: n.nonce, + }); + break; + case 'stylesheet': + hr(o, 'stylesheet', { + crossOrigin: n.crossOrigin, + integrity: n.integrity, + nonce: n.nonce, + type: n.type, + fetchPriority: n.fetchPriority, + referrerPolicy: n.referrerPolicy, + media: n.media, + }); + } + return e; + case 'picture': + return e | 2; + case 'noscript': + return e | 1; + default: + return e; + } + } + var gi = Symbol.for('react.temporary.reference'), + Tf = { + get: function (e, t) { + switch (t) { + case '$$typeof': + return e.$$typeof; + case 'name': + return; + case 'displayName': + return; + case 'defaultProps': + return; + case '_debugInfo': + return; + case 'toJSON': + return; + case Symbol.toPrimitive: + return Object.prototype[Symbol.toPrimitive]; + case Symbol.toStringTag: + return Object.prototype[Symbol.toStringTag]; + case 'Provider': + throw Error( + 'Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.' + ); + case 'then': + return; + } + throw Error( + 'Cannot access ' + + String(t) + + ' on the server. You cannot dot into a temporary client reference from a server component. You can only pass the value through to the client.' + ); + }, + set: function () { + throw Error( + 'Cannot assign to a temporary client reference from a server module.' + ); + }, + }; + function yf(e, t) { + var n = Object.defineProperties( + function () { + throw Error( + "Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component." + ); + }, + {$$typeof: {value: gi}} + ); + return (n = new Proxy(n, Tf)), e.set(n, t), n; + } + var mf = Symbol.for('react.element'), + Yt = Symbol.for('react.transitional.element'), + Ci = Symbol.for('react.fragment'), + il = Symbol.for('react.context'), + Al = Symbol.for('react.forward_ref'), + kf = Symbol.for('react.suspense'), + vf = Symbol.for('react.suspense_list'), + Pl = Symbol.for('react.memo'), + Lo = Symbol.for('react.lazy'), + _f = Symbol.for('react.memo_cache_sentinel'); + Symbol.for('react.postpone'); + var al = Symbol.iterator; + function Rl(e) { + return e === null || typeof e != 'object' + ? null + : ((e = (al && e[al]) || e['@@iterator']), + typeof e == 'function' ? e : null); + } + var Hn = Symbol.asyncIterator; + function Kn() {} + var wi = Error( + "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`." + ); + function xf(e, t, n) { + switch ( + ((n = e[n]), + n === void 0 ? e.push(t) : n !== t && (t.then(Kn, Kn), (t = n)), + t.status) + ) { + case 'fulfilled': + return t.value; + case 'rejected': + throw t.reason; + default: + switch ( + (typeof t.status == 'string' + ? t.then(Kn, Kn) + : ((e = t), + (e.status = 'pending'), + e.then( + function (o) { + if (t.status === 'pending') { + var r = t; + (r.status = 'fulfilled'), (r.value = o); + } + }, + function (o) { + if (t.status === 'pending') { + var r = t; + (r.status = 'rejected'), (r.reason = o); + } + } + )), + t.status) + ) { + case 'fulfilled': + return t.value; + case 'rejected': + throw t.reason; + } + throw ((Tr = t), wi); + } + } + var Tr = null; + function Nl() { + if (Tr === null) + throw Error( + 'Expected a suspended thenable. This is a bug in React. Please file an issue.' + ); + var e = Tr; + return (Tr = null), e; + } + var Ro = null, + hi = 0, + io = null; + function Dl() { + var e = io || []; + return (io = null), e; + } + var Ol = { + readContext: Ti, + use: wf, + useCallback: function (e) { + return e; + }, + useContext: Ti, + useEffect: at, + useImperativeHandle: at, + useLayoutEffect: at, + useInsertionEffect: at, + useMemo: function (e) { + return e(); + }, + useReducer: at, + useRef: at, + useState: at, + useDebugValue: function () {}, + useDeferredValue: at, + useTransition: at, + useSyncExternalStore: at, + useId: Cf, + useHostTransitionStatus: at, + useFormState: at, + useActionState: at, + useOptimistic: at, + useMemoCache: function (e) { + for (var t = Array(e), n = 0; n < e; n++) t[n] = _f; + return t; + }, + useCacheRefresh: function () { + return gf; + }, + }; + Ol.useEffectEvent = at; + function at() { + throw Error('This Hook is not supported in Server Components.'); + } + function gf() { + throw Error( + 'Refreshing the cache is not supported in Server Components.' + ); + } + function Ti() { + throw Error('Cannot read a Client Context from a Server Component.'); + } + function Cf() { + if (Ro === null) + throw Error('useId can only be used while React is rendering'); + var e = Ro.identifierCount++; + return '_' + Ro.identifierPrefix + 'S_' + e.toString(32) + '_'; + } + function wf(e) { + if ((e !== null && typeof e == 'object') || typeof e == 'function') { + if (typeof e.then == 'function') { + var t = hi; + return (hi += 1), io === null && (io = []), xf(io, e, t); + } + e.$$typeof === il && Ti(); + } + throw e.$$typeof === gn + ? e.value != null && e.value.$$typeof === il + ? Error('Cannot read a Client Context from a Server Component.') + : Error('Cannot use() an already resolved Client Reference.') + : Error('An unsupported type was passed to use(): ' + String(e)); + } + var ll = { + getCacheForType: function (e) { + var t = (t = De || null) ? t.cache : new Map(), + n = t.get(e); + return n === void 0 && ((n = e()), t.set(e, n)), n; + }, + cacheSignal: function () { + var e = De || null; + return e ? e.cacheController.signal : null; + }, + }, + Un = Zd.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + if (!Un) + throw Error( + 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' + ); + var Kt = Array.isArray, + lo = Object.getPrototypeOf; + function Ml(e) { + return (e = Object.prototype.toString.call(e)), e.slice(8, e.length - 1); + } + function cl(e) { + switch (typeof e) { + case 'string': + return JSON.stringify(10 >= e.length ? e : e.slice(0, 10) + '...'); + case 'object': + return Kt(e) + ? '[...]' + : e !== null && e.$$typeof === yi + ? 'client' + : ((e = Ml(e)), e === 'Object' ? '{...}' : e); + case 'function': + return e.$$typeof === yi + ? 'client' + : (e = e.displayName || e.name) + ? 'function ' + e + : 'function'; + default: + return String(e); + } + } + function yr(e) { + if (typeof e == 'string') return e; + switch (e) { + case kf: + return 'Suspense'; + case vf: + return 'SuspenseList'; + } + if (typeof e == 'object') + switch (e.$$typeof) { + case Al: + return yr(e.render); + case Pl: + return yr(e.type); + case Lo: + var t = e._payload; + e = e._init; + try { + return yr(e(t)); + } catch {} + } + return ''; + } + var yi = Symbol.for('react.client.reference'); + function Bn(e, t) { + var n = Ml(e); + if (n !== 'Object' && n !== 'Array') return n; + n = -1; + var o = 0; + if (Kt(e)) { + for (var r = '[', s = 0; s < e.length; s++) { + 0 < s && (r += ', '); + var i = e[s]; + (i = typeof i == 'object' && i !== null ? Bn(i) : cl(i)), + '' + s === t + ? ((n = r.length), (o = i.length), (r += i)) + : (r = + 10 > i.length && 40 > r.length + i.length + ? r + i + : r + '...'); + } + r += ']'; + } else if (e.$$typeof === Yt) r = '<' + yr(e.type) + '/>'; + else { + if (e.$$typeof === yi) return 'client'; + for (r = '{', s = Object.keys(e), i = 0; i < s.length; i++) { + 0 < i && (r += ', '); + var a = s[i], + u = JSON.stringify(a); + (r += ('"' + a + '"' === u ? a : u) + ': '), + (u = e[a]), + (u = typeof u == 'object' && u !== null ? Bn(u) : cl(u)), + a === t + ? ((n = r.length), (o = u.length), (r += u)) + : (r = + 10 > u.length && 40 > r.length + u.length + ? r + u + : r + '...'); + } + r += '}'; + } + return t === void 0 + ? r + : -1 < n && 0 < o + ? ((e = ' '.repeat(n) + '^'.repeat(o)), + ` + ` + + r + + ` + ` + + e) + : ` + ` + r; + } + var vr = Object.prototype.hasOwnProperty, + If = Object.prototype, + Wn = JSON.stringify; + function Sf(e) { + console.error(e); + } + function Ll(e, t, n, o, r, s, i, a, u) { + if (Un.A !== null && Un.A !== ll) + throw Error( + 'Currently React only supports one RSC renderer at a time.' + ); + Un.A = ll; + var h = new Set(), + v = [], + _ = new Set(); + (this.type = e), + (this.status = 10), + (this.flushScheduled = !1), + (this.destination = this.fatalError = null), + (this.bundlerConfig = n), + (this.cache = new Map()), + (this.cacheController = new AbortController()), + (this.pendingChunks = this.nextChunkId = 0), + (this.hints = _), + (this.abortableTasks = h), + (this.pingedTasks = v), + (this.completedImportChunks = []), + (this.completedHintChunks = []), + (this.completedRegularChunks = []), + (this.completedErrorChunks = []), + (this.writtenSymbols = new Map()), + (this.writtenClientReferences = new Map()), + (this.writtenServerReferences = new Map()), + (this.writtenObjects = new WeakMap()), + (this.temporaryReferences = u), + (this.identifierPrefix = a || ''), + (this.identifierCount = 1), + (this.taintCleanupQueue = []), + (this.onError = o === void 0 ? Sf : o), + (this.onPostpone = r === void 0 ? Kn : r), + (this.onAllReady = s), + (this.onFatalError = i), + (e = Cn(this, t, null, !1, 0, h)), + v.push(e); + } + var De = null; + function ul(e, t, n) { + var o = Cn( + e, + n, + t.keyPath, + t.implicitSlot, + t.formatContext, + e.abortableTasks + ); + switch (n.status) { + case 'fulfilled': + return (o.model = n.value), Oo(e, o), o.id; + case 'rejected': + return cn(e, o, n.reason), o.id; + default: + if (e.status === 12) + return ( + e.abortableTasks.delete(o), + e.type === 21 + ? (co(o), uo(o, e)) + : ((t = e.fatalError), Ii(o), Si(o, e, t)), + o.id + ); + typeof n.status != 'string' && + ((n.status = 'pending'), + n.then( + function (r) { + n.status === 'pending' && + ((n.status = 'fulfilled'), (n.value = r)); + }, + function (r) { + n.status === 'pending' && + ((n.status = 'rejected'), (n.reason = r)); + } + )); + } + return ( + n.then( + function (r) { + (o.model = r), Oo(e, o); + }, + function (r) { + o.status === 0 && (cn(e, o, r), Pt(e)); + } + ), + o.id + ); + } + function bf(e, t, n) { + function o(h) { + if (u.status === 0) + if (h.done) + (u.status = 1), + (h = + u.id.toString(16) + + `:C +`), + e.completedRegularChunks.push(Rt(h)), + e.abortableTasks.delete(u), + e.cacheController.signal.removeEventListener('abort', s), + Pt(e), + gr(e); + else + try { + (u.model = h.value), + e.pendingChunks++, + ql(e, u), + Pt(e), + a.read().then(o, r); + } catch (v) { + r(v); + } + } + function r(h) { + u.status === 0 && + (e.cacheController.signal.removeEventListener('abort', s), + cn(e, u, h), + Pt(e), + a.cancel(h).then(r, r)); + } + function s() { + if (u.status === 0) { + var h = e.cacheController.signal; + h.removeEventListener('abort', s), + (h = h.reason), + e.type === 21 + ? (e.abortableTasks.delete(u), co(u), uo(u, e)) + : (cn(e, u, h), Pt(e)), + a.cancel(h).then(r, r); + } + } + var i = n.supportsBYOB; + if (i === void 0) + try { + n.getReader({mode: 'byob'}).releaseLock(), (i = !0); + } catch { + i = !1; + } + var a = n.getReader(), + u = Cn( + e, + t.model, + t.keyPath, + t.implicitSlot, + t.formatContext, + e.abortableTasks + ); + return ( + e.pendingChunks++, + (t = + u.id.toString(16) + + ':' + + (i ? 'r' : 'R') + + ` +`), + e.completedRegularChunks.push(Rt(t)), + e.cacheController.signal.addEventListener('abort', s), + a.read().then(o, r), + Xe(u.id) + ); + } + function Ef(e, t, n, o) { + function r(u) { + if (a.status === 0) + if (u.done) { + if (((a.status = 1), u.value === void 0)) + var h = + a.id.toString(16) + + `:C +`; + else + try { + var v = jn(e, u.value, 0); + h = + a.id.toString(16) + + ':C' + + Wn(Xe(v)) + + ` +`; + } catch (_) { + s(_); + return; + } + e.completedRegularChunks.push(Rt(h)), + e.abortableTasks.delete(a), + e.cacheController.signal.removeEventListener('abort', i), + Pt(e), + gr(e); + } else + try { + (a.model = u.value), + e.pendingChunks++, + ql(e, a), + Pt(e), + o.next().then(r, s); + } catch (_) { + s(_); + } + } + function s(u) { + a.status === 0 && + (e.cacheController.signal.removeEventListener('abort', i), + cn(e, a, u), + Pt(e), + typeof o.throw == 'function' && o.throw(u).then(s, s)); + } + function i() { + if (a.status === 0) { + var u = e.cacheController.signal; + u.removeEventListener('abort', i); + var h = u.reason; + e.type === 21 + ? (e.abortableTasks.delete(a), co(a), uo(a, e)) + : (cn(e, a, u.reason), Pt(e)), + typeof o.throw == 'function' && o.throw(h).then(s, s); + } + } + n = n === o; + var a = Cn( + e, + t.model, + t.keyPath, + t.implicitSlot, + t.formatContext, + e.abortableTasks + ); + return ( + e.pendingChunks++, + (t = + a.id.toString(16) + + ':' + + (n ? 'x' : 'X') + + ` +`), + e.completedRegularChunks.push(Rt(t)), + e.cacheController.signal.addEventListener('abort', i), + o.next().then(r, s), + Xe(a.id) + ); + } + function ft(e, t, n) { + (n = Wn(n)), + (t = Rt( + ':H' + + t + + n + + ` +` + )), + e.completedHintChunks.push(t), + Pt(e); + } + function Af(e) { + if (e.status === 'fulfilled') return e.value; + throw e.status === 'rejected' ? e.reason : e; + } + function Pf(e, t, n) { + switch (n.status) { + case 'fulfilled': + return n.value; + case 'rejected': + break; + default: + typeof n.status != 'string' && + ((n.status = 'pending'), + n.then( + function (o) { + n.status === 'pending' && + ((n.status = 'fulfilled'), (n.value = o)); + }, + function (o) { + n.status === 'pending' && + ((n.status = 'rejected'), (n.reason = o)); + } + )); + } + return {$$typeof: Lo, _payload: n, _init: Af}; + } + function pl() {} + function Rf(e, t, n, o) { + if (typeof o != 'object' || o === null || o.$$typeof === gn) return o; + if (typeof o.then == 'function') return Pf(e, t, o); + var r = Rl(o); + return r + ? ((e = {}), + (e[Symbol.iterator] = function () { + return r.call(o); + }), + e) + : typeof o[Hn] != 'function' || + (typeof ReadableStream == 'function' && o instanceof ReadableStream) + ? o + : ((e = {}), + (e[Hn] = function () { + return o[Hn](); + }), + e); + } + function dl(e, t, n, o, r) { + var s = t.thenableState; + if ( + ((t.thenableState = null), + (hi = 0), + (io = s), + (r = o(r, void 0)), + e.status === 12) + ) + throw ( + (typeof r == 'object' && + r !== null && + typeof r.then == 'function' && + r.$$typeof !== gn && + r.then(pl, pl), + null) + ); + return ( + (r = Rf(e, t, o, r)), + (o = t.keyPath), + (s = t.implicitSlot), + n !== null + ? (t.keyPath = o === null ? n : o + ',' + n) + : o === null && (t.implicitSlot = !0), + (e = Fo(e, t, xr, '', r)), + (t.keyPath = o), + (t.implicitSlot = s), + e + ); + } + function fl(e, t, n) { + return t.keyPath !== null + ? ((e = [Yt, Ci, t.keyPath, {children: n}]), t.implicitSlot ? [e] : e) + : n; + } + var xn = 0; + function hl(e, t) { + return ( + (t = Cn( + e, + t.model, + t.keyPath, + t.implicitSlot, + t.formatContext, + e.abortableTasks + )), + Oo(e, t), + qn(t.id) + ); + } + function mi(e, t, n, o, r, s) { + if (r != null) + throw Error( + 'Refs cannot be used in Server Components, nor passed to Client Components.' + ); + if (typeof n == 'function' && n.$$typeof !== gn && n.$$typeof !== gi) + return dl(e, t, o, n, s); + if (n === Ci && o === null) + return ( + (n = t.implicitSlot), + t.keyPath === null && (t.implicitSlot = !0), + (s = Fo(e, t, xr, '', s.children)), + (t.implicitSlot = n), + s + ); + if (n != null && typeof n == 'object' && n.$$typeof !== gn) + switch (n.$$typeof) { + case Lo: + var i = n._init; + if (((n = i(n._payload)), e.status === 12)) throw null; + return mi(e, t, n, o, r, s); + case Al: + return dl(e, t, o, n.render, s); + case Pl: + return mi(e, t, n.type, o, r, s); + } + else + typeof n == 'string' && + ((r = t.formatContext), + (i = hf(r, n, s)), + r !== i && s.children != null && jn(e, s.children, i)); + return ( + (e = o), + (o = t.keyPath), + e === null ? (e = o) : o !== null && (e = o + ',' + e), + (s = [Yt, n, e, s]), + (t = t.implicitSlot && e !== null ? [s] : s), + t + ); + } + function Oo(e, t) { + var n = e.pingedTasks; + n.push(t), + n.length === 1 && + ((e.flushScheduled = e.destination !== null), + e.type === 21 || e.status === 10 + ? Cl(function () { + return ki(e); + }) + : Do(function () { + return ki(e); + })); + } + function Cn(e, t, n, o, r, s) { + e.pendingChunks++; + var i = e.nextChunkId++; + typeof t != 'object' || + t === null || + n !== null || + o || + e.writtenObjects.set(t, Xe(i)); + var a = { + id: i, + status: 0, + model: t, + keyPath: n, + implicitSlot: o, + formatContext: r, + ping: function () { + return Oo(e, a); + }, + toJSON: function (u, h) { + xn += u.length; + var v = a.keyPath, + _ = a.implicitSlot; + try { + var x = Fo(e, a, this, u, h); + } catch (G) { + if ( + ((u = a.model), + (u = + typeof u == 'object' && + u !== null && + (u.$$typeof === Yt || u.$$typeof === Lo)), + e.status === 12) + ) + (a.status = 3), + e.type === 21 + ? ((v = e.nextChunkId++), (v = u ? qn(v) : Xe(v)), (x = v)) + : ((v = e.fatalError), (x = u ? qn(v) : Xe(v))); + else if ( + ((h = G === wi ? Nl() : G), + typeof h == 'object' && h !== null && typeof h.then == 'function') + ) { + x = Cn( + e, + a.model, + a.keyPath, + a.implicitSlot, + a.formatContext, + e.abortableTasks + ); + var L = x.ping; + h.then(L, L), + (x.thenableState = Dl()), + (a.keyPath = v), + (a.implicitSlot = _), + (x = u ? qn(x.id) : Xe(x.id)); + } else + (a.keyPath = v), + (a.implicitSlot = _), + e.pendingChunks++, + (v = e.nextChunkId++), + (_ = ln(e, h, a)), + _r(e, v, _), + (x = u ? qn(v) : Xe(v)); + } + return x; + }, + thenableState: null, + }; + return s.add(a), a; + } + function Xe(e) { + return '$' + e.toString(16); + } + function qn(e) { + return '$L' + e.toString(16); + } + function Fl(e, t, n) { + return ( + (e = Wn(n)), + (t = + t.toString(16) + + ':' + + e + + ` +`), + Rt(t) + ); + } + function Tl(e, t, n, o) { + var r = o.$$async ? o.$$id + '#async' : o.$$id, + s = e.writtenClientReferences, + i = s.get(r); + if (i !== void 0) return t[0] === Yt && n === '1' ? qn(i) : Xe(i); + try { + var a = e.bundlerConfig, + u = o.$$id; + i = ''; + var h = a[u]; + if (h) i = h.name; + else { + var v = u.lastIndexOf('#'); + if ((v !== -1 && ((i = u.slice(v + 1)), (h = a[u.slice(0, v)])), !h)) + throw Error( + 'Could not find the module "' + + u + + '" in the React Client Manifest. This is probably a bug in the React Server Components bundler.' + ); + } + if (h.async === !0 && o.$$async === !0) + throw Error( + 'The module "' + + u + + '" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.' + ); + var _ = + h.async === !0 || o.$$async === !0 + ? [h.id, h.chunks, i, 1] + : [h.id, h.chunks, i]; + e.pendingChunks++; + var x = e.nextChunkId++, + L = Wn(_), + G = + x.toString(16) + + ':I' + + L + + ` +`, + F = Rt(G); + return ( + e.completedImportChunks.push(F), + s.set(r, x), + t[0] === Yt && n === '1' ? qn(x) : Xe(x) + ); + } catch (K) { + return ( + e.pendingChunks++, + (t = e.nextChunkId++), + (n = ln(e, K, null)), + _r(e, t, n), + Xe(t) + ); + } + } + function jn(e, t, n) { + return (t = Cn(e, t, null, !1, n, e.abortableTasks)), Kl(e, t), t.id; + } + function _t(e, t, n) { + e.pendingChunks++; + var o = e.nextChunkId++; + return dt(e, o, t, n, !1), Xe(o); + } + function Nf(e, t) { + function n(u) { + if (i.status === 0) + if (u.done) + e.cacheController.signal.removeEventListener('abort', r), Oo(e, i); + else return s.push(u.value), a.read().then(n).catch(o); + } + function o(u) { + i.status === 0 && + (e.cacheController.signal.removeEventListener('abort', r), + cn(e, i, u), + Pt(e), + a.cancel(u).then(o, o)); + } + function r() { + if (i.status === 0) { + var u = e.cacheController.signal; + u.removeEventListener('abort', r), + (u = u.reason), + e.type === 21 + ? (e.abortableTasks.delete(i), co(i), uo(i, e)) + : (cn(e, i, u), Pt(e)), + a.cancel(u).then(o, o); + } + } + var s = [t.type], + i = Cn(e, s, null, !1, 0, e.abortableTasks), + a = t.stream().getReader(); + return ( + e.cacheController.signal.addEventListener('abort', r), + a.read().then(n).catch(o), + '$B' + i.id.toString(16) + ); + } + var _n = !1; + function Fo(e, t, n, o, r) { + if (((t.model = r), r === Yt)) return '$'; + if (r === null) return null; + if (typeof r == 'object') { + switch (r.$$typeof) { + case Yt: + var s = null, + i = e.writtenObjects; + if (t.keyPath === null && !t.implicitSlot) { + var a = i.get(r); + if (a !== void 0) + if (_n === r) _n = null; + else return a; + else + o.indexOf(':') === -1 && + ((n = i.get(n)), + n !== void 0 && ((s = n + ':' + o), i.set(r, s))); + } + return 3200 < xn + ? hl(e, t) + : ((o = r.props), + (n = o.ref), + (e = mi(e, t, r.type, r.key, n !== void 0 ? n : null, o)), + typeof e == 'object' && + e !== null && + s !== null && + (i.has(e) || i.set(e, s)), + e); + case Lo: + if (3200 < xn) return hl(e, t); + if ( + ((t.thenableState = null), + (o = r._init), + (r = o(r._payload)), + e.status === 12) + ) + throw null; + return Fo(e, t, xr, '', r); + case mf: + throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if: +- Multiple copies of the "react" package is used. +- A library pre-bundled an old copy of "react" or "react/jsx-runtime". +- A compiler tries to "inline" JSX instead of using the runtime.`); + } + if (r.$$typeof === gn) return Tl(e, n, o, r); + if ( + e.temporaryReferences !== void 0 && + ((s = e.temporaryReferences.get(r)), s !== void 0) + ) + return '$T' + s; + if ( + ((s = e.writtenObjects), (i = s.get(r)), typeof r.then == 'function') + ) { + if (i !== void 0) { + if (t.keyPath !== null || t.implicitSlot) + return '$@' + ul(e, t, r).toString(16); + if (_n === r) _n = null; + else return i; + } + return (e = '$@' + ul(e, t, r).toString(16)), s.set(r, e), e; + } + if (i !== void 0) + if (_n === r) { + if (i !== Xe(t.id)) return i; + _n = null; + } else return i; + else if (o.indexOf(':') === -1 && ((i = s.get(n)), i !== void 0)) { + if (((a = o), Kt(n) && n[0] === Yt)) + switch (o) { + case '1': + a = 'type'; + break; + case '2': + a = 'key'; + break; + case '3': + a = 'props'; + break; + case '4': + a = '_owner'; + } + s.set(r, i + ':' + a); + } + if (Kt(r)) return fl(e, t, r); + if (r instanceof Map) + return (r = Array.from(r)), '$Q' + jn(e, r, 0).toString(16); + if (r instanceof Set) + return (r = Array.from(r)), '$W' + jn(e, r, 0).toString(16); + if (typeof FormData == 'function' && r instanceof FormData) + return (r = Array.from(r.entries())), '$K' + jn(e, r, 0).toString(16); + if (r instanceof Error) return '$Z'; + if (r instanceof ArrayBuffer) return _t(e, 'A', new Uint8Array(r)); + if (r instanceof Int8Array) return _t(e, 'O', r); + if (r instanceof Uint8Array) return _t(e, 'o', r); + if (r instanceof Uint8ClampedArray) return _t(e, 'U', r); + if (r instanceof Int16Array) return _t(e, 'S', r); + if (r instanceof Uint16Array) return _t(e, 's', r); + if (r instanceof Int32Array) return _t(e, 'L', r); + if (r instanceof Uint32Array) return _t(e, 'l', r); + if (r instanceof Float32Array) return _t(e, 'G', r); + if (r instanceof Float64Array) return _t(e, 'g', r); + if (r instanceof BigInt64Array) return _t(e, 'M', r); + if (r instanceof BigUint64Array) return _t(e, 'm', r); + if (r instanceof DataView) return _t(e, 'V', r); + if (typeof Blob == 'function' && r instanceof Blob) return Nf(e, r); + if ((s = Rl(r))) + return ( + (o = s.call(r)), + o === r + ? ((r = Array.from(o)), '$i' + jn(e, r, 0).toString(16)) + : fl(e, t, Array.from(o)) + ); + if (typeof ReadableStream == 'function' && r instanceof ReadableStream) + return bf(e, t, r); + if (((s = r[Hn]), typeof s == 'function')) + return ( + t.keyPath !== null + ? ((e = [Yt, Ci, t.keyPath, {children: r}]), + (e = t.implicitSlot ? [e] : e)) + : ((o = s.call(r)), (e = Ef(e, t, r, o))), + e + ); + if (r instanceof Date) return '$D' + r.toJSON(); + if (((e = lo(r)), e !== If && (e === null || lo(e) !== null))) + throw Error( + 'Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.' + + Bn(n, o) + ); + return r; + } + if (typeof r == 'string') + return ( + (xn += r.length), + r[r.length - 1] === 'Z' && n[o] instanceof Date + ? '$D' + r + : 1024 <= r.length && xi !== null + ? (e.pendingChunks++, (t = e.nextChunkId++), Bl(e, t, r, !1), Xe(t)) + : ((e = r[0] === '$' ? '$' + r : r), e) + ); + if (typeof r == 'boolean') return r; + if (typeof r == 'number') + return Number.isFinite(r) + ? r === 0 && 1 / r === -1 / 0 + ? '$-0' + : r + : r === 1 / 0 + ? '$Infinity' + : r === -1 / 0 + ? '$-Infinity' + : '$NaN'; + if (typeof r > 'u') return '$undefined'; + if (typeof r == 'function') { + if (r.$$typeof === gn) return Tl(e, n, o, r); + if (r.$$typeof === mr) + return ( + (t = e.writtenServerReferences), + (o = t.get(r)), + o !== void 0 + ? (e = '$h' + o.toString(16)) + : ((o = r.$$bound), + (o = o === null ? null : Promise.resolve(o)), + (e = jn(e, {id: r.$$id, bound: o}, 0)), + t.set(r, e), + (e = '$h' + e.toString(16))), + e + ); + if ( + e.temporaryReferences !== void 0 && + ((e = e.temporaryReferences.get(r)), e !== void 0) + ) + return '$T' + e; + throw r.$$typeof === gi + ? Error( + 'Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.' + ) + : /^on[A-Z]/.test(o) + ? Error( + 'Event handlers cannot be passed to Client Component props.' + + Bn(n, o) + + ` +If you need interactivity, consider converting part of this to a Client Component.` + ) + : Error( + 'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.' + + Bn(n, o) + ); + } + if (typeof r == 'symbol') { + if (((t = e.writtenSymbols), (s = t.get(r)), s !== void 0)) + return Xe(s); + if (((s = r.description), Symbol.for(s) !== r)) + throw Error( + 'Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for(' + + (r.description + ') cannot be found among global symbols.') + + Bn(n, o) + ); + return ( + e.pendingChunks++, + (o = e.nextChunkId++), + (n = Fl(e, o, '$S' + s)), + e.completedImportChunks.push(n), + t.set(r, o), + Xe(o) + ); + } + if (typeof r == 'bigint') return '$n' + r.toString(10); + throw Error( + 'Type ' + + typeof r + + ' is not supported in Client Component props.' + + Bn(n, o) + ); + } + function ln(e, t) { + var n = De; + De = null; + try { + var o = e.onError, + r = o(t); + } finally { + De = n; + } + if (r != null && typeof r != 'string') + throw Error( + 'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + + typeof r + + '" instead' + ); + return r || ''; + } + function $o(e, t) { + var n = e.onFatalError; + n(t), + e.destination !== null + ? ((e.status = 14), wl(e.destination, t)) + : ((e.status = 13), (e.fatalError = t)), + e.cacheController.abort( + Error('The render was aborted due to a fatal error.', {cause: t}) + ); + } + function _r(e, t, n) { + (n = {digest: n}), + (t = + t.toString(16) + + ':E' + + Wn(n) + + ` +`), + (t = Rt(t)), + e.completedErrorChunks.push(t); + } + function $l(e, t, n) { + (t = + t.toString(16) + + ':' + + n + + ` +`), + (t = Rt(t)), + e.completedRegularChunks.push(t); + } + function dt(e, t, n, o, r) { + r ? e.pendingDebugChunks++ : e.pendingChunks++, + (r = new Uint8Array(o.buffer, o.byteOffset, o.byteLength)), + (o = 2048 < o.byteLength ? r.slice() : r), + (r = o.byteLength), + (t = t.toString(16) + ':' + n + r.toString(16) + ','), + (t = Rt(t)), + e.completedRegularChunks.push(t, o); + } + function Bl(e, t, n, o) { + if (xi === null) + throw Error( + 'Existence of byteLengthOfChunk should have already been checked. This is a bug in React.' + ); + o ? e.pendingDebugChunks++ : e.pendingChunks++, + (n = Rt(n)), + (o = n.byteLength), + (t = t.toString(16) + ':T' + o.toString(16) + ','), + (t = Rt(t)), + e.completedRegularChunks.push(t, n); + } + function jl(e, t, n) { + var o = t.id; + typeof n == 'string' && xi !== null + ? Bl(e, o, n, !1) + : n instanceof ArrayBuffer + ? dt(e, o, 'A', new Uint8Array(n), !1) + : n instanceof Int8Array + ? dt(e, o, 'O', n, !1) + : n instanceof Uint8Array + ? dt(e, o, 'o', n, !1) + : n instanceof Uint8ClampedArray + ? dt(e, o, 'U', n, !1) + : n instanceof Int16Array + ? dt(e, o, 'S', n, !1) + : n instanceof Uint16Array + ? dt(e, o, 's', n, !1) + : n instanceof Int32Array + ? dt(e, o, 'L', n, !1) + : n instanceof Uint32Array + ? dt(e, o, 'l', n, !1) + : n instanceof Float32Array + ? dt(e, o, 'G', n, !1) + : n instanceof Float64Array + ? dt(e, o, 'g', n, !1) + : n instanceof BigInt64Array + ? dt(e, o, 'M', n, !1) + : n instanceof BigUint64Array + ? dt(e, o, 'm', n, !1) + : n instanceof DataView + ? dt(e, o, 'V', n, !1) + : ((n = Wn(n, t.toJSON)), $l(e, t.id, n)); + } + function cn(e, t, n) { + (t.status = 4), + (n = ln(e, n, t)), + _r(e, t.id, n), + e.abortableTasks.delete(t), + gr(e); + } + var xr = {}; + function Kl(e, t) { + if (t.status === 0) { + t.status = 5; + var n = xn; + try { + _n = t.model; + var o = Fo(e, t, xr, '', t.model); + if ( + ((_n = o), + (t.keyPath = null), + (t.implicitSlot = !1), + typeof o == 'object' && o !== null) + ) + e.writtenObjects.set(o, Xe(t.id)), jl(e, t, o); + else { + var r = Wn(o); + $l(e, t.id, r); + } + (t.status = 1), e.abortableTasks.delete(t), gr(e); + } catch (u) { + if (e.status === 12) + if ((e.abortableTasks.delete(t), (t.status = 0), e.type === 21)) + co(t), uo(t, e); + else { + var s = e.fatalError; + Ii(t), Si(t, e, s); + } + else { + var i = u === wi ? Nl() : u; + if ( + typeof i == 'object' && + i !== null && + typeof i.then == 'function' + ) { + (t.status = 0), (t.thenableState = Dl()); + var a = t.ping; + i.then(a, a); + } else cn(e, t, i); + } + } finally { + xn = n; + } + } + } + function ql(e, t) { + var n = xn; + try { + jl(e, t, t.model); + } finally { + xn = n; + } + } + function ki(e) { + var t = Un.H; + Un.H = Ol; + var n = De; + Ro = De = e; + try { + var o = e.pingedTasks; + e.pingedTasks = []; + for (var r = 0; r < o.length; r++) Kl(e, o[r]); + po(e); + } catch (s) { + ln(e, s, null), $o(e, s); + } finally { + (Un.H = t), (Ro = null), (De = n); + } + } + function Ii(e) { + e.status === 0 && (e.status = 3); + } + function Si(e, t, n) { + e.status === 3 && + ((n = Xe(n)), (e = Fl(t, e.id, n)), t.completedErrorChunks.push(e)); + } + function co(e) { + e.status === 0 && (e.status = 3); + } + function uo(e, t) { + e.status === 3 && t.pendingChunks--; + } + function po(e) { + var t = e.destination; + if (t !== null) { + (Et = new Uint8Array(2048)), (At = 0); + try { + for (var n = e.completedImportChunks, o = 0; o < n.length; o++) + e.pendingChunks--, dr(t, n[o]); + n.splice(0, o); + var r = e.completedHintChunks; + for (o = 0; o < r.length; o++) dr(t, r[o]); + r.splice(0, o); + var s = e.completedRegularChunks; + for (o = 0; o < s.length; o++) e.pendingChunks--, dr(t, s[o]); + s.splice(0, o); + var i = e.completedErrorChunks; + for (o = 0; o < i.length; o++) e.pendingChunks--, dr(t, i[o]); + i.splice(0, o); + } finally { + (e.flushScheduled = !1), + Et && + 0 < At && + (t.enqueue(new Uint8Array(Et.buffer, 0, At)), + (Et = null), + (At = 0)); + } + } + e.pendingChunks === 0 && + (12 > e.status && + e.cacheController.abort( + Error( + 'This render completed successfully. All cacheSignals are now aborted to allow clean up of any unused resources.' + ) + ), + e.destination !== null && + ((e.status = 14), e.destination.close(), (e.destination = null))); + } + function Hl(e) { + (e.flushScheduled = e.destination !== null), + Cl(function () { + return ki(e); + }), + Do(function () { + e.status === 10 && (e.status = 11); + }); + } + function Pt(e) { + e.flushScheduled === !1 && + e.pingedTasks.length === 0 && + e.destination !== null && + ((e.flushScheduled = !0), + Do(function () { + (e.flushScheduled = !1), po(e); + })); + } + function gr(e) { + e.abortableTasks.size === 0 && ((e = e.onAllReady), e()); + } + function Ul(e, t) { + if (e.status === 13) (e.status = 14), wl(t, e.fatalError); + else if (e.status !== 14 && e.destination === null) { + e.destination = t; + try { + po(e); + } catch (n) { + ln(e, n, null), $o(e, n); + } + } + } + function Df(e, t) { + try { + t.forEach(function (o) { + return uo(o, e); + }); + var n = e.onAllReady; + n(), po(e); + } catch (o) { + ln(e, o, null), $o(e, o); + } + } + function Of(e, t, n) { + try { + t.forEach(function (r) { + return Si(r, e, n); + }); + var o = e.onAllReady; + o(), po(e); + } catch (r) { + ln(e, r, null), $o(e, r); + } + } + function ao(e, t) { + if (!(11 < e.status)) + try { + (e.status = 12), e.cacheController.abort(t); + var n = e.abortableTasks; + if (0 < n.size) + if (e.type === 21) + n.forEach(function (a) { + return co(a, e); + }), + Do(function () { + return Df(e, n); + }); + else { + var o = + t === void 0 + ? Error( + 'The render was aborted by the server without a reason.' + ) + : typeof t == 'object' && + t !== null && + typeof t.then == 'function' + ? Error( + 'The render was aborted by the server with a promise.' + ) + : t, + r = ln(e, o, null), + s = e.nextChunkId++; + (e.fatalError = s), + e.pendingChunks++, + _r(e, s, r, o, !1, null), + n.forEach(function (a) { + return Ii(a, e, s); + }), + Do(function () { + return Of(e, n, s); + }); + } + else { + var i = e.onAllReady; + i(), po(e); + } + } catch (a) { + ln(e, a, null), $o(e, a); + } + } + function Wl(e, t) { + var n = '', + o = e[t]; + if (o) n = o.name; + else { + var r = t.lastIndexOf('#'); + if ((r !== -1 && ((n = t.slice(r + 1)), (o = e[t.slice(0, r)])), !o)) + throw Error( + 'Could not find the module "' + + t + + '" in the React Server Manifest. This is probably a bug in the React Server Components bundler.' + ); + } + return o.async ? [o.id, o.chunks, n, 1] : [o.id, o.chunks, n]; + } + var fr = new Map(); + function yl(e) { + var t = __webpack_require__(e); + return typeof t.then != 'function' || t.status === 'fulfilled' + ? null + : (t.then( + function (n) { + (t.status = 'fulfilled'), (t.value = n); + }, + function (n) { + (t.status = 'rejected'), (t.reason = n); + } + ), + t); + } + function Mf() {} + function Vl(e) { + for (var t = e[1], n = [], o = 0; o < t.length; ) { + var r = t[o++], + s = t[o++], + i = fr.get(r); + i === void 0 + ? (zl.set(r, s), + (s = __webpack_chunk_load__(r)), + n.push(s), + (i = fr.set.bind(fr, r, null)), + s.then(i, Mf), + fr.set(r, s)) + : i !== null && n.push(i); + } + return e.length === 4 + ? n.length === 0 + ? yl(e[0]) + : Promise.all(n).then(function () { + return yl(e[0]); + }) + : 0 < n.length + ? Promise.all(n) + : null; + } + function No(e) { + var t = __webpack_require__(e[0]); + if (e.length === 4 && typeof t.then == 'function') + if (t.status === 'fulfilled') t = t.value; + else throw t.reason; + if (e[2] === '*') return t; + if (e[2] === '') return t.__esModule ? t.default : t; + if (vr.call(t, e[2])) return t[e[2]]; + } + var zl = new Map(), + Lf = __webpack_require__.u; + __webpack_require__.u = function (e) { + var t = zl.get(e); + return t !== void 0 ? t : Lf(e); + }; + var Cr = Symbol(); + function nt(e, t, n) { + (this.status = e), (this.value = t), (this.reason = n); + } + nt.prototype = Object.create(Promise.prototype); + nt.prototype.then = function (e, t) { + switch (this.status) { + case 'resolved_model': + Sr(this); + } + switch (this.status) { + case 'fulfilled': + if (typeof e == 'function') { + for (var n = this.value, o = 0, r = new Set(); n instanceof nt; ) { + if ((o++, n === this || r.has(n) || 1e3 < o)) { + typeof t == 'function' && + t(Error('Cannot have cyclic thenables.')); + return; + } + if ((r.add(n), n.status === 'fulfilled')) n = n.value; + else break; + } + e(this.value); + } + break; + case 'pending': + case 'blocked': + typeof e == 'function' && + (this.value === null && (this.value = []), this.value.push(e)), + typeof t == 'function' && + (this.reason === null && (this.reason = []), this.reason.push(t)); + break; + default: + typeof t == 'function' && t(this.reason); + } + }; + var Xl = Object.prototype, + Yl = Array.prototype; + function wr(e, t, n, o) { + for (var r = 0; r < t.length; r++) { + var s = t[r]; + typeof s == 'function' ? s(n) : Ql(e, s, n, o.reason); + } + } + function bi(e, t, n) { + for (var o = 0; o < t.length; o++) { + var r = t[o]; + typeof r == 'function' ? r(n) : kr(e, r.handler, n); + } + } + function Ir(e, t, n) { + if (t.status !== 'pending' && t.status !== 'blocked') t.reason.error(n); + else { + var o = t.reason; + (t.status = 'rejected'), (t.reason = n), o !== null && bi(e, o, n); + } + } + function Gl(e, t, n) { + var o = {}; + return new nt('resolved_model', t, ((o.id = n), (o[Cr] = e), o)); + } + function Jl(e, t, n, o) { + if (t.status !== 'pending') + (t = t.reason), + n[0] === 'C' + ? t.close(n === 'C' ? '"$undefined"' : n.slice(1)) + : t.enqueueModel(n); + else { + var r = t.value, + s = t.reason; + if ( + ((t.status = 'resolved_model'), + (t.value = n), + (n = {}), + (t.reason = ((n.id = o), (n[Cr] = e), n)), + r !== null) + ) + switch ((Sr(t), t.status)) { + case 'fulfilled': + wr(e, r, t.value, t); + break; + case 'blocked': + case 'pending': + if (t.value) for (e = 0; e < r.length; e++) t.value.push(r[e]); + else t.value = r; + if (t.reason) { + if (s) for (r = 0; r < s.length; r++) t.reason.push(s[r]); + } else t.reason = s; + break; + case 'rejected': + s && bi(e, s, t.reason); + } + } + } + function ml(e, t, n) { + var o = {}; + return new nt( + 'resolved_model', + (n ? '{"done":true,"value":' : '{"done":false,"value":') + t + '}', + ((o.id = -1), (o[Cr] = e), o) + ); + } + function fi(e, t, n, o) { + Jl( + e, + t, + (o ? '{"done":true,"value":' : '{"done":false,"value":') + n + '}', + -1 + ); + } + function Ff(e, t, n, o) { + function r(v) { + var _ = a.reason, + x = a; + (x.status = 'rejected'), + (x.value = null), + (x.reason = v), + _ !== null && bi(e, _, v), + kr(e, h, v); + } + var s = t.id; + if (typeof s != 'string' || o === 'then') return null; + var i = t.$$promise; + if (i !== void 0) + return i.status === 'fulfilled' + ? ((i = i.value), o === '__proto__' ? null : (n[o] = i)) + : (Ee + ? ((s = Ee), s.deps++) + : (s = Ee = + { + chunk: null, + value: null, + reason: null, + deps: 1, + errored: !1, + }), + i.then(_i.bind(null, e, s, n, o), kr.bind(null, e, s)), + null); + var a = new nt('blocked', null, null); + t.$$promise = a; + var u = Wl(e._bundlerConfig, s); + if (((i = t.bound), (s = Vl(u)))) + i instanceof nt && (s = Promise.all([s, i])); + else if (i instanceof nt) s = Promise.resolve(i); + else return (i = No(u)), (s = a), (s.status = 'fulfilled'), (s.value = i); + if (Ee) { + var h = Ee; + h.deps++; + } else + h = Ee = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + return ( + s.then(function () { + var v = No(u); + if (t.bound) { + var _ = t.bound.value; + if (((_ = Kt(_) ? _.slice(0) : []), 1e3 < _.length)) { + r( + Error( + 'Server Function has too many bound arguments. Received ' + + _.length + + ' but the limit is 1000.' + ) + ); + return; + } + _.unshift(null), (v = v.bind.apply(v, _)); + } + _ = a.value; + var x = a; + (x.status = 'fulfilled'), + (x.value = v), + (x.reason = null), + _ !== null && wr(e, _, v, x), + _i(e, h, n, o, v); + }, r), + null + ); + } + function vi(e, t, n, o, r, s) { + if (typeof o == 'string') return Hf(e, t, n, o, r, s); + if (typeof o == 'object' && o !== null) + if ( + (r !== void 0 && + e._temporaryReferences !== void 0 && + e._temporaryReferences.set(o, r), + Kt(o)) + ) { + if (s === null) { + var i = {count: 0, fork: !1}; + e._rootArrayContexts.set(o, i); + } else i = s; + for ( + 1 < o.length && (i.fork = !0), sn(i, o.length + 1, e), t = 0; + t < o.length; + t++ + ) + o[t] = vi( + e, + o, + '' + t, + o[t], + r !== void 0 ? r + ':' + t : void 0, + i + ); + } else + for (i in o) + vr.call(o, i) && + (i === '__proto__' + ? delete o[i] + : ((t = + r !== void 0 && i.indexOf(':') === -1 + ? r + ':' + i + : void 0), + (t = vi(e, o, i, o[i], t, null)), + t !== void 0 ? (o[i] = t) : delete o[i])); + return o; + } + function sn(e, t, n) { + if ((e.count += t) > n._arraySizeLimit && e.fork) + throw Error( + 'Maximum array nesting exceeded. Large nested arrays can be dangerous. Try adding intermediate objects.' + ); + } + var Ee = null; + function Sr(e) { + var t = Ee; + Ee = null; + var n = e.reason, + o = n[Cr]; + (n = n.id), (n = n === -1 ? void 0 : n.toString(16)); + var r = e.value; + (e.status = 'blocked'), (e.value = null), (e.reason = null); + try { + var s = JSON.parse(r); + r = {count: 0, fork: !1}; + var i = vi(o, {'': s}, '', s, n, r), + a = e.value; + if (a !== null) + for (e.value = null, e.reason = null, s = 0; s < a.length; s++) { + var u = a[s]; + typeof u == 'function' ? u(i) : Ql(o, u, i, r); + } + if (Ee !== null) { + if (Ee.errored) throw Ee.reason; + if (0 < Ee.deps) { + (Ee.value = i), (Ee.reason = r), (Ee.chunk = e); + return; + } + } + (e.status = 'fulfilled'), (e.value = i), (e.reason = r); + } catch (h) { + (e.status = 'rejected'), (e.reason = h); + } finally { + Ee = t; + } + } + function $f(e, t) { + (e._closed = !0), + (e._closedReason = t), + e._chunks.forEach(function (n) { + n.status === 'pending' + ? Ir(e, n, t) + : n.status === 'fulfilled' && + n.reason !== null && + ((n = n.reason), typeof n.error == 'function' && n.error(t)); + }); + } + function br(e, t) { + var n = e._chunks, + o = n.get(t); + return ( + o || + ((o = e._formData.get(e._prefix + t)), + (o = + typeof o == 'string' + ? Gl(e, o, t) + : e._closed + ? new nt('rejected', null, e._closedReason) + : new nt('pending', null, null)), + n.set(t, o)), + o + ); + } + function Ql(e, t, n, o) { + var r = t.handler, + s = t.parentObject, + i = t.key, + a = t.map, + u = t.path; + try { + for (var h = 0, v = e._rootArrayContexts, _ = 1; _ < u.length; _++) { + var x = u[_]; + if ( + typeof n != 'object' || + n === null || + (lo(n) !== Xl && lo(n) !== Yl) || + !vr.call(n, x) + ) + throw Error('Invalid reference.'); + if (((n = n[x]), Kt(n))) (h = 0), (o = v.get(n) || o); + else if (((o = null), typeof n == 'string')) h = n.length; + else if (typeof n == 'bigint') { + var L = Math.abs(Number(n)); + h = L === 0 ? 1 : Math.floor(Math.log10(L)) + 1; + } else h = ArrayBuffer.isView(n) ? n.byteLength : 0; + } + var G = a(e, n, s, i), + F = t.arrayRoot; + F !== null && + (o !== null + ? (o.fork && (F.fork = !0), sn(F, o.count, e)) + : 0 < h && sn(F, h, e)); + } catch (K) { + kr(e, r, K); + return; + } + _i(e, r, s, i, G); + } + function _i(e, t, n, o, r) { + o !== '__proto__' && (n[o] = r), + o === '' && t.value === null && (t.value = r), + t.deps--, + t.deps === 0 && + ((n = t.chunk), + n !== null && + n.status === 'blocked' && + ((o = n.value), + (n.status = 'fulfilled'), + (n.value = t.value), + (n.reason = t.reason), + o !== null && wr(e, o, t.value, n))); + } + function kr(e, t, n) { + t.errored || + ((t.errored = !0), + (t.value = null), + (t.reason = n), + (t = t.chunk), + t !== null && t.status === 'blocked' && Ir(e, t, n)); + } + function Po(e, t, n, o, r, s) { + t = t.split(':'); + var i = parseInt(t[0], 16), + a = br(e, i); + switch (a.status) { + case 'resolved_model': + Sr(a); + } + switch (a.status) { + case 'fulfilled': + (i = a.value), (a = a.reason); + for (var u = 0, h = e._rootArrayContexts, v = 1; v < t.length; v++) { + if ( + ((u = t[v]), + typeof i != 'object' || + i === null || + (lo(i) !== Xl && lo(i) !== Yl) || + !vr.call(i, u)) + ) + throw Error('Invalid reference.'); + (i = i[u]), + Kt(i) + ? ((u = 0), (a = h.get(i) || a)) + : ((a = null), + typeof i == 'string' + ? (u = i.length) + : typeof i == 'bigint' + ? ((u = Math.abs(Number(i))), + (u = u === 0 ? 1 : Math.floor(Math.log10(u)) + 1)) + : (u = ArrayBuffer.isView(i) ? i.byteLength : 0)); + } + return ( + (n = s(e, i, n, o)), + r !== null && + (a !== null + ? (a.fork && (r.fork = !0), sn(r, a.count, e)) + : 0 < u && sn(r, u, e)), + n + ); + case 'blocked': + return ( + Ee + ? ((e = Ee), e.deps++) + : (e = Ee = + { + chunk: null, + value: null, + reason: null, + deps: 1, + errored: !1, + }), + (r = { + handler: e, + parentObject: n, + key: o, + map: s, + path: t, + arrayRoot: r, + }), + a.value === null ? (a.value = [r]) : a.value.push(r), + a.reason === null ? (a.reason = [r]) : a.reason.push(r), + null + ); + case 'pending': + throw Error('Invalid forward reference.'); + default: + return ( + Ee + ? ((Ee.errored = !0), (Ee.value = null), (Ee.reason = a.reason)) + : (Ee = { + chunk: null, + value: null, + reason: a.reason, + deps: 0, + errored: !0, + }), + null + ); + } + } + function Bf(e, t) { + if (!Kt(t)) throw Error('Invalid Map initializer.'); + if (t.$$consumed === !0) throw Error('Already initialized Map.'); + return (e = new Map(t)), (t.$$consumed = !0), e; + } + function jf(e, t) { + if (!Kt(t)) throw Error('Invalid Set initializer.'); + if (t.$$consumed === !0) throw Error('Already initialized Set.'); + return (e = new Set(t)), (t.$$consumed = !0), e; + } + function Kf(e, t) { + if (!Kt(t)) throw Error('Invalid Iterator initializer.'); + if (t.$$consumed === !0) throw Error('Already initialized Iterator.'); + return (e = t[Symbol.iterator]()), (t.$$consumed = !0), e; + } + function qf(e, t, n, o) { + return o === 'then' && typeof t == 'function' ? null : t; + } + function xt(e, t, n, o, r, s, i) { + function a(v) { + if (!h.errored) { + (h.errored = !0), (h.value = null), (h.reason = v); + var _ = h.chunk; + _ !== null && _.status === 'blocked' && Ir(e, _, v); + } + } + t = parseInt(t.slice(2), 16); + var u = e._prefix + t; + if (((o = e._chunks), o.has(t))) + throw Error('Already initialized typed array.'); + if ( + (o.set( + t, + new nt('rejected', null, Error('Already initialized typed array.')) + ), + (t = e._formData.get(u).arrayBuffer()), + Ee) + ) { + var h = Ee; + h.deps++; + } else + h = Ee = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + return ( + t.then(function (v) { + try { + i !== null && sn(i, v.byteLength, e); + var _ = n === ArrayBuffer ? v : new n(v); + u !== '__proto__' && (r[s] = _), + s === '' && h.value === null && (h.value = _); + } catch (x) { + a(x); + return; + } + h.deps--, + h.deps === 0 && + ((v = h.chunk), + v !== null && + v.status === 'blocked' && + ((_ = v.value), + (v.status = 'fulfilled'), + (v.value = h.value), + (v.reason = null), + _ !== null && wr(e, _, h.value, v))); + }, a), + null + ); + } + function Zl(e, t, n, o) { + var r = e._chunks; + for ( + n = new nt('fulfilled', n, o), + r.set(t, n), + e = e._formData.getAll(e._prefix + t), + t = 0; + t < e.length; + t++ + ) + (r = e[t]), + typeof r == 'string' && + (r[0] === 'C' + ? o.close(r === 'C' ? '"$undefined"' : r.slice(1)) + : o.enqueueModel(r)); + } + function kl(e, t, n) { + function o(h) { + n !== 'bytes' || ArrayBuffer.isView(h) + ? r.enqueue(h) + : u.error(Error('Invalid data for bytes stream.')); + } + if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) + throw Error('Already initialized stream.'); + var r = null, + s = !1, + i = new ReadableStream({ + type: n, + start: function (h) { + r = h; + }, + }), + a = null, + u = { + enqueueModel: function (h) { + if (a === null) { + var v = Gl(e, h, -1); + Sr(v), + v.status === 'fulfilled' + ? o(v.value) + : (v.then(o, u.error), (a = v)); + } else { + v = a; + var _ = new nt('pending', null, null); + _.then(o, u.error), + (a = _), + v.then(function () { + a === _ && (a = null), Jl(e, _, h, -1); + }); + } + }, + close: function () { + if (!s) + if (((s = !0), a === null)) r.close(); + else { + var h = a; + (a = null), + h.then(function () { + return r.close(); + }); + } + }, + error: function (h) { + if (!s) + if (((s = !0), a === null)) r.error(h); + else { + var v = a; + (a = null), + v.then(function () { + return r.error(h); + }); + } + }, + }; + return Zl(e, t, i, u), i; + } + function Ei(e) { + this.next = e; + } + Ei.prototype = {}; + Ei.prototype[Hn] = function () { + return this; + }; + function vl(e, t, n) { + if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) + throw Error('Already initialized stream.'); + var o = [], + r = !1, + s = 0, + i = {}; + return ( + (i = + ((i[Hn] = function () { + var a = 0; + return new Ei(function (u) { + if (u !== void 0) + throw Error( + 'Values cannot be passed to next() of AsyncIterables passed to Client Components.' + ); + if (a === o.length) { + if (r) + return new nt('fulfilled', {done: !0, value: void 0}, null); + o[a] = new nt('pending', null, null); + } + return o[a++]; + }); + }), + i)), + (n = n ? i[Hn]() : i), + Zl(e, t, n, { + enqueueModel: function (a) { + s === o.length ? (o[s] = ml(e, a, !1)) : fi(e, o[s], a, !1), s++; + }, + close: function (a) { + if (!r) + for ( + r = !0, + s === o.length ? (o[s] = ml(e, a, !0)) : fi(e, o[s], a, !0), + s++; + s < o.length; + + ) + fi(e, o[s++], '"$undefined"', !0); + }, + error: function (a) { + if (!r) + for ( + r = !0, + s === o.length && (o[s] = new nt('pending', null, null)); + s < o.length; + + ) + Ir(e, o[s++], a); + }, + }), + n + ); + } + function Hf(e, t, n, o, r, s) { + if (o[0] === '$') { + switch (o[1]) { + case '$': + return s !== null && sn(s, o.length - 1, e), o.slice(1); + case '@': + return (t = parseInt(o.slice(2), 16)), br(e, t); + case 'h': + return (s = o.slice(2)), Po(e, s, t, n, null, Ff); + case 'T': + if (r === void 0 || e._temporaryReferences === void 0) + throw Error( + 'Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.' + ); + return yf(e._temporaryReferences, r); + case 'Q': + return (s = o.slice(2)), Po(e, s, t, n, null, Bf); + case 'W': + return (s = o.slice(2)), Po(e, s, t, n, null, jf); + case 'K': + for ( + t = o.slice(2), + t = e._prefix + t + '_', + n = new FormData(), + e = e._formData, + s = Array.from(e.keys()), + o = 0; + o < s.length; + o++ + ) + if (((r = s[o]), r.startsWith(t))) { + for ( + var i = e.getAll(r), a = r.slice(t.length), u = 0; + u < i.length; + u++ + ) + n.append(a, i[u]); + e.delete(r); + } + return n; + case 'i': + return (s = o.slice(2)), Po(e, s, t, n, null, Kf); + case 'I': + return 1 / 0; + case '-': + return o === '$-0' ? -0 : -1 / 0; + case 'N': + return NaN; + case 'u': + return; + case 'D': + return new Date(Date.parse(o.slice(2))); + case 'n': + if (((t = o.slice(2)), 300 < t.length)) + throw Error( + 'BigInt is too large. Received ' + + t.length + + ' digits but the limit is 300.' + ); + return s !== null && sn(s, t.length, e), BigInt(t); + case 'A': + return xt(e, o, ArrayBuffer, 1, t, n, s); + case 'O': + return xt(e, o, Int8Array, 1, t, n, s); + case 'o': + return xt(e, o, Uint8Array, 1, t, n, s); + case 'U': + return xt(e, o, Uint8ClampedArray, 1, t, n, s); + case 'S': + return xt(e, o, Int16Array, 2, t, n, s); + case 's': + return xt(e, o, Uint16Array, 2, t, n, s); + case 'L': + return xt(e, o, Int32Array, 4, t, n, s); + case 'l': + return xt(e, o, Uint32Array, 4, t, n, s); + case 'G': + return xt(e, o, Float32Array, 4, t, n, s); + case 'g': + return xt(e, o, Float64Array, 8, t, n, s); + case 'M': + return xt(e, o, BigInt64Array, 8, t, n, s); + case 'm': + return xt(e, o, BigUint64Array, 8, t, n, s); + case 'V': + return xt(e, o, DataView, 1, t, n, s); + case 'B': + return ( + (t = parseInt(o.slice(2), 16)), e._formData.get(e._prefix + t) + ); + case 'R': + return kl(e, o, void 0); + case 'r': + return kl(e, o, 'bytes'); + case 'X': + return vl(e, o, !1); + case 'x': + return vl(e, o, !0); + } + return (o = o.slice(1)), Po(e, o, t, n, s, qf); + } + return s !== null && sn(s, o.length, e), o; + } + function ec(e, t, n) { + var o = + 3 < arguments.length && arguments[3] !== void 0 + ? arguments[3] + : new FormData(), + r = + 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 1e6, + s = new Map(); + return { + _bundlerConfig: e, + _prefix: t, + _formData: o, + _chunks: s, + _closed: !1, + _closedReason: null, + _temporaryReferences: n, + _rootArrayContexts: new WeakMap(), + _arraySizeLimit: r, + }; + } + function tc(e) { + $f(e, Error('Connection closed.')); + } + function _l(e, t) { + var n = t.id; + if (typeof n != 'string') return null; + var o = Wl(e, n); + return ( + (e = Vl(o)), + (t = t.bound), + t instanceof Promise + ? Promise.all([t, e]).then(function (r) { + r = r[0]; + var s = No(o); + if (1e3 < r.length) + throw Error( + 'Server Function has too many bound arguments. Received ' + + r.length + + ' but the limit is 1000.' + ); + return s.bind.apply(s, [null].concat(r)); + }) + : e + ? Promise.resolve(e).then(function () { + return No(o); + }) + : Promise.resolve(No(o)) + ); + } + function nc(e, t, n, o) { + if ( + ((e = ec(t, n, void 0, e, o)), + tc(e), + (e = br(e, 0)), + e.then(function () {}), + e.status !== 'fulfilled') + ) + throw e.reason; + return e.value; + } + Gt.createClientModuleProxy = function (e) { + return (e = so({}, e, !1)), new Proxy(e, Sl); + }; + Gt.createTemporaryReferenceSet = function () { + return new WeakMap(); + }; + Gt.decodeAction = function (e, t) { + var n = new FormData(), + o = null, + r = new Set(); + return ( + e.forEach(function (s, i) { + i.startsWith('$ACTION_') + ? i.startsWith('$ACTION_REF_') + ? r.has(i) || + (r.add(i), + (s = '$ACTION_' + i.slice(12) + ':'), + (s = nc(e, t, s)), + (o = _l(t, s))) + : i.startsWith('$ACTION_ID_') && + !r.has(i) && + (r.add(i), (s = i.slice(11)), (o = _l(t, {id: s, bound: null}))) + : n.append(i, s); + }), + o === null + ? null + : o.then(function (s) { + return s.bind(null, n); + }) + ); + }; + Gt.decodeFormState = function (e, t, n) { + var o = t.get('$ACTION_KEY'); + if (typeof o != 'string') return Promise.resolve(null); + var r = null; + if ( + (t.forEach(function (i, a) { + a.startsWith('$ACTION_REF_') && + ((i = '$ACTION_' + a.slice(12) + ':'), (r = nc(t, n, i))); + }), + r === null) + ) + return Promise.resolve(null); + var s = r.id; + return Promise.resolve(r.bound).then(function (i) { + return i === null ? null : [e, o, s, i.length - 1]; + }); + }; + Gt.decodeReply = function (e, t, n) { + if (typeof e == 'string') { + var o = new FormData(); + o.append('0', e), (e = o); + } + return ( + (e = ec( + t, + '', + n ? n.temporaryReferences : void 0, + e, + n ? n.arraySizeLimit : void 0 + )), + (t = br(e, 0)), + tc(e), + t + ); + }; + Gt.prerender = function (e, t, n) { + return new Promise(function (o, r) { + var s = new Ll( + 21, + e, + t, + n ? n.onError : void 0, + n ? n.onPostpone : void 0, + function () { + var u = new ReadableStream( + { + type: 'bytes', + pull: function (h) { + Ul(s, h); + }, + cancel: function (h) { + (s.destination = null), ao(s, h); + }, + }, + {highWaterMark: 0} + ); + o({prelude: u}); + }, + r, + n ? n.identifierPrefix : void 0, + n ? n.temporaryReferences : void 0 + ); + if (n && n.signal) { + var i = n.signal; + if (i.aborted) ao(s, i.reason); + else { + var a = function () { + ao(s, i.reason), i.removeEventListener('abort', a); + }; + i.addEventListener('abort', a); + } + } + Hl(s); + }); + }; + Gt.registerClientReference = function (e, t, n) { + return so(e, t + '#' + n, !1); + }; + Gt.registerServerReference = function (e, t, n) { + return Object.defineProperties(e, { + $$typeof: {value: mr}, + $$id: {value: n === null ? t : t + '#' + n, configurable: !0}, + $$bound: {value: null, configurable: !0}, + bind: {value: Il, configurable: !0}, + toString: sf, + }); + }; + Gt.renderToReadableStream = function (e, t, n) { + var o = new Ll( + 20, + e, + t, + n ? n.onError : void 0, + n ? n.onPostpone : void 0, + Kn, + Kn, + n ? n.identifierPrefix : void 0, + n ? n.temporaryReferences : void 0 + ); + if (n && n.signal) { + var r = n.signal; + if (r.aborted) ao(o, r.reason); + else { + var s = function () { + ao(o, r.reason), r.removeEventListener('abort', s); + }; + r.addEventListener('abort', s); + } + } + return new ReadableStream( + { + type: 'bytes', + start: function () { + Hl(o); + }, + pull: function (i) { + Ul(o, i); + }, + cancel: function (i) { + (o.destination = null), ao(o, i); + }, + }, + {highWaterMark: 0} + ); + }; + }); + var rc = H((pn) => { + 'use strict'; + var un; + un = oc(); + pn.renderToReadableStream = un.renderToReadableStream; + pn.decodeReply = un.decodeReply; + pn.decodeAction = un.decodeAction; + pn.decodeFormState = un.decodeFormState; + pn.registerServerReference = un.registerServerReference; + pn.registerClientReference = un.registerClientReference; + pn.createClientModuleProxy = un.createClientModuleProxy; + pn.createTemporaryReferenceSet = un.createTemporaryReferenceSet; + }); + var Ge = H((Ai) => { + 'use strict'; + Object.defineProperty(Ai, '__esModule', {value: !0}); + var sc; + (function (e) { + e[(e.NONE = 0)] = 'NONE'; + let n = 1; + e[(e._abstract = n)] = '_abstract'; + let o = n + 1; + e[(e._accessor = o)] = '_accessor'; + let r = o + 1; + e[(e._as = r)] = '_as'; + let s = r + 1; + e[(e._assert = s)] = '_assert'; + let i = s + 1; + e[(e._asserts = i)] = '_asserts'; + let a = i + 1; + e[(e._async = a)] = '_async'; + let u = a + 1; + e[(e._await = u)] = '_await'; + let h = u + 1; + e[(e._checks = h)] = '_checks'; + let v = h + 1; + e[(e._constructor = v)] = '_constructor'; + let _ = v + 1; + e[(e._declare = _)] = '_declare'; + let x = _ + 1; + e[(e._enum = x)] = '_enum'; + let L = x + 1; + e[(e._exports = L)] = '_exports'; + let G = L + 1; + e[(e._from = G)] = '_from'; + let F = G + 1; + e[(e._get = F)] = '_get'; + let K = F + 1; + e[(e._global = K)] = '_global'; + let R = K + 1; + e[(e._implements = R)] = '_implements'; + let z = R + 1; + e[(e._infer = z)] = '_infer'; + let $ = z + 1; + e[(e._interface = $)] = '_interface'; + let O = $ + 1; + e[(e._is = O)] = '_is'; + let A = O + 1; + e[(e._keyof = A)] = '_keyof'; + let M = A + 1; + e[(e._mixins = M)] = '_mixins'; + let B = M + 1; + e[(e._module = B)] = '_module'; + let oe = B + 1; + e[(e._namespace = oe)] = '_namespace'; + let ne = oe + 1; + e[(e._of = ne)] = '_of'; + let re = ne + 1; + e[(e._opaque = re)] = '_opaque'; + let Le = re + 1; + e[(e._out = Le)] = '_out'; + let Fe = Le + 1; + e[(e._override = Fe)] = '_override'; + let mt = Fe + 1; + e[(e._private = mt)] = '_private'; + let kt = mt + 1; + e[(e._protected = kt)] = '_protected'; + let Qe = kt + 1; + e[(e._proto = Qe)] = '_proto'; + let vt = Qe + 1; + e[(e._public = vt)] = '_public'; + let it = vt + 1; + e[(e._readonly = it)] = '_readonly'; + let ct = it + 1; + e[(e._require = ct)] = '_require'; + let Ze = ct + 1; + e[(e._satisfies = Ze)] = '_satisfies'; + let ut = Ze + 1; + e[(e._set = ut)] = '_set'; + let Ft = ut + 1; + e[(e._static = Ft)] = '_static'; + let Vt = Ft + 1; + e[(e._symbol = Vt)] = '_symbol'; + let $t = Vt + 1; + e[(e._type = $t)] = '_type'; + let Bt = $t + 1; + e[(e._unique = Bt)] = '_unique'; + let on = Bt + 1; + e[(e._using = on)] = '_using'; + })(sc || (Ai.ContextualKeyword = sc = {})); + }); + var ce = H((Er) => { + 'use strict'; + Object.defineProperty(Er, '__esModule', {value: !0}); + var b; + (function (e) { + e[(e.PRECEDENCE_MASK = 15)] = 'PRECEDENCE_MASK'; + let n = 16; + e[(e.IS_KEYWORD = n)] = 'IS_KEYWORD'; + let o = 32; + e[(e.IS_ASSIGN = o)] = 'IS_ASSIGN'; + let r = 64; + e[(e.IS_RIGHT_ASSOCIATIVE = r)] = 'IS_RIGHT_ASSOCIATIVE'; + let s = 128; + e[(e.IS_PREFIX = s)] = 'IS_PREFIX'; + let i = 256; + e[(e.IS_POSTFIX = i)] = 'IS_POSTFIX'; + let a = 512; + e[(e.IS_EXPRESSION_START = a)] = 'IS_EXPRESSION_START'; + let u = 512; + e[(e.num = u)] = 'num'; + let h = 1536; + e[(e.bigint = h)] = 'bigint'; + let v = 2560; + e[(e.decimal = v)] = 'decimal'; + let _ = 3584; + e[(e.regexp = _)] = 'regexp'; + let x = 4608; + e[(e.string = x)] = 'string'; + let L = 5632; + e[(e.name = L)] = 'name'; + let G = 6144; + e[(e.eof = G)] = 'eof'; + let F = 7680; + e[(e.bracketL = F)] = 'bracketL'; + let K = 8192; + e[(e.bracketR = K)] = 'bracketR'; + let R = 9728; + e[(e.braceL = R)] = 'braceL'; + let z = 10752; + e[(e.braceBarL = z)] = 'braceBarL'; + let $ = 11264; + e[(e.braceR = $)] = 'braceR'; + let O = 12288; + e[(e.braceBarR = O)] = 'braceBarR'; + let A = 13824; + e[(e.parenL = A)] = 'parenL'; + let M = 14336; + e[(e.parenR = M)] = 'parenR'; + let B = 15360; + e[(e.comma = B)] = 'comma'; + let oe = 16384; + e[(e.semi = oe)] = 'semi'; + let ne = 17408; + e[(e.colon = ne)] = 'colon'; + let re = 18432; + e[(e.doubleColon = re)] = 'doubleColon'; + let Le = 19456; + e[(e.dot = Le)] = 'dot'; + let Fe = 20480; + e[(e.question = Fe)] = 'question'; + let mt = 21504; + e[(e.questionDot = mt)] = 'questionDot'; + let kt = 22528; + e[(e.arrow = kt)] = 'arrow'; + let Qe = 23552; + e[(e.template = Qe)] = 'template'; + let vt = 24576; + e[(e.ellipsis = vt)] = 'ellipsis'; + let it = 25600; + e[(e.backQuote = it)] = 'backQuote'; + let ct = 27136; + e[(e.dollarBraceL = ct)] = 'dollarBraceL'; + let Ze = 27648; + e[(e.at = Ze)] = 'at'; + let ut = 29184; + e[(e.hash = ut)] = 'hash'; + let Ft = 29728; + e[(e.eq = Ft)] = 'eq'; + let Vt = 30752; + e[(e.assign = Vt)] = 'assign'; + let $t = 32640; + e[(e.preIncDec = $t)] = 'preIncDec'; + let Bt = 33664; + e[(e.postIncDec = Bt)] = 'postIncDec'; + let on = 34432; + e[(e.bang = on)] = 'bang'; + let I = 35456; + e[(e.tilde = I)] = 'tilde'; + let D = 35841; + e[(e.pipeline = D)] = 'pipeline'; + let j = 36866; + e[(e.nullishCoalescing = j)] = 'nullishCoalescing'; + let Y = 37890; + e[(e.logicalOR = Y)] = 'logicalOR'; + let le = 38915; + e[(e.logicalAND = le)] = 'logicalAND'; + let Q = 39940; + e[(e.bitwiseOR = Q)] = 'bitwiseOR'; + let ke = 40965; + e[(e.bitwiseXOR = ke)] = 'bitwiseXOR'; + let ge = 41990; + e[(e.bitwiseAND = ge)] = 'bitwiseAND'; + let Ce = 43015; + e[(e.equality = Ce)] = 'equality'; + let We = 44040; + e[(e.lessThan = We)] = 'lessThan'; + let $e = 45064; + e[(e.greaterThan = $e)] = 'greaterThan'; + let Ne = 46088; + e[(e.relationalOrEqual = Ne)] = 'relationalOrEqual'; + let Ye = 47113; + e[(e.bitShiftL = Ye)] = 'bitShiftL'; + let et = 48137; + e[(e.bitShiftR = et)] = 'bitShiftR'; + let pt = 49802; + e[(e.plus = pt)] = 'plus'; + let zt = 50826; + e[(e.minus = zt)] = 'minus'; + let tt = 51723; + e[(e.modulo = tt)] = 'modulo'; + let Fn = 52235; + e[(e.star = Fn)] = 'star'; + let Qn = 53259; + e[(e.slash = Qn)] = 'slash'; + let bo = 54348; + e[(e.exponent = bo)] = 'exponent'; + let Zn = 55296; + e[(e.jsxName = Zn)] = 'jsxName'; + let $n = 56320; + e[(e.jsxText = $n)] = 'jsxText'; + let jt = 57344; + e[(e.jsxEmptyText = jt)] = 'jsxEmptyText'; + let kn = 58880; + e[(e.jsxTagStart = kn)] = 'jsxTagStart'; + let eo = 59392; + e[(e.jsxTagEnd = eo)] = 'jsxTagEnd'; + let to = 60928; + e[(e.typeParameterStart = to)] = 'typeParameterStart'; + let no = 61440; + e[(e.nonNullAssertion = no)] = 'nonNullAssertion'; + let Is = 62480; + e[(e._break = Is)] = '_break'; + let Ss = 63504; + e[(e._case = Ss)] = '_case'; + let bs = 64528; + e[(e._catch = bs)] = '_catch'; + let Es = 65552; + e[(e._continue = Es)] = '_continue'; + let As = 66576; + e[(e._debugger = As)] = '_debugger'; + let Ps = 67600; + e[(e._default = Ps)] = '_default'; + let Rs = 68624; + e[(e._do = Rs)] = '_do'; + let Ns = 69648; + e[(e._else = Ns)] = '_else'; + let Ds = 70672; + e[(e._finally = Ds)] = '_finally'; + let Os = 71696; + e[(e._for = Os)] = '_for'; + let Ms = 73232; + e[(e._function = Ms)] = '_function'; + let Ls = 73744; + e[(e._if = Ls)] = '_if'; + let Fs = 74768; + e[(e._return = Fs)] = '_return'; + let $s = 75792; + e[(e._switch = $s)] = '_switch'; + let Bs = 77456; + e[(e._throw = Bs)] = '_throw'; + let js = 77840; + e[(e._try = js)] = '_try'; + let Ks = 78864; + e[(e._var = Ks)] = '_var'; + let qs = 79888; + e[(e._let = qs)] = '_let'; + let Hs = 80912; + e[(e._const = Hs)] = '_const'; + let Us = 81936; + e[(e._while = Us)] = '_while'; + let Ws = 82960; + e[(e._with = Ws)] = '_with'; + let Vs = 84496; + e[(e._new = Vs)] = '_new'; + let zs = 85520; + e[(e._this = zs)] = '_this'; + let Xs = 86544; + e[(e._super = Xs)] = '_super'; + let Ys = 87568; + e[(e._class = Ys)] = '_class'; + let Gs = 88080; + e[(e._extends = Gs)] = '_extends'; + let Js = 89104; + e[(e._export = Js)] = '_export'; + let Qs = 90640; + e[(e._import = Qs)] = '_import'; + let Zs = 91664; + e[(e._yield = Zs)] = '_yield'; + let ei = 92688; + e[(e._null = ei)] = '_null'; + let ti = 93712; + e[(e._true = ti)] = '_true'; + let ni = 94736; + e[(e._false = ni)] = '_false'; + let oi = 95256; + e[(e._in = oi)] = '_in'; + let ri = 96280; + e[(e._instanceof = ri)] = '_instanceof'; + let si = 97936; + e[(e._typeof = si)] = '_typeof'; + let ii = 98960; + e[(e._void = ii)] = '_void'; + let kd = 99984; + e[(e._delete = kd)] = '_delete'; + let vd = 100880; + e[(e._async = vd)] = '_async'; + let _d = 101904; + e[(e._get = _d)] = '_get'; + let xd = 102928; + e[(e._set = xd)] = '_set'; + let gd = 103952; + e[(e._declare = gd)] = '_declare'; + let Cd = 104976; + e[(e._readonly = Cd)] = '_readonly'; + let wd = 106e3; + e[(e._abstract = wd)] = '_abstract'; + let Id = 107024; + e[(e._static = Id)] = '_static'; + let Sd = 107536; + e[(e._public = Sd)] = '_public'; + let bd = 108560; + e[(e._private = bd)] = '_private'; + let Ed = 109584; + e[(e._protected = Ed)] = '_protected'; + let Ad = 110608; + e[(e._override = Ad)] = '_override'; + let Pd = 112144; + e[(e._as = Pd)] = '_as'; + let Rd = 113168; + e[(e._enum = Rd)] = '_enum'; + let Nd = 114192; + e[(e._type = Nd)] = '_type'; + let Dd = 115216; + e[(e._implements = Dd)] = '_implements'; + })(b || (Er.TokenType = b = {})); + function Uf(e) { + switch (e) { + case b.num: + return 'num'; + case b.bigint: + return 'bigint'; + case b.decimal: + return 'decimal'; + case b.regexp: + return 'regexp'; + case b.string: + return 'string'; + case b.name: + return 'name'; + case b.eof: + return 'eof'; + case b.bracketL: + return '['; + case b.bracketR: + return ']'; + case b.braceL: + return '{'; + case b.braceBarL: + return '{|'; + case b.braceR: + return '}'; + case b.braceBarR: + return '|}'; + case b.parenL: + return '('; + case b.parenR: + return ')'; + case b.comma: + return ','; + case b.semi: + return ';'; + case b.colon: + return ':'; + case b.doubleColon: + return '::'; + case b.dot: + return '.'; + case b.question: + return '?'; + case b.questionDot: + return '?.'; + case b.arrow: + return '=>'; + case b.template: + return 'template'; + case b.ellipsis: + return '...'; + case b.backQuote: + return '`'; + case b.dollarBraceL: + return '${'; + case b.at: + return '@'; + case b.hash: + return '#'; + case b.eq: + return '='; + case b.assign: + return '_='; + case b.preIncDec: + return '++/--'; + case b.postIncDec: + return '++/--'; + case b.bang: + return '!'; + case b.tilde: + return '~'; + case b.pipeline: + return '|>'; + case b.nullishCoalescing: + return '??'; + case b.logicalOR: + return '||'; + case b.logicalAND: + return '&&'; + case b.bitwiseOR: + return '|'; + case b.bitwiseXOR: + return '^'; + case b.bitwiseAND: + return '&'; + case b.equality: + return '==/!='; + case b.lessThan: + return '<'; + case b.greaterThan: + return '>'; + case b.relationalOrEqual: + return '<=/>='; + case b.bitShiftL: + return '<<'; + case b.bitShiftR: + return '>>/>>>'; + case b.plus: + return '+'; + case b.minus: + return '-'; + case b.modulo: + return '%'; + case b.star: + return '*'; + case b.slash: + return '/'; + case b.exponent: + return '**'; + case b.jsxName: + return 'jsxName'; + case b.jsxText: + return 'jsxText'; + case b.jsxEmptyText: + return 'jsxEmptyText'; + case b.jsxTagStart: + return 'jsxTagStart'; + case b.jsxTagEnd: + return 'jsxTagEnd'; + case b.typeParameterStart: + return 'typeParameterStart'; + case b.nonNullAssertion: + return 'nonNullAssertion'; + case b._break: + return 'break'; + case b._case: + return 'case'; + case b._catch: + return 'catch'; + case b._continue: + return 'continue'; + case b._debugger: + return 'debugger'; + case b._default: + return 'default'; + case b._do: + return 'do'; + case b._else: + return 'else'; + case b._finally: + return 'finally'; + case b._for: + return 'for'; + case b._function: + return 'function'; + case b._if: + return 'if'; + case b._return: + return 'return'; + case b._switch: + return 'switch'; + case b._throw: + return 'throw'; + case b._try: + return 'try'; + case b._var: + return 'var'; + case b._let: + return 'let'; + case b._const: + return 'const'; + case b._while: + return 'while'; + case b._with: + return 'with'; + case b._new: + return 'new'; + case b._this: + return 'this'; + case b._super: + return 'super'; + case b._class: + return 'class'; + case b._extends: + return 'extends'; + case b._export: + return 'export'; + case b._import: + return 'import'; + case b._yield: + return 'yield'; + case b._null: + return 'null'; + case b._true: + return 'true'; + case b._false: + return 'false'; + case b._in: + return 'in'; + case b._instanceof: + return 'instanceof'; + case b._typeof: + return 'typeof'; + case b._void: + return 'void'; + case b._delete: + return 'delete'; + case b._async: + return 'async'; + case b._get: + return 'get'; + case b._set: + return 'set'; + case b._declare: + return 'declare'; + case b._readonly: + return 'readonly'; + case b._abstract: + return 'abstract'; + case b._static: + return 'static'; + case b._public: + return 'public'; + case b._private: + return 'private'; + case b._protected: + return 'protected'; + case b._override: + return 'override'; + case b._as: + return 'as'; + case b._enum: + return 'enum'; + case b._type: + return 'type'; + case b._implements: + return 'implements'; + default: + return ''; + } + } + Er.formatTokenType = Uf; + }); + var Pr = H((Bo) => { + 'use strict'; + Object.defineProperty(Bo, '__esModule', {value: !0}); + var Wf = Ge(), + Vf = ce(), + Pi = class { + constructor(t, n, o) { + (this.startTokenIndex = t), + (this.endTokenIndex = n), + (this.isFunctionScope = o); + } + }; + Bo.Scope = Pi; + var Ar = class { + constructor(t, n, o, r, s, i, a, u, h, v, _, x, L) { + (this.potentialArrowAt = t), + (this.noAnonFunctionType = n), + (this.inDisallowConditionalTypesContext = o), + (this.tokensLength = r), + (this.scopesLength = s), + (this.pos = i), + (this.type = a), + (this.contextualKeyword = u), + (this.start = h), + (this.end = v), + (this.isType = _), + (this.scopeDepth = x), + (this.error = L); + } + }; + Bo.StateSnapshot = Ar; + var Ri = class e { + constructor() { + e.prototype.__init.call(this), + e.prototype.__init2.call(this), + e.prototype.__init3.call(this), + e.prototype.__init4.call(this), + e.prototype.__init5.call(this), + e.prototype.__init6.call(this), + e.prototype.__init7.call(this), + e.prototype.__init8.call(this), + e.prototype.__init9.call(this), + e.prototype.__init10.call(this), + e.prototype.__init11.call(this), + e.prototype.__init12.call(this), + e.prototype.__init13.call(this); + } + __init() { + this.potentialArrowAt = -1; + } + __init2() { + this.noAnonFunctionType = !1; + } + __init3() { + this.inDisallowConditionalTypesContext = !1; + } + __init4() { + this.tokens = []; + } + __init5() { + this.scopes = []; + } + __init6() { + this.pos = 0; + } + __init7() { + this.type = Vf.TokenType.eof; + } + __init8() { + this.contextualKeyword = Wf.ContextualKeyword.NONE; + } + __init9() { + this.start = 0; + } + __init10() { + this.end = 0; + } + __init11() { + this.isType = !1; + } + __init12() { + this.scopeDepth = 0; + } + __init13() { + this.error = null; + } + snapshot() { + return new Ar( + this.potentialArrowAt, + this.noAnonFunctionType, + this.inDisallowConditionalTypesContext, + this.tokens.length, + this.scopes.length, + this.pos, + this.type, + this.contextualKeyword, + this.start, + this.end, + this.isType, + this.scopeDepth, + this.error + ); + } + restoreFromSnapshot(t) { + (this.potentialArrowAt = t.potentialArrowAt), + (this.noAnonFunctionType = t.noAnonFunctionType), + (this.inDisallowConditionalTypesContext = + t.inDisallowConditionalTypesContext), + (this.tokens.length = t.tokensLength), + (this.scopes.length = t.scopesLength), + (this.pos = t.pos), + (this.type = t.type), + (this.contextualKeyword = t.contextualKeyword), + (this.start = t.start), + (this.end = t.end), + (this.isType = t.isType), + (this.scopeDepth = t.scopeDepth), + (this.error = t.error); + } + }; + Bo.default = Ri; + }); + var gt = H((Rr) => { + 'use strict'; + Object.defineProperty(Rr, '__esModule', {value: !0}); + var wn; + (function (e) { + e[(e.backSpace = 8)] = 'backSpace'; + let n = 10; + e[(e.lineFeed = n)] = 'lineFeed'; + let o = 9; + e[(e.tab = o)] = 'tab'; + let r = 13; + e[(e.carriageReturn = r)] = 'carriageReturn'; + let s = 14; + e[(e.shiftOut = s)] = 'shiftOut'; + let i = 32; + e[(e.space = i)] = 'space'; + let a = 33; + e[(e.exclamationMark = a)] = 'exclamationMark'; + let u = 34; + e[(e.quotationMark = u)] = 'quotationMark'; + let h = 35; + e[(e.numberSign = h)] = 'numberSign'; + let v = 36; + e[(e.dollarSign = v)] = 'dollarSign'; + let _ = 37; + e[(e.percentSign = _)] = 'percentSign'; + let x = 38; + e[(e.ampersand = x)] = 'ampersand'; + let L = 39; + e[(e.apostrophe = L)] = 'apostrophe'; + let G = 40; + e[(e.leftParenthesis = G)] = 'leftParenthesis'; + let F = 41; + e[(e.rightParenthesis = F)] = 'rightParenthesis'; + let K = 42; + e[(e.asterisk = K)] = 'asterisk'; + let R = 43; + e[(e.plusSign = R)] = 'plusSign'; + let z = 44; + e[(e.comma = z)] = 'comma'; + let $ = 45; + e[(e.dash = $)] = 'dash'; + let O = 46; + e[(e.dot = O)] = 'dot'; + let A = 47; + e[(e.slash = A)] = 'slash'; + let M = 48; + e[(e.digit0 = M)] = 'digit0'; + let B = 49; + e[(e.digit1 = B)] = 'digit1'; + let oe = 50; + e[(e.digit2 = oe)] = 'digit2'; + let ne = 51; + e[(e.digit3 = ne)] = 'digit3'; + let re = 52; + e[(e.digit4 = re)] = 'digit4'; + let Le = 53; + e[(e.digit5 = Le)] = 'digit5'; + let Fe = 54; + e[(e.digit6 = Fe)] = 'digit6'; + let mt = 55; + e[(e.digit7 = mt)] = 'digit7'; + let kt = 56; + e[(e.digit8 = kt)] = 'digit8'; + let Qe = 57; + e[(e.digit9 = Qe)] = 'digit9'; + let vt = 58; + e[(e.colon = vt)] = 'colon'; + let it = 59; + e[(e.semicolon = it)] = 'semicolon'; + let ct = 60; + e[(e.lessThan = ct)] = 'lessThan'; + let Ze = 61; + e[(e.equalsTo = Ze)] = 'equalsTo'; + let ut = 62; + e[(e.greaterThan = ut)] = 'greaterThan'; + let Ft = 63; + e[(e.questionMark = Ft)] = 'questionMark'; + let Vt = 64; + e[(e.atSign = Vt)] = 'atSign'; + let $t = 65; + e[(e.uppercaseA = $t)] = 'uppercaseA'; + let Bt = 66; + e[(e.uppercaseB = Bt)] = 'uppercaseB'; + let on = 67; + e[(e.uppercaseC = on)] = 'uppercaseC'; + let I = 68; + e[(e.uppercaseD = I)] = 'uppercaseD'; + let D = 69; + e[(e.uppercaseE = D)] = 'uppercaseE'; + let j = 70; + e[(e.uppercaseF = j)] = 'uppercaseF'; + let Y = 71; + e[(e.uppercaseG = Y)] = 'uppercaseG'; + let le = 72; + e[(e.uppercaseH = le)] = 'uppercaseH'; + let Q = 73; + e[(e.uppercaseI = Q)] = 'uppercaseI'; + let ke = 74; + e[(e.uppercaseJ = ke)] = 'uppercaseJ'; + let ge = 75; + e[(e.uppercaseK = ge)] = 'uppercaseK'; + let Ce = 76; + e[(e.uppercaseL = Ce)] = 'uppercaseL'; + let We = 77; + e[(e.uppercaseM = We)] = 'uppercaseM'; + let $e = 78; + e[(e.uppercaseN = $e)] = 'uppercaseN'; + let Ne = 79; + e[(e.uppercaseO = Ne)] = 'uppercaseO'; + let Ye = 80; + e[(e.uppercaseP = Ye)] = 'uppercaseP'; + let et = 81; + e[(e.uppercaseQ = et)] = 'uppercaseQ'; + let pt = 82; + e[(e.uppercaseR = pt)] = 'uppercaseR'; + let zt = 83; + e[(e.uppercaseS = zt)] = 'uppercaseS'; + let tt = 84; + e[(e.uppercaseT = tt)] = 'uppercaseT'; + let Fn = 85; + e[(e.uppercaseU = Fn)] = 'uppercaseU'; + let Qn = 86; + e[(e.uppercaseV = Qn)] = 'uppercaseV'; + let bo = 87; + e[(e.uppercaseW = bo)] = 'uppercaseW'; + let Zn = 88; + e[(e.uppercaseX = Zn)] = 'uppercaseX'; + let $n = 89; + e[(e.uppercaseY = $n)] = 'uppercaseY'; + let jt = 90; + e[(e.uppercaseZ = jt)] = 'uppercaseZ'; + let kn = 91; + e[(e.leftSquareBracket = kn)] = 'leftSquareBracket'; + let eo = 92; + e[(e.backslash = eo)] = 'backslash'; + let to = 93; + e[(e.rightSquareBracket = to)] = 'rightSquareBracket'; + let no = 94; + e[(e.caret = no)] = 'caret'; + let Is = 95; + e[(e.underscore = Is)] = 'underscore'; + let Ss = 96; + e[(e.graveAccent = Ss)] = 'graveAccent'; + let bs = 97; + e[(e.lowercaseA = bs)] = 'lowercaseA'; + let Es = 98; + e[(e.lowercaseB = Es)] = 'lowercaseB'; + let As = 99; + e[(e.lowercaseC = As)] = 'lowercaseC'; + let Ps = 100; + e[(e.lowercaseD = Ps)] = 'lowercaseD'; + let Rs = 101; + e[(e.lowercaseE = Rs)] = 'lowercaseE'; + let Ns = 102; + e[(e.lowercaseF = Ns)] = 'lowercaseF'; + let Ds = 103; + e[(e.lowercaseG = Ds)] = 'lowercaseG'; + let Os = 104; + e[(e.lowercaseH = Os)] = 'lowercaseH'; + let Ms = 105; + e[(e.lowercaseI = Ms)] = 'lowercaseI'; + let Ls = 106; + e[(e.lowercaseJ = Ls)] = 'lowercaseJ'; + let Fs = 107; + e[(e.lowercaseK = Fs)] = 'lowercaseK'; + let $s = 108; + e[(e.lowercaseL = $s)] = 'lowercaseL'; + let Bs = 109; + e[(e.lowercaseM = Bs)] = 'lowercaseM'; + let js = 110; + e[(e.lowercaseN = js)] = 'lowercaseN'; + let Ks = 111; + e[(e.lowercaseO = Ks)] = 'lowercaseO'; + let qs = 112; + e[(e.lowercaseP = qs)] = 'lowercaseP'; + let Hs = 113; + e[(e.lowercaseQ = Hs)] = 'lowercaseQ'; + let Us = 114; + e[(e.lowercaseR = Us)] = 'lowercaseR'; + let Ws = 115; + e[(e.lowercaseS = Ws)] = 'lowercaseS'; + let Vs = 116; + e[(e.lowercaseT = Vs)] = 'lowercaseT'; + let zs = 117; + e[(e.lowercaseU = zs)] = 'lowercaseU'; + let Xs = 118; + e[(e.lowercaseV = Xs)] = 'lowercaseV'; + let Ys = 119; + e[(e.lowercaseW = Ys)] = 'lowercaseW'; + let Gs = 120; + e[(e.lowercaseX = Gs)] = 'lowercaseX'; + let Js = 121; + e[(e.lowercaseY = Js)] = 'lowercaseY'; + let Qs = 122; + e[(e.lowercaseZ = Qs)] = 'lowercaseZ'; + let Zs = 123; + e[(e.leftCurlyBrace = Zs)] = 'leftCurlyBrace'; + let ei = 124; + e[(e.verticalBar = ei)] = 'verticalBar'; + let ti = 125; + e[(e.rightCurlyBrace = ti)] = 'rightCurlyBrace'; + let ni = 126; + e[(e.tilde = ni)] = 'tilde'; + let oi = 160; + e[(e.nonBreakingSpace = oi)] = 'nonBreakingSpace'; + let ri = 5760; + e[(e.oghamSpaceMark = ri)] = 'oghamSpaceMark'; + let si = 8232; + e[(e.lineSeparator = si)] = 'lineSeparator'; + let ii = 8233; + e[(e.paragraphSeparator = ii)] = 'paragraphSeparator'; + })(wn || (Rr.charCodes = wn = {})); + function zf(e) { + return ( + (e >= wn.digit0 && e <= wn.digit9) || + (e >= wn.lowercaseA && e <= wn.lowercaseF) || + (e >= wn.uppercaseA && e <= wn.uppercaseF) + ); + } + Rr.isDigit = zf; + }); + var Ct = H((qe) => { + 'use strict'; + Object.defineProperty(qe, '__esModule', {value: !0}); + function Xf(e) { + return e && e.__esModule ? e : {default: e}; + } + var Yf = Pr(), + Gf = Xf(Yf), + Jf = gt(); + qe.isJSXEnabled; + qe.isTypeScriptEnabled; + qe.isFlowEnabled; + qe.state; + qe.input; + qe.nextContextId; + function Qf() { + return qe.nextContextId++; + } + qe.getNextContextId = Qf; + function Zf(e) { + if ('pos' in e) { + let t = ic(e.pos); + (e.message += ` (${t.line}:${t.column})`), (e.loc = t); + } + return e; + } + qe.augmentError = Zf; + var Nr = class { + constructor(t, n) { + (this.line = t), (this.column = n); + } + }; + qe.Loc = Nr; + function ic(e) { + let t = 1, + n = 1; + for (let o = 0; o < e; o++) + qe.input.charCodeAt(o) === Jf.charCodes.lineFeed ? (t++, (n = 1)) : n++; + return new Nr(t, n); + } + qe.locationForIndex = ic; + function eh(e, t, n, o) { + (qe.input = e), + (qe.state = new Gf.default()), + (qe.nextContextId = 1), + (qe.isJSXEnabled = t), + (qe.isTypeScriptEnabled = n), + (qe.isFlowEnabled = o); + } + qe.initParser = eh; + }); + var Sn = H((It) => { + 'use strict'; + Object.defineProperty(It, '__esModule', {value: !0}); + var In = Ve(), + Vn = ce(), + Dr = gt(), + wt = Ct(); + function th(e) { + return wt.state.contextualKeyword === e; + } + It.isContextual = th; + function nh(e) { + let t = In.lookaheadTypeAndKeyword.call(void 0); + return t.type === Vn.TokenType.name && t.contextualKeyword === e; + } + It.isLookaheadContextual = nh; + function ac(e) { + return ( + wt.state.contextualKeyword === e && + In.eat.call(void 0, Vn.TokenType.name) + ); + } + It.eatContextual = ac; + function oh(e) { + ac(e) || Or(); + } + It.expectContextual = oh; + function lc() { + return ( + In.match.call(void 0, Vn.TokenType.eof) || + In.match.call(void 0, Vn.TokenType.braceR) || + cc() + ); + } + It.canInsertSemicolon = lc; + function cc() { + let e = wt.state.tokens[wt.state.tokens.length - 1], + t = e ? e.end : 0; + for (let n = t; n < wt.state.start; n++) { + let o = wt.input.charCodeAt(n); + if ( + o === Dr.charCodes.lineFeed || + o === Dr.charCodes.carriageReturn || + o === 8232 || + o === 8233 + ) + return !0; + } + return !1; + } + It.hasPrecedingLineBreak = cc; + function rh() { + let e = In.nextTokenStart.call(void 0); + for (let t = wt.state.end; t < e; t++) { + let n = wt.input.charCodeAt(t); + if ( + n === Dr.charCodes.lineFeed || + n === Dr.charCodes.carriageReturn || + n === 8232 || + n === 8233 + ) + return !0; + } + return !1; + } + It.hasFollowingLineBreak = rh; + function uc() { + return In.eat.call(void 0, Vn.TokenType.semi) || lc(); + } + It.isLineTerminator = uc; + function sh() { + uc() || Or('Unexpected token, expected ";"'); + } + It.semicolon = sh; + function ih(e) { + In.eat.call(void 0, e) || + Or( + `Unexpected token, expected "${Vn.formatTokenType.call(void 0, e)}"` + ); + } + It.expect = ih; + function Or(e = 'Unexpected token', t = wt.state.start) { + if (wt.state.error) return; + let n = new SyntaxError(e); + (n.pos = t), + (wt.state.error = n), + (wt.state.pos = wt.input.length), + In.finishToken.call(void 0, Vn.TokenType.eof); + } + It.unexpected = Or; + }); + var Di = H((zn) => { + 'use strict'; + Object.defineProperty(zn, '__esModule', {value: !0}); + var Ni = gt(), + ah = [ + 9, + 11, + 12, + Ni.charCodes.space, + Ni.charCodes.nonBreakingSpace, + Ni.charCodes.oghamSpaceMark, + 8192, + 8193, + 8194, + 8195, + 8196, + 8197, + 8198, + 8199, + 8200, + 8201, + 8202, + 8239, + 8287, + 12288, + 65279, + ]; + zn.WHITESPACE_CHARS = ah; + var lh = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; + zn.skipWhiteSpace = lh; + var ch = new Uint8Array(65536); + zn.IS_WHITESPACE = ch; + for (let e of zn.WHITESPACE_CHARS) zn.IS_WHITESPACE[e] = 1; + }); + var fo = H((qt) => { + 'use strict'; + Object.defineProperty(qt, '__esModule', {value: !0}); + var pc = gt(), + uh = Di(); + function ph(e) { + if (e < 48) return e === 36; + if (e < 58) return !0; + if (e < 65) return !1; + if (e < 91) return !0; + if (e < 97) return e === 95; + if (e < 123) return !0; + if (e < 128) return !1; + throw new Error('Should not be called with non-ASCII char code.'); + } + var dh = new Uint8Array(65536); + qt.IS_IDENTIFIER_CHAR = dh; + for (let e = 0; e < 128; e++) qt.IS_IDENTIFIER_CHAR[e] = ph(e) ? 1 : 0; + for (let e = 128; e < 65536; e++) qt.IS_IDENTIFIER_CHAR[e] = 1; + for (let e of uh.WHITESPACE_CHARS) qt.IS_IDENTIFIER_CHAR[e] = 0; + qt.IS_IDENTIFIER_CHAR[8232] = 0; + qt.IS_IDENTIFIER_CHAR[8233] = 0; + var fh = qt.IS_IDENTIFIER_CHAR.slice(); + qt.IS_IDENTIFIER_START = fh; + for (let e = pc.charCodes.digit0; e <= pc.charCodes.digit9; e++) + qt.IS_IDENTIFIER_START[e] = 0; + }); + var dc = H((Oi) => { + 'use strict'; + Object.defineProperty(Oi, '__esModule', {value: !0}); + var ie = Ge(), + ue = ce(), + hh = new Int32Array([ + -1, + 27, + 783, + 918, + 1755, + 2376, + 2862, + 3483, + -1, + 3699, + -1, + 4617, + 4752, + 4833, + 5130, + 5508, + 5940, + -1, + 6480, + 6939, + 7749, + 8181, + 8451, + 8613, + -1, + 8829, + -1, + -1, + -1, + 54, + 243, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 432, + -1, + -1, + -1, + 675, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 81, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 108, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 135, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 162, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 189, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 216, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._abstract << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 270, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 297, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 324, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 351, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 378, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 405, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._accessor << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._as << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 459, + -1, + -1, + -1, + -1, + -1, + 594, + -1, + -1, + -1, + -1, + -1, + -1, + 486, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 513, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 540, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._assert << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 567, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._asserts << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 621, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 648, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._async << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 702, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 729, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 756, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._await << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 810, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 837, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 864, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 891, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._break << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 945, + -1, + -1, + -1, + -1, + -1, + -1, + 1107, + -1, + -1, + -1, + 1242, + -1, + -1, + 1350, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 972, + 1026, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 999, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._case << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1053, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1080, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._catch << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1134, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1161, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1188, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1215, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._checks << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1269, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1296, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1323, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._class << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1377, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1404, + 1620, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1431, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._const << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1458, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1485, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1512, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1539, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1566, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1593, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._constructor << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1647, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1674, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1701, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1728, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._continue << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1782, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2349, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1809, + 1971, + -1, + -1, + 2106, + -1, + -1, + -1, + -1, + -1, + 2241, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1836, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1863, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1890, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1917, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1944, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._debugger << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 1998, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2025, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2052, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2079, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._declare << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2133, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2160, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2187, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2214, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._default << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2268, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2295, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2322, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._delete << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._do << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2403, + -1, + 2484, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2565, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2430, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2457, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._else << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2511, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2538, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._enum << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2592, + -1, + -1, + -1, + 2727, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2619, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2646, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2673, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._export << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2700, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._exports << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2754, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2781, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2808, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2835, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._extends << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2889, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2997, + -1, + -1, + -1, + -1, + -1, + 3159, + -1, + -1, + 3213, + -1, + -1, + 3294, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2916, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2943, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 2970, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._false << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3024, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3051, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3078, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3105, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3132, + -1, + (ue.TokenType._finally << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3186, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._for << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3240, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3267, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._from << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3321, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3348, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3375, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3402, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3429, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3456, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._function << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3510, + -1, + -1, + -1, + -1, + -1, + -1, + 3564, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3537, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._get << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3591, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3618, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3645, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3672, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._global << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3726, + -1, + -1, + -1, + -1, + -1, + -1, + 3753, + 4077, + -1, + -1, + -1, + -1, + 4590, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._if << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3780, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3807, + -1, + -1, + 3996, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3834, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3861, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3888, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3915, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3942, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 3969, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._implements << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4023, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4050, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._import << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._in << 1) + 1, + -1, + -1, + -1, + -1, + -1, + 4104, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4185, + 4401, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4131, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4158, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._infer << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4212, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4239, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4266, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4293, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4320, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4347, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4374, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._instanceof << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4428, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4455, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4482, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4509, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4536, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4563, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._interface << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._is << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4644, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4671, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4698, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4725, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._keyof << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4779, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4806, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._let << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4860, + -1, + -1, + -1, + -1, + -1, + 4995, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4887, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4914, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4941, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 4968, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._mixins << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5022, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5049, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5076, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5103, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._module << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5157, + -1, + -1, + -1, + 5373, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5427, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5184, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5211, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5238, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5265, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5292, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5319, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5346, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._namespace << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5400, + -1, + -1, + -1, + (ue.TokenType._new << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5454, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5481, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._null << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5535, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5562, + -1, + -1, + -1, + -1, + 5697, + 5751, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._of << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5589, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5616, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5643, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5670, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._opaque << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5724, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._out << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5778, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5805, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5832, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5859, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5886, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5913, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._override << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5967, + -1, + -1, + 6345, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 5994, + -1, + -1, + -1, + -1, + -1, + 6129, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6021, + -1, + -1, + -1, + -1, + -1, + 6048, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6075, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6102, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._private << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6156, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6183, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6318, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6210, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6237, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6264, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6291, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._protected << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._proto << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6372, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6399, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6426, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6453, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._public << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6507, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6534, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6696, + -1, + -1, + 6831, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6561, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6588, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6615, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6642, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6669, + -1, + ie.ContextualKeyword._readonly << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6723, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6750, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6777, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6804, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._require << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6858, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6885, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6912, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._return << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6966, + -1, + -1, + -1, + 7182, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7236, + 7371, + -1, + 7479, + -1, + 7614, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 6993, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7020, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7047, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7074, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7101, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7128, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7155, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._satisfies << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7209, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._set << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7263, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7290, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7317, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7344, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._static << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7398, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7425, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7452, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._super << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7506, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7533, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7560, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7587, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._switch << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7641, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7668, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7695, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7722, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._symbol << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7776, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7938, + -1, + -1, + -1, + -1, + -1, + -1, + 8046, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7803, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7857, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7830, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._this << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7884, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7911, + -1, + -1, + -1, + (ue.TokenType._throw << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 7965, + -1, + -1, + -1, + 8019, + -1, + -1, + -1, + -1, + -1, + -1, + 7992, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._true << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._try << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8073, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8100, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._type << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8127, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8154, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._typeof << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8208, + -1, + -1, + -1, + -1, + 8343, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8235, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8262, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8289, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8316, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._unique << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8370, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8397, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8424, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ie.ContextualKeyword._using << 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8478, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8532, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8505, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._var << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8559, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8586, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._void << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8640, + 8748, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8667, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8694, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8721, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._while << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8775, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8802, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._with << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8856, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8883, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8910, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 8937, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + (ue.TokenType._yield << 1) + 1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + ]); + Oi.READ_WORD_TREE = hh; + }); + var yc = H((Li) => { + 'use strict'; + Object.defineProperty(Li, '__esModule', {value: !0}); + var Ht = Ct(), + bn = gt(), + fc = fo(), + Mi = Ve(), + hc = dc(), + Tc = ce(); + function Th() { + let e = 0, + t = 0, + n = Ht.state.pos; + for ( + ; + n < Ht.input.length && + ((t = Ht.input.charCodeAt(n)), + !(t < bn.charCodes.lowercaseA || t > bn.charCodes.lowercaseZ)); + + ) { + let r = hc.READ_WORD_TREE[e + (t - bn.charCodes.lowercaseA) + 1]; + if (r === -1) break; + (e = r), n++; + } + let o = hc.READ_WORD_TREE[e]; + if (o > -1 && !fc.IS_IDENTIFIER_CHAR[t]) { + (Ht.state.pos = n), + o & 1 + ? Mi.finishToken.call(void 0, o >>> 1) + : Mi.finishToken.call(void 0, Tc.TokenType.name, o >>> 1); + return; + } + for (; n < Ht.input.length; ) { + let r = Ht.input.charCodeAt(n); + if (fc.IS_IDENTIFIER_CHAR[r]) n++; + else if (r === bn.charCodes.backslash) { + if ( + ((n += 2), Ht.input.charCodeAt(n) === bn.charCodes.leftCurlyBrace) + ) { + for ( + ; + n < Ht.input.length && + Ht.input.charCodeAt(n) !== bn.charCodes.rightCurlyBrace; + + ) + n++; + n++; + } + } else if ( + r === bn.charCodes.atSign && + Ht.input.charCodeAt(n + 1) === bn.charCodes.atSign + ) + n += 2; + else break; + } + (Ht.state.pos = n), Mi.finishToken.call(void 0, Tc.TokenType.name); + } + Li.default = Th; + }); + var Ve = H((xe) => { + 'use strict'; + Object.defineProperty(xe, '__esModule', {value: !0}); + function yh(e) { + return e && e.__esModule ? e : {default: e}; + } + var d = Ct(), + ho = Sn(), + g = gt(), + kc = fo(), + $i = Di(), + mh = Ge(), + kh = yc(), + vh = yh(kh), + U = ce(), + Oe; + (function (e) { + e[(e.Access = 0)] = 'Access'; + let n = 1; + e[(e.ExportAccess = n)] = 'ExportAccess'; + let o = n + 1; + e[(e.TopLevelDeclaration = o)] = 'TopLevelDeclaration'; + let r = o + 1; + e[(e.FunctionScopedDeclaration = r)] = 'FunctionScopedDeclaration'; + let s = r + 1; + e[(e.BlockScopedDeclaration = s)] = 'BlockScopedDeclaration'; + let i = s + 1; + e[(e.ObjectShorthandTopLevelDeclaration = i)] = + 'ObjectShorthandTopLevelDeclaration'; + let a = i + 1; + e[(e.ObjectShorthandFunctionScopedDeclaration = a)] = + 'ObjectShorthandFunctionScopedDeclaration'; + let u = a + 1; + e[(e.ObjectShorthandBlockScopedDeclaration = u)] = + 'ObjectShorthandBlockScopedDeclaration'; + let h = u + 1; + e[(e.ObjectShorthand = h)] = 'ObjectShorthand'; + let v = h + 1; + e[(e.ImportDeclaration = v)] = 'ImportDeclaration'; + let _ = v + 1; + e[(e.ObjectKey = _)] = 'ObjectKey'; + let x = _ + 1; + e[(e.ImportAccess = x)] = 'ImportAccess'; + })(Oe || (xe.IdentifierRole = Oe = {})); + var mc; + (function (e) { + e[(e.NoChildren = 0)] = 'NoChildren'; + let n = 1; + e[(e.OneChild = n)] = 'OneChild'; + let o = n + 1; + e[(e.StaticChildren = o)] = 'StaticChildren'; + let r = o + 1; + e[(e.KeyAfterPropSpread = r)] = 'KeyAfterPropSpread'; + })(mc || (xe.JSXRole = mc = {})); + function _h(e) { + let t = e.identifierRole; + return ( + t === Oe.TopLevelDeclaration || + t === Oe.FunctionScopedDeclaration || + t === Oe.BlockScopedDeclaration || + t === Oe.ObjectShorthandTopLevelDeclaration || + t === Oe.ObjectShorthandFunctionScopedDeclaration || + t === Oe.ObjectShorthandBlockScopedDeclaration + ); + } + xe.isDeclaration = _h; + function xh(e) { + let t = e.identifierRole; + return ( + t === Oe.FunctionScopedDeclaration || + t === Oe.BlockScopedDeclaration || + t === Oe.ObjectShorthandFunctionScopedDeclaration || + t === Oe.ObjectShorthandBlockScopedDeclaration + ); + } + xe.isNonTopLevelDeclaration = xh; + function gh(e) { + let t = e.identifierRole; + return ( + t === Oe.TopLevelDeclaration || + t === Oe.ObjectShorthandTopLevelDeclaration || + t === Oe.ImportDeclaration + ); + } + xe.isTopLevelDeclaration = gh; + function Ch(e) { + let t = e.identifierRole; + return ( + t === Oe.TopLevelDeclaration || + t === Oe.BlockScopedDeclaration || + t === Oe.ObjectShorthandTopLevelDeclaration || + t === Oe.ObjectShorthandBlockScopedDeclaration + ); + } + xe.isBlockScopedDeclaration = Ch; + function wh(e) { + let t = e.identifierRole; + return ( + t === Oe.FunctionScopedDeclaration || + t === Oe.ObjectShorthandFunctionScopedDeclaration + ); + } + xe.isFunctionScopedDeclaration = wh; + function Ih(e) { + return ( + e.identifierRole === Oe.ObjectShorthandTopLevelDeclaration || + e.identifierRole === Oe.ObjectShorthandBlockScopedDeclaration || + e.identifierRole === Oe.ObjectShorthandFunctionScopedDeclaration + ); + } + xe.isObjectShorthandDeclaration = Ih; + var jo = class { + constructor() { + (this.type = d.state.type), + (this.contextualKeyword = d.state.contextualKeyword), + (this.start = d.state.start), + (this.end = d.state.end), + (this.scopeDepth = d.state.scopeDepth), + (this.isType = d.state.isType), + (this.identifierRole = null), + (this.jsxRole = null), + (this.shadowsGlobal = !1), + (this.isAsyncOperation = !1), + (this.contextId = null), + (this.rhsEndIndex = null), + (this.isExpression = !1), + (this.numNullishCoalesceStarts = 0), + (this.numNullishCoalesceEnds = 0), + (this.isOptionalChainStart = !1), + (this.isOptionalChainEnd = !1), + (this.subscriptStartIndex = null), + (this.nullishStartIndex = null); + } + }; + xe.Token = jo; + function Lr() { + d.state.tokens.push(new jo()), gc(); + } + xe.next = Lr; + function Sh() { + d.state.tokens.push(new jo()), (d.state.start = d.state.pos), Yh(); + } + xe.nextTemplateToken = Sh; + function bh() { + d.state.type === U.TokenType.assign && --d.state.pos, Vh(); + } + xe.retokenizeSlashAsRegex = bh; + function Eh(e) { + for (let n = d.state.tokens.length - e; n < d.state.tokens.length; n++) + d.state.tokens[n].isType = !0; + let t = d.state.isType; + return (d.state.isType = !0), t; + } + xe.pushTypeContext = Eh; + function Ah(e) { + d.state.isType = e; + } + xe.popTypeContext = Ah; + function vc(e) { + return Bi(e) ? (Lr(), !0) : !1; + } + xe.eat = vc; + function Ph(e) { + let t = d.state.isType; + (d.state.isType = !0), vc(e), (d.state.isType = t); + } + xe.eatTypeToken = Ph; + function Bi(e) { + return d.state.type === e; + } + xe.match = Bi; + function Rh() { + let e = d.state.snapshot(); + Lr(); + let t = d.state.type; + return d.state.restoreFromSnapshot(e), t; + } + xe.lookaheadType = Rh; + var Mr = class { + constructor(t, n) { + (this.type = t), (this.contextualKeyword = n); + } + }; + xe.TypeAndKeyword = Mr; + function Nh() { + let e = d.state.snapshot(); + Lr(); + let t = d.state.type, + n = d.state.contextualKeyword; + return d.state.restoreFromSnapshot(e), new Mr(t, n); + } + xe.lookaheadTypeAndKeyword = Nh; + function _c() { + return xc(d.state.pos); + } + xe.nextTokenStart = _c; + function xc(e) { + $i.skipWhiteSpace.lastIndex = e; + let t = $i.skipWhiteSpace.exec(d.input); + return e + t[0].length; + } + xe.nextTokenStartSince = xc; + function Dh() { + return d.input.charCodeAt(_c()); + } + xe.lookaheadCharCode = Dh; + function gc() { + if ( + (wc(), (d.state.start = d.state.pos), d.state.pos >= d.input.length) + ) { + let e = d.state.tokens; + e.length >= 2 && + e[e.length - 1].start >= d.input.length && + e[e.length - 2].start >= d.input.length && + ho.unexpected.call(void 0, 'Unexpectedly reached the end of input.'), + we(U.TokenType.eof); + return; + } + Oh(d.input.charCodeAt(d.state.pos)); + } + xe.nextToken = gc; + function Oh(e) { + kc.IS_IDENTIFIER_START[e] || + e === g.charCodes.backslash || + (e === g.charCodes.atSign && + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.atSign) + ? vh.default.call(void 0) + : Sc(e); + } + function Mh() { + for ( + ; + d.input.charCodeAt(d.state.pos) !== g.charCodes.asterisk || + d.input.charCodeAt(d.state.pos + 1) !== g.charCodes.slash; + + ) + if ((d.state.pos++, d.state.pos > d.input.length)) { + ho.unexpected.call(void 0, 'Unterminated comment', d.state.pos - 2); + return; + } + d.state.pos += 2; + } + function Cc(e) { + let t = d.input.charCodeAt((d.state.pos += e)); + if (d.state.pos < d.input.length) + for ( + ; + t !== g.charCodes.lineFeed && + t !== g.charCodes.carriageReturn && + t !== g.charCodes.lineSeparator && + t !== g.charCodes.paragraphSeparator && + ++d.state.pos < d.input.length; + + ) + t = d.input.charCodeAt(d.state.pos); + } + xe.skipLineComment = Cc; + function wc() { + for (; d.state.pos < d.input.length; ) { + let e = d.input.charCodeAt(d.state.pos); + switch (e) { + case g.charCodes.carriageReturn: + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.lineFeed && + ++d.state.pos; + case g.charCodes.lineFeed: + case g.charCodes.lineSeparator: + case g.charCodes.paragraphSeparator: + ++d.state.pos; + break; + case g.charCodes.slash: + switch (d.input.charCodeAt(d.state.pos + 1)) { + case g.charCodes.asterisk: + (d.state.pos += 2), Mh(); + break; + case g.charCodes.slash: + Cc(2); + break; + default: + return; + } + break; + default: + if ($i.IS_WHITESPACE[e]) ++d.state.pos; + else return; + } + } + } + xe.skipSpace = wc; + function we(e, t = mh.ContextualKeyword.NONE) { + (d.state.end = d.state.pos), + (d.state.type = e), + (d.state.contextualKeyword = t); + } + xe.finishToken = we; + function Lh() { + let e = d.input.charCodeAt(d.state.pos + 1); + if (e >= g.charCodes.digit0 && e <= g.charCodes.digit9) { + bc(!0); + return; + } + e === g.charCodes.dot && + d.input.charCodeAt(d.state.pos + 2) === g.charCodes.dot + ? ((d.state.pos += 3), we(U.TokenType.ellipsis)) + : (++d.state.pos, we(U.TokenType.dot)); + } + function Fh() { + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.equalsTo + ? _e(U.TokenType.assign, 2) + : _e(U.TokenType.slash, 1); + } + function $h(e) { + let t = + e === g.charCodes.asterisk ? U.TokenType.star : U.TokenType.modulo, + n = 1, + o = d.input.charCodeAt(d.state.pos + 1); + e === g.charCodes.asterisk && + o === g.charCodes.asterisk && + (n++, + (o = d.input.charCodeAt(d.state.pos + 2)), + (t = U.TokenType.exponent)), + o === g.charCodes.equalsTo && + d.input.charCodeAt(d.state.pos + 2) !== g.charCodes.greaterThan && + (n++, (t = U.TokenType.assign)), + _e(t, n); + } + function Bh(e) { + let t = d.input.charCodeAt(d.state.pos + 1); + if (t === e) { + d.input.charCodeAt(d.state.pos + 2) === g.charCodes.equalsTo + ? _e(U.TokenType.assign, 3) + : _e( + e === g.charCodes.verticalBar + ? U.TokenType.logicalOR + : U.TokenType.logicalAND, + 2 + ); + return; + } + if (e === g.charCodes.verticalBar) { + if (t === g.charCodes.greaterThan) { + _e(U.TokenType.pipeline, 2); + return; + } else if (t === g.charCodes.rightCurlyBrace && d.isFlowEnabled) { + _e(U.TokenType.braceBarR, 2); + return; + } + } + if (t === g.charCodes.equalsTo) { + _e(U.TokenType.assign, 2); + return; + } + _e( + e === g.charCodes.verticalBar + ? U.TokenType.bitwiseOR + : U.TokenType.bitwiseAND, + 1 + ); + } + function jh() { + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.equalsTo + ? _e(U.TokenType.assign, 2) + : _e(U.TokenType.bitwiseXOR, 1); + } + function Kh(e) { + let t = d.input.charCodeAt(d.state.pos + 1); + if (t === e) { + _e(U.TokenType.preIncDec, 2); + return; + } + t === g.charCodes.equalsTo + ? _e(U.TokenType.assign, 2) + : e === g.charCodes.plusSign + ? _e(U.TokenType.plus, 1) + : _e(U.TokenType.minus, 1); + } + function qh() { + let e = d.input.charCodeAt(d.state.pos + 1); + if (e === g.charCodes.lessThan) { + if (d.input.charCodeAt(d.state.pos + 2) === g.charCodes.equalsTo) { + _e(U.TokenType.assign, 3); + return; + } + d.state.isType + ? _e(U.TokenType.lessThan, 1) + : _e(U.TokenType.bitShiftL, 2); + return; + } + e === g.charCodes.equalsTo + ? _e(U.TokenType.relationalOrEqual, 2) + : _e(U.TokenType.lessThan, 1); + } + function Ic() { + if (d.state.isType) { + _e(U.TokenType.greaterThan, 1); + return; + } + let e = d.input.charCodeAt(d.state.pos + 1); + if (e === g.charCodes.greaterThan) { + let t = + d.input.charCodeAt(d.state.pos + 2) === g.charCodes.greaterThan + ? 3 + : 2; + if (d.input.charCodeAt(d.state.pos + t) === g.charCodes.equalsTo) { + _e(U.TokenType.assign, t + 1); + return; + } + _e(U.TokenType.bitShiftR, t); + return; + } + e === g.charCodes.equalsTo + ? _e(U.TokenType.relationalOrEqual, 2) + : _e(U.TokenType.greaterThan, 1); + } + function Hh() { + d.state.type === U.TokenType.greaterThan && ((d.state.pos -= 1), Ic()); + } + xe.rescan_gt = Hh; + function Uh(e) { + let t = d.input.charCodeAt(d.state.pos + 1); + if (t === g.charCodes.equalsTo) { + _e( + U.TokenType.equality, + d.input.charCodeAt(d.state.pos + 2) === g.charCodes.equalsTo ? 3 : 2 + ); + return; + } + if (e === g.charCodes.equalsTo && t === g.charCodes.greaterThan) { + (d.state.pos += 2), we(U.TokenType.arrow); + return; + } + _e(e === g.charCodes.equalsTo ? U.TokenType.eq : U.TokenType.bang, 1); + } + function Wh() { + let e = d.input.charCodeAt(d.state.pos + 1), + t = d.input.charCodeAt(d.state.pos + 2); + e === g.charCodes.questionMark && !(d.isFlowEnabled && d.state.isType) + ? t === g.charCodes.equalsTo + ? _e(U.TokenType.assign, 3) + : _e(U.TokenType.nullishCoalescing, 2) + : e === g.charCodes.dot && + !(t >= g.charCodes.digit0 && t <= g.charCodes.digit9) + ? ((d.state.pos += 2), we(U.TokenType.questionDot)) + : (++d.state.pos, we(U.TokenType.question)); + } + function Sc(e) { + switch (e) { + case g.charCodes.numberSign: + ++d.state.pos, we(U.TokenType.hash); + return; + case g.charCodes.dot: + Lh(); + return; + case g.charCodes.leftParenthesis: + ++d.state.pos, we(U.TokenType.parenL); + return; + case g.charCodes.rightParenthesis: + ++d.state.pos, we(U.TokenType.parenR); + return; + case g.charCodes.semicolon: + ++d.state.pos, we(U.TokenType.semi); + return; + case g.charCodes.comma: + ++d.state.pos, we(U.TokenType.comma); + return; + case g.charCodes.leftSquareBracket: + ++d.state.pos, we(U.TokenType.bracketL); + return; + case g.charCodes.rightSquareBracket: + ++d.state.pos, we(U.TokenType.bracketR); + return; + case g.charCodes.leftCurlyBrace: + d.isFlowEnabled && + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.verticalBar + ? _e(U.TokenType.braceBarL, 2) + : (++d.state.pos, we(U.TokenType.braceL)); + return; + case g.charCodes.rightCurlyBrace: + ++d.state.pos, we(U.TokenType.braceR); + return; + case g.charCodes.colon: + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.colon + ? _e(U.TokenType.doubleColon, 2) + : (++d.state.pos, we(U.TokenType.colon)); + return; + case g.charCodes.questionMark: + Wh(); + return; + case g.charCodes.atSign: + ++d.state.pos, we(U.TokenType.at); + return; + case g.charCodes.graveAccent: + ++d.state.pos, we(U.TokenType.backQuote); + return; + case g.charCodes.digit0: { + let t = d.input.charCodeAt(d.state.pos + 1); + if ( + t === g.charCodes.lowercaseX || + t === g.charCodes.uppercaseX || + t === g.charCodes.lowercaseO || + t === g.charCodes.uppercaseO || + t === g.charCodes.lowercaseB || + t === g.charCodes.uppercaseB + ) { + zh(); + return; + } + } + case g.charCodes.digit1: + case g.charCodes.digit2: + case g.charCodes.digit3: + case g.charCodes.digit4: + case g.charCodes.digit5: + case g.charCodes.digit6: + case g.charCodes.digit7: + case g.charCodes.digit8: + case g.charCodes.digit9: + bc(!1); + return; + case g.charCodes.quotationMark: + case g.charCodes.apostrophe: + Xh(e); + return; + case g.charCodes.slash: + Fh(); + return; + case g.charCodes.percentSign: + case g.charCodes.asterisk: + $h(e); + return; + case g.charCodes.verticalBar: + case g.charCodes.ampersand: + Bh(e); + return; + case g.charCodes.caret: + jh(); + return; + case g.charCodes.plusSign: + case g.charCodes.dash: + Kh(e); + return; + case g.charCodes.lessThan: + qh(); + return; + case g.charCodes.greaterThan: + Ic(); + return; + case g.charCodes.equalsTo: + case g.charCodes.exclamationMark: + Uh(e); + return; + case g.charCodes.tilde: + _e(U.TokenType.tilde, 1); + return; + default: + break; + } + ho.unexpected.call( + void 0, + `Unexpected character '${String.fromCharCode(e)}'`, + d.state.pos + ); + } + xe.getTokenFromCode = Sc; + function _e(e, t) { + (d.state.pos += t), we(e); + } + function Vh() { + let e = d.state.pos, + t = !1, + n = !1; + for (;;) { + if (d.state.pos >= d.input.length) { + ho.unexpected.call(void 0, 'Unterminated regular expression', e); + return; + } + let o = d.input.charCodeAt(d.state.pos); + if (t) t = !1; + else { + if (o === g.charCodes.leftSquareBracket) n = !0; + else if (o === g.charCodes.rightSquareBracket && n) n = !1; + else if (o === g.charCodes.slash && !n) break; + t = o === g.charCodes.backslash; + } + ++d.state.pos; + } + ++d.state.pos, Ec(), we(U.TokenType.regexp); + } + function Fi() { + for (;;) { + let e = d.input.charCodeAt(d.state.pos); + if ( + (e >= g.charCodes.digit0 && e <= g.charCodes.digit9) || + e === g.charCodes.underscore + ) + d.state.pos++; + else break; + } + } + function zh() { + for (d.state.pos += 2; ; ) { + let t = d.input.charCodeAt(d.state.pos); + if ( + (t >= g.charCodes.digit0 && t <= g.charCodes.digit9) || + (t >= g.charCodes.lowercaseA && t <= g.charCodes.lowercaseF) || + (t >= g.charCodes.uppercaseA && t <= g.charCodes.uppercaseF) || + t === g.charCodes.underscore + ) + d.state.pos++; + else break; + } + d.input.charCodeAt(d.state.pos) === g.charCodes.lowercaseN + ? (++d.state.pos, we(U.TokenType.bigint)) + : we(U.TokenType.num); + } + function bc(e) { + let t = !1, + n = !1; + e || Fi(); + let o = d.input.charCodeAt(d.state.pos); + if ( + (o === g.charCodes.dot && + (++d.state.pos, Fi(), (o = d.input.charCodeAt(d.state.pos))), + (o === g.charCodes.uppercaseE || o === g.charCodes.lowercaseE) && + ((o = d.input.charCodeAt(++d.state.pos)), + (o === g.charCodes.plusSign || o === g.charCodes.dash) && + ++d.state.pos, + Fi(), + (o = d.input.charCodeAt(d.state.pos))), + o === g.charCodes.lowercaseN + ? (++d.state.pos, (t = !0)) + : o === g.charCodes.lowercaseM && (++d.state.pos, (n = !0)), + t) + ) { + we(U.TokenType.bigint); + return; + } + if (n) { + we(U.TokenType.decimal); + return; + } + we(U.TokenType.num); + } + function Xh(e) { + for (d.state.pos++; ; ) { + if (d.state.pos >= d.input.length) { + ho.unexpected.call(void 0, 'Unterminated string constant'); + return; + } + let t = d.input.charCodeAt(d.state.pos); + if (t === g.charCodes.backslash) d.state.pos++; + else if (t === e) break; + d.state.pos++; + } + d.state.pos++, we(U.TokenType.string); + } + function Yh() { + for (;;) { + if (d.state.pos >= d.input.length) { + ho.unexpected.call(void 0, 'Unterminated template'); + return; + } + let e = d.input.charCodeAt(d.state.pos); + if ( + e === g.charCodes.graveAccent || + (e === g.charCodes.dollarSign && + d.input.charCodeAt(d.state.pos + 1) === g.charCodes.leftCurlyBrace) + ) { + if (d.state.pos === d.state.start && Bi(U.TokenType.template)) + if (e === g.charCodes.dollarSign) { + (d.state.pos += 2), we(U.TokenType.dollarBraceL); + return; + } else { + ++d.state.pos, we(U.TokenType.backQuote); + return; + } + we(U.TokenType.template); + return; + } + e === g.charCodes.backslash && d.state.pos++, d.state.pos++; + } + } + function Ec() { + for (; d.state.pos < d.input.length; ) { + let e = d.input.charCodeAt(d.state.pos); + if (kc.IS_IDENTIFIER_CHAR[e]) d.state.pos++; + else if (e === g.charCodes.backslash) { + if ( + ((d.state.pos += 2), + d.input.charCodeAt(d.state.pos) === g.charCodes.leftCurlyBrace) + ) { + for ( + ; + d.state.pos < d.input.length && + d.input.charCodeAt(d.state.pos) !== g.charCodes.rightCurlyBrace; + + ) + d.state.pos++; + d.state.pos++; + } + } else break; + } + } + xe.skipWord = Ec; + }); + var Ko = H((ji) => { + 'use strict'; + Object.defineProperty(ji, '__esModule', {value: !0}); + var Ac = ce(); + function Gh(e, t = e.currentIndex()) { + let n = t + 1; + if (Fr(e, n)) { + let o = e.identifierNameAtIndex(t); + return {isType: !1, leftName: o, rightName: o, endIndex: n}; + } + if ((n++, Fr(e, n))) + return {isType: !0, leftName: null, rightName: null, endIndex: n}; + if ((n++, Fr(e, n))) + return { + isType: !1, + leftName: e.identifierNameAtIndex(t), + rightName: e.identifierNameAtIndex(t + 2), + endIndex: n, + }; + if ((n++, Fr(e, n))) + return {isType: !0, leftName: null, rightName: null, endIndex: n}; + throw new Error(`Unexpected import/export specifier at ${t}`); + } + ji.default = Gh; + function Fr(e, t) { + let n = e.tokens[t]; + return n.type === Ac.TokenType.braceR || n.type === Ac.TokenType.comma; + } + }); + var Pc = H((Ki) => { + 'use strict'; + Object.defineProperty(Ki, '__esModule', {value: !0}); + Ki.default = new Map([ + ['quot', '"'], + ['amp', '&'], + ['apos', "'"], + ['lt', '<'], + ['gt', '>'], + ['nbsp', '\xA0'], + ['iexcl', '\xA1'], + ['cent', '\xA2'], + ['pound', '\xA3'], + ['curren', '\xA4'], + ['yen', '\xA5'], + ['brvbar', '\xA6'], + ['sect', '\xA7'], + ['uml', '\xA8'], + ['copy', '\xA9'], + ['ordf', '\xAA'], + ['laquo', '\xAB'], + ['not', '\xAC'], + ['shy', '\xAD'], + ['reg', '\xAE'], + ['macr', '\xAF'], + ['deg', '\xB0'], + ['plusmn', '\xB1'], + ['sup2', '\xB2'], + ['sup3', '\xB3'], + ['acute', '\xB4'], + ['micro', '\xB5'], + ['para', '\xB6'], + ['middot', '\xB7'], + ['cedil', '\xB8'], + ['sup1', '\xB9'], + ['ordm', '\xBA'], + ['raquo', '\xBB'], + ['frac14', '\xBC'], + ['frac12', '\xBD'], + ['frac34', '\xBE'], + ['iquest', '\xBF'], + ['Agrave', '\xC0'], + ['Aacute', '\xC1'], + ['Acirc', '\xC2'], + ['Atilde', '\xC3'], + ['Auml', '\xC4'], + ['Aring', '\xC5'], + ['AElig', '\xC6'], + ['Ccedil', '\xC7'], + ['Egrave', '\xC8'], + ['Eacute', '\xC9'], + ['Ecirc', '\xCA'], + ['Euml', '\xCB'], + ['Igrave', '\xCC'], + ['Iacute', '\xCD'], + ['Icirc', '\xCE'], + ['Iuml', '\xCF'], + ['ETH', '\xD0'], + ['Ntilde', '\xD1'], + ['Ograve', '\xD2'], + ['Oacute', '\xD3'], + ['Ocirc', '\xD4'], + ['Otilde', '\xD5'], + ['Ouml', '\xD6'], + ['times', '\xD7'], + ['Oslash', '\xD8'], + ['Ugrave', '\xD9'], + ['Uacute', '\xDA'], + ['Ucirc', '\xDB'], + ['Uuml', '\xDC'], + ['Yacute', '\xDD'], + ['THORN', '\xDE'], + ['szlig', '\xDF'], + ['agrave', '\xE0'], + ['aacute', '\xE1'], + ['acirc', '\xE2'], + ['atilde', '\xE3'], + ['auml', '\xE4'], + ['aring', '\xE5'], + ['aelig', '\xE6'], + ['ccedil', '\xE7'], + ['egrave', '\xE8'], + ['eacute', '\xE9'], + ['ecirc', '\xEA'], + ['euml', '\xEB'], + ['igrave', '\xEC'], + ['iacute', '\xED'], + ['icirc', '\xEE'], + ['iuml', '\xEF'], + ['eth', '\xF0'], + ['ntilde', '\xF1'], + ['ograve', '\xF2'], + ['oacute', '\xF3'], + ['ocirc', '\xF4'], + ['otilde', '\xF5'], + ['ouml', '\xF6'], + ['divide', '\xF7'], + ['oslash', '\xF8'], + ['ugrave', '\xF9'], + ['uacute', '\xFA'], + ['ucirc', '\xFB'], + ['uuml', '\xFC'], + ['yacute', '\xFD'], + ['thorn', '\xFE'], + ['yuml', '\xFF'], + ['OElig', '\u0152'], + ['oelig', '\u0153'], + ['Scaron', '\u0160'], + ['scaron', '\u0161'], + ['Yuml', '\u0178'], + ['fnof', '\u0192'], + ['circ', '\u02C6'], + ['tilde', '\u02DC'], + ['Alpha', '\u0391'], + ['Beta', '\u0392'], + ['Gamma', '\u0393'], + ['Delta', '\u0394'], + ['Epsilon', '\u0395'], + ['Zeta', '\u0396'], + ['Eta', '\u0397'], + ['Theta', '\u0398'], + ['Iota', '\u0399'], + ['Kappa', '\u039A'], + ['Lambda', '\u039B'], + ['Mu', '\u039C'], + ['Nu', '\u039D'], + ['Xi', '\u039E'], + ['Omicron', '\u039F'], + ['Pi', '\u03A0'], + ['Rho', '\u03A1'], + ['Sigma', '\u03A3'], + ['Tau', '\u03A4'], + ['Upsilon', '\u03A5'], + ['Phi', '\u03A6'], + ['Chi', '\u03A7'], + ['Psi', '\u03A8'], + ['Omega', '\u03A9'], + ['alpha', '\u03B1'], + ['beta', '\u03B2'], + ['gamma', '\u03B3'], + ['delta', '\u03B4'], + ['epsilon', '\u03B5'], + ['zeta', '\u03B6'], + ['eta', '\u03B7'], + ['theta', '\u03B8'], + ['iota', '\u03B9'], + ['kappa', '\u03BA'], + ['lambda', '\u03BB'], + ['mu', '\u03BC'], + ['nu', '\u03BD'], + ['xi', '\u03BE'], + ['omicron', '\u03BF'], + ['pi', '\u03C0'], + ['rho', '\u03C1'], + ['sigmaf', '\u03C2'], + ['sigma', '\u03C3'], + ['tau', '\u03C4'], + ['upsilon', '\u03C5'], + ['phi', '\u03C6'], + ['chi', '\u03C7'], + ['psi', '\u03C8'], + ['omega', '\u03C9'], + ['thetasym', '\u03D1'], + ['upsih', '\u03D2'], + ['piv', '\u03D6'], + ['ensp', '\u2002'], + ['emsp', '\u2003'], + ['thinsp', '\u2009'], + ['zwnj', '\u200C'], + ['zwj', '\u200D'], + ['lrm', '\u200E'], + ['rlm', '\u200F'], + ['ndash', '\u2013'], + ['mdash', '\u2014'], + ['lsquo', '\u2018'], + ['rsquo', '\u2019'], + ['sbquo', '\u201A'], + ['ldquo', '\u201C'], + ['rdquo', '\u201D'], + ['bdquo', '\u201E'], + ['dagger', '\u2020'], + ['Dagger', '\u2021'], + ['bull', '\u2022'], + ['hellip', '\u2026'], + ['permil', '\u2030'], + ['prime', '\u2032'], + ['Prime', '\u2033'], + ['lsaquo', '\u2039'], + ['rsaquo', '\u203A'], + ['oline', '\u203E'], + ['frasl', '\u2044'], + ['euro', '\u20AC'], + ['image', '\u2111'], + ['weierp', '\u2118'], + ['real', '\u211C'], + ['trade', '\u2122'], + ['alefsym', '\u2135'], + ['larr', '\u2190'], + ['uarr', '\u2191'], + ['rarr', '\u2192'], + ['darr', '\u2193'], + ['harr', '\u2194'], + ['crarr', '\u21B5'], + ['lArr', '\u21D0'], + ['uArr', '\u21D1'], + ['rArr', '\u21D2'], + ['dArr', '\u21D3'], + ['hArr', '\u21D4'], + ['forall', '\u2200'], + ['part', '\u2202'], + ['exist', '\u2203'], + ['empty', '\u2205'], + ['nabla', '\u2207'], + ['isin', '\u2208'], + ['notin', '\u2209'], + ['ni', '\u220B'], + ['prod', '\u220F'], + ['sum', '\u2211'], + ['minus', '\u2212'], + ['lowast', '\u2217'], + ['radic', '\u221A'], + ['prop', '\u221D'], + ['infin', '\u221E'], + ['ang', '\u2220'], + ['and', '\u2227'], + ['or', '\u2228'], + ['cap', '\u2229'], + ['cup', '\u222A'], + ['int', '\u222B'], + ['there4', '\u2234'], + ['sim', '\u223C'], + ['cong', '\u2245'], + ['asymp', '\u2248'], + ['ne', '\u2260'], + ['equiv', '\u2261'], + ['le', '\u2264'], + ['ge', '\u2265'], + ['sub', '\u2282'], + ['sup', '\u2283'], + ['nsub', '\u2284'], + ['sube', '\u2286'], + ['supe', '\u2287'], + ['oplus', '\u2295'], + ['otimes', '\u2297'], + ['perp', '\u22A5'], + ['sdot', '\u22C5'], + ['lceil', '\u2308'], + ['rceil', '\u2309'], + ['lfloor', '\u230A'], + ['rfloor', '\u230B'], + ['lang', '\u2329'], + ['rang', '\u232A'], + ['loz', '\u25CA'], + ['spades', '\u2660'], + ['clubs', '\u2663'], + ['hearts', '\u2665'], + ['diams', '\u2666'], + ]); + }); + var Hi = H((qi) => { + 'use strict'; + Object.defineProperty(qi, '__esModule', {value: !0}); + function Jh(e) { + let [t, n] = Rc(e.jsxPragma || 'React.createElement'), + [o, r] = Rc(e.jsxFragmentPragma || 'React.Fragment'); + return {base: t, suffix: n, fragmentBase: o, fragmentSuffix: r}; + } + qi.default = Jh; + function Rc(e) { + let t = e.indexOf('.'); + return t === -1 && (t = e.length), [e.slice(0, t), e.slice(t)]; + } + }); + var Nt = H((Wi) => { + 'use strict'; + Object.defineProperty(Wi, '__esModule', {value: !0}); + var Ui = class { + getPrefixCode() { + return ''; + } + getHoistedCode() { + return ''; + } + getSuffixCode() { + return ''; + } + }; + Wi.default = Ui; + }); + var Xi = H((Br) => { + 'use strict'; + Object.defineProperty(Br, '__esModule', {value: !0}); + function zi(e) { + return e && e.__esModule ? e : {default: e}; + } + var Qh = Pc(), + Zh = zi(Qh), + $r = Ve(), + Te = ce(), + Jt = gt(), + eT = Hi(), + tT = zi(eT), + nT = Nt(), + oT = zi(nT), + Vi = class e extends oT.default { + __init() { + this.lastLineNumber = 1; + } + __init2() { + this.lastIndex = 0; + } + __init3() { + this.filenameVarName = null; + } + __init4() { + this.esmAutomaticImportNameResolutions = {}; + } + __init5() { + this.cjsAutomaticModuleNameResolutions = {}; + } + constructor(t, n, o, r, s) { + super(), + (this.rootTransformer = t), + (this.tokens = n), + (this.importProcessor = o), + (this.nameManager = r), + (this.options = s), + e.prototype.__init.call(this), + e.prototype.__init2.call(this), + e.prototype.__init3.call(this), + e.prototype.__init4.call(this), + e.prototype.__init5.call(this), + (this.jsxPragmaInfo = tT.default.call(void 0, s)), + (this.isAutomaticRuntime = s.jsxRuntime === 'automatic'), + (this.jsxImportSource = s.jsxImportSource || 'react'); + } + process() { + return this.tokens.matches1(Te.TokenType.jsxTagStart) + ? (this.processJSXTag(), !0) + : !1; + } + getPrefixCode() { + let t = ''; + if ( + (this.filenameVarName && + (t += `const ${this.filenameVarName} = ${JSON.stringify( + this.options.filePath || '' + )};`), + this.isAutomaticRuntime) + ) + if (this.importProcessor) + for (let [n, o] of Object.entries( + this.cjsAutomaticModuleNameResolutions + )) + t += `var ${o} = require("${n}");`; + else { + let {createElement: n, ...o} = + this.esmAutomaticImportNameResolutions; + n && + (t += `import {createElement as ${n}} from "${this.jsxImportSource}";`); + let r = Object.entries(o) + .map(([s, i]) => `${s} as ${i}`) + .join(', '); + if (r) { + let s = + this.jsxImportSource + + (this.options.production + ? '/jsx-runtime' + : '/jsx-dev-runtime'); + t += `import {${r}} from "${s}";`; + } + } + return t; + } + processJSXTag() { + let {jsxRole: t, start: n} = this.tokens.currentToken(), + o = this.options.production ? null : this.getElementLocationCode(n); + this.isAutomaticRuntime && t !== $r.JSXRole.KeyAfterPropSpread + ? this.transformTagToJSXFunc(o, t) + : this.transformTagToCreateElement(o); + } + getElementLocationCode(t) { + return `lineNumber: ${this.getLineNumberForIndex(t)}`; + } + getLineNumberForIndex(t) { + let n = this.tokens.code; + for (; this.lastIndex < t && this.lastIndex < n.length; ) + n[this.lastIndex] === + ` +` && this.lastLineNumber++, + this.lastIndex++; + return this.lastLineNumber; + } + transformTagToJSXFunc(t, n) { + let o = n === $r.JSXRole.StaticChildren; + this.tokens.replaceToken(this.getJSXFuncInvocationCode(o)); + let r = null; + if (this.tokens.matches1(Te.TokenType.jsxTagEnd)) + this.tokens.replaceToken(`${this.getFragmentCode()}, {`), + this.processAutomaticChildrenAndEndProps(n); + else { + if ( + (this.processTagIntro(), + this.tokens.appendCode(', {'), + (r = this.processProps(!0)), + this.tokens.matches2(Te.TokenType.slash, Te.TokenType.jsxTagEnd)) + ) + this.tokens.appendCode('}'); + else if (this.tokens.matches1(Te.TokenType.jsxTagEnd)) + this.tokens.removeToken(), + this.processAutomaticChildrenAndEndProps(n); + else + throw new Error('Expected either /> or > at the end of the tag.'); + r && this.tokens.appendCode(`, ${r}`); + } + for ( + this.options.production || + (r === null && this.tokens.appendCode(', void 0'), + this.tokens.appendCode(`, ${o}, ${this.getDevSource(t)}, this`)), + this.tokens.removeInitialToken(); + !this.tokens.matches1(Te.TokenType.jsxTagEnd); + + ) + this.tokens.removeToken(); + this.tokens.replaceToken(')'); + } + transformTagToCreateElement(t) { + if ( + (this.tokens.replaceToken(this.getCreateElementInvocationCode()), + this.tokens.matches1(Te.TokenType.jsxTagEnd)) + ) + this.tokens.replaceToken(`${this.getFragmentCode()}, null`), + this.processChildren(!0); + else if ( + (this.processTagIntro(), + this.processPropsObjectWithDevInfo(t), + !this.tokens.matches2(Te.TokenType.slash, Te.TokenType.jsxTagEnd)) + ) + if (this.tokens.matches1(Te.TokenType.jsxTagEnd)) + this.tokens.removeToken(), this.processChildren(!0); + else + throw new Error('Expected either /> or > at the end of the tag.'); + for ( + this.tokens.removeInitialToken(); + !this.tokens.matches1(Te.TokenType.jsxTagEnd); + + ) + this.tokens.removeToken(); + this.tokens.replaceToken(')'); + } + getJSXFuncInvocationCode(t) { + return this.options.production + ? t + ? this.claimAutoImportedFuncInvocation('jsxs', '/jsx-runtime') + : this.claimAutoImportedFuncInvocation('jsx', '/jsx-runtime') + : this.claimAutoImportedFuncInvocation( + 'jsxDEV', + '/jsx-dev-runtime' + ); + } + getCreateElementInvocationCode() { + if (this.isAutomaticRuntime) + return this.claimAutoImportedFuncInvocation('createElement', ''); + { + let {jsxPragmaInfo: t} = this; + return `${ + (this.importProcessor && + this.importProcessor.getIdentifierReplacement(t.base)) || + t.base + }${t.suffix}(`; + } + } + getFragmentCode() { + if (this.isAutomaticRuntime) + return this.claimAutoImportedName( + 'Fragment', + this.options.production ? '/jsx-runtime' : '/jsx-dev-runtime' + ); + { + let {jsxPragmaInfo: t} = this; + return ( + ((this.importProcessor && + this.importProcessor.getIdentifierReplacement( + t.fragmentBase + )) || + t.fragmentBase) + t.fragmentSuffix + ); + } + } + claimAutoImportedFuncInvocation(t, n) { + let o = this.claimAutoImportedName(t, n); + return this.importProcessor ? `${o}.call(void 0, ` : `${o}(`; + } + claimAutoImportedName(t, n) { + if (this.importProcessor) { + let o = this.jsxImportSource + n; + return ( + this.cjsAutomaticModuleNameResolutions[o] || + (this.cjsAutomaticModuleNameResolutions[o] = + this.importProcessor.getFreeIdentifierForPath(o)), + `${this.cjsAutomaticModuleNameResolutions[o]}.${t}` + ); + } else + return ( + this.esmAutomaticImportNameResolutions[t] || + (this.esmAutomaticImportNameResolutions[t] = + this.nameManager.claimFreeName(`_${t}`)), + this.esmAutomaticImportNameResolutions[t] + ); + } + processTagIntro() { + let t = this.tokens.currentIndex() + 1; + for ( + ; + this.tokens.tokens[t].isType || + (!this.tokens.matches2AtIndex( + t - 1, + Te.TokenType.jsxName, + Te.TokenType.jsxName + ) && + !this.tokens.matches2AtIndex( + t - 1, + Te.TokenType.greaterThan, + Te.TokenType.jsxName + ) && + !this.tokens.matches1AtIndex(t, Te.TokenType.braceL) && + !this.tokens.matches1AtIndex(t, Te.TokenType.jsxTagEnd) && + !this.tokens.matches2AtIndex( + t, + Te.TokenType.slash, + Te.TokenType.jsxTagEnd + )); + + ) + t++; + if (t === this.tokens.currentIndex() + 1) { + let n = this.tokens.identifierName(); + Dc(n) && this.tokens.replaceToken(`'${n}'`); + } + for (; this.tokens.currentIndex() < t; ) + this.rootTransformer.processToken(); + } + processPropsObjectWithDevInfo(t) { + let n = this.options.production + ? '' + : `__self: this, __source: ${this.getDevSource(t)}`; + if ( + !this.tokens.matches1(Te.TokenType.jsxName) && + !this.tokens.matches1(Te.TokenType.braceL) + ) { + n + ? this.tokens.appendCode(`, {${n}}`) + : this.tokens.appendCode(', null'); + return; + } + this.tokens.appendCode(', {'), + this.processProps(!1), + n ? this.tokens.appendCode(` ${n}}`) : this.tokens.appendCode('}'); + } + processProps(t) { + let n = null; + for (;;) { + if (this.tokens.matches2(Te.TokenType.jsxName, Te.TokenType.eq)) { + let o = this.tokens.identifierName(); + if (t && o === 'key') { + n !== null && this.tokens.appendCode(n.replace(/[^\n]/g, '')), + this.tokens.removeToken(), + this.tokens.removeToken(); + let r = this.tokens.snapshot(); + this.processPropValue(), + (n = this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r)); + continue; + } else + this.processPropName(o), + this.tokens.replaceToken(': '), + this.processPropValue(); + } else if (this.tokens.matches1(Te.TokenType.jsxName)) { + let o = this.tokens.identifierName(); + this.processPropName(o), this.tokens.appendCode(': true'); + } else if (this.tokens.matches1(Te.TokenType.braceL)) + this.tokens.replaceToken(''), + this.rootTransformer.processBalancedCode(), + this.tokens.replaceToken(''); + else break; + this.tokens.appendCode(','); + } + return n; + } + processPropName(t) { + t.includes('-') + ? this.tokens.replaceToken(`'${t}'`) + : this.tokens.copyToken(); + } + processPropValue() { + this.tokens.matches1(Te.TokenType.braceL) + ? (this.tokens.replaceToken(''), + this.rootTransformer.processBalancedCode(), + this.tokens.replaceToken('')) + : this.tokens.matches1(Te.TokenType.jsxTagStart) + ? this.processJSXTag() + : this.processStringPropValue(); + } + processStringPropValue() { + let t = this.tokens.currentToken(), + n = this.tokens.code.slice(t.start + 1, t.end - 1), + o = Nc(n), + r = sT(n); + this.tokens.replaceToken(r + o); + } + processAutomaticChildrenAndEndProps(t) { + t === $r.JSXRole.StaticChildren + ? (this.tokens.appendCode(' children: ['), + this.processChildren(!1), + this.tokens.appendCode(']}')) + : (t === $r.JSXRole.OneChild && + this.tokens.appendCode(' children: '), + this.processChildren(!1), + this.tokens.appendCode('}')); + } + processChildren(t) { + let n = t; + for (;;) { + if ( + this.tokens.matches2(Te.TokenType.jsxTagStart, Te.TokenType.slash) + ) + return; + let o = !1; + if (this.tokens.matches1(Te.TokenType.braceL)) + this.tokens.matches2(Te.TokenType.braceL, Te.TokenType.braceR) + ? (this.tokens.replaceToken(''), this.tokens.replaceToken('')) + : (this.tokens.replaceToken(n ? ', ' : ''), + this.rootTransformer.processBalancedCode(), + this.tokens.replaceToken(''), + (o = !0)); + else if (this.tokens.matches1(Te.TokenType.jsxTagStart)) + this.tokens.appendCode(n ? ', ' : ''), + this.processJSXTag(), + (o = !0); + else if ( + this.tokens.matches1(Te.TokenType.jsxText) || + this.tokens.matches1(Te.TokenType.jsxEmptyText) + ) + o = this.processChildTextElement(n); + else + throw new Error('Unexpected token when processing JSX children.'); + o && (n = !0); + } + } + processChildTextElement(t) { + let n = this.tokens.currentToken(), + o = this.tokens.code.slice(n.start, n.end), + r = Nc(o), + s = rT(o); + return s === '""' + ? (this.tokens.replaceToken(r), !1) + : (this.tokens.replaceToken(`${t ? ', ' : ''}${s}${r}`), !0); + } + getDevSource(t) { + return `{fileName: ${this.getFilenameVarName()}, ${t}}`; + } + getFilenameVarName() { + return ( + this.filenameVarName || + (this.filenameVarName = + this.nameManager.claimFreeName('_jsxFileName')), + this.filenameVarName + ); + } + }; + Br.default = Vi; + function Dc(e) { + let t = e.charCodeAt(0); + return t >= Jt.charCodes.lowercaseA && t <= Jt.charCodes.lowercaseZ; + } + Br.startsWithLowerCase = Dc; + function rT(e) { + let t = '', + n = '', + o = !1, + r = !1; + for (let s = 0; s < e.length; s++) { + let i = e[s]; + if (i === ' ' || i === ' ' || i === '\r') o || (n += i); + else if ( + i === + ` +` + ) + (n = ''), (o = !0); + else { + if ((r && o && (t += ' '), (t += n), (n = ''), i === '&')) { + let {entity: a, newI: u} = Oc(e, s + 1); + (s = u - 1), (t += a); + } else t += i; + (r = !0), (o = !1); + } + } + return o || (t += n), JSON.stringify(t); + } + function Nc(e) { + let t = 0, + n = 0; + for (let o of e) + o === + ` +` + ? (t++, (n = 0)) + : o === ' ' && n++; + return ( + ` +`.repeat(t) + ' '.repeat(n) + ); + } + function sT(e) { + let t = ''; + for (let n = 0; n < e.length; n++) { + let o = e[n]; + if ( + o === + ` +` + ) + if (/\s/.test(e[n + 1])) + for (t += ' '; n < e.length && /\s/.test(e[n + 1]); ) n++; + else + t += ` +`; + else if (o === '&') { + let {entity: r, newI: s} = Oc(e, n + 1); + (t += r), (n = s - 1); + } else t += o; + } + return JSON.stringify(t); + } + function Oc(e, t) { + let n = '', + o = 0, + r, + s = t; + if (e[s] === '#') { + let i = 10; + s++; + let a; + if (e[s] === 'x') + for (i = 16, s++, a = s; s < e.length && aT(e.charCodeAt(s)); ) s++; + else for (a = s; s < e.length && iT(e.charCodeAt(s)); ) s++; + if (e[s] === ';') { + let u = e.slice(a, s); + u && (s++, (r = String.fromCodePoint(parseInt(u, i)))); + } + } else + for (; s < e.length && o++ < 10; ) { + let i = e[s]; + if ((s++, i === ';')) { + r = Zh.default.get(n); + break; + } + n += i; + } + return r ? {entity: r, newI: s} : {entity: '&', newI: t}; + } + function iT(e) { + return e >= Jt.charCodes.digit0 && e <= Jt.charCodes.digit9; + } + function aT(e) { + return ( + (e >= Jt.charCodes.digit0 && e <= Jt.charCodes.digit9) || + (e >= Jt.charCodes.lowercaseA && e <= Jt.charCodes.lowercaseF) || + (e >= Jt.charCodes.uppercaseA && e <= Jt.charCodes.uppercaseF) + ); + } + }); + var Gi = H((Yi) => { + 'use strict'; + Object.defineProperty(Yi, '__esModule', {value: !0}); + function lT(e) { + return e && e.__esModule ? e : {default: e}; + } + var jr = Ve(), + To = ce(), + cT = Xi(), + uT = Hi(), + pT = lT(uT); + function dT(e, t) { + let n = pT.default.call(void 0, t), + o = new Set(); + for (let r = 0; r < e.tokens.length; r++) { + let s = e.tokens[r]; + if ( + (s.type === To.TokenType.name && + !s.isType && + (s.identifierRole === jr.IdentifierRole.Access || + s.identifierRole === jr.IdentifierRole.ObjectShorthand || + s.identifierRole === jr.IdentifierRole.ExportAccess) && + !s.shadowsGlobal && + o.add(e.identifierNameForToken(s)), + s.type === To.TokenType.jsxTagStart && o.add(n.base), + s.type === To.TokenType.jsxTagStart && + r + 1 < e.tokens.length && + e.tokens[r + 1].type === To.TokenType.jsxTagEnd && + (o.add(n.base), o.add(n.fragmentBase)), + s.type === To.TokenType.jsxName && + s.identifierRole === jr.IdentifierRole.Access) + ) { + let i = e.identifierNameForToken(s); + (!cT.startsWithLowerCase.call(void 0, i) || + e.tokens[r + 1].type === To.TokenType.dot) && + o.add(e.identifierNameForToken(s)); + } + } + return o; + } + Yi.getNonTypeIdentifiers = dT; + }); + var Mc = H((Qi) => { + 'use strict'; + Object.defineProperty(Qi, '__esModule', {value: !0}); + function fT(e) { + return e && e.__esModule ? e : {default: e}; + } + var hT = Ve(), + Kr = Ge(), + ee = ce(), + TT = Ko(), + yT = fT(TT), + mT = Gi(), + Ji = class e { + __init() { + this.nonTypeIdentifiers = new Set(); + } + __init2() { + this.importInfoByPath = new Map(); + } + __init3() { + this.importsToReplace = new Map(); + } + __init4() { + this.identifierReplacements = new Map(); + } + __init5() { + this.exportBindingsByLocalName = new Map(); + } + constructor(t, n, o, r, s, i) { + (this.nameManager = t), + (this.tokens = n), + (this.enableLegacyTypeScriptModuleInterop = o), + (this.options = r), + (this.isTypeScriptTransformEnabled = s), + (this.helperManager = i), + e.prototype.__init.call(this), + e.prototype.__init2.call(this), + e.prototype.__init3.call(this), + e.prototype.__init4.call(this), + e.prototype.__init5.call(this); + } + preprocessTokens() { + for (let t = 0; t < this.tokens.tokens.length; t++) + this.tokens.matches1AtIndex(t, ee.TokenType._import) && + !this.tokens.matches3AtIndex( + t, + ee.TokenType._import, + ee.TokenType.name, + ee.TokenType.eq + ) && + this.preprocessImportAtIndex(t), + this.tokens.matches1AtIndex(t, ee.TokenType._export) && + !this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType.eq + ) && + this.preprocessExportAtIndex(t); + this.generateImportReplacements(); + } + pruneTypeOnlyImports() { + this.nonTypeIdentifiers = mT.getNonTypeIdentifiers.call( + void 0, + this.tokens, + this.options + ); + for (let [t, n] of this.importInfoByPath.entries()) { + if ( + n.hasBareImport || + n.hasStarExport || + n.exportStarNames.length > 0 || + n.namedExports.length > 0 + ) + continue; + [ + ...n.defaultNames, + ...n.wildcardNames, + ...n.namedImports.map(({localName: r}) => r), + ].every((r) => this.isTypeName(r)) && + this.importsToReplace.set(t, ''); + } + } + isTypeName(t) { + return ( + this.isTypeScriptTransformEnabled && !this.nonTypeIdentifiers.has(t) + ); + } + generateImportReplacements() { + for (let [t, n] of this.importInfoByPath.entries()) { + let { + defaultNames: o, + wildcardNames: r, + namedImports: s, + namedExports: i, + exportStarNames: a, + hasStarExport: u, + } = n; + if ( + o.length === 0 && + r.length === 0 && + s.length === 0 && + i.length === 0 && + a.length === 0 && + !u + ) { + this.importsToReplace.set(t, `require('${t}');`); + continue; + } + let h = this.getFreeIdentifierForPath(t), + v; + this.enableLegacyTypeScriptModuleInterop + ? (v = h) + : (v = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); + let _ = `var ${h} = require('${t}');`; + if (r.length > 0) + for (let x of r) { + let L = this.enableLegacyTypeScriptModuleInterop + ? h + : `${this.helperManager.getHelperName( + 'interopRequireWildcard' + )}(${h})`; + _ += ` var ${x} = ${L};`; + } + else + a.length > 0 && v !== h + ? (_ += ` var ${v} = ${this.helperManager.getHelperName( + 'interopRequireWildcard' + )}(${h});`) + : o.length > 0 && + v !== h && + (_ += ` var ${v} = ${this.helperManager.getHelperName( + 'interopRequireDefault' + )}(${h});`); + for (let {importedName: x, localName: L} of i) + _ += ` ${this.helperManager.getHelperName( + 'createNamedExportFrom' + )}(${h}, '${L}', '${x}');`; + for (let x of a) _ += ` exports.${x} = ${v};`; + u && + (_ += ` ${this.helperManager.getHelperName( + 'createStarExport' + )}(${h});`), + this.importsToReplace.set(t, _); + for (let x of o) this.identifierReplacements.set(x, `${v}.default`); + for (let {importedName: x, localName: L} of s) + this.identifierReplacements.set(L, `${h}.${x}`); + } + } + getFreeIdentifierForPath(t) { + let n = t.split('/'), + r = n[n.length - 1].replace(/\W/g, ''); + return this.nameManager.claimFreeName(`_${r}`); + } + preprocessImportAtIndex(t) { + let n = [], + o = [], + r = []; + if ( + (t++, + ((this.tokens.matchesContextualAtIndex( + t, + Kr.ContextualKeyword._type + ) || + this.tokens.matches1AtIndex(t, ee.TokenType._typeof)) && + !this.tokens.matches1AtIndex(t + 1, ee.TokenType.comma) && + !this.tokens.matchesContextualAtIndex( + t + 1, + Kr.ContextualKeyword._from + )) || + this.tokens.matches1AtIndex(t, ee.TokenType.parenL)) + ) + return; + if ( + (this.tokens.matches1AtIndex(t, ee.TokenType.name) && + (n.push(this.tokens.identifierNameAtIndex(t)), + t++, + this.tokens.matches1AtIndex(t, ee.TokenType.comma) && t++), + this.tokens.matches1AtIndex(t, ee.TokenType.star) && + ((t += 2), o.push(this.tokens.identifierNameAtIndex(t)), t++), + this.tokens.matches1AtIndex(t, ee.TokenType.braceL)) + ) { + let a = this.getNamedImports(t + 1); + t = a.newIndex; + for (let u of a.namedImports) + u.importedName === 'default' ? n.push(u.localName) : r.push(u); + } + if ( + (this.tokens.matchesContextualAtIndex( + t, + Kr.ContextualKeyword._from + ) && t++, + !this.tokens.matches1AtIndex(t, ee.TokenType.string)) + ) + throw new Error( + 'Expected string token at the end of import statement.' + ); + let s = this.tokens.stringValueAtIndex(t), + i = this.getImportInfo(s); + i.defaultNames.push(...n), + i.wildcardNames.push(...o), + i.namedImports.push(...r), + n.length === 0 && + o.length === 0 && + r.length === 0 && + (i.hasBareImport = !0); + } + preprocessExportAtIndex(t) { + if ( + this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType._var + ) || + this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType._let + ) || + this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType._const + ) + ) + this.preprocessVarExportAtIndex(t); + else if ( + this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType._function + ) || + this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType._class + ) + ) { + let n = this.tokens.identifierNameAtIndex(t + 2); + this.addExportBinding(n, n); + } else if ( + this.tokens.matches3AtIndex( + t, + ee.TokenType._export, + ee.TokenType.name, + ee.TokenType._function + ) + ) { + let n = this.tokens.identifierNameAtIndex(t + 3); + this.addExportBinding(n, n); + } else + this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType.braceL + ) + ? this.preprocessNamedExportAtIndex(t) + : this.tokens.matches2AtIndex( + t, + ee.TokenType._export, + ee.TokenType.star + ) && this.preprocessExportStarAtIndex(t); + } + preprocessVarExportAtIndex(t) { + let n = 0; + for (let o = t + 2; ; o++) + if ( + this.tokens.matches1AtIndex(o, ee.TokenType.braceL) || + this.tokens.matches1AtIndex(o, ee.TokenType.dollarBraceL) || + this.tokens.matches1AtIndex(o, ee.TokenType.bracketL) + ) + n++; + else if ( + this.tokens.matches1AtIndex(o, ee.TokenType.braceR) || + this.tokens.matches1AtIndex(o, ee.TokenType.bracketR) + ) + n--; + else { + if (n === 0 && !this.tokens.matches1AtIndex(o, ee.TokenType.name)) + break; + if (this.tokens.matches1AtIndex(1, ee.TokenType.eq)) { + let r = this.tokens.currentToken().rhsEndIndex; + if (r == null) + throw new Error('Expected = token with an end index.'); + o = r - 1; + } else { + let r = this.tokens.tokens[o]; + if (hT.isDeclaration.call(void 0, r)) { + let s = this.tokens.identifierNameAtIndex(o); + this.identifierReplacements.set(s, `exports.${s}`); + } + } + } + } + preprocessNamedExportAtIndex(t) { + t += 2; + let {newIndex: n, namedImports: o} = this.getNamedImports(t); + if ( + ((t = n), + this.tokens.matchesContextualAtIndex(t, Kr.ContextualKeyword._from)) + ) + t++; + else { + for (let {importedName: i, localName: a} of o) + this.addExportBinding(i, a); + return; + } + if (!this.tokens.matches1AtIndex(t, ee.TokenType.string)) + throw new Error( + 'Expected string token at the end of import statement.' + ); + let r = this.tokens.stringValueAtIndex(t); + this.getImportInfo(r).namedExports.push(...o); + } + preprocessExportStarAtIndex(t) { + let n = null; + if ( + (this.tokens.matches3AtIndex( + t, + ee.TokenType._export, + ee.TokenType.star, + ee.TokenType._as + ) + ? ((t += 3), (n = this.tokens.identifierNameAtIndex(t)), (t += 2)) + : (t += 3), + !this.tokens.matches1AtIndex(t, ee.TokenType.string)) + ) + throw new Error( + 'Expected string token at the end of star export statement.' + ); + let o = this.tokens.stringValueAtIndex(t), + r = this.getImportInfo(o); + n !== null ? r.exportStarNames.push(n) : (r.hasStarExport = !0); + } + getNamedImports(t) { + let n = []; + for (;;) { + if (this.tokens.matches1AtIndex(t, ee.TokenType.braceR)) { + t++; + break; + } + let o = yT.default.call(void 0, this.tokens, t); + if ( + ((t = o.endIndex), + o.isType || + n.push({importedName: o.leftName, localName: o.rightName}), + this.tokens.matches2AtIndex( + t, + ee.TokenType.comma, + ee.TokenType.braceR + )) + ) { + t += 2; + break; + } else if (this.tokens.matches1AtIndex(t, ee.TokenType.braceR)) { + t++; + break; + } else if (this.tokens.matches1AtIndex(t, ee.TokenType.comma)) t++; + else + throw new Error( + `Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}` + ); + } + return {newIndex: t, namedImports: n}; + } + getImportInfo(t) { + let n = this.importInfoByPath.get(t); + if (n) return n; + let o = { + defaultNames: [], + wildcardNames: [], + namedImports: [], + namedExports: [], + hasBareImport: !1, + exportStarNames: [], + hasStarExport: !1, + }; + return this.importInfoByPath.set(t, o), o; + } + addExportBinding(t, n) { + this.exportBindingsByLocalName.has(t) || + this.exportBindingsByLocalName.set(t, []), + this.exportBindingsByLocalName.get(t).push(n); + } + claimImportCode(t) { + let n = this.importsToReplace.get(t); + return this.importsToReplace.set(t, ''), n || ''; + } + getIdentifierReplacement(t) { + return this.identifierReplacements.get(t) || null; + } + resolveExportBinding(t) { + let n = this.exportBindingsByLocalName.get(t); + return !n || n.length === 0 + ? null + : n.map((o) => `exports.${o}`).join(' = '); + } + getGlobalNames() { + return new Set([ + ...this.identifierReplacements.keys(), + ...this.exportBindingsByLocalName.keys(), + ]); + } + }; + Qi.default = Ji; + }); + var Fc = H((qr, Lc) => { + (function (e, t) { + typeof qr == 'object' && typeof Lc < 'u' + ? t(qr) + : typeof define == 'function' && define.amd + ? define(['exports'], t) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + t((e.setArray = {}))); + })(qr, function (e) { + 'use strict'; + (e.get = void 0), (e.put = void 0), (e.pop = void 0); + class t { + constructor() { + (this._indexes = {__proto__: null}), (this.array = []); + } + } + (e.get = (n, o) => n._indexes[o]), + (e.put = (n, o) => { + let r = e.get(n, o); + if (r !== void 0) return r; + let {array: s, _indexes: i} = n; + return (i[o] = s.push(o) - 1); + }), + (e.pop = (n) => { + let {array: o, _indexes: r} = n; + if (o.length === 0) return; + let s = o.pop(); + r[s] = void 0; + }), + (e.SetArray = t), + Object.defineProperty(e, '__esModule', {value: !0}); + }); + }); + var Zi = H((Hr, $c) => { + (function (e, t) { + typeof Hr == 'object' && typeof $c < 'u' + ? t(Hr) + : typeof define == 'function' && define.amd + ? define(['exports'], t) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + t((e.sourcemapCodec = {}))); + })(Hr, function (e) { + 'use strict'; + let o = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', + r = new Uint8Array(64), + s = new Uint8Array(128); + for (let F = 0; F < o.length; F++) { + let K = o.charCodeAt(F); + (r[F] = K), (s[K] = F); + } + let i = + typeof TextDecoder < 'u' + ? new TextDecoder() + : typeof Buffer < 'u' + ? { + decode(F) { + return Buffer.from( + F.buffer, + F.byteOffset, + F.byteLength + ).toString(); + }, + } + : { + decode(F) { + let K = ''; + for (let R = 0; R < F.length; R++) + K += String.fromCharCode(F[R]); + return K; + }, + }; + function a(F) { + let K = new Int32Array(5), + R = [], + z = 0; + do { + let $ = u(F, z), + O = [], + A = !0, + M = 0; + K[0] = 0; + for (let B = z; B < $; B++) { + let oe; + B = h(F, B, K, 0); + let ne = K[0]; + ne < M && (A = !1), + (M = ne), + v(F, B, $) + ? ((B = h(F, B, K, 1)), + (B = h(F, B, K, 2)), + (B = h(F, B, K, 3)), + v(F, B, $) + ? ((B = h(F, B, K, 4)), (oe = [ne, K[1], K[2], K[3], K[4]])) + : (oe = [ne, K[1], K[2], K[3]])) + : (oe = [ne]), + O.push(oe); + } + A || _(O), R.push(O), (z = $ + 1); + } while (z <= F.length); + return R; + } + function u(F, K) { + let R = F.indexOf(';', K); + return R === -1 ? F.length : R; + } + function h(F, K, R, z) { + let $ = 0, + O = 0, + A = 0; + do { + let B = F.charCodeAt(K++); + (A = s[B]), ($ |= (A & 31) << O), (O += 5); + } while (A & 32); + let M = $ & 1; + return ($ >>>= 1), M && ($ = -2147483648 | -$), (R[z] += $), K; + } + function v(F, K, R) { + return K >= R ? !1 : F.charCodeAt(K) !== 44; + } + function _(F) { + F.sort(x); + } + function x(F, K) { + return F[0] - K[0]; + } + function L(F) { + let K = new Int32Array(5), + R = 1024 * 16, + z = R - 36, + $ = new Uint8Array(R), + O = $.subarray(0, z), + A = 0, + M = ''; + for (let B = 0; B < F.length; B++) { + let oe = F[B]; + if ( + (B > 0 && (A === R && ((M += i.decode($)), (A = 0)), ($[A++] = 59)), + oe.length !== 0) + ) { + K[0] = 0; + for (let ne = 0; ne < oe.length; ne++) { + let re = oe[ne]; + A > z && ((M += i.decode(O)), $.copyWithin(0, z, A), (A -= z)), + ne > 0 && ($[A++] = 44), + (A = G($, A, K, re, 0)), + re.length !== 1 && + ((A = G($, A, K, re, 1)), + (A = G($, A, K, re, 2)), + (A = G($, A, K, re, 3)), + re.length !== 4 && (A = G($, A, K, re, 4))); + } + } + } + return M + i.decode($.subarray(0, A)); + } + function G(F, K, R, z, $) { + let O = z[$], + A = O - R[$]; + (R[$] = O), (A = A < 0 ? (-A << 1) | 1 : A << 1); + do { + let M = A & 31; + (A >>>= 5), A > 0 && (M |= 32), (F[K++] = r[M]); + } while (A > 0); + return K; + } + (e.decode = a), + (e.encode = L), + Object.defineProperty(e, '__esModule', {value: !0}); + }); + }); + var Bc = H((ea, ta) => { + (function (e, t) { + typeof ea == 'object' && typeof ta < 'u' + ? (ta.exports = t()) + : typeof define == 'function' && define.amd + ? define(t) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + (e.resolveURI = t())); + })(ea, function () { + 'use strict'; + let e = /^[\w+.-]+:\/\//, + t = + /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, + n = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; + var o; + (function (R) { + (R[(R.Empty = 1)] = 'Empty'), + (R[(R.Hash = 2)] = 'Hash'), + (R[(R.Query = 3)] = 'Query'), + (R[(R.RelativePath = 4)] = 'RelativePath'), + (R[(R.AbsolutePath = 5)] = 'AbsolutePath'), + (R[(R.SchemeRelative = 6)] = 'SchemeRelative'), + (R[(R.Absolute = 7)] = 'Absolute'); + })(o || (o = {})); + function r(R) { + return e.test(R); + } + function s(R) { + return R.startsWith('//'); + } + function i(R) { + return R.startsWith('/'); + } + function a(R) { + return R.startsWith('file:'); + } + function u(R) { + return /^[.?#]/.test(R); + } + function h(R) { + let z = t.exec(R); + return _( + z[1], + z[2] || '', + z[3], + z[4] || '', + z[5] || '/', + z[6] || '', + z[7] || '' + ); + } + function v(R) { + let z = n.exec(R), + $ = z[2]; + return _( + 'file:', + '', + z[1] || '', + '', + i($) ? $ : '/' + $, + z[3] || '', + z[4] || '' + ); + } + function _(R, z, $, O, A, M, B) { + return { + scheme: R, + user: z, + host: $, + port: O, + path: A, + query: M, + hash: B, + type: o.Absolute, + }; + } + function x(R) { + if (s(R)) { + let $ = h('http:' + R); + return ($.scheme = ''), ($.type = o.SchemeRelative), $; + } + if (i(R)) { + let $ = h('http://foo.com' + R); + return ($.scheme = ''), ($.host = ''), ($.type = o.AbsolutePath), $; + } + if (a(R)) return v(R); + if (r(R)) return h(R); + let z = h('http://foo.com/' + R); + return ( + (z.scheme = ''), + (z.host = ''), + (z.type = R + ? R.startsWith('?') + ? o.Query + : R.startsWith('#') + ? o.Hash + : o.RelativePath + : o.Empty), + z + ); + } + function L(R) { + if (R.endsWith('/..')) return R; + let z = R.lastIndexOf('/'); + return R.slice(0, z + 1); + } + function G(R, z) { + F(z, z.type), + R.path === '/' ? (R.path = z.path) : (R.path = L(z.path) + R.path); + } + function F(R, z) { + let $ = z <= o.RelativePath, + O = R.path.split('/'), + A = 1, + M = 0, + B = !1; + for (let ne = 1; ne < O.length; ne++) { + let re = O[ne]; + if (!re) { + B = !0; + continue; + } + if (((B = !1), re !== '.')) { + if (re === '..') { + M ? ((B = !0), M--, A--) : $ && (O[A++] = re); + continue; + } + (O[A++] = re), M++; + } + } + let oe = ''; + for (let ne = 1; ne < A; ne++) oe += '/' + O[ne]; + (!oe || (B && !oe.endsWith('/..'))) && (oe += '/'), (R.path = oe); + } + function K(R, z) { + if (!R && !z) return ''; + let $ = x(R), + O = $.type; + if (z && O !== o.Absolute) { + let M = x(z), + B = M.type; + switch (O) { + case o.Empty: + $.hash = M.hash; + case o.Hash: + $.query = M.query; + case o.Query: + case o.RelativePath: + G($, M); + case o.AbsolutePath: + ($.user = M.user), ($.host = M.host), ($.port = M.port); + case o.SchemeRelative: + $.scheme = M.scheme; + } + B > O && (O = B); + } + F($, O); + let A = $.query + $.hash; + switch (O) { + case o.Hash: + case o.Query: + return A; + case o.RelativePath: { + let M = $.path.slice(1); + return M ? (u(z || R) && !u(M) ? './' + M + A : M + A) : A || '.'; + } + case o.AbsolutePath: + return $.path + A; + default: + return $.scheme + '//' + $.user + $.host + $.port + $.path + A; + } + } + return K; + }); + }); + var Kc = H((Ur, jc) => { + (function (e, t) { + typeof Ur == 'object' && typeof jc < 'u' + ? t(Ur, Zi(), Bc()) + : typeof define == 'function' && define.amd + ? define( + [ + 'exports', + '@jridgewell/sourcemap-codec', + '@jridgewell/resolve-uri', + ], + t + ) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + t((e.traceMapping = {}), e.sourcemapCodec, e.resolveURI)); + })(Ur, function (e, t, n) { + 'use strict'; + function o(I) { + return I && typeof I == 'object' && 'default' in I ? I : {default: I}; + } + var r = o(n); + function s(I, D) { + return D && !D.endsWith('/') && (D += '/'), r.default(I, D); + } + function i(I) { + if (!I) return ''; + let D = I.lastIndexOf('/'); + return I.slice(0, D + 1); + } + let a = 0, + u = 1, + h = 2, + v = 3, + _ = 4, + x = 1, + L = 2; + function G(I, D) { + let j = F(I, 0); + if (j === I.length) return I; + D || (I = I.slice()); + for (let Y = j; Y < I.length; Y = F(I, Y + 1)) I[Y] = R(I[Y], D); + return I; + } + function F(I, D) { + for (let j = D; j < I.length; j++) if (!K(I[j])) return j; + return I.length; + } + function K(I) { + for (let D = 1; D < I.length; D++) if (I[D][a] < I[D - 1][a]) return !1; + return !0; + } + function R(I, D) { + return D || (I = I.slice()), I.sort(z); + } + function z(I, D) { + return I[a] - D[a]; + } + let $ = !1; + function O(I, D, j, Y) { + for (; j <= Y; ) { + let le = j + ((Y - j) >> 1), + Q = I[le][a] - D; + if (Q === 0) return ($ = !0), le; + Q < 0 ? (j = le + 1) : (Y = le - 1); + } + return ($ = !1), j - 1; + } + function A(I, D, j) { + for (let Y = j + 1; Y < I.length && I[Y][a] === D; j = Y++); + return j; + } + function M(I, D, j) { + for (let Y = j - 1; Y >= 0 && I[Y][a] === D; j = Y--); + return j; + } + function B() { + return {lastKey: -1, lastNeedle: -1, lastIndex: -1}; + } + function oe(I, D, j, Y) { + let {lastKey: le, lastNeedle: Q, lastIndex: ke} = j, + ge = 0, + Ce = I.length - 1; + if (Y === le) { + if (D === Q) return ($ = ke !== -1 && I[ke][a] === D), ke; + D >= Q ? (ge = ke === -1 ? 0 : ke) : (Ce = ke); + } + return ( + (j.lastKey = Y), (j.lastNeedle = D), (j.lastIndex = O(I, D, ge, Ce)) + ); + } + function ne(I, D) { + let j = D.map(Le); + for (let Y = 0; Y < I.length; Y++) { + let le = I[Y]; + for (let Q = 0; Q < le.length; Q++) { + let ke = le[Q]; + if (ke.length === 1) continue; + let ge = ke[u], + Ce = ke[h], + We = ke[v], + $e = j[ge], + Ne = $e[Ce] || ($e[Ce] = []), + Ye = D[ge], + et = A(Ne, We, oe(Ne, We, Ye, Ce)); + re(Ne, (Ye.lastIndex = et + 1), [We, Y, ke[a]]); + } + } + return j; + } + function re(I, D, j) { + for (let Y = I.length; Y > D; Y--) I[Y] = I[Y - 1]; + I[D] = j; + } + function Le() { + return {__proto__: null}; + } + let Fe = function (I, D) { + let j = typeof I == 'string' ? JSON.parse(I) : I; + if (!('sections' in j)) return new Ft(j, D); + let Y = [], + le = [], + Q = [], + ke = []; + mt(j, D, Y, le, Q, ke, 0, 0, 1 / 0, 1 / 0); + let ge = { + version: 3, + file: j.file, + names: ke, + sources: le, + sourcesContent: Q, + mappings: Y, + }; + return e.presortedDecodedMap(ge); + }; + function mt(I, D, j, Y, le, Q, ke, ge, Ce, We) { + let {sections: $e} = I; + for (let Ne = 0; Ne < $e.length; Ne++) { + let {map: Ye, offset: et} = $e[Ne], + pt = Ce, + zt = We; + if (Ne + 1 < $e.length) { + let tt = $e[Ne + 1].offset; + (pt = Math.min(Ce, ke + tt.line)), + pt === Ce + ? (zt = Math.min(We, ge + tt.column)) + : pt < Ce && (zt = ge + tt.column); + } + kt(Ye, D, j, Y, le, Q, ke + et.line, ge + et.column, pt, zt); + } + } + function kt(I, D, j, Y, le, Q, ke, ge, Ce, We) { + if ('sections' in I) return mt(...arguments); + let $e = new Ft(I, D), + Ne = Y.length, + Ye = Q.length, + et = e.decodedMappings($e), + {resolvedSources: pt, sourcesContent: zt} = $e; + if ((Qe(Y, pt), Qe(Q, $e.names), zt)) Qe(le, zt); + else for (let tt = 0; tt < pt.length; tt++) le.push(null); + for (let tt = 0; tt < et.length; tt++) { + let Fn = ke + tt; + if (Fn > Ce) return; + let Qn = vt(j, Fn), + bo = tt === 0 ? ge : 0, + Zn = et[tt]; + for (let $n = 0; $n < Zn.length; $n++) { + let jt = Zn[$n], + kn = bo + jt[a]; + if (Fn === Ce && kn >= We) return; + if (jt.length === 1) { + Qn.push([kn]); + continue; + } + let eo = Ne + jt[u], + to = jt[h], + no = jt[v]; + Qn.push( + jt.length === 4 ? [kn, eo, to, no] : [kn, eo, to, no, Ye + jt[_]] + ); + } + } + } + function Qe(I, D) { + for (let j = 0; j < D.length; j++) I.push(D[j]); + } + function vt(I, D) { + for (let j = I.length; j <= D; j++) I[j] = []; + return I[D]; + } + let it = '`line` must be greater than 0 (lines start at line 1)', + ct = + '`column` must be greater than or equal to 0 (columns start at column 0)', + Ze = -1, + ut = 1; + (e.encodedMappings = void 0), + (e.decodedMappings = void 0), + (e.traceSegment = void 0), + (e.originalPositionFor = void 0), + (e.generatedPositionFor = void 0), + (e.eachMapping = void 0), + (e.sourceContentFor = void 0), + (e.presortedDecodedMap = void 0), + (e.decodedMap = void 0), + (e.encodedMap = void 0); + class Ft { + constructor(D, j) { + let Y = typeof D == 'string'; + if (!Y && D._decodedMemo) return D; + let le = Y ? JSON.parse(D) : D, + { + version: Q, + file: ke, + names: ge, + sourceRoot: Ce, + sources: We, + sourcesContent: $e, + } = le; + (this.version = Q), + (this.file = ke), + (this.names = ge), + (this.sourceRoot = Ce), + (this.sources = We), + (this.sourcesContent = $e); + let Ne = s(Ce || '', i(j)); + this.resolvedSources = We.map((et) => s(et || '', Ne)); + let {mappings: Ye} = le; + typeof Ye == 'string' + ? ((this._encoded = Ye), (this._decoded = void 0)) + : ((this._encoded = void 0), (this._decoded = G(Ye, Y))), + (this._decodedMemo = B()), + (this._bySources = void 0), + (this._bySourceMemos = void 0); + } + } + (e.encodedMappings = (I) => { + var D; + return (D = I._encoded) !== null && D !== void 0 + ? D + : (I._encoded = t.encode(I._decoded)); + }), + (e.decodedMappings = (I) => + I._decoded || (I._decoded = t.decode(I._encoded))), + (e.traceSegment = (I, D, j) => { + let Y = e.decodedMappings(I); + return D >= Y.length ? null : on(Y[D], I._decodedMemo, D, j, ut); + }), + (e.originalPositionFor = (I, {line: D, column: j, bias: Y}) => { + if ((D--, D < 0)) throw new Error(it); + if (j < 0) throw new Error(ct); + let le = e.decodedMappings(I); + if (D >= le.length) return $t(null, null, null, null); + let Q = on(le[D], I._decodedMemo, D, j, Y || ut); + if (Q == null || Q.length == 1) return $t(null, null, null, null); + let {names: ke, resolvedSources: ge} = I; + return $t(ge[Q[u]], Q[h] + 1, Q[v], Q.length === 5 ? ke[Q[_]] : null); + }), + (e.generatedPositionFor = ( + I, + {source: D, line: j, column: Y, bias: le} + ) => { + if ((j--, j < 0)) throw new Error(it); + if (Y < 0) throw new Error(ct); + let {sources: Q, resolvedSources: ke} = I, + ge = Q.indexOf(D); + if ((ge === -1 && (ge = ke.indexOf(D)), ge === -1)) + return Bt(null, null); + let Ce = + I._bySources || + (I._bySources = ne( + e.decodedMappings(I), + (I._bySourceMemos = Q.map(B)) + )), + We = I._bySourceMemos, + $e = Ce[ge][j]; + if ($e == null) return Bt(null, null); + let Ne = on($e, We[ge], j, Y, le || ut); + return Ne == null ? Bt(null, null) : Bt(Ne[x] + 1, Ne[L]); + }), + (e.eachMapping = (I, D) => { + let j = e.decodedMappings(I), + {names: Y, resolvedSources: le} = I; + for (let Q = 0; Q < j.length; Q++) { + let ke = j[Q]; + for (let ge = 0; ge < ke.length; ge++) { + let Ce = ke[ge], + We = Q + 1, + $e = Ce[0], + Ne = null, + Ye = null, + et = null, + pt = null; + Ce.length !== 1 && + ((Ne = le[Ce[1]]), (Ye = Ce[2] + 1), (et = Ce[3])), + Ce.length === 5 && (pt = Y[Ce[4]]), + D({ + generatedLine: We, + generatedColumn: $e, + source: Ne, + originalLine: Ye, + originalColumn: et, + name: pt, + }); + } + } + }), + (e.sourceContentFor = (I, D) => { + let {sources: j, resolvedSources: Y, sourcesContent: le} = I; + if (le == null) return null; + let Q = j.indexOf(D); + return Q === -1 && (Q = Y.indexOf(D)), Q === -1 ? null : le[Q]; + }), + (e.presortedDecodedMap = (I, D) => { + let j = new Ft(Vt(I, []), D); + return (j._decoded = I.mappings), j; + }), + (e.decodedMap = (I) => Vt(I, e.decodedMappings(I))), + (e.encodedMap = (I) => Vt(I, e.encodedMappings(I))); + function Vt(I, D) { + return { + version: I.version, + file: I.file, + names: I.names, + sourceRoot: I.sourceRoot, + sources: I.sources, + sourcesContent: I.sourcesContent, + mappings: D, + }; + } + function $t(I, D, j, Y) { + return {source: I, line: D, column: j, name: Y}; + } + function Bt(I, D) { + return {line: I, column: D}; + } + function on(I, D, j, Y, le) { + let Q = oe(I, Y, D, j); + return ( + $ ? (Q = (le === Ze ? A : M)(I, Y, Q)) : le === Ze && Q++, + Q === -1 || Q === I.length ? null : I[Q] + ); + } + (e.AnyMap = Fe), + (e.GREATEST_LOWER_BOUND = ut), + (e.LEAST_UPPER_BOUND = Ze), + (e.TraceMap = Ft), + Object.defineProperty(e, '__esModule', {value: !0}); + }); + }); + var Hc = H((Wr, qc) => { + (function (e, t) { + typeof Wr == 'object' && typeof qc < 'u' + ? t(Wr, Fc(), Zi(), Kc()) + : typeof define == 'function' && define.amd + ? define( + [ + 'exports', + '@jridgewell/set-array', + '@jridgewell/sourcemap-codec', + '@jridgewell/trace-mapping', + ], + t + ) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + t((e.genMapping = {}), e.setArray, e.sourcemapCodec, e.traceMapping)); + })(Wr, function (e, t, n, o) { + 'use strict'; + (e.addSegment = void 0), + (e.addMapping = void 0), + (e.maybeAddSegment = void 0), + (e.maybeAddMapping = void 0), + (e.setSourceContent = void 0), + (e.toDecodedMap = void 0), + (e.toEncodedMap = void 0), + (e.fromMap = void 0), + (e.allMappings = void 0); + let v; + class _ { + constructor({file: A, sourceRoot: M} = {}) { + (this._names = new t.SetArray()), + (this._sources = new t.SetArray()), + (this._sourcesContent = []), + (this._mappings = []), + (this.file = A), + (this.sourceRoot = M); + } + } + (e.addSegment = (O, A, M, B, oe, ne, re, Le) => + v(!1, O, A, M, B, oe, ne, re, Le)), + (e.maybeAddSegment = (O, A, M, B, oe, ne, re, Le) => + v(!0, O, A, M, B, oe, ne, re, Le)), + (e.addMapping = (O, A) => $(!1, O, A)), + (e.maybeAddMapping = (O, A) => $(!0, O, A)), + (e.setSourceContent = (O, A, M) => { + let {_sources: B, _sourcesContent: oe} = O; + oe[t.put(B, A)] = M; + }), + (e.toDecodedMap = (O) => { + let { + file: A, + sourceRoot: M, + _mappings: B, + _sources: oe, + _sourcesContent: ne, + _names: re, + } = O; + return ( + F(B), + { + version: 3, + file: A || void 0, + names: re.array, + sourceRoot: M || void 0, + sources: oe.array, + sourcesContent: ne, + mappings: B, + } + ); + }), + (e.toEncodedMap = (O) => { + let A = e.toDecodedMap(O); + return Object.assign(Object.assign({}, A), { + mappings: n.encode(A.mappings), + }); + }), + (e.allMappings = (O) => { + let A = [], + {_mappings: M, _sources: B, _names: oe} = O; + for (let ne = 0; ne < M.length; ne++) { + let re = M[ne]; + for (let Le = 0; Le < re.length; Le++) { + let Fe = re[Le], + mt = {line: ne + 1, column: Fe[0]}, + kt, + Qe, + vt; + Fe.length !== 1 && + ((kt = B.array[Fe[1]]), + (Qe = {line: Fe[2] + 1, column: Fe[3]}), + Fe.length === 5 && (vt = oe.array[Fe[4]])), + A.push({generated: mt, source: kt, original: Qe, name: vt}); + } + } + return A; + }), + (e.fromMap = (O) => { + let A = new o.TraceMap(O), + M = new _({file: A.file, sourceRoot: A.sourceRoot}); + return ( + K(M._names, A.names), + K(M._sources, A.sources), + (M._sourcesContent = A.sourcesContent || A.sources.map(() => null)), + (M._mappings = o.decodedMappings(A)), + M + ); + }), + (v = (O, A, M, B, oe, ne, re, Le, Fe) => { + let { + _mappings: mt, + _sources: kt, + _sourcesContent: Qe, + _names: vt, + } = A, + it = x(mt, M), + ct = L(it, B); + if (!oe) return O && R(it, ct) ? void 0 : G(it, ct, [B]); + let Ze = t.put(kt, oe), + ut = Le ? t.put(vt, Le) : -1; + if ( + (Ze === Qe.length && (Qe[Ze] = Fe ?? null), + !(O && z(it, ct, Ze, ne, re, ut))) + ) + return G(it, ct, Le ? [B, Ze, ne, re, ut] : [B, Ze, ne, re]); + }); + function x(O, A) { + for (let M = O.length; M <= A; M++) O[M] = []; + return O[A]; + } + function L(O, A) { + let M = O.length; + for (let B = M - 1; B >= 0; M = B--) { + let oe = O[B]; + if (A >= oe[0]) break; + } + return M; + } + function G(O, A, M) { + for (let B = O.length; B > A; B--) O[B] = O[B - 1]; + O[A] = M; + } + function F(O) { + let {length: A} = O, + M = A; + for (let B = M - 1; B >= 0 && !(O[B].length > 0); M = B, B--); + M < A && (O.length = M); + } + function K(O, A) { + for (let M = 0; M < A.length; M++) t.put(O, A[M]); + } + function R(O, A) { + return A === 0 ? !0 : O[A - 1].length === 1; + } + function z(O, A, M, B, oe, ne) { + if (A === 0) return !1; + let re = O[A - 1]; + return re.length === 1 + ? !1 + : M === re[1] && + B === re[2] && + oe === re[3] && + ne === (re.length === 5 ? re[4] : -1); + } + function $(O, A, M) { + let {generated: B, source: oe, original: ne, name: re, content: Le} = M; + if (!oe) + return v(O, A, B.line - 1, B.column, null, null, null, null, null); + let Fe = oe; + return v( + O, + A, + B.line - 1, + B.column, + Fe, + ne.line - 1, + ne.column, + re, + Le + ); + } + (e.GenMapping = _), Object.defineProperty(e, '__esModule', {value: !0}); + }); + }); + var Wc = H((na) => { + 'use strict'; + Object.defineProperty(na, '__esModule', {value: !0}); + var qo = Hc(), + Uc = gt(); + function kT({code: e, mappings: t}, n, o, r, s) { + let i = vT(r, s), + a = new qo.GenMapping({file: o.compiledFilename}), + u = 0, + h = t[0]; + for (; h === void 0 && u < t.length - 1; ) u++, (h = t[u]); + let v = 0, + _ = 0; + h !== _ && qo.maybeAddSegment.call(void 0, a, v, 0, n, v, 0); + for (let F = 0; F < e.length; F++) { + if (F === h) { + let K = h - _, + R = i[u]; + for ( + qo.maybeAddSegment.call(void 0, a, v, K, n, v, R); + (h === F || h === void 0) && u < t.length - 1; + + ) + u++, (h = t[u]); + } + e.charCodeAt(F) === Uc.charCodes.lineFeed && + (v++, + (_ = F + 1), + h !== _ && qo.maybeAddSegment.call(void 0, a, v, 0, n, v, 0)); + } + let { + sourceRoot: x, + sourcesContent: L, + ...G + } = qo.toEncodedMap.call(void 0, a); + return G; + } + na.default = kT; + function vT(e, t) { + let n = new Array(t.length), + o = 0, + r = t[o].start, + s = 0; + for (let i = 0; i < e.length; i++) + i === r && ((n[o] = r - s), o++, (r = t[o].start)), + e.charCodeAt(i) === Uc.charCodes.lineFeed && (s = i + 1); + return n; + } + }); + var Vc = H((ra) => { + 'use strict'; + Object.defineProperty(ra, '__esModule', {value: !0}); + var _T = { + require: ` + import {createRequire as CREATE_REQUIRE_NAME} from "module"; + const require = CREATE_REQUIRE_NAME(import.meta.url); + `, + interopRequireWildcard: ` + function interopRequireWildcard(obj) { + if (obj && obj.__esModule) { + return obj; + } else { + var newObj = {}; + if (obj != null) { + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + newObj[key] = obj[key]; + } + } + } + newObj.default = obj; + return newObj; + } + } + `, + interopRequireDefault: ` + function interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + `, + createNamedExportFrom: ` + function createNamedExportFrom(obj, localName, importedName) { + Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]}); + } + `, + createStarExport: ` + function createStarExport(obj) { + Object.keys(obj) + .filter((key) => key !== "default" && key !== "__esModule") + .forEach((key) => { + if (exports.hasOwnProperty(key)) { + return; + } + Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); + }); + } + `, + nullishCoalesce: ` + function nullishCoalesce(lhs, rhsFn) { + if (lhs != null) { + return lhs; + } else { + return rhsFn(); + } + } + `, + asyncNullishCoalesce: ` + async function asyncNullishCoalesce(lhs, rhsFn) { + if (lhs != null) { + return lhs; + } else { + return await rhsFn(); + } + } + `, + optionalChain: ` + function optionalChain(ops) { + let lastAccessLHS = undefined; + let value = ops[0]; + let i = 1; + while (i < ops.length) { + const op = ops[i]; + const fn = ops[i + 1]; + i += 2; + if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { + return undefined; + } + if (op === 'access' || op === 'optionalAccess') { + lastAccessLHS = value; + value = fn(value); + } else if (op === 'call' || op === 'optionalCall') { + value = fn((...args) => value.call(lastAccessLHS, ...args)); + lastAccessLHS = undefined; + } + } + return value; + } + `, + asyncOptionalChain: ` + async function asyncOptionalChain(ops) { + let lastAccessLHS = undefined; + let value = ops[0]; + let i = 1; + while (i < ops.length) { + const op = ops[i]; + const fn = ops[i + 1]; + i += 2; + if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { + return undefined; + } + if (op === 'access' || op === 'optionalAccess') { + lastAccessLHS = value; + value = await fn(value); + } else if (op === 'call' || op === 'optionalCall') { + value = await fn((...args) => value.call(lastAccessLHS, ...args)); + lastAccessLHS = undefined; + } + } + return value; + } + `, + optionalChainDelete: ` + function optionalChainDelete(ops) { + const result = OPTIONAL_CHAIN_NAME(ops); + return result == null ? true : result; + } + `, + asyncOptionalChainDelete: ` + async function asyncOptionalChainDelete(ops) { + const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops); + return result == null ? true : result; + } + `, + }, + oa = class e { + __init() { + this.helperNames = {}; + } + __init2() { + this.createRequireName = null; + } + constructor(t) { + (this.nameManager = t), + e.prototype.__init.call(this), + e.prototype.__init2.call(this); + } + getHelperName(t) { + let n = this.helperNames[t]; + return ( + n || + ((n = this.nameManager.claimFreeName(`_${t}`)), + (this.helperNames[t] = n), + n) + ); + } + emitHelpers() { + let t = ''; + this.helperNames.optionalChainDelete && + this.getHelperName('optionalChain'), + this.helperNames.asyncOptionalChainDelete && + this.getHelperName('asyncOptionalChain'); + for (let [n, o] of Object.entries(_T)) { + let r = this.helperNames[n], + s = o; + n === 'optionalChainDelete' + ? (s = s.replace( + 'OPTIONAL_CHAIN_NAME', + this.helperNames.optionalChain + )) + : n === 'asyncOptionalChainDelete' + ? (s = s.replace( + 'ASYNC_OPTIONAL_CHAIN_NAME', + this.helperNames.asyncOptionalChain + )) + : n === 'require' && + (this.createRequireName === null && + (this.createRequireName = + this.nameManager.claimFreeName('_createRequire')), + (s = s.replace( + /CREATE_REQUIRE_NAME/g, + this.createRequireName + ))), + r && + ((t += ' '), + (t += s.replace(n, r).replace(/\s+/g, ' ').trim())); + } + return t; + } + }; + ra.HelperManager = oa; + }); + var Yc = H((zr) => { + 'use strict'; + Object.defineProperty(zr, '__esModule', {value: !0}); + var sa = Ve(), + Vr = ce(); + function xT(e, t, n) { + Xc(e, n) && gT(e, t, n); + } + zr.default = xT; + function Xc(e, t) { + for (let n of e.tokens) + if ( + n.type === Vr.TokenType.name && + sa.isNonTopLevelDeclaration.call(void 0, n) && + t.has(e.identifierNameForToken(n)) + ) + return !0; + return !1; + } + zr.hasShadowedGlobals = Xc; + function gT(e, t, n) { + let o = [], + r = t.length - 1; + for (let s = e.tokens.length - 1; ; s--) { + for (; o.length > 0 && o[o.length - 1].startTokenIndex === s + 1; ) + o.pop(); + for (; r >= 0 && t[r].endTokenIndex === s + 1; ) o.push(t[r]), r--; + if (s < 0) break; + let i = e.tokens[s], + a = e.identifierNameForToken(i); + if (o.length > 1 && i.type === Vr.TokenType.name && n.has(a)) { + if (sa.isBlockScopedDeclaration.call(void 0, i)) + zc(o[o.length - 1], e, a); + else if (sa.isFunctionScopedDeclaration.call(void 0, i)) { + let u = o.length - 1; + for (; u > 0 && !o[u].isFunctionScope; ) u--; + if (u < 0) throw new Error('Did not find parent function scope.'); + zc(o[u], e, a); + } + } + } + if (o.length > 0) + throw new Error('Expected empty scope stack after processing file.'); + } + function zc(e, t, n) { + for (let o = e.startTokenIndex; o < e.endTokenIndex; o++) { + let r = t.tokens[o]; + (r.type === Vr.TokenType.name || r.type === Vr.TokenType.jsxName) && + t.identifierNameForToken(r) === n && + (r.shadowsGlobal = !0); + } + } + }); + var Gc = H((ia) => { + 'use strict'; + Object.defineProperty(ia, '__esModule', {value: !0}); + var CT = ce(); + function wT(e, t) { + let n = []; + for (let o of t) + o.type === CT.TokenType.name && n.push(e.slice(o.start, o.end)); + return n; + } + ia.default = wT; + }); + var Jc = H((la) => { + 'use strict'; + Object.defineProperty(la, '__esModule', {value: !0}); + function IT(e) { + return e && e.__esModule ? e : {default: e}; + } + var ST = Gc(), + bT = IT(ST), + aa = class e { + __init() { + this.usedNames = new Set(); + } + constructor(t, n) { + e.prototype.__init.call(this), + (this.usedNames = new Set(bT.default.call(void 0, t, n))); + } + claimFreeName(t) { + let n = this.findFreeName(t); + return this.usedNames.add(n), n; + } + findFreeName(t) { + if (!this.usedNames.has(t)) return t; + let n = 2; + for (; this.usedNames.has(t + String(n)); ) n++; + return t + String(n); + } + }; + la.default = aa; + }); + var Xr = H((Qt) => { + 'use strict'; + var ET = + (Qt && Qt.__extends) || + (function () { + var e = function (t, n) { + return ( + (e = + Object.setPrototypeOf || + ({__proto__: []} instanceof Array && + function (o, r) { + o.__proto__ = r; + }) || + function (o, r) { + for (var s in r) r.hasOwnProperty(s) && (o[s] = r[s]); + }), + e(t, n) + ); + }; + return function (t, n) { + e(t, n); + function o() { + this.constructor = t; + } + t.prototype = + n === null + ? Object.create(n) + : ((o.prototype = n.prototype), new o()); + }; + })(); + Object.defineProperty(Qt, '__esModule', {value: !0}); + Qt.DetailContext = Qt.NoopContext = Qt.VError = void 0; + var Qc = (function (e) { + ET(t, e); + function t(n, o) { + var r = e.call(this, o) || this; + return (r.path = n), Object.setPrototypeOf(r, t.prototype), r; + } + return t; + })(Error); + Qt.VError = Qc; + var AT = (function () { + function e() {} + return ( + (e.prototype.fail = function (t, n, o) { + return !1; + }), + (e.prototype.unionResolver = function () { + return this; + }), + (e.prototype.createContext = function () { + return this; + }), + (e.prototype.resolveUnion = function (t) {}), + e + ); + })(); + Qt.NoopContext = AT; + var Zc = (function () { + function e() { + (this._propNames = ['']), (this._messages = [null]), (this._score = 0); + } + return ( + (e.prototype.fail = function (t, n, o) { + return ( + this._propNames.push(t), + this._messages.push(n), + (this._score += o), + !1 + ); + }), + (e.prototype.unionResolver = function () { + return new PT(); + }), + (e.prototype.resolveUnion = function (t) { + for ( + var n, o, r = t, s = null, i = 0, a = r.contexts; + i < a.length; + i++ + ) { + var u = a[i]; + (!s || u._score >= s._score) && (s = u); + } + s && + s._score > 0 && + ((n = this._propNames).push.apply(n, s._propNames), + (o = this._messages).push.apply(o, s._messages)); + }), + (e.prototype.getError = function (t) { + for (var n = [], o = this._propNames.length - 1; o >= 0; o--) { + var r = this._propNames[o]; + t += typeof r == 'number' ? '[' + r + ']' : r ? '.' + r : ''; + var s = this._messages[o]; + s && n.push(t + ' ' + s); + } + return new Qc(t, n.join('; ')); + }), + (e.prototype.getErrorDetail = function (t) { + for (var n = [], o = this._propNames.length - 1; o >= 0; o--) { + var r = this._propNames[o]; + t += typeof r == 'number' ? '[' + r + ']' : r ? '.' + r : ''; + var s = this._messages[o]; + s && n.push({path: t, message: s}); + } + for (var i = null, o = n.length - 1; o >= 0; o--) + i && (n[o].nested = [i]), (i = n[o]); + return i; + }), + e + ); + })(); + Qt.DetailContext = Zc; + var PT = (function () { + function e() { + this.contexts = []; + } + return ( + (e.prototype.createContext = function () { + var t = new Zc(); + return this.contexts.push(t), t; + }), + e + ); + })(); + }); + var ya = H((X) => { + 'use strict'; + var St = + (X && X.__extends) || + (function () { + var e = function (t, n) { + return ( + (e = + Object.setPrototypeOf || + ({__proto__: []} instanceof Array && + function (o, r) { + o.__proto__ = r; + }) || + function (o, r) { + for (var s in r) r.hasOwnProperty(s) && (o[s] = r[s]); + }), + e(t, n) + ); + }; + return function (t, n) { + e(t, n); + function o() { + this.constructor = t; + } + t.prototype = + n === null + ? Object.create(n) + : ((o.prototype = n.prototype), new o()); + }; + })(); + Object.defineProperty(X, '__esModule', {value: !0}); + X.basicTypes = + X.BasicType = + X.TParamList = + X.TParam = + X.param = + X.TFunc = + X.func = + X.TProp = + X.TOptional = + X.opt = + X.TIface = + X.iface = + X.TEnumLiteral = + X.enumlit = + X.TEnumType = + X.enumtype = + X.TIntersection = + X.intersection = + X.TUnion = + X.union = + X.TTuple = + X.tuple = + X.TArray = + X.array = + X.TLiteral = + X.lit = + X.TName = + X.name = + X.TType = + void 0; + var nu = Xr(), + ht = (function () { + function e() {} + return e; + })(); + X.TType = ht; + function En(e) { + return typeof e == 'string' ? ou(e) : e; + } + function pa(e, t) { + var n = e[t]; + if (!n) throw new Error('Unknown type ' + t); + return n; + } + function ou(e) { + return new da(e); + } + X.name = ou; + var da = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return (o.name = n), (o._failMsg = 'is not a ' + n), o; + } + return ( + (t.prototype.getChecker = function (n, o, r) { + var s = this, + i = pa(n, this.name), + a = i.getChecker(n, o, r); + return i instanceof ot || i instanceof t + ? a + : function (u, h) { + return a(u, h) ? !0 : h.fail(null, s._failMsg, 0); + }; + }), + t + ); + })(ht); + X.TName = da; + function RT(e) { + return new fa(e); + } + X.lit = RT; + var fa = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return ( + (o.value = n), + (o.name = JSON.stringify(n)), + (o._failMsg = 'is not ' + o.name), + o + ); + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this; + return function (s, i) { + return s === r.value ? !0 : i.fail(null, r._failMsg, -1); + }; + }), + t + ); + })(ht); + X.TLiteral = fa; + function NT(e) { + return new ru(En(e)); + } + X.array = NT; + var ru = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return (o.ttype = n), o; + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this.ttype.getChecker(n, o); + return function (s, i) { + if (!Array.isArray(s)) return i.fail(null, 'is not an array', 0); + for (var a = 0; a < s.length; a++) { + var u = r(s[a], i); + if (!u) return i.fail(a, null, 1); + } + return !0; + }; + }), + t + ); + })(ht); + X.TArray = ru; + function DT() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return new su( + e.map(function (n) { + return En(n); + }) + ); + } + X.tuple = DT; + var su = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return (o.ttypes = n), o; + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this.ttypes.map(function (i) { + return i.getChecker(n, o); + }), + s = function (i, a) { + if (!Array.isArray(i)) return a.fail(null, 'is not an array', 0); + for (var u = 0; u < r.length; u++) { + var h = r[u](i[u], a); + if (!h) return a.fail(u, null, 1); + } + return !0; + }; + return o + ? function (i, a) { + return s(i, a) + ? i.length <= r.length + ? !0 + : a.fail(r.length, 'is extraneous', 2) + : !1; + } + : s; + }), + t + ); + })(ht); + X.TTuple = su; + function OT() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return new iu( + e.map(function (n) { + return En(n); + }) + ); + } + X.union = OT; + var iu = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + o.ttypes = n; + var r = n + .map(function (i) { + return i instanceof da || i instanceof fa ? i.name : null; + }) + .filter(function (i) { + return i; + }), + s = n.length - r.length; + return ( + r.length + ? (s > 0 && r.push(s + ' more'), + (o._failMsg = 'is none of ' + r.join(', '))) + : (o._failMsg = 'is none of ' + s + ' types'), + o + ); + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this, + s = this.ttypes.map(function (i) { + return i.getChecker(n, o); + }); + return function (i, a) { + for (var u = a.unionResolver(), h = 0; h < s.length; h++) { + var v = s[h](i, u.createContext()); + if (v) return !0; + } + return a.resolveUnion(u), a.fail(null, r._failMsg, 0); + }; + }), + t + ); + })(ht); + X.TUnion = iu; + function MT() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return new au( + e.map(function (n) { + return En(n); + }) + ); + } + X.intersection = MT; + var au = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return (o.ttypes = n), o; + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = new Set(), + s = this.ttypes.map(function (i) { + return i.getChecker(n, o, r); + }); + return function (i, a) { + var u = s.every(function (h) { + return h(i, a); + }); + return u ? !0 : a.fail(null, null, 0); + }; + }), + t + ); + })(ht); + X.TIntersection = au; + function LT(e) { + return new ha(e); + } + X.enumtype = LT; + var ha = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return ( + (o.members = n), + (o.validValues = new Set()), + (o._failMsg = 'is not a valid enum value'), + (o.validValues = new Set( + Object.keys(n).map(function (r) { + return n[r]; + }) + )), + o + ); + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this; + return function (s, i) { + return r.validValues.has(s) ? !0 : i.fail(null, r._failMsg, 0); + }; + }), + t + ); + })(ht); + X.TEnumType = ha; + function FT(e, t) { + return new lu(e, t); + } + X.enumlit = FT; + var lu = (function (e) { + St(t, e); + function t(n, o) { + var r = e.call(this) || this; + return ( + (r.enumName = n), + (r.prop = o), + (r._failMsg = 'is not ' + n + '.' + o), + r + ); + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this, + s = pa(n, this.enumName); + if (!(s instanceof ha)) + throw new Error( + 'Type ' + this.enumName + ' used in enumlit is not an enum type' + ); + var i = s.members[this.prop]; + if (!s.members.hasOwnProperty(this.prop)) + throw new Error( + 'Unknown value ' + + this.enumName + + '.' + + this.prop + + ' used in enumlit' + ); + return function (a, u) { + return a === i ? !0 : u.fail(null, r._failMsg, -1); + }; + }), + t + ); + })(ht); + X.TEnumLiteral = lu; + function $T(e) { + return Object.keys(e).map(function (t) { + return BT(t, e[t]); + }); + } + function BT(e, t) { + return t instanceof Ta ? new ua(e, t.ttype, !0) : new ua(e, En(t), !1); + } + function jT(e, t) { + return new cu(e, $T(t)); + } + X.iface = jT; + var cu = (function (e) { + St(t, e); + function t(n, o) { + var r = e.call(this) || this; + return ( + (r.bases = n), + (r.props = o), + (r.propSet = new Set( + o.map(function (s) { + return s.name; + }) + )), + r + ); + } + return ( + (t.prototype.getChecker = function (n, o, r) { + var s = this, + i = this.bases.map(function (x) { + return pa(n, x).getChecker(n, o); + }), + a = this.props.map(function (x) { + return x.ttype.getChecker(n, o); + }), + u = new nu.NoopContext(), + h = this.props.map(function (x, L) { + return !x.isOpt && !a[L](void 0, u); + }), + v = function (x, L) { + if (typeof x != 'object' || x === null) + return L.fail(null, 'is not an object', 0); + for (var G = 0; G < i.length; G++) if (!i[G](x, L)) return !1; + for (var G = 0; G < a.length; G++) { + var F = s.props[G].name, + K = x[F]; + if (K === void 0) { + if (h[G]) return L.fail(F, 'is missing', 1); + } else { + var R = a[G](K, L); + if (!R) return L.fail(F, null, 1); + } + } + return !0; + }; + if (!o) return v; + var _ = this.propSet; + return ( + r && + (this.propSet.forEach(function (x) { + return r.add(x); + }), + (_ = r)), + function (x, L) { + if (!v(x, L)) return !1; + for (var G in x) + if (!_.has(G)) return L.fail(G, 'is extraneous', 2); + return !0; + } + ); + }), + t + ); + })(ht); + X.TIface = cu; + function KT(e) { + return new Ta(En(e)); + } + X.opt = KT; + var Ta = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return (o.ttype = n), o; + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this.ttype.getChecker(n, o); + return function (s, i) { + return s === void 0 || r(s, i); + }; + }), + t + ); + })(ht); + X.TOptional = Ta; + var ua = (function () { + function e(t, n, o) { + (this.name = t), (this.ttype = n), (this.isOpt = o); + } + return e; + })(); + X.TProp = ua; + function qT(e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + return new uu(new du(t), En(e)); + } + X.func = qT; + var uu = (function (e) { + St(t, e); + function t(n, o) { + var r = e.call(this) || this; + return (r.paramList = n), (r.result = o), r; + } + return ( + (t.prototype.getChecker = function (n, o) { + return function (r, s) { + return typeof r == 'function' + ? !0 + : s.fail(null, 'is not a function', 0); + }; + }), + t + ); + })(ht); + X.TFunc = uu; + function HT(e, t, n) { + return new pu(e, En(t), !!n); + } + X.param = HT; + var pu = (function () { + function e(t, n, o) { + (this.name = t), (this.ttype = n), (this.isOpt = o); + } + return e; + })(); + X.TParam = pu; + var du = (function (e) { + St(t, e); + function t(n) { + var o = e.call(this) || this; + return (o.params = n), o; + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this, + s = this.params.map(function (h) { + return h.ttype.getChecker(n, o); + }), + i = new nu.NoopContext(), + a = this.params.map(function (h, v) { + return !h.isOpt && !s[v](void 0, i); + }), + u = function (h, v) { + if (!Array.isArray(h)) return v.fail(null, 'is not an array', 0); + for (var _ = 0; _ < s.length; _++) { + var x = r.params[_]; + if (h[_] === void 0) { + if (a[_]) return v.fail(x.name, 'is missing', 1); + } else { + var L = s[_](h[_], v); + if (!L) return v.fail(x.name, null, 1); + } + } + return !0; + }; + return o + ? function (h, v) { + return u(h, v) + ? h.length <= s.length + ? !0 + : v.fail(s.length, 'is extraneous', 2) + : !1; + } + : u; + }), + t + ); + })(ht); + X.TParamList = du; + var ot = (function (e) { + St(t, e); + function t(n, o) { + var r = e.call(this) || this; + return (r.validator = n), (r.message = o), r; + } + return ( + (t.prototype.getChecker = function (n, o) { + var r = this; + return function (s, i) { + return r.validator(s) ? !0 : i.fail(null, r.message, 0); + }; + }), + t + ); + })(ht); + X.BasicType = ot; + X.basicTypes = { + any: new ot(function (e) { + return !0; + }, 'is invalid'), + number: new ot(function (e) { + return typeof e == 'number'; + }, 'is not a number'), + object: new ot(function (e) { + return typeof e == 'object' && e; + }, 'is not an object'), + boolean: new ot(function (e) { + return typeof e == 'boolean'; + }, 'is not a boolean'), + string: new ot(function (e) { + return typeof e == 'string'; + }, 'is not a string'), + symbol: new ot(function (e) { + return typeof e == 'symbol'; + }, 'is not a symbol'), + void: new ot(function (e) { + return e == null; + }, 'is not void'), + undefined: new ot(function (e) { + return e === void 0; + }, 'is not undefined'), + null: new ot(function (e) { + return e === null; + }, 'is not null'), + never: new ot(function (e) { + return !1; + }, 'is unexpected'), + Date: new ot(eu('[object Date]'), 'is not a Date'), + RegExp: new ot(eu('[object RegExp]'), 'is not a RegExp'), + }; + var UT = Object.prototype.toString; + function eu(e) { + return function (t) { + return typeof t == 'object' && t && UT.call(t) === e; + }; + } + typeof Buffer < 'u' && + (X.basicTypes.Buffer = new ot(function (e) { + return Buffer.isBuffer(e); + }, 'is not a Buffer')); + var WT = function (e) { + X.basicTypes[e.name] = new ot(function (t) { + return t instanceof e; + }, 'is not a ' + e.name); + }; + for ( + Yr = 0, + ca = [ + Int8Array, + Uint8Array, + Uint8ClampedArray, + Int16Array, + Uint16Array, + Int32Array, + Uint32Array, + Float32Array, + Float64Array, + ArrayBuffer, + ]; + Yr < ca.length; + Yr++ + ) + (tu = ca[Yr]), WT(tu); + var tu, Yr, ca; + }); + var ma = H((pe) => { + 'use strict'; + var VT = + (pe && pe.__spreadArrays) || + function () { + for (var e = 0, t = 0, n = arguments.length; t < n; t++) + e += arguments[t].length; + for (var o = Array(e), r = 0, t = 0; t < n; t++) + for (var s = arguments[t], i = 0, a = s.length; i < a; i++, r++) + o[r] = s[i]; + return o; + }; + Object.defineProperty(pe, '__esModule', {value: !0}); + pe.Checker = pe.createCheckers = void 0; + var Ho = ya(), + yo = Xr(), + be = ya(); + Object.defineProperty(pe, 'TArray', { + enumerable: !0, + get: function () { + return be.TArray; + }, + }); + Object.defineProperty(pe, 'TEnumType', { + enumerable: !0, + get: function () { + return be.TEnumType; + }, + }); + Object.defineProperty(pe, 'TEnumLiteral', { + enumerable: !0, + get: function () { + return be.TEnumLiteral; + }, + }); + Object.defineProperty(pe, 'TFunc', { + enumerable: !0, + get: function () { + return be.TFunc; + }, + }); + Object.defineProperty(pe, 'TIface', { + enumerable: !0, + get: function () { + return be.TIface; + }, + }); + Object.defineProperty(pe, 'TLiteral', { + enumerable: !0, + get: function () { + return be.TLiteral; + }, + }); + Object.defineProperty(pe, 'TName', { + enumerable: !0, + get: function () { + return be.TName; + }, + }); + Object.defineProperty(pe, 'TOptional', { + enumerable: !0, + get: function () { + return be.TOptional; + }, + }); + Object.defineProperty(pe, 'TParam', { + enumerable: !0, + get: function () { + return be.TParam; + }, + }); + Object.defineProperty(pe, 'TParamList', { + enumerable: !0, + get: function () { + return be.TParamList; + }, + }); + Object.defineProperty(pe, 'TProp', { + enumerable: !0, + get: function () { + return be.TProp; + }, + }); + Object.defineProperty(pe, 'TTuple', { + enumerable: !0, + get: function () { + return be.TTuple; + }, + }); + Object.defineProperty(pe, 'TType', { + enumerable: !0, + get: function () { + return be.TType; + }, + }); + Object.defineProperty(pe, 'TUnion', { + enumerable: !0, + get: function () { + return be.TUnion; + }, + }); + Object.defineProperty(pe, 'TIntersection', { + enumerable: !0, + get: function () { + return be.TIntersection; + }, + }); + Object.defineProperty(pe, 'array', { + enumerable: !0, + get: function () { + return be.array; + }, + }); + Object.defineProperty(pe, 'enumlit', { + enumerable: !0, + get: function () { + return be.enumlit; + }, + }); + Object.defineProperty(pe, 'enumtype', { + enumerable: !0, + get: function () { + return be.enumtype; + }, + }); + Object.defineProperty(pe, 'func', { + enumerable: !0, + get: function () { + return be.func; + }, + }); + Object.defineProperty(pe, 'iface', { + enumerable: !0, + get: function () { + return be.iface; + }, + }); + Object.defineProperty(pe, 'lit', { + enumerable: !0, + get: function () { + return be.lit; + }, + }); + Object.defineProperty(pe, 'name', { + enumerable: !0, + get: function () { + return be.name; + }, + }); + Object.defineProperty(pe, 'opt', { + enumerable: !0, + get: function () { + return be.opt; + }, + }); + Object.defineProperty(pe, 'param', { + enumerable: !0, + get: function () { + return be.param; + }, + }); + Object.defineProperty(pe, 'tuple', { + enumerable: !0, + get: function () { + return be.tuple; + }, + }); + Object.defineProperty(pe, 'union', { + enumerable: !0, + get: function () { + return be.union; + }, + }); + Object.defineProperty(pe, 'intersection', { + enumerable: !0, + get: function () { + return be.intersection; + }, + }); + Object.defineProperty(pe, 'BasicType', { + enumerable: !0, + get: function () { + return be.BasicType; + }, + }); + var zT = Xr(); + Object.defineProperty(pe, 'VError', { + enumerable: !0, + get: function () { + return zT.VError; + }, + }); + function XT() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + for ( + var n = Object.assign.apply(Object, VT([{}, Ho.basicTypes], e)), + o = {}, + r = 0, + s = e; + r < s.length; + r++ + ) + for (var i = s[r], a = 0, u = Object.keys(i); a < u.length; a++) { + var h = u[a]; + o[h] = new fu(n, i[h]); + } + return o; + } + pe.createCheckers = XT; + var fu = (function () { + function e(t, n, o) { + if ( + (o === void 0 && (o = 'value'), + (this.suite = t), + (this.ttype = n), + (this._path = o), + (this.props = new Map()), + n instanceof Ho.TIface) + ) + for (var r = 0, s = n.props; r < s.length; r++) { + var i = s[r]; + this.props.set(i.name, i.ttype); + } + (this.checkerPlain = this.ttype.getChecker(t, !1)), + (this.checkerStrict = this.ttype.getChecker(t, !0)); + } + return ( + (e.prototype.setReportedPath = function (t) { + this._path = t; + }), + (e.prototype.check = function (t) { + return this._doCheck(this.checkerPlain, t); + }), + (e.prototype.test = function (t) { + return this.checkerPlain(t, new yo.NoopContext()); + }), + (e.prototype.validate = function (t) { + return this._doValidate(this.checkerPlain, t); + }), + (e.prototype.strictCheck = function (t) { + return this._doCheck(this.checkerStrict, t); + }), + (e.prototype.strictTest = function (t) { + return this.checkerStrict(t, new yo.NoopContext()); + }), + (e.prototype.strictValidate = function (t) { + return this._doValidate(this.checkerStrict, t); + }), + (e.prototype.getProp = function (t) { + var n = this.props.get(t); + if (!n) throw new Error('Type has no property ' + t); + return new e(this.suite, n, this._path + '.' + t); + }), + (e.prototype.methodArgs = function (t) { + var n = this._getMethod(t); + return new e(this.suite, n.paramList); + }), + (e.prototype.methodResult = function (t) { + var n = this._getMethod(t); + return new e(this.suite, n.result); + }), + (e.prototype.getArgs = function () { + if (!(this.ttype instanceof Ho.TFunc)) + throw new Error('getArgs() applied to non-function'); + return new e(this.suite, this.ttype.paramList); + }), + (e.prototype.getResult = function () { + if (!(this.ttype instanceof Ho.TFunc)) + throw new Error('getResult() applied to non-function'); + return new e(this.suite, this.ttype.result); + }), + (e.prototype.getType = function () { + return this.ttype; + }), + (e.prototype._doCheck = function (t, n) { + var o = new yo.NoopContext(); + if (!t(n, o)) { + var r = new yo.DetailContext(); + throw (t(n, r), r.getError(this._path)); + } + }), + (e.prototype._doValidate = function (t, n) { + var o = new yo.NoopContext(); + if (t(n, o)) return null; + var r = new yo.DetailContext(); + return t(n, r), r.getErrorDetail(this._path); + }), + (e.prototype._getMethod = function (t) { + var n = this.props.get(t); + if (!n) throw new Error('Type has no property ' + t); + if (!(n instanceof Ho.TFunc)) + throw new Error('Property ' + t + ' is not a method'); + return n; + }), + e + ); + })(); + pe.Checker = fu; + }); + var hu = H((dn) => { + 'use strict'; + Object.defineProperty(dn, '__esModule', {value: !0}); + function YT(e) { + if (e && e.__esModule) return e; + var t = {}; + if (e != null) + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); + return (t.default = e), t; + } + var GT = ma(), + Pe = YT(GT), + JT = Pe.union( + Pe.lit('jsx'), + Pe.lit('typescript'), + Pe.lit('flow'), + Pe.lit('imports'), + Pe.lit('react-hot-loader'), + Pe.lit('jest') + ); + dn.Transform = JT; + var QT = Pe.iface([], {compiledFilename: 'string'}); + dn.SourceMapOptions = QT; + var ZT = Pe.iface([], { + transforms: Pe.array('Transform'), + disableESTransforms: Pe.opt('boolean'), + jsxRuntime: Pe.opt( + Pe.union(Pe.lit('classic'), Pe.lit('automatic'), Pe.lit('preserve')) + ), + production: Pe.opt('boolean'), + jsxImportSource: Pe.opt('string'), + jsxPragma: Pe.opt('string'), + jsxFragmentPragma: Pe.opt('string'), + preserveDynamicImport: Pe.opt('boolean'), + injectCreateRequireForImportRequire: Pe.opt('boolean'), + enableLegacyTypeScriptModuleInterop: Pe.opt('boolean'), + enableLegacyBabel5ModuleInterop: Pe.opt('boolean'), + sourceMapOptions: Pe.opt('SourceMapOptions'), + filePath: Pe.opt('string'), + }); + dn.Options = ZT; + var ey = { + Transform: dn.Transform, + SourceMapOptions: dn.SourceMapOptions, + Options: dn.Options, + }; + dn.default = ey; + }); + var Tu = H((ka) => { + 'use strict'; + Object.defineProperty(ka, '__esModule', {value: !0}); + function ty(e) { + return e && e.__esModule ? e : {default: e}; + } + var ny = ma(), + oy = hu(), + ry = ty(oy), + {Options: sy} = ny.createCheckers.call(void 0, ry.default); + function iy(e) { + sy.strictCheck(e); + } + ka.validateOptions = iy; + }); + var Gr = H((Zt) => { + 'use strict'; + Object.defineProperty(Zt, '__esModule', {value: !0}); + var ay = Vo(), + yu = mo(), + rt = Ve(), + Uo = Ge(), + Dt = ce(), + ze = Ct(), + Wo = Xn(), + va = Sn(); + function ly() { + rt.next.call(void 0), Wo.parseMaybeAssign.call(void 0, !1); + } + Zt.parseSpread = ly; + function mu(e) { + rt.next.call(void 0), xa(e); + } + Zt.parseRest = mu; + function ku(e) { + Wo.parseIdentifier.call(void 0), vu(e); + } + Zt.parseBindingIdentifier = ku; + function cy() { + Wo.parseIdentifier.call(void 0), + (ze.state.tokens[ze.state.tokens.length - 1].identifierRole = + rt.IdentifierRole.ImportDeclaration); + } + Zt.parseImportedIdentifier = cy; + function vu(e) { + let t; + ze.state.scopeDepth === 0 + ? (t = rt.IdentifierRole.TopLevelDeclaration) + : e + ? (t = rt.IdentifierRole.BlockScopedDeclaration) + : (t = rt.IdentifierRole.FunctionScopedDeclaration), + (ze.state.tokens[ze.state.tokens.length - 1].identifierRole = t); + } + Zt.markPriorBindingIdentifier = vu; + function xa(e) { + switch (ze.state.type) { + case Dt.TokenType._this: { + let t = rt.pushTypeContext.call(void 0, 0); + rt.next.call(void 0), rt.popTypeContext.call(void 0, t); + return; + } + case Dt.TokenType._yield: + case Dt.TokenType.name: { + (ze.state.type = Dt.TokenType.name), ku(e); + return; + } + case Dt.TokenType.bracketL: { + rt.next.call(void 0), _u(Dt.TokenType.bracketR, e, !0); + return; + } + case Dt.TokenType.braceL: + Wo.parseObj.call(void 0, !0, e); + return; + default: + va.unexpected.call(void 0); + } + } + Zt.parseBindingAtom = xa; + function _u(e, t, n = !1, o = !1, r = 0) { + let s = !0, + i = !1, + a = ze.state.tokens.length; + for (; !rt.eat.call(void 0, e) && !ze.state.error; ) + if ( + (s + ? (s = !1) + : (va.expect.call(void 0, Dt.TokenType.comma), + (ze.state.tokens[ze.state.tokens.length - 1].contextId = r), + !i && + ze.state.tokens[a].isType && + ((ze.state.tokens[ze.state.tokens.length - 1].isType = !0), + (i = !0))), + !(n && rt.match.call(void 0, Dt.TokenType.comma))) + ) { + if (rt.eat.call(void 0, e)) break; + if (rt.match.call(void 0, Dt.TokenType.ellipsis)) { + mu(t), + xu(), + rt.eat.call(void 0, Dt.TokenType.comma), + va.expect.call(void 0, e); + break; + } else uy(o, t); + } + } + Zt.parseBindingList = _u; + function uy(e, t) { + e && + yu.tsParseModifiers.call(void 0, [ + Uo.ContextualKeyword._public, + Uo.ContextualKeyword._protected, + Uo.ContextualKeyword._private, + Uo.ContextualKeyword._readonly, + Uo.ContextualKeyword._override, + ]), + _a(t), + xu(), + _a(t, !0); + } + function xu() { + ze.isFlowEnabled + ? ay.flowParseAssignableListItemTypes.call(void 0) + : ze.isTypeScriptEnabled && + yu.tsParseAssignableListItemTypes.call(void 0); + } + function _a(e, t = !1) { + if ((t || xa(e), !rt.eat.call(void 0, Dt.TokenType.eq))) return; + let n = ze.state.tokens.length - 1; + Wo.parseMaybeAssign.call(void 0), + (ze.state.tokens[n].rhsEndIndex = ze.state.tokens.length); + } + Zt.parseMaybeDefault = _a; + }); + var mo = H((ye) => { + 'use strict'; + Object.defineProperty(ye, '__esModule', {value: !0}); + var c = Ve(), + V = Ge(), + l = ce(), + T = Ct(), + ae = Xn(), + vo = Gr(), + en = Jo(), + P = Sn(), + py = Na(); + function Ca() { + return c.match.call(void 0, l.TokenType.name); + } + function dy() { + return ( + c.match.call(void 0, l.TokenType.name) || + !!(T.state.type & l.TokenType.IS_KEYWORD) || + c.match.call(void 0, l.TokenType.string) || + c.match.call(void 0, l.TokenType.num) || + c.match.call(void 0, l.TokenType.bigint) || + c.match.call(void 0, l.TokenType.decimal) + ); + } + function Su() { + let e = T.state.snapshot(); + return ( + c.next.call(void 0), + (c.match.call(void 0, l.TokenType.bracketL) || + c.match.call(void 0, l.TokenType.braceL) || + c.match.call(void 0, l.TokenType.star) || + c.match.call(void 0, l.TokenType.ellipsis) || + c.match.call(void 0, l.TokenType.hash) || + dy()) && + !P.hasPrecedingLineBreak.call(void 0) + ? !0 + : (T.state.restoreFromSnapshot(e), !1) + ); + } + function bu(e) { + for (; ba(e) !== null; ); + } + ye.tsParseModifiers = bu; + function ba(e) { + if (!c.match.call(void 0, l.TokenType.name)) return null; + let t = T.state.contextualKeyword; + if (e.indexOf(t) !== -1 && Su()) { + switch (t) { + case V.ContextualKeyword._readonly: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._readonly; + break; + case V.ContextualKeyword._abstract: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._abstract; + break; + case V.ContextualKeyword._static: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._static; + break; + case V.ContextualKeyword._public: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._public; + break; + case V.ContextualKeyword._private: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._private; + break; + case V.ContextualKeyword._protected: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._protected; + break; + case V.ContextualKeyword._override: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._override; + break; + case V.ContextualKeyword._declare: + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._declare; + break; + default: + break; + } + return t; + } + return null; + } + ye.tsParseModifier = ba; + function Xo() { + for ( + ae.parseIdentifier.call(void 0); + c.eat.call(void 0, l.TokenType.dot); + + ) + ae.parseIdentifier.call(void 0); + } + function fy() { + Xo(), + !P.hasPrecedingLineBreak.call(void 0) && + c.match.call(void 0, l.TokenType.lessThan) && + xo(); + } + function hy() { + c.next.call(void 0), Go(); + } + function Ty() { + c.next.call(void 0); + } + function yy() { + P.expect.call(void 0, l.TokenType._typeof), + c.match.call(void 0, l.TokenType._import) ? Eu() : Xo(), + !P.hasPrecedingLineBreak.call(void 0) && + c.match.call(void 0, l.TokenType.lessThan) && + xo(); + } + function Eu() { + P.expect.call(void 0, l.TokenType._import), + P.expect.call(void 0, l.TokenType.parenL), + P.expect.call(void 0, l.TokenType.string), + P.expect.call(void 0, l.TokenType.parenR), + c.eat.call(void 0, l.TokenType.dot) && Xo(), + c.match.call(void 0, l.TokenType.lessThan) && xo(); + } + function my() { + c.eat.call(void 0, l.TokenType._const); + let e = c.eat.call(void 0, l.TokenType._in), + t = P.eatContextual.call(void 0, V.ContextualKeyword._out); + c.eat.call(void 0, l.TokenType._const), + (e || t) && !c.match.call(void 0, l.TokenType.name) + ? (T.state.tokens[T.state.tokens.length - 1].type = l.TokenType.name) + : ae.parseIdentifier.call(void 0), + c.eat.call(void 0, l.TokenType._extends) && Me(), + c.eat.call(void 0, l.TokenType.eq) && Me(); + } + function _o() { + c.match.call(void 0, l.TokenType.lessThan) && Qr(); + } + ye.tsTryParseTypeParameters = _o; + function Qr() { + let e = c.pushTypeContext.call(void 0, 0); + for ( + c.match.call(void 0, l.TokenType.lessThan) || + c.match.call(void 0, l.TokenType.typeParameterStart) + ? c.next.call(void 0) + : P.unexpected.call(void 0); + !c.eat.call(void 0, l.TokenType.greaterThan) && !T.state.error; + + ) + my(), c.eat.call(void 0, l.TokenType.comma); + c.popTypeContext.call(void 0, e); + } + function Ea(e) { + let t = e === l.TokenType.arrow; + _o(), + P.expect.call(void 0, l.TokenType.parenL), + T.state.scopeDepth++, + ky(!1), + T.state.scopeDepth--, + (t || c.match.call(void 0, e)) && zo(e); + } + function ky(e) { + vo.parseBindingList.call(void 0, l.TokenType.parenR, e); + } + function Jr() { + c.eat.call(void 0, l.TokenType.comma) || P.semicolon.call(void 0); + } + function gu() { + Ea(l.TokenType.colon), Jr(); + } + function vy() { + let e = T.state.snapshot(); + c.next.call(void 0); + let t = + c.eat.call(void 0, l.TokenType.name) && + c.match.call(void 0, l.TokenType.colon); + return T.state.restoreFromSnapshot(e), t; + } + function Au() { + if (!(c.match.call(void 0, l.TokenType.bracketL) && vy())) return !1; + let e = c.pushTypeContext.call(void 0, 0); + return ( + P.expect.call(void 0, l.TokenType.bracketL), + ae.parseIdentifier.call(void 0), + Go(), + P.expect.call(void 0, l.TokenType.bracketR), + Yo(), + Jr(), + c.popTypeContext.call(void 0, e), + !0 + ); + } + function Cu(e) { + c.eat.call(void 0, l.TokenType.question), + !e && + (c.match.call(void 0, l.TokenType.parenL) || + c.match.call(void 0, l.TokenType.lessThan)) + ? (Ea(l.TokenType.colon), Jr()) + : (Yo(), Jr()); + } + function _y() { + if ( + c.match.call(void 0, l.TokenType.parenL) || + c.match.call(void 0, l.TokenType.lessThan) + ) { + gu(); + return; + } + if (c.match.call(void 0, l.TokenType._new)) { + c.next.call(void 0), + c.match.call(void 0, l.TokenType.parenL) || + c.match.call(void 0, l.TokenType.lessThan) + ? gu() + : Cu(!1); + return; + } + let e = !!ba([V.ContextualKeyword._readonly]); + Au() || + ((P.isContextual.call(void 0, V.ContextualKeyword._get) || + P.isContextual.call(void 0, V.ContextualKeyword._set)) && + Su(), + ae.parsePropertyName.call(void 0, -1), + Cu(e)); + } + function xy() { + Pu(); + } + function Pu() { + for ( + P.expect.call(void 0, l.TokenType.braceL); + !c.eat.call(void 0, l.TokenType.braceR) && !T.state.error; + + ) + _y(); + } + function gy() { + let e = T.state.snapshot(), + t = Cy(); + return T.state.restoreFromSnapshot(e), t; + } + function Cy() { + return ( + c.next.call(void 0), + c.eat.call(void 0, l.TokenType.plus) || + c.eat.call(void 0, l.TokenType.minus) + ? P.isContextual.call(void 0, V.ContextualKeyword._readonly) + : (P.isContextual.call(void 0, V.ContextualKeyword._readonly) && + c.next.call(void 0), + !c.match.call(void 0, l.TokenType.bracketL) || + (c.next.call(void 0), !Ca()) + ? !1 + : (c.next.call(void 0), c.match.call(void 0, l.TokenType._in))) + ); + } + function wy() { + ae.parseIdentifier.call(void 0), + P.expect.call(void 0, l.TokenType._in), + Me(); + } + function Iy() { + P.expect.call(void 0, l.TokenType.braceL), + c.match.call(void 0, l.TokenType.plus) || + c.match.call(void 0, l.TokenType.minus) + ? (c.next.call(void 0), + P.expectContextual.call(void 0, V.ContextualKeyword._readonly)) + : P.eatContextual.call(void 0, V.ContextualKeyword._readonly), + P.expect.call(void 0, l.TokenType.bracketL), + wy(), + P.eatContextual.call(void 0, V.ContextualKeyword._as) && Me(), + P.expect.call(void 0, l.TokenType.bracketR), + c.match.call(void 0, l.TokenType.plus) || + c.match.call(void 0, l.TokenType.minus) + ? (c.next.call(void 0), P.expect.call(void 0, l.TokenType.question)) + : c.eat.call(void 0, l.TokenType.question), + By(), + P.semicolon.call(void 0), + P.expect.call(void 0, l.TokenType.braceR); + } + function Sy() { + for ( + P.expect.call(void 0, l.TokenType.bracketL); + !c.eat.call(void 0, l.TokenType.bracketR) && !T.state.error; + + ) + by(), c.eat.call(void 0, l.TokenType.comma); + } + function by() { + c.eat.call(void 0, l.TokenType.ellipsis) + ? Me() + : (Me(), c.eat.call(void 0, l.TokenType.question)), + c.eat.call(void 0, l.TokenType.colon) && Me(); + } + function Ey() { + P.expect.call(void 0, l.TokenType.parenL), + Me(), + P.expect.call(void 0, l.TokenType.parenR); + } + function Ay() { + for ( + c.nextTemplateToken.call(void 0), c.nextTemplateToken.call(void 0); + !c.match.call(void 0, l.TokenType.backQuote) && !T.state.error; + + ) + P.expect.call(void 0, l.TokenType.dollarBraceL), + Me(), + c.nextTemplateToken.call(void 0), + c.nextTemplateToken.call(void 0); + c.next.call(void 0); + } + var An; + (function (e) { + e[(e.TSFunctionType = 0)] = 'TSFunctionType'; + let n = 1; + e[(e.TSConstructorType = n)] = 'TSConstructorType'; + let o = n + 1; + e[(e.TSAbstractConstructorType = o)] = 'TSAbstractConstructorType'; + })(An || (An = {})); + function ga(e) { + e === An.TSAbstractConstructorType && + P.expectContextual.call(void 0, V.ContextualKeyword._abstract), + (e === An.TSConstructorType || e === An.TSAbstractConstructorType) && + P.expect.call(void 0, l.TokenType._new); + let t = T.state.inDisallowConditionalTypesContext; + (T.state.inDisallowConditionalTypesContext = !1), + Ea(l.TokenType.arrow), + (T.state.inDisallowConditionalTypesContext = t); + } + function Py() { + switch (T.state.type) { + case l.TokenType.name: + fy(); + return; + case l.TokenType._void: + case l.TokenType._null: + c.next.call(void 0); + return; + case l.TokenType.string: + case l.TokenType.num: + case l.TokenType.bigint: + case l.TokenType.decimal: + case l.TokenType._true: + case l.TokenType._false: + ae.parseLiteral.call(void 0); + return; + case l.TokenType.minus: + c.next.call(void 0), ae.parseLiteral.call(void 0); + return; + case l.TokenType._this: { + Ty(), + P.isContextual.call(void 0, V.ContextualKeyword._is) && + !P.hasPrecedingLineBreak.call(void 0) && + hy(); + return; + } + case l.TokenType._typeof: + yy(); + return; + case l.TokenType._import: + Eu(); + return; + case l.TokenType.braceL: + gy() ? Iy() : xy(); + return; + case l.TokenType.bracketL: + Sy(); + return; + case l.TokenType.parenL: + Ey(); + return; + case l.TokenType.backQuote: + Ay(); + return; + default: + if (T.state.type & l.TokenType.IS_KEYWORD) { + c.next.call(void 0), + (T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType.name); + return; + } + break; + } + P.unexpected.call(void 0); + } + function Ry() { + for ( + Py(); + !P.hasPrecedingLineBreak.call(void 0) && + c.eat.call(void 0, l.TokenType.bracketL); + + ) + c.eat.call(void 0, l.TokenType.bracketR) || + (Me(), P.expect.call(void 0, l.TokenType.bracketR)); + } + function Ny() { + if ( + (P.expectContextual.call(void 0, V.ContextualKeyword._infer), + ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType._extends)) + ) { + let e = T.state.snapshot(); + P.expect.call(void 0, l.TokenType._extends); + let t = T.state.inDisallowConditionalTypesContext; + (T.state.inDisallowConditionalTypesContext = !0), + Me(), + (T.state.inDisallowConditionalTypesContext = t), + (T.state.error || + (!T.state.inDisallowConditionalTypesContext && + c.match.call(void 0, l.TokenType.question))) && + T.state.restoreFromSnapshot(e); + } + } + function wa() { + if ( + P.isContextual.call(void 0, V.ContextualKeyword._keyof) || + P.isContextual.call(void 0, V.ContextualKeyword._unique) || + P.isContextual.call(void 0, V.ContextualKeyword._readonly) + ) + c.next.call(void 0), wa(); + else if (P.isContextual.call(void 0, V.ContextualKeyword._infer)) Ny(); + else { + let e = T.state.inDisallowConditionalTypesContext; + (T.state.inDisallowConditionalTypesContext = !1), + Ry(), + (T.state.inDisallowConditionalTypesContext = e); + } + } + function wu() { + if ( + (c.eat.call(void 0, l.TokenType.bitwiseAND), + wa(), + c.match.call(void 0, l.TokenType.bitwiseAND)) + ) + for (; c.eat.call(void 0, l.TokenType.bitwiseAND); ) wa(); + } + function Dy() { + if ( + (c.eat.call(void 0, l.TokenType.bitwiseOR), + wu(), + c.match.call(void 0, l.TokenType.bitwiseOR)) + ) + for (; c.eat.call(void 0, l.TokenType.bitwiseOR); ) wu(); + } + function Oy() { + return c.match.call(void 0, l.TokenType.lessThan) + ? !0 + : c.match.call(void 0, l.TokenType.parenL) && Ly(); + } + function My() { + if ( + c.match.call(void 0, l.TokenType.name) || + c.match.call(void 0, l.TokenType._this) + ) + return c.next.call(void 0), !0; + if ( + c.match.call(void 0, l.TokenType.braceL) || + c.match.call(void 0, l.TokenType.bracketL) + ) { + let e = 1; + for (c.next.call(void 0); e > 0 && !T.state.error; ) + c.match.call(void 0, l.TokenType.braceL) || + c.match.call(void 0, l.TokenType.bracketL) + ? e++ + : (c.match.call(void 0, l.TokenType.braceR) || + c.match.call(void 0, l.TokenType.bracketR)) && + e--, + c.next.call(void 0); + return !0; + } + return !1; + } + function Ly() { + let e = T.state.snapshot(), + t = Fy(); + return T.state.restoreFromSnapshot(e), t; + } + function Fy() { + return ( + c.next.call(void 0), + !!( + c.match.call(void 0, l.TokenType.parenR) || + c.match.call(void 0, l.TokenType.ellipsis) || + (My() && + (c.match.call(void 0, l.TokenType.colon) || + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.question) || + c.match.call(void 0, l.TokenType.eq) || + (c.match.call(void 0, l.TokenType.parenR) && + (c.next.call(void 0), + c.match.call(void 0, l.TokenType.arrow))))) + ) + ); + } + function zo(e) { + let t = c.pushTypeContext.call(void 0, 0); + P.expect.call(void 0, e), jy() || Me(), c.popTypeContext.call(void 0, t); + } + function $y() { + c.match.call(void 0, l.TokenType.colon) && zo(l.TokenType.colon); + } + function Yo() { + c.match.call(void 0, l.TokenType.colon) && Go(); + } + ye.tsTryParseTypeAnnotation = Yo; + function By() { + c.eat.call(void 0, l.TokenType.colon) && Me(); + } + function jy() { + let e = T.state.snapshot(); + return P.isContextual.call(void 0, V.ContextualKeyword._asserts) + ? (c.next.call(void 0), + P.eatContextual.call(void 0, V.ContextualKeyword._is) + ? (Me(), !0) + : Ca() || c.match.call(void 0, l.TokenType._this) + ? (c.next.call(void 0), + P.eatContextual.call(void 0, V.ContextualKeyword._is) && Me(), + !0) + : (T.state.restoreFromSnapshot(e), !1)) + : Ca() || c.match.call(void 0, l.TokenType._this) + ? (c.next.call(void 0), + P.isContextual.call(void 0, V.ContextualKeyword._is) && + !P.hasPrecedingLineBreak.call(void 0) + ? (c.next.call(void 0), Me(), !0) + : (T.state.restoreFromSnapshot(e), !1)) + : !1; + } + function Go() { + let e = c.pushTypeContext.call(void 0, 0); + P.expect.call(void 0, l.TokenType.colon), + Me(), + c.popTypeContext.call(void 0, e); + } + ye.tsParseTypeAnnotation = Go; + function Me() { + if ( + (Ia(), + T.state.inDisallowConditionalTypesContext || + P.hasPrecedingLineBreak.call(void 0) || + !c.eat.call(void 0, l.TokenType._extends)) + ) + return; + let e = T.state.inDisallowConditionalTypesContext; + (T.state.inDisallowConditionalTypesContext = !0), + Ia(), + (T.state.inDisallowConditionalTypesContext = e), + P.expect.call(void 0, l.TokenType.question), + Me(), + P.expect.call(void 0, l.TokenType.colon), + Me(); + } + ye.tsParseType = Me; + function Ky() { + return ( + P.isContextual.call(void 0, V.ContextualKeyword._abstract) && + c.lookaheadType.call(void 0) === l.TokenType._new + ); + } + function Ia() { + if (Oy()) { + ga(An.TSFunctionType); + return; + } + if (c.match.call(void 0, l.TokenType._new)) { + ga(An.TSConstructorType); + return; + } else if (Ky()) { + ga(An.TSAbstractConstructorType); + return; + } + Dy(); + } + ye.tsParseNonConditionalType = Ia; + function qy() { + let e = c.pushTypeContext.call(void 0, 1); + Me(), + P.expect.call(void 0, l.TokenType.greaterThan), + c.popTypeContext.call(void 0, e), + ae.parseMaybeUnary.call(void 0); + } + ye.tsParseTypeAssertion = qy; + function Hy() { + if (c.eat.call(void 0, l.TokenType.jsxTagStart)) { + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType.typeParameterStart; + let e = c.pushTypeContext.call(void 0, 1); + for ( + ; + !c.match.call(void 0, l.TokenType.greaterThan) && !T.state.error; + + ) + Me(), c.eat.call(void 0, l.TokenType.comma); + py.nextJSXTagToken.call(void 0), c.popTypeContext.call(void 0, e); + } + } + ye.tsTryParseJSXTypeArgument = Hy; + function Ru() { + for (; !c.match.call(void 0, l.TokenType.braceL) && !T.state.error; ) + Uy(), c.eat.call(void 0, l.TokenType.comma); + } + function Uy() { + Xo(), c.match.call(void 0, l.TokenType.lessThan) && xo(); + } + function Wy() { + vo.parseBindingIdentifier.call(void 0, !1), + _o(), + c.eat.call(void 0, l.TokenType._extends) && Ru(), + Pu(); + } + function Vy() { + vo.parseBindingIdentifier.call(void 0, !1), + _o(), + P.expect.call(void 0, l.TokenType.eq), + Me(), + P.semicolon.call(void 0); + } + function zy() { + if ( + (c.match.call(void 0, l.TokenType.string) + ? ae.parseLiteral.call(void 0) + : ae.parseIdentifier.call(void 0), + c.eat.call(void 0, l.TokenType.eq)) + ) { + let e = T.state.tokens.length - 1; + ae.parseMaybeAssign.call(void 0), + (T.state.tokens[e].rhsEndIndex = T.state.tokens.length); + } + } + function Aa() { + for ( + vo.parseBindingIdentifier.call(void 0, !1), + P.expect.call(void 0, l.TokenType.braceL); + !c.eat.call(void 0, l.TokenType.braceR) && !T.state.error; + + ) + zy(), c.eat.call(void 0, l.TokenType.comma); + } + function Pa() { + P.expect.call(void 0, l.TokenType.braceL), + en.parseBlockBody.call(void 0, l.TokenType.braceR); + } + function Sa() { + vo.parseBindingIdentifier.call(void 0, !1), + c.eat.call(void 0, l.TokenType.dot) ? Sa() : Pa(); + } + function Nu() { + P.isContextual.call(void 0, V.ContextualKeyword._global) + ? ae.parseIdentifier.call(void 0) + : c.match.call(void 0, l.TokenType.string) + ? ae.parseExprAtom.call(void 0) + : P.unexpected.call(void 0), + c.match.call(void 0, l.TokenType.braceL) + ? Pa() + : P.semicolon.call(void 0); + } + function Du() { + vo.parseImportedIdentifier.call(void 0), + P.expect.call(void 0, l.TokenType.eq), + Yy(), + P.semicolon.call(void 0); + } + ye.tsParseImportEqualsDeclaration = Du; + function Xy() { + return ( + P.isContextual.call(void 0, V.ContextualKeyword._require) && + c.lookaheadType.call(void 0) === l.TokenType.parenL + ); + } + function Yy() { + Xy() ? Gy() : Xo(); + } + function Gy() { + P.expectContextual.call(void 0, V.ContextualKeyword._require), + P.expect.call(void 0, l.TokenType.parenL), + c.match.call(void 0, l.TokenType.string) || P.unexpected.call(void 0), + ae.parseLiteral.call(void 0), + P.expect.call(void 0, l.TokenType.parenR); + } + function Jy() { + if (P.isLineTerminator.call(void 0)) return !1; + switch (T.state.type) { + case l.TokenType._function: { + let e = c.pushTypeContext.call(void 0, 1); + c.next.call(void 0); + let t = T.state.start; + return ( + en.parseFunction.call(void 0, t, !0), + c.popTypeContext.call(void 0, e), + !0 + ); + } + case l.TokenType._class: { + let e = c.pushTypeContext.call(void 0, 1); + return ( + en.parseClass.call(void 0, !0, !1), + c.popTypeContext.call(void 0, e), + !0 + ); + } + case l.TokenType._const: + if ( + c.match.call(void 0, l.TokenType._const) && + P.isLookaheadContextual.call(void 0, V.ContextualKeyword._enum) + ) { + let e = c.pushTypeContext.call(void 0, 1); + return ( + P.expect.call(void 0, l.TokenType._const), + P.expectContextual.call(void 0, V.ContextualKeyword._enum), + (T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._enum), + Aa(), + c.popTypeContext.call(void 0, e), + !0 + ); + } + case l.TokenType._var: + case l.TokenType._let: { + let e = c.pushTypeContext.call(void 0, 1); + return ( + en.parseVarStatement.call( + void 0, + T.state.type !== l.TokenType._var + ), + c.popTypeContext.call(void 0, e), + !0 + ); + } + case l.TokenType.name: { + let e = c.pushTypeContext.call(void 0, 1), + t = T.state.contextualKeyword, + n = !1; + return ( + t === V.ContextualKeyword._global + ? (Nu(), (n = !0)) + : (n = Zr(t, !0)), + c.popTypeContext.call(void 0, e), + n + ); + } + default: + return !1; + } + } + function Iu() { + return Zr(T.state.contextualKeyword, !0); + } + function Qy(e) { + switch (e) { + case V.ContextualKeyword._declare: { + let t = T.state.tokens.length - 1; + if (Jy()) return (T.state.tokens[t].type = l.TokenType._declare), !0; + break; + } + case V.ContextualKeyword._global: + if (c.match.call(void 0, l.TokenType.braceL)) return Pa(), !0; + break; + default: + return Zr(e, !1); + } + return !1; + } + function Zr(e, t) { + switch (e) { + case V.ContextualKeyword._abstract: + if (ko(t) && c.match.call(void 0, l.TokenType._class)) + return ( + (T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._abstract), + en.parseClass.call(void 0, !0, !1), + !0 + ); + break; + case V.ContextualKeyword._enum: + if (ko(t) && c.match.call(void 0, l.TokenType.name)) + return ( + (T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._enum), + Aa(), + !0 + ); + break; + case V.ContextualKeyword._interface: + if (ko(t) && c.match.call(void 0, l.TokenType.name)) { + let n = c.pushTypeContext.call(void 0, t ? 2 : 1); + return Wy(), c.popTypeContext.call(void 0, n), !0; + } + break; + case V.ContextualKeyword._module: + if (ko(t)) { + if (c.match.call(void 0, l.TokenType.string)) { + let n = c.pushTypeContext.call(void 0, t ? 2 : 1); + return Nu(), c.popTypeContext.call(void 0, n), !0; + } else if (c.match.call(void 0, l.TokenType.name)) { + let n = c.pushTypeContext.call(void 0, t ? 2 : 1); + return Sa(), c.popTypeContext.call(void 0, n), !0; + } + } + break; + case V.ContextualKeyword._namespace: + if (ko(t) && c.match.call(void 0, l.TokenType.name)) { + let n = c.pushTypeContext.call(void 0, t ? 2 : 1); + return Sa(), c.popTypeContext.call(void 0, n), !0; + } + break; + case V.ContextualKeyword._type: + if (ko(t) && c.match.call(void 0, l.TokenType.name)) { + let n = c.pushTypeContext.call(void 0, t ? 2 : 1); + return Vy(), c.popTypeContext.call(void 0, n), !0; + } + break; + default: + break; + } + return !1; + } + function ko(e) { + return e ? (c.next.call(void 0), !0) : !P.isLineTerminator.call(void 0); + } + function Zy() { + let e = T.state.snapshot(); + return ( + Qr(), + en.parseFunctionParams.call(void 0), + $y(), + P.expect.call(void 0, l.TokenType.arrow), + T.state.error + ? (T.state.restoreFromSnapshot(e), !1) + : (ae.parseFunctionBody.call(void 0, !0), !0) + ); + } + function Ra() { + T.state.type === l.TokenType.bitShiftL && + ((T.state.pos -= 1), c.finishToken.call(void 0, l.TokenType.lessThan)), + xo(); + } + function xo() { + let e = c.pushTypeContext.call(void 0, 0); + for ( + P.expect.call(void 0, l.TokenType.lessThan); + !c.eat.call(void 0, l.TokenType.greaterThan) && !T.state.error; + + ) + Me(), c.eat.call(void 0, l.TokenType.comma); + c.popTypeContext.call(void 0, e); + } + function em() { + if (c.match.call(void 0, l.TokenType.name)) + switch (T.state.contextualKeyword) { + case V.ContextualKeyword._abstract: + case V.ContextualKeyword._declare: + case V.ContextualKeyword._enum: + case V.ContextualKeyword._interface: + case V.ContextualKeyword._module: + case V.ContextualKeyword._namespace: + case V.ContextualKeyword._type: + return !0; + default: + break; + } + return !1; + } + ye.tsIsDeclarationStart = em; + function tm(e, t) { + if ( + (c.match.call(void 0, l.TokenType.colon) && zo(l.TokenType.colon), + !c.match.call(void 0, l.TokenType.braceL) && + P.isLineTerminator.call(void 0)) + ) { + let n = T.state.tokens.length - 1; + for ( + ; + n >= 0 && + (T.state.tokens[n].start >= e || + T.state.tokens[n].type === l.TokenType._default || + T.state.tokens[n].type === l.TokenType._export); + + ) + (T.state.tokens[n].isType = !0), n--; + return; + } + ae.parseFunctionBody.call(void 0, !1, t); + } + ye.tsParseFunctionBodyAndFinish = tm; + function nm(e, t, n) { + if ( + !P.hasPrecedingLineBreak.call(void 0) && + c.eat.call(void 0, l.TokenType.bang) + ) { + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType.nonNullAssertion; + return; + } + if ( + c.match.call(void 0, l.TokenType.lessThan) || + c.match.call(void 0, l.TokenType.bitShiftL) + ) { + let o = T.state.snapshot(); + if (!t && ae.atPossibleAsync.call(void 0) && Zy()) return; + if ( + (Ra(), + !t && c.eat.call(void 0, l.TokenType.parenL) + ? ((T.state.tokens[T.state.tokens.length - 1].subscriptStartIndex = + e), + ae.parseCallExpressionArguments.call(void 0)) + : c.match.call(void 0, l.TokenType.backQuote) + ? ae.parseTemplate.call(void 0) + : (T.state.type === l.TokenType.greaterThan || + (T.state.type !== l.TokenType.parenL && + T.state.type & l.TokenType.IS_EXPRESSION_START && + !P.hasPrecedingLineBreak.call(void 0))) && + P.unexpected.call(void 0), + T.state.error) + ) + T.state.restoreFromSnapshot(o); + else return; + } else + !t && + c.match.call(void 0, l.TokenType.questionDot) && + c.lookaheadType.call(void 0) === l.TokenType.lessThan && + (c.next.call(void 0), + (T.state.tokens[e].isOptionalChainStart = !0), + (T.state.tokens[T.state.tokens.length - 1].subscriptStartIndex = e), + xo(), + P.expect.call(void 0, l.TokenType.parenL), + ae.parseCallExpressionArguments.call(void 0)); + ae.baseParseSubscript.call(void 0, e, t, n); + } + ye.tsParseSubscript = nm; + function om() { + if (c.eat.call(void 0, l.TokenType._import)) + return ( + P.isContextual.call(void 0, V.ContextualKeyword._type) && + c.lookaheadType.call(void 0) !== l.TokenType.eq && + P.expectContextual.call(void 0, V.ContextualKeyword._type), + Du(), + !0 + ); + if (c.eat.call(void 0, l.TokenType.eq)) + return ae.parseExpression.call(void 0), P.semicolon.call(void 0), !0; + if (P.eatContextual.call(void 0, V.ContextualKeyword._as)) + return ( + P.expectContextual.call(void 0, V.ContextualKeyword._namespace), + ae.parseIdentifier.call(void 0), + P.semicolon.call(void 0), + !0 + ); + if (P.isContextual.call(void 0, V.ContextualKeyword._type)) { + let e = c.lookaheadType.call(void 0); + (e === l.TokenType.braceL || e === l.TokenType.star) && + c.next.call(void 0); + } + return !1; + } + ye.tsTryParseExport = om; + function rm() { + if ( + (ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.braceR)) + ) { + T.state.tokens[T.state.tokens.length - 1].identifierRole = + c.IdentifierRole.ImportDeclaration; + return; + } + if ( + (ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.braceR)) + ) { + (T.state.tokens[T.state.tokens.length - 1].identifierRole = + c.IdentifierRole.ImportDeclaration), + (T.state.tokens[T.state.tokens.length - 2].isType = !0), + (T.state.tokens[T.state.tokens.length - 1].isType = !0); + return; + } + if ( + (ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.braceR)) + ) { + (T.state.tokens[T.state.tokens.length - 3].identifierRole = + c.IdentifierRole.ImportAccess), + (T.state.tokens[T.state.tokens.length - 1].identifierRole = + c.IdentifierRole.ImportDeclaration); + return; + } + ae.parseIdentifier.call(void 0), + (T.state.tokens[T.state.tokens.length - 3].identifierRole = + c.IdentifierRole.ImportAccess), + (T.state.tokens[T.state.tokens.length - 1].identifierRole = + c.IdentifierRole.ImportDeclaration), + (T.state.tokens[T.state.tokens.length - 4].isType = !0), + (T.state.tokens[T.state.tokens.length - 3].isType = !0), + (T.state.tokens[T.state.tokens.length - 2].isType = !0), + (T.state.tokens[T.state.tokens.length - 1].isType = !0); + } + ye.tsParseImportSpecifier = rm; + function sm() { + if ( + (ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.braceR)) + ) { + T.state.tokens[T.state.tokens.length - 1].identifierRole = + c.IdentifierRole.ExportAccess; + return; + } + if ( + (ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.braceR)) + ) { + (T.state.tokens[T.state.tokens.length - 1].identifierRole = + c.IdentifierRole.ExportAccess), + (T.state.tokens[T.state.tokens.length - 2].isType = !0), + (T.state.tokens[T.state.tokens.length - 1].isType = !0); + return; + } + if ( + (ae.parseIdentifier.call(void 0), + c.match.call(void 0, l.TokenType.comma) || + c.match.call(void 0, l.TokenType.braceR)) + ) { + T.state.tokens[T.state.tokens.length - 3].identifierRole = + c.IdentifierRole.ExportAccess; + return; + } + ae.parseIdentifier.call(void 0), + (T.state.tokens[T.state.tokens.length - 3].identifierRole = + c.IdentifierRole.ExportAccess), + (T.state.tokens[T.state.tokens.length - 4].isType = !0), + (T.state.tokens[T.state.tokens.length - 3].isType = !0), + (T.state.tokens[T.state.tokens.length - 2].isType = !0), + (T.state.tokens[T.state.tokens.length - 1].isType = !0); + } + ye.tsParseExportSpecifier = sm; + function im() { + if ( + P.isContextual.call(void 0, V.ContextualKeyword._abstract) && + c.lookaheadType.call(void 0) === l.TokenType._class + ) + return ( + (T.state.type = l.TokenType._abstract), + c.next.call(void 0), + en.parseClass.call(void 0, !0, !0), + !0 + ); + if (P.isContextual.call(void 0, V.ContextualKeyword._interface)) { + let e = c.pushTypeContext.call(void 0, 2); + return ( + Zr(V.ContextualKeyword._interface, !0), + c.popTypeContext.call(void 0, e), + !0 + ); + } + return !1; + } + ye.tsTryParseExportDefaultExpression = im; + function am() { + if (T.state.type === l.TokenType._const) { + let e = c.lookaheadTypeAndKeyword.call(void 0); + if ( + e.type === l.TokenType.name && + e.contextualKeyword === V.ContextualKeyword._enum + ) + return ( + P.expect.call(void 0, l.TokenType._const), + P.expectContextual.call(void 0, V.ContextualKeyword._enum), + (T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._enum), + Aa(), + !0 + ); + } + return !1; + } + ye.tsTryParseStatementContent = am; + function lm(e) { + let t = T.state.tokens.length; + bu([ + V.ContextualKeyword._abstract, + V.ContextualKeyword._readonly, + V.ContextualKeyword._declare, + V.ContextualKeyword._static, + V.ContextualKeyword._override, + ]); + let n = T.state.tokens.length; + if (Au()) { + let r = e ? t - 1 : t; + for (let s = r; s < n; s++) T.state.tokens[s].isType = !0; + return !0; + } + return !1; + } + ye.tsTryParseClassMemberWithIsStatic = lm; + function cm(e) { + Qy(e) || P.semicolon.call(void 0); + } + ye.tsParseIdentifierStatement = cm; + function um() { + let e = P.eatContextual.call(void 0, V.ContextualKeyword._declare); + e && + (T.state.tokens[T.state.tokens.length - 1].type = l.TokenType._declare); + let t = !1; + if (c.match.call(void 0, l.TokenType.name)) + if (e) { + let n = c.pushTypeContext.call(void 0, 2); + (t = Iu()), c.popTypeContext.call(void 0, n); + } else t = Iu(); + if (!t) + if (e) { + let n = c.pushTypeContext.call(void 0, 2); + en.parseStatement.call(void 0, !0), c.popTypeContext.call(void 0, n); + } else en.parseStatement.call(void 0, !0); + } + ye.tsParseExportDeclaration = um; + function pm(e) { + if ( + (e && + (c.match.call(void 0, l.TokenType.lessThan) || + c.match.call(void 0, l.TokenType.bitShiftL)) && + Ra(), + P.eatContextual.call(void 0, V.ContextualKeyword._implements)) + ) { + T.state.tokens[T.state.tokens.length - 1].type = + l.TokenType._implements; + let t = c.pushTypeContext.call(void 0, 1); + Ru(), c.popTypeContext.call(void 0, t); + } + } + ye.tsAfterParseClassSuper = pm; + function dm() { + _o(); + } + ye.tsStartParseObjPropValue = dm; + function fm() { + _o(); + } + ye.tsStartParseFunctionParams = fm; + function hm() { + let e = c.pushTypeContext.call(void 0, 0); + P.hasPrecedingLineBreak.call(void 0) || + c.eat.call(void 0, l.TokenType.bang), + Yo(), + c.popTypeContext.call(void 0, e); + } + ye.tsAfterParseVarHead = hm; + function Tm() { + c.match.call(void 0, l.TokenType.colon) && Go(); + } + ye.tsStartParseAsyncArrowFromCallExpression = Tm; + function ym(e, t) { + return T.isJSXEnabled ? Ou(e, t) : Mu(e, t); + } + ye.tsParseMaybeAssign = ym; + function Ou(e, t) { + if (!c.match.call(void 0, l.TokenType.lessThan)) + return ae.baseParseMaybeAssign.call(void 0, e, t); + let n = T.state.snapshot(), + o = ae.baseParseMaybeAssign.call(void 0, e, t); + if (T.state.error) T.state.restoreFromSnapshot(n); + else return o; + return ( + (T.state.type = l.TokenType.typeParameterStart), + Qr(), + (o = ae.baseParseMaybeAssign.call(void 0, e, t)), + o || P.unexpected.call(void 0), + o + ); + } + ye.tsParseMaybeAssignWithJSX = Ou; + function Mu(e, t) { + if (!c.match.call(void 0, l.TokenType.lessThan)) + return ae.baseParseMaybeAssign.call(void 0, e, t); + let n = T.state.snapshot(); + Qr(); + let o = ae.baseParseMaybeAssign.call(void 0, e, t); + if ((o || P.unexpected.call(void 0), T.state.error)) + T.state.restoreFromSnapshot(n); + else return o; + return ae.baseParseMaybeAssign.call(void 0, e, t); + } + ye.tsParseMaybeAssignWithoutJSX = Mu; + function mm() { + if (c.match.call(void 0, l.TokenType.colon)) { + let e = T.state.snapshot(); + zo(l.TokenType.colon), + P.canInsertSemicolon.call(void 0) && P.unexpected.call(void 0), + c.match.call(void 0, l.TokenType.arrow) || P.unexpected.call(void 0), + T.state.error && T.state.restoreFromSnapshot(e); + } + return c.eat.call(void 0, l.TokenType.arrow); + } + ye.tsParseArrow = mm; + function km() { + let e = c.pushTypeContext.call(void 0, 0); + c.eat.call(void 0, l.TokenType.question), + Yo(), + c.popTypeContext.call(void 0, e); + } + ye.tsParseAssignableListItemTypes = km; + function vm() { + (c.match.call(void 0, l.TokenType.lessThan) || + c.match.call(void 0, l.TokenType.bitShiftL)) && + Ra(), + en.baseParseMaybeDecoratorArguments.call(void 0); + } + ye.tsParseMaybeDecoratorArguments = vm; + }); + var Na = H((ts) => { + 'use strict'; + Object.defineProperty(ts, '__esModule', {value: !0}); + var de = Ve(), + ve = ce(), + Z = Ct(), + es = Xn(), + Pn = Sn(), + Be = gt(), + Lu = fo(), + _m = mo(); + function xm() { + let e = !1, + t = !1; + for (;;) { + if (Z.state.pos >= Z.input.length) { + Pn.unexpected.call(void 0, 'Unterminated JSX contents'); + return; + } + let n = Z.input.charCodeAt(Z.state.pos); + if (n === Be.charCodes.lessThan || n === Be.charCodes.leftCurlyBrace) { + if (Z.state.pos === Z.state.start) { + if (n === Be.charCodes.lessThan) { + Z.state.pos++, + de.finishToken.call(void 0, ve.TokenType.jsxTagStart); + return; + } + de.getTokenFromCode.call(void 0, n); + return; + } + e && !t + ? de.finishToken.call(void 0, ve.TokenType.jsxEmptyText) + : de.finishToken.call(void 0, ve.TokenType.jsxText); + return; + } + n === Be.charCodes.lineFeed + ? (e = !0) + : n !== Be.charCodes.space && + n !== Be.charCodes.carriageReturn && + n !== Be.charCodes.tab && + (t = !0), + Z.state.pos++; + } + } + function gm(e) { + for (Z.state.pos++; ; ) { + if (Z.state.pos >= Z.input.length) { + Pn.unexpected.call(void 0, 'Unterminated string constant'); + return; + } + if (Z.input.charCodeAt(Z.state.pos) === e) { + Z.state.pos++; + break; + } + Z.state.pos++; + } + de.finishToken.call(void 0, ve.TokenType.string); + } + function Cm() { + let e; + do { + if (Z.state.pos > Z.input.length) { + Pn.unexpected.call(void 0, 'Unexpectedly reached the end of input.'); + return; + } + e = Z.input.charCodeAt(++Z.state.pos); + } while (Lu.IS_IDENTIFIER_CHAR[e] || e === Be.charCodes.dash); + de.finishToken.call(void 0, ve.TokenType.jsxName); + } + function Da() { + Ot(); + } + function Fu(e) { + if ((Da(), !de.eat.call(void 0, ve.TokenType.colon))) { + Z.state.tokens[Z.state.tokens.length - 1].identifierRole = e; + return; + } + Da(); + } + function $u() { + let e = Z.state.tokens.length; + Fu(de.IdentifierRole.Access); + let t = !1; + for (; de.match.call(void 0, ve.TokenType.dot); ) (t = !0), Ot(), Da(); + if (!t) { + let n = Z.state.tokens[e], + o = Z.input.charCodeAt(n.start); + o >= Be.charCodes.lowercaseA && + o <= Be.charCodes.lowercaseZ && + (n.identifierRole = null); + } + } + function wm() { + switch (Z.state.type) { + case ve.TokenType.braceL: + de.next.call(void 0), es.parseExpression.call(void 0), Ot(); + return; + case ve.TokenType.jsxTagStart: + ju(), Ot(); + return; + case ve.TokenType.string: + Ot(); + return; + default: + Pn.unexpected.call( + void 0, + 'JSX value should be either an expression or a quoted JSX text' + ); + } + } + function Im() { + Pn.expect.call(void 0, ve.TokenType.ellipsis), + es.parseExpression.call(void 0); + } + function Sm(e) { + if (de.match.call(void 0, ve.TokenType.jsxTagEnd)) return !1; + $u(), Z.isTypeScriptEnabled && _m.tsTryParseJSXTypeArgument.call(void 0); + let t = !1; + for ( + ; + !de.match.call(void 0, ve.TokenType.slash) && + !de.match.call(void 0, ve.TokenType.jsxTagEnd) && + !Z.state.error; + + ) { + if (de.eat.call(void 0, ve.TokenType.braceL)) { + (t = !0), + Pn.expect.call(void 0, ve.TokenType.ellipsis), + es.parseMaybeAssign.call(void 0), + Ot(); + continue; + } + t && + Z.state.end - Z.state.start === 3 && + Z.input.charCodeAt(Z.state.start) === Be.charCodes.lowercaseK && + Z.input.charCodeAt(Z.state.start + 1) === Be.charCodes.lowercaseE && + Z.input.charCodeAt(Z.state.start + 2) === Be.charCodes.lowercaseY && + (Z.state.tokens[e].jsxRole = de.JSXRole.KeyAfterPropSpread), + Fu(de.IdentifierRole.ObjectKey), + de.match.call(void 0, ve.TokenType.eq) && (Ot(), wm()); + } + let n = de.match.call(void 0, ve.TokenType.slash); + return n && Ot(), n; + } + function bm() { + de.match.call(void 0, ve.TokenType.jsxTagEnd) || $u(); + } + function Bu() { + let e = Z.state.tokens.length - 1; + Z.state.tokens[e].jsxRole = de.JSXRole.NoChildren; + let t = 0; + if (!Sm(e)) + for (go(); ; ) + switch (Z.state.type) { + case ve.TokenType.jsxTagStart: + if ((Ot(), de.match.call(void 0, ve.TokenType.slash))) { + Ot(), + bm(), + Z.state.tokens[e].jsxRole !== de.JSXRole.KeyAfterPropSpread && + (t === 1 + ? (Z.state.tokens[e].jsxRole = de.JSXRole.OneChild) + : t > 1 && + (Z.state.tokens[e].jsxRole = + de.JSXRole.StaticChildren)); + return; + } + t++, Bu(), go(); + break; + case ve.TokenType.jsxText: + t++, go(); + break; + case ve.TokenType.jsxEmptyText: + go(); + break; + case ve.TokenType.braceL: + de.next.call(void 0), + de.match.call(void 0, ve.TokenType.ellipsis) + ? (Im(), go(), (t += 2)) + : (de.match.call(void 0, ve.TokenType.braceR) || + (t++, es.parseExpression.call(void 0)), + go()); + break; + default: + Pn.unexpected.call(void 0); + return; + } + } + function ju() { + Ot(), Bu(); + } + ts.jsxParseElement = ju; + function Ot() { + Z.state.tokens.push(new de.Token()), + de.skipSpace.call(void 0), + (Z.state.start = Z.state.pos); + let e = Z.input.charCodeAt(Z.state.pos); + if (Lu.IS_IDENTIFIER_START[e]) Cm(); + else if ( + e === Be.charCodes.quotationMark || + e === Be.charCodes.apostrophe + ) + gm(e); + else + switch ((++Z.state.pos, e)) { + case Be.charCodes.greaterThan: + de.finishToken.call(void 0, ve.TokenType.jsxTagEnd); + break; + case Be.charCodes.lessThan: + de.finishToken.call(void 0, ve.TokenType.jsxTagStart); + break; + case Be.charCodes.slash: + de.finishToken.call(void 0, ve.TokenType.slash); + break; + case Be.charCodes.equalsTo: + de.finishToken.call(void 0, ve.TokenType.eq); + break; + case Be.charCodes.leftCurlyBrace: + de.finishToken.call(void 0, ve.TokenType.braceL); + break; + case Be.charCodes.dot: + de.finishToken.call(void 0, ve.TokenType.dot); + break; + case Be.charCodes.colon: + de.finishToken.call(void 0, ve.TokenType.colon); + break; + default: + Pn.unexpected.call(void 0); + } + } + ts.nextJSXTagToken = Ot; + function go() { + Z.state.tokens.push(new de.Token()), (Z.state.start = Z.state.pos), xm(); + } + }); + var qu = H((os) => { + 'use strict'; + Object.defineProperty(os, '__esModule', {value: !0}); + var ns = Ve(), + Co = ce(), + Ku = Ct(), + Em = Xn(), + Am = Vo(), + Pm = mo(); + function Rm(e) { + if (ns.match.call(void 0, Co.TokenType.question)) { + let t = ns.lookaheadType.call(void 0); + if ( + t === Co.TokenType.colon || + t === Co.TokenType.comma || + t === Co.TokenType.parenR + ) + return; + } + Em.baseParseConditional.call(void 0, e); + } + os.typedParseConditional = Rm; + function Nm() { + ns.eatTypeToken.call(void 0, Co.TokenType.question), + ns.match.call(void 0, Co.TokenType.colon) && + (Ku.isTypeScriptEnabled + ? Pm.tsParseTypeAnnotation.call(void 0) + : Ku.isFlowEnabled && Am.flowParseTypeAnnotation.call(void 0)); + } + os.typedParseParenItem = Nm; + }); + var Xn = H((Re) => { + 'use strict'; + Object.defineProperty(Re, '__esModule', {value: !0}); + var Tn = Vo(), + Dm = Na(), + Hu = qu(), + Nn = mo(), + E = Ve(), + fn = Ge(), + Uu = Pr(), + C = ce(), + Wu = gt(), + Om = fo(), + w = Ct(), + Rn = Gr(), + Ut = Jo(), + fe = Sn(), + is = class { + constructor(t) { + this.stop = t; + } + }; + Re.StopState = is; + function Qo(e = !1) { + if ((Mt(e), E.match.call(void 0, C.TokenType.comma))) + for (; E.eat.call(void 0, C.TokenType.comma); ) Mt(e); + } + Re.parseExpression = Qo; + function Mt(e = !1, t = !1) { + return w.isTypeScriptEnabled + ? Nn.tsParseMaybeAssign.call(void 0, e, t) + : w.isFlowEnabled + ? Tn.flowParseMaybeAssign.call(void 0, e, t) + : Vu(e, t); + } + Re.parseMaybeAssign = Mt; + function Vu(e, t) { + if (E.match.call(void 0, C.TokenType._yield)) return Jm(), !1; + (E.match.call(void 0, C.TokenType.parenL) || + E.match.call(void 0, C.TokenType.name) || + E.match.call(void 0, C.TokenType._yield)) && + (w.state.potentialArrowAt = w.state.start); + let n = Mm(e); + return ( + t && $a(), + w.state.type & C.TokenType.IS_ASSIGN + ? (E.next.call(void 0), Mt(e), !1) + : n + ); + } + Re.baseParseMaybeAssign = Vu; + function Mm(e) { + return Fm(e) ? !0 : (Lm(e), !1); + } + function Lm(e) { + w.isTypeScriptEnabled || w.isFlowEnabled + ? Hu.typedParseConditional.call(void 0, e) + : zu(e); + } + function zu(e) { + E.eat.call(void 0, C.TokenType.question) && + (Mt(), fe.expect.call(void 0, C.TokenType.colon), Mt(e)); + } + Re.baseParseConditional = zu; + function Fm(e) { + let t = w.state.tokens.length; + return er() ? !0 : (rs(t, -1, e), !1); + } + function rs(e, t, n) { + if ( + w.isTypeScriptEnabled && + (C.TokenType._in & C.TokenType.PRECEDENCE_MASK) > t && + !fe.hasPrecedingLineBreak.call(void 0) && + (fe.eatContextual.call(void 0, fn.ContextualKeyword._as) || + fe.eatContextual.call(void 0, fn.ContextualKeyword._satisfies)) + ) { + let r = E.pushTypeContext.call(void 0, 1); + Nn.tsParseType.call(void 0), + E.popTypeContext.call(void 0, r), + E.rescan_gt.call(void 0), + rs(e, t, n); + return; + } + let o = w.state.type & C.TokenType.PRECEDENCE_MASK; + if (o > 0 && (!n || !E.match.call(void 0, C.TokenType._in)) && o > t) { + let r = w.state.type; + E.next.call(void 0), + r === C.TokenType.nullishCoalescing && + (w.state.tokens[w.state.tokens.length - 1].nullishStartIndex = e); + let s = w.state.tokens.length; + er(), + rs(s, r & C.TokenType.IS_RIGHT_ASSOCIATIVE ? o - 1 : o, n), + r === C.TokenType.nullishCoalescing && + (w.state.tokens[e].numNullishCoalesceStarts++, + w.state.tokens[w.state.tokens.length - 1].numNullishCoalesceEnds++), + rs(e, t, n); + } + } + function er() { + if ( + w.isTypeScriptEnabled && + !w.isJSXEnabled && + E.eat.call(void 0, C.TokenType.lessThan) + ) + return Nn.tsParseTypeAssertion.call(void 0), !1; + if ( + fe.isContextual.call(void 0, fn.ContextualKeyword._module) && + E.lookaheadCharCode.call(void 0) === Wu.charCodes.leftCurlyBrace && + !fe.hasFollowingLineBreak.call(void 0) + ) + return Qm(), !1; + if (w.state.type & C.TokenType.IS_PREFIX) + return E.next.call(void 0), er(), !1; + if (Xu()) return !0; + for ( + ; + w.state.type & C.TokenType.IS_POSTFIX && + !fe.canInsertSemicolon.call(void 0); + + ) + w.state.type === C.TokenType.preIncDec && + (w.state.type = C.TokenType.postIncDec), + E.next.call(void 0); + return !1; + } + Re.parseMaybeUnary = er; + function Xu() { + let e = w.state.tokens.length; + return cs() + ? !0 + : (La(e), + w.state.tokens.length > e && + w.state.tokens[e].isOptionalChainStart && + (w.state.tokens[w.state.tokens.length - 1].isOptionalChainEnd = !0), + !1); + } + Re.parseExprSubscripts = Xu; + function La(e, t = !1) { + w.isFlowEnabled ? Tn.flowParseSubscripts.call(void 0, e, t) : Yu(e, t); + } + function Yu(e, t = !1) { + let n = new is(!1); + do $m(e, t, n); + while (!n.stop && !w.state.error); + } + Re.baseParseSubscripts = Yu; + function $m(e, t, n) { + w.isTypeScriptEnabled + ? Nn.tsParseSubscript.call(void 0, e, t, n) + : w.isFlowEnabled + ? Tn.flowParseSubscript.call(void 0, e, t, n) + : Gu(e, t, n); + } + function Gu(e, t, n) { + if (!t && E.eat.call(void 0, C.TokenType.doubleColon)) + Fa(), (n.stop = !0), La(e, t); + else if (E.match.call(void 0, C.TokenType.questionDot)) { + if ( + ((w.state.tokens[e].isOptionalChainStart = !0), + t && E.lookaheadType.call(void 0) === C.TokenType.parenL) + ) { + n.stop = !0; + return; + } + E.next.call(void 0), + (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), + E.eat.call(void 0, C.TokenType.bracketL) + ? (Qo(), fe.expect.call(void 0, C.TokenType.bracketR)) + : E.eat.call(void 0, C.TokenType.parenL) + ? ss() + : as(); + } else if (E.eat.call(void 0, C.TokenType.dot)) + (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), + as(); + else if (E.eat.call(void 0, C.TokenType.bracketL)) + (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), + Qo(), + fe.expect.call(void 0, C.TokenType.bracketR); + else if (!t && E.match.call(void 0, C.TokenType.parenL)) + if (Ju()) { + let o = w.state.snapshot(), + r = w.state.tokens.length; + E.next.call(void 0), + (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e); + let s = w.getNextContextId.call(void 0); + (w.state.tokens[w.state.tokens.length - 1].contextId = s), + ss(), + (w.state.tokens[w.state.tokens.length - 1].contextId = s), + Bm() && + (w.state.restoreFromSnapshot(o), + (n.stop = !0), + w.state.scopeDepth++, + Ut.parseFunctionParams.call(void 0), + jm(r)); + } else { + E.next.call(void 0), + (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e); + let o = w.getNextContextId.call(void 0); + (w.state.tokens[w.state.tokens.length - 1].contextId = o), + ss(), + (w.state.tokens[w.state.tokens.length - 1].contextId = o); + } + else E.match.call(void 0, C.TokenType.backQuote) ? Ba() : (n.stop = !0); + } + Re.baseParseSubscript = Gu; + function Ju() { + return ( + w.state.tokens[w.state.tokens.length - 1].contextualKeyword === + fn.ContextualKeyword._async && !fe.canInsertSemicolon.call(void 0) + ); + } + Re.atPossibleAsync = Ju; + function ss() { + let e = !0; + for (; !E.eat.call(void 0, C.TokenType.parenR) && !w.state.error; ) { + if (e) e = !1; + else if ( + (fe.expect.call(void 0, C.TokenType.comma), + E.eat.call(void 0, C.TokenType.parenR)) + ) + break; + op(!1); + } + } + Re.parseCallExpressionArguments = ss; + function Bm() { + return ( + E.match.call(void 0, C.TokenType.colon) || + E.match.call(void 0, C.TokenType.arrow) + ); + } + function jm(e) { + w.isTypeScriptEnabled + ? Nn.tsStartParseAsyncArrowFromCallExpression.call(void 0) + : w.isFlowEnabled && + Tn.flowStartParseAsyncArrowFromCallExpression.call(void 0), + fe.expect.call(void 0, C.TokenType.arrow), + Zo(e); + } + function Fa() { + let e = w.state.tokens.length; + cs(), La(e, !0); + } + function cs() { + if (E.eat.call(void 0, C.TokenType.modulo)) return hn(), !1; + if ( + E.match.call(void 0, C.TokenType.jsxText) || + E.match.call(void 0, C.TokenType.jsxEmptyText) + ) + return Qu(), !1; + if (E.match.call(void 0, C.TokenType.lessThan) && w.isJSXEnabled) + return ( + (w.state.type = C.TokenType.jsxTagStart), + Dm.jsxParseElement.call(void 0), + E.next.call(void 0), + !1 + ); + let e = w.state.potentialArrowAt === w.state.start; + switch (w.state.type) { + case C.TokenType.slash: + case C.TokenType.assign: + E.retokenizeSlashAsRegex.call(void 0); + case C.TokenType._super: + case C.TokenType._this: + case C.TokenType.regexp: + case C.TokenType.num: + case C.TokenType.bigint: + case C.TokenType.decimal: + case C.TokenType.string: + case C.TokenType._null: + case C.TokenType._true: + case C.TokenType._false: + return E.next.call(void 0), !1; + case C.TokenType._import: + return ( + E.next.call(void 0), + E.match.call(void 0, C.TokenType.dot) && + ((w.state.tokens[w.state.tokens.length - 1].type = + C.TokenType.name), + E.next.call(void 0), + hn()), + !1 + ); + case C.TokenType.name: { + let t = w.state.tokens.length, + n = w.state.start, + o = w.state.contextualKeyword; + return ( + hn(), + o === fn.ContextualKeyword._await + ? (Gm(), !1) + : o === fn.ContextualKeyword._async && + E.match.call(void 0, C.TokenType._function) && + !fe.canInsertSemicolon.call(void 0) + ? (E.next.call(void 0), Ut.parseFunction.call(void 0, n, !1), !1) + : e && + o === fn.ContextualKeyword._async && + !fe.canInsertSemicolon.call(void 0) && + E.match.call(void 0, C.TokenType.name) + ? (w.state.scopeDepth++, + Rn.parseBindingIdentifier.call(void 0, !1), + fe.expect.call(void 0, C.TokenType.arrow), + Zo(t), + !0) + : E.match.call(void 0, C.TokenType._do) && + !fe.canInsertSemicolon.call(void 0) + ? (E.next.call(void 0), Ut.parseBlock.call(void 0), !1) + : e && + !fe.canInsertSemicolon.call(void 0) && + E.match.call(void 0, C.TokenType.arrow) + ? (w.state.scopeDepth++, + Rn.markPriorBindingIdentifier.call(void 0, !1), + fe.expect.call(void 0, C.TokenType.arrow), + Zo(t), + !0) + : ((w.state.tokens[w.state.tokens.length - 1].identifierRole = + E.IdentifierRole.Access), + !1) + ); + } + case C.TokenType._do: + return E.next.call(void 0), Ut.parseBlock.call(void 0), !1; + case C.TokenType.parenL: + return Zu(e); + case C.TokenType.bracketL: + return E.next.call(void 0), np(C.TokenType.bracketR, !0), !1; + case C.TokenType.braceL: + return ep(!1, !1), !1; + case C.TokenType._function: + return Km(), !1; + case C.TokenType.at: + Ut.parseDecorators.call(void 0); + case C.TokenType._class: + return Ut.parseClass.call(void 0, !1), !1; + case C.TokenType._new: + return Um(), !1; + case C.TokenType.backQuote: + return Ba(), !1; + case C.TokenType.doubleColon: + return E.next.call(void 0), Fa(), !1; + case C.TokenType.hash: { + let t = E.lookaheadCharCode.call(void 0); + return ( + Om.IS_IDENTIFIER_START[t] || t === Wu.charCodes.backslash + ? as() + : E.next.call(void 0), + !1 + ); + } + default: + return fe.unexpected.call(void 0), !1; + } + } + Re.parseExprAtom = cs; + function as() { + E.eat.call(void 0, C.TokenType.hash), hn(); + } + function Km() { + let e = w.state.start; + hn(), + E.eat.call(void 0, C.TokenType.dot) && hn(), + Ut.parseFunction.call(void 0, e, !1); + } + function Qu() { + E.next.call(void 0); + } + Re.parseLiteral = Qu; + function qm() { + fe.expect.call(void 0, C.TokenType.parenL), + Qo(), + fe.expect.call(void 0, C.TokenType.parenR); + } + Re.parseParenExpression = qm; + function Zu(e) { + let t = w.state.snapshot(), + n = w.state.tokens.length; + fe.expect.call(void 0, C.TokenType.parenL); + let o = !0; + for (; !E.match.call(void 0, C.TokenType.parenR) && !w.state.error; ) { + if (o) o = !1; + else if ( + (fe.expect.call(void 0, C.TokenType.comma), + E.match.call(void 0, C.TokenType.parenR)) + ) + break; + if (E.match.call(void 0, C.TokenType.ellipsis)) { + Rn.parseRest.call(void 0, !1), $a(); + break; + } else Mt(!1, !0); + } + return ( + fe.expect.call(void 0, C.TokenType.parenR), + e && Hm() && Oa() + ? (w.state.restoreFromSnapshot(t), + w.state.scopeDepth++, + Ut.parseFunctionParams.call(void 0), + Oa(), + Zo(n), + w.state.error ? (w.state.restoreFromSnapshot(t), Zu(!1), !1) : !0) + : !1 + ); + } + function Hm() { + return ( + E.match.call(void 0, C.TokenType.colon) || + !fe.canInsertSemicolon.call(void 0) + ); + } + function Oa() { + return w.isTypeScriptEnabled + ? Nn.tsParseArrow.call(void 0) + : w.isFlowEnabled + ? Tn.flowParseArrow.call(void 0) + : E.eat.call(void 0, C.TokenType.arrow); + } + Re.parseArrow = Oa; + function $a() { + (w.isTypeScriptEnabled || w.isFlowEnabled) && + Hu.typedParseParenItem.call(void 0); + } + function Um() { + if ( + (fe.expect.call(void 0, C.TokenType._new), + E.eat.call(void 0, C.TokenType.dot)) + ) { + hn(); + return; + } + Wm(), + w.isFlowEnabled && Tn.flowStartParseNewArguments.call(void 0), + E.eat.call(void 0, C.TokenType.parenL) && np(C.TokenType.parenR); + } + function Wm() { + Fa(), E.eat.call(void 0, C.TokenType.questionDot); + } + function Ba() { + for ( + E.nextTemplateToken.call(void 0), E.nextTemplateToken.call(void 0); + !E.match.call(void 0, C.TokenType.backQuote) && !w.state.error; + + ) + fe.expect.call(void 0, C.TokenType.dollarBraceL), + Qo(), + E.nextTemplateToken.call(void 0), + E.nextTemplateToken.call(void 0); + E.next.call(void 0); + } + Re.parseTemplate = Ba; + function ep(e, t) { + let n = w.getNextContextId.call(void 0), + o = !0; + for ( + E.next.call(void 0), + w.state.tokens[w.state.tokens.length - 1].contextId = n; + !E.eat.call(void 0, C.TokenType.braceR) && !w.state.error; + + ) { + if (o) o = !1; + else if ( + (fe.expect.call(void 0, C.TokenType.comma), + E.eat.call(void 0, C.TokenType.braceR)) + ) + break; + let r = !1; + if (E.match.call(void 0, C.TokenType.ellipsis)) { + let s = w.state.tokens.length; + if ( + (Rn.parseSpread.call(void 0), + e && + (w.state.tokens.length === s + 2 && + Rn.markPriorBindingIdentifier.call(void 0, t), + E.eat.call(void 0, C.TokenType.braceR))) + ) + break; + continue; + } + e || (r = E.eat.call(void 0, C.TokenType.star)), + !e && fe.isContextual.call(void 0, fn.ContextualKeyword._async) + ? (r && fe.unexpected.call(void 0), + hn(), + E.match.call(void 0, C.TokenType.colon) || + E.match.call(void 0, C.TokenType.parenL) || + E.match.call(void 0, C.TokenType.braceR) || + E.match.call(void 0, C.TokenType.eq) || + E.match.call(void 0, C.TokenType.comma) || + (E.match.call(void 0, C.TokenType.star) && + (E.next.call(void 0), (r = !0)), + ls(n))) + : ls(n), + Ym(e, t, n); + } + w.state.tokens[w.state.tokens.length - 1].contextId = n; + } + Re.parseObj = ep; + function Vm(e) { + return ( + !e && + (E.match.call(void 0, C.TokenType.string) || + E.match.call(void 0, C.TokenType.num) || + E.match.call(void 0, C.TokenType.bracketL) || + E.match.call(void 0, C.TokenType.name) || + !!(w.state.type & C.TokenType.IS_KEYWORD)) + ); + } + function zm(e, t) { + let n = w.state.start; + return E.match.call(void 0, C.TokenType.parenL) + ? (e && fe.unexpected.call(void 0), Ma(n, !1), !0) + : Vm(e) + ? (ls(t), Ma(n, !1), !0) + : !1; + } + function Xm(e, t) { + if (E.eat.call(void 0, C.TokenType.colon)) { + e ? Rn.parseMaybeDefault.call(void 0, t) : Mt(!1); + return; + } + let n; + e + ? w.state.scopeDepth === 0 + ? (n = E.IdentifierRole.ObjectShorthandTopLevelDeclaration) + : t + ? (n = E.IdentifierRole.ObjectShorthandBlockScopedDeclaration) + : (n = E.IdentifierRole.ObjectShorthandFunctionScopedDeclaration) + : (n = E.IdentifierRole.ObjectShorthand), + (w.state.tokens[w.state.tokens.length - 1].identifierRole = n), + Rn.parseMaybeDefault.call(void 0, t, !0); + } + function Ym(e, t, n) { + w.isTypeScriptEnabled + ? Nn.tsStartParseObjPropValue.call(void 0) + : w.isFlowEnabled && Tn.flowStartParseObjPropValue.call(void 0), + zm(e, n) || Xm(e, t); + } + function ls(e) { + w.isFlowEnabled && Tn.flowParseVariance.call(void 0), + E.eat.call(void 0, C.TokenType.bracketL) + ? ((w.state.tokens[w.state.tokens.length - 1].contextId = e), + Mt(), + fe.expect.call(void 0, C.TokenType.bracketR), + (w.state.tokens[w.state.tokens.length - 1].contextId = e)) + : (E.match.call(void 0, C.TokenType.num) || + E.match.call(void 0, C.TokenType.string) || + E.match.call(void 0, C.TokenType.bigint) || + E.match.call(void 0, C.TokenType.decimal) + ? cs() + : as(), + (w.state.tokens[w.state.tokens.length - 1].identifierRole = + E.IdentifierRole.ObjectKey), + (w.state.tokens[w.state.tokens.length - 1].contextId = e)); + } + Re.parsePropertyName = ls; + function Ma(e, t) { + let n = w.getNextContextId.call(void 0); + w.state.scopeDepth++; + let o = w.state.tokens.length, + r = t; + Ut.parseFunctionParams.call(void 0, r, n), tp(e, n); + let s = w.state.tokens.length; + w.state.scopes.push(new Uu.Scope(o, s, !0)), w.state.scopeDepth--; + } + Re.parseMethod = Ma; + function Zo(e) { + ja(!0); + let t = w.state.tokens.length; + w.state.scopes.push(new Uu.Scope(e, t, !0)), w.state.scopeDepth--; + } + Re.parseArrowExpression = Zo; + function tp(e, t = 0) { + w.isTypeScriptEnabled + ? Nn.tsParseFunctionBodyAndFinish.call(void 0, e, t) + : w.isFlowEnabled + ? Tn.flowParseFunctionBodyAndFinish.call(void 0, t) + : ja(!1, t); + } + Re.parseFunctionBodyAndFinish = tp; + function ja(e, t = 0) { + e && !E.match.call(void 0, C.TokenType.braceL) + ? Mt() + : Ut.parseBlock.call(void 0, !0, t); + } + Re.parseFunctionBody = ja; + function np(e, t = !1) { + let n = !0; + for (; !E.eat.call(void 0, e) && !w.state.error; ) { + if (n) n = !1; + else if ( + (fe.expect.call(void 0, C.TokenType.comma), E.eat.call(void 0, e)) + ) + break; + op(t); + } + } + function op(e) { + (e && E.match.call(void 0, C.TokenType.comma)) || + (E.match.call(void 0, C.TokenType.ellipsis) + ? (Rn.parseSpread.call(void 0), $a()) + : E.match.call(void 0, C.TokenType.question) + ? E.next.call(void 0) + : Mt(!1, !0)); + } + function hn() { + E.next.call(void 0), + (w.state.tokens[w.state.tokens.length - 1].type = C.TokenType.name); + } + Re.parseIdentifier = hn; + function Gm() { + er(); + } + function Jm() { + E.next.call(void 0), + !E.match.call(void 0, C.TokenType.semi) && + !fe.canInsertSemicolon.call(void 0) && + (E.eat.call(void 0, C.TokenType.star), Mt()); + } + function Qm() { + fe.expectContextual.call(void 0, fn.ContextualKeyword._module), + fe.expect.call(void 0, C.TokenType.braceL), + Ut.parseBlockBody.call(void 0, C.TokenType.braceR); + } + }); + var Vo = H((Ae) => { + 'use strict'; + Object.defineProperty(Ae, '__esModule', {value: !0}); + var f = Ve(), + te = Ge(), + p = ce(), + J = Ct(), + Ie = Xn(), + Dn = Jo(), + N = Sn(); + function Zm(e) { + return ( + (e.type === p.TokenType.name || !!(e.type & p.TokenType.IS_KEYWORD)) && + e.contextualKeyword !== te.ContextualKeyword._from + ); + } + function tn(e) { + let t = f.pushTypeContext.call(void 0, 0); + N.expect.call(void 0, e || p.TokenType.colon), + Tt(), + f.popTypeContext.call(void 0, t); + } + function rp() { + N.expect.call(void 0, p.TokenType.modulo), + N.expectContextual.call(void 0, te.ContextualKeyword._checks), + f.eat.call(void 0, p.TokenType.parenL) && + (Ie.parseExpression.call(void 0), + N.expect.call(void 0, p.TokenType.parenR)); + } + function Ha() { + let e = f.pushTypeContext.call(void 0, 0); + N.expect.call(void 0, p.TokenType.colon), + f.match.call(void 0, p.TokenType.modulo) + ? rp() + : (Tt(), f.match.call(void 0, p.TokenType.modulo) && rp()), + f.popTypeContext.call(void 0, e); + } + function ek() { + f.next.call(void 0), Ua(!0); + } + function tk() { + f.next.call(void 0), + Ie.parseIdentifier.call(void 0), + f.match.call(void 0, p.TokenType.lessThan) && nn(), + N.expect.call(void 0, p.TokenType.parenL), + qa(), + N.expect.call(void 0, p.TokenType.parenR), + Ha(), + N.semicolon.call(void 0); + } + function Ka() { + f.match.call(void 0, p.TokenType._class) + ? ek() + : f.match.call(void 0, p.TokenType._function) + ? tk() + : f.match.call(void 0, p.TokenType._var) + ? nk() + : N.eatContextual.call(void 0, te.ContextualKeyword._module) + ? f.eat.call(void 0, p.TokenType.dot) + ? sk() + : ok() + : N.isContextual.call(void 0, te.ContextualKeyword._type) + ? ik() + : N.isContextual.call(void 0, te.ContextualKeyword._opaque) + ? ak() + : N.isContextual.call(void 0, te.ContextualKeyword._interface) + ? lk() + : f.match.call(void 0, p.TokenType._export) + ? rk() + : N.unexpected.call(void 0); + } + function nk() { + f.next.call(void 0), up(), N.semicolon.call(void 0); + } + function ok() { + for ( + f.match.call(void 0, p.TokenType.string) + ? Ie.parseExprAtom.call(void 0) + : Ie.parseIdentifier.call(void 0), + N.expect.call(void 0, p.TokenType.braceL); + !f.match.call(void 0, p.TokenType.braceR) && !J.state.error; + + ) + f.match.call(void 0, p.TokenType._import) + ? (f.next.call(void 0), Dn.parseImport.call(void 0)) + : N.unexpected.call(void 0); + N.expect.call(void 0, p.TokenType.braceR); + } + function rk() { + N.expect.call(void 0, p.TokenType._export), + f.eat.call(void 0, p.TokenType._default) + ? f.match.call(void 0, p.TokenType._function) || + f.match.call(void 0, p.TokenType._class) + ? Ka() + : (Tt(), N.semicolon.call(void 0)) + : f.match.call(void 0, p.TokenType._var) || + f.match.call(void 0, p.TokenType._function) || + f.match.call(void 0, p.TokenType._class) || + N.isContextual.call(void 0, te.ContextualKeyword._opaque) + ? Ka() + : f.match.call(void 0, p.TokenType.star) || + f.match.call(void 0, p.TokenType.braceL) || + N.isContextual.call(void 0, te.ContextualKeyword._interface) || + N.isContextual.call(void 0, te.ContextualKeyword._type) || + N.isContextual.call(void 0, te.ContextualKeyword._opaque) + ? Dn.parseExport.call(void 0) + : N.unexpected.call(void 0); + } + function sk() { + N.expectContextual.call(void 0, te.ContextualKeyword._exports), + wo(), + N.semicolon.call(void 0); + } + function ik() { + f.next.call(void 0), Va(); + } + function ak() { + f.next.call(void 0), za(!0); + } + function lk() { + f.next.call(void 0), Ua(); + } + function Ua(e = !1) { + if ( + (fs(), + f.match.call(void 0, p.TokenType.lessThan) && nn(), + f.eat.call(void 0, p.TokenType._extends)) + ) + do us(); + while (!e && f.eat.call(void 0, p.TokenType.comma)); + if (N.isContextual.call(void 0, te.ContextualKeyword._mixins)) { + f.next.call(void 0); + do us(); + while (f.eat.call(void 0, p.TokenType.comma)); + } + if (N.isContextual.call(void 0, te.ContextualKeyword._implements)) { + f.next.call(void 0); + do us(); + while (f.eat.call(void 0, p.TokenType.comma)); + } + ps(e, !1, e); + } + function us() { + ap(!1), f.match.call(void 0, p.TokenType.lessThan) && Yn(); + } + function Wa() { + Ua(); + } + function fs() { + Ie.parseIdentifier.call(void 0); + } + function Va() { + fs(), + f.match.call(void 0, p.TokenType.lessThan) && nn(), + tn(p.TokenType.eq), + N.semicolon.call(void 0); + } + function za(e) { + N.expectContextual.call(void 0, te.ContextualKeyword._type), + fs(), + f.match.call(void 0, p.TokenType.lessThan) && nn(), + f.match.call(void 0, p.TokenType.colon) && tn(p.TokenType.colon), + e || tn(p.TokenType.eq), + N.semicolon.call(void 0); + } + function ck() { + Ga(), up(), f.eat.call(void 0, p.TokenType.eq) && Tt(); + } + function nn() { + let e = f.pushTypeContext.call(void 0, 0); + f.match.call(void 0, p.TokenType.lessThan) || + f.match.call(void 0, p.TokenType.typeParameterStart) + ? f.next.call(void 0) + : N.unexpected.call(void 0); + do + ck(), + f.match.call(void 0, p.TokenType.greaterThan) || + N.expect.call(void 0, p.TokenType.comma); + while (!f.match.call(void 0, p.TokenType.greaterThan) && !J.state.error); + N.expect.call(void 0, p.TokenType.greaterThan), + f.popTypeContext.call(void 0, e); + } + Ae.flowParseTypeParameterDeclaration = nn; + function Yn() { + let e = f.pushTypeContext.call(void 0, 0); + for ( + N.expect.call(void 0, p.TokenType.lessThan); + !f.match.call(void 0, p.TokenType.greaterThan) && !J.state.error; + + ) + Tt(), + f.match.call(void 0, p.TokenType.greaterThan) || + N.expect.call(void 0, p.TokenType.comma); + N.expect.call(void 0, p.TokenType.greaterThan), + f.popTypeContext.call(void 0, e); + } + function uk() { + if ( + (N.expectContextual.call(void 0, te.ContextualKeyword._interface), + f.eat.call(void 0, p.TokenType._extends)) + ) + do us(); + while (f.eat.call(void 0, p.TokenType.comma)); + ps(!1, !1, !1); + } + function Xa() { + f.match.call(void 0, p.TokenType.num) || + f.match.call(void 0, p.TokenType.string) + ? Ie.parseExprAtom.call(void 0) + : Ie.parseIdentifier.call(void 0); + } + function pk() { + f.lookaheadType.call(void 0) === p.TokenType.colon ? (Xa(), tn()) : Tt(), + N.expect.call(void 0, p.TokenType.bracketR), + tn(); + } + function dk() { + Xa(), + N.expect.call(void 0, p.TokenType.bracketR), + N.expect.call(void 0, p.TokenType.bracketR), + f.match.call(void 0, p.TokenType.lessThan) || + f.match.call(void 0, p.TokenType.parenL) + ? Ya() + : (f.eat.call(void 0, p.TokenType.question), tn()); + } + function Ya() { + for ( + f.match.call(void 0, p.TokenType.lessThan) && nn(), + N.expect.call(void 0, p.TokenType.parenL); + !f.match.call(void 0, p.TokenType.parenR) && + !f.match.call(void 0, p.TokenType.ellipsis) && + !J.state.error; + + ) + ds(), + f.match.call(void 0, p.TokenType.parenR) || + N.expect.call(void 0, p.TokenType.comma); + f.eat.call(void 0, p.TokenType.ellipsis) && ds(), + N.expect.call(void 0, p.TokenType.parenR), + tn(); + } + function fk() { + Ya(); + } + function ps(e, t, n) { + let o; + for ( + t && f.match.call(void 0, p.TokenType.braceBarL) + ? (N.expect.call(void 0, p.TokenType.braceBarL), + (o = p.TokenType.braceBarR)) + : (N.expect.call(void 0, p.TokenType.braceL), + (o = p.TokenType.braceR)); + !f.match.call(void 0, o) && !J.state.error; + + ) { + if (n && N.isContextual.call(void 0, te.ContextualKeyword._proto)) { + let r = f.lookaheadType.call(void 0); + r !== p.TokenType.colon && + r !== p.TokenType.question && + (f.next.call(void 0), (e = !1)); + } + if (e && N.isContextual.call(void 0, te.ContextualKeyword._static)) { + let r = f.lookaheadType.call(void 0); + r !== p.TokenType.colon && + r !== p.TokenType.question && + f.next.call(void 0); + } + if ((Ga(), f.eat.call(void 0, p.TokenType.bracketL))) + f.eat.call(void 0, p.TokenType.bracketL) ? dk() : pk(); + else if ( + f.match.call(void 0, p.TokenType.parenL) || + f.match.call(void 0, p.TokenType.lessThan) + ) + fk(); + else { + if ( + N.isContextual.call(void 0, te.ContextualKeyword._get) || + N.isContextual.call(void 0, te.ContextualKeyword._set) + ) { + let r = f.lookaheadType.call(void 0); + (r === p.TokenType.name || + r === p.TokenType.string || + r === p.TokenType.num) && + f.next.call(void 0); + } + hk(); + } + Tk(); + } + N.expect.call(void 0, o); + } + function hk() { + if (f.match.call(void 0, p.TokenType.ellipsis)) { + if ( + (N.expect.call(void 0, p.TokenType.ellipsis), + f.eat.call(void 0, p.TokenType.comma) || + f.eat.call(void 0, p.TokenType.semi), + f.match.call(void 0, p.TokenType.braceR)) + ) + return; + Tt(); + } else + Xa(), + f.match.call(void 0, p.TokenType.lessThan) || + f.match.call(void 0, p.TokenType.parenL) + ? Ya() + : (f.eat.call(void 0, p.TokenType.question), tn()); + } + function Tk() { + !f.eat.call(void 0, p.TokenType.semi) && + !f.eat.call(void 0, p.TokenType.comma) && + !f.match.call(void 0, p.TokenType.braceR) && + !f.match.call(void 0, p.TokenType.braceBarR) && + N.unexpected.call(void 0); + } + function ap(e) { + for ( + e || Ie.parseIdentifier.call(void 0); + f.eat.call(void 0, p.TokenType.dot); + + ) + Ie.parseIdentifier.call(void 0); + } + function yk() { + ap(!0), f.match.call(void 0, p.TokenType.lessThan) && Yn(); + } + function mk() { + N.expect.call(void 0, p.TokenType._typeof), lp(); + } + function kk() { + for ( + N.expect.call(void 0, p.TokenType.bracketL); + J.state.pos < J.input.length && + !f.match.call(void 0, p.TokenType.bracketR) && + (Tt(), !f.match.call(void 0, p.TokenType.bracketR)); + + ) + N.expect.call(void 0, p.TokenType.comma); + N.expect.call(void 0, p.TokenType.bracketR); + } + function ds() { + let e = f.lookaheadType.call(void 0); + e === p.TokenType.colon || e === p.TokenType.question + ? (Ie.parseIdentifier.call(void 0), + f.eat.call(void 0, p.TokenType.question), + tn()) + : Tt(); + } + function qa() { + for ( + ; + !f.match.call(void 0, p.TokenType.parenR) && + !f.match.call(void 0, p.TokenType.ellipsis) && + !J.state.error; + + ) + ds(), + f.match.call(void 0, p.TokenType.parenR) || + N.expect.call(void 0, p.TokenType.comma); + f.eat.call(void 0, p.TokenType.ellipsis) && ds(); + } + function lp() { + let e = !1, + t = J.state.noAnonFunctionType; + switch (J.state.type) { + case p.TokenType.name: { + if (N.isContextual.call(void 0, te.ContextualKeyword._interface)) { + uk(); + return; + } + Ie.parseIdentifier.call(void 0), yk(); + return; + } + case p.TokenType.braceL: + ps(!1, !1, !1); + return; + case p.TokenType.braceBarL: + ps(!1, !0, !1); + return; + case p.TokenType.bracketL: + kk(); + return; + case p.TokenType.lessThan: + nn(), + N.expect.call(void 0, p.TokenType.parenL), + qa(), + N.expect.call(void 0, p.TokenType.parenR), + N.expect.call(void 0, p.TokenType.arrow), + Tt(); + return; + case p.TokenType.parenL: + if ( + (f.next.call(void 0), + !f.match.call(void 0, p.TokenType.parenR) && + !f.match.call(void 0, p.TokenType.ellipsis)) + ) + if (f.match.call(void 0, p.TokenType.name)) { + let n = f.lookaheadType.call(void 0); + e = n !== p.TokenType.question && n !== p.TokenType.colon; + } else e = !0; + if (e) + if ( + ((J.state.noAnonFunctionType = !1), + Tt(), + (J.state.noAnonFunctionType = t), + J.state.noAnonFunctionType || + !( + f.match.call(void 0, p.TokenType.comma) || + (f.match.call(void 0, p.TokenType.parenR) && + f.lookaheadType.call(void 0) === p.TokenType.arrow) + )) + ) { + N.expect.call(void 0, p.TokenType.parenR); + return; + } else f.eat.call(void 0, p.TokenType.comma); + qa(), + N.expect.call(void 0, p.TokenType.parenR), + N.expect.call(void 0, p.TokenType.arrow), + Tt(); + return; + case p.TokenType.minus: + f.next.call(void 0), Ie.parseLiteral.call(void 0); + return; + case p.TokenType.string: + case p.TokenType.num: + case p.TokenType._true: + case p.TokenType._false: + case p.TokenType._null: + case p.TokenType._this: + case p.TokenType._void: + case p.TokenType.star: + f.next.call(void 0); + return; + default: + if (J.state.type === p.TokenType._typeof) { + mk(); + return; + } else if (J.state.type & p.TokenType.IS_KEYWORD) { + f.next.call(void 0), + (J.state.tokens[J.state.tokens.length - 1].type = + p.TokenType.name); + return; + } + } + N.unexpected.call(void 0); + } + function vk() { + for ( + lp(); + !N.canInsertSemicolon.call(void 0) && + (f.match.call(void 0, p.TokenType.bracketL) || + f.match.call(void 0, p.TokenType.questionDot)); + + ) + f.eat.call(void 0, p.TokenType.questionDot), + N.expect.call(void 0, p.TokenType.bracketL), + f.eat.call(void 0, p.TokenType.bracketR) || + (Tt(), N.expect.call(void 0, p.TokenType.bracketR)); + } + function cp() { + f.eat.call(void 0, p.TokenType.question) ? cp() : vk(); + } + function sp() { + cp(), + !J.state.noAnonFunctionType && + f.eat.call(void 0, p.TokenType.arrow) && + Tt(); + } + function ip() { + for ( + f.eat.call(void 0, p.TokenType.bitwiseAND), sp(); + f.eat.call(void 0, p.TokenType.bitwiseAND); + + ) + sp(); + } + function _k() { + for ( + f.eat.call(void 0, p.TokenType.bitwiseOR), ip(); + f.eat.call(void 0, p.TokenType.bitwiseOR); + + ) + ip(); + } + function Tt() { + _k(); + } + function wo() { + tn(); + } + Ae.flowParseTypeAnnotation = wo; + function up() { + Ie.parseIdentifier.call(void 0), + f.match.call(void 0, p.TokenType.colon) && wo(); + } + function Ga() { + (f.match.call(void 0, p.TokenType.plus) || + f.match.call(void 0, p.TokenType.minus)) && + (f.next.call(void 0), + (J.state.tokens[J.state.tokens.length - 1].isType = !0)); + } + Ae.flowParseVariance = Ga; + function xk(e) { + f.match.call(void 0, p.TokenType.colon) && Ha(), + Ie.parseFunctionBody.call(void 0, !1, e); + } + Ae.flowParseFunctionBodyAndFinish = xk; + function gk(e, t, n) { + if ( + f.match.call(void 0, p.TokenType.questionDot) && + f.lookaheadType.call(void 0) === p.TokenType.lessThan + ) { + if (t) { + n.stop = !0; + return; + } + f.next.call(void 0), + Yn(), + N.expect.call(void 0, p.TokenType.parenL), + Ie.parseCallExpressionArguments.call(void 0); + return; + } else if (!t && f.match.call(void 0, p.TokenType.lessThan)) { + let o = J.state.snapshot(); + if ( + (Yn(), + N.expect.call(void 0, p.TokenType.parenL), + Ie.parseCallExpressionArguments.call(void 0), + J.state.error) + ) + J.state.restoreFromSnapshot(o); + else return; + } + Ie.baseParseSubscript.call(void 0, e, t, n); + } + Ae.flowParseSubscript = gk; + function Ck() { + if (f.match.call(void 0, p.TokenType.lessThan)) { + let e = J.state.snapshot(); + Yn(), J.state.error && J.state.restoreFromSnapshot(e); + } + } + Ae.flowStartParseNewArguments = Ck; + function wk() { + if ( + f.match.call(void 0, p.TokenType.name) && + J.state.contextualKeyword === te.ContextualKeyword._interface + ) { + let e = f.pushTypeContext.call(void 0, 0); + return f.next.call(void 0), Wa(), f.popTypeContext.call(void 0, e), !0; + } else if (N.isContextual.call(void 0, te.ContextualKeyword._enum)) + return pp(), !0; + return !1; + } + Ae.flowTryParseStatement = wk; + function Ik() { + return N.isContextual.call(void 0, te.ContextualKeyword._enum) + ? (pp(), !0) + : !1; + } + Ae.flowTryParseExportDefaultExpression = Ik; + function Sk(e) { + if (e === te.ContextualKeyword._declare) { + if ( + f.match.call(void 0, p.TokenType._class) || + f.match.call(void 0, p.TokenType.name) || + f.match.call(void 0, p.TokenType._function) || + f.match.call(void 0, p.TokenType._var) || + f.match.call(void 0, p.TokenType._export) + ) { + let t = f.pushTypeContext.call(void 0, 1); + Ka(), f.popTypeContext.call(void 0, t); + } + } else if (f.match.call(void 0, p.TokenType.name)) { + if (e === te.ContextualKeyword._interface) { + let t = f.pushTypeContext.call(void 0, 1); + Wa(), f.popTypeContext.call(void 0, t); + } else if (e === te.ContextualKeyword._type) { + let t = f.pushTypeContext.call(void 0, 1); + Va(), f.popTypeContext.call(void 0, t); + } else if (e === te.ContextualKeyword._opaque) { + let t = f.pushTypeContext.call(void 0, 1); + za(!1), f.popTypeContext.call(void 0, t); + } + } + N.semicolon.call(void 0); + } + Ae.flowParseIdentifierStatement = Sk; + function bk() { + return ( + N.isContextual.call(void 0, te.ContextualKeyword._type) || + N.isContextual.call(void 0, te.ContextualKeyword._interface) || + N.isContextual.call(void 0, te.ContextualKeyword._opaque) || + N.isContextual.call(void 0, te.ContextualKeyword._enum) + ); + } + Ae.flowShouldParseExportDeclaration = bk; + function Ek() { + return ( + f.match.call(void 0, p.TokenType.name) && + (J.state.contextualKeyword === te.ContextualKeyword._type || + J.state.contextualKeyword === te.ContextualKeyword._interface || + J.state.contextualKeyword === te.ContextualKeyword._opaque || + J.state.contextualKeyword === te.ContextualKeyword._enum) + ); + } + Ae.flowShouldDisallowExportDefaultSpecifier = Ek; + function Ak() { + if (N.isContextual.call(void 0, te.ContextualKeyword._type)) { + let e = f.pushTypeContext.call(void 0, 1); + f.next.call(void 0), + f.match.call(void 0, p.TokenType.braceL) + ? (Dn.parseExportSpecifiers.call(void 0), + Dn.parseExportFrom.call(void 0)) + : Va(), + f.popTypeContext.call(void 0, e); + } else if (N.isContextual.call(void 0, te.ContextualKeyword._opaque)) { + let e = f.pushTypeContext.call(void 0, 1); + f.next.call(void 0), za(!1), f.popTypeContext.call(void 0, e); + } else if (N.isContextual.call(void 0, te.ContextualKeyword._interface)) { + let e = f.pushTypeContext.call(void 0, 1); + f.next.call(void 0), Wa(), f.popTypeContext.call(void 0, e); + } else Dn.parseStatement.call(void 0, !0); + } + Ae.flowParseExportDeclaration = Ak; + function Pk() { + return ( + f.match.call(void 0, p.TokenType.star) || + (N.isContextual.call(void 0, te.ContextualKeyword._type) && + f.lookaheadType.call(void 0) === p.TokenType.star) + ); + } + Ae.flowShouldParseExportStar = Pk; + function Rk() { + if (N.eatContextual.call(void 0, te.ContextualKeyword._type)) { + let e = f.pushTypeContext.call(void 0, 2); + Dn.baseParseExportStar.call(void 0), f.popTypeContext.call(void 0, e); + } else Dn.baseParseExportStar.call(void 0); + } + Ae.flowParseExportStar = Rk; + function Nk(e) { + if ( + (e && f.match.call(void 0, p.TokenType.lessThan) && Yn(), + N.isContextual.call(void 0, te.ContextualKeyword._implements)) + ) { + let t = f.pushTypeContext.call(void 0, 0); + f.next.call(void 0), + (J.state.tokens[J.state.tokens.length - 1].type = + p.TokenType._implements); + do fs(), f.match.call(void 0, p.TokenType.lessThan) && Yn(); + while (f.eat.call(void 0, p.TokenType.comma)); + f.popTypeContext.call(void 0, t); + } + } + Ae.flowAfterParseClassSuper = Nk; + function Dk() { + f.match.call(void 0, p.TokenType.lessThan) && + (nn(), + f.match.call(void 0, p.TokenType.parenL) || N.unexpected.call(void 0)); + } + Ae.flowStartParseObjPropValue = Dk; + function Ok() { + let e = f.pushTypeContext.call(void 0, 0); + f.eat.call(void 0, p.TokenType.question), + f.match.call(void 0, p.TokenType.colon) && wo(), + f.popTypeContext.call(void 0, e); + } + Ae.flowParseAssignableListItemTypes = Ok; + function Mk() { + if ( + f.match.call(void 0, p.TokenType._typeof) || + N.isContextual.call(void 0, te.ContextualKeyword._type) + ) { + let e = f.lookaheadTypeAndKeyword.call(void 0); + (Zm(e) || + e.type === p.TokenType.braceL || + e.type === p.TokenType.star) && + f.next.call(void 0); + } + } + Ae.flowStartParseImportSpecifiers = Mk; + function Lk() { + let e = + J.state.contextualKeyword === te.ContextualKeyword._type || + J.state.type === p.TokenType._typeof; + e ? f.next.call(void 0) : Ie.parseIdentifier.call(void 0), + N.isContextual.call(void 0, te.ContextualKeyword._as) && + !N.isLookaheadContextual.call(void 0, te.ContextualKeyword._as) + ? (Ie.parseIdentifier.call(void 0), + (e && + !f.match.call(void 0, p.TokenType.name) && + !(J.state.type & p.TokenType.IS_KEYWORD)) || + Ie.parseIdentifier.call(void 0)) + : (e && + (f.match.call(void 0, p.TokenType.name) || + J.state.type & p.TokenType.IS_KEYWORD) && + Ie.parseIdentifier.call(void 0), + N.eatContextual.call(void 0, te.ContextualKeyword._as) && + Ie.parseIdentifier.call(void 0)); + } + Ae.flowParseImportSpecifier = Lk; + function Fk() { + if (f.match.call(void 0, p.TokenType.lessThan)) { + let e = f.pushTypeContext.call(void 0, 0); + nn(), f.popTypeContext.call(void 0, e); + } + } + Ae.flowStartParseFunctionParams = Fk; + function $k() { + f.match.call(void 0, p.TokenType.colon) && wo(); + } + Ae.flowAfterParseVarHead = $k; + function Bk() { + if (f.match.call(void 0, p.TokenType.colon)) { + let e = J.state.noAnonFunctionType; + (J.state.noAnonFunctionType = !0), + wo(), + (J.state.noAnonFunctionType = e); + } + } + Ae.flowStartParseAsyncArrowFromCallExpression = Bk; + function jk(e, t) { + if (f.match.call(void 0, p.TokenType.lessThan)) { + let n = J.state.snapshot(), + o = Ie.baseParseMaybeAssign.call(void 0, e, t); + if (J.state.error) + J.state.restoreFromSnapshot(n), + (J.state.type = p.TokenType.typeParameterStart); + else return o; + let r = f.pushTypeContext.call(void 0, 0); + if ( + (nn(), + f.popTypeContext.call(void 0, r), + (o = Ie.baseParseMaybeAssign.call(void 0, e, t)), + o) + ) + return !0; + N.unexpected.call(void 0); + } + return Ie.baseParseMaybeAssign.call(void 0, e, t); + } + Ae.flowParseMaybeAssign = jk; + function Kk() { + if (f.match.call(void 0, p.TokenType.colon)) { + let e = f.pushTypeContext.call(void 0, 0), + t = J.state.snapshot(), + n = J.state.noAnonFunctionType; + (J.state.noAnonFunctionType = !0), + Ha(), + (J.state.noAnonFunctionType = n), + N.canInsertSemicolon.call(void 0) && N.unexpected.call(void 0), + f.match.call(void 0, p.TokenType.arrow) || N.unexpected.call(void 0), + J.state.error && J.state.restoreFromSnapshot(t), + f.popTypeContext.call(void 0, e); + } + return f.eat.call(void 0, p.TokenType.arrow); + } + Ae.flowParseArrow = Kk; + function qk(e, t = !1) { + if ( + J.state.tokens[J.state.tokens.length - 1].contextualKeyword === + te.ContextualKeyword._async && + f.match.call(void 0, p.TokenType.lessThan) + ) { + let n = J.state.snapshot(); + if (Hk() && !J.state.error) return; + J.state.restoreFromSnapshot(n); + } + Ie.baseParseSubscripts.call(void 0, e, t); + } + Ae.flowParseSubscripts = qk; + function Hk() { + J.state.scopeDepth++; + let e = J.state.tokens.length; + return ( + Dn.parseFunctionParams.call(void 0), + Ie.parseArrow.call(void 0) + ? (Ie.parseArrowExpression.call(void 0, e), !0) + : !1 + ); + } + function pp() { + N.expectContextual.call(void 0, te.ContextualKeyword._enum), + (J.state.tokens[J.state.tokens.length - 1].type = p.TokenType._enum), + Ie.parseIdentifier.call(void 0), + Uk(); + } + function Uk() { + N.eatContextual.call(void 0, te.ContextualKeyword._of) && + f.next.call(void 0), + N.expect.call(void 0, p.TokenType.braceL), + Wk(), + N.expect.call(void 0, p.TokenType.braceR); + } + function Wk() { + for ( + ; + !f.match.call(void 0, p.TokenType.braceR) && + !J.state.error && + !f.eat.call(void 0, p.TokenType.ellipsis); + + ) + Vk(), + f.match.call(void 0, p.TokenType.braceR) || + N.expect.call(void 0, p.TokenType.comma); + } + function Vk() { + Ie.parseIdentifier.call(void 0), + f.eat.call(void 0, p.TokenType.eq) && f.next.call(void 0); + } + }); + var Jo = H((Ue) => { + 'use strict'; + Object.defineProperty(Ue, '__esModule', {value: !0}); + var zk = o1(), + st = Vo(), + He = mo(), + S = Ve(), + se = Ge(), + On = Pr(), + k = ce(), + dp = gt(), + y = Ct(), + me = Xn(), + Mn = Gr(), + q = Sn(); + function Xk() { + if ( + (t1(k.TokenType.eof), + y.state.scopes.push(new On.Scope(0, y.state.tokens.length, !0)), + y.state.scopeDepth !== 0) + ) + throw new Error( + `Invalid scope depth at end of file: ${y.state.scopeDepth}` + ); + return new zk.File(y.state.tokens, y.state.scopes); + } + Ue.parseTopLevel = Xk; + function Wt(e) { + (y.isFlowEnabled && st.flowTryParseStatement.call(void 0)) || + (S.match.call(void 0, k.TokenType.at) && e1(), Yk(e)); + } + Ue.parseStatement = Wt; + function Yk(e) { + if (y.isTypeScriptEnabled && He.tsTryParseStatementContent.call(void 0)) + return; + let t = y.state.type; + switch (t) { + case k.TokenType._break: + case k.TokenType._continue: + Jk(); + return; + case k.TokenType._debugger: + Qk(); + return; + case k.TokenType._do: + Zk(); + return; + case k.TokenType._for: + ev(); + return; + case k.TokenType._function: + if (S.lookaheadType.call(void 0) === k.TokenType.dot) break; + e || q.unexpected.call(void 0), ov(); + return; + case k.TokenType._class: + e || q.unexpected.call(void 0), hs(!0); + return; + case k.TokenType._if: + rv(); + return; + case k.TokenType._return: + sv(); + return; + case k.TokenType._switch: + iv(); + return; + case k.TokenType._throw: + av(); + return; + case k.TokenType._try: + cv(); + return; + case k.TokenType._let: + case k.TokenType._const: + e || q.unexpected.call(void 0); + case k.TokenType._var: + Qa(t !== k.TokenType._var); + return; + case k.TokenType._while: + uv(); + return; + case k.TokenType.braceL: + So(); + return; + case k.TokenType.semi: + pv(); + return; + case k.TokenType._export: + case k.TokenType._import: { + let r = S.lookaheadType.call(void 0); + if (r === k.TokenType.parenL || r === k.TokenType.dot) break; + S.next.call(void 0), t === k.TokenType._import ? wp() : xp(); + return; + } + case k.TokenType.name: + if (y.state.contextualKeyword === se.ContextualKeyword._async) { + let r = y.state.start, + s = y.state.snapshot(); + if ( + (S.next.call(void 0), + S.match.call(void 0, k.TokenType._function) && + !q.canInsertSemicolon.call(void 0)) + ) { + q.expect.call(void 0, k.TokenType._function), or(r, !0); + return; + } else y.state.restoreFromSnapshot(s); + } else if ( + y.state.contextualKeyword === se.ContextualKeyword._using && + !q.hasFollowingLineBreak.call(void 0) && + S.lookaheadType.call(void 0) === k.TokenType.name + ) { + Qa(!0); + return; + } + default: + break; + } + let n = y.state.tokens.length; + me.parseExpression.call(void 0); + let o = null; + if (y.state.tokens.length === n + 1) { + let r = y.state.tokens[y.state.tokens.length - 1]; + r.type === k.TokenType.name && (o = r.contextualKeyword); + } + if (o == null) { + q.semicolon.call(void 0); + return; + } + S.eat.call(void 0, k.TokenType.colon) ? dv() : fv(o); + } + function e1() { + for (; S.match.call(void 0, k.TokenType.at); ) Tp(); + } + Ue.parseDecorators = e1; + function Tp() { + if ((S.next.call(void 0), S.eat.call(void 0, k.TokenType.parenL))) + me.parseExpression.call(void 0), + q.expect.call(void 0, k.TokenType.parenR); + else { + for ( + me.parseIdentifier.call(void 0); + S.eat.call(void 0, k.TokenType.dot); + + ) + me.parseIdentifier.call(void 0); + Gk(); + } + } + function Gk() { + y.isTypeScriptEnabled + ? He.tsParseMaybeDecoratorArguments.call(void 0) + : yp(); + } + function yp() { + S.eat.call(void 0, k.TokenType.parenL) && + me.parseCallExpressionArguments.call(void 0); + } + Ue.baseParseMaybeDecoratorArguments = yp; + function Jk() { + S.next.call(void 0), + q.isLineTerminator.call(void 0) || + (me.parseIdentifier.call(void 0), q.semicolon.call(void 0)); + } + function Qk() { + S.next.call(void 0), q.semicolon.call(void 0); + } + function Zk() { + S.next.call(void 0), + Wt(!1), + q.expect.call(void 0, k.TokenType._while), + me.parseParenExpression.call(void 0), + S.eat.call(void 0, k.TokenType.semi); + } + function ev() { + y.state.scopeDepth++; + let e = y.state.tokens.length; + nv(); + let t = y.state.tokens.length; + y.state.scopes.push(new On.Scope(e, t, !1)), y.state.scopeDepth--; + } + function tv() { + return !( + !q.isContextual.call(void 0, se.ContextualKeyword._using) || + q.isLookaheadContextual.call(void 0, se.ContextualKeyword._of) + ); + } + function nv() { + S.next.call(void 0); + let e = !1; + if ( + (q.isContextual.call(void 0, se.ContextualKeyword._await) && + ((e = !0), S.next.call(void 0)), + q.expect.call(void 0, k.TokenType.parenL), + S.match.call(void 0, k.TokenType.semi)) + ) { + e && q.unexpected.call(void 0), Ja(); + return; + } + if ( + S.match.call(void 0, k.TokenType._var) || + S.match.call(void 0, k.TokenType._let) || + S.match.call(void 0, k.TokenType._const) || + tv() + ) { + if ( + (S.next.call(void 0), + mp(!0, y.state.type !== k.TokenType._var), + S.match.call(void 0, k.TokenType._in) || + q.isContextual.call(void 0, se.ContextualKeyword._of)) + ) { + fp(e); + return; + } + Ja(); + return; + } + if ( + (me.parseExpression.call(void 0, !0), + S.match.call(void 0, k.TokenType._in) || + q.isContextual.call(void 0, se.ContextualKeyword._of)) + ) { + fp(e); + return; + } + e && q.unexpected.call(void 0), Ja(); + } + function ov() { + let e = y.state.start; + S.next.call(void 0), or(e, !0); + } + function rv() { + S.next.call(void 0), + me.parseParenExpression.call(void 0), + Wt(!1), + S.eat.call(void 0, k.TokenType._else) && Wt(!1); + } + function sv() { + S.next.call(void 0), + q.isLineTerminator.call(void 0) || + (me.parseExpression.call(void 0), q.semicolon.call(void 0)); + } + function iv() { + S.next.call(void 0), + me.parseParenExpression.call(void 0), + y.state.scopeDepth++; + let e = y.state.tokens.length; + for ( + q.expect.call(void 0, k.TokenType.braceL); + !S.match.call(void 0, k.TokenType.braceR) && !y.state.error; + + ) + if ( + S.match.call(void 0, k.TokenType._case) || + S.match.call(void 0, k.TokenType._default) + ) { + let n = S.match.call(void 0, k.TokenType._case); + S.next.call(void 0), + n && me.parseExpression.call(void 0), + q.expect.call(void 0, k.TokenType.colon); + } else Wt(!0); + S.next.call(void 0); + let t = y.state.tokens.length; + y.state.scopes.push(new On.Scope(e, t, !1)), y.state.scopeDepth--; + } + function av() { + S.next.call(void 0), + me.parseExpression.call(void 0), + q.semicolon.call(void 0); + } + function lv() { + Mn.parseBindingAtom.call(void 0, !0), + y.isTypeScriptEnabled && He.tsTryParseTypeAnnotation.call(void 0); + } + function cv() { + if ( + (S.next.call(void 0), So(), S.match.call(void 0, k.TokenType._catch)) + ) { + S.next.call(void 0); + let e = null; + if ( + (S.match.call(void 0, k.TokenType.parenL) && + (y.state.scopeDepth++, + (e = y.state.tokens.length), + q.expect.call(void 0, k.TokenType.parenL), + lv(), + q.expect.call(void 0, k.TokenType.parenR)), + So(), + e != null) + ) { + let t = y.state.tokens.length; + y.state.scopes.push(new On.Scope(e, t, !1)), y.state.scopeDepth--; + } + } + S.eat.call(void 0, k.TokenType._finally) && So(); + } + function Qa(e) { + S.next.call(void 0), mp(!1, e), q.semicolon.call(void 0); + } + Ue.parseVarStatement = Qa; + function uv() { + S.next.call(void 0), me.parseParenExpression.call(void 0), Wt(!1); + } + function pv() { + S.next.call(void 0); + } + function dv() { + Wt(!0); + } + function fv(e) { + y.isTypeScriptEnabled + ? He.tsParseIdentifierStatement.call(void 0, e) + : y.isFlowEnabled + ? st.flowParseIdentifierStatement.call(void 0, e) + : q.semicolon.call(void 0); + } + function So(e = !1, t = 0) { + let n = y.state.tokens.length; + y.state.scopeDepth++, + q.expect.call(void 0, k.TokenType.braceL), + t && (y.state.tokens[y.state.tokens.length - 1].contextId = t), + t1(k.TokenType.braceR), + t && (y.state.tokens[y.state.tokens.length - 1].contextId = t); + let o = y.state.tokens.length; + y.state.scopes.push(new On.Scope(n, o, e)), y.state.scopeDepth--; + } + Ue.parseBlock = So; + function t1(e) { + for (; !S.eat.call(void 0, e) && !y.state.error; ) Wt(!0); + } + Ue.parseBlockBody = t1; + function Ja() { + q.expect.call(void 0, k.TokenType.semi), + S.match.call(void 0, k.TokenType.semi) || + me.parseExpression.call(void 0), + q.expect.call(void 0, k.TokenType.semi), + S.match.call(void 0, k.TokenType.parenR) || + me.parseExpression.call(void 0), + q.expect.call(void 0, k.TokenType.parenR), + Wt(!1); + } + function fp(e) { + e + ? q.eatContextual.call(void 0, se.ContextualKeyword._of) + : S.next.call(void 0), + me.parseExpression.call(void 0), + q.expect.call(void 0, k.TokenType.parenR), + Wt(!1); + } + function mp(e, t) { + for (;;) { + if ((hv(t), S.eat.call(void 0, k.TokenType.eq))) { + let n = y.state.tokens.length - 1; + me.parseMaybeAssign.call(void 0, e), + (y.state.tokens[n].rhsEndIndex = y.state.tokens.length); + } + if (!S.eat.call(void 0, k.TokenType.comma)) break; + } + } + function hv(e) { + Mn.parseBindingAtom.call(void 0, e), + y.isTypeScriptEnabled + ? He.tsAfterParseVarHead.call(void 0) + : y.isFlowEnabled && st.flowAfterParseVarHead.call(void 0); + } + function or(e, t, n = !1) { + S.match.call(void 0, k.TokenType.star) && S.next.call(void 0), + t && + !n && + !S.match.call(void 0, k.TokenType.name) && + !S.match.call(void 0, k.TokenType._yield) && + q.unexpected.call(void 0); + let o = null; + S.match.call(void 0, k.TokenType.name) && + (t || ((o = y.state.tokens.length), y.state.scopeDepth++), + Mn.parseBindingIdentifier.call(void 0, !1)); + let r = y.state.tokens.length; + y.state.scopeDepth++, kp(), me.parseFunctionBodyAndFinish.call(void 0, e); + let s = y.state.tokens.length; + y.state.scopes.push(new On.Scope(r, s, !0)), + y.state.scopeDepth--, + o !== null && + (y.state.scopes.push(new On.Scope(o, s, !0)), y.state.scopeDepth--); + } + Ue.parseFunction = or; + function kp(e = !1, t = 0) { + y.isTypeScriptEnabled + ? He.tsStartParseFunctionParams.call(void 0) + : y.isFlowEnabled && st.flowStartParseFunctionParams.call(void 0), + q.expect.call(void 0, k.TokenType.parenL), + t && (y.state.tokens[y.state.tokens.length - 1].contextId = t), + Mn.parseBindingList.call(void 0, k.TokenType.parenR, !1, !1, e, t), + t && (y.state.tokens[y.state.tokens.length - 1].contextId = t); + } + Ue.parseFunctionParams = kp; + function hs(e, t = !1) { + let n = y.getNextContextId.call(void 0); + S.next.call(void 0), + (y.state.tokens[y.state.tokens.length - 1].contextId = n), + (y.state.tokens[y.state.tokens.length - 1].isExpression = !e); + let o = null; + e || ((o = y.state.tokens.length), y.state.scopeDepth++), kv(e, t), vv(); + let r = y.state.tokens.length; + if ( + (Tv(n), + !y.state.error && + ((y.state.tokens[r].contextId = n), + (y.state.tokens[y.state.tokens.length - 1].contextId = n), + o !== null)) + ) { + let s = y.state.tokens.length; + y.state.scopes.push(new On.Scope(o, s, !1)), y.state.scopeDepth--; + } + } + Ue.parseClass = hs; + function vp() { + return ( + S.match.call(void 0, k.TokenType.eq) || + S.match.call(void 0, k.TokenType.semi) || + S.match.call(void 0, k.TokenType.braceR) || + S.match.call(void 0, k.TokenType.bang) || + S.match.call(void 0, k.TokenType.colon) + ); + } + function _p() { + return ( + S.match.call(void 0, k.TokenType.parenL) || + S.match.call(void 0, k.TokenType.lessThan) + ); + } + function Tv(e) { + for ( + q.expect.call(void 0, k.TokenType.braceL); + !S.eat.call(void 0, k.TokenType.braceR) && !y.state.error; + + ) { + if (S.eat.call(void 0, k.TokenType.semi)) continue; + if (S.match.call(void 0, k.TokenType.at)) { + Tp(); + continue; + } + let t = y.state.start; + yv(t, e); + } + } + function yv(e, t) { + y.isTypeScriptEnabled && + He.tsParseModifiers.call(void 0, [ + se.ContextualKeyword._declare, + se.ContextualKeyword._public, + se.ContextualKeyword._protected, + se.ContextualKeyword._private, + se.ContextualKeyword._override, + ]); + let n = !1; + if ( + S.match.call(void 0, k.TokenType.name) && + y.state.contextualKeyword === se.ContextualKeyword._static + ) { + if ((me.parseIdentifier.call(void 0), _p())) { + tr(e, !1); + return; + } else if (vp()) { + nr(); + return; + } + if ( + ((y.state.tokens[y.state.tokens.length - 1].type = + k.TokenType._static), + (n = !0), + S.match.call(void 0, k.TokenType.braceL)) + ) { + (y.state.tokens[y.state.tokens.length - 1].contextId = t), So(); + return; + } + } + mv(e, n, t); + } + function mv(e, t, n) { + if ( + y.isTypeScriptEnabled && + He.tsTryParseClassMemberWithIsStatic.call(void 0, t) + ) + return; + if (S.eat.call(void 0, k.TokenType.star)) { + Io(n), tr(e, !1); + return; + } + Io(n); + let o = !1, + r = y.state.tokens[y.state.tokens.length - 1]; + r.contextualKeyword === se.ContextualKeyword._constructor && (o = !0), + Za(), + _p() + ? tr(e, o) + : vp() + ? nr() + : r.contextualKeyword === se.ContextualKeyword._async && + !q.isLineTerminator.call(void 0) + ? ((y.state.tokens[y.state.tokens.length - 1].type = + k.TokenType._async), + S.match.call(void 0, k.TokenType.star) && S.next.call(void 0), + Io(n), + Za(), + tr(e, !1)) + : (r.contextualKeyword === se.ContextualKeyword._get || + r.contextualKeyword === se.ContextualKeyword._set) && + !( + q.isLineTerminator.call(void 0) && + S.match.call(void 0, k.TokenType.star) + ) + ? (r.contextualKeyword === se.ContextualKeyword._get + ? (y.state.tokens[y.state.tokens.length - 1].type = + k.TokenType._get) + : (y.state.tokens[y.state.tokens.length - 1].type = + k.TokenType._set), + Io(n), + tr(e, !1)) + : r.contextualKeyword === se.ContextualKeyword._accessor && + !q.isLineTerminator.call(void 0) + ? (Io(n), nr()) + : q.isLineTerminator.call(void 0) + ? nr() + : q.unexpected.call(void 0); + } + function tr(e, t) { + y.isTypeScriptEnabled + ? He.tsTryParseTypeParameters.call(void 0) + : y.isFlowEnabled && + S.match.call(void 0, k.TokenType.lessThan) && + st.flowParseTypeParameterDeclaration.call(void 0), + me.parseMethod.call(void 0, e, t); + } + function Io(e) { + me.parsePropertyName.call(void 0, e); + } + Ue.parseClassPropertyName = Io; + function Za() { + if (y.isTypeScriptEnabled) { + let e = S.pushTypeContext.call(void 0, 0); + S.eat.call(void 0, k.TokenType.question), + S.popTypeContext.call(void 0, e); + } + } + Ue.parsePostMemberNameModifiers = Za; + function nr() { + if ( + (y.isTypeScriptEnabled + ? (S.eatTypeToken.call(void 0, k.TokenType.bang), + He.tsTryParseTypeAnnotation.call(void 0)) + : y.isFlowEnabled && + S.match.call(void 0, k.TokenType.colon) && + st.flowParseTypeAnnotation.call(void 0), + S.match.call(void 0, k.TokenType.eq)) + ) { + let e = y.state.tokens.length; + S.next.call(void 0), + me.parseMaybeAssign.call(void 0), + (y.state.tokens[e].rhsEndIndex = y.state.tokens.length); + } + q.semicolon.call(void 0); + } + Ue.parseClassProperty = nr; + function kv(e, t = !1) { + (y.isTypeScriptEnabled && + (!e || t) && + q.isContextual.call(void 0, se.ContextualKeyword._implements)) || + (S.match.call(void 0, k.TokenType.name) && + Mn.parseBindingIdentifier.call(void 0, !0), + y.isTypeScriptEnabled + ? He.tsTryParseTypeParameters.call(void 0) + : y.isFlowEnabled && + S.match.call(void 0, k.TokenType.lessThan) && + st.flowParseTypeParameterDeclaration.call(void 0)); + } + function vv() { + let e = !1; + S.eat.call(void 0, k.TokenType._extends) + ? (me.parseExprSubscripts.call(void 0), (e = !0)) + : (e = !1), + y.isTypeScriptEnabled + ? He.tsAfterParseClassSuper.call(void 0, e) + : y.isFlowEnabled && st.flowAfterParseClassSuper.call(void 0, e); + } + function xp() { + let e = y.state.tokens.length - 1; + (y.isTypeScriptEnabled && He.tsTryParseExport.call(void 0)) || + (Cv() + ? wv() + : gv() + ? (me.parseIdentifier.call(void 0), + S.match.call(void 0, k.TokenType.comma) && + S.lookaheadType.call(void 0) === k.TokenType.star + ? (q.expect.call(void 0, k.TokenType.comma), + q.expect.call(void 0, k.TokenType.star), + q.expectContextual.call(void 0, se.ContextualKeyword._as), + me.parseIdentifier.call(void 0)) + : gp(), + rr()) + : S.eat.call(void 0, k.TokenType._default) + ? _v() + : Sv() + ? xv() + : (n1(), rr()), + (y.state.tokens[e].rhsEndIndex = y.state.tokens.length)); + } + Ue.parseExport = xp; + function _v() { + if ( + (y.isTypeScriptEnabled && + He.tsTryParseExportDefaultExpression.call(void 0)) || + (y.isFlowEnabled && st.flowTryParseExportDefaultExpression.call(void 0)) + ) + return; + let e = y.state.start; + S.eat.call(void 0, k.TokenType._function) + ? or(e, !0, !0) + : q.isContextual.call(void 0, se.ContextualKeyword._async) && + S.lookaheadType.call(void 0) === k.TokenType._function + ? (q.eatContextual.call(void 0, se.ContextualKeyword._async), + S.eat.call(void 0, k.TokenType._function), + or(e, !0, !0)) + : S.match.call(void 0, k.TokenType._class) + ? hs(!0, !0) + : S.match.call(void 0, k.TokenType.at) + ? (e1(), hs(!0, !0)) + : (me.parseMaybeAssign.call(void 0), q.semicolon.call(void 0)); + } + function xv() { + y.isTypeScriptEnabled + ? He.tsParseExportDeclaration.call(void 0) + : y.isFlowEnabled + ? st.flowParseExportDeclaration.call(void 0) + : Wt(!0); + } + function gv() { + if (y.isTypeScriptEnabled && He.tsIsDeclarationStart.call(void 0)) + return !1; + if ( + y.isFlowEnabled && + st.flowShouldDisallowExportDefaultSpecifier.call(void 0) + ) + return !1; + if (S.match.call(void 0, k.TokenType.name)) + return y.state.contextualKeyword !== se.ContextualKeyword._async; + if (!S.match.call(void 0, k.TokenType._default)) return !1; + let e = S.nextTokenStart.call(void 0), + t = S.lookaheadTypeAndKeyword.call(void 0), + n = + t.type === k.TokenType.name && + t.contextualKeyword === se.ContextualKeyword._from; + if (t.type === k.TokenType.comma) return !0; + if (n) { + let o = y.input.charCodeAt(S.nextTokenStartSince.call(void 0, e + 4)); + return ( + o === dp.charCodes.quotationMark || o === dp.charCodes.apostrophe + ); + } + return !1; + } + function gp() { + S.eat.call(void 0, k.TokenType.comma) && n1(); + } + function rr() { + q.eatContextual.call(void 0, se.ContextualKeyword._from) && + (me.parseExprAtom.call(void 0), Ip()), + q.semicolon.call(void 0); + } + Ue.parseExportFrom = rr; + function Cv() { + return y.isFlowEnabled + ? st.flowShouldParseExportStar.call(void 0) + : S.match.call(void 0, k.TokenType.star); + } + function wv() { + y.isFlowEnabled ? st.flowParseExportStar.call(void 0) : Cp(); + } + function Cp() { + q.expect.call(void 0, k.TokenType.star), + q.isContextual.call(void 0, se.ContextualKeyword._as) ? Iv() : rr(); + } + Ue.baseParseExportStar = Cp; + function Iv() { + S.next.call(void 0), + (y.state.tokens[y.state.tokens.length - 1].type = k.TokenType._as), + me.parseIdentifier.call(void 0), + gp(), + rr(); + } + function Sv() { + return ( + (y.isTypeScriptEnabled && He.tsIsDeclarationStart.call(void 0)) || + (y.isFlowEnabled && st.flowShouldParseExportDeclaration.call(void 0)) || + y.state.type === k.TokenType._var || + y.state.type === k.TokenType._const || + y.state.type === k.TokenType._let || + y.state.type === k.TokenType._function || + y.state.type === k.TokenType._class || + q.isContextual.call(void 0, se.ContextualKeyword._async) || + S.match.call(void 0, k.TokenType.at) + ); + } + function n1() { + let e = !0; + for ( + q.expect.call(void 0, k.TokenType.braceL); + !S.eat.call(void 0, k.TokenType.braceR) && !y.state.error; + + ) { + if (e) e = !1; + else if ( + (q.expect.call(void 0, k.TokenType.comma), + S.eat.call(void 0, k.TokenType.braceR)) + ) + break; + bv(); + } + } + Ue.parseExportSpecifiers = n1; + function bv() { + if (y.isTypeScriptEnabled) { + He.tsParseExportSpecifier.call(void 0); + return; + } + me.parseIdentifier.call(void 0), + (y.state.tokens[y.state.tokens.length - 1].identifierRole = + S.IdentifierRole.ExportAccess), + q.eatContextual.call(void 0, se.ContextualKeyword._as) && + me.parseIdentifier.call(void 0); + } + function Ev() { + let e = y.state.snapshot(); + return ( + q.expectContextual.call(void 0, se.ContextualKeyword._module), + q.eatContextual.call(void 0, se.ContextualKeyword._from) + ? q.isContextual.call(void 0, se.ContextualKeyword._from) + ? (y.state.restoreFromSnapshot(e), !0) + : (y.state.restoreFromSnapshot(e), !1) + : S.match.call(void 0, k.TokenType.comma) + ? (y.state.restoreFromSnapshot(e), !1) + : (y.state.restoreFromSnapshot(e), !0) + ); + } + function Av() { + q.isContextual.call(void 0, se.ContextualKeyword._module) && + Ev() && + S.next.call(void 0); + } + function wp() { + if ( + y.isTypeScriptEnabled && + S.match.call(void 0, k.TokenType.name) && + S.lookaheadType.call(void 0) === k.TokenType.eq + ) { + He.tsParseImportEqualsDeclaration.call(void 0); + return; + } + if ( + y.isTypeScriptEnabled && + q.isContextual.call(void 0, se.ContextualKeyword._type) + ) { + let e = S.lookaheadTypeAndKeyword.call(void 0); + if ( + e.type === k.TokenType.name && + e.contextualKeyword !== se.ContextualKeyword._from + ) { + if ( + (q.expectContextual.call(void 0, se.ContextualKeyword._type), + S.lookaheadType.call(void 0) === k.TokenType.eq) + ) { + He.tsParseImportEqualsDeclaration.call(void 0); + return; + } + } else + (e.type === k.TokenType.star || e.type === k.TokenType.braceL) && + q.expectContextual.call(void 0, se.ContextualKeyword._type); + } + S.match.call(void 0, k.TokenType.string) || + (Av(), + Rv(), + q.expectContextual.call(void 0, se.ContextualKeyword._from)), + me.parseExprAtom.call(void 0), + Ip(), + q.semicolon.call(void 0); + } + Ue.parseImport = wp; + function Pv() { + return S.match.call(void 0, k.TokenType.name); + } + function hp() { + Mn.parseImportedIdentifier.call(void 0); + } + function Rv() { + y.isFlowEnabled && st.flowStartParseImportSpecifiers.call(void 0); + let e = !0; + if (!(Pv() && (hp(), !S.eat.call(void 0, k.TokenType.comma)))) { + if (S.match.call(void 0, k.TokenType.star)) { + S.next.call(void 0), + q.expectContextual.call(void 0, se.ContextualKeyword._as), + hp(); + return; + } + for ( + q.expect.call(void 0, k.TokenType.braceL); + !S.eat.call(void 0, k.TokenType.braceR) && !y.state.error; + + ) { + if (e) e = !1; + else if ( + (S.eat.call(void 0, k.TokenType.colon) && + q.unexpected.call( + void 0, + 'ES2015 named imports do not destructure. Use another statement for destructuring after the import.' + ), + q.expect.call(void 0, k.TokenType.comma), + S.eat.call(void 0, k.TokenType.braceR)) + ) + break; + Nv(); + } + } + } + function Nv() { + if (y.isTypeScriptEnabled) { + He.tsParseImportSpecifier.call(void 0); + return; + } + if (y.isFlowEnabled) { + st.flowParseImportSpecifier.call(void 0); + return; + } + Mn.parseImportedIdentifier.call(void 0), + q.isContextual.call(void 0, se.ContextualKeyword._as) && + ((y.state.tokens[y.state.tokens.length - 1].identifierRole = + S.IdentifierRole.ImportAccess), + S.next.call(void 0), + Mn.parseImportedIdentifier.call(void 0)); + } + function Ip() { + q.isContextual.call(void 0, se.ContextualKeyword._assert) && + !q.hasPrecedingLineBreak.call(void 0) && + (S.next.call(void 0), me.parseObj.call(void 0, !1, !1)); + } + }); + var Ep = H((s1) => { + 'use strict'; + Object.defineProperty(s1, '__esModule', {value: !0}); + var Sp = Ve(), + bp = gt(), + r1 = Ct(), + Dv = Jo(); + function Ov() { + return ( + r1.state.pos === 0 && + r1.input.charCodeAt(0) === bp.charCodes.numberSign && + r1.input.charCodeAt(1) === bp.charCodes.exclamationMark && + Sp.skipLineComment.call(void 0, 2), + Sp.nextToken.call(void 0), + Dv.parseTopLevel.call(void 0) + ); + } + s1.parseFile = Ov; + }); + var o1 = H((ys) => { + 'use strict'; + Object.defineProperty(ys, '__esModule', {value: !0}); + var Ts = Ct(), + Mv = Ep(), + i1 = class { + constructor(t, n) { + (this.tokens = t), (this.scopes = n); + } + }; + ys.File = i1; + function Lv(e, t, n, o) { + if (o && n) + throw new Error('Cannot combine flow and typescript plugins.'); + Ts.initParser.call(void 0, e, t, n, o); + let r = Mv.parseFile.call(void 0); + if (Ts.state.error) throw Ts.augmentError.call(void 0, Ts.state.error); + return r; + } + ys.parse = Lv; + }); + var Ap = H((a1) => { + 'use strict'; + Object.defineProperty(a1, '__esModule', {value: !0}); + var Fv = Ge(); + function $v(e) { + let t = e.currentIndex(), + n = 0, + o = e.currentToken(); + do { + let r = e.tokens[t]; + if ( + (r.isOptionalChainStart && n++, + r.isOptionalChainEnd && n--, + (n += r.numNullishCoalesceStarts), + (n -= r.numNullishCoalesceEnds), + r.contextualKeyword === Fv.ContextualKeyword._await && + r.identifierRole == null && + r.scopeDepth === o.scopeDepth) + ) + return !0; + t += 1; + } while (n > 0 && t < e.tokens.length); + return !1; + } + a1.default = $v; + }); + var Pp = H((c1) => { + 'use strict'; + Object.defineProperty(c1, '__esModule', {value: !0}); + function Bv(e) { + return e && e.__esModule ? e : {default: e}; + } + var ms = ce(), + jv = Ap(), + Kv = Bv(jv), + l1 = class e { + __init() { + this.resultCode = ''; + } + __init2() { + this.resultMappings = new Array(this.tokens.length); + } + __init3() { + this.tokenIndex = 0; + } + constructor(t, n, o, r, s) { + (this.code = t), + (this.tokens = n), + (this.isFlowEnabled = o), + (this.disableESTransforms = r), + (this.helperManager = s), + e.prototype.__init.call(this), + e.prototype.__init2.call(this), + e.prototype.__init3.call(this); + } + snapshot() { + return {resultCode: this.resultCode, tokenIndex: this.tokenIndex}; + } + restoreToSnapshot(t) { + (this.resultCode = t.resultCode), (this.tokenIndex = t.tokenIndex); + } + dangerouslyGetAndRemoveCodeSinceSnapshot(t) { + let n = this.resultCode.slice(t.resultCode.length); + return (this.resultCode = t.resultCode), n; + } + reset() { + (this.resultCode = ''), + (this.resultMappings = new Array(this.tokens.length)), + (this.tokenIndex = 0); + } + matchesContextualAtIndex(t, n) { + return ( + this.matches1AtIndex(t, ms.TokenType.name) && + this.tokens[t].contextualKeyword === n + ); + } + identifierNameAtIndex(t) { + return this.identifierNameForToken(this.tokens[t]); + } + identifierNameAtRelativeIndex(t) { + return this.identifierNameForToken(this.tokenAtRelativeIndex(t)); + } + identifierName() { + return this.identifierNameForToken(this.currentToken()); + } + identifierNameForToken(t) { + return this.code.slice(t.start, t.end); + } + rawCodeForToken(t) { + return this.code.slice(t.start, t.end); + } + stringValueAtIndex(t) { + return this.stringValueForToken(this.tokens[t]); + } + stringValue() { + return this.stringValueForToken(this.currentToken()); + } + stringValueForToken(t) { + return this.code.slice(t.start + 1, t.end - 1); + } + matches1AtIndex(t, n) { + return this.tokens[t].type === n; + } + matches2AtIndex(t, n, o) { + return this.tokens[t].type === n && this.tokens[t + 1].type === o; + } + matches3AtIndex(t, n, o, r) { + return ( + this.tokens[t].type === n && + this.tokens[t + 1].type === o && + this.tokens[t + 2].type === r + ); + } + matches1(t) { + return this.tokens[this.tokenIndex].type === t; + } + matches2(t, n) { + return ( + this.tokens[this.tokenIndex].type === t && + this.tokens[this.tokenIndex + 1].type === n + ); + } + matches3(t, n, o) { + return ( + this.tokens[this.tokenIndex].type === t && + this.tokens[this.tokenIndex + 1].type === n && + this.tokens[this.tokenIndex + 2].type === o + ); + } + matches4(t, n, o, r) { + return ( + this.tokens[this.tokenIndex].type === t && + this.tokens[this.tokenIndex + 1].type === n && + this.tokens[this.tokenIndex + 2].type === o && + this.tokens[this.tokenIndex + 3].type === r + ); + } + matches5(t, n, o, r, s) { + return ( + this.tokens[this.tokenIndex].type === t && + this.tokens[this.tokenIndex + 1].type === n && + this.tokens[this.tokenIndex + 2].type === o && + this.tokens[this.tokenIndex + 3].type === r && + this.tokens[this.tokenIndex + 4].type === s + ); + } + matchesContextual(t) { + return this.matchesContextualAtIndex(this.tokenIndex, t); + } + matchesContextIdAndLabel(t, n) { + return this.matches1(t) && this.currentToken().contextId === n; + } + previousWhitespaceAndComments() { + let t = this.code.slice( + this.tokenIndex > 0 ? this.tokens[this.tokenIndex - 1].end : 0, + this.tokenIndex < this.tokens.length + ? this.tokens[this.tokenIndex].start + : this.code.length + ); + return this.isFlowEnabled && (t = t.replace(/@flow/g, '')), t; + } + replaceToken(t) { + (this.resultCode += this.previousWhitespaceAndComments()), + this.appendTokenPrefix(), + (this.resultMappings[this.tokenIndex] = this.resultCode.length), + (this.resultCode += t), + this.appendTokenSuffix(), + this.tokenIndex++; + } + replaceTokenTrimmingLeftWhitespace(t) { + (this.resultCode += this.previousWhitespaceAndComments().replace( + /[^\r\n]/g, + '' + )), + this.appendTokenPrefix(), + (this.resultMappings[this.tokenIndex] = this.resultCode.length), + (this.resultCode += t), + this.appendTokenSuffix(), + this.tokenIndex++; + } + removeInitialToken() { + this.replaceToken(''); + } + removeToken() { + this.replaceTokenTrimmingLeftWhitespace(''); + } + removeBalancedCode() { + let t = 0; + for (; !this.isAtEnd(); ) { + if (this.matches1(ms.TokenType.braceL)) t++; + else if (this.matches1(ms.TokenType.braceR)) { + if (t === 0) return; + t--; + } + this.removeToken(); + } + } + copyExpectedToken(t) { + if (this.tokens[this.tokenIndex].type !== t) + throw new Error(`Expected token ${t}`); + this.copyToken(); + } + copyToken() { + (this.resultCode += this.previousWhitespaceAndComments()), + this.appendTokenPrefix(), + (this.resultMappings[this.tokenIndex] = this.resultCode.length), + (this.resultCode += this.code.slice( + this.tokens[this.tokenIndex].start, + this.tokens[this.tokenIndex].end + )), + this.appendTokenSuffix(), + this.tokenIndex++; + } + copyTokenWithPrefix(t) { + (this.resultCode += this.previousWhitespaceAndComments()), + this.appendTokenPrefix(), + (this.resultCode += t), + (this.resultMappings[this.tokenIndex] = this.resultCode.length), + (this.resultCode += this.code.slice( + this.tokens[this.tokenIndex].start, + this.tokens[this.tokenIndex].end + )), + this.appendTokenSuffix(), + this.tokenIndex++; + } + appendTokenPrefix() { + let t = this.currentToken(); + if ( + ((t.numNullishCoalesceStarts || t.isOptionalChainStart) && + (t.isAsyncOperation = Kv.default.call(void 0, this)), + !this.disableESTransforms) + ) { + if (t.numNullishCoalesceStarts) + for (let n = 0; n < t.numNullishCoalesceStarts; n++) + t.isAsyncOperation + ? ((this.resultCode += 'await '), + (this.resultCode += this.helperManager.getHelperName( + 'asyncNullishCoalesce' + ))) + : (this.resultCode += + this.helperManager.getHelperName('nullishCoalesce')), + (this.resultCode += '('); + t.isOptionalChainStart && + (t.isAsyncOperation && (this.resultCode += 'await '), + this.tokenIndex > 0 && + this.tokenAtRelativeIndex(-1).type === ms.TokenType._delete + ? t.isAsyncOperation + ? (this.resultCode += this.helperManager.getHelperName( + 'asyncOptionalChainDelete' + )) + : (this.resultCode += this.helperManager.getHelperName( + 'optionalChainDelete' + )) + : t.isAsyncOperation + ? (this.resultCode += + this.helperManager.getHelperName('asyncOptionalChain')) + : (this.resultCode += + this.helperManager.getHelperName('optionalChain')), + (this.resultCode += '([')); + } + } + appendTokenSuffix() { + let t = this.currentToken(); + if ( + (t.isOptionalChainEnd && + !this.disableESTransforms && + (this.resultCode += '])'), + t.numNullishCoalesceEnds && !this.disableESTransforms) + ) + for (let n = 0; n < t.numNullishCoalesceEnds; n++) + this.resultCode += '))'; + } + appendCode(t) { + this.resultCode += t; + } + currentToken() { + return this.tokens[this.tokenIndex]; + } + currentTokenCode() { + let t = this.currentToken(); + return this.code.slice(t.start, t.end); + } + tokenAtRelativeIndex(t) { + return this.tokens[this.tokenIndex + t]; + } + currentIndex() { + return this.tokenIndex; + } + nextToken() { + if (this.tokenIndex === this.tokens.length) + throw new Error('Unexpectedly reached end of input.'); + this.tokenIndex++; + } + previousToken() { + this.tokenIndex--; + } + finish() { + if (this.tokenIndex !== this.tokens.length) + throw new Error( + 'Tried to finish processing tokens before reaching the end.' + ); + return ( + (this.resultCode += this.previousWhitespaceAndComments()), + {code: this.resultCode, mappings: this.resultMappings} + ); + } + isAtEnd() { + return this.tokenIndex === this.tokens.length; + } + }; + c1.default = l1; + }); + var Dp = H((p1) => { + 'use strict'; + Object.defineProperty(p1, '__esModule', {value: !0}); + var Rp = Ge(), + he = ce(); + function qv(e, t, n, o) { + let r = t.snapshot(), + s = Hv(t), + i = [], + a = [], + u = [], + h = null, + v = [], + _ = [], + x = t.currentToken().contextId; + if (x == null) + throw new Error( + 'Expected non-null class context ID on class open-brace.' + ); + for (t.nextToken(); !t.matchesContextIdAndLabel(he.TokenType.braceR, x); ) + if ( + t.matchesContextual(Rp.ContextualKeyword._constructor) && + !t.currentToken().isType + ) + ({constructorInitializerStatements: i, constructorInsertPos: h} = + Np(t)); + else if (t.matches1(he.TokenType.semi)) + o || _.push({start: t.currentIndex(), end: t.currentIndex() + 1}), + t.nextToken(); + else if (t.currentToken().isType) t.nextToken(); + else { + let L = t.currentIndex(), + G = !1, + F = !1, + K = !1; + for (; ks(t.currentToken()); ) + t.matches1(he.TokenType._static) && (G = !0), + t.matches1(he.TokenType.hash) && (F = !0), + (t.matches1(he.TokenType._declare) || + t.matches1(he.TokenType._abstract)) && + (K = !0), + t.nextToken(); + if (G && t.matches1(he.TokenType.braceL)) { + u1(t, x); + continue; + } + if (F) { + u1(t, x); + continue; + } + if ( + t.matchesContextual(Rp.ContextualKeyword._constructor) && + !t.currentToken().isType + ) { + ({constructorInitializerStatements: i, constructorInsertPos: h} = + Np(t)); + continue; + } + let R = t.currentIndex(); + if ( + (Uv(t), + t.matches1(he.TokenType.lessThan) || + t.matches1(he.TokenType.parenL)) + ) { + u1(t, x); + continue; + } + for (; t.currentToken().isType; ) t.nextToken(); + if (t.matches1(he.TokenType.eq)) { + let z = t.currentIndex(), + $ = t.currentToken().rhsEndIndex; + if ($ == null) + throw new Error( + 'Expected rhsEndIndex on class field assignment.' + ); + for (t.nextToken(); t.currentIndex() < $; ) e.processToken(); + let O; + G + ? ((O = n.claimFreeName('__initStatic')), u.push(O)) + : ((O = n.claimFreeName('__init')), a.push(O)), + v.push({ + initializerName: O, + equalsIndex: z, + start: R, + end: t.currentIndex(), + }); + } else (!o || K) && _.push({start: L, end: t.currentIndex()}); + } + return ( + t.restoreToSnapshot(r), + o + ? { + headerInfo: s, + constructorInitializerStatements: i, + instanceInitializerNames: [], + staticInitializerNames: [], + constructorInsertPos: h, + fields: [], + rangesToRemove: _, + } + : { + headerInfo: s, + constructorInitializerStatements: i, + instanceInitializerNames: a, + staticInitializerNames: u, + constructorInsertPos: h, + fields: v, + rangesToRemove: _, + } + ); + } + p1.default = qv; + function u1(e, t) { + for (e.nextToken(); e.currentToken().contextId !== t; ) e.nextToken(); + for (; ks(e.tokenAtRelativeIndex(-1)); ) e.previousToken(); + } + function Hv(e) { + let t = e.currentToken(), + n = t.contextId; + if (n == null) throw new Error('Expected context ID on class token.'); + let o = t.isExpression; + if (o == null) throw new Error('Expected isExpression on class token.'); + let r = null, + s = !1; + for ( + e.nextToken(), + e.matches1(he.TokenType.name) && (r = e.identifierName()); + !e.matchesContextIdAndLabel(he.TokenType.braceL, n); + + ) + e.matches1(he.TokenType._extends) && + !e.currentToken().isType && + (s = !0), + e.nextToken(); + return {isExpression: o, className: r, hasSuperclass: s}; + } + function Np(e) { + let t = []; + e.nextToken(); + let n = e.currentToken().contextId; + if (n == null) + throw new Error( + 'Expected context ID on open-paren starting constructor params.' + ); + for (; !e.matchesContextIdAndLabel(he.TokenType.parenR, n); ) + if (e.currentToken().contextId === n) { + if ((e.nextToken(), ks(e.currentToken()))) { + for (e.nextToken(); ks(e.currentToken()); ) e.nextToken(); + let s = e.currentToken(); + if (s.type !== he.TokenType.name) + throw new Error( + 'Expected identifier after access modifiers in constructor arg.' + ); + let i = e.identifierNameForToken(s); + t.push(`this.${i} = ${i}`); + } + } else e.nextToken(); + e.nextToken(); + let o = e.currentIndex(), + r = !1; + for (; !e.matchesContextIdAndLabel(he.TokenType.braceR, n); ) { + if (!r && e.matches2(he.TokenType._super, he.TokenType.parenL)) { + e.nextToken(); + let s = e.currentToken().contextId; + if (s == null) + throw new Error('Expected a context ID on the super call'); + for (; !e.matchesContextIdAndLabel(he.TokenType.parenR, s); ) + e.nextToken(); + (o = e.currentIndex()), (r = !0); + } + e.nextToken(); + } + return ( + e.nextToken(), + {constructorInitializerStatements: t, constructorInsertPos: o} + ); + } + function ks(e) { + return [ + he.TokenType._async, + he.TokenType._get, + he.TokenType._set, + he.TokenType.plus, + he.TokenType.minus, + he.TokenType._readonly, + he.TokenType._static, + he.TokenType._public, + he.TokenType._private, + he.TokenType._protected, + he.TokenType._override, + he.TokenType._abstract, + he.TokenType.star, + he.TokenType._declare, + he.TokenType.hash, + ].includes(e.type); + } + function Uv(e) { + if (e.matches1(he.TokenType.bracketL)) { + let n = e.currentToken().contextId; + if (n == null) + throw new Error( + 'Expected class context ID on computed name open bracket.' + ); + for (; !e.matchesContextIdAndLabel(he.TokenType.bracketR, n); ) + e.nextToken(); + e.nextToken(); + } else e.nextToken(); + } + }); + var f1 = H((d1) => { + 'use strict'; + Object.defineProperty(d1, '__esModule', {value: !0}); + var Op = ce(); + function Wv(e) { + if ( + (e.removeInitialToken(), + e.removeToken(), + e.removeToken(), + e.removeToken(), + e.matches1(Op.TokenType.parenL)) + ) + e.removeToken(), e.removeToken(), e.removeToken(); + else + for (; e.matches1(Op.TokenType.dot); ) e.removeToken(), e.removeToken(); + } + d1.default = Wv; + }); + var h1 = H((vs) => { + 'use strict'; + Object.defineProperty(vs, '__esModule', {value: !0}); + var Vv = Ve(), + zv = ce(), + Xv = {typeDeclarations: new Set(), valueDeclarations: new Set()}; + vs.EMPTY_DECLARATION_INFO = Xv; + function Yv(e) { + let t = new Set(), + n = new Set(); + for (let o = 0; o < e.tokens.length; o++) { + let r = e.tokens[o]; + r.type === zv.TokenType.name && + Vv.isTopLevelDeclaration.call(void 0, r) && + (r.isType + ? t.add(e.identifierNameForToken(r)) + : n.add(e.identifierNameForToken(r))); + } + return {typeDeclarations: t, valueDeclarations: n}; + } + vs.default = Yv; + }); + var y1 = H((T1) => { + 'use strict'; + Object.defineProperty(T1, '__esModule', {value: !0}); + var Gv = Ge(), + Mp = ce(); + function Jv(e) { + e.matches2(Mp.TokenType.name, Mp.TokenType.braceL) && + e.matchesContextual(Gv.ContextualKeyword._assert) && + (e.removeToken(), + e.removeToken(), + e.removeBalancedCode(), + e.removeToken()); + } + T1.removeMaybeImportAssertion = Jv; + }); + var k1 = H((m1) => { + 'use strict'; + Object.defineProperty(m1, '__esModule', {value: !0}); + var Lp = ce(); + function Qv(e, t, n) { + if (!e) return !1; + let o = t.currentToken(); + if (o.rhsEndIndex == null) + throw new Error('Expected non-null rhsEndIndex on export token.'); + let r = o.rhsEndIndex - t.currentIndex(); + if ( + r !== 3 && + !(r === 4 && t.matches1AtIndex(o.rhsEndIndex - 1, Lp.TokenType.semi)) + ) + return !1; + let s = t.tokenAtRelativeIndex(2); + if (s.type !== Lp.TokenType.name) return !1; + let i = t.identifierNameForToken(s); + return n.typeDeclarations.has(i) && !n.valueDeclarations.has(i); + } + m1.default = Qv; + }); + var $p = H((_1) => { + 'use strict'; + Object.defineProperty(_1, '__esModule', {value: !0}); + function sr(e) { + return e && e.__esModule ? e : {default: e}; + } + var _s = Ve(), + Gn = Ge(), + m = ce(), + Zv = f1(), + e0 = sr(Zv), + Fp = h1(), + t0 = sr(Fp), + n0 = Ko(), + o0 = sr(n0), + xs = y1(), + r0 = k1(), + s0 = sr(r0), + i0 = Nt(), + a0 = sr(i0), + v1 = class e extends a0.default { + __init() { + this.hadExport = !1; + } + __init2() { + this.hadNamedExport = !1; + } + __init3() { + this.hadDefaultExport = !1; + } + constructor(t, n, o, r, s, i, a, u, h, v) { + super(), + (this.rootTransformer = t), + (this.tokens = n), + (this.importProcessor = o), + (this.nameManager = r), + (this.helperManager = s), + (this.reactHotLoaderTransformer = i), + (this.enableLegacyBabel5ModuleInterop = a), + (this.enableLegacyTypeScriptModuleInterop = u), + (this.isTypeScriptTransformEnabled = h), + (this.preserveDynamicImport = v), + e.prototype.__init.call(this), + e.prototype.__init2.call(this), + e.prototype.__init3.call(this), + (this.declarationInfo = h + ? t0.default.call(void 0, n) + : Fp.EMPTY_DECLARATION_INFO); + } + getPrefixCode() { + let t = ''; + return ( + this.hadExport && + (t += + 'Object.defineProperty(exports, "__esModule", {value: true});'), + t + ); + } + getSuffixCode() { + return this.enableLegacyBabel5ModuleInterop && + this.hadDefaultExport && + !this.hadNamedExport + ? ` +module.exports = exports.default; +` + : ''; + } + process() { + return this.tokens.matches3( + m.TokenType._import, + m.TokenType.name, + m.TokenType.eq + ) + ? this.processImportEquals() + : this.tokens.matches1(m.TokenType._import) + ? (this.processImport(), !0) + : this.tokens.matches2(m.TokenType._export, m.TokenType.eq) + ? (this.tokens.replaceToken('module.exports'), !0) + : this.tokens.matches1(m.TokenType._export) && + !this.tokens.currentToken().isType + ? ((this.hadExport = !0), this.processExport()) + : this.tokens.matches2(m.TokenType.name, m.TokenType.postIncDec) && + this.processPostIncDec() + ? !0 + : this.tokens.matches1(m.TokenType.name) || + this.tokens.matches1(m.TokenType.jsxName) + ? this.processIdentifier() + : this.tokens.matches1(m.TokenType.eq) + ? this.processAssignment() + : this.tokens.matches1(m.TokenType.assign) + ? this.processComplexAssignment() + : this.tokens.matches1(m.TokenType.preIncDec) + ? this.processPreIncDec() + : !1; + } + processImportEquals() { + let t = this.tokens.identifierNameAtIndex( + this.tokens.currentIndex() + 1 + ); + return ( + this.importProcessor.isTypeName(t) + ? e0.default.call(void 0, this.tokens) + : this.tokens.replaceToken('const'), + !0 + ); + } + processImport() { + if (this.tokens.matches2(m.TokenType._import, m.TokenType.parenL)) { + if (this.preserveDynamicImport) { + this.tokens.copyToken(); + return; + } + let n = this.enableLegacyTypeScriptModuleInterop + ? '' + : `${this.helperManager.getHelperName( + 'interopRequireWildcard' + )}(`; + this.tokens.replaceToken( + `Promise.resolve().then(() => ${n}require` + ); + let o = this.tokens.currentToken().contextId; + if (o == null) + throw new Error( + 'Expected context ID on dynamic import invocation.' + ); + for ( + this.tokens.copyToken(); + !this.tokens.matchesContextIdAndLabel(m.TokenType.parenR, o); + + ) + this.rootTransformer.processToken(); + this.tokens.replaceToken(n ? ')))' : '))'); + return; + } + if (this.removeImportAndDetectIfType()) this.tokens.removeToken(); + else { + let n = this.tokens.stringValue(); + this.tokens.replaceTokenTrimmingLeftWhitespace( + this.importProcessor.claimImportCode(n) + ), + this.tokens.appendCode(this.importProcessor.claimImportCode(n)); + } + xs.removeMaybeImportAssertion.call(void 0, this.tokens), + this.tokens.matches1(m.TokenType.semi) && this.tokens.removeToken(); + } + removeImportAndDetectIfType() { + if ( + (this.tokens.removeInitialToken(), + this.tokens.matchesContextual(Gn.ContextualKeyword._type) && + !this.tokens.matches1AtIndex( + this.tokens.currentIndex() + 1, + m.TokenType.comma + ) && + !this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 1, + Gn.ContextualKeyword._from + )) + ) + return this.removeRemainingImport(), !0; + if ( + this.tokens.matches1(m.TokenType.name) || + this.tokens.matches1(m.TokenType.star) + ) + return this.removeRemainingImport(), !1; + if (this.tokens.matches1(m.TokenType.string)) return !1; + let t = !1; + for (; !this.tokens.matches1(m.TokenType.string); ) + ((!t && this.tokens.matches1(m.TokenType.braceL)) || + this.tokens.matches1(m.TokenType.comma)) && + (this.tokens.removeToken(), + (this.tokens.matches2(m.TokenType.name, m.TokenType.comma) || + this.tokens.matches2(m.TokenType.name, m.TokenType.braceR) || + this.tokens.matches4( + m.TokenType.name, + m.TokenType.name, + m.TokenType.name, + m.TokenType.comma + ) || + this.tokens.matches4( + m.TokenType.name, + m.TokenType.name, + m.TokenType.name, + m.TokenType.braceR + )) && + (t = !0)), + this.tokens.removeToken(); + return !t; + } + removeRemainingImport() { + for (; !this.tokens.matches1(m.TokenType.string); ) + this.tokens.removeToken(); + } + processIdentifier() { + let t = this.tokens.currentToken(); + if (t.shadowsGlobal) return !1; + if (t.identifierRole === _s.IdentifierRole.ObjectShorthand) + return this.processObjectShorthand(); + if (t.identifierRole !== _s.IdentifierRole.Access) return !1; + let n = this.importProcessor.getIdentifierReplacement( + this.tokens.identifierNameForToken(t) + ); + if (!n) return !1; + let o = this.tokens.currentIndex() + 1; + for ( + ; + o < this.tokens.tokens.length && + this.tokens.tokens[o].type === m.TokenType.parenR; + + ) + o++; + return ( + this.tokens.tokens[o].type === m.TokenType.parenL + ? this.tokens.tokenAtRelativeIndex(1).type === + m.TokenType.parenL && + this.tokens.tokenAtRelativeIndex(-1).type !== m.TokenType._new + ? (this.tokens.replaceToken(`${n}.call(void 0, `), + this.tokens.removeToken(), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(m.TokenType.parenR)) + : this.tokens.replaceToken(`(0, ${n})`) + : this.tokens.replaceToken(n), + !0 + ); + } + processObjectShorthand() { + let t = this.tokens.identifierName(), + n = this.importProcessor.getIdentifierReplacement(t); + return n ? (this.tokens.replaceToken(`${t}: ${n}`), !0) : !1; + } + processExport() { + if ( + this.tokens.matches2(m.TokenType._export, m.TokenType._enum) || + this.tokens.matches3( + m.TokenType._export, + m.TokenType._const, + m.TokenType._enum + ) + ) + return !1; + if (this.tokens.matches2(m.TokenType._export, m.TokenType._default)) + return ( + (this.hadDefaultExport = !0), + this.tokens.matches3( + m.TokenType._export, + m.TokenType._default, + m.TokenType._enum + ) + ? !1 + : (this.processExportDefault(), !0) + ); + if ( + ((this.hadNamedExport = !0), + this.tokens.matches2(m.TokenType._export, m.TokenType._var) || + this.tokens.matches2(m.TokenType._export, m.TokenType._let) || + this.tokens.matches2(m.TokenType._export, m.TokenType._const)) + ) + return this.processExportVar(), !0; + if ( + this.tokens.matches2(m.TokenType._export, m.TokenType._function) || + this.tokens.matches3( + m.TokenType._export, + m.TokenType.name, + m.TokenType._function + ) + ) + return this.processExportFunction(), !0; + if ( + this.tokens.matches2(m.TokenType._export, m.TokenType._class) || + this.tokens.matches3( + m.TokenType._export, + m.TokenType._abstract, + m.TokenType._class + ) || + this.tokens.matches2(m.TokenType._export, m.TokenType.at) + ) + return this.processExportClass(), !0; + if (this.tokens.matches2(m.TokenType._export, m.TokenType.braceL)) + return this.processExportBindings(), !0; + if (this.tokens.matches2(m.TokenType._export, m.TokenType.star)) + return this.processExportStar(), !0; + if ( + this.tokens.matches2(m.TokenType._export, m.TokenType.name) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 1, + Gn.ContextualKeyword._type + ) + ) { + if ( + (this.tokens.removeInitialToken(), + this.tokens.removeToken(), + this.tokens.matches1(m.TokenType.braceL)) + ) { + for (; !this.tokens.matches1(m.TokenType.braceR); ) + this.tokens.removeToken(); + this.tokens.removeToken(); + } else + this.tokens.removeToken(), + this.tokens.matches1(m.TokenType._as) && + (this.tokens.removeToken(), this.tokens.removeToken()); + return ( + this.tokens.matchesContextual(Gn.ContextualKeyword._from) && + this.tokens.matches1AtIndex( + this.tokens.currentIndex() + 1, + m.TokenType.string + ) && + (this.tokens.removeToken(), + this.tokens.removeToken(), + xs.removeMaybeImportAssertion.call(void 0, this.tokens)), + !0 + ); + } else throw new Error('Unrecognized export syntax.'); + } + processAssignment() { + let t = this.tokens.currentIndex(), + n = this.tokens.tokens[t - 1]; + if ( + n.isType || + n.type !== m.TokenType.name || + n.shadowsGlobal || + (t >= 2 && this.tokens.matches1AtIndex(t - 2, m.TokenType.dot)) || + (t >= 2 && + [m.TokenType._var, m.TokenType._let, m.TokenType._const].includes( + this.tokens.tokens[t - 2].type + )) + ) + return !1; + let o = this.importProcessor.resolveExportBinding( + this.tokens.identifierNameForToken(n) + ); + return o + ? (this.tokens.copyToken(), this.tokens.appendCode(` ${o} =`), !0) + : !1; + } + processComplexAssignment() { + let t = this.tokens.currentIndex(), + n = this.tokens.tokens[t - 1]; + if ( + n.type !== m.TokenType.name || + n.shadowsGlobal || + (t >= 2 && this.tokens.matches1AtIndex(t - 2, m.TokenType.dot)) + ) + return !1; + let o = this.importProcessor.resolveExportBinding( + this.tokens.identifierNameForToken(n) + ); + return o + ? (this.tokens.appendCode(` = ${o}`), this.tokens.copyToken(), !0) + : !1; + } + processPreIncDec() { + let t = this.tokens.currentIndex(), + n = this.tokens.tokens[t + 1]; + if ( + n.type !== m.TokenType.name || + n.shadowsGlobal || + (t + 2 < this.tokens.tokens.length && + (this.tokens.matches1AtIndex(t + 2, m.TokenType.dot) || + this.tokens.matches1AtIndex(t + 2, m.TokenType.bracketL) || + this.tokens.matches1AtIndex(t + 2, m.TokenType.parenL))) + ) + return !1; + let o = this.tokens.identifierNameForToken(n), + r = this.importProcessor.resolveExportBinding(o); + return r + ? (this.tokens.appendCode(`${r} = `), this.tokens.copyToken(), !0) + : !1; + } + processPostIncDec() { + let t = this.tokens.currentIndex(), + n = this.tokens.tokens[t], + o = this.tokens.tokens[t + 1]; + if ( + n.type !== m.TokenType.name || + n.shadowsGlobal || + (t >= 1 && this.tokens.matches1AtIndex(t - 1, m.TokenType.dot)) + ) + return !1; + let r = this.tokens.identifierNameForToken(n), + s = this.importProcessor.resolveExportBinding(r); + if (!s) return !1; + let i = this.tokens.rawCodeForToken(o), + a = this.importProcessor.getIdentifierReplacement(r) || r; + if (i === '++') + this.tokens.replaceToken(`(${a} = ${s} = ${a} + 1, ${a} - 1)`); + else if (i === '--') + this.tokens.replaceToken(`(${a} = ${s} = ${a} - 1, ${a} + 1)`); + else throw new Error(`Unexpected operator: ${i}`); + return this.tokens.removeToken(), !0; + } + processExportDefault() { + if ( + this.tokens.matches4( + m.TokenType._export, + m.TokenType._default, + m.TokenType._function, + m.TokenType.name + ) || + (this.tokens.matches5( + m.TokenType._export, + m.TokenType._default, + m.TokenType.name, + m.TokenType._function, + m.TokenType.name + ) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 2, + Gn.ContextualKeyword._async + )) + ) { + this.tokens.removeInitialToken(), this.tokens.removeToken(); + let t = this.processNamedFunction(); + this.tokens.appendCode(` exports.default = ${t};`); + } else if ( + this.tokens.matches4( + m.TokenType._export, + m.TokenType._default, + m.TokenType._class, + m.TokenType.name + ) || + this.tokens.matches5( + m.TokenType._export, + m.TokenType._default, + m.TokenType._abstract, + m.TokenType._class, + m.TokenType.name + ) || + this.tokens.matches3( + m.TokenType._export, + m.TokenType._default, + m.TokenType.at + ) + ) { + this.tokens.removeInitialToken(), + this.tokens.removeToken(), + this.copyDecorators(), + this.tokens.matches1(m.TokenType._abstract) && + this.tokens.removeToken(); + let t = this.rootTransformer.processNamedClass(); + this.tokens.appendCode(` exports.default = ${t};`); + } else if ( + s0.default.call( + void 0, + this.isTypeScriptTransformEnabled, + this.tokens, + this.declarationInfo + ) + ) + this.tokens.removeInitialToken(), + this.tokens.removeToken(), + this.tokens.removeToken(); + else if (this.reactHotLoaderTransformer) { + let t = this.nameManager.claimFreeName('_default'); + this.tokens.replaceToken(`let ${t}; exports.`), + this.tokens.copyToken(), + this.tokens.appendCode(` = ${t} =`), + this.reactHotLoaderTransformer.setExtractedDefaultExportName(t); + } else + this.tokens.replaceToken('exports.'), + this.tokens.copyToken(), + this.tokens.appendCode(' ='); + } + copyDecorators() { + for (; this.tokens.matches1(m.TokenType.at); ) + if ( + (this.tokens.copyToken(), + this.tokens.matches1(m.TokenType.parenL)) + ) + this.tokens.copyExpectedToken(m.TokenType.parenL), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(m.TokenType.parenR); + else { + for ( + this.tokens.copyExpectedToken(m.TokenType.name); + this.tokens.matches1(m.TokenType.dot); + + ) + this.tokens.copyExpectedToken(m.TokenType.dot), + this.tokens.copyExpectedToken(m.TokenType.name); + this.tokens.matches1(m.TokenType.parenL) && + (this.tokens.copyExpectedToken(m.TokenType.parenL), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(m.TokenType.parenR)); + } + } + processExportVar() { + this.isSimpleExportVar() + ? this.processSimpleExportVar() + : this.processComplexExportVar(); + } + isSimpleExportVar() { + let t = this.tokens.currentIndex(); + if ((t++, t++, !this.tokens.matches1AtIndex(t, m.TokenType.name))) + return !1; + for ( + t++; + t < this.tokens.tokens.length && this.tokens.tokens[t].isType; + + ) + t++; + return !!this.tokens.matches1AtIndex(t, m.TokenType.eq); + } + processSimpleExportVar() { + this.tokens.removeInitialToken(), this.tokens.copyToken(); + let t = this.tokens.identifierName(); + for (; !this.tokens.matches1(m.TokenType.eq); ) + this.rootTransformer.processToken(); + let n = this.tokens.currentToken().rhsEndIndex; + if (n == null) throw new Error('Expected = token with an end index.'); + for (; this.tokens.currentIndex() < n; ) + this.rootTransformer.processToken(); + this.tokens.appendCode(`; exports.${t} = ${t}`); + } + processComplexExportVar() { + this.tokens.removeInitialToken(), this.tokens.removeToken(); + let t = this.tokens.matches1(m.TokenType.braceL); + t && this.tokens.appendCode('('); + let n = 0; + for (;;) + if ( + this.tokens.matches1(m.TokenType.braceL) || + this.tokens.matches1(m.TokenType.dollarBraceL) || + this.tokens.matches1(m.TokenType.bracketL) + ) + n++, this.tokens.copyToken(); + else if ( + this.tokens.matches1(m.TokenType.braceR) || + this.tokens.matches1(m.TokenType.bracketR) + ) + n--, this.tokens.copyToken(); + else { + if ( + n === 0 && + !this.tokens.matches1(m.TokenType.name) && + !this.tokens.currentToken().isType + ) + break; + if (this.tokens.matches1(m.TokenType.eq)) { + let o = this.tokens.currentToken().rhsEndIndex; + if (o == null) + throw new Error('Expected = token with an end index.'); + for (; this.tokens.currentIndex() < o; ) + this.rootTransformer.processToken(); + } else { + let o = this.tokens.currentToken(); + if (_s.isDeclaration.call(void 0, o)) { + let r = this.tokens.identifierName(), + s = this.importProcessor.getIdentifierReplacement(r); + if (s === null) + throw new Error( + `Expected a replacement for ${r} in \`export var\` syntax.` + ); + _s.isObjectShorthandDeclaration.call(void 0, o) && + (s = `${r}: ${s}`), + this.tokens.replaceToken(s); + } else this.rootTransformer.processToken(); + } + } + if (t) { + let o = this.tokens.currentToken().rhsEndIndex; + if (o == null) + throw new Error('Expected = token with an end index.'); + for (; this.tokens.currentIndex() < o; ) + this.rootTransformer.processToken(); + this.tokens.appendCode(')'); + } + } + processExportFunction() { + this.tokens.replaceToken(''); + let t = this.processNamedFunction(); + this.tokens.appendCode(` exports.${t} = ${t};`); + } + processNamedFunction() { + if (this.tokens.matches1(m.TokenType._function)) + this.tokens.copyToken(); + else if ( + this.tokens.matches2(m.TokenType.name, m.TokenType._function) + ) { + if (!this.tokens.matchesContextual(Gn.ContextualKeyword._async)) + throw new Error('Expected async keyword in function export.'); + this.tokens.copyToken(), this.tokens.copyToken(); + } + if ( + (this.tokens.matches1(m.TokenType.star) && this.tokens.copyToken(), + !this.tokens.matches1(m.TokenType.name)) + ) + throw new Error('Expected identifier for exported function name.'); + let t = this.tokens.identifierName(); + if ((this.tokens.copyToken(), this.tokens.currentToken().isType)) + for ( + this.tokens.removeInitialToken(); + this.tokens.currentToken().isType; + + ) + this.tokens.removeToken(); + return ( + this.tokens.copyExpectedToken(m.TokenType.parenL), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(m.TokenType.parenR), + this.rootTransformer.processPossibleTypeRange(), + this.tokens.copyExpectedToken(m.TokenType.braceL), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(m.TokenType.braceR), + t + ); + } + processExportClass() { + this.tokens.removeInitialToken(), + this.copyDecorators(), + this.tokens.matches1(m.TokenType._abstract) && + this.tokens.removeToken(); + let t = this.rootTransformer.processNamedClass(); + this.tokens.appendCode(` exports.${t} = ${t};`); + } + processExportBindings() { + this.tokens.removeInitialToken(), this.tokens.removeToken(); + let t = []; + for (;;) { + if (this.tokens.matches1(m.TokenType.braceR)) { + this.tokens.removeToken(); + break; + } + let n = o0.default.call(void 0, this.tokens); + for (; this.tokens.currentIndex() < n.endIndex; ) + this.tokens.removeToken(); + if (!n.isType && !this.shouldElideExportedIdentifier(n.leftName)) { + let o = n.leftName, + r = n.rightName, + s = this.importProcessor.getIdentifierReplacement(o); + t.push(`exports.${r} = ${s || o};`); + } + if (this.tokens.matches1(m.TokenType.braceR)) { + this.tokens.removeToken(); + break; + } + if (this.tokens.matches2(m.TokenType.comma, m.TokenType.braceR)) { + this.tokens.removeToken(), this.tokens.removeToken(); + break; + } else if (this.tokens.matches1(m.TokenType.comma)) + this.tokens.removeToken(); + else + throw new Error( + `Unexpected token: ${JSON.stringify( + this.tokens.currentToken() + )}` + ); + } + if (this.tokens.matchesContextual(Gn.ContextualKeyword._from)) { + this.tokens.removeToken(); + let n = this.tokens.stringValue(); + this.tokens.replaceTokenTrimmingLeftWhitespace( + this.importProcessor.claimImportCode(n) + ), + xs.removeMaybeImportAssertion.call(void 0, this.tokens); + } else this.tokens.appendCode(t.join(' ')); + this.tokens.matches1(m.TokenType.semi) && this.tokens.removeToken(); + } + processExportStar() { + for ( + this.tokens.removeInitialToken(); + !this.tokens.matches1(m.TokenType.string); + + ) + this.tokens.removeToken(); + let t = this.tokens.stringValue(); + this.tokens.replaceTokenTrimmingLeftWhitespace( + this.importProcessor.claimImportCode(t) + ), + xs.removeMaybeImportAssertion.call(void 0, this.tokens), + this.tokens.matches1(m.TokenType.semi) && this.tokens.removeToken(); + } + shouldElideExportedIdentifier(t) { + return ( + this.isTypeScriptTransformEnabled && + !this.declarationInfo.valueDeclarations.has(t) + ); + } + }; + _1.default = v1; + }); + var qp = H((g1) => { + 'use strict'; + Object.defineProperty(g1, '__esModule', {value: !0}); + function ir(e) { + return e && e.__esModule ? e : {default: e}; + } + var yn = Ge(), + W = ce(), + l0 = f1(), + c0 = ir(l0), + Kp = h1(), + u0 = ir(Kp), + p0 = Ko(), + Bp = ir(p0), + d0 = Gi(), + jp = y1(), + f0 = k1(), + h0 = ir(f0), + T0 = Nt(), + y0 = ir(T0), + x1 = class extends y0.default { + constructor(t, n, o, r, s, i) { + super(), + (this.tokens = t), + (this.nameManager = n), + (this.helperManager = o), + (this.reactHotLoaderTransformer = r), + (this.isTypeScriptTransformEnabled = s), + (this.nonTypeIdentifiers = s + ? d0.getNonTypeIdentifiers.call(void 0, t, i) + : new Set()), + (this.declarationInfo = s + ? u0.default.call(void 0, t) + : Kp.EMPTY_DECLARATION_INFO), + (this.injectCreateRequireForImportRequire = + !!i.injectCreateRequireForImportRequire); + } + process() { + if ( + this.tokens.matches3( + W.TokenType._import, + W.TokenType.name, + W.TokenType.eq + ) + ) + return this.processImportEquals(); + if ( + this.tokens.matches4( + W.TokenType._import, + W.TokenType.name, + W.TokenType.name, + W.TokenType.eq + ) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 1, + yn.ContextualKeyword._type + ) + ) { + this.tokens.removeInitialToken(); + for (let t = 0; t < 7; t++) this.tokens.removeToken(); + return !0; + } + if (this.tokens.matches2(W.TokenType._export, W.TokenType.eq)) + return this.tokens.replaceToken('module.exports'), !0; + if ( + this.tokens.matches5( + W.TokenType._export, + W.TokenType._import, + W.TokenType.name, + W.TokenType.name, + W.TokenType.eq + ) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 2, + yn.ContextualKeyword._type + ) + ) { + this.tokens.removeInitialToken(); + for (let t = 0; t < 8; t++) this.tokens.removeToken(); + return !0; + } + if (this.tokens.matches1(W.TokenType._import)) + return this.processImport(); + if (this.tokens.matches2(W.TokenType._export, W.TokenType._default)) + return this.processExportDefault(); + if (this.tokens.matches2(W.TokenType._export, W.TokenType.braceL)) + return this.processNamedExports(); + if ( + this.tokens.matches2(W.TokenType._export, W.TokenType.name) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 1, + yn.ContextualKeyword._type + ) + ) { + if ( + (this.tokens.removeInitialToken(), + this.tokens.removeToken(), + this.tokens.matches1(W.TokenType.braceL)) + ) { + for (; !this.tokens.matches1(W.TokenType.braceR); ) + this.tokens.removeToken(); + this.tokens.removeToken(); + } else + this.tokens.removeToken(), + this.tokens.matches1(W.TokenType._as) && + (this.tokens.removeToken(), this.tokens.removeToken()); + return ( + this.tokens.matchesContextual(yn.ContextualKeyword._from) && + this.tokens.matches1AtIndex( + this.tokens.currentIndex() + 1, + W.TokenType.string + ) && + (this.tokens.removeToken(), + this.tokens.removeToken(), + jp.removeMaybeImportAssertion.call(void 0, this.tokens)), + !0 + ); + } + return !1; + } + processImportEquals() { + let t = this.tokens.identifierNameAtIndex( + this.tokens.currentIndex() + 1 + ); + return ( + this.isTypeName(t) + ? c0.default.call(void 0, this.tokens) + : this.injectCreateRequireForImportRequire + ? (this.tokens.replaceToken('const'), + this.tokens.copyToken(), + this.tokens.copyToken(), + this.tokens.replaceToken( + this.helperManager.getHelperName('require') + )) + : this.tokens.replaceToken('const'), + !0 + ); + } + processImport() { + if (this.tokens.matches2(W.TokenType._import, W.TokenType.parenL)) + return !1; + let t = this.tokens.snapshot(); + if (this.removeImportTypeBindings()) { + for ( + this.tokens.restoreToSnapshot(t); + !this.tokens.matches1(W.TokenType.string); + + ) + this.tokens.removeToken(); + this.tokens.removeToken(), + jp.removeMaybeImportAssertion.call(void 0, this.tokens), + this.tokens.matches1(W.TokenType.semi) && + this.tokens.removeToken(); + } + return !0; + } + removeImportTypeBindings() { + if ( + (this.tokens.copyExpectedToken(W.TokenType._import), + this.tokens.matchesContextual(yn.ContextualKeyword._type) && + !this.tokens.matches1AtIndex( + this.tokens.currentIndex() + 1, + W.TokenType.comma + ) && + !this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 1, + yn.ContextualKeyword._from + )) + ) + return !0; + if (this.tokens.matches1(W.TokenType.string)) + return this.tokens.copyToken(), !1; + this.tokens.matchesContextual(yn.ContextualKeyword._module) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 2, + yn.ContextualKeyword._from + ) && + this.tokens.copyToken(); + let t = !1, + n = !1; + if ( + (this.tokens.matches1(W.TokenType.name) && + (this.isTypeName(this.tokens.identifierName()) + ? (this.tokens.removeToken(), + this.tokens.matches1(W.TokenType.comma) && + this.tokens.removeToken()) + : ((t = !0), + this.tokens.copyToken(), + this.tokens.matches1(W.TokenType.comma) && + ((n = !0), this.tokens.removeToken()))), + this.tokens.matches1(W.TokenType.star)) + ) + this.isTypeName(this.tokens.identifierNameAtRelativeIndex(2)) + ? (this.tokens.removeToken(), + this.tokens.removeToken(), + this.tokens.removeToken()) + : (n && this.tokens.appendCode(','), + (t = !0), + this.tokens.copyExpectedToken(W.TokenType.star), + this.tokens.copyExpectedToken(W.TokenType.name), + this.tokens.copyExpectedToken(W.TokenType.name)); + else if (this.tokens.matches1(W.TokenType.braceL)) { + for ( + n && this.tokens.appendCode(','), this.tokens.copyToken(); + !this.tokens.matches1(W.TokenType.braceR); + + ) { + let o = Bp.default.call(void 0, this.tokens); + if (o.isType || this.isTypeName(o.rightName)) { + for (; this.tokens.currentIndex() < o.endIndex; ) + this.tokens.removeToken(); + this.tokens.matches1(W.TokenType.comma) && + this.tokens.removeToken(); + } else { + for (t = !0; this.tokens.currentIndex() < o.endIndex; ) + this.tokens.copyToken(); + this.tokens.matches1(W.TokenType.comma) && + this.tokens.copyToken(); + } + } + this.tokens.copyExpectedToken(W.TokenType.braceR); + } + return !t; + } + isTypeName(t) { + return ( + this.isTypeScriptTransformEnabled && !this.nonTypeIdentifiers.has(t) + ); + } + processExportDefault() { + if ( + h0.default.call( + void 0, + this.isTypeScriptTransformEnabled, + this.tokens, + this.declarationInfo + ) + ) + return ( + this.tokens.removeInitialToken(), + this.tokens.removeToken(), + this.tokens.removeToken(), + !0 + ); + if ( + !( + this.tokens.matches4( + W.TokenType._export, + W.TokenType._default, + W.TokenType._function, + W.TokenType.name + ) || + (this.tokens.matches5( + W.TokenType._export, + W.TokenType._default, + W.TokenType.name, + W.TokenType._function, + W.TokenType.name + ) && + this.tokens.matchesContextualAtIndex( + this.tokens.currentIndex() + 2, + yn.ContextualKeyword._async + )) || + this.tokens.matches4( + W.TokenType._export, + W.TokenType._default, + W.TokenType._class, + W.TokenType.name + ) || + this.tokens.matches5( + W.TokenType._export, + W.TokenType._default, + W.TokenType._abstract, + W.TokenType._class, + W.TokenType.name + ) + ) && + this.reactHotLoaderTransformer + ) { + let n = this.nameManager.claimFreeName('_default'); + return ( + this.tokens.replaceToken(`let ${n}; export`), + this.tokens.copyToken(), + this.tokens.appendCode(` ${n} =`), + this.reactHotLoaderTransformer.setExtractedDefaultExportName(n), + !0 + ); + } + return !1; + } + processNamedExports() { + if (!this.isTypeScriptTransformEnabled) return !1; + for ( + this.tokens.copyExpectedToken(W.TokenType._export), + this.tokens.copyExpectedToken(W.TokenType.braceL); + !this.tokens.matches1(W.TokenType.braceR); + + ) { + let t = Bp.default.call(void 0, this.tokens); + if (t.isType || this.shouldElideExportedName(t.leftName)) { + for (; this.tokens.currentIndex() < t.endIndex; ) + this.tokens.removeToken(); + this.tokens.matches1(W.TokenType.comma) && + this.tokens.removeToken(); + } else { + for (; this.tokens.currentIndex() < t.endIndex; ) + this.tokens.copyToken(); + this.tokens.matches1(W.TokenType.comma) && + this.tokens.copyToken(); + } + } + return this.tokens.copyExpectedToken(W.TokenType.braceR), !0; + } + shouldElideExportedName(t) { + return ( + this.isTypeScriptTransformEnabled && + this.declarationInfo.typeDeclarations.has(t) && + !this.declarationInfo.valueDeclarations.has(t) + ); + } + }; + g1.default = x1; + }); + var Up = H((w1) => { + 'use strict'; + Object.defineProperty(w1, '__esModule', {value: !0}); + function m0(e) { + return e && e.__esModule ? e : {default: e}; + } + var Hp = Ge(), + bt = ce(), + k0 = Nt(), + v0 = m0(k0), + C1 = class extends v0.default { + constructor(t, n, o) { + super(), + (this.rootTransformer = t), + (this.tokens = n), + (this.isImportsTransformEnabled = o); + } + process() { + return this.rootTransformer.processPossibleArrowParamEnd() || + this.rootTransformer.processPossibleAsyncArrowWithTypeParams() || + this.rootTransformer.processPossibleTypeRange() + ? !0 + : this.tokens.matches1(bt.TokenType._enum) + ? (this.processEnum(), !0) + : this.tokens.matches2(bt.TokenType._export, bt.TokenType._enum) + ? (this.processNamedExportEnum(), !0) + : this.tokens.matches3( + bt.TokenType._export, + bt.TokenType._default, + bt.TokenType._enum + ) + ? (this.processDefaultExportEnum(), !0) + : !1; + } + processNamedExportEnum() { + if (this.isImportsTransformEnabled) { + this.tokens.removeInitialToken(); + let t = this.tokens.identifierNameAtRelativeIndex(1); + this.processEnum(), this.tokens.appendCode(` exports.${t} = ${t};`); + } else this.tokens.copyToken(), this.processEnum(); + } + processDefaultExportEnum() { + this.tokens.removeInitialToken(), this.tokens.removeToken(); + let t = this.tokens.identifierNameAtRelativeIndex(1); + this.processEnum(), + this.isImportsTransformEnabled + ? this.tokens.appendCode(` exports.default = ${t};`) + : this.tokens.appendCode(` export default ${t};`); + } + processEnum() { + this.tokens.replaceToken('const'), + this.tokens.copyExpectedToken(bt.TokenType.name); + let t = !1; + this.tokens.matchesContextual(Hp.ContextualKeyword._of) && + (this.tokens.removeToken(), + (t = this.tokens.matchesContextual(Hp.ContextualKeyword._symbol)), + this.tokens.removeToken()); + let n = this.tokens.matches3( + bt.TokenType.braceL, + bt.TokenType.name, + bt.TokenType.eq + ); + this.tokens.appendCode(' = require("flow-enums-runtime")'); + let o = !t && !n; + for ( + this.tokens.replaceTokenTrimmingLeftWhitespace( + o ? '.Mirrored([' : '({' + ); + !this.tokens.matches1(bt.TokenType.braceR); + + ) { + if (this.tokens.matches1(bt.TokenType.ellipsis)) { + this.tokens.removeToken(); + break; + } + this.processEnumElement(t, n), + this.tokens.matches1(bt.TokenType.comma) && + this.tokens.copyToken(); + } + this.tokens.replaceToken(o ? ']);' : '});'); + } + processEnumElement(t, n) { + if (t) { + let o = this.tokens.identifierName(); + this.tokens.copyToken(), this.tokens.appendCode(`: Symbol("${o}")`); + } else + n + ? (this.tokens.copyToken(), + this.tokens.replaceTokenTrimmingLeftWhitespace(':'), + this.tokens.copyToken()) + : this.tokens.replaceToken(`"${this.tokens.identifierName()}"`); + } + }; + w1.default = C1; + }); + var Wp = H((S1) => { + 'use strict'; + Object.defineProperty(S1, '__esModule', {value: !0}); + function _0(e) { + return e && e.__esModule ? e : {default: e}; + } + function x0(e) { + let t, + n = e[0], + o = 1; + for (; o < e.length; ) { + let r = e[o], + s = e[o + 1]; + if ( + ((o += 2), + (r === 'optionalAccess' || r === 'optionalCall') && n == null) + ) + return; + r === 'access' || r === 'optionalAccess' + ? ((t = n), (n = s(n))) + : (r === 'call' || r === 'optionalCall') && + ((n = s((...i) => n.call(t, ...i))), (t = void 0)); + } + return n; + } + var mn = ce(), + g0 = Nt(), + C0 = _0(g0), + gs = 'jest', + w0 = ['mock', 'unmock', 'enableAutomock', 'disableAutomock'], + I1 = class e extends C0.default { + __init() { + this.hoistedFunctionNames = []; + } + constructor(t, n, o, r) { + super(), + (this.rootTransformer = t), + (this.tokens = n), + (this.nameManager = o), + (this.importProcessor = r), + e.prototype.__init.call(this); + } + process() { + return this.tokens.currentToken().scopeDepth === 0 && + this.tokens.matches4( + mn.TokenType.name, + mn.TokenType.dot, + mn.TokenType.name, + mn.TokenType.parenL + ) && + this.tokens.identifierName() === gs + ? x0([ + this, + 'access', + (t) => t.importProcessor, + 'optionalAccess', + (t) => t.getGlobalNames, + 'call', + (t) => t(), + 'optionalAccess', + (t) => t.has, + 'call', + (t) => t(gs), + ]) + ? !1 + : this.extractHoistedCalls() + : !1; + } + getHoistedCode() { + return this.hoistedFunctionNames.length > 0 + ? this.hoistedFunctionNames.map((t) => `${t}();`).join('') + : ''; + } + extractHoistedCalls() { + this.tokens.removeToken(); + let t = !1; + for ( + ; + this.tokens.matches3( + mn.TokenType.dot, + mn.TokenType.name, + mn.TokenType.parenL + ); + + ) { + let n = this.tokens.identifierNameAtIndex( + this.tokens.currentIndex() + 1 + ); + if (w0.includes(n)) { + let r = this.nameManager.claimFreeName('__jestHoist'); + this.hoistedFunctionNames.push(r), + this.tokens.replaceToken(`function ${r}(){${gs}.`), + this.tokens.copyToken(), + this.tokens.copyToken(), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(mn.TokenType.parenR), + this.tokens.appendCode(';}'), + (t = !1); + } else + t ? this.tokens.copyToken() : this.tokens.replaceToken(`${gs}.`), + this.tokens.copyToken(), + this.tokens.copyToken(), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(mn.TokenType.parenR), + (t = !0); + } + return !0; + } + }; + S1.default = I1; + }); + var Vp = H((E1) => { + 'use strict'; + Object.defineProperty(E1, '__esModule', {value: !0}); + function I0(e) { + return e && e.__esModule ? e : {default: e}; + } + var S0 = ce(), + b0 = Nt(), + E0 = I0(b0), + b1 = class extends E0.default { + constructor(t) { + super(), (this.tokens = t); + } + process() { + if (this.tokens.matches1(S0.TokenType.num)) { + let t = this.tokens.currentTokenCode(); + if (t.includes('_')) + return this.tokens.replaceToken(t.replace(/_/g, '')), !0; + } + return !1; + } + }; + E1.default = b1; + }); + var Xp = H((P1) => { + 'use strict'; + Object.defineProperty(P1, '__esModule', {value: !0}); + function A0(e) { + return e && e.__esModule ? e : {default: e}; + } + var zp = ce(), + P0 = Nt(), + R0 = A0(P0), + A1 = class extends R0.default { + constructor(t, n) { + super(), (this.tokens = t), (this.nameManager = n); + } + process() { + return this.tokens.matches2(zp.TokenType._catch, zp.TokenType.braceL) + ? (this.tokens.copyToken(), + this.tokens.appendCode( + ` (${this.nameManager.claimFreeName('e')})` + ), + !0) + : !1; + } + }; + P1.default = A1; + }); + var Yp = H((N1) => { + 'use strict'; + Object.defineProperty(N1, '__esModule', {value: !0}); + function N0(e) { + return e && e.__esModule ? e : {default: e}; + } + var lt = ce(), + D0 = Nt(), + O0 = N0(D0), + R1 = class extends O0.default { + constructor(t, n) { + super(), (this.tokens = t), (this.nameManager = n); + } + process() { + if (this.tokens.matches1(lt.TokenType.nullishCoalescing)) { + let o = this.tokens.currentToken(); + return ( + this.tokens.tokens[o.nullishStartIndex].isAsyncOperation + ? this.tokens.replaceTokenTrimmingLeftWhitespace( + ', async () => (' + ) + : this.tokens.replaceTokenTrimmingLeftWhitespace(', () => ('), + !0 + ); + } + if ( + this.tokens.matches1(lt.TokenType._delete) && + this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart + ) + return this.tokens.removeInitialToken(), !0; + let n = this.tokens.currentToken().subscriptStartIndex; + if ( + n != null && + this.tokens.tokens[n].isOptionalChainStart && + this.tokens.tokenAtRelativeIndex(-1).type !== lt.TokenType._super + ) { + let o = this.nameManager.claimFreeName('_'), + r; + if ( + (n > 0 && + this.tokens.matches1AtIndex(n - 1, lt.TokenType._delete) && + this.isLastSubscriptInChain() + ? (r = `${o} => delete ${o}`) + : (r = `${o} => ${o}`), + this.tokens.tokens[n].isAsyncOperation && (r = `async ${r}`), + this.tokens.matches2( + lt.TokenType.questionDot, + lt.TokenType.parenL + ) || + this.tokens.matches2( + lt.TokenType.questionDot, + lt.TokenType.lessThan + )) + ) + this.justSkippedSuper() && this.tokens.appendCode('.bind(this)'), + this.tokens.replaceTokenTrimmingLeftWhitespace( + `, 'optionalCall', ${r}` + ); + else if ( + this.tokens.matches2( + lt.TokenType.questionDot, + lt.TokenType.bracketL + ) + ) + this.tokens.replaceTokenTrimmingLeftWhitespace( + `, 'optionalAccess', ${r}` + ); + else if (this.tokens.matches1(lt.TokenType.questionDot)) + this.tokens.replaceTokenTrimmingLeftWhitespace( + `, 'optionalAccess', ${r}.` + ); + else if (this.tokens.matches1(lt.TokenType.dot)) + this.tokens.replaceTokenTrimmingLeftWhitespace( + `, 'access', ${r}.` + ); + else if (this.tokens.matches1(lt.TokenType.bracketL)) + this.tokens.replaceTokenTrimmingLeftWhitespace( + `, 'access', ${r}[` + ); + else if (this.tokens.matches1(lt.TokenType.parenL)) + this.justSkippedSuper() && this.tokens.appendCode('.bind(this)'), + this.tokens.replaceTokenTrimmingLeftWhitespace( + `, 'call', ${r}(` + ); + else + throw new Error( + 'Unexpected subscript operator in optional chain.' + ); + return !0; + } + return !1; + } + isLastSubscriptInChain() { + let t = 0; + for (let n = this.tokens.currentIndex() + 1; ; n++) { + if (n >= this.tokens.tokens.length) + throw new Error( + 'Reached the end of the code while finding the end of the access chain.' + ); + if ( + (this.tokens.tokens[n].isOptionalChainStart + ? t++ + : this.tokens.tokens[n].isOptionalChainEnd && t--, + t < 0) + ) + return !0; + if (t === 0 && this.tokens.tokens[n].subscriptStartIndex != null) + return !1; + } + } + justSkippedSuper() { + let t = 0, + n = this.tokens.currentIndex() - 1; + for (;;) { + if (n < 0) + throw new Error( + 'Reached the start of the code while finding the start of the access chain.' + ); + if ( + (this.tokens.tokens[n].isOptionalChainStart + ? t-- + : this.tokens.tokens[n].isOptionalChainEnd && t++, + t < 0) + ) + return !1; + if (t === 0 && this.tokens.tokens[n].subscriptStartIndex != null) + return this.tokens.tokens[n - 1].type === lt.TokenType._super; + n--; + } + } + }; + N1.default = R1; + }); + var Jp = H((O1) => { + 'use strict'; + Object.defineProperty(O1, '__esModule', {value: !0}); + function M0(e) { + return e && e.__esModule ? e : {default: e}; + } + var Gp = Ve(), + Je = ce(), + L0 = Nt(), + F0 = M0(L0), + D1 = class extends F0.default { + constructor(t, n, o, r) { + super(), + (this.rootTransformer = t), + (this.tokens = n), + (this.importProcessor = o), + (this.options = r); + } + process() { + let t = this.tokens.currentIndex(); + if (this.tokens.identifierName() === 'createReactClass') { + let n = + this.importProcessor && + this.importProcessor.getIdentifierReplacement('createReactClass'); + return ( + n + ? this.tokens.replaceToken(`(0, ${n})`) + : this.tokens.copyToken(), + this.tryProcessCreateClassCall(t), + !0 + ); + } + if ( + this.tokens.matches3( + Je.TokenType.name, + Je.TokenType.dot, + Je.TokenType.name + ) && + this.tokens.identifierName() === 'React' && + this.tokens.identifierNameAtIndex( + this.tokens.currentIndex() + 2 + ) === 'createClass' + ) { + let n = + (this.importProcessor && + this.importProcessor.getIdentifierReplacement('React')) || + 'React'; + return ( + n + ? (this.tokens.replaceToken(n), + this.tokens.copyToken(), + this.tokens.copyToken()) + : (this.tokens.copyToken(), + this.tokens.copyToken(), + this.tokens.copyToken()), + this.tryProcessCreateClassCall(t), + !0 + ); + } + return !1; + } + tryProcessCreateClassCall(t) { + let n = this.findDisplayName(t); + n && + this.classNeedsDisplayName() && + (this.tokens.copyExpectedToken(Je.TokenType.parenL), + this.tokens.copyExpectedToken(Je.TokenType.braceL), + this.tokens.appendCode(`displayName: '${n}',`), + this.rootTransformer.processBalancedCode(), + this.tokens.copyExpectedToken(Je.TokenType.braceR), + this.tokens.copyExpectedToken(Je.TokenType.parenR)); + } + findDisplayName(t) { + return t < 2 + ? null + : this.tokens.matches2AtIndex( + t - 2, + Je.TokenType.name, + Je.TokenType.eq + ) + ? this.tokens.identifierNameAtIndex(t - 2) + : t >= 2 && + this.tokens.tokens[t - 2].identifierRole === + Gp.IdentifierRole.ObjectKey + ? this.tokens.identifierNameAtIndex(t - 2) + : this.tokens.matches2AtIndex( + t - 2, + Je.TokenType._export, + Je.TokenType._default + ) + ? this.getDisplayNameFromFilename() + : null; + } + getDisplayNameFromFilename() { + let n = (this.options.filePath || 'unknown').split('/'), + o = n[n.length - 1], + r = o.lastIndexOf('.'), + s = r === -1 ? o : o.slice(0, r); + return s === 'index' && n[n.length - 2] ? n[n.length - 2] : s; + } + classNeedsDisplayName() { + let t = this.tokens.currentIndex(); + if (!this.tokens.matches2(Je.TokenType.parenL, Je.TokenType.braceL)) + return !1; + let n = t + 1, + o = this.tokens.tokens[n].contextId; + if (o == null) + throw new Error( + 'Expected non-null context ID on object open-brace.' + ); + for (; t < this.tokens.tokens.length; t++) { + let r = this.tokens.tokens[t]; + if (r.type === Je.TokenType.braceR && r.contextId === o) { + t++; + break; + } + if ( + this.tokens.identifierNameAtIndex(t) === 'displayName' && + this.tokens.tokens[t].identifierRole === + Gp.IdentifierRole.ObjectKey && + r.contextId === o + ) + return !1; + } + if (t === this.tokens.tokens.length) + throw new Error( + 'Unexpected end of input when processing React class.' + ); + return ( + this.tokens.matches1AtIndex(t, Je.TokenType.parenR) || + this.tokens.matches2AtIndex( + t, + Je.TokenType.comma, + Je.TokenType.parenR + ) + ); + } + }; + O1.default = D1; + }); + var Zp = H((L1) => { + 'use strict'; + Object.defineProperty(L1, '__esModule', {value: !0}); + function $0(e) { + return e && e.__esModule ? e : {default: e}; + } + var Qp = Ve(), + B0 = Nt(), + j0 = $0(B0), + M1 = class e extends j0.default { + __init() { + this.extractedDefaultExportName = null; + } + constructor(t, n) { + super(), + (this.tokens = t), + (this.filePath = n), + e.prototype.__init.call(this); + } + setExtractedDefaultExportName(t) { + this.extractedDefaultExportName = t; + } + getPrefixCode() { + return ` + (function () { + var enterModule = require('react-hot-loader').enterModule; + enterModule && enterModule(module); + })();` + .replace(/\s+/g, ' ') + .trim(); + } + getSuffixCode() { + let t = new Set(); + for (let o of this.tokens.tokens) + !o.isType && + Qp.isTopLevelDeclaration.call(void 0, o) && + o.identifierRole !== Qp.IdentifierRole.ImportDeclaration && + t.add(this.tokens.identifierNameForToken(o)); + let n = Array.from(t).map((o) => ({ + variableName: o, + uniqueLocalName: o, + })); + return ( + this.extractedDefaultExportName && + n.push({ + variableName: this.extractedDefaultExportName, + uniqueLocalName: 'default', + }), + ` +;(function () { + var reactHotLoader = require('react-hot-loader').default; + var leaveModule = require('react-hot-loader').leaveModule; + if (!reactHotLoader) { + return; + } +${n.map( + ({variableName: o, uniqueLocalName: r}) => + ` reactHotLoader.register(${o}, "${r}", ${JSON.stringify( + this.filePath || '' + )});` +).join(` +`)} + leaveModule(module); +})();` + ); + } + process() { + return !1; + } + }; + L1.default = M1; + }); + var td = H((F1) => { + 'use strict'; + Object.defineProperty(F1, '__esModule', {value: !0}); + var ed = fo(), + K0 = new Set([ + 'break', + 'case', + 'catch', + 'class', + 'const', + 'continue', + 'debugger', + 'default', + 'delete', + 'do', + 'else', + 'export', + 'extends', + 'finally', + 'for', + 'function', + 'if', + 'import', + 'in', + 'instanceof', + 'new', + 'return', + 'super', + 'switch', + 'this', + 'throw', + 'try', + 'typeof', + 'var', + 'void', + 'while', + 'with', + 'yield', + 'enum', + 'implements', + 'interface', + 'let', + 'package', + 'private', + 'protected', + 'public', + 'static', + 'await', + 'false', + 'null', + 'true', + ]); + function q0(e) { + if (e.length === 0 || !ed.IS_IDENTIFIER_START[e.charCodeAt(0)]) return !1; + for (let t = 1; t < e.length; t++) + if (!ed.IS_IDENTIFIER_CHAR[e.charCodeAt(t)]) return !1; + return !K0.has(e); + } + F1.default = q0; + }); + var rd = H((B1) => { + 'use strict'; + Object.defineProperty(B1, '__esModule', {value: !0}); + function od(e) { + return e && e.__esModule ? e : {default: e}; + } + var Se = ce(), + H0 = td(), + nd = od(H0), + U0 = Nt(), + W0 = od(U0), + $1 = class extends W0.default { + constructor(t, n, o) { + super(), + (this.rootTransformer = t), + (this.tokens = n), + (this.isImportsTransformEnabled = o); + } + process() { + return this.rootTransformer.processPossibleArrowParamEnd() || + this.rootTransformer.processPossibleAsyncArrowWithTypeParams() || + this.rootTransformer.processPossibleTypeRange() + ? !0 + : this.tokens.matches1(Se.TokenType._public) || + this.tokens.matches1(Se.TokenType._protected) || + this.tokens.matches1(Se.TokenType._private) || + this.tokens.matches1(Se.TokenType._abstract) || + this.tokens.matches1(Se.TokenType._readonly) || + this.tokens.matches1(Se.TokenType._override) || + this.tokens.matches1(Se.TokenType.nonNullAssertion) + ? (this.tokens.removeInitialToken(), !0) + : this.tokens.matches1(Se.TokenType._enum) || + this.tokens.matches2(Se.TokenType._const, Se.TokenType._enum) + ? (this.processEnum(), !0) + : this.tokens.matches2(Se.TokenType._export, Se.TokenType._enum) || + this.tokens.matches3( + Se.TokenType._export, + Se.TokenType._const, + Se.TokenType._enum + ) + ? (this.processEnum(!0), !0) + : !1; + } + processEnum(t = !1) { + for ( + this.tokens.removeInitialToken(); + this.tokens.matches1(Se.TokenType._const) || + this.tokens.matches1(Se.TokenType._enum); + + ) + this.tokens.removeToken(); + let n = this.tokens.identifierName(); + this.tokens.removeToken(), + t && + !this.isImportsTransformEnabled && + this.tokens.appendCode('export '), + this.tokens.appendCode(`var ${n}; (function (${n})`), + this.tokens.copyExpectedToken(Se.TokenType.braceL), + this.processEnumBody(n), + this.tokens.copyExpectedToken(Se.TokenType.braceR), + t && this.isImportsTransformEnabled + ? this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`) + : this.tokens.appendCode(`)(${n} || (${n} = {}));`); + } + processEnumBody(t) { + let n = null; + for (; !this.tokens.matches1(Se.TokenType.braceR); ) { + let {nameStringCode: o, variableName: r} = this.extractEnumKeyInfo( + this.tokens.currentToken() + ); + this.tokens.removeInitialToken(), + this.tokens.matches3( + Se.TokenType.eq, + Se.TokenType.string, + Se.TokenType.comma + ) || + this.tokens.matches3( + Se.TokenType.eq, + Se.TokenType.string, + Se.TokenType.braceR + ) + ? this.processStringLiteralEnumMember(t, o, r) + : this.tokens.matches1(Se.TokenType.eq) + ? this.processExplicitValueEnumMember(t, o, r) + : this.processImplicitValueEnumMember(t, o, r, n), + this.tokens.matches1(Se.TokenType.comma) && + this.tokens.removeToken(), + r != null ? (n = r) : (n = `${t}[${o}]`); + } + } + extractEnumKeyInfo(t) { + if (t.type === Se.TokenType.name) { + let n = this.tokens.identifierNameForToken(t); + return { + nameStringCode: `"${n}"`, + variableName: nd.default.call(void 0, n) ? n : null, + }; + } else if (t.type === Se.TokenType.string) { + let n = this.tokens.stringValueForToken(t); + return { + nameStringCode: this.tokens.code.slice(t.start, t.end), + variableName: nd.default.call(void 0, n) ? n : null, + }; + } else + throw new Error( + 'Expected name or string at beginning of enum element.' + ); + } + processStringLiteralEnumMember(t, n, o) { + o != null + ? (this.tokens.appendCode(`const ${o}`), + this.tokens.copyToken(), + this.tokens.copyToken(), + this.tokens.appendCode(`; ${t}[${n}] = ${o};`)) + : (this.tokens.appendCode(`${t}[${n}]`), + this.tokens.copyToken(), + this.tokens.copyToken(), + this.tokens.appendCode(';')); + } + processExplicitValueEnumMember(t, n, o) { + let r = this.tokens.currentToken().rhsEndIndex; + if (r == null) + throw new Error('Expected rhsEndIndex on enum assign.'); + if (o != null) { + for ( + this.tokens.appendCode(`const ${o}`), this.tokens.copyToken(); + this.tokens.currentIndex() < r; + + ) + this.rootTransformer.processToken(); + this.tokens.appendCode(`; ${t}[${t}[${n}] = ${o}] = ${n};`); + } else { + for ( + this.tokens.appendCode(`${t}[${t}[${n}]`), + this.tokens.copyToken(); + this.tokens.currentIndex() < r; + + ) + this.rootTransformer.processToken(); + this.tokens.appendCode(`] = ${n};`); + } + } + processImplicitValueEnumMember(t, n, o, r) { + let s = r != null ? `${r} + 1` : '0'; + o != null && (this.tokens.appendCode(`const ${o} = ${s}; `), (s = o)), + this.tokens.appendCode(`${t}[${t}[${n}] = ${s}] = ${n};`); + } + }; + B1.default = $1; + }); + var sd = H((K1) => { + 'use strict'; + Object.defineProperty(K1, '__esModule', {value: !0}); + function Lt(e) { + return e && e.__esModule ? e : {default: e}; + } + var V0 = Ge(), + je = ce(), + z0 = Dp(), + X0 = Lt(z0), + Y0 = $p(), + G0 = Lt(Y0), + J0 = qp(), + Q0 = Lt(J0), + Z0 = Up(), + e_ = Lt(Z0), + t_ = Wp(), + n_ = Lt(t_), + o_ = Xi(), + r_ = Lt(o_), + s_ = Vp(), + i_ = Lt(s_), + a_ = Xp(), + l_ = Lt(a_), + c_ = Yp(), + u_ = Lt(c_), + p_ = Jp(), + d_ = Lt(p_), + f_ = Zp(), + h_ = Lt(f_), + T_ = rd(), + y_ = Lt(T_), + j1 = class e { + __init() { + this.transformers = []; + } + __init2() { + this.generatedVariables = []; + } + constructor(t, n, o, r) { + e.prototype.__init.call(this), + e.prototype.__init2.call(this), + (this.nameManager = t.nameManager), + (this.helperManager = t.helperManager); + let {tokenProcessor: s, importProcessor: i} = t; + (this.tokens = s), + (this.isImportsTransformEnabled = n.includes('imports')), + (this.isReactHotLoaderTransformEnabled = + n.includes('react-hot-loader')), + (this.disableESTransforms = !!r.disableESTransforms), + r.disableESTransforms || + (this.transformers.push(new u_.default(s, this.nameManager)), + this.transformers.push(new i_.default(s)), + this.transformers.push(new l_.default(s, this.nameManager))), + n.includes('jsx') && + (r.jsxRuntime !== 'preserve' && + this.transformers.push( + new r_.default(this, s, i, this.nameManager, r) + ), + this.transformers.push(new d_.default(this, s, i, r))); + let a = null; + if (n.includes('react-hot-loader')) { + if (!r.filePath) + throw new Error( + 'filePath is required when using the react-hot-loader transform.' + ); + (a = new h_.default(s, r.filePath)), this.transformers.push(a); + } + if (n.includes('imports')) { + if (i === null) + throw new Error( + 'Expected non-null importProcessor with imports transform enabled.' + ); + this.transformers.push( + new G0.default( + this, + s, + i, + this.nameManager, + this.helperManager, + a, + o, + !!r.enableLegacyTypeScriptModuleInterop, + n.includes('typescript'), + !!r.preserveDynamicImport + ) + ); + } else + this.transformers.push( + new Q0.default( + s, + this.nameManager, + this.helperManager, + a, + n.includes('typescript'), + r + ) + ); + n.includes('flow') && + this.transformers.push( + new e_.default(this, s, n.includes('imports')) + ), + n.includes('typescript') && + this.transformers.push( + new y_.default(this, s, n.includes('imports')) + ), + n.includes('jest') && + this.transformers.push( + new n_.default(this, s, this.nameManager, i) + ); + } + transform() { + this.tokens.reset(), this.processBalancedCode(); + let n = this.isImportsTransformEnabled ? '"use strict";' : ''; + for (let i of this.transformers) n += i.getPrefixCode(); + (n += this.helperManager.emitHelpers()), + (n += this.generatedVariables.map((i) => ` var ${i};`).join('')); + for (let i of this.transformers) n += i.getHoistedCode(); + let o = ''; + for (let i of this.transformers) o += i.getSuffixCode(); + let r = this.tokens.finish(), + {code: s} = r; + if (s.startsWith('#!')) { + let i = s.indexOf(` +`); + return ( + i === -1 && + ((i = s.length), + (s += ` +`)), + { + code: s.slice(0, i + 1) + n + s.slice(i + 1) + o, + mappings: this.shiftMappings(r.mappings, n.length), + } + ); + } else + return { + code: n + s + o, + mappings: this.shiftMappings(r.mappings, n.length), + }; + } + processBalancedCode() { + let t = 0, + n = 0; + for (; !this.tokens.isAtEnd(); ) { + if ( + this.tokens.matches1(je.TokenType.braceL) || + this.tokens.matches1(je.TokenType.dollarBraceL) + ) + t++; + else if (this.tokens.matches1(je.TokenType.braceR)) { + if (t === 0) return; + t--; + } + if (this.tokens.matches1(je.TokenType.parenL)) n++; + else if (this.tokens.matches1(je.TokenType.parenR)) { + if (n === 0) return; + n--; + } + this.processToken(); + } + } + processToken() { + if (this.tokens.matches1(je.TokenType._class)) { + this.processClass(); + return; + } + for (let t of this.transformers) if (t.process()) return; + this.tokens.copyToken(); + } + processNamedClass() { + if (!this.tokens.matches2(je.TokenType._class, je.TokenType.name)) + throw new Error('Expected identifier for exported class name.'); + let t = this.tokens.identifierNameAtIndex( + this.tokens.currentIndex() + 1 + ); + return this.processClass(), t; + } + processClass() { + let t = X0.default.call( + void 0, + this, + this.tokens, + this.nameManager, + this.disableESTransforms + ), + n = + (t.headerInfo.isExpression || !t.headerInfo.className) && + t.staticInitializerNames.length + + t.instanceInitializerNames.length > + 0, + o = t.headerInfo.className; + n && + ((o = this.nameManager.claimFreeName('_class')), + this.generatedVariables.push(o), + this.tokens.appendCode(` (${o} =`)); + let s = this.tokens.currentToken().contextId; + if (s == null) + throw new Error('Expected class to have a context ID.'); + for ( + this.tokens.copyExpectedToken(je.TokenType._class); + !this.tokens.matchesContextIdAndLabel(je.TokenType.braceL, s); + + ) + this.processToken(); + this.processClassBody(t, o); + let i = t.staticInitializerNames.map((a) => `${o}.${a}()`); + n + ? this.tokens.appendCode( + `, ${i.map((a) => `${a}, `).join('')}${o})` + ) + : t.staticInitializerNames.length > 0 && + this.tokens.appendCode(` ${i.map((a) => `${a};`).join(' ')}`); + } + processClassBody(t, n) { + let { + headerInfo: o, + constructorInsertPos: r, + constructorInitializerStatements: s, + fields: i, + instanceInitializerNames: a, + rangesToRemove: u, + } = t, + h = 0, + v = 0, + _ = this.tokens.currentToken().contextId; + if (_ == null) + throw new Error('Expected non-null context ID on class.'); + this.tokens.copyExpectedToken(je.TokenType.braceL), + this.isReactHotLoaderTransformEnabled && + this.tokens.appendCode( + '__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}' + ); + let x = s.length + a.length > 0; + if (r === null && x) { + let L = this.makeConstructorInitCode(s, a, n); + if (o.hasSuperclass) { + let G = this.nameManager.claimFreeName('args'); + this.tokens.appendCode( + `constructor(...${G}) { super(...${G}); ${L}; }` + ); + } else this.tokens.appendCode(`constructor() { ${L}; }`); + } + for ( + ; + !this.tokens.matchesContextIdAndLabel(je.TokenType.braceR, _); + + ) + if (h < i.length && this.tokens.currentIndex() === i[h].start) { + let L = !1; + for ( + this.tokens.matches1(je.TokenType.bracketL) + ? this.tokens.copyTokenWithPrefix( + `${i[h].initializerName}() {this` + ) + : this.tokens.matches1(je.TokenType.string) || + this.tokens.matches1(je.TokenType.num) + ? (this.tokens.copyTokenWithPrefix( + `${i[h].initializerName}() {this[` + ), + (L = !0)) + : this.tokens.copyTokenWithPrefix( + `${i[h].initializerName}() {this.` + ); + this.tokens.currentIndex() < i[h].end; + + ) + L && + this.tokens.currentIndex() === i[h].equalsIndex && + this.tokens.appendCode(']'), + this.processToken(); + this.tokens.appendCode('}'), h++; + } else if ( + v < u.length && + this.tokens.currentIndex() >= u[v].start + ) { + for ( + this.tokens.currentIndex() < u[v].end && + this.tokens.removeInitialToken(); + this.tokens.currentIndex() < u[v].end; + + ) + this.tokens.removeToken(); + v++; + } else + this.tokens.currentIndex() === r + ? (this.tokens.copyToken(), + x && + this.tokens.appendCode( + `;${this.makeConstructorInitCode(s, a, n)};` + ), + this.processToken()) + : this.processToken(); + this.tokens.copyExpectedToken(je.TokenType.braceR); + } + makeConstructorInitCode(t, n, o) { + return [...t, ...n.map((r) => `${o}.prototype.${r}.call(this)`)].join( + ';' + ); + } + processPossibleArrowParamEnd() { + if ( + this.tokens.matches2(je.TokenType.parenR, je.TokenType.colon) && + this.tokens.tokenAtRelativeIndex(1).isType + ) { + let t = this.tokens.currentIndex() + 1; + for (; this.tokens.tokens[t].isType; ) t++; + if (this.tokens.matches1AtIndex(t, je.TokenType.arrow)) { + for ( + this.tokens.removeInitialToken(); + this.tokens.currentIndex() < t; + + ) + this.tokens.removeToken(); + return this.tokens.replaceTokenTrimmingLeftWhitespace(') =>'), !0; + } + } + return !1; + } + processPossibleAsyncArrowWithTypeParams() { + if ( + !this.tokens.matchesContextual(V0.ContextualKeyword._async) && + !this.tokens.matches1(je.TokenType._async) + ) + return !1; + let t = this.tokens.tokenAtRelativeIndex(1); + if (t.type !== je.TokenType.lessThan || !t.isType) return !1; + let n = this.tokens.currentIndex() + 1; + for (; this.tokens.tokens[n].isType; ) n++; + if (this.tokens.matches1AtIndex(n, je.TokenType.parenL)) { + for ( + this.tokens.replaceToken('async ('), + this.tokens.removeInitialToken(); + this.tokens.currentIndex() < n; + + ) + this.tokens.removeToken(); + return ( + this.tokens.removeToken(), + this.processBalancedCode(), + this.processToken(), + !0 + ); + } + return !1; + } + processPossibleTypeRange() { + if (this.tokens.currentToken().isType) { + for ( + this.tokens.removeInitialToken(); + this.tokens.currentToken().isType; + + ) + this.tokens.removeToken(); + return !0; + } + return !1; + } + shiftMappings(t, n) { + for (let o = 0; o < t.length; o++) { + let r = t[o]; + r !== void 0 && (t[o] = r + n); + } + return t; + } + }; + K1.default = j1; + }); + var ld = H((ar) => { + 'use strict'; + ar.__esModule = !0; + ar.LinesAndColumns = void 0; + var Cs = ` +`, + id = '\r', + ad = (function () { + function e(t) { + this.string = t; + for (var n = [0], o = 0; o < t.length; ) + switch (t[o]) { + case Cs: + (o += Cs.length), n.push(o); + break; + case id: + (o += id.length), t[o] === Cs && (o += Cs.length), n.push(o); + break; + default: + o++; + break; + } + this.offsets = n; + } + return ( + (e.prototype.locationForIndex = function (t) { + if (t < 0 || t > this.string.length) return null; + for (var n = 0, o = this.offsets; o[n + 1] <= t; ) n++; + var r = t - o[n]; + return {line: n, column: r}; + }), + (e.prototype.indexForLocation = function (t) { + var n = t.line, + o = t.column; + return n < 0 || + n >= this.offsets.length || + o < 0 || + o > this.lengthOfLine(n) + ? null + : this.offsets[n] + o; + }), + (e.prototype.lengthOfLine = function (t) { + var n = this.offsets[t], + o = + t === this.offsets.length - 1 + ? this.string.length + : this.offsets[t + 1]; + return o - n; + }), + e + ); + })(); + ar.LinesAndColumns = ad; + ar.default = ad; + }); + var cd = H((q1) => { + 'use strict'; + Object.defineProperty(q1, '__esModule', {value: !0}); + function m_(e) { + return e && e.__esModule ? e : {default: e}; + } + var k_ = ld(), + v_ = m_(k_), + __ = ce(); + function x_(e, t) { + if (t.length === 0) return ''; + let n = Object.keys(t[0]).filter( + (x) => + x !== 'type' && + x !== 'value' && + x !== 'start' && + x !== 'end' && + x !== 'loc' + ), + o = Object.keys(t[0].type).filter( + (x) => x !== 'label' && x !== 'keyword' + ), + r = ['Location', 'Label', 'Raw', ...n, ...o], + s = new v_.default(e), + i = [r, ...t.map(u)], + a = r.map(() => 0); + for (let x of i) + for (let L = 0; L < x.length; L++) a[L] = Math.max(a[L], x[L].length); + return i.map((x) => x.map((L, G) => L.padEnd(a[G])).join(' ')).join(` +`); + function u(x) { + let L = e.slice(x.start, x.end); + return [ + v(x.start, x.end), + __.formatTokenType.call(void 0, x.type), + g_(String(L), 14), + ...n.map((G) => h(x[G], G)), + ...o.map((G) => h(x.type[G], G)), + ]; + } + function h(x, L) { + return x === !0 ? L : x === !1 || x === null ? '' : String(x); + } + function v(x, L) { + return `${_(x)}-${_(L)}`; + } + function _(x) { + let L = s.locationForIndex(x); + return L ? `${L.line + 1}:${L.column + 1}` : 'Unknown'; + } + } + q1.default = x_; + function g_(e, t) { + return e.length > t ? `${e.slice(0, t - 3)}...` : e; + } + }); + var ud = H((H1) => { + 'use strict'; + Object.defineProperty(H1, '__esModule', {value: !0}); + function C_(e) { + return e && e.__esModule ? e : {default: e}; + } + var yt = ce(), + w_ = Ko(), + I_ = C_(w_); + function S_(e) { + let t = new Set(); + for (let n = 0; n < e.tokens.length; n++) + e.matches1AtIndex(n, yt.TokenType._import) && + !e.matches3AtIndex( + n, + yt.TokenType._import, + yt.TokenType.name, + yt.TokenType.eq + ) && + b_(e, n, t); + return t; + } + H1.default = S_; + function b_(e, t, n) { + t++, + !e.matches1AtIndex(t, yt.TokenType.parenL) && + (e.matches1AtIndex(t, yt.TokenType.name) && + (n.add(e.identifierNameAtIndex(t)), + t++, + e.matches1AtIndex(t, yt.TokenType.comma) && t++), + e.matches1AtIndex(t, yt.TokenType.star) && + ((t += 2), n.add(e.identifierNameAtIndex(t)), t++), + e.matches1AtIndex(t, yt.TokenType.braceL) && (t++, E_(e, t, n))); + } + function E_(e, t, n) { + for (;;) { + if (e.matches1AtIndex(t, yt.TokenType.braceR)) return; + let o = I_.default.call(void 0, e, t); + if ( + ((t = o.endIndex), + o.isType || n.add(o.rightName), + e.matches2AtIndex(t, yt.TokenType.comma, yt.TokenType.braceR)) + ) + return; + if (e.matches1AtIndex(t, yt.TokenType.braceR)) return; + if (e.matches1AtIndex(t, yt.TokenType.comma)) t++; + else + throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`); + } + } + }); + var fd = H((lr) => { + 'use strict'; + Object.defineProperty(lr, '__esModule', {value: !0}); + function Ln(e) { + return e && e.__esModule ? e : {default: e}; + } + var A_ = Mc(), + P_ = Ln(A_), + R_ = Wc(), + N_ = Ln(R_), + D_ = Vc(), + O_ = Yc(), + pd = Ln(O_), + M_ = Jc(), + L_ = Ln(M_), + F_ = Tu(), + $_ = o1(), + B_ = Pp(), + j_ = Ln(B_), + K_ = sd(), + q_ = Ln(K_), + H_ = cd(), + U_ = Ln(H_), + W_ = ud(), + V_ = Ln(W_); + function z_() { + return '3.32.0'; + } + lr.getVersion = z_; + function X_(e, t) { + F_.validateOptions.call(void 0, t); + try { + let n = dd(e, t), + r = new q_.default( + n, + t.transforms, + !!t.enableLegacyBabel5ModuleInterop, + t + ).transform(), + s = {code: r.code}; + if (t.sourceMapOptions) { + if (!t.filePath) + throw new Error( + 'filePath must be specified when generating a source map.' + ); + s = { + ...s, + sourceMap: N_.default.call( + void 0, + r, + t.filePath, + t.sourceMapOptions, + e, + n.tokenProcessor.tokens + ), + }; + } + return s; + } catch (n) { + throw ( + (t.filePath && + (n.message = `Error transforming ${t.filePath}: ${n.message}`), + n) + ); + } + } + lr.transform = X_; + function Y_(e, t) { + let n = dd(e, t).tokenProcessor.tokens; + return U_.default.call(void 0, e, n); + } + lr.getFormattedTokens = Y_; + function dd(e, t) { + let n = t.transforms.includes('jsx'), + o = t.transforms.includes('typescript'), + r = t.transforms.includes('flow'), + s = t.disableESTransforms === !0, + i = $_.parse.call(void 0, e, n, o, r), + a = i.tokens, + u = i.scopes, + h = new L_.default(e, a), + v = new D_.HelperManager(h), + _ = new j_.default(e, a, r, s, v), + x = !!t.enableLegacyTypeScriptModuleInterop, + L = null; + return ( + t.transforms.includes('imports') + ? ((L = new P_.default( + h, + _, + x, + t, + t.transforms.includes('typescript'), + v + )), + L.preprocessTokens(), + pd.default.call(void 0, _, u, L.getGlobalNames()), + t.transforms.includes('typescript') && L.pruneTypeOnlyImports()) + : t.transforms.includes('typescript') && + pd.default.call(void 0, _, u, V_.default.call(void 0, _)), + { + tokenProcessor: _, + scopes: u, + nameManager: h, + importProcessor: L, + helperManager: v, + } + ); + } + }); + var ws = Eo(), + G_ = tl(), + cr = rc(), + hd = fd(), + Jn = null; + function yd() { + return new Proxy( + {}, + { + get: function (e, t) { + if (t in e) return e[t]; + var n = String(t).split('#'), + o = n[0], + r = n[1] || 'default', + s = {id: o, chunks: [o], name: r, async: !0}; + return (e[t] = s), s; + }, + } + ); + } + var md = {}; + function J_(e, t, n) { + var o = cr.registerServerReference(e, t, n), + r = t + '#' + n; + return (md[r] = e), o; + } + function Q_(e, t) { + for ( + var n = e.split(` +`), + o = 0; + o < Math.min(n.length, 10); + o++ + ) { + var r = n[o].trim(); + if (r !== '' && !r.startsWith('//')) { + if (r.startsWith('/*')) { + for (; o < n.length && !n[o].includes('*/'); ) o++; + continue; + } + return ( + r === "'" + t + "';" || + r === '"' + t + '";' || + r === "'" + t + "'" || + r === '"' + t + '"' + ); + } + } + return !1; + } + function Z_(e, t) { + if (!t.startsWith('.')) return t; + var n = e.split('/'); + n.pop(); + for (var o = t.split('/'), r = 0; r < o.length; r++) + if (o[r] !== '.') { + if (o[r] === '..') { + n.pop(); + continue; + } + n.push(o[r]); + } + return n.join('/'); + } + function ex(e, t, n) { + var o = {react: ws, 'react/jsx-runtime': G_}; + Object.keys(t).forEach(function (_) { + o[_] = cr.createClientModuleProxy(_); + }); + var r = {}, + s = !1; + if ( + (Object.keys(e).forEach(function (_) { + try { + r[_] = hd.transform(e[_], { + transforms: ['jsx', 'imports'], + jsxRuntime: 'automatic', + production: !0, + }).code; + } catch { + s = !0; + } + }), + s) + ) + return null; + function i(_, x) { + if (o[x]) return x; + if (x.startsWith('.')) { + var L = Z_(_, x); + if (o[L] || r[L]) return L; + for (var G = ['.js', '.jsx', '.ts', '.tsx'], F = 0; F < G.length; F++) { + var K = L + G[F]; + if (o[K] || r[K]) return K; + } + } + return x; + } + var a = {}; + function u(_) { + if (o[_]) return o[_]; + if (!r[_]) throw new Error('Module "' + _ + '" not found'); + if (a[_]) return a[_].exports; + var x = {exports: {}}; + a[_] = x; + var L = function (R) { + if (R.endsWith('.css')) return {}; + var z = i(_, R); + return o[z] ? o[z] : u(z); + }; + if ( + (new Function('module', 'exports', 'require', 'React', r[_])( + x, + x.exports, + L, + ws + ), + (o[_] = x.exports), + Q_(e[_], 'use server')) + ) + for (var G = Object.keys(x.exports), F = 0; F < G.length; F++) { + var K = G[F]; + typeof x.exports[K] == 'function' && J_(x.exports[K], _, K); + } + return delete a[_], x.exports; + } + var h = {exports: {}}; + Object.keys(r).forEach(function (_) { + u(_), + (_ === '/src/App.js' || _ === './App.js' || _ === './src/App.js') && + (h.exports = o[_]); + }), + (Jn = {module: h.exports, manifest: t}); + var v = {}; + return ( + n && + Object.keys(n).forEach(function (_) { + try { + v[_] = hd.transform(n[_], { + transforms: ['jsx', 'imports'], + jsxRuntime: 'automatic', + production: !0, + }).code; + } catch (x) { + self.postMessage({ + type: 'rsc-error', + requestId: -1, + error: 'Sucrase compile error in ' + _ + ': ' + String(x), + }); + } + }), + {type: 'deployed', compiledClients: v} + ); + } + function tx() { + if (!Jn) throw new Error('No code deployed'); + var e = Jn.module.default || Jn.module, + t = ws.createElement(e); + return cr.renderToReadableStream(t, yd(), {onError: console.error}); + } + function nx(e, t) { + if (!Jn) throw new Error('No code deployed'); + var n = md[e]; + if (!n) throw new Error('Action "' + e + '" not found'); + var o = t; + if (typeof t != 'string' && t && t.__formData) { + o = new FormData(); + for (var r = 0; r < t.__formData.length; r++) + o.append(t.__formData[r][0], t.__formData[r][1]); + } + return Promise.resolve(cr.decodeReply(o)).then(function (s) { + var i = Promise.resolve(n.apply(null, s)); + return i.then(function () { + var a = Jn.module.default || Jn.module; + return cr.renderToReadableStream( + {root: ws.createElement(a), returnValue: i}, + yd() + ); + }); + }); + } + function Td(e, t) { + var n = t.getReader(); + function o() { + return n.read().then(function (r) { + if (r.done) { + self.postMessage({type: 'rsc-chunk', requestId: e, done: !0}); + return; + } + return ( + self.postMessage( + {type: 'rsc-chunk', requestId: e, done: !1, chunk: r.value}, + [r.value.buffer] + ), + o() + ); + }); + } + o().catch(function (r) { + self.postMessage({type: 'rsc-error', requestId: e, error: String(r)}); + }); + } + self.onmessage = function (e) { + var t = e.data; + if (t.type === 'deploy') + try { + var n = ex(t.serverFiles, t.clientManifest, t.clientFiles); + n && + self.postMessage({ + type: 'deploy-result', + requestId: t.requestId, + result: n, + }); + } catch {} + else if (t.type === 'render') + try { + var o = tx(); + Promise.resolve(o).then(function (r) { + Td(t.requestId, r); + }); + } catch (r) { + self.postMessage({ + type: 'rsc-error', + requestId: t.requestId, + error: String(r), + }); + } + else if (t.type === 'callAction') + try { + nx(t.actionId, t.encodedArgs).then(function (r) { + Td(t.requestId, r); + }); + } catch (r) { + self.postMessage({ + type: 'rsc-error', + requestId: t.requestId, + error: String(r), + }); + } + }; + self.postMessage({type: 'ready'}); +})(); +/*! Bundled license information: + +react/cjs/react.react-server.production.js: + (** + * @license React + * react.react-server.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react/cjs/react-jsx-runtime.react-server.production.js: + (** + * @license React + * react-jsx-runtime.react-server.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react-dom/cjs/react-dom.react-server.production.js: + (** + * @license React + * react-dom.react-server.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js: + (** + * @license React + * react-server-dom-webpack-server.browser.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/src/components/MDX/Sandpack/templateRSC.ts b/src/components/MDX/Sandpack/templateRSC.ts new file mode 100644 index 00000000000..5c92d671d97 --- /dev/null +++ b/src/components/MDX/Sandpack/templateRSC.ts @@ -0,0 +1,79 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import type {SandpackFiles} from '@codesandbox/sandpack-react/unstyled'; + +function hideFiles(files: SandpackFiles): SandpackFiles { + return Object.fromEntries( + Object.entries(files).map(([name, code]) => [ + name, + typeof code === 'string' ? {code, hidden: true} : {...code, hidden: true}, + ]) + ); +} + +// --- Load RSC infrastructure files as raw strings via raw-loader --- +const RSC_SOURCE_FILES = { + 'webpack-shim': + require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/webpack-shim.js') as string, + 'rsc-client': + require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/rsc-client.js') as string, + 'worker-bundle': `export default ${JSON.stringify( + require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/worker-bundle.dist.js') as string + )};`, + 'rsdw-client': + require('!raw-loader?esModule=false!../../../../node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js') as string, +}; + +// Entry point that bootstraps the RSC client pipeline. +const indexEntry = ` +import './styles.css'; +import { initClient } from './rsc-client.js'; +initClient(); +`.trim(); + +const indexHTML = ` + + + + + + Document + + +
+ + +`.trim(); + +export const templateRSC: SandpackFiles = { + ...hideFiles({ + '/public/index.html': indexHTML, + '/src/index.js': indexEntry, + '/src/rsc-client.js': RSC_SOURCE_FILES['rsc-client'], + '/src/rsc-server.js': RSC_SOURCE_FILES['worker-bundle'], + '/src/__webpack_shim__.js': RSC_SOURCE_FILES['webpack-shim'], + // RSDW client as a Sandpack local dependency (bypasses Babel bundler) + '/node_modules/react-server-dom-webpack/package.json': + '{"name":"react-server-dom-webpack","main":"index.js"}', + '/node_modules/react-server-dom-webpack/client.browser.js': + RSC_SOURCE_FILES['rsdw-client'], + '/package.json': JSON.stringify( + { + name: 'react.dev', + version: '0.0.0', + main: '/src/index.js', + dependencies: { + react: '^19.2.4', + 'react-dom': '^19.2.4', + }, + }, + null, + 2 + ), + }), +}; diff --git a/src/components/MDX/SandpackWithHTMLOutput.tsx b/src/components/MDX/SandpackWithHTMLOutput.tsx index 51d06beaf14..1d9e7f42d97 100644 --- a/src/components/MDX/SandpackWithHTMLOutput.tsx +++ b/src/components/MDX/SandpackWithHTMLOutput.tsx @@ -7,7 +7,7 @@ import {Children, memo} from 'react'; import InlineCode from './InlineCode'; -import Sandpack from './Sandpack'; +import {SandpackClient} from './Sandpack'; const ShowRenderedHTML = ` import { renderToStaticMarkup } from 'react-dom/server'; @@ -80,7 +80,7 @@ function createFile(meta: string, source: string) { } export default memo(function SandpackWithHTMLOutput( - props: React.ComponentProps + props: React.ComponentProps ) { const children = [ ...Children.toArray(props.children), @@ -88,5 +88,5 @@ export default memo(function SandpackWithHTMLOutput( createFile('src/formatHTML.js hidden', formatHTML), createFile('package.json hidden', packageJSON), ]; - return {children}; + return {children}; }); diff --git a/src/content/learn/rsc-sandbox-test.md b/src/content/learn/rsc-sandbox-test.md new file mode 100644 index 00000000000..98dafe44c1b --- /dev/null +++ b/src/content/learn/rsc-sandbox-test.md @@ -0,0 +1,137 @@ +--- +title: RSC Sandbox Test +--- + +## Basic Server Component {/*basic-server-component*/} + + + +```js src/App.js +export default function App() { + return

Hello from a Server Component!

; +} +``` + +
+ +## Server + Client Components {/*server-client*/} + + + +```js src/App.js +import Counter from './Counter'; + +export default function App() { + return ( +
+

Server Component

+

This text is rendered on the server.

+ +
+ ); +} +``` + +```js src/Counter.js +'use client'; +import { useState } from 'react'; + +export default function Counter() { + const [count, setCount] = useState(0); + return ( + + ); +} +``` + +
+ +## Async Server Component with Suspense {/*async-suspense*/} + + + +```js src/App.js +import { Suspense } from 'react'; +import Albums from './Albums'; + +export default function App() { + return ( +
+

Music

+ Loading albums...

}> + +
+
+ ); +} +``` + +```js src/Albums.js +async function fetchAlbums() { + await new Promise(resolve => setTimeout(resolve, 1000)); + return ['Abbey Road', 'Let It Be', 'Revolver']; +} + +export default async function Albums() { + const albums = await fetchAlbums(); + return ( +
    + {albums.map(album => ( +
  • {album}
  • + ))} +
+ ); +} +``` + +
+ +## Server Functions {/*server-functions*/} + + + +```js src/App.js +import { addLike, getLikeCount } from './actions'; +import LikeButton from './LikeButton'; + +export default async function App() { + const count = await getLikeCount(); + return ( +
+

Server Functions

+

Likes: {count}

+ +
+ ); +} +``` + +```js src/actions.js +'use server'; + +let count = 0; + +export async function addLike() { + count++; +} + +export async function getLikeCount() { + return count; +} +``` + +```js src/LikeButton.js +'use client'; + +export default function LikeButton({ addLike }) { + return ( +
+ +
+ ); +} +``` + +
\ No newline at end of file diff --git a/src/sidebarLearn.json b/src/sidebarLearn.json index bd14a83eacd..f3d99d75c07 100644 --- a/src/sidebarLearn.json +++ b/src/sidebarLearn.json @@ -234,6 +234,11 @@ "path": "/learn/reusing-logic-with-custom-hooks" } ] + }, + { + "title": "RSC Sandbox Test", + "path": "/learn/rsc-sandbox-test", + "canary": true } ] } diff --git a/tsconfig.json b/tsconfig.json index 9d72e01bc55..3e2a100b74f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,6 +33,7 @@ "next-env.d.ts", "src/**/*.ts", "src/**/*.tsx", + "src/**/*.source.js", ".next/types/**/*.ts" ], "exclude": [ diff --git a/yarn.lock b/yarn.lock index b3c69fcac87..ce7b74ed632 100644 --- a/yarn.lock +++ b/yarn.lock @@ -912,6 +912,131 @@ dependencies: tslib "^2.4.0" +"@esbuild/aix-ppc64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz#38848d3e25afe842a7943643cbcd387cc6e13461" + integrity sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA== + +"@esbuild/android-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz#f592957ae8b5643129fa889c79e69cd8669bb894" + integrity sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg== + +"@esbuild/android-arm@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.24.2.tgz#72d8a2063aa630308af486a7e5cbcd1e134335b3" + integrity sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q== + +"@esbuild/android-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.24.2.tgz#9a7713504d5f04792f33be9c197a882b2d88febb" + integrity sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw== + +"@esbuild/darwin-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz#02ae04ad8ebffd6e2ea096181b3366816b2b5936" + integrity sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA== + +"@esbuild/darwin-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz#9ec312bc29c60e1b6cecadc82bd504d8adaa19e9" + integrity sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA== + +"@esbuild/freebsd-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz#5e82f44cb4906d6aebf24497d6a068cfc152fa00" + integrity sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg== + +"@esbuild/freebsd-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz#3fb1ce92f276168b75074b4e51aa0d8141ecce7f" + integrity sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q== + +"@esbuild/linux-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz#856b632d79eb80aec0864381efd29de8fd0b1f43" + integrity sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg== + +"@esbuild/linux-arm@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz#c846b4694dc5a75d1444f52257ccc5659021b736" + integrity sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA== + +"@esbuild/linux-ia32@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz#f8a16615a78826ccbb6566fab9a9606cfd4a37d5" + integrity sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw== + +"@esbuild/linux-loong64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz#1c451538c765bf14913512c76ed8a351e18b09fc" + integrity sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ== + +"@esbuild/linux-mips64el@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz#0846edeefbc3d8d50645c51869cc64401d9239cb" + integrity sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw== + +"@esbuild/linux-ppc64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz#8e3fc54505671d193337a36dfd4c1a23b8a41412" + integrity sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw== + +"@esbuild/linux-riscv64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz#6a1e92096d5e68f7bb10a0d64bb5b6d1daf9a694" + integrity sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q== + +"@esbuild/linux-s390x@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz#ab18e56e66f7a3c49cb97d337cd0a6fea28a8577" + integrity sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw== + +"@esbuild/linux-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz#8140c9b40da634d380b0b29c837a0b4267aff38f" + integrity sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q== + +"@esbuild/netbsd-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz#65f19161432bafb3981f5f20a7ff45abb2e708e6" + integrity sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw== + +"@esbuild/netbsd-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz#7a3a97d77abfd11765a72f1c6f9b18f5396bcc40" + integrity sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw== + +"@esbuild/openbsd-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz#58b00238dd8f123bfff68d3acc53a6ee369af89f" + integrity sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A== + +"@esbuild/openbsd-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz#0ac843fda0feb85a93e288842936c21a00a8a205" + integrity sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA== + +"@esbuild/sunos-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz#8b7aa895e07828d36c422a4404cc2ecf27fb15c6" + integrity sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig== + +"@esbuild/win32-arm64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz#c023afb647cabf0c3ed13f0eddfc4f1d61c66a85" + integrity sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ== + +"@esbuild/win32-ia32@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz#96c356132d2dda990098c8b8b951209c3cd743c2" + integrity sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA== + +"@esbuild/win32-x64@0.24.2": + version "0.24.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz#34aa0b52d0fbb1a654b596acfa595f0c7b77a77b" + integrity sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg== + "@eslint/eslintrc@^0.4.3": version "0.4.3" resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz" @@ -1639,6 +1764,11 @@ dependencies: "@types/unist" "*" +"@types/json-schema@^7.0.8": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz" @@ -1867,6 +1997,13 @@ acorn-jsx@^5.0.0, acorn-jsx@^5.3.1: resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== +acorn-loose@^8.3.0: + version "8.5.2" + resolved "https://registry.yarnpkg.com/acorn-loose/-/acorn-loose-8.5.2.tgz#a7cc7dfbb7c8f3c2e55b055db640dc657e278d26" + integrity sha512-PPvV6g8UGMGgjrMu+n/f9E/tCSkNQ2Y97eFvuVdJfG11+xdIeDcLyNdC8SHcrHbRqkfwLASdplyR6B6sKM1U4A== + dependencies: + acorn "^8.15.0" + acorn-walk@^8.0.0: version "8.2.0" resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" @@ -1887,6 +2024,11 @@ acorn@^8.0.4: resolved "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz" integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ== +acorn@^8.15.0: + version "8.15.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" + integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== + aggregate-error@^3.0.0: version "3.1.0" resolved "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" @@ -1895,7 +2037,12 @@ aggregate-error@^3.0.0: clean-stack "^2.0.0" indent-string "^4.0.0" -ajv@^6.10.0, ajv@^6.12.4: +ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv@^6.10.0, ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -2300,6 +2447,11 @@ base64-js@^1.3.1: resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== + binary-extensions@^2.0.0: version "2.2.0" resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" @@ -3014,6 +3166,11 @@ emoji-regex@^9.2.2: resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== +emojis-list@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" + integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== + encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" @@ -3216,6 +3373,37 @@ es6-symbol@^3, es6-symbol@^3.1.1, es6-symbol@^3.1.3: d "^1.0.1" ext "^1.1.2" +esbuild@^0.24.0: + version "0.24.2" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.24.2.tgz#b5b55bee7de017bff5fb8a4e3e44f2ebe2c3567d" + integrity sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA== + optionalDependencies: + "@esbuild/aix-ppc64" "0.24.2" + "@esbuild/android-arm" "0.24.2" + "@esbuild/android-arm64" "0.24.2" + "@esbuild/android-x64" "0.24.2" + "@esbuild/darwin-arm64" "0.24.2" + "@esbuild/darwin-x64" "0.24.2" + "@esbuild/freebsd-arm64" "0.24.2" + "@esbuild/freebsd-x64" "0.24.2" + "@esbuild/linux-arm" "0.24.2" + "@esbuild/linux-arm64" "0.24.2" + "@esbuild/linux-ia32" "0.24.2" + "@esbuild/linux-loong64" "0.24.2" + "@esbuild/linux-mips64el" "0.24.2" + "@esbuild/linux-ppc64" "0.24.2" + "@esbuild/linux-riscv64" "0.24.2" + "@esbuild/linux-s390x" "0.24.2" + "@esbuild/linux-x64" "0.24.2" + "@esbuild/netbsd-arm64" "0.24.2" + "@esbuild/netbsd-x64" "0.24.2" + "@esbuild/openbsd-arm64" "0.24.2" + "@esbuild/openbsd-x64" "0.24.2" + "@esbuild/sunos-x64" "0.24.2" + "@esbuild/win32-arm64" "0.24.2" + "@esbuild/win32-ia32" "0.24.2" + "@esbuild/win32-x64" "0.24.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" @@ -4772,16 +4960,16 @@ json5@^1.0.1, json5@^1.0.2: dependencies: minimist "^1.2.0" +json5@^2.1.2, json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + json5@^2.2.1: version "2.2.1" resolved "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz" integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== -json5@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" @@ -4909,6 +5097,15 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" +loader-utils@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c" + integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + locate-path@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz" @@ -5781,6 +5978,11 @@ negotiator@0.6.3: resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== +neo-async@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + next-remote-watch@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/next-remote-watch/-/next-remote-watch-1.0.0.tgz" @@ -6719,6 +6921,14 @@ raw-body@2.5.1: iconv-lite "0.4.24" unpipe "1.0.0" +raw-loader@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.2.tgz#1aac6b7d1ad1501e66efdac1522c73e59a584eb6" + integrity sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA== + dependencies: + loader-utils "^2.0.0" + schema-utils "^3.0.0" + react-collapsed@4.0.4: version "4.0.4" resolved "https://registry.npmjs.org/react-collapsed/-/react-collapsed-4.0.4.tgz" @@ -6769,6 +6979,15 @@ react-remove-scroll@2.5.5: use-callback-ref "^1.3.0" use-sidecar "^1.1.2" +react-server-dom-webpack@^19.2.4: + version "19.2.4" + resolved "https://registry.yarnpkg.com/react-server-dom-webpack/-/react-server-dom-webpack-19.2.4.tgz#2c0e5d3b4be09428a1e5fb25bde7d00e804ef4f4" + integrity sha512-zEhkWv6RhXDctC2N7yEUHg3751nvFg81ydHj8LTTZuukF/IF1gcOKqqAL6Ds+kS5HtDVACYPik0IvzkgYXPhlQ== + dependencies: + acorn-loose "^8.3.0" + neo-async "^2.6.1" + webpack-sources "^3.2.0" + react-style-singleton@^2.2.1: version "2.2.1" resolved "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz" @@ -7196,6 +7415,15 @@ scheduler@^0.25.0: resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0.tgz#336cd9768e8cceebf52d3c80e3dcf5de23e7e015" integrity sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA== +schema-utils@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" + integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + section-matter@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz" @@ -8355,6 +8583,11 @@ webpack-bundle-analyzer@^4.5.0: sirv "^1.0.7" ws "^7.3.1" +webpack-sources@^3.2.0: + version "3.3.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.3.tgz#d4bf7f9909675d7a070ff14d0ef2a4f3c982c723" + integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" From de62f82ae453968f010cc2454f949044558f4b28 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Wed, 11 Feb 2026 18:58:53 -0500 Subject: [PATCH 2/9] Recover from errors, parse directives in worker with AST --- .../sandbox-code/src/rsc-client.js | 141 +- .../sandbox-code/src/rsc-server.js | 124 +- .../sandbox-code/src/worker-bundle.dist.js | 25483 ++++++++++------ 3 files changed, 16382 insertions(+), 9366 deletions(-) diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js index d2bb9e2e569..e5675b84d19 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js @@ -2,7 +2,7 @@ // Runs inside the Sandpack iframe. Orchestrates the RSC pipeline: // 1. Creates a Web Worker from pre-bundled server runtime // 2. Receives file updates from parent (RscFileBridge) via postMessage -// 3. Classifies files by directive, sends raw source to Worker +// 3. Sends all user files to Worker for directive detection + compilation // 4. Worker compiles with Sucrase + executes, sends back Flight chunks // 5. Renders the Flight stream result with React @@ -57,6 +57,36 @@ export function initClient() { root.render(jsx(Root, {initialPromise: initialPromise})); }); + // Error overlay — rendered inside the iframe via DOM so it doesn't + // interfere with Sandpack's parent-frame message protocol. + function showError(message) { + var overlay = document.getElementById('rsc-error-overlay'); + if (!overlay) { + overlay = document.createElement('div'); + overlay.id = 'rsc-error-overlay'; + overlay.style.cssText = + 'background:#fff;border:2px solid #c00;border-radius:8px;padding:16px;margin:20px;font-family:sans-serif;'; + var heading = document.createElement('h2'); + heading.style.cssText = 'color:#c00;margin:0 0 8px;font-size:16px;'; + heading.textContent = 'Server Error'; + overlay.appendChild(heading); + var pre = document.createElement('pre'); + pre.style.cssText = + 'margin:0;white-space:pre-wrap;word-break:break-word;font-size:14px;color:#222;'; + overlay.appendChild(pre); + rootEl.parentNode.insertBefore(overlay, rootEl); + } + overlay.lastChild.textContent = message; + overlay.style.display = ''; + rootEl.style.display = 'none'; + } + + function clearError() { + var overlay = document.getElementById('rsc-error-overlay'); + if (overlay) overlay.style.display = 'none'; + rootEl.style.display = ''; + } + // Worker message handler worker.onmessage = function (e) { var msg = e.data; @@ -67,15 +97,19 @@ export function initClient() { pendingFiles = null; } } else if (msg.type === 'deploy-result') { + clearError(); // Register compiled client modules in the webpack cache before rendering if (msg.result && msg.result.compiledClients) { - registerClientModules(msg.result.compiledClients); + registerClientModules( + msg.result.compiledClients, + msg.result.clientEntries || {} + ); } triggerRender(); } else if (msg.type === 'rsc-chunk') { handleChunk(msg); } else if (msg.type === 'rsc-error') { - console.error('RSC Worker error:', msg.error); + showError(msg.error); } }; @@ -184,37 +218,20 @@ export function initClient() { function processFiles(files) { console.clear(); - var serverFiles = {}; - var clientManifest = {}; - var clientFiles = {}; - + var userFiles = {}; Object.keys(files).forEach(function (filePath) { - var code = files[filePath]; - - // Skip non-JS files and infrastructure files if (!filePath.match(/\.(js|jsx|ts|tsx)$/)) return; if (filePath.indexOf('node_modules') !== -1) return; if (filePath === '/src/index.js') return; if (filePath === '/src/rsc-client.js') return; if (filePath === '/src/rsc-server.js') return; - - // Check for 'use client' directive - if (hasDirective(code, 'use client')) { - clientManifest[filePath] = true; - clientFiles[filePath] = code; - } else { - // Server file — send raw source to Worker for compilation - serverFiles[filePath] = code; - } + if (filePath === '/src/__webpack_shim__.js') return; + userFiles[filePath] = files[filePath]; }); - - // Send raw server + client files to Worker (Worker compiles with Sucrase) worker.postMessage({ type: 'deploy', requestId: ++renderRequestId, - serverFiles: serverFiles, - clientManifest: clientManifest, - clientFiles: clientFiles, + files: userFiles, }); } @@ -237,66 +254,64 @@ export function initClient() { // Evaluate compiled client modules and register them in the webpack cache // so RSDW client can resolve them via __webpack_require__. - function registerClientModules(compiledClients) { - var moduleIds = Object.keys(compiledClients); - moduleIds.forEach(function (moduleId) { - var code = compiledClients[moduleId]; + function registerClientModules(compiledClients, clientEntries) { + // Store all compiled code for lazy evaluation + var allCompiled = compiledClients; + + function evaluateModule(moduleId) { + if (globalThis.__webpack_module_cache__[moduleId]) { + var cached = globalThis.__webpack_module_cache__[moduleId]; + return cached.exports !== undefined ? cached.exports : cached; + } + var code = allCompiled[moduleId]; + if (!code) + throw new Error('Client require: module "' + moduleId + '" not found'); + var mod = {exports: {}}; + // Register before evaluating to handle circular deps + globalThis.__webpack_module_cache__[moduleId] = {exports: mod.exports}; + var clientRequire = function (id) { if (id === 'react') return React; if (id === 'react/jsx-runtime') return ReactJSXRuntime; if (id === 'react/jsx-dev-runtime') return ReactJSXDevRuntime; if (id.endsWith('.css')) return {}; var resolvedId = id.startsWith('.') ? resolvePath(moduleId, id) : id; - // Try exact match, then with extensions var candidates = [resolvedId]; var exts = ['.js', '.jsx', '.ts', '.tsx']; for (var i = 0; i < exts.length; i++) { candidates.push(resolvedId + exts[i]); } for (var j = 0; j < candidates.length; j++) { - var cached = globalThis.__webpack_module_cache__[candidates[j]]; - if (cached) - return cached.exports !== undefined ? cached.exports : cached; + if ( + allCompiled[candidates[j]] || + globalThis.__webpack_module_cache__[candidates[j]] + ) { + return evaluateModule(candidates[j]); + } } throw new Error('Client require: module "' + id + '" not found'); }; + try { - new Function( - 'module', - 'exports', - 'require', - 'React', - code - )(mod, mod.exports, clientRequire, React); + new Function('module', 'exports', 'require', 'React', code)( + mod, + mod.exports, + clientRequire, + React + ); } catch (err) { console.error('Error executing client module ' + moduleId + ':', err); - return; + return mod.exports; } + // Update cache with actual exports (handles non-circular case) globalThis.__webpack_module_cache__[moduleId] = {exports: mod.exports}; - }); - } - - function hasDirective(code, directive) { - var lines = code.split('\n'); - for (var i = 0; i < Math.min(lines.length, 10); i++) { - var line = lines[i].trim(); - if (line === '') continue; - if (line.startsWith('//')) continue; - if (line.startsWith('/*')) { - while (i < lines.length && !lines[i].includes('*/')) i++; - continue; - } - if ( - line === "'" + directive + "';" || - line === '"' + directive + '";' || - line === "'" + directive + "'" || - line === '"' + directive + '"' - ) { - return true; - } - return false; + return mod.exports; } - return false; + + // Eagerly evaluate 'use client' entry points; their imports resolve lazily + Object.keys(clientEntries).forEach(function (moduleId) { + evaluateModule(moduleId); + }); } } diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js index 352bb30209d..ea4e22a2655 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js @@ -10,6 +10,7 @@ var React = require('react'); var ReactJSXRuntime = require('react/jsx-runtime'); var RSDWServer = require('react-server-dom-webpack/server.browser'); var Sucrase = require('sucrase'); +var acorn = require('acorn-loose'); var deployed = null; @@ -48,27 +49,27 @@ function registerServerReference(impl, moduleId, name) { return ref; } -function hasDirective(code, directive) { - var lines = code.split('\n'); - for (var i = 0; i < Math.min(lines.length, 10); i++) { - var line = lines[i].trim(); - if (line === '') continue; - if (line.startsWith('//')) continue; - if (line.startsWith('/*')) { - while (i < lines.length && !lines[i].includes('*/')) i++; - continue; - } - if ( - line === "'" + directive + "';" || - line === '"' + directive + '";' || - line === "'" + directive + "'" || - line === '"' + directive + '"' - ) { - return true; - } - return false; +// Detect 'use client' / 'use server' directives using acorn-loose, +// matching the same approach as react-server-dom-webpack/node-register. +function parseDirective(code) { + if (code.indexOf('use client') === -1 && code.indexOf('use server') === -1) { + return null; + } + try { + var body = acorn.parse(code, { + ecmaVersion: '2024', + sourceType: 'source', + }).body; + } catch (x) { + return null; } - return false; + for (var i = 0; i < body.length; i++) { + var node = body[i]; + if (node.type !== 'ExpressionStatement' || !node.directive) break; + if (node.directive === 'use client') return 'use client'; + if (node.directive === 'use server') return 'use server'; + } + return null; } // Resolve relative paths (e.g., './Counter.js' from '/src/App.js' → '/src/Counter.js') @@ -90,35 +91,33 @@ function resolvePath(from, to) { // Deploy new server code into the Worker // Receives raw source files — compiles them with Sucrase before execution. -function deploy(rawFiles, clientManifest, clientFiles) { +function deploy(files) { // Build a require function for the server module scope var modules = { react: React, 'react/jsx-runtime': ReactJSXRuntime, }; - // Create client module proxies for 'use client' files - Object.keys(clientManifest).forEach(function (moduleId) { - modules[moduleId] = RSDWServer.createClientModuleProxy(moduleId); - }); - - // Compile all server files first, then execute on-demand via require. + // Compile all files first, then execute on-demand via require. // This avoids ordering issues where a file imports another that hasn't been executed yet. var compiled = {}; - var hasCompileError = false; - Object.keys(rawFiles).forEach(function (filePath) { + var compileError = null; + Object.keys(files).forEach(function (filePath) { + if (compileError) return; try { - compiled[filePath] = Sucrase.transform(rawFiles[filePath], { + compiled[filePath] = Sucrase.transform(files[filePath], { transforms: ['jsx', 'imports'], jsxRuntime: 'automatic', production: true, }).code; } catch (err) { - hasCompileError = true; + compileError = filePath + ': ' + (err.message || String(err)); } }); - if (hasCompileError) return null; + if (compileError) { + return {type: 'error', error: compileError}; + } // Resolve a module id relative to a requesting file function resolveModuleId(from, id) { @@ -137,6 +136,8 @@ function deploy(rawFiles, clientManifest, clientFiles) { // Execute a module lazily and cache its exports var executing = {}; + var detectedClientFiles = {}; + function executeModule(filePath) { if (modules[filePath]) return modules[filePath]; if (!compiled[filePath]) { @@ -146,6 +147,18 @@ function deploy(rawFiles, clientManifest, clientFiles) { // Circular dependency — return partially populated exports return executing[filePath].exports; } + + // Replicate node-register's _compile hook: + // detect directives BEFORE executing the module. + var directive = parseDirective(files[filePath]); + + if (directive === 'use client') { + // Don't execute — return a client module proxy (same as node-register) + modules[filePath] = RSDWServer.createClientModuleProxy(filePath); + detectedClientFiles[filePath] = true; + return modules[filePath]; + } + var mod = {exports: {}}; executing[filePath] = mod; @@ -165,8 +178,8 @@ function deploy(rawFiles, clientManifest, clientFiles) { modules[filePath] = mod.exports; - // Register server functions from 'use server' modules - if (hasDirective(rawFiles[filePath], 'use server')) { + if (directive === 'use server') { + // Execute normally, then register server references (same as node-register) var exportNames = Object.keys(mod.exports); for (var i = 0; i < exportNames.length; i++) { var name = exportNames[i]; @@ -195,30 +208,13 @@ function deploy(rawFiles, clientManifest, clientFiles) { deployed = { module: mainModule.exports, - manifest: clientManifest, }; - // Compile client files with Sucrase so the client can evaluate and register them. - var compiledClients = {}; - if (clientFiles) { - Object.keys(clientFiles).forEach(function (filePath) { - try { - compiledClients[filePath] = Sucrase.transform(clientFiles[filePath], { - transforms: ['jsx', 'imports'], - jsxRuntime: 'automatic', - production: true, - }).code; - } catch (err) { - self.postMessage({ - type: 'rsc-error', - requestId: -1, - error: 'Sucrase compile error in ' + filePath + ': ' + String(err), - }); - } - }); - } - - return {type: 'deployed', compiledClients: compiledClients}; + return { + type: 'deployed', + compiledClients: compiled, + clientEntries: detectedClientFiles, + }; } // Render the deployed app to a Flight stream @@ -298,8 +294,14 @@ self.onmessage = function (e) { var msg = e.data; if (msg.type === 'deploy') { try { - var result = deploy(msg.serverFiles, msg.clientManifest, msg.clientFiles); - if (result) { + var result = deploy(msg.files); + if (result && result.type === 'error') { + self.postMessage({ + type: 'rsc-error', + requestId: msg.requestId, + error: result.error, + }); + } else if (result) { self.postMessage({ type: 'deploy-result', requestId: msg.requestId, @@ -307,7 +309,11 @@ self.onmessage = function (e) { }); } } catch (err) { - // Silently ignore — likely mid-edit syntax errors + self.postMessage({ + type: 'rsc-error', + requestId: msg.requestId, + error: String(err), + }); } } else if (msg.type === 'render') { try { diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js index e03d651b1c2..501bd51d320 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js @@ -25,16 +25,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ('use strict'); (() => { - var H = (e, t) => () => (t || e((t = {exports: {}}).exports, t), t.exports); - var G1 = H((Ke) => { + var Z = (e, t) => () => (t || e((t = {exports: {}}).exports, t), t.exports); + var Hc = Z((ht) => { 'use strict'; - var ro = {H: null, A: null}; - function ci(e) { + var ei = {H: null, A: null}; + function Yo(e) { var t = 'https://react.dev/errors/' + e; if (1 < arguments.length) { t += '?args[]=' + encodeURIComponent(arguments[1]); - for (var n = 2; n < arguments.length; n++) - t += '&args[]=' + encodeURIComponent(arguments[n]); + for (var s = 2; s < arguments.length; s++) + t += '&args[]=' + encodeURIComponent(arguments[s]); } return ( 'Minified React error #' + @@ -44,54 +44,54 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' ); } - var U1 = Array.isArray, - ui = Symbol.for('react.transitional.element'), - Od = Symbol.for('react.portal'), - Md = Symbol.for('react.fragment'), - Ld = Symbol.for('react.strict_mode'), - Fd = Symbol.for('react.profiler'), - $d = Symbol.for('react.forward_ref'), - Bd = Symbol.for('react.suspense'), - jd = Symbol.for('react.memo'), - X1 = Symbol.for('react.lazy'), - W1 = Symbol.iterator; - function Kd(e) { + var Vc = Array.isArray, + Jo = Symbol.for('react.transitional.element'), + If = Symbol.for('react.portal'), + Ef = Symbol.for('react.fragment'), + Af = Symbol.for('react.strict_mode'), + Pf = Symbol.for('react.profiler'), + Nf = Symbol.for('react.forward_ref'), + Rf = Symbol.for('react.suspense'), + Lf = Symbol.for('react.memo'), + Kc = Symbol.for('react.lazy'), + jc = Symbol.iterator; + function Of(e) { return e === null || typeof e != 'object' ? null - : ((e = (W1 && e[W1]) || e['@@iterator']), + : ((e = (jc && e[jc]) || e['@@iterator']), typeof e == 'function' ? e : null); } - var Y1 = Object.prototype.hasOwnProperty, - qd = Object.assign; - function pi(e, t, n, o, r, s) { + var Uc = Object.prototype.hasOwnProperty, + Df = Object.assign; + function Qo(e, t, s, i, r, a) { return ( - (n = s.ref), - {$$typeof: ui, type: e, key: t, ref: n !== void 0 ? n : null, props: s} + (s = a.ref), + {$$typeof: Jo, type: e, key: t, ref: s !== void 0 ? s : null, props: a} ); } - function Hd(e, t) { - return pi(e.type, t, void 0, void 0, void 0, e.props); + function Mf(e, t) { + return Qo(e.type, t, void 0, void 0, void 0, e.props); } - function di(e) { - return typeof e == 'object' && e !== null && e.$$typeof === ui; + function Zo(e) { + return typeof e == 'object' && e !== null && e.$$typeof === Jo; } - function Ud(e) { + function Ff(e) { var t = {'=': '=0', ':': '=2'}; return ( '$' + - e.replace(/[=:]/g, function (n) { - return t[n]; + e.replace(/[=:]/g, function (s) { + return t[s]; }) ); } - var V1 = /\/+/g; - function ai(e, t) { + var $c = /\/+/g; + function zo(e, t) { return typeof e == 'object' && e !== null && e.key != null - ? Ud('' + e.key) + ? Ff('' + e.key) : t.toString(36); } - function z1() {} - function Wd(e) { + function qc() {} + function Bf(e) { switch (e.status) { case 'fulfilled': return e.value; @@ -100,7 +100,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { default: switch ( (typeof e.status == 'string' - ? e.then(z1, z1) + ? e.then(qc, qc) : ((e.status = 'pending'), e.then( function (t) { @@ -122,65 +122,65 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } throw e; } - function oo(e, t, n, o, r) { - var s = typeof e; - (s === 'undefined' || s === 'boolean') && (e = null); - var i = !1; - if (e === null) i = !0; + function Zs(e, t, s, i, r) { + var a = typeof e; + (a === 'undefined' || a === 'boolean') && (e = null); + var p = !1; + if (e === null) p = !0; else - switch (s) { + switch (a) { case 'bigint': case 'string': case 'number': - i = !0; + p = !0; break; case 'object': switch (e.$$typeof) { - case ui: - case Od: - i = !0; + case Jo: + case If: + p = !0; break; - case X1: - return (i = e._init), oo(i(e._payload), t, n, o, r); + case Kc: + return (p = e._init), Zs(p(e._payload), t, s, i, r); } } - if (i) + if (p) return ( (r = r(e)), - (i = o === '' ? '.' + ai(e, 0) : o), - U1(r) - ? ((n = ''), - i != null && (n = i.replace(V1, '$&/') + '/'), - oo(r, t, n, '', function (h) { - return h; + (p = i === '' ? '.' + zo(e, 0) : i), + Vc(r) + ? ((s = ''), + p != null && (s = p.replace($c, '$&/') + '/'), + Zs(r, t, s, '', function (k) { + return k; })) : r != null && - (di(r) && - (r = Hd( + (Zo(r) && + (r = Mf( r, - n + + s + (r.key == null || (e && e.key === r.key) ? '' - : ('' + r.key).replace(V1, '$&/') + '/') + - i + : ('' + r.key).replace($c, '$&/') + '/') + + p )), t.push(r)), 1 ); - i = 0; - var a = o === '' ? '.' : o + ':'; - if (U1(e)) - for (var u = 0; u < e.length; u++) - (o = e[u]), (s = a + ai(o, u)), (i += oo(o, t, n, s, r)); - else if (((u = Kd(e)), typeof u == 'function')) - for (e = u.call(e), u = 0; !(o = e.next()).done; ) - (o = o.value), (s = a + ai(o, u++)), (i += oo(o, t, n, s, r)); - else if (s === 'object') { - if (typeof e.then == 'function') return oo(Wd(e), t, n, o, r); + p = 0; + var d = i === '' ? '.' : i + ':'; + if (Vc(e)) + for (var y = 0; y < e.length; y++) + (i = e[y]), (a = d + zo(i, y)), (p += Zs(i, t, s, a, r)); + else if (((y = Of(e)), typeof y == 'function')) + for (e = y.call(e), y = 0; !(i = e.next()).done; ) + (i = i.value), (a = d + zo(i, y++)), (p += Zs(i, t, s, a, r)); + else if (a === 'object') { + if (typeof e.then == 'function') return Zs(Bf(e), t, s, i, r); throw ( ((t = String(e)), Error( - ci( + Yo( 31, t === '[object Object]' ? 'object with keys {' + Object.keys(e).join(', ') + '}' @@ -189,31 +189,31 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { )) ); } - return i; + return p; } - function ur(e, t, n) { + function _r(e, t, s) { if (e == null) return e; - var o = [], + var i = [], r = 0; return ( - oo(e, o, '', '', function (s) { - return t.call(n, s, r++); + Zs(e, i, '', '', function (a) { + return t.call(s, a, r++); }), - o + i ); } - function Vd(e) { + function Vf(e) { if (e._status === -1) { var t = e._result; (t = t()), t.then( - function (n) { + function (s) { (e._status === 0 || e._status === -1) && - ((e._status = 1), (e._result = n)); + ((e._status = 1), (e._result = s)); }, - function (n) { + function (s) { (e._status === 0 || e._status === -1) && - ((e._status = 2), (e._result = n)); + ((e._status = 2), (e._result = s)); } ), e._status === -1 && ((e._status = 0), (e._result = t)); @@ -221,27 +221,27 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (e._status === 1) return e._result.default; throw e._result; } - function zd() { + function jf() { return new WeakMap(); } - function li() { + function Xo() { return {s: 0, v: void 0, o: null, p: null}; } - Ke.Children = { - map: ur, - forEach: function (e, t, n) { - ur( + ht.Children = { + map: _r, + forEach: function (e, t, s) { + _r( e, function () { t.apply(this, arguments); }, - n + s ); }, count: function (e) { var t = 0; return ( - ur(e, function () { + _r(e, function () { t++; }), t @@ -249,192 +249,192 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }, toArray: function (e) { return ( - ur(e, function (t) { + _r(e, function (t) { return t; }) || [] ); }, only: function (e) { - if (!di(e)) throw Error(ci(143)); + if (!Zo(e)) throw Error(Yo(143)); return e; }, }; - Ke.Fragment = Md; - Ke.Profiler = Fd; - Ke.StrictMode = Ld; - Ke.Suspense = Bd; - Ke.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ro; - Ke.cache = function (e) { + ht.Fragment = Ef; + ht.Profiler = Pf; + ht.StrictMode = Af; + ht.Suspense = Rf; + ht.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ei; + ht.cache = function (e) { return function () { - var t = ro.A; + var t = ei.A; if (!t) return e.apply(null, arguments); - var n = t.getCacheForType(zd); - (t = n.get(e)), t === void 0 && ((t = li()), n.set(e, t)), (n = 0); - for (var o = arguments.length; n < o; n++) { - var r = arguments[n]; + var s = t.getCacheForType(jf); + (t = s.get(e)), t === void 0 && ((t = Xo()), s.set(e, t)), (s = 0); + for (var i = arguments.length; s < i; s++) { + var r = arguments[s]; if (typeof r == 'function' || (typeof r == 'object' && r !== null)) { - var s = t.o; - s === null && (t.o = s = new WeakMap()), - (t = s.get(r)), - t === void 0 && ((t = li()), s.set(r, t)); + var a = t.o; + a === null && (t.o = a = new WeakMap()), + (t = a.get(r)), + t === void 0 && ((t = Xo()), a.set(r, t)); } else - (s = t.p), - s === null && (t.p = s = new Map()), - (t = s.get(r)), - t === void 0 && ((t = li()), s.set(r, t)); + (a = t.p), + a === null && (t.p = a = new Map()), + (t = a.get(r)), + t === void 0 && ((t = Xo()), a.set(r, t)); } if (t.s === 1) return t.v; if (t.s === 2) throw t.v; try { - var i = e.apply(null, arguments); - return (n = t), (n.s = 1), (n.v = i); - } catch (a) { - throw ((i = t), (i.s = 2), (i.v = a), a); + var p = e.apply(null, arguments); + return (s = t), (s.s = 1), (s.v = p); + } catch (d) { + throw ((p = t), (p.s = 2), (p.v = d), d); } }; }; - Ke.cloneElement = function (e, t, n) { - if (e == null) throw Error(ci(267, e)); - var o = qd({}, e.props), + ht.cloneElement = function (e, t, s) { + if (e == null) throw Error(Yo(267, e)); + var i = Df({}, e.props), r = e.key, - s = void 0; + a = void 0; if (t != null) - for (i in (t.ref !== void 0 && (s = void 0), + for (p in (t.ref !== void 0 && (a = void 0), t.key !== void 0 && (r = '' + t.key), t)) - !Y1.call(t, i) || - i === 'key' || - i === '__self' || - i === '__source' || - (i === 'ref' && t.ref === void 0) || - (o[i] = t[i]); - var i = arguments.length - 2; - if (i === 1) o.children = n; - else if (1 < i) { - for (var a = Array(i), u = 0; u < i; u++) a[u] = arguments[u + 2]; - o.children = a; - } - return pi(e.type, r, void 0, void 0, s, o); + !Uc.call(t, p) || + p === 'key' || + p === '__self' || + p === '__source' || + (p === 'ref' && t.ref === void 0) || + (i[p] = t[p]); + var p = arguments.length - 2; + if (p === 1) i.children = s; + else if (1 < p) { + for (var d = Array(p), y = 0; y < p; y++) d[y] = arguments[y + 2]; + i.children = d; + } + return Qo(e.type, r, void 0, void 0, a, i); }; - Ke.createElement = function (e, t, n) { - var o, + ht.createElement = function (e, t, s) { + var i, r = {}, - s = null; + a = null; if (t != null) - for (o in (t.key !== void 0 && (s = '' + t.key), t)) - Y1.call(t, o) && - o !== 'key' && - o !== '__self' && - o !== '__source' && - (r[o] = t[o]); - var i = arguments.length - 2; - if (i === 1) r.children = n; - else if (1 < i) { - for (var a = Array(i), u = 0; u < i; u++) a[u] = arguments[u + 2]; - r.children = a; + for (i in (t.key !== void 0 && (a = '' + t.key), t)) + Uc.call(t, i) && + i !== 'key' && + i !== '__self' && + i !== '__source' && + (r[i] = t[i]); + var p = arguments.length - 2; + if (p === 1) r.children = s; + else if (1 < p) { + for (var d = Array(p), y = 0; y < p; y++) d[y] = arguments[y + 2]; + r.children = d; } if (e && e.defaultProps) - for (o in ((i = e.defaultProps), i)) r[o] === void 0 && (r[o] = i[o]); - return pi(e, s, void 0, void 0, null, r); + for (i in ((p = e.defaultProps), p)) r[i] === void 0 && (r[i] = p[i]); + return Qo(e, a, void 0, void 0, null, r); }; - Ke.createRef = function () { + ht.createRef = function () { return {current: null}; }; - Ke.forwardRef = function (e) { - return {$$typeof: $d, render: e}; + ht.forwardRef = function (e) { + return {$$typeof: Nf, render: e}; }; - Ke.isValidElement = di; - Ke.lazy = function (e) { - return {$$typeof: X1, _payload: {_status: -1, _result: e}, _init: Vd}; + ht.isValidElement = Zo; + ht.lazy = function (e) { + return {$$typeof: Kc, _payload: {_status: -1, _result: e}, _init: Vf}; }; - Ke.memo = function (e, t) { - return {$$typeof: jd, type: e, compare: t === void 0 ? null : t}; + ht.memo = function (e, t) { + return {$$typeof: Lf, type: e, compare: t === void 0 ? null : t}; }; - Ke.use = function (e) { - return ro.H.use(e); + ht.use = function (e) { + return ei.H.use(e); }; - Ke.useCallback = function (e, t) { - return ro.H.useCallback(e, t); + ht.useCallback = function (e, t) { + return ei.H.useCallback(e, t); }; - Ke.useDebugValue = function () {}; - Ke.useId = function () { - return ro.H.useId(); + ht.useDebugValue = function () {}; + ht.useId = function () { + return ei.H.useId(); }; - Ke.useMemo = function (e, t) { - return ro.H.useMemo(e, t); + ht.useMemo = function (e, t) { + return ei.H.useMemo(e, t); }; - Ke.version = '19.0.0'; + ht.version = '19.0.0'; }); - var Eo = H((sx, J1) => { + var Li = Z((Zg, Wc) => { 'use strict'; - J1.exports = G1(); + Wc.exports = Hc(); }); - var Z1 = H((Ao) => { + var zc = Z((Oi) => { 'use strict'; - var Xd = Eo(), - Yd = Symbol.for('react.transitional.element'), - Gd = Symbol.for('react.fragment'); - if (!Xd.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) + var $f = Li(), + qf = Symbol.for('react.transitional.element'), + Kf = Symbol.for('react.fragment'); + if (!$f.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' ); - function Q1(e, t, n) { - var o = null; + function Gc(e, t, s) { + var i = null; if ( - (n !== void 0 && (o = '' + n), - t.key !== void 0 && (o = '' + t.key), + (s !== void 0 && (i = '' + s), + t.key !== void 0 && (i = '' + t.key), 'key' in t) ) { - n = {}; - for (var r in t) r !== 'key' && (n[r] = t[r]); - } else n = t; + s = {}; + for (var r in t) r !== 'key' && (s[r] = t[r]); + } else s = t; return ( - (t = n.ref), - {$$typeof: Yd, type: e, key: o, ref: t !== void 0 ? t : null, props: n} + (t = s.ref), + {$$typeof: qf, type: e, key: i, ref: t !== void 0 ? t : null, props: s} ); } - Ao.Fragment = Gd; - Ao.jsx = Q1; - Ao.jsxDEV = void 0; - Ao.jsxs = Q1; + Oi.Fragment = Kf; + Oi.jsx = Gc; + Oi.jsxDEV = void 0; + Oi.jsxs = Gc; }); - var tl = H((ax, el) => { + var Yc = Z((t_, Xc) => { 'use strict'; - el.exports = Z1(); + Xc.exports = zc(); }); - var nl = H((rn) => { + var Jc = Z((jn) => { 'use strict'; - var Jd = Eo(); - function vn() {} - var Xt = { + var Uf = Li(); + function ns() {} + var Sn = { d: { - f: vn, + f: ns, r: function () { throw Error( 'Invalid form element. requestFormReset must be passed a form that was rendered by React.' ); }, - D: vn, - C: vn, - L: vn, - m: vn, - X: vn, - S: vn, - M: vn, + D: ns, + C: ns, + L: ns, + m: ns, + X: ns, + S: ns, + M: ns, }, p: 0, findDOMNode: null, }; - if (!Jd.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) + if (!Uf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' ); - function pr(e, t) { + function br(e, t) { if (e === 'font') return ''; if (typeof t == 'string') return t === 'use-credentials' ? t : ''; } - rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Xt; - rn.preconnect = function (e, t) { + jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Sn; + jn.preconnect = function (e, t) { typeof e == 'string' && (t ? ((t = t.crossOrigin), @@ -445,56 +445,56 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { : '' : void 0)) : (t = null), - Xt.d.C(e, t)); + Sn.d.C(e, t)); }; - rn.prefetchDNS = function (e) { - typeof e == 'string' && Xt.d.D(e); + jn.prefetchDNS = function (e) { + typeof e == 'string' && Sn.d.D(e); }; - rn.preinit = function (e, t) { + jn.preinit = function (e, t) { if (typeof e == 'string' && t && typeof t.as == 'string') { - var n = t.as, - o = pr(n, t.crossOrigin), + var s = t.as, + i = br(s, t.crossOrigin), r = typeof t.integrity == 'string' ? t.integrity : void 0, - s = typeof t.fetchPriority == 'string' ? t.fetchPriority : void 0; - n === 'style' - ? Xt.d.S(e, typeof t.precedence == 'string' ? t.precedence : void 0, { - crossOrigin: o, + a = typeof t.fetchPriority == 'string' ? t.fetchPriority : void 0; + s === 'style' + ? Sn.d.S(e, typeof t.precedence == 'string' ? t.precedence : void 0, { + crossOrigin: i, integrity: r, - fetchPriority: s, + fetchPriority: a, }) - : n === 'script' && - Xt.d.X(e, { - crossOrigin: o, + : s === 'script' && + Sn.d.X(e, { + crossOrigin: i, integrity: r, - fetchPriority: s, + fetchPriority: a, nonce: typeof t.nonce == 'string' ? t.nonce : void 0, }); } }; - rn.preinitModule = function (e, t) { + jn.preinitModule = function (e, t) { if (typeof e == 'string') if (typeof t == 'object' && t !== null) { if (t.as == null || t.as === 'script') { - var n = pr(t.as, t.crossOrigin); - Xt.d.M(e, { - crossOrigin: n, + var s = br(t.as, t.crossOrigin); + Sn.d.M(e, { + crossOrigin: s, integrity: typeof t.integrity == 'string' ? t.integrity : void 0, nonce: typeof t.nonce == 'string' ? t.nonce : void 0, }); } - } else t == null && Xt.d.M(e); + } else t == null && Sn.d.M(e); }; - rn.preload = function (e, t) { + jn.preload = function (e, t) { if ( typeof e == 'string' && typeof t == 'object' && t !== null && typeof t.as == 'string' ) { - var n = t.as, - o = pr(n, t.crossOrigin); - Xt.d.L(e, n, { - crossOrigin: o, + var s = t.as, + i = br(s, t.crossOrigin); + Sn.d.L(e, s, { + crossOrigin: i, integrity: typeof t.integrity == 'string' ? t.integrity : void 0, nonce: typeof t.nonce == 'string' ? t.nonce : void 0, type: typeof t.type == 'string' ? t.type : void 0, @@ -509,121 +509,121 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }); } }; - rn.preloadModule = function (e, t) { + jn.preloadModule = function (e, t) { if (typeof e == 'string') if (t) { - var n = pr(t.as, t.crossOrigin); - Xt.d.m(e, { + var s = br(t.as, t.crossOrigin); + Sn.d.m(e, { as: typeof t.as == 'string' && t.as !== 'script' ? t.as : void 0, - crossOrigin: n, + crossOrigin: s, integrity: typeof t.integrity == 'string' ? t.integrity : void 0, }); - } else Xt.d.m(e); + } else Sn.d.m(e); }; - rn.version = '19.0.0'; + jn.version = '19.0.0'; }); - var rl = H((cx, ol) => { + var Zc = Z((s_, Qc) => { 'use strict'; - ol.exports = nl(); + Qc.exports = Jc(); }); - var oc = H((Gt) => { + var Qu = Z((En) => { 'use strict'; - var Qd = rl(), - Zd = Eo(), - xl = new MessageChannel(), - gl = []; - xl.port1.onmessage = function () { - var e = gl.shift(); + var Hf = Zc(), + Wf = Li(), + Tu = new MessageChannel(), + yu = []; + Tu.port1.onmessage = function () { + var e = yu.shift(); e && e(); }; - function Do(e) { - gl.push(e), xl.port2.postMessage(null); + function Bi(e) { + yu.push(e), Tu.port2.postMessage(null); } - function ef(e) { + function Gf(e) { setTimeout(function () { throw e; }); } - var tf = Promise, - Cl = + var zf = Promise, + ku = typeof queueMicrotask == 'function' ? queueMicrotask : function (e) { - tf.resolve(null).then(e).catch(ef); + zf.resolve(null).then(e).catch(Gf); }, - Et = null, - At = 0; - function dr(e, t) { + ln = null, + cn = 0; + function Cr(e, t) { if (t.byteLength !== 0) if (2048 < t.byteLength) - 0 < At && - (e.enqueue(new Uint8Array(Et.buffer, 0, At)), - (Et = new Uint8Array(2048)), - (At = 0)), + 0 < cn && + (e.enqueue(new Uint8Array(ln.buffer, 0, cn)), + (ln = new Uint8Array(2048)), + (cn = 0)), e.enqueue(t); else { - var n = Et.length - At; - n < t.byteLength && - (n === 0 - ? e.enqueue(Et) - : (Et.set(t.subarray(0, n), At), - e.enqueue(Et), - (t = t.subarray(n))), - (Et = new Uint8Array(2048)), - (At = 0)), - Et.set(t, At), - (At += t.byteLength); + var s = ln.length - cn; + s < t.byteLength && + (s === 0 + ? e.enqueue(ln) + : (ln.set(t.subarray(0, s), cn), + e.enqueue(ln), + (t = t.subarray(s))), + (ln = new Uint8Array(2048)), + (cn = 0)), + ln.set(t, cn), + (cn += t.byteLength); } return !0; } - var nf = new TextEncoder(); - function Rt(e) { - return nf.encode(e); + var Xf = new TextEncoder(); + function pn(e) { + return Xf.encode(e); } - function xi(e) { + function la(e) { return e.byteLength; } - function wl(e, t) { + function vu(e, t) { typeof e.error == 'function' ? e.error(t) : e.close(); } - var gn = Symbol.for('react.client.reference'), - mr = Symbol.for('react.server.reference'); - function so(e, t, n) { + var rs = Symbol.for('react.client.reference'), + Ar = Symbol.for('react.server.reference'); + function ti(e, t, s) { return Object.defineProperties(e, { - $$typeof: {value: gn}, + $$typeof: {value: rs}, $$id: {value: t}, - $$async: {value: n}, + $$async: {value: s}, }); } - var of = Function.prototype.bind, - rf = Array.prototype.slice; - function Il() { - var e = of.apply(this, arguments); - if (this.$$typeof === mr) { - var t = rf.call(arguments, 1), - n = {value: mr}, - o = {value: this.$$id}; + var Yf = Function.prototype.bind, + Jf = Array.prototype.slice; + function xu() { + var e = Yf.apply(this, arguments); + if (this.$$typeof === Ar) { + var t = Jf.call(arguments, 1), + s = {value: Ar}, + i = {value: this.$$id}; return ( (t = {value: this.$$bound ? this.$$bound.concat(t) : t}), Object.defineProperties(e, { - $$typeof: n, - $$id: o, + $$typeof: s, + $$id: i, $$bound: t, - bind: {value: Il, configurable: !0}, + bind: {value: xu, configurable: !0}, }) ); } return e; } - var sf = { + var Qf = { value: function () { return 'function () { [omitted code] }'; }, configurable: !0, writable: !0, }, - af = Promise.prototype, - lf = { + Zf = Promise.prototype, + ed = { get: function (e, t) { switch (t) { case '$$typeof': @@ -665,7 +665,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { throw Error('Cannot assign to a client module from a server module.'); }, }; - function sl(e, t) { + function eu(e, t) { switch (t) { case '$$typeof': return e.$$typeof; @@ -686,13 +686,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { case Symbol.toStringTag: return Object.prototype[Symbol.toStringTag]; case '__esModule': - var n = e.$$id; + var s = e.$$id; return ( - (e.default = so( + (e.default = ti( function () { throw Error( 'Attempted to call the default export of ' + - n + + s + " from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component." ); }, @@ -704,14 +704,14 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { case 'then': if (e.then) return e.then; if (e.$$async) return; - var o = so({}, e.$$id, !0), - r = new Proxy(o, Sl); + var i = ti({}, e.$$id, !0), + r = new Proxy(i, gu); return ( (e.status = 'fulfilled'), (e.value = r), - (e.then = so( - function (s) { - return Promise.resolve(s(r)); + (e.then = ti( + function (a) { + return Promise.resolve(a(r)); }, e.$$id + '#then', !1 @@ -723,9 +723,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { 'Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.' ); return ( - (o = e[t]), - o || - ((o = so( + (i = e[t]), + i || + ((i = ti( function () { throw Error( 'Attempted to call ' + @@ -738,160 +738,160 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { e.$$id + '#' + t, e.$$async )), - Object.defineProperty(o, 'name', {value: t}), - (o = e[t] = new Proxy(o, lf))), - o + Object.defineProperty(i, 'name', {value: t}), + (i = e[t] = new Proxy(i, ed))), + i ); } - var Sl = { + var gu = { get: function (e, t) { - return sl(e, t); + return eu(e, t); }, getOwnPropertyDescriptor: function (e, t) { - var n = Object.getOwnPropertyDescriptor(e, t); + var s = Object.getOwnPropertyDescriptor(e, t); return ( - n || - ((n = { - value: sl(e, t), + s || + ((s = { + value: eu(e, t), writable: !1, configurable: !1, enumerable: !1, }), - Object.defineProperty(e, t, n)), - n + Object.defineProperty(e, t, s)), + s ); }, getPrototypeOf: function () { - return af; + return Zf; }, set: function () { throw Error('Cannot assign to a client module from a server module.'); }, }, - bl = Qd.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - an = bl.d; - bl.d = {f: an.f, r: an.r, D: cf, C: uf, L: hr, m: El, X: df, S: pf, M: ff}; - function cf(e) { + _u = Hf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, + qn = _u.d; + _u.d = {f: qn.f, r: qn.r, D: td, C: nd, L: Sr, m: bu, X: id, S: sd, M: rd}; + function td(e) { if (typeof e == 'string' && e) { - var t = De || null; + var t = st || null; if (t) { - var n = t.hints, - o = 'D|' + e; - n.has(o) || (n.add(o), ft(t, 'D', e)); - } else an.D(e); + var s = t.hints, + i = 'D|' + e; + s.has(i) || (s.add(i), Ut(t, 'D', e)); + } else qn.D(e); } } - function uf(e, t) { + function nd(e, t) { if (typeof e == 'string') { - var n = De || null; - if (n) { - var o = n.hints, + var s = st || null; + if (s) { + var i = s.hints, r = 'C|' + (t ?? 'null') + '|' + e; - o.has(r) || - (o.add(r), - typeof t == 'string' ? ft(n, 'C', [e, t]) : ft(n, 'C', e)); - } else an.C(e, t); + i.has(r) || + (i.add(r), + typeof t == 'string' ? Ut(s, 'C', [e, t]) : Ut(s, 'C', e)); + } else qn.C(e, t); } } - function hr(e, t, n) { + function Sr(e, t, s) { if (typeof e == 'string') { - var o = De || null; - if (o) { - var r = o.hints, - s = 'L'; - if (t === 'image' && n) { - var i = n.imageSrcSet, - a = n.imageSizes, - u = ''; - typeof i == 'string' && i !== '' - ? ((u += '[' + i + ']'), - typeof a == 'string' && (u += '[' + a + ']')) - : (u += '[][]' + e), - (s += '[image]' + u); - } else s += '[' + t + ']' + e; - r.has(s) || - (r.add(s), - (n = Mo(n)) ? ft(o, 'L', [e, t, n]) : ft(o, 'L', [e, t])); - } else an.L(e, t, n); - } - } - function El(e, t) { + var i = st || null; + if (i) { + var r = i.hints, + a = 'L'; + if (t === 'image' && s) { + var p = s.imageSrcSet, + d = s.imageSizes, + y = ''; + typeof p == 'string' && p !== '' + ? ((y += '[' + p + ']'), + typeof d == 'string' && (y += '[' + d + ']')) + : (y += '[][]' + e), + (a += '[image]' + y); + } else a += '[' + t + ']' + e; + r.has(a) || + (r.add(a), + (s = ji(s)) ? Ut(i, 'L', [e, t, s]) : Ut(i, 'L', [e, t])); + } else qn.L(e, t, s); + } + } + function bu(e, t) { if (typeof e == 'string') { - var n = De || null; - if (n) { - var o = n.hints, + var s = st || null; + if (s) { + var i = s.hints, r = 'm|' + e; - return o.has(r) + return i.has(r) ? void 0 - : (o.add(r), (t = Mo(t)) ? ft(n, 'm', [e, t]) : ft(n, 'm', e)); + : (i.add(r), (t = ji(t)) ? Ut(s, 'm', [e, t]) : Ut(s, 'm', e)); } - an.m(e, t); + qn.m(e, t); } } - function pf(e, t, n) { + function sd(e, t, s) { if (typeof e == 'string') { - var o = De || null; - if (o) { - var r = o.hints, - s = 'S|' + e; - return r.has(s) + var i = st || null; + if (i) { + var r = i.hints, + a = 'S|' + e; + return r.has(a) ? void 0 - : (r.add(s), - (n = Mo(n)) - ? ft(o, 'S', [e, typeof t == 'string' ? t : 0, n]) + : (r.add(a), + (s = ji(s)) + ? Ut(i, 'S', [e, typeof t == 'string' ? t : 0, s]) : typeof t == 'string' - ? ft(o, 'S', [e, t]) - : ft(o, 'S', e)); + ? Ut(i, 'S', [e, t]) + : Ut(i, 'S', e)); } - an.S(e, t, n); + qn.S(e, t, s); } } - function df(e, t) { + function id(e, t) { if (typeof e == 'string') { - var n = De || null; - if (n) { - var o = n.hints, + var s = st || null; + if (s) { + var i = s.hints, r = 'X|' + e; - return o.has(r) + return i.has(r) ? void 0 - : (o.add(r), (t = Mo(t)) ? ft(n, 'X', [e, t]) : ft(n, 'X', e)); + : (i.add(r), (t = ji(t)) ? Ut(s, 'X', [e, t]) : Ut(s, 'X', e)); } - an.X(e, t); + qn.X(e, t); } } - function ff(e, t) { + function rd(e, t) { if (typeof e == 'string') { - var n = De || null; - if (n) { - var o = n.hints, + var s = st || null; + if (s) { + var i = s.hints, r = 'M|' + e; - return o.has(r) + return i.has(r) ? void 0 - : (o.add(r), (t = Mo(t)) ? ft(n, 'M', [e, t]) : ft(n, 'M', e)); + : (i.add(r), (t = ji(t)) ? Ut(s, 'M', [e, t]) : Ut(s, 'M', e)); } - an.M(e, t); + qn.M(e, t); } } - function Mo(e) { + function ji(e) { if (e == null) return null; var t = !1, - n = {}, - o; - for (o in e) e[o] != null && ((t = !0), (n[o] = e[o])); - return t ? n : null; + s = {}, + i; + for (i in e) e[i] != null && ((t = !0), (s[i] = e[i])); + return t ? s : null; } - function hf(e, t, n) { + function od(e, t, s) { switch (t) { case 'img': - t = n.src; - var o = n.srcSet; + t = s.src; + var i = s.srcSet; if ( !( - n.loading === 'lazy' || - (!t && !o) || + s.loading === 'lazy' || + (!t && !i) || (typeof t != 'string' && t != null) || - (typeof o != 'string' && o != null) || - n.fetchPriority === 'low' || + (typeof i != 'string' && i != null) || + s.fetchPriority === 'low' || e & 3 ) && (typeof t != 'string' || @@ -900,74 +900,74 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (t[1] !== 'a' && t[1] !== 'A') || (t[2] !== 't' && t[2] !== 'T') || (t[3] !== 'a' && t[3] !== 'A')) && - (typeof o != 'string' || - o[4] !== ':' || - (o[0] !== 'd' && o[0] !== 'D') || - (o[1] !== 'a' && o[1] !== 'A') || - (o[2] !== 't' && o[2] !== 'T') || - (o[3] !== 'a' && o[3] !== 'A')) + (typeof i != 'string' || + i[4] !== ':' || + (i[0] !== 'd' && i[0] !== 'D') || + (i[1] !== 'a' && i[1] !== 'A') || + (i[2] !== 't' && i[2] !== 'T') || + (i[3] !== 'a' && i[3] !== 'A')) ) { - var r = typeof n.sizes == 'string' ? n.sizes : void 0, - s = n.crossOrigin; - hr(t || '', 'image', { - imageSrcSet: o, + var r = typeof s.sizes == 'string' ? s.sizes : void 0, + a = s.crossOrigin; + Sr(t || '', 'image', { + imageSrcSet: i, imageSizes: r, crossOrigin: - typeof s == 'string' - ? s === 'use-credentials' - ? s + typeof a == 'string' + ? a === 'use-credentials' + ? a : '' : void 0, - integrity: n.integrity, - type: n.type, - fetchPriority: n.fetchPriority, - referrerPolicy: n.referrerPolicy, + integrity: s.integrity, + type: s.type, + fetchPriority: s.fetchPriority, + referrerPolicy: s.referrerPolicy, }); } return e; case 'link': if ( - ((t = n.rel), - (o = n.href), + ((t = s.rel), + (i = s.href), !( e & 1 || - n.itemProp != null || + s.itemProp != null || typeof t != 'string' || - typeof o != 'string' || - o === '' + typeof i != 'string' || + i === '' )) ) switch (t) { case 'preload': - hr(o, n.as, { - crossOrigin: n.crossOrigin, - integrity: n.integrity, - nonce: n.nonce, - type: n.type, - fetchPriority: n.fetchPriority, - referrerPolicy: n.referrerPolicy, - imageSrcSet: n.imageSrcSet, - imageSizes: n.imageSizes, - media: n.media, + Sr(i, s.as, { + crossOrigin: s.crossOrigin, + integrity: s.integrity, + nonce: s.nonce, + type: s.type, + fetchPriority: s.fetchPriority, + referrerPolicy: s.referrerPolicy, + imageSrcSet: s.imageSrcSet, + imageSizes: s.imageSizes, + media: s.media, }); break; case 'modulepreload': - El(o, { - as: n.as, - crossOrigin: n.crossOrigin, - integrity: n.integrity, - nonce: n.nonce, + bu(i, { + as: s.as, + crossOrigin: s.crossOrigin, + integrity: s.integrity, + nonce: s.nonce, }); break; case 'stylesheet': - hr(o, 'stylesheet', { - crossOrigin: n.crossOrigin, - integrity: n.integrity, - nonce: n.nonce, - type: n.type, - fetchPriority: n.fetchPriority, - referrerPolicy: n.referrerPolicy, - media: n.media, + Sr(i, 'stylesheet', { + crossOrigin: s.crossOrigin, + integrity: s.integrity, + nonce: s.nonce, + type: s.type, + fetchPriority: s.fetchPriority, + referrerPolicy: s.referrerPolicy, + media: s.media, }); } return e; @@ -979,8 +979,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return e; } } - var gi = Symbol.for('react.temporary.reference'), - Tf = { + var ca = Symbol.for('react.temporary.reference'), + ad = { get: function (e, t) { switch (t) { case '$$typeof': @@ -1018,44 +1018,44 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); }, }; - function yf(e, t) { - var n = Object.defineProperties( + function ld(e, t) { + var s = Object.defineProperties( function () { throw Error( "Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component." ); }, - {$$typeof: {value: gi}} + {$$typeof: {value: ca}} ); - return (n = new Proxy(n, Tf)), e.set(n, t), n; - } - var mf = Symbol.for('react.element'), - Yt = Symbol.for('react.transitional.element'), - Ci = Symbol.for('react.fragment'), - il = Symbol.for('react.context'), - Al = Symbol.for('react.forward_ref'), - kf = Symbol.for('react.suspense'), - vf = Symbol.for('react.suspense_list'), - Pl = Symbol.for('react.memo'), - Lo = Symbol.for('react.lazy'), - _f = Symbol.for('react.memo_cache_sentinel'); + return (s = new Proxy(s, ad)), e.set(s, t), s; + } + var cd = Symbol.for('react.element'), + In = Symbol.for('react.transitional.element'), + ua = Symbol.for('react.fragment'), + tu = Symbol.for('react.context'), + Cu = Symbol.for('react.forward_ref'), + ud = Symbol.for('react.suspense'), + pd = Symbol.for('react.suspense_list'), + wu = Symbol.for('react.memo'), + $i = Symbol.for('react.lazy'), + hd = Symbol.for('react.memo_cache_sentinel'); Symbol.for('react.postpone'); - var al = Symbol.iterator; - function Rl(e) { + var nu = Symbol.iterator; + function Su(e) { return e === null || typeof e != 'object' ? null - : ((e = (al && e[al]) || e['@@iterator']), + : ((e = (nu && e[nu]) || e['@@iterator']), typeof e == 'function' ? e : null); } - var Hn = Symbol.asyncIterator; - function Kn() {} - var wi = Error( + var Ss = Symbol.asyncIterator; + function Cs() {} + var pa = Error( "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`." ); - function xf(e, t, n) { + function fd(e, t, s) { switch ( - ((n = e[n]), - n === void 0 ? e.push(t) : n !== t && (t.then(Kn, Kn), (t = n)), + ((s = e[s]), + s === void 0 ? e.push(t) : s !== t && (t.then(Cs, Cs), (t = s)), t.status) ) { case 'fulfilled': @@ -1065,20 +1065,20 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { default: switch ( (typeof t.status == 'string' - ? t.then(Kn, Kn) + ? t.then(Cs, Cs) : ((e = t), (e.status = 'pending'), e.then( - function (o) { + function (i) { if (t.status === 'pending') { var r = t; - (r.status = 'fulfilled'), (r.value = o); + (r.status = 'fulfilled'), (r.value = i); } }, - function (o) { + function (i) { if (t.status === 'pending') { var r = t; - (r.status = 'rejected'), (r.reason = o); + (r.status = 'rejected'), (r.reason = i); } } )), @@ -1089,124 +1089,124 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { case 'rejected': throw t.reason; } - throw ((Tr = t), wi); + throw ((Ir = t), pa); } } - var Tr = null; - function Nl() { - if (Tr === null) + var Ir = null; + function Iu() { + if (Ir === null) throw Error( 'Expected a suspended thenable. This is a bug in React. Please file an issue.' ); - var e = Tr; - return (Tr = null), e; + var e = Ir; + return (Ir = null), e; } - var Ro = null, - hi = 0, - io = null; - function Dl() { - var e = io || []; - return (io = null), e; + var Mi = null, + ta = 0, + ni = null; + function Eu() { + var e = ni || []; + return (ni = null), e; } - var Ol = { - readContext: Ti, - use: wf, + var Au = { + readContext: na, + use: Td, useCallback: function (e) { return e; }, - useContext: Ti, - useEffect: at, - useImperativeHandle: at, - useLayoutEffect: at, - useInsertionEffect: at, + useContext: na, + useEffect: Vt, + useImperativeHandle: Vt, + useLayoutEffect: Vt, + useInsertionEffect: Vt, useMemo: function (e) { return e(); }, - useReducer: at, - useRef: at, - useState: at, + useReducer: Vt, + useRef: Vt, + useState: Vt, useDebugValue: function () {}, - useDeferredValue: at, - useTransition: at, - useSyncExternalStore: at, - useId: Cf, - useHostTransitionStatus: at, - useFormState: at, - useActionState: at, - useOptimistic: at, + useDeferredValue: Vt, + useTransition: Vt, + useSyncExternalStore: Vt, + useId: md, + useHostTransitionStatus: Vt, + useFormState: Vt, + useActionState: Vt, + useOptimistic: Vt, useMemoCache: function (e) { - for (var t = Array(e), n = 0; n < e; n++) t[n] = _f; + for (var t = Array(e), s = 0; s < e; s++) t[s] = hd; return t; }, useCacheRefresh: function () { - return gf; + return dd; }, }; - Ol.useEffectEvent = at; - function at() { + Au.useEffectEvent = Vt; + function Vt() { throw Error('This Hook is not supported in Server Components.'); } - function gf() { + function dd() { throw Error( 'Refreshing the cache is not supported in Server Components.' ); } - function Ti() { + function na() { throw Error('Cannot read a Client Context from a Server Component.'); } - function Cf() { - if (Ro === null) + function md() { + if (Mi === null) throw Error('useId can only be used while React is rendering'); - var e = Ro.identifierCount++; - return '_' + Ro.identifierPrefix + 'S_' + e.toString(32) + '_'; + var e = Mi.identifierCount++; + return '_' + Mi.identifierPrefix + 'S_' + e.toString(32) + '_'; } - function wf(e) { + function Td(e) { if ((e !== null && typeof e == 'object') || typeof e == 'function') { if (typeof e.then == 'function') { - var t = hi; - return (hi += 1), io === null && (io = []), xf(io, e, t); + var t = ta; + return (ta += 1), ni === null && (ni = []), fd(ni, e, t); } - e.$$typeof === il && Ti(); + e.$$typeof === tu && na(); } - throw e.$$typeof === gn - ? e.value != null && e.value.$$typeof === il + throw e.$$typeof === rs + ? e.value != null && e.value.$$typeof === tu ? Error('Cannot read a Client Context from a Server Component.') : Error('Cannot use() an already resolved Client Reference.') : Error('An unsupported type was passed to use(): ' + String(e)); } - var ll = { + var su = { getCacheForType: function (e) { - var t = (t = De || null) ? t.cache : new Map(), - n = t.get(e); - return n === void 0 && ((n = e()), t.set(e, n)), n; + var t = (t = st || null) ? t.cache : new Map(), + s = t.get(e); + return s === void 0 && ((s = e()), t.set(e, s)), s; }, cacheSignal: function () { - var e = De || null; + var e = st || null; return e ? e.cacheController.signal : null; }, }, - Un = Zd.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; - if (!Un) + Is = Wf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + if (!Is) throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' ); - var Kt = Array.isArray, - lo = Object.getPrototypeOf; - function Ml(e) { + var kn = Array.isArray, + ii = Object.getPrototypeOf; + function Pu(e) { return (e = Object.prototype.toString.call(e)), e.slice(8, e.length - 1); } - function cl(e) { + function iu(e) { switch (typeof e) { case 'string': return JSON.stringify(10 >= e.length ? e : e.slice(0, 10) + '...'); case 'object': - return Kt(e) + return kn(e) ? '[...]' - : e !== null && e.$$typeof === yi + : e !== null && e.$$typeof === sa ? 'client' - : ((e = Ml(e)), e === 'Object' ? '{...}' : e); + : ((e = Pu(e)), e === 'Object' ? '{...}' : e); case 'function': - return e.$$typeof === yi + return e.$$typeof === sa ? 'client' : (e = e.displayName || e.name) ? 'function ' + e @@ -1215,71 +1215,71 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return String(e); } } - function yr(e) { + function Er(e) { if (typeof e == 'string') return e; switch (e) { - case kf: + case ud: return 'Suspense'; - case vf: + case pd: return 'SuspenseList'; } if (typeof e == 'object') switch (e.$$typeof) { - case Al: - return yr(e.render); - case Pl: - return yr(e.type); - case Lo: + case Cu: + return Er(e.render); + case wu: + return Er(e.type); + case $i: var t = e._payload; e = e._init; try { - return yr(e(t)); + return Er(e(t)); } catch {} } return ''; } - var yi = Symbol.for('react.client.reference'); - function Bn(e, t) { - var n = Ml(e); - if (n !== 'Object' && n !== 'Array') return n; - n = -1; - var o = 0; - if (Kt(e)) { - for (var r = '[', s = 0; s < e.length; s++) { - 0 < s && (r += ', '); - var i = e[s]; - (i = typeof i == 'object' && i !== null ? Bn(i) : cl(i)), - '' + s === t - ? ((n = r.length), (o = i.length), (r += i)) + var sa = Symbol.for('react.client.reference'); + function _s(e, t) { + var s = Pu(e); + if (s !== 'Object' && s !== 'Array') return s; + s = -1; + var i = 0; + if (kn(e)) { + for (var r = '[', a = 0; a < e.length; a++) { + 0 < a && (r += ', '); + var p = e[a]; + (p = typeof p == 'object' && p !== null ? _s(p) : iu(p)), + '' + a === t + ? ((s = r.length), (i = p.length), (r += p)) : (r = - 10 > i.length && 40 > r.length + i.length - ? r + i + 10 > p.length && 40 > r.length + p.length + ? r + p : r + '...'); } r += ']'; - } else if (e.$$typeof === Yt) r = '<' + yr(e.type) + '/>'; + } else if (e.$$typeof === In) r = '<' + Er(e.type) + '/>'; else { - if (e.$$typeof === yi) return 'client'; - for (r = '{', s = Object.keys(e), i = 0; i < s.length; i++) { - 0 < i && (r += ', '); - var a = s[i], - u = JSON.stringify(a); - (r += ('"' + a + '"' === u ? a : u) + ': '), - (u = e[a]), - (u = typeof u == 'object' && u !== null ? Bn(u) : cl(u)), - a === t - ? ((n = r.length), (o = u.length), (r += u)) + if (e.$$typeof === sa) return 'client'; + for (r = '{', a = Object.keys(e), p = 0; p < a.length; p++) { + 0 < p && (r += ', '); + var d = a[p], + y = JSON.stringify(d); + (r += ('"' + d + '"' === y ? d : y) + ': '), + (y = e[d]), + (y = typeof y == 'object' && y !== null ? _s(y) : iu(y)), + d === t + ? ((s = r.length), (i = y.length), (r += y)) : (r = - 10 > u.length && 40 > r.length + u.length - ? r + u + 10 > y.length && 40 > r.length + y.length + ? r + y : r + '...'); } r += '}'; } return t === void 0 ? r - : -1 < n && 0 < o - ? ((e = ' '.repeat(n) + '^'.repeat(o)), + : -1 < s && 0 < i + ? ((e = ' '.repeat(s) + '^'.repeat(i)), ` ` + r + @@ -1289,32 +1289,32 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { : ` ` + r; } - var vr = Object.prototype.hasOwnProperty, - If = Object.prototype, - Wn = JSON.stringify; - function Sf(e) { + var Nr = Object.prototype.hasOwnProperty, + yd = Object.prototype, + Es = JSON.stringify; + function kd(e) { console.error(e); } - function Ll(e, t, n, o, r, s, i, a, u) { - if (Un.A !== null && Un.A !== ll) + function Nu(e, t, s, i, r, a, p, d, y) { + if (Is.A !== null && Is.A !== su) throw Error( 'Currently React only supports one RSC renderer at a time.' ); - Un.A = ll; - var h = new Set(), - v = [], - _ = new Set(); + Is.A = su; + var k = new Set(), + A = [], + u = new Set(); (this.type = e), (this.status = 10), (this.flushScheduled = !1), (this.destination = this.fatalError = null), - (this.bundlerConfig = n), + (this.bundlerConfig = s), (this.cache = new Map()), (this.cacheController = new AbortController()), (this.pendingChunks = this.nextChunkId = 0), - (this.hints = _), - (this.abortableTasks = h), - (this.pingedTasks = v), + (this.hints = u), + (this.abortableTasks = k), + (this.pingedTasks = A), (this.completedImportChunks = []), (this.completedHintChunks = []), (this.completedRegularChunks = []), @@ -1323,118 +1323,118 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (this.writtenClientReferences = new Map()), (this.writtenServerReferences = new Map()), (this.writtenObjects = new WeakMap()), - (this.temporaryReferences = u), - (this.identifierPrefix = a || ''), + (this.temporaryReferences = y), + (this.identifierPrefix = d || ''), (this.identifierCount = 1), (this.taintCleanupQueue = []), - (this.onError = o === void 0 ? Sf : o), - (this.onPostpone = r === void 0 ? Kn : r), - (this.onAllReady = s), - (this.onFatalError = i), - (e = Cn(this, t, null, !1, 0, h)), - v.push(e); - } - var De = null; - function ul(e, t, n) { - var o = Cn( + (this.onError = i === void 0 ? kd : i), + (this.onPostpone = r === void 0 ? Cs : r), + (this.onAllReady = a), + (this.onFatalError = p), + (e = os(this, t, null, !1, 0, k)), + A.push(e); + } + var st = null; + function ru(e, t, s) { + var i = os( e, - n, + s, t.keyPath, t.implicitSlot, t.formatContext, e.abortableTasks ); - switch (n.status) { + switch (s.status) { case 'fulfilled': - return (o.model = n.value), Oo(e, o), o.id; + return (i.model = s.value), Vi(e, i), i.id; case 'rejected': - return cn(e, o, n.reason), o.id; + return Un(e, i, s.reason), i.id; default: if (e.status === 12) return ( - e.abortableTasks.delete(o), + e.abortableTasks.delete(i), e.type === 21 - ? (co(o), uo(o, e)) - : ((t = e.fatalError), Ii(o), Si(o, e, t)), - o.id + ? (ri(i), oi(i, e)) + : ((t = e.fatalError), ha(i), fa(i, e, t)), + i.id ); - typeof n.status != 'string' && - ((n.status = 'pending'), - n.then( + typeof s.status != 'string' && + ((s.status = 'pending'), + s.then( function (r) { - n.status === 'pending' && - ((n.status = 'fulfilled'), (n.value = r)); + s.status === 'pending' && + ((s.status = 'fulfilled'), (s.value = r)); }, function (r) { - n.status === 'pending' && - ((n.status = 'rejected'), (n.reason = r)); + s.status === 'pending' && + ((s.status = 'rejected'), (s.reason = r)); } )); } return ( - n.then( + s.then( function (r) { - (o.model = r), Oo(e, o); + (i.model = r), Vi(e, i); }, function (r) { - o.status === 0 && (cn(e, o, r), Pt(e)); + i.status === 0 && (Un(e, i, r), un(e)); } ), - o.id + i.id ); } - function bf(e, t, n) { - function o(h) { - if (u.status === 0) - if (h.done) - (u.status = 1), - (h = - u.id.toString(16) + + function vd(e, t, s) { + function i(k) { + if (y.status === 0) + if (k.done) + (y.status = 1), + (k = + y.id.toString(16) + `:C `), - e.completedRegularChunks.push(Rt(h)), - e.abortableTasks.delete(u), - e.cacheController.signal.removeEventListener('abort', s), - Pt(e), - gr(e); + e.completedRegularChunks.push(pn(k)), + e.abortableTasks.delete(y), + e.cacheController.signal.removeEventListener('abort', a), + un(e), + Or(e); else try { - (u.model = h.value), + (y.model = k.value), e.pendingChunks++, - ql(e, u), - Pt(e), - a.read().then(o, r); - } catch (v) { - r(v); + Fu(e, y), + un(e), + d.read().then(i, r); + } catch (A) { + r(A); } } - function r(h) { - u.status === 0 && - (e.cacheController.signal.removeEventListener('abort', s), - cn(e, u, h), - Pt(e), - a.cancel(h).then(r, r)); - } - function s() { - if (u.status === 0) { - var h = e.cacheController.signal; - h.removeEventListener('abort', s), - (h = h.reason), + function r(k) { + y.status === 0 && + (e.cacheController.signal.removeEventListener('abort', a), + Un(e, y, k), + un(e), + d.cancel(k).then(r, r)); + } + function a() { + if (y.status === 0) { + var k = e.cacheController.signal; + k.removeEventListener('abort', a), + (k = k.reason), e.type === 21 - ? (e.abortableTasks.delete(u), co(u), uo(u, e)) - : (cn(e, u, h), Pt(e)), - a.cancel(h).then(r, r); + ? (e.abortableTasks.delete(y), ri(y), oi(y, e)) + : (Un(e, y, k), un(e)), + d.cancel(k).then(r, r); } } - var i = n.supportsBYOB; - if (i === void 0) + var p = s.supportsBYOB; + if (p === void 0) try { - n.getReader({mode: 'byob'}).releaseLock(), (i = !0); + s.getReader({mode: 'byob'}).releaseLock(), (p = !0); } catch { - i = !1; + p = !1; } - var a = n.getReader(), - u = Cn( + var d = s.getReader(), + y = os( e, t.model, t.keyPath, @@ -1445,75 +1445,75 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return ( e.pendingChunks++, (t = - u.id.toString(16) + + y.id.toString(16) + ':' + - (i ? 'r' : 'R') + + (p ? 'r' : 'R') + ` `), - e.completedRegularChunks.push(Rt(t)), - e.cacheController.signal.addEventListener('abort', s), - a.read().then(o, r), - Xe(u.id) + e.completedRegularChunks.push(pn(t)), + e.cacheController.signal.addEventListener('abort', a), + d.read().then(i, r), + Ct(y.id) ); } - function Ef(e, t, n, o) { - function r(u) { - if (a.status === 0) - if (u.done) { - if (((a.status = 1), u.value === void 0)) - var h = - a.id.toString(16) + + function xd(e, t, s, i) { + function r(y) { + if (d.status === 0) + if (y.done) { + if (((d.status = 1), y.value === void 0)) + var k = + d.id.toString(16) + `:C `; else try { - var v = jn(e, u.value, 0); - h = - a.id.toString(16) + + var A = bs(e, y.value, 0); + k = + d.id.toString(16) + ':C' + - Wn(Xe(v)) + + Es(Ct(A)) + ` `; - } catch (_) { - s(_); + } catch (u) { + a(u); return; } - e.completedRegularChunks.push(Rt(h)), - e.abortableTasks.delete(a), - e.cacheController.signal.removeEventListener('abort', i), - Pt(e), - gr(e); + e.completedRegularChunks.push(pn(k)), + e.abortableTasks.delete(d), + e.cacheController.signal.removeEventListener('abort', p), + un(e), + Or(e); } else try { - (a.model = u.value), + (d.model = y.value), e.pendingChunks++, - ql(e, a), - Pt(e), - o.next().then(r, s); - } catch (_) { - s(_); + Fu(e, d), + un(e), + i.next().then(r, a); + } catch (u) { + a(u); } } - function s(u) { - a.status === 0 && - (e.cacheController.signal.removeEventListener('abort', i), - cn(e, a, u), - Pt(e), - typeof o.throw == 'function' && o.throw(u).then(s, s)); - } - function i() { - if (a.status === 0) { - var u = e.cacheController.signal; - u.removeEventListener('abort', i); - var h = u.reason; + function a(y) { + d.status === 0 && + (e.cacheController.signal.removeEventListener('abort', p), + Un(e, d, y), + un(e), + typeof i.throw == 'function' && i.throw(y).then(a, a)); + } + function p() { + if (d.status === 0) { + var y = e.cacheController.signal; + y.removeEventListener('abort', p); + var k = y.reason; e.type === 21 - ? (e.abortableTasks.delete(a), co(a), uo(a, e)) - : (cn(e, a, u.reason), Pt(e)), - typeof o.throw == 'function' && o.throw(h).then(s, s); + ? (e.abortableTasks.delete(d), ri(d), oi(d, e)) + : (Un(e, d, y.reason), un(e)), + typeof i.throw == 'function' && i.throw(k).then(a, a); } } - n = n === o; - var a = Cn( + s = s === i; + var d = os( e, t.model, t.keyPath, @@ -1524,114 +1524,114 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return ( e.pendingChunks++, (t = - a.id.toString(16) + + d.id.toString(16) + ':' + - (n ? 'x' : 'X') + + (s ? 'x' : 'X') + ` `), - e.completedRegularChunks.push(Rt(t)), - e.cacheController.signal.addEventListener('abort', i), - o.next().then(r, s), - Xe(a.id) + e.completedRegularChunks.push(pn(t)), + e.cacheController.signal.addEventListener('abort', p), + i.next().then(r, a), + Ct(d.id) ); } - function ft(e, t, n) { - (n = Wn(n)), - (t = Rt( + function Ut(e, t, s) { + (s = Es(s)), + (t = pn( ':H' + t + - n + + s + ` ` )), e.completedHintChunks.push(t), - Pt(e); + un(e); } - function Af(e) { + function gd(e) { if (e.status === 'fulfilled') return e.value; throw e.status === 'rejected' ? e.reason : e; } - function Pf(e, t, n) { - switch (n.status) { + function _d(e, t, s) { + switch (s.status) { case 'fulfilled': - return n.value; + return s.value; case 'rejected': break; default: - typeof n.status != 'string' && - ((n.status = 'pending'), - n.then( - function (o) { - n.status === 'pending' && - ((n.status = 'fulfilled'), (n.value = o)); + typeof s.status != 'string' && + ((s.status = 'pending'), + s.then( + function (i) { + s.status === 'pending' && + ((s.status = 'fulfilled'), (s.value = i)); }, - function (o) { - n.status === 'pending' && - ((n.status = 'rejected'), (n.reason = o)); + function (i) { + s.status === 'pending' && + ((s.status = 'rejected'), (s.reason = i)); } )); } - return {$$typeof: Lo, _payload: n, _init: Af}; + return {$$typeof: $i, _payload: s, _init: gd}; } - function pl() {} - function Rf(e, t, n, o) { - if (typeof o != 'object' || o === null || o.$$typeof === gn) return o; - if (typeof o.then == 'function') return Pf(e, t, o); - var r = Rl(o); + function ou() {} + function bd(e, t, s, i) { + if (typeof i != 'object' || i === null || i.$$typeof === rs) return i; + if (typeof i.then == 'function') return _d(e, t, i); + var r = Su(i); return r ? ((e = {}), (e[Symbol.iterator] = function () { - return r.call(o); + return r.call(i); }), e) - : typeof o[Hn] != 'function' || - (typeof ReadableStream == 'function' && o instanceof ReadableStream) - ? o + : typeof i[Ss] != 'function' || + (typeof ReadableStream == 'function' && i instanceof ReadableStream) + ? i : ((e = {}), - (e[Hn] = function () { - return o[Hn](); + (e[Ss] = function () { + return i[Ss](); }), e); } - function dl(e, t, n, o, r) { - var s = t.thenableState; + function au(e, t, s, i, r) { + var a = t.thenableState; if ( ((t.thenableState = null), - (hi = 0), - (io = s), - (r = o(r, void 0)), + (ta = 0), + (ni = a), + (r = i(r, void 0)), e.status === 12) ) throw ( (typeof r == 'object' && r !== null && typeof r.then == 'function' && - r.$$typeof !== gn && - r.then(pl, pl), + r.$$typeof !== rs && + r.then(ou, ou), null) ); return ( - (r = Rf(e, t, o, r)), - (o = t.keyPath), - (s = t.implicitSlot), - n !== null - ? (t.keyPath = o === null ? n : o + ',' + n) - : o === null && (t.implicitSlot = !0), - (e = Fo(e, t, xr, '', r)), - (t.keyPath = o), - (t.implicitSlot = s), + (r = bd(e, t, i, r)), + (i = t.keyPath), + (a = t.implicitSlot), + s !== null + ? (t.keyPath = i === null ? s : i + ',' + s) + : i === null && (t.implicitSlot = !0), + (e = qi(e, t, Lr, '', r)), + (t.keyPath = i), + (t.implicitSlot = a), e ); } - function fl(e, t, n) { + function lu(e, t, s) { return t.keyPath !== null - ? ((e = [Yt, Ci, t.keyPath, {children: n}]), t.implicitSlot ? [e] : e) - : n; + ? ((e = [In, ua, t.keyPath, {children: s}]), t.implicitSlot ? [e] : e) + : s; } - var xn = 0; - function hl(e, t) { + var is = 0; + function cu(e, t) { return ( - (t = Cn( + (t = os( e, t.model, t.keyPath, @@ -1639,386 +1639,386 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { t.formatContext, e.abortableTasks )), - Oo(e, t), - qn(t.id) + Vi(e, t), + ws(t.id) ); } - function mi(e, t, n, o, r, s) { + function ia(e, t, s, i, r, a) { if (r != null) throw Error( 'Refs cannot be used in Server Components, nor passed to Client Components.' ); - if (typeof n == 'function' && n.$$typeof !== gn && n.$$typeof !== gi) - return dl(e, t, o, n, s); - if (n === Ci && o === null) + if (typeof s == 'function' && s.$$typeof !== rs && s.$$typeof !== ca) + return au(e, t, i, s, a); + if (s === ua && i === null) return ( - (n = t.implicitSlot), + (s = t.implicitSlot), t.keyPath === null && (t.implicitSlot = !0), - (s = Fo(e, t, xr, '', s.children)), - (t.implicitSlot = n), - s + (a = qi(e, t, Lr, '', a.children)), + (t.implicitSlot = s), + a ); - if (n != null && typeof n == 'object' && n.$$typeof !== gn) - switch (n.$$typeof) { - case Lo: - var i = n._init; - if (((n = i(n._payload)), e.status === 12)) throw null; - return mi(e, t, n, o, r, s); - case Al: - return dl(e, t, o, n.render, s); - case Pl: - return mi(e, t, n.type, o, r, s); + if (s != null && typeof s == 'object' && s.$$typeof !== rs) + switch (s.$$typeof) { + case $i: + var p = s._init; + if (((s = p(s._payload)), e.status === 12)) throw null; + return ia(e, t, s, i, r, a); + case Cu: + return au(e, t, i, s.render, a); + case wu: + return ia(e, t, s.type, i, r, a); } else - typeof n == 'string' && + typeof s == 'string' && ((r = t.formatContext), - (i = hf(r, n, s)), - r !== i && s.children != null && jn(e, s.children, i)); + (p = od(r, s, a)), + r !== p && a.children != null && bs(e, a.children, p)); return ( - (e = o), - (o = t.keyPath), - e === null ? (e = o) : o !== null && (e = o + ',' + e), - (s = [Yt, n, e, s]), - (t = t.implicitSlot && e !== null ? [s] : s), + (e = i), + (i = t.keyPath), + e === null ? (e = i) : i !== null && (e = i + ',' + e), + (a = [In, s, e, a]), + (t = t.implicitSlot && e !== null ? [a] : a), t ); } - function Oo(e, t) { - var n = e.pingedTasks; - n.push(t), - n.length === 1 && + function Vi(e, t) { + var s = e.pingedTasks; + s.push(t), + s.length === 1 && ((e.flushScheduled = e.destination !== null), e.type === 21 || e.status === 10 - ? Cl(function () { - return ki(e); + ? ku(function () { + return ra(e); }) - : Do(function () { - return ki(e); + : Bi(function () { + return ra(e); })); } - function Cn(e, t, n, o, r, s) { + function os(e, t, s, i, r, a) { e.pendingChunks++; - var i = e.nextChunkId++; + var p = e.nextChunkId++; typeof t != 'object' || t === null || - n !== null || - o || - e.writtenObjects.set(t, Xe(i)); - var a = { - id: i, + s !== null || + i || + e.writtenObjects.set(t, Ct(p)); + var d = { + id: p, status: 0, model: t, - keyPath: n, - implicitSlot: o, + keyPath: s, + implicitSlot: i, formatContext: r, ping: function () { - return Oo(e, a); + return Vi(e, d); }, - toJSON: function (u, h) { - xn += u.length; - var v = a.keyPath, - _ = a.implicitSlot; + toJSON: function (y, k) { + is += y.length; + var A = d.keyPath, + u = d.implicitSlot; try { - var x = Fo(e, a, this, u, h); - } catch (G) { + var f = qi(e, d, this, y, k); + } catch (g) { if ( - ((u = a.model), - (u = - typeof u == 'object' && - u !== null && - (u.$$typeof === Yt || u.$$typeof === Lo)), + ((y = d.model), + (y = + typeof y == 'object' && + y !== null && + (y.$$typeof === In || y.$$typeof === $i)), e.status === 12) ) - (a.status = 3), + (d.status = 3), e.type === 21 - ? ((v = e.nextChunkId++), (v = u ? qn(v) : Xe(v)), (x = v)) - : ((v = e.fatalError), (x = u ? qn(v) : Xe(v))); + ? ((A = e.nextChunkId++), (A = y ? ws(A) : Ct(A)), (f = A)) + : ((A = e.fatalError), (f = y ? ws(A) : Ct(A))); else if ( - ((h = G === wi ? Nl() : G), - typeof h == 'object' && h !== null && typeof h.then == 'function') + ((k = g === pa ? Iu() : g), + typeof k == 'object' && k !== null && typeof k.then == 'function') ) { - x = Cn( + f = os( e, - a.model, - a.keyPath, - a.implicitSlot, - a.formatContext, + d.model, + d.keyPath, + d.implicitSlot, + d.formatContext, e.abortableTasks ); - var L = x.ping; - h.then(L, L), - (x.thenableState = Dl()), - (a.keyPath = v), - (a.implicitSlot = _), - (x = u ? qn(x.id) : Xe(x.id)); + var x = f.ping; + k.then(x, x), + (f.thenableState = Eu()), + (d.keyPath = A), + (d.implicitSlot = u), + (f = y ? ws(f.id) : Ct(f.id)); } else - (a.keyPath = v), - (a.implicitSlot = _), + (d.keyPath = A), + (d.implicitSlot = u), e.pendingChunks++, - (v = e.nextChunkId++), - (_ = ln(e, h, a)), - _r(e, v, _), - (x = u ? qn(v) : Xe(v)); + (A = e.nextChunkId++), + (u = Kn(e, k, d)), + Rr(e, A, u), + (f = y ? ws(A) : Ct(A)); } - return x; + return f; }, thenableState: null, }; - return s.add(a), a; + return a.add(d), d; } - function Xe(e) { + function Ct(e) { return '$' + e.toString(16); } - function qn(e) { + function ws(e) { return '$L' + e.toString(16); } - function Fl(e, t, n) { + function Ru(e, t, s) { return ( - (e = Wn(n)), + (e = Es(s)), (t = t.toString(16) + ':' + e + ` `), - Rt(t) + pn(t) ); } - function Tl(e, t, n, o) { - var r = o.$$async ? o.$$id + '#async' : o.$$id, - s = e.writtenClientReferences, - i = s.get(r); - if (i !== void 0) return t[0] === Yt && n === '1' ? qn(i) : Xe(i); + function uu(e, t, s, i) { + var r = i.$$async ? i.$$id + '#async' : i.$$id, + a = e.writtenClientReferences, + p = a.get(r); + if (p !== void 0) return t[0] === In && s === '1' ? ws(p) : Ct(p); try { - var a = e.bundlerConfig, - u = o.$$id; - i = ''; - var h = a[u]; - if (h) i = h.name; + var d = e.bundlerConfig, + y = i.$$id; + p = ''; + var k = d[y]; + if (k) p = k.name; else { - var v = u.lastIndexOf('#'); - if ((v !== -1 && ((i = u.slice(v + 1)), (h = a[u.slice(0, v)])), !h)) + var A = y.lastIndexOf('#'); + if ((A !== -1 && ((p = y.slice(A + 1)), (k = d[y.slice(0, A)])), !k)) throw Error( 'Could not find the module "' + - u + + y + '" in the React Client Manifest. This is probably a bug in the React Server Components bundler.' ); } - if (h.async === !0 && o.$$async === !0) + if (k.async === !0 && i.$$async === !0) throw Error( 'The module "' + - u + + y + '" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.' ); - var _ = - h.async === !0 || o.$$async === !0 - ? [h.id, h.chunks, i, 1] - : [h.id, h.chunks, i]; + var u = + k.async === !0 || i.$$async === !0 + ? [k.id, k.chunks, p, 1] + : [k.id, k.chunks, p]; e.pendingChunks++; - var x = e.nextChunkId++, - L = Wn(_), - G = - x.toString(16) + + var f = e.nextChunkId++, + x = Es(u), + g = + f.toString(16) + ':I' + - L + + x + ` `, - F = Rt(G); + S = pn(g); return ( - e.completedImportChunks.push(F), - s.set(r, x), - t[0] === Yt && n === '1' ? qn(x) : Xe(x) + e.completedImportChunks.push(S), + a.set(r, f), + t[0] === In && s === '1' ? ws(f) : Ct(f) ); - } catch (K) { + } catch (E) { return ( e.pendingChunks++, (t = e.nextChunkId++), - (n = ln(e, K, null)), - _r(e, t, n), - Xe(t) + (s = Kn(e, E, null)), + Rr(e, t, s), + Ct(t) ); } } - function jn(e, t, n) { - return (t = Cn(e, t, null, !1, n, e.abortableTasks)), Kl(e, t), t.id; + function bs(e, t, s) { + return (t = os(e, t, null, !1, s, e.abortableTasks)), Mu(e, t), t.id; } - function _t(e, t, n) { + function Yt(e, t, s) { e.pendingChunks++; - var o = e.nextChunkId++; - return dt(e, o, t, n, !1), Xe(o); - } - function Nf(e, t) { - function n(u) { - if (i.status === 0) - if (u.done) - e.cacheController.signal.removeEventListener('abort', r), Oo(e, i); - else return s.push(u.value), a.read().then(n).catch(o); - } - function o(u) { - i.status === 0 && + var i = e.nextChunkId++; + return Kt(e, i, t, s, !1), Ct(i); + } + function Cd(e, t) { + function s(y) { + if (p.status === 0) + if (y.done) + e.cacheController.signal.removeEventListener('abort', r), Vi(e, p); + else return a.push(y.value), d.read().then(s).catch(i); + } + function i(y) { + p.status === 0 && (e.cacheController.signal.removeEventListener('abort', r), - cn(e, i, u), - Pt(e), - a.cancel(u).then(o, o)); + Un(e, p, y), + un(e), + d.cancel(y).then(i, i)); } function r() { - if (i.status === 0) { - var u = e.cacheController.signal; - u.removeEventListener('abort', r), - (u = u.reason), + if (p.status === 0) { + var y = e.cacheController.signal; + y.removeEventListener('abort', r), + (y = y.reason), e.type === 21 - ? (e.abortableTasks.delete(i), co(i), uo(i, e)) - : (cn(e, i, u), Pt(e)), - a.cancel(u).then(o, o); + ? (e.abortableTasks.delete(p), ri(p), oi(p, e)) + : (Un(e, p, y), un(e)), + d.cancel(y).then(i, i); } } - var s = [t.type], - i = Cn(e, s, null, !1, 0, e.abortableTasks), - a = t.stream().getReader(); + var a = [t.type], + p = os(e, a, null, !1, 0, e.abortableTasks), + d = t.stream().getReader(); return ( e.cacheController.signal.addEventListener('abort', r), - a.read().then(n).catch(o), - '$B' + i.id.toString(16) + d.read().then(s).catch(i), + '$B' + p.id.toString(16) ); } - var _n = !1; - function Fo(e, t, n, o, r) { - if (((t.model = r), r === Yt)) return '$'; + var ss = !1; + function qi(e, t, s, i, r) { + if (((t.model = r), r === In)) return '$'; if (r === null) return null; if (typeof r == 'object') { switch (r.$$typeof) { - case Yt: - var s = null, - i = e.writtenObjects; + case In: + var a = null, + p = e.writtenObjects; if (t.keyPath === null && !t.implicitSlot) { - var a = i.get(r); - if (a !== void 0) - if (_n === r) _n = null; - else return a; + var d = p.get(r); + if (d !== void 0) + if (ss === r) ss = null; + else return d; else - o.indexOf(':') === -1 && - ((n = i.get(n)), - n !== void 0 && ((s = n + ':' + o), i.set(r, s))); + i.indexOf(':') === -1 && + ((s = p.get(s)), + s !== void 0 && ((a = s + ':' + i), p.set(r, a))); } - return 3200 < xn - ? hl(e, t) - : ((o = r.props), - (n = o.ref), - (e = mi(e, t, r.type, r.key, n !== void 0 ? n : null, o)), + return 3200 < is + ? cu(e, t) + : ((i = r.props), + (s = i.ref), + (e = ia(e, t, r.type, r.key, s !== void 0 ? s : null, i)), typeof e == 'object' && e !== null && - s !== null && - (i.has(e) || i.set(e, s)), + a !== null && + (p.has(e) || p.set(e, a)), e); - case Lo: - if (3200 < xn) return hl(e, t); + case $i: + if (3200 < is) return cu(e, t); if ( ((t.thenableState = null), - (o = r._init), - (r = o(r._payload)), + (i = r._init), + (r = i(r._payload)), e.status === 12) ) throw null; - return Fo(e, t, xr, '', r); - case mf: + return qi(e, t, Lr, '', r); + case cd: throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if: - Multiple copies of the "react" package is used. - A library pre-bundled an old copy of "react" or "react/jsx-runtime". - A compiler tries to "inline" JSX instead of using the runtime.`); } - if (r.$$typeof === gn) return Tl(e, n, o, r); + if (r.$$typeof === rs) return uu(e, s, i, r); if ( e.temporaryReferences !== void 0 && - ((s = e.temporaryReferences.get(r)), s !== void 0) + ((a = e.temporaryReferences.get(r)), a !== void 0) ) - return '$T' + s; + return '$T' + a; if ( - ((s = e.writtenObjects), (i = s.get(r)), typeof r.then == 'function') + ((a = e.writtenObjects), (p = a.get(r)), typeof r.then == 'function') ) { - if (i !== void 0) { + if (p !== void 0) { if (t.keyPath !== null || t.implicitSlot) - return '$@' + ul(e, t, r).toString(16); - if (_n === r) _n = null; - else return i; + return '$@' + ru(e, t, r).toString(16); + if (ss === r) ss = null; + else return p; } - return (e = '$@' + ul(e, t, r).toString(16)), s.set(r, e), e; - } - if (i !== void 0) - if (_n === r) { - if (i !== Xe(t.id)) return i; - _n = null; - } else return i; - else if (o.indexOf(':') === -1 && ((i = s.get(n)), i !== void 0)) { - if (((a = o), Kt(n) && n[0] === Yt)) - switch (o) { + return (e = '$@' + ru(e, t, r).toString(16)), a.set(r, e), e; + } + if (p !== void 0) + if (ss === r) { + if (p !== Ct(t.id)) return p; + ss = null; + } else return p; + else if (i.indexOf(':') === -1 && ((p = a.get(s)), p !== void 0)) { + if (((d = i), kn(s) && s[0] === In)) + switch (i) { case '1': - a = 'type'; + d = 'type'; break; case '2': - a = 'key'; + d = 'key'; break; case '3': - a = 'props'; + d = 'props'; break; case '4': - a = '_owner'; + d = '_owner'; } - s.set(r, i + ':' + a); + a.set(r, p + ':' + d); } - if (Kt(r)) return fl(e, t, r); + if (kn(r)) return lu(e, t, r); if (r instanceof Map) - return (r = Array.from(r)), '$Q' + jn(e, r, 0).toString(16); + return (r = Array.from(r)), '$Q' + bs(e, r, 0).toString(16); if (r instanceof Set) - return (r = Array.from(r)), '$W' + jn(e, r, 0).toString(16); + return (r = Array.from(r)), '$W' + bs(e, r, 0).toString(16); if (typeof FormData == 'function' && r instanceof FormData) - return (r = Array.from(r.entries())), '$K' + jn(e, r, 0).toString(16); + return (r = Array.from(r.entries())), '$K' + bs(e, r, 0).toString(16); if (r instanceof Error) return '$Z'; - if (r instanceof ArrayBuffer) return _t(e, 'A', new Uint8Array(r)); - if (r instanceof Int8Array) return _t(e, 'O', r); - if (r instanceof Uint8Array) return _t(e, 'o', r); - if (r instanceof Uint8ClampedArray) return _t(e, 'U', r); - if (r instanceof Int16Array) return _t(e, 'S', r); - if (r instanceof Uint16Array) return _t(e, 's', r); - if (r instanceof Int32Array) return _t(e, 'L', r); - if (r instanceof Uint32Array) return _t(e, 'l', r); - if (r instanceof Float32Array) return _t(e, 'G', r); - if (r instanceof Float64Array) return _t(e, 'g', r); - if (r instanceof BigInt64Array) return _t(e, 'M', r); - if (r instanceof BigUint64Array) return _t(e, 'm', r); - if (r instanceof DataView) return _t(e, 'V', r); - if (typeof Blob == 'function' && r instanceof Blob) return Nf(e, r); - if ((s = Rl(r))) + if (r instanceof ArrayBuffer) return Yt(e, 'A', new Uint8Array(r)); + if (r instanceof Int8Array) return Yt(e, 'O', r); + if (r instanceof Uint8Array) return Yt(e, 'o', r); + if (r instanceof Uint8ClampedArray) return Yt(e, 'U', r); + if (r instanceof Int16Array) return Yt(e, 'S', r); + if (r instanceof Uint16Array) return Yt(e, 's', r); + if (r instanceof Int32Array) return Yt(e, 'L', r); + if (r instanceof Uint32Array) return Yt(e, 'l', r); + if (r instanceof Float32Array) return Yt(e, 'G', r); + if (r instanceof Float64Array) return Yt(e, 'g', r); + if (r instanceof BigInt64Array) return Yt(e, 'M', r); + if (r instanceof BigUint64Array) return Yt(e, 'm', r); + if (r instanceof DataView) return Yt(e, 'V', r); + if (typeof Blob == 'function' && r instanceof Blob) return Cd(e, r); + if ((a = Su(r))) return ( - (o = s.call(r)), - o === r - ? ((r = Array.from(o)), '$i' + jn(e, r, 0).toString(16)) - : fl(e, t, Array.from(o)) + (i = a.call(r)), + i === r + ? ((r = Array.from(i)), '$i' + bs(e, r, 0).toString(16)) + : lu(e, t, Array.from(i)) ); if (typeof ReadableStream == 'function' && r instanceof ReadableStream) - return bf(e, t, r); - if (((s = r[Hn]), typeof s == 'function')) + return vd(e, t, r); + if (((a = r[Ss]), typeof a == 'function')) return ( t.keyPath !== null - ? ((e = [Yt, Ci, t.keyPath, {children: r}]), + ? ((e = [In, ua, t.keyPath, {children: r}]), (e = t.implicitSlot ? [e] : e)) - : ((o = s.call(r)), (e = Ef(e, t, r, o))), + : ((i = a.call(r)), (e = xd(e, t, r, i))), e ); if (r instanceof Date) return '$D' + r.toJSON(); - if (((e = lo(r)), e !== If && (e === null || lo(e) !== null))) + if (((e = ii(r)), e !== yd && (e === null || ii(e) !== null))) throw Error( 'Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.' + - Bn(n, o) + _s(s, i) ); return r; } if (typeof r == 'string') return ( - (xn += r.length), - r[r.length - 1] === 'Z' && n[o] instanceof Date + (is += r.length), + r[r.length - 1] === 'Z' && s[i] instanceof Date ? '$D' + r - : 1024 <= r.length && xi !== null - ? (e.pendingChunks++, (t = e.nextChunkId++), Bl(e, t, r, !1), Xe(t)) + : 1024 <= r.length && la !== null + ? (e.pendingChunks++, (t = e.nextChunkId++), Ou(e, t, r, !1), Ct(t)) : ((e = r[0] === '$' ? '$' + r : r), e) ); if (typeof r == 'boolean') return r; @@ -2034,16 +2034,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { : '$NaN'; if (typeof r > 'u') return '$undefined'; if (typeof r == 'function') { - if (r.$$typeof === gn) return Tl(e, n, o, r); - if (r.$$typeof === mr) + if (r.$$typeof === rs) return uu(e, s, i, r); + if (r.$$typeof === Ar) return ( (t = e.writtenServerReferences), - (o = t.get(r)), - o !== void 0 - ? (e = '$h' + o.toString(16)) - : ((o = r.$$bound), - (o = o === null ? null : Promise.resolve(o)), - (e = jn(e, {id: r.$$id, bound: o}, 0)), + (i = t.get(r)), + i !== void 0 + ? (e = '$h' + i.toString(16)) + : ((i = r.$$bound), + (i = i === null ? null : Promise.resolve(i)), + (e = bs(e, {id: r.$$id, bound: i}, 0)), t.set(r, e), (e = '$h' + e.toString(16))), e @@ -2053,38 +2053,38 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ((e = e.temporaryReferences.get(r)), e !== void 0) ) return '$T' + e; - throw r.$$typeof === gi + throw r.$$typeof === ca ? Error( 'Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.' ) - : /^on[A-Z]/.test(o) + : /^on[A-Z]/.test(i) ? Error( 'Event handlers cannot be passed to Client Component props.' + - Bn(n, o) + + _s(s, i) + ` If you need interactivity, consider converting part of this to a Client Component.` ) : Error( 'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.' + - Bn(n, o) + _s(s, i) ); } if (typeof r == 'symbol') { - if (((t = e.writtenSymbols), (s = t.get(r)), s !== void 0)) - return Xe(s); - if (((s = r.description), Symbol.for(s) !== r)) + if (((t = e.writtenSymbols), (a = t.get(r)), a !== void 0)) + return Ct(a); + if (((a = r.description), Symbol.for(a) !== r)) throw Error( 'Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for(' + (r.description + ') cannot be found among global symbols.') + - Bn(n, o) + _s(s, i) ); return ( e.pendingChunks++, - (o = e.nextChunkId++), - (n = Fl(e, o, '$S' + s)), - e.completedImportChunks.push(n), - t.set(r, o), - Xe(o) + (i = e.nextChunkId++), + (s = Ru(e, i, '$S' + a)), + e.completedImportChunks.push(s), + t.set(r, i), + Ct(i) ); } if (typeof r == 'bigint') return '$n' + r.toString(10); @@ -2092,17 +2092,17 @@ If you need interactivity, consider converting part of this to a Client Componen 'Type ' + typeof r + ' is not supported in Client Component props.' + - Bn(n, o) + _s(s, i) ); } - function ln(e, t) { - var n = De; - De = null; + function Kn(e, t) { + var s = st; + st = null; try { - var o = e.onError, - r = o(t); + var i = e.onError, + r = i(t); } finally { - De = n; + st = s; } if (r != null && typeof r != 'string') throw Error( @@ -2112,203 +2112,203 @@ If you need interactivity, consider converting part of this to a Client Componen ); return r || ''; } - function $o(e, t) { - var n = e.onFatalError; - n(t), + function Ki(e, t) { + var s = e.onFatalError; + s(t), e.destination !== null - ? ((e.status = 14), wl(e.destination, t)) + ? ((e.status = 14), vu(e.destination, t)) : ((e.status = 13), (e.fatalError = t)), e.cacheController.abort( Error('The render was aborted due to a fatal error.', {cause: t}) ); } - function _r(e, t, n) { - (n = {digest: n}), + function Rr(e, t, s) { + (s = {digest: s}), (t = t.toString(16) + ':E' + - Wn(n) + + Es(s) + ` `), - (t = Rt(t)), + (t = pn(t)), e.completedErrorChunks.push(t); } - function $l(e, t, n) { + function Lu(e, t, s) { (t = t.toString(16) + ':' + - n + + s + ` `), - (t = Rt(t)), + (t = pn(t)), e.completedRegularChunks.push(t); } - function dt(e, t, n, o, r) { + function Kt(e, t, s, i, r) { r ? e.pendingDebugChunks++ : e.pendingChunks++, - (r = new Uint8Array(o.buffer, o.byteOffset, o.byteLength)), - (o = 2048 < o.byteLength ? r.slice() : r), - (r = o.byteLength), - (t = t.toString(16) + ':' + n + r.toString(16) + ','), - (t = Rt(t)), - e.completedRegularChunks.push(t, o); - } - function Bl(e, t, n, o) { - if (xi === null) + (r = new Uint8Array(i.buffer, i.byteOffset, i.byteLength)), + (i = 2048 < i.byteLength ? r.slice() : r), + (r = i.byteLength), + (t = t.toString(16) + ':' + s + r.toString(16) + ','), + (t = pn(t)), + e.completedRegularChunks.push(t, i); + } + function Ou(e, t, s, i) { + if (la === null) throw Error( 'Existence of byteLengthOfChunk should have already been checked. This is a bug in React.' ); - o ? e.pendingDebugChunks++ : e.pendingChunks++, - (n = Rt(n)), - (o = n.byteLength), - (t = t.toString(16) + ':T' + o.toString(16) + ','), - (t = Rt(t)), - e.completedRegularChunks.push(t, n); - } - function jl(e, t, n) { - var o = t.id; - typeof n == 'string' && xi !== null - ? Bl(e, o, n, !1) - : n instanceof ArrayBuffer - ? dt(e, o, 'A', new Uint8Array(n), !1) - : n instanceof Int8Array - ? dt(e, o, 'O', n, !1) - : n instanceof Uint8Array - ? dt(e, o, 'o', n, !1) - : n instanceof Uint8ClampedArray - ? dt(e, o, 'U', n, !1) - : n instanceof Int16Array - ? dt(e, o, 'S', n, !1) - : n instanceof Uint16Array - ? dt(e, o, 's', n, !1) - : n instanceof Int32Array - ? dt(e, o, 'L', n, !1) - : n instanceof Uint32Array - ? dt(e, o, 'l', n, !1) - : n instanceof Float32Array - ? dt(e, o, 'G', n, !1) - : n instanceof Float64Array - ? dt(e, o, 'g', n, !1) - : n instanceof BigInt64Array - ? dt(e, o, 'M', n, !1) - : n instanceof BigUint64Array - ? dt(e, o, 'm', n, !1) - : n instanceof DataView - ? dt(e, o, 'V', n, !1) - : ((n = Wn(n, t.toJSON)), $l(e, t.id, n)); - } - function cn(e, t, n) { + i ? e.pendingDebugChunks++ : e.pendingChunks++, + (s = pn(s)), + (i = s.byteLength), + (t = t.toString(16) + ':T' + i.toString(16) + ','), + (t = pn(t)), + e.completedRegularChunks.push(t, s); + } + function Du(e, t, s) { + var i = t.id; + typeof s == 'string' && la !== null + ? Ou(e, i, s, !1) + : s instanceof ArrayBuffer + ? Kt(e, i, 'A', new Uint8Array(s), !1) + : s instanceof Int8Array + ? Kt(e, i, 'O', s, !1) + : s instanceof Uint8Array + ? Kt(e, i, 'o', s, !1) + : s instanceof Uint8ClampedArray + ? Kt(e, i, 'U', s, !1) + : s instanceof Int16Array + ? Kt(e, i, 'S', s, !1) + : s instanceof Uint16Array + ? Kt(e, i, 's', s, !1) + : s instanceof Int32Array + ? Kt(e, i, 'L', s, !1) + : s instanceof Uint32Array + ? Kt(e, i, 'l', s, !1) + : s instanceof Float32Array + ? Kt(e, i, 'G', s, !1) + : s instanceof Float64Array + ? Kt(e, i, 'g', s, !1) + : s instanceof BigInt64Array + ? Kt(e, i, 'M', s, !1) + : s instanceof BigUint64Array + ? Kt(e, i, 'm', s, !1) + : s instanceof DataView + ? Kt(e, i, 'V', s, !1) + : ((s = Es(s, t.toJSON)), Lu(e, t.id, s)); + } + function Un(e, t, s) { (t.status = 4), - (n = ln(e, n, t)), - _r(e, t.id, n), + (s = Kn(e, s, t)), + Rr(e, t.id, s), e.abortableTasks.delete(t), - gr(e); + Or(e); } - var xr = {}; - function Kl(e, t) { + var Lr = {}; + function Mu(e, t) { if (t.status === 0) { t.status = 5; - var n = xn; + var s = is; try { - _n = t.model; - var o = Fo(e, t, xr, '', t.model); + ss = t.model; + var i = qi(e, t, Lr, '', t.model); if ( - ((_n = o), + ((ss = i), (t.keyPath = null), (t.implicitSlot = !1), - typeof o == 'object' && o !== null) + typeof i == 'object' && i !== null) ) - e.writtenObjects.set(o, Xe(t.id)), jl(e, t, o); + e.writtenObjects.set(i, Ct(t.id)), Du(e, t, i); else { - var r = Wn(o); - $l(e, t.id, r); + var r = Es(i); + Lu(e, t.id, r); } - (t.status = 1), e.abortableTasks.delete(t), gr(e); - } catch (u) { + (t.status = 1), e.abortableTasks.delete(t), Or(e); + } catch (y) { if (e.status === 12) if ((e.abortableTasks.delete(t), (t.status = 0), e.type === 21)) - co(t), uo(t, e); + ri(t), oi(t, e); else { - var s = e.fatalError; - Ii(t), Si(t, e, s); + var a = e.fatalError; + ha(t), fa(t, e, a); } else { - var i = u === wi ? Nl() : u; + var p = y === pa ? Iu() : y; if ( - typeof i == 'object' && - i !== null && - typeof i.then == 'function' + typeof p == 'object' && + p !== null && + typeof p.then == 'function' ) { - (t.status = 0), (t.thenableState = Dl()); - var a = t.ping; - i.then(a, a); - } else cn(e, t, i); + (t.status = 0), (t.thenableState = Eu()); + var d = t.ping; + p.then(d, d); + } else Un(e, t, p); } } finally { - xn = n; + is = s; } } } - function ql(e, t) { - var n = xn; + function Fu(e, t) { + var s = is; try { - jl(e, t, t.model); + Du(e, t, t.model); } finally { - xn = n; + is = s; } } - function ki(e) { - var t = Un.H; - Un.H = Ol; - var n = De; - Ro = De = e; + function ra(e) { + var t = Is.H; + Is.H = Au; + var s = st; + Mi = st = e; try { - var o = e.pingedTasks; + var i = e.pingedTasks; e.pingedTasks = []; - for (var r = 0; r < o.length; r++) Kl(e, o[r]); - po(e); - } catch (s) { - ln(e, s, null), $o(e, s); + for (var r = 0; r < i.length; r++) Mu(e, i[r]); + ai(e); + } catch (a) { + Kn(e, a, null), Ki(e, a); } finally { - (Un.H = t), (Ro = null), (De = n); + (Is.H = t), (Mi = null), (st = s); } } - function Ii(e) { + function ha(e) { e.status === 0 && (e.status = 3); } - function Si(e, t, n) { + function fa(e, t, s) { e.status === 3 && - ((n = Xe(n)), (e = Fl(t, e.id, n)), t.completedErrorChunks.push(e)); + ((s = Ct(s)), (e = Ru(t, e.id, s)), t.completedErrorChunks.push(e)); } - function co(e) { + function ri(e) { e.status === 0 && (e.status = 3); } - function uo(e, t) { + function oi(e, t) { e.status === 3 && t.pendingChunks--; } - function po(e) { + function ai(e) { var t = e.destination; if (t !== null) { - (Et = new Uint8Array(2048)), (At = 0); + (ln = new Uint8Array(2048)), (cn = 0); try { - for (var n = e.completedImportChunks, o = 0; o < n.length; o++) - e.pendingChunks--, dr(t, n[o]); - n.splice(0, o); + for (var s = e.completedImportChunks, i = 0; i < s.length; i++) + e.pendingChunks--, Cr(t, s[i]); + s.splice(0, i); var r = e.completedHintChunks; - for (o = 0; o < r.length; o++) dr(t, r[o]); - r.splice(0, o); - var s = e.completedRegularChunks; - for (o = 0; o < s.length; o++) e.pendingChunks--, dr(t, s[o]); - s.splice(0, o); - var i = e.completedErrorChunks; - for (o = 0; o < i.length; o++) e.pendingChunks--, dr(t, i[o]); - i.splice(0, o); + for (i = 0; i < r.length; i++) Cr(t, r[i]); + r.splice(0, i); + var a = e.completedRegularChunks; + for (i = 0; i < a.length; i++) e.pendingChunks--, Cr(t, a[i]); + a.splice(0, i); + var p = e.completedErrorChunks; + for (i = 0; i < p.length; i++) e.pendingChunks--, Cr(t, p[i]); + p.splice(0, i); } finally { (e.flushScheduled = !1), - Et && - 0 < At && - (t.enqueue(new Uint8Array(Et.buffer, 0, At)), - (Et = null), - (At = 0)); + ln && + 0 < cn && + (t.enqueue(new Uint8Array(ln.buffer, 0, cn)), + (ln = null), + (cn = 0)); } } e.pendingChunks === 0 && @@ -2321,75 +2321,75 @@ If you need interactivity, consider converting part of this to a Client Componen e.destination !== null && ((e.status = 14), e.destination.close(), (e.destination = null))); } - function Hl(e) { + function Bu(e) { (e.flushScheduled = e.destination !== null), - Cl(function () { - return ki(e); + ku(function () { + return ra(e); }), - Do(function () { + Bi(function () { e.status === 10 && (e.status = 11); }); } - function Pt(e) { + function un(e) { e.flushScheduled === !1 && e.pingedTasks.length === 0 && e.destination !== null && ((e.flushScheduled = !0), - Do(function () { - (e.flushScheduled = !1), po(e); + Bi(function () { + (e.flushScheduled = !1), ai(e); })); } - function gr(e) { + function Or(e) { e.abortableTasks.size === 0 && ((e = e.onAllReady), e()); } - function Ul(e, t) { - if (e.status === 13) (e.status = 14), wl(t, e.fatalError); + function Vu(e, t) { + if (e.status === 13) (e.status = 14), vu(t, e.fatalError); else if (e.status !== 14 && e.destination === null) { e.destination = t; try { - po(e); - } catch (n) { - ln(e, n, null), $o(e, n); + ai(e); + } catch (s) { + Kn(e, s, null), Ki(e, s); } } } - function Df(e, t) { + function wd(e, t) { try { - t.forEach(function (o) { - return uo(o, e); + t.forEach(function (i) { + return oi(i, e); }); - var n = e.onAllReady; - n(), po(e); - } catch (o) { - ln(e, o, null), $o(e, o); + var s = e.onAllReady; + s(), ai(e); + } catch (i) { + Kn(e, i, null), Ki(e, i); } } - function Of(e, t, n) { + function Sd(e, t, s) { try { t.forEach(function (r) { - return Si(r, e, n); + return fa(r, e, s); }); - var o = e.onAllReady; - o(), po(e); + var i = e.onAllReady; + i(), ai(e); } catch (r) { - ln(e, r, null), $o(e, r); + Kn(e, r, null), Ki(e, r); } } - function ao(e, t) { + function si(e, t) { if (!(11 < e.status)) try { (e.status = 12), e.cacheController.abort(t); - var n = e.abortableTasks; - if (0 < n.size) + var s = e.abortableTasks; + if (0 < s.size) if (e.type === 21) - n.forEach(function (a) { - return co(a, e); + s.forEach(function (d) { + return ri(d, e); }), - Do(function () { - return Df(e, n); + Bi(function () { + return wd(e, s); }); else { - var o = + var i = t === void 0 ? Error( 'The render was aborted by the server without a reason.' @@ -2401,116 +2401,116 @@ If you need interactivity, consider converting part of this to a Client Componen 'The render was aborted by the server with a promise.' ) : t, - r = ln(e, o, null), - s = e.nextChunkId++; - (e.fatalError = s), + r = Kn(e, i, null), + a = e.nextChunkId++; + (e.fatalError = a), e.pendingChunks++, - _r(e, s, r, o, !1, null), - n.forEach(function (a) { - return Ii(a, e, s); + Rr(e, a, r, i, !1, null), + s.forEach(function (d) { + return ha(d, e, a); }), - Do(function () { - return Of(e, n, s); + Bi(function () { + return Sd(e, s, a); }); } else { - var i = e.onAllReady; - i(), po(e); + var p = e.onAllReady; + p(), ai(e); } - } catch (a) { - ln(e, a, null), $o(e, a); + } catch (d) { + Kn(e, d, null), Ki(e, d); } } - function Wl(e, t) { - var n = '', - o = e[t]; - if (o) n = o.name; + function ju(e, t) { + var s = '', + i = e[t]; + if (i) s = i.name; else { var r = t.lastIndexOf('#'); - if ((r !== -1 && ((n = t.slice(r + 1)), (o = e[t.slice(0, r)])), !o)) + if ((r !== -1 && ((s = t.slice(r + 1)), (i = e[t.slice(0, r)])), !i)) throw Error( 'Could not find the module "' + t + '" in the React Server Manifest. This is probably a bug in the React Server Components bundler.' ); } - return o.async ? [o.id, o.chunks, n, 1] : [o.id, o.chunks, n]; + return i.async ? [i.id, i.chunks, s, 1] : [i.id, i.chunks, s]; } - var fr = new Map(); - function yl(e) { + var wr = new Map(); + function pu(e) { var t = __webpack_require__(e); return typeof t.then != 'function' || t.status === 'fulfilled' ? null : (t.then( - function (n) { - (t.status = 'fulfilled'), (t.value = n); + function (s) { + (t.status = 'fulfilled'), (t.value = s); }, - function (n) { - (t.status = 'rejected'), (t.reason = n); + function (s) { + (t.status = 'rejected'), (t.reason = s); } ), t); } - function Mf() {} - function Vl(e) { - for (var t = e[1], n = [], o = 0; o < t.length; ) { - var r = t[o++], - s = t[o++], - i = fr.get(r); - i === void 0 - ? (zl.set(r, s), - (s = __webpack_chunk_load__(r)), - n.push(s), - (i = fr.set.bind(fr, r, null)), - s.then(i, Mf), - fr.set(r, s)) - : i !== null && n.push(i); + function Id() {} + function $u(e) { + for (var t = e[1], s = [], i = 0; i < t.length; ) { + var r = t[i++], + a = t[i++], + p = wr.get(r); + p === void 0 + ? (qu.set(r, a), + (a = __webpack_chunk_load__(r)), + s.push(a), + (p = wr.set.bind(wr, r, null)), + a.then(p, Id), + wr.set(r, a)) + : p !== null && s.push(p); } return e.length === 4 - ? n.length === 0 - ? yl(e[0]) - : Promise.all(n).then(function () { - return yl(e[0]); + ? s.length === 0 + ? pu(e[0]) + : Promise.all(s).then(function () { + return pu(e[0]); }) - : 0 < n.length - ? Promise.all(n) + : 0 < s.length + ? Promise.all(s) : null; } - function No(e) { + function Fi(e) { var t = __webpack_require__(e[0]); if (e.length === 4 && typeof t.then == 'function') if (t.status === 'fulfilled') t = t.value; else throw t.reason; if (e[2] === '*') return t; if (e[2] === '') return t.__esModule ? t.default : t; - if (vr.call(t, e[2])) return t[e[2]]; + if (Nr.call(t, e[2])) return t[e[2]]; } - var zl = new Map(), - Lf = __webpack_require__.u; + var qu = new Map(), + Ed = __webpack_require__.u; __webpack_require__.u = function (e) { - var t = zl.get(e); - return t !== void 0 ? t : Lf(e); + var t = qu.get(e); + return t !== void 0 ? t : Ed(e); }; - var Cr = Symbol(); - function nt(e, t, n) { - (this.status = e), (this.value = t), (this.reason = n); + var Dr = Symbol(); + function Ot(e, t, s) { + (this.status = e), (this.value = t), (this.reason = s); } - nt.prototype = Object.create(Promise.prototype); - nt.prototype.then = function (e, t) { + Ot.prototype = Object.create(Promise.prototype); + Ot.prototype.then = function (e, t) { switch (this.status) { case 'resolved_model': - Sr(this); + Br(this); } switch (this.status) { case 'fulfilled': if (typeof e == 'function') { - for (var n = this.value, o = 0, r = new Set(); n instanceof nt; ) { - if ((o++, n === this || r.has(n) || 1e3 < o)) { + for (var s = this.value, i = 0, r = new Set(); s instanceof Ot; ) { + if ((i++, s === this || r.has(s) || 1e3 < i)) { typeof t == 'function' && t(Error('Cannot have cyclic thenables.')); return; } - if ((r.add(n), n.status === 'fulfilled')) n = n.value; + if ((r.add(s), s.status === 'fulfilled')) s = s.value; else break; } e(this.value); @@ -2527,99 +2527,99 @@ If you need interactivity, consider converting part of this to a Client Componen typeof t == 'function' && t(this.reason); } }; - var Xl = Object.prototype, - Yl = Array.prototype; - function wr(e, t, n, o) { + var Ku = Object.prototype, + Uu = Array.prototype; + function Mr(e, t, s, i) { for (var r = 0; r < t.length; r++) { - var s = t[r]; - typeof s == 'function' ? s(n) : Ql(e, s, n, o.reason); + var a = t[r]; + typeof a == 'function' ? a(s) : Gu(e, a, s, i.reason); } } - function bi(e, t, n) { - for (var o = 0; o < t.length; o++) { - var r = t[o]; - typeof r == 'function' ? r(n) : kr(e, r.handler, n); + function da(e, t, s) { + for (var i = 0; i < t.length; i++) { + var r = t[i]; + typeof r == 'function' ? r(s) : Pr(e, r.handler, s); } } - function Ir(e, t, n) { - if (t.status !== 'pending' && t.status !== 'blocked') t.reason.error(n); + function Fr(e, t, s) { + if (t.status !== 'pending' && t.status !== 'blocked') t.reason.error(s); else { - var o = t.reason; - (t.status = 'rejected'), (t.reason = n), o !== null && bi(e, o, n); + var i = t.reason; + (t.status = 'rejected'), (t.reason = s), i !== null && da(e, i, s); } } - function Gl(e, t, n) { - var o = {}; - return new nt('resolved_model', t, ((o.id = n), (o[Cr] = e), o)); + function Hu(e, t, s) { + var i = {}; + return new Ot('resolved_model', t, ((i.id = s), (i[Dr] = e), i)); } - function Jl(e, t, n, o) { + function Wu(e, t, s, i) { if (t.status !== 'pending') (t = t.reason), - n[0] === 'C' - ? t.close(n === 'C' ? '"$undefined"' : n.slice(1)) - : t.enqueueModel(n); + s[0] === 'C' + ? t.close(s === 'C' ? '"$undefined"' : s.slice(1)) + : t.enqueueModel(s); else { var r = t.value, - s = t.reason; + a = t.reason; if ( ((t.status = 'resolved_model'), - (t.value = n), - (n = {}), - (t.reason = ((n.id = o), (n[Cr] = e), n)), + (t.value = s), + (s = {}), + (t.reason = ((s.id = i), (s[Dr] = e), s)), r !== null) ) - switch ((Sr(t), t.status)) { + switch ((Br(t), t.status)) { case 'fulfilled': - wr(e, r, t.value, t); + Mr(e, r, t.value, t); break; case 'blocked': case 'pending': if (t.value) for (e = 0; e < r.length; e++) t.value.push(r[e]); else t.value = r; if (t.reason) { - if (s) for (r = 0; r < s.length; r++) t.reason.push(s[r]); - } else t.reason = s; + if (a) for (r = 0; r < a.length; r++) t.reason.push(a[r]); + } else t.reason = a; break; case 'rejected': - s && bi(e, s, t.reason); + a && da(e, a, t.reason); } } } - function ml(e, t, n) { - var o = {}; - return new nt( + function hu(e, t, s) { + var i = {}; + return new Ot( 'resolved_model', - (n ? '{"done":true,"value":' : '{"done":false,"value":') + t + '}', - ((o.id = -1), (o[Cr] = e), o) + (s ? '{"done":true,"value":' : '{"done":false,"value":') + t + '}', + ((i.id = -1), (i[Dr] = e), i) ); } - function fi(e, t, n, o) { - Jl( + function ea(e, t, s, i) { + Wu( e, t, - (o ? '{"done":true,"value":' : '{"done":false,"value":') + n + '}', + (i ? '{"done":true,"value":' : '{"done":false,"value":') + s + '}', -1 ); } - function Ff(e, t, n, o) { - function r(v) { - var _ = a.reason, - x = a; - (x.status = 'rejected'), - (x.value = null), - (x.reason = v), - _ !== null && bi(e, _, v), - kr(e, h, v); - } - var s = t.id; - if (typeof s != 'string' || o === 'then') return null; - var i = t.$$promise; - if (i !== void 0) - return i.status === 'fulfilled' - ? ((i = i.value), o === '__proto__' ? null : (n[o] = i)) - : (Ee - ? ((s = Ee), s.deps++) - : (s = Ee = + function Ad(e, t, s, i) { + function r(A) { + var u = d.reason, + f = d; + (f.status = 'rejected'), + (f.value = null), + (f.reason = A), + u !== null && da(e, u, A), + Pr(e, k, A); + } + var a = t.id; + if (typeof a != 'string' || i === 'then') return null; + var p = t.$$promise; + if (p !== void 0) + return p.status === 'fulfilled' + ? ((p = p.value), i === '__proto__' ? null : (s[i] = p)) + : (Ye + ? ((a = Ye), a.deps++) + : (a = Ye = { chunk: null, value: null, @@ -2627,254 +2627,254 @@ If you need interactivity, consider converting part of this to a Client Componen deps: 1, errored: !1, }), - i.then(_i.bind(null, e, s, n, o), kr.bind(null, e, s)), + p.then(aa.bind(null, e, a, s, i), Pr.bind(null, e, a)), null); - var a = new nt('blocked', null, null); - t.$$promise = a; - var u = Wl(e._bundlerConfig, s); - if (((i = t.bound), (s = Vl(u)))) - i instanceof nt && (s = Promise.all([s, i])); - else if (i instanceof nt) s = Promise.resolve(i); - else return (i = No(u)), (s = a), (s.status = 'fulfilled'), (s.value = i); - if (Ee) { - var h = Ee; - h.deps++; + var d = new Ot('blocked', null, null); + t.$$promise = d; + var y = ju(e._bundlerConfig, a); + if (((p = t.bound), (a = $u(y)))) + p instanceof Ot && (a = Promise.all([a, p])); + else if (p instanceof Ot) a = Promise.resolve(p); + else return (p = Fi(y)), (a = d), (a.status = 'fulfilled'), (a.value = p); + if (Ye) { + var k = Ye; + k.deps++; } else - h = Ee = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + k = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; return ( - s.then(function () { - var v = No(u); + a.then(function () { + var A = Fi(y); if (t.bound) { - var _ = t.bound.value; - if (((_ = Kt(_) ? _.slice(0) : []), 1e3 < _.length)) { + var u = t.bound.value; + if (((u = kn(u) ? u.slice(0) : []), 1e3 < u.length)) { r( Error( 'Server Function has too many bound arguments. Received ' + - _.length + + u.length + ' but the limit is 1000.' ) ); return; } - _.unshift(null), (v = v.bind.apply(v, _)); + u.unshift(null), (A = A.bind.apply(A, u)); } - _ = a.value; - var x = a; - (x.status = 'fulfilled'), - (x.value = v), - (x.reason = null), - _ !== null && wr(e, _, v, x), - _i(e, h, n, o, v); + u = d.value; + var f = d; + (f.status = 'fulfilled'), + (f.value = A), + (f.reason = null), + u !== null && Mr(e, u, A, f), + aa(e, k, s, i, A); }, r), null ); } - function vi(e, t, n, o, r, s) { - if (typeof o == 'string') return Hf(e, t, n, o, r, s); - if (typeof o == 'object' && o !== null) + function oa(e, t, s, i, r, a) { + if (typeof i == 'string') return Dd(e, t, s, i, r, a); + if (typeof i == 'object' && i !== null) if ( (r !== void 0 && e._temporaryReferences !== void 0 && - e._temporaryReferences.set(o, r), - Kt(o)) + e._temporaryReferences.set(i, r), + kn(i)) ) { - if (s === null) { - var i = {count: 0, fork: !1}; - e._rootArrayContexts.set(o, i); - } else i = s; + if (a === null) { + var p = {count: 0, fork: !1}; + e._rootArrayContexts.set(i, p); + } else p = a; for ( - 1 < o.length && (i.fork = !0), sn(i, o.length + 1, e), t = 0; - t < o.length; + 1 < i.length && (p.fork = !0), $n(p, i.length + 1, e), t = 0; + t < i.length; t++ ) - o[t] = vi( + i[t] = oa( e, - o, + i, '' + t, - o[t], + i[t], r !== void 0 ? r + ':' + t : void 0, - i + p ); } else - for (i in o) - vr.call(o, i) && - (i === '__proto__' - ? delete o[i] + for (p in i) + Nr.call(i, p) && + (p === '__proto__' + ? delete i[p] : ((t = - r !== void 0 && i.indexOf(':') === -1 - ? r + ':' + i + r !== void 0 && p.indexOf(':') === -1 + ? r + ':' + p : void 0), - (t = vi(e, o, i, o[i], t, null)), - t !== void 0 ? (o[i] = t) : delete o[i])); - return o; + (t = oa(e, i, p, i[p], t, null)), + t !== void 0 ? (i[p] = t) : delete i[p])); + return i; } - function sn(e, t, n) { - if ((e.count += t) > n._arraySizeLimit && e.fork) + function $n(e, t, s) { + if ((e.count += t) > s._arraySizeLimit && e.fork) throw Error( 'Maximum array nesting exceeded. Large nested arrays can be dangerous. Try adding intermediate objects.' ); } - var Ee = null; - function Sr(e) { - var t = Ee; - Ee = null; - var n = e.reason, - o = n[Cr]; - (n = n.id), (n = n === -1 ? void 0 : n.toString(16)); + var Ye = null; + function Br(e) { + var t = Ye; + Ye = null; + var s = e.reason, + i = s[Dr]; + (s = s.id), (s = s === -1 ? void 0 : s.toString(16)); var r = e.value; (e.status = 'blocked'), (e.value = null), (e.reason = null); try { - var s = JSON.parse(r); + var a = JSON.parse(r); r = {count: 0, fork: !1}; - var i = vi(o, {'': s}, '', s, n, r), - a = e.value; - if (a !== null) - for (e.value = null, e.reason = null, s = 0; s < a.length; s++) { - var u = a[s]; - typeof u == 'function' ? u(i) : Ql(o, u, i, r); + var p = oa(i, {'': a}, '', a, s, r), + d = e.value; + if (d !== null) + for (e.value = null, e.reason = null, a = 0; a < d.length; a++) { + var y = d[a]; + typeof y == 'function' ? y(p) : Gu(i, y, p, r); } - if (Ee !== null) { - if (Ee.errored) throw Ee.reason; - if (0 < Ee.deps) { - (Ee.value = i), (Ee.reason = r), (Ee.chunk = e); + if (Ye !== null) { + if (Ye.errored) throw Ye.reason; + if (0 < Ye.deps) { + (Ye.value = p), (Ye.reason = r), (Ye.chunk = e); return; } } - (e.status = 'fulfilled'), (e.value = i), (e.reason = r); - } catch (h) { - (e.status = 'rejected'), (e.reason = h); + (e.status = 'fulfilled'), (e.value = p), (e.reason = r); + } catch (k) { + (e.status = 'rejected'), (e.reason = k); } finally { - Ee = t; + Ye = t; } } - function $f(e, t) { + function Pd(e, t) { (e._closed = !0), (e._closedReason = t), - e._chunks.forEach(function (n) { - n.status === 'pending' - ? Ir(e, n, t) - : n.status === 'fulfilled' && - n.reason !== null && - ((n = n.reason), typeof n.error == 'function' && n.error(t)); + e._chunks.forEach(function (s) { + s.status === 'pending' + ? Fr(e, s, t) + : s.status === 'fulfilled' && + s.reason !== null && + ((s = s.reason), typeof s.error == 'function' && s.error(t)); }); } - function br(e, t) { - var n = e._chunks, - o = n.get(t); + function Vr(e, t) { + var s = e._chunks, + i = s.get(t); return ( - o || - ((o = e._formData.get(e._prefix + t)), - (o = - typeof o == 'string' - ? Gl(e, o, t) + i || + ((i = e._formData.get(e._prefix + t)), + (i = + typeof i == 'string' + ? Hu(e, i, t) : e._closed - ? new nt('rejected', null, e._closedReason) - : new nt('pending', null, null)), - n.set(t, o)), - o + ? new Ot('rejected', null, e._closedReason) + : new Ot('pending', null, null)), + s.set(t, i)), + i ); } - function Ql(e, t, n, o) { + function Gu(e, t, s, i) { var r = t.handler, - s = t.parentObject, - i = t.key, - a = t.map, - u = t.path; + a = t.parentObject, + p = t.key, + d = t.map, + y = t.path; try { - for (var h = 0, v = e._rootArrayContexts, _ = 1; _ < u.length; _++) { - var x = u[_]; + for (var k = 0, A = e._rootArrayContexts, u = 1; u < y.length; u++) { + var f = y[u]; if ( - typeof n != 'object' || - n === null || - (lo(n) !== Xl && lo(n) !== Yl) || - !vr.call(n, x) + typeof s != 'object' || + s === null || + (ii(s) !== Ku && ii(s) !== Uu) || + !Nr.call(s, f) ) throw Error('Invalid reference.'); - if (((n = n[x]), Kt(n))) (h = 0), (o = v.get(n) || o); - else if (((o = null), typeof n == 'string')) h = n.length; - else if (typeof n == 'bigint') { - var L = Math.abs(Number(n)); - h = L === 0 ? 1 : Math.floor(Math.log10(L)) + 1; - } else h = ArrayBuffer.isView(n) ? n.byteLength : 0; - } - var G = a(e, n, s, i), - F = t.arrayRoot; - F !== null && - (o !== null - ? (o.fork && (F.fork = !0), sn(F, o.count, e)) - : 0 < h && sn(F, h, e)); - } catch (K) { - kr(e, r, K); + if (((s = s[f]), kn(s))) (k = 0), (i = A.get(s) || i); + else if (((i = null), typeof s == 'string')) k = s.length; + else if (typeof s == 'bigint') { + var x = Math.abs(Number(s)); + k = x === 0 ? 1 : Math.floor(Math.log10(x)) + 1; + } else k = ArrayBuffer.isView(s) ? s.byteLength : 0; + } + var g = d(e, s, a, p), + S = t.arrayRoot; + S !== null && + (i !== null + ? (i.fork && (S.fork = !0), $n(S, i.count, e)) + : 0 < k && $n(S, k, e)); + } catch (E) { + Pr(e, r, E); return; } - _i(e, r, s, i, G); + aa(e, r, a, p, g); } - function _i(e, t, n, o, r) { - o !== '__proto__' && (n[o] = r), - o === '' && t.value === null && (t.value = r), + function aa(e, t, s, i, r) { + i !== '__proto__' && (s[i] = r), + i === '' && t.value === null && (t.value = r), t.deps--, t.deps === 0 && - ((n = t.chunk), - n !== null && - n.status === 'blocked' && - ((o = n.value), - (n.status = 'fulfilled'), - (n.value = t.value), - (n.reason = t.reason), - o !== null && wr(e, o, t.value, n))); - } - function kr(e, t, n) { + ((s = t.chunk), + s !== null && + s.status === 'blocked' && + ((i = s.value), + (s.status = 'fulfilled'), + (s.value = t.value), + (s.reason = t.reason), + i !== null && Mr(e, i, t.value, s))); + } + function Pr(e, t, s) { t.errored || ((t.errored = !0), (t.value = null), - (t.reason = n), + (t.reason = s), (t = t.chunk), - t !== null && t.status === 'blocked' && Ir(e, t, n)); + t !== null && t.status === 'blocked' && Fr(e, t, s)); } - function Po(e, t, n, o, r, s) { + function Di(e, t, s, i, r, a) { t = t.split(':'); - var i = parseInt(t[0], 16), - a = br(e, i); - switch (a.status) { + var p = parseInt(t[0], 16), + d = Vr(e, p); + switch (d.status) { case 'resolved_model': - Sr(a); + Br(d); } - switch (a.status) { + switch (d.status) { case 'fulfilled': - (i = a.value), (a = a.reason); - for (var u = 0, h = e._rootArrayContexts, v = 1; v < t.length; v++) { + (p = d.value), (d = d.reason); + for (var y = 0, k = e._rootArrayContexts, A = 1; A < t.length; A++) { if ( - ((u = t[v]), - typeof i != 'object' || - i === null || - (lo(i) !== Xl && lo(i) !== Yl) || - !vr.call(i, u)) + ((y = t[A]), + typeof p != 'object' || + p === null || + (ii(p) !== Ku && ii(p) !== Uu) || + !Nr.call(p, y)) ) throw Error('Invalid reference.'); - (i = i[u]), - Kt(i) - ? ((u = 0), (a = h.get(i) || a)) - : ((a = null), - typeof i == 'string' - ? (u = i.length) - : typeof i == 'bigint' - ? ((u = Math.abs(Number(i))), - (u = u === 0 ? 1 : Math.floor(Math.log10(u)) + 1)) - : (u = ArrayBuffer.isView(i) ? i.byteLength : 0)); + (p = p[y]), + kn(p) + ? ((y = 0), (d = k.get(p) || d)) + : ((d = null), + typeof p == 'string' + ? (y = p.length) + : typeof p == 'bigint' + ? ((y = Math.abs(Number(p))), + (y = y === 0 ? 1 : Math.floor(Math.log10(y)) + 1)) + : (y = ArrayBuffer.isView(p) ? p.byteLength : 0)); } return ( - (n = s(e, i, n, o)), + (s = a(e, p, s, i)), r !== null && - (a !== null - ? (a.fork && (r.fork = !0), sn(r, a.count, e)) - : 0 < u && sn(r, u, e)), - n + (d !== null + ? (d.fork && (r.fork = !0), $n(r, d.count, e)) + : 0 < y && $n(r, y, e)), + s ); case 'blocked': return ( - Ee - ? ((e = Ee), e.deps++) - : (e = Ee = + Ye + ? ((e = Ye), e.deps++) + : (e = Ye = { chunk: null, value: null, @@ -2884,26 +2884,26 @@ If you need interactivity, consider converting part of this to a Client Componen }), (r = { handler: e, - parentObject: n, - key: o, - map: s, + parentObject: s, + key: i, + map: a, path: t, arrayRoot: r, }), - a.value === null ? (a.value = [r]) : a.value.push(r), - a.reason === null ? (a.reason = [r]) : a.reason.push(r), + d.value === null ? (d.value = [r]) : d.value.push(r), + d.reason === null ? (d.reason = [r]) : d.reason.push(r), null ); case 'pending': throw Error('Invalid forward reference.'); default: return ( - Ee - ? ((Ee.errored = !0), (Ee.value = null), (Ee.reason = a.reason)) - : (Ee = { + Ye + ? ((Ye.errored = !0), (Ye.value = null), (Ye.reason = d.reason)) + : (Ye = { chunk: null, value: null, - reason: a.reason, + reason: d.reason, deps: 0, errored: !0, }), @@ -2911,78 +2911,78 @@ If you need interactivity, consider converting part of this to a Client Componen ); } } - function Bf(e, t) { - if (!Kt(t)) throw Error('Invalid Map initializer.'); + function Nd(e, t) { + if (!kn(t)) throw Error('Invalid Map initializer.'); if (t.$$consumed === !0) throw Error('Already initialized Map.'); return (e = new Map(t)), (t.$$consumed = !0), e; } - function jf(e, t) { - if (!Kt(t)) throw Error('Invalid Set initializer.'); + function Rd(e, t) { + if (!kn(t)) throw Error('Invalid Set initializer.'); if (t.$$consumed === !0) throw Error('Already initialized Set.'); return (e = new Set(t)), (t.$$consumed = !0), e; } - function Kf(e, t) { - if (!Kt(t)) throw Error('Invalid Iterator initializer.'); + function Ld(e, t) { + if (!kn(t)) throw Error('Invalid Iterator initializer.'); if (t.$$consumed === !0) throw Error('Already initialized Iterator.'); return (e = t[Symbol.iterator]()), (t.$$consumed = !0), e; } - function qf(e, t, n, o) { - return o === 'then' && typeof t == 'function' ? null : t; + function Od(e, t, s, i) { + return i === 'then' && typeof t == 'function' ? null : t; } - function xt(e, t, n, o, r, s, i) { - function a(v) { - if (!h.errored) { - (h.errored = !0), (h.value = null), (h.reason = v); - var _ = h.chunk; - _ !== null && _.status === 'blocked' && Ir(e, _, v); + function Jt(e, t, s, i, r, a, p) { + function d(A) { + if (!k.errored) { + (k.errored = !0), (k.value = null), (k.reason = A); + var u = k.chunk; + u !== null && u.status === 'blocked' && Fr(e, u, A); } } t = parseInt(t.slice(2), 16); - var u = e._prefix + t; - if (((o = e._chunks), o.has(t))) + var y = e._prefix + t; + if (((i = e._chunks), i.has(t))) throw Error('Already initialized typed array.'); if ( - (o.set( + (i.set( t, - new nt('rejected', null, Error('Already initialized typed array.')) + new Ot('rejected', null, Error('Already initialized typed array.')) ), - (t = e._formData.get(u).arrayBuffer()), - Ee) + (t = e._formData.get(y).arrayBuffer()), + Ye) ) { - var h = Ee; - h.deps++; + var k = Ye; + k.deps++; } else - h = Ee = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + k = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; return ( - t.then(function (v) { + t.then(function (A) { try { - i !== null && sn(i, v.byteLength, e); - var _ = n === ArrayBuffer ? v : new n(v); - u !== '__proto__' && (r[s] = _), - s === '' && h.value === null && (h.value = _); - } catch (x) { - a(x); + p !== null && $n(p, A.byteLength, e); + var u = s === ArrayBuffer ? A : new s(A); + y !== '__proto__' && (r[a] = u), + a === '' && k.value === null && (k.value = u); + } catch (f) { + d(f); return; } - h.deps--, - h.deps === 0 && - ((v = h.chunk), - v !== null && - v.status === 'blocked' && - ((_ = v.value), - (v.status = 'fulfilled'), - (v.value = h.value), - (v.reason = null), - _ !== null && wr(e, _, h.value, v))); - }, a), + k.deps--, + k.deps === 0 && + ((A = k.chunk), + A !== null && + A.status === 'blocked' && + ((u = A.value), + (A.status = 'fulfilled'), + (A.value = k.value), + (A.reason = null), + u !== null && Mr(e, u, k.value, A))); + }, d), null ); } - function Zl(e, t, n, o) { + function zu(e, t, s, i) { var r = e._chunks; for ( - n = new nt('fulfilled', n, o), - r.set(t, n), + s = new Ot('fulfilled', s, i), + r.set(t, s), e = e._formData.getAll(e._prefix + t), t = 0; t < e.length; @@ -2991,1063 +2991,1063 @@ If you need interactivity, consider converting part of this to a Client Componen (r = e[t]), typeof r == 'string' && (r[0] === 'C' - ? o.close(r === 'C' ? '"$undefined"' : r.slice(1)) - : o.enqueueModel(r)); + ? i.close(r === 'C' ? '"$undefined"' : r.slice(1)) + : i.enqueueModel(r)); } - function kl(e, t, n) { - function o(h) { - n !== 'bytes' || ArrayBuffer.isView(h) - ? r.enqueue(h) - : u.error(Error('Invalid data for bytes stream.')); + function fu(e, t, s) { + function i(k) { + s !== 'bytes' || ArrayBuffer.isView(k) + ? r.enqueue(k) + : y.error(Error('Invalid data for bytes stream.')); } if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) throw Error('Already initialized stream.'); var r = null, - s = !1, - i = new ReadableStream({ - type: n, - start: function (h) { - r = h; + a = !1, + p = new ReadableStream({ + type: s, + start: function (k) { + r = k; }, }), - a = null, - u = { - enqueueModel: function (h) { - if (a === null) { - var v = Gl(e, h, -1); - Sr(v), - v.status === 'fulfilled' - ? o(v.value) - : (v.then(o, u.error), (a = v)); + d = null, + y = { + enqueueModel: function (k) { + if (d === null) { + var A = Hu(e, k, -1); + Br(A), + A.status === 'fulfilled' + ? i(A.value) + : (A.then(i, y.error), (d = A)); } else { - v = a; - var _ = new nt('pending', null, null); - _.then(o, u.error), - (a = _), - v.then(function () { - a === _ && (a = null), Jl(e, _, h, -1); + A = d; + var u = new Ot('pending', null, null); + u.then(i, y.error), + (d = u), + A.then(function () { + d === u && (d = null), Wu(e, u, k, -1); }); } }, close: function () { - if (!s) - if (((s = !0), a === null)) r.close(); + if (!a) + if (((a = !0), d === null)) r.close(); else { - var h = a; - (a = null), - h.then(function () { + var k = d; + (d = null), + k.then(function () { return r.close(); }); } }, - error: function (h) { - if (!s) - if (((s = !0), a === null)) r.error(h); + error: function (k) { + if (!a) + if (((a = !0), d === null)) r.error(k); else { - var v = a; - (a = null), - v.then(function () { - return r.error(h); + var A = d; + (d = null), + A.then(function () { + return r.error(k); }); } }, }; - return Zl(e, t, i, u), i; + return zu(e, t, p, y), p; } - function Ei(e) { + function ma(e) { this.next = e; } - Ei.prototype = {}; - Ei.prototype[Hn] = function () { + ma.prototype = {}; + ma.prototype[Ss] = function () { return this; }; - function vl(e, t, n) { + function du(e, t, s) { if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) throw Error('Already initialized stream.'); - var o = [], + var i = [], r = !1, - s = 0, - i = {}; + a = 0, + p = {}; return ( - (i = - ((i[Hn] = function () { - var a = 0; - return new Ei(function (u) { - if (u !== void 0) + (p = + ((p[Ss] = function () { + var d = 0; + return new ma(function (y) { + if (y !== void 0) throw Error( 'Values cannot be passed to next() of AsyncIterables passed to Client Components.' ); - if (a === o.length) { + if (d === i.length) { if (r) - return new nt('fulfilled', {done: !0, value: void 0}, null); - o[a] = new nt('pending', null, null); + return new Ot('fulfilled', {done: !0, value: void 0}, null); + i[d] = new Ot('pending', null, null); } - return o[a++]; + return i[d++]; }); }), - i)), - (n = n ? i[Hn]() : i), - Zl(e, t, n, { - enqueueModel: function (a) { - s === o.length ? (o[s] = ml(e, a, !1)) : fi(e, o[s], a, !1), s++; + p)), + (s = s ? p[Ss]() : p), + zu(e, t, s, { + enqueueModel: function (d) { + a === i.length ? (i[a] = hu(e, d, !1)) : ea(e, i[a], d, !1), a++; }, - close: function (a) { + close: function (d) { if (!r) for ( r = !0, - s === o.length ? (o[s] = ml(e, a, !0)) : fi(e, o[s], a, !0), - s++; - s < o.length; + a === i.length ? (i[a] = hu(e, d, !0)) : ea(e, i[a], d, !0), + a++; + a < i.length; ) - fi(e, o[s++], '"$undefined"', !0); + ea(e, i[a++], '"$undefined"', !0); }, - error: function (a) { + error: function (d) { if (!r) for ( r = !0, - s === o.length && (o[s] = new nt('pending', null, null)); - s < o.length; + a === i.length && (i[a] = new Ot('pending', null, null)); + a < i.length; ) - Ir(e, o[s++], a); + Fr(e, i[a++], d); }, }), - n + s ); } - function Hf(e, t, n, o, r, s) { - if (o[0] === '$') { - switch (o[1]) { + function Dd(e, t, s, i, r, a) { + if (i[0] === '$') { + switch (i[1]) { case '$': - return s !== null && sn(s, o.length - 1, e), o.slice(1); + return a !== null && $n(a, i.length - 1, e), i.slice(1); case '@': - return (t = parseInt(o.slice(2), 16)), br(e, t); + return (t = parseInt(i.slice(2), 16)), Vr(e, t); case 'h': - return (s = o.slice(2)), Po(e, s, t, n, null, Ff); + return (a = i.slice(2)), Di(e, a, t, s, null, Ad); case 'T': if (r === void 0 || e._temporaryReferences === void 0) throw Error( 'Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.' ); - return yf(e._temporaryReferences, r); + return ld(e._temporaryReferences, r); case 'Q': - return (s = o.slice(2)), Po(e, s, t, n, null, Bf); + return (a = i.slice(2)), Di(e, a, t, s, null, Nd); case 'W': - return (s = o.slice(2)), Po(e, s, t, n, null, jf); + return (a = i.slice(2)), Di(e, a, t, s, null, Rd); case 'K': for ( - t = o.slice(2), + t = i.slice(2), t = e._prefix + t + '_', - n = new FormData(), + s = new FormData(), e = e._formData, - s = Array.from(e.keys()), - o = 0; - o < s.length; - o++ + a = Array.from(e.keys()), + i = 0; + i < a.length; + i++ ) - if (((r = s[o]), r.startsWith(t))) { + if (((r = a[i]), r.startsWith(t))) { for ( - var i = e.getAll(r), a = r.slice(t.length), u = 0; - u < i.length; - u++ + var p = e.getAll(r), d = r.slice(t.length), y = 0; + y < p.length; + y++ ) - n.append(a, i[u]); + s.append(d, p[y]); e.delete(r); } - return n; + return s; case 'i': - return (s = o.slice(2)), Po(e, s, t, n, null, Kf); + return (a = i.slice(2)), Di(e, a, t, s, null, Ld); case 'I': return 1 / 0; case '-': - return o === '$-0' ? -0 : -1 / 0; + return i === '$-0' ? -0 : -1 / 0; case 'N': return NaN; case 'u': return; case 'D': - return new Date(Date.parse(o.slice(2))); + return new Date(Date.parse(i.slice(2))); case 'n': - if (((t = o.slice(2)), 300 < t.length)) + if (((t = i.slice(2)), 300 < t.length)) throw Error( 'BigInt is too large. Received ' + t.length + ' digits but the limit is 300.' ); - return s !== null && sn(s, t.length, e), BigInt(t); + return a !== null && $n(a, t.length, e), BigInt(t); case 'A': - return xt(e, o, ArrayBuffer, 1, t, n, s); + return Jt(e, i, ArrayBuffer, 1, t, s, a); case 'O': - return xt(e, o, Int8Array, 1, t, n, s); + return Jt(e, i, Int8Array, 1, t, s, a); case 'o': - return xt(e, o, Uint8Array, 1, t, n, s); + return Jt(e, i, Uint8Array, 1, t, s, a); case 'U': - return xt(e, o, Uint8ClampedArray, 1, t, n, s); + return Jt(e, i, Uint8ClampedArray, 1, t, s, a); case 'S': - return xt(e, o, Int16Array, 2, t, n, s); + return Jt(e, i, Int16Array, 2, t, s, a); case 's': - return xt(e, o, Uint16Array, 2, t, n, s); + return Jt(e, i, Uint16Array, 2, t, s, a); case 'L': - return xt(e, o, Int32Array, 4, t, n, s); + return Jt(e, i, Int32Array, 4, t, s, a); case 'l': - return xt(e, o, Uint32Array, 4, t, n, s); + return Jt(e, i, Uint32Array, 4, t, s, a); case 'G': - return xt(e, o, Float32Array, 4, t, n, s); + return Jt(e, i, Float32Array, 4, t, s, a); case 'g': - return xt(e, o, Float64Array, 8, t, n, s); + return Jt(e, i, Float64Array, 8, t, s, a); case 'M': - return xt(e, o, BigInt64Array, 8, t, n, s); + return Jt(e, i, BigInt64Array, 8, t, s, a); case 'm': - return xt(e, o, BigUint64Array, 8, t, n, s); + return Jt(e, i, BigUint64Array, 8, t, s, a); case 'V': - return xt(e, o, DataView, 1, t, n, s); + return Jt(e, i, DataView, 1, t, s, a); case 'B': return ( - (t = parseInt(o.slice(2), 16)), e._formData.get(e._prefix + t) + (t = parseInt(i.slice(2), 16)), e._formData.get(e._prefix + t) ); case 'R': - return kl(e, o, void 0); + return fu(e, i, void 0); case 'r': - return kl(e, o, 'bytes'); + return fu(e, i, 'bytes'); case 'X': - return vl(e, o, !1); + return du(e, i, !1); case 'x': - return vl(e, o, !0); + return du(e, i, !0); } - return (o = o.slice(1)), Po(e, o, t, n, s, qf); + return (i = i.slice(1)), Di(e, i, t, s, a, Od); } - return s !== null && sn(s, o.length, e), o; + return a !== null && $n(a, i.length, e), i; } - function ec(e, t, n) { - var o = + function Xu(e, t, s) { + var i = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : new FormData(), r = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 1e6, - s = new Map(); + a = new Map(); return { _bundlerConfig: e, _prefix: t, - _formData: o, - _chunks: s, + _formData: i, + _chunks: a, _closed: !1, _closedReason: null, - _temporaryReferences: n, + _temporaryReferences: s, _rootArrayContexts: new WeakMap(), _arraySizeLimit: r, }; } - function tc(e) { - $f(e, Error('Connection closed.')); + function Yu(e) { + Pd(e, Error('Connection closed.')); } - function _l(e, t) { - var n = t.id; - if (typeof n != 'string') return null; - var o = Wl(e, n); + function mu(e, t) { + var s = t.id; + if (typeof s != 'string') return null; + var i = ju(e, s); return ( - (e = Vl(o)), + (e = $u(i)), (t = t.bound), t instanceof Promise ? Promise.all([t, e]).then(function (r) { r = r[0]; - var s = No(o); + var a = Fi(i); if (1e3 < r.length) throw Error( 'Server Function has too many bound arguments. Received ' + r.length + ' but the limit is 1000.' ); - return s.bind.apply(s, [null].concat(r)); + return a.bind.apply(a, [null].concat(r)); }) : e ? Promise.resolve(e).then(function () { - return No(o); + return Fi(i); }) - : Promise.resolve(No(o)) + : Promise.resolve(Fi(i)) ); } - function nc(e, t, n, o) { + function Ju(e, t, s, i) { if ( - ((e = ec(t, n, void 0, e, o)), - tc(e), - (e = br(e, 0)), + ((e = Xu(t, s, void 0, e, i)), + Yu(e), + (e = Vr(e, 0)), e.then(function () {}), e.status !== 'fulfilled') ) throw e.reason; return e.value; } - Gt.createClientModuleProxy = function (e) { - return (e = so({}, e, !1)), new Proxy(e, Sl); + En.createClientModuleProxy = function (e) { + return (e = ti({}, e, !1)), new Proxy(e, gu); }; - Gt.createTemporaryReferenceSet = function () { + En.createTemporaryReferenceSet = function () { return new WeakMap(); }; - Gt.decodeAction = function (e, t) { - var n = new FormData(), - o = null, + En.decodeAction = function (e, t) { + var s = new FormData(), + i = null, r = new Set(); return ( - e.forEach(function (s, i) { - i.startsWith('$ACTION_') - ? i.startsWith('$ACTION_REF_') - ? r.has(i) || - (r.add(i), - (s = '$ACTION_' + i.slice(12) + ':'), - (s = nc(e, t, s)), - (o = _l(t, s))) - : i.startsWith('$ACTION_ID_') && - !r.has(i) && - (r.add(i), (s = i.slice(11)), (o = _l(t, {id: s, bound: null}))) - : n.append(i, s); - }), - o === null + e.forEach(function (a, p) { + p.startsWith('$ACTION_') + ? p.startsWith('$ACTION_REF_') + ? r.has(p) || + (r.add(p), + (a = '$ACTION_' + p.slice(12) + ':'), + (a = Ju(e, t, a)), + (i = mu(t, a))) + : p.startsWith('$ACTION_ID_') && + !r.has(p) && + (r.add(p), (a = p.slice(11)), (i = mu(t, {id: a, bound: null}))) + : s.append(p, a); + }), + i === null ? null - : o.then(function (s) { - return s.bind(null, n); + : i.then(function (a) { + return a.bind(null, s); }) ); }; - Gt.decodeFormState = function (e, t, n) { - var o = t.get('$ACTION_KEY'); - if (typeof o != 'string') return Promise.resolve(null); + En.decodeFormState = function (e, t, s) { + var i = t.get('$ACTION_KEY'); + if (typeof i != 'string') return Promise.resolve(null); var r = null; if ( - (t.forEach(function (i, a) { - a.startsWith('$ACTION_REF_') && - ((i = '$ACTION_' + a.slice(12) + ':'), (r = nc(t, n, i))); + (t.forEach(function (p, d) { + d.startsWith('$ACTION_REF_') && + ((p = '$ACTION_' + d.slice(12) + ':'), (r = Ju(t, s, p))); }), r === null) ) return Promise.resolve(null); - var s = r.id; - return Promise.resolve(r.bound).then(function (i) { - return i === null ? null : [e, o, s, i.length - 1]; + var a = r.id; + return Promise.resolve(r.bound).then(function (p) { + return p === null ? null : [e, i, a, p.length - 1]; }); }; - Gt.decodeReply = function (e, t, n) { + En.decodeReply = function (e, t, s) { if (typeof e == 'string') { - var o = new FormData(); - o.append('0', e), (e = o); + var i = new FormData(); + i.append('0', e), (e = i); } return ( - (e = ec( + (e = Xu( t, '', - n ? n.temporaryReferences : void 0, + s ? s.temporaryReferences : void 0, e, - n ? n.arraySizeLimit : void 0 + s ? s.arraySizeLimit : void 0 )), - (t = br(e, 0)), - tc(e), + (t = Vr(e, 0)), + Yu(e), t ); }; - Gt.prerender = function (e, t, n) { - return new Promise(function (o, r) { - var s = new Ll( + En.prerender = function (e, t, s) { + return new Promise(function (i, r) { + var a = new Nu( 21, e, t, - n ? n.onError : void 0, - n ? n.onPostpone : void 0, + s ? s.onError : void 0, + s ? s.onPostpone : void 0, function () { - var u = new ReadableStream( + var y = new ReadableStream( { type: 'bytes', - pull: function (h) { - Ul(s, h); + pull: function (k) { + Vu(a, k); }, - cancel: function (h) { - (s.destination = null), ao(s, h); + cancel: function (k) { + (a.destination = null), si(a, k); }, }, {highWaterMark: 0} ); - o({prelude: u}); + i({prelude: y}); }, r, - n ? n.identifierPrefix : void 0, - n ? n.temporaryReferences : void 0 + s ? s.identifierPrefix : void 0, + s ? s.temporaryReferences : void 0 ); - if (n && n.signal) { - var i = n.signal; - if (i.aborted) ao(s, i.reason); + if (s && s.signal) { + var p = s.signal; + if (p.aborted) si(a, p.reason); else { - var a = function () { - ao(s, i.reason), i.removeEventListener('abort', a); + var d = function () { + si(a, p.reason), p.removeEventListener('abort', d); }; - i.addEventListener('abort', a); + p.addEventListener('abort', d); } } - Hl(s); + Bu(a); }); }; - Gt.registerClientReference = function (e, t, n) { - return so(e, t + '#' + n, !1); + En.registerClientReference = function (e, t, s) { + return ti(e, t + '#' + s, !1); }; - Gt.registerServerReference = function (e, t, n) { + En.registerServerReference = function (e, t, s) { return Object.defineProperties(e, { - $$typeof: {value: mr}, - $$id: {value: n === null ? t : t + '#' + n, configurable: !0}, + $$typeof: {value: Ar}, + $$id: {value: s === null ? t : t + '#' + s, configurable: !0}, $$bound: {value: null, configurable: !0}, - bind: {value: Il, configurable: !0}, - toString: sf, + bind: {value: xu, configurable: !0}, + toString: Qf, }); }; - Gt.renderToReadableStream = function (e, t, n) { - var o = new Ll( + En.renderToReadableStream = function (e, t, s) { + var i = new Nu( 20, e, t, - n ? n.onError : void 0, - n ? n.onPostpone : void 0, - Kn, - Kn, - n ? n.identifierPrefix : void 0, - n ? n.temporaryReferences : void 0 + s ? s.onError : void 0, + s ? s.onPostpone : void 0, + Cs, + Cs, + s ? s.identifierPrefix : void 0, + s ? s.temporaryReferences : void 0 ); - if (n && n.signal) { - var r = n.signal; - if (r.aborted) ao(o, r.reason); + if (s && s.signal) { + var r = s.signal; + if (r.aborted) si(i, r.reason); else { - var s = function () { - ao(o, r.reason), r.removeEventListener('abort', s); + var a = function () { + si(i, r.reason), r.removeEventListener('abort', a); }; - r.addEventListener('abort', s); + r.addEventListener('abort', a); } } return new ReadableStream( { type: 'bytes', start: function () { - Hl(o); + Bu(i); }, - pull: function (i) { - Ul(o, i); + pull: function (p) { + Vu(i, p); }, - cancel: function (i) { - (o.destination = null), ao(o, i); + cancel: function (p) { + (i.destination = null), si(i, p); }, }, {highWaterMark: 0} ); }; }); - var rc = H((pn) => { + var Zu = Z((Wn) => { 'use strict'; - var un; - un = oc(); - pn.renderToReadableStream = un.renderToReadableStream; - pn.decodeReply = un.decodeReply; - pn.decodeAction = un.decodeAction; - pn.decodeFormState = un.decodeFormState; - pn.registerServerReference = un.registerServerReference; - pn.registerClientReference = un.registerClientReference; - pn.createClientModuleProxy = un.createClientModuleProxy; - pn.createTemporaryReferenceSet = un.createTemporaryReferenceSet; + var Hn; + Hn = Qu(); + Wn.renderToReadableStream = Hn.renderToReadableStream; + Wn.decodeReply = Hn.decodeReply; + Wn.decodeAction = Hn.decodeAction; + Wn.decodeFormState = Hn.decodeFormState; + Wn.registerServerReference = Hn.registerServerReference; + Wn.registerClientReference = Hn.registerClientReference; + Wn.createClientModuleProxy = Hn.createClientModuleProxy; + Wn.createTemporaryReferenceSet = Hn.createTemporaryReferenceSet; }); - var Ge = H((Ai) => { + var It = Z((Ta) => { 'use strict'; - Object.defineProperty(Ai, '__esModule', {value: !0}); - var sc; + Object.defineProperty(Ta, '__esModule', {value: !0}); + var e1; (function (e) { e[(e.NONE = 0)] = 'NONE'; - let n = 1; - e[(e._abstract = n)] = '_abstract'; - let o = n + 1; - e[(e._accessor = o)] = '_accessor'; - let r = o + 1; - e[(e._as = r)] = '_as'; - let s = r + 1; - e[(e._assert = s)] = '_assert'; + let s = 1; + e[(e._abstract = s)] = '_abstract'; let i = s + 1; - e[(e._asserts = i)] = '_asserts'; - let a = i + 1; - e[(e._async = a)] = '_async'; - let u = a + 1; - e[(e._await = u)] = '_await'; - let h = u + 1; - e[(e._checks = h)] = '_checks'; - let v = h + 1; - e[(e._constructor = v)] = '_constructor'; - let _ = v + 1; - e[(e._declare = _)] = '_declare'; - let x = _ + 1; - e[(e._enum = x)] = '_enum'; - let L = x + 1; - e[(e._exports = L)] = '_exports'; - let G = L + 1; - e[(e._from = G)] = '_from'; - let F = G + 1; - e[(e._get = F)] = '_get'; - let K = F + 1; - e[(e._global = K)] = '_global'; - let R = K + 1; - e[(e._implements = R)] = '_implements'; - let z = R + 1; - e[(e._infer = z)] = '_infer'; - let $ = z + 1; - e[(e._interface = $)] = '_interface'; - let O = $ + 1; - e[(e._is = O)] = '_is'; - let A = O + 1; - e[(e._keyof = A)] = '_keyof'; - let M = A + 1; - e[(e._mixins = M)] = '_mixins'; - let B = M + 1; - e[(e._module = B)] = '_module'; - let oe = B + 1; - e[(e._namespace = oe)] = '_namespace'; - let ne = oe + 1; - e[(e._of = ne)] = '_of'; - let re = ne + 1; - e[(e._opaque = re)] = '_opaque'; - let Le = re + 1; - e[(e._out = Le)] = '_out'; - let Fe = Le + 1; - e[(e._override = Fe)] = '_override'; - let mt = Fe + 1; - e[(e._private = mt)] = '_private'; + e[(e._accessor = i)] = '_accessor'; + let r = i + 1; + e[(e._as = r)] = '_as'; + let a = r + 1; + e[(e._assert = a)] = '_assert'; + let p = a + 1; + e[(e._asserts = p)] = '_asserts'; + let d = p + 1; + e[(e._async = d)] = '_async'; + let y = d + 1; + e[(e._await = y)] = '_await'; + let k = y + 1; + e[(e._checks = k)] = '_checks'; + let A = k + 1; + e[(e._constructor = A)] = '_constructor'; + let u = A + 1; + e[(e._declare = u)] = '_declare'; + let f = u + 1; + e[(e._enum = f)] = '_enum'; + let x = f + 1; + e[(e._exports = x)] = '_exports'; + let g = x + 1; + e[(e._from = g)] = '_from'; + let S = g + 1; + e[(e._get = S)] = '_get'; + let E = S + 1; + e[(e._global = E)] = '_global'; + let L = E + 1; + e[(e._implements = L)] = '_implements'; + let H = L + 1; + e[(e._infer = H)] = '_infer'; + let D = H + 1; + e[(e._interface = D)] = '_interface'; + let c = D + 1; + e[(e._is = c)] = '_is'; + let M = c + 1; + e[(e._keyof = M)] = '_keyof'; + let z = M + 1; + e[(e._mixins = z)] = '_mixins'; + let X = z + 1; + e[(e._module = X)] = '_module'; + let ie = X + 1; + e[(e._namespace = ie)] = '_namespace'; + let pe = ie + 1; + e[(e._of = pe)] = '_of'; + let ae = pe + 1; + e[(e._opaque = ae)] = '_opaque'; + let He = ae + 1; + e[(e._out = He)] = '_out'; + let qe = He + 1; + e[(e._override = qe)] = '_override'; + let Bt = qe + 1; + e[(e._private = Bt)] = '_private'; + let mt = Bt + 1; + e[(e._protected = mt)] = '_protected'; let kt = mt + 1; - e[(e._protected = kt)] = '_protected'; - let Qe = kt + 1; - e[(e._proto = Qe)] = '_proto'; - let vt = Qe + 1; - e[(e._public = vt)] = '_public'; - let it = vt + 1; - e[(e._readonly = it)] = '_readonly'; - let ct = it + 1; - e[(e._require = ct)] = '_require'; - let Ze = ct + 1; - e[(e._satisfies = Ze)] = '_satisfies'; - let ut = Ze + 1; - e[(e._set = ut)] = '_set'; - let Ft = ut + 1; - e[(e._static = Ft)] = '_static'; - let Vt = Ft + 1; - e[(e._symbol = Vt)] = '_symbol'; - let $t = Vt + 1; - e[(e._type = $t)] = '_type'; - let Bt = $t + 1; - e[(e._unique = Bt)] = '_unique'; - let on = Bt + 1; - e[(e._using = on)] = '_using'; - })(sc || (Ai.ContextualKeyword = sc = {})); + e[(e._proto = kt)] = '_proto'; + let At = kt + 1; + e[(e._public = At)] = '_public'; + let tt = At + 1; + e[(e._readonly = tt)] = '_readonly'; + let nt = tt + 1; + e[(e._require = nt)] = '_require'; + let _t = nt + 1; + e[(e._satisfies = _t)] = '_satisfies'; + let ct = _t + 1; + e[(e._set = ct)] = '_set'; + let wt = ct + 1; + e[(e._static = wt)] = '_static'; + let $t = wt + 1; + e[(e._symbol = $t)] = '_symbol'; + let Pt = $t + 1; + e[(e._type = Pt)] = '_type'; + let qt = Pt + 1; + e[(e._unique = qt)] = '_unique'; + let yn = qt + 1; + e[(e._using = yn)] = '_using'; + })(e1 || (Ta.ContextualKeyword = e1 = {})); }); - var ce = H((Er) => { + var be = Z((jr) => { 'use strict'; - Object.defineProperty(Er, '__esModule', {value: !0}); - var b; + Object.defineProperty(jr, '__esModule', {value: !0}); + var q; (function (e) { e[(e.PRECEDENCE_MASK = 15)] = 'PRECEDENCE_MASK'; - let n = 16; - e[(e.IS_KEYWORD = n)] = 'IS_KEYWORD'; - let o = 32; - e[(e.IS_ASSIGN = o)] = 'IS_ASSIGN'; + let s = 16; + e[(e.IS_KEYWORD = s)] = 'IS_KEYWORD'; + let i = 32; + e[(e.IS_ASSIGN = i)] = 'IS_ASSIGN'; let r = 64; e[(e.IS_RIGHT_ASSOCIATIVE = r)] = 'IS_RIGHT_ASSOCIATIVE'; - let s = 128; - e[(e.IS_PREFIX = s)] = 'IS_PREFIX'; - let i = 256; - e[(e.IS_POSTFIX = i)] = 'IS_POSTFIX'; - let a = 512; - e[(e.IS_EXPRESSION_START = a)] = 'IS_EXPRESSION_START'; - let u = 512; - e[(e.num = u)] = 'num'; - let h = 1536; - e[(e.bigint = h)] = 'bigint'; - let v = 2560; - e[(e.decimal = v)] = 'decimal'; - let _ = 3584; - e[(e.regexp = _)] = 'regexp'; - let x = 4608; - e[(e.string = x)] = 'string'; - let L = 5632; - e[(e.name = L)] = 'name'; - let G = 6144; - e[(e.eof = G)] = 'eof'; - let F = 7680; - e[(e.bracketL = F)] = 'bracketL'; - let K = 8192; - e[(e.bracketR = K)] = 'bracketR'; - let R = 9728; - e[(e.braceL = R)] = 'braceL'; - let z = 10752; - e[(e.braceBarL = z)] = 'braceBarL'; - let $ = 11264; - e[(e.braceR = $)] = 'braceR'; - let O = 12288; - e[(e.braceBarR = O)] = 'braceBarR'; - let A = 13824; - e[(e.parenL = A)] = 'parenL'; - let M = 14336; - e[(e.parenR = M)] = 'parenR'; - let B = 15360; - e[(e.comma = B)] = 'comma'; - let oe = 16384; - e[(e.semi = oe)] = 'semi'; - let ne = 17408; - e[(e.colon = ne)] = 'colon'; - let re = 18432; - e[(e.doubleColon = re)] = 'doubleColon'; - let Le = 19456; - e[(e.dot = Le)] = 'dot'; - let Fe = 20480; - e[(e.question = Fe)] = 'question'; - let mt = 21504; - e[(e.questionDot = mt)] = 'questionDot'; - let kt = 22528; - e[(e.arrow = kt)] = 'arrow'; - let Qe = 23552; - e[(e.template = Qe)] = 'template'; - let vt = 24576; - e[(e.ellipsis = vt)] = 'ellipsis'; - let it = 25600; - e[(e.backQuote = it)] = 'backQuote'; - let ct = 27136; - e[(e.dollarBraceL = ct)] = 'dollarBraceL'; - let Ze = 27648; - e[(e.at = Ze)] = 'at'; - let ut = 29184; - e[(e.hash = ut)] = 'hash'; - let Ft = 29728; - e[(e.eq = Ft)] = 'eq'; - let Vt = 30752; - e[(e.assign = Vt)] = 'assign'; - let $t = 32640; - e[(e.preIncDec = $t)] = 'preIncDec'; - let Bt = 33664; - e[(e.postIncDec = Bt)] = 'postIncDec'; - let on = 34432; - e[(e.bang = on)] = 'bang'; - let I = 35456; - e[(e.tilde = I)] = 'tilde'; - let D = 35841; - e[(e.pipeline = D)] = 'pipeline'; - let j = 36866; - e[(e.nullishCoalescing = j)] = 'nullishCoalescing'; - let Y = 37890; - e[(e.logicalOR = Y)] = 'logicalOR'; - let le = 38915; - e[(e.logicalAND = le)] = 'logicalAND'; - let Q = 39940; - e[(e.bitwiseOR = Q)] = 'bitwiseOR'; - let ke = 40965; - e[(e.bitwiseXOR = ke)] = 'bitwiseXOR'; - let ge = 41990; - e[(e.bitwiseAND = ge)] = 'bitwiseAND'; - let Ce = 43015; - e[(e.equality = Ce)] = 'equality'; - let We = 44040; - e[(e.lessThan = We)] = 'lessThan'; - let $e = 45064; - e[(e.greaterThan = $e)] = 'greaterThan'; - let Ne = 46088; - e[(e.relationalOrEqual = Ne)] = 'relationalOrEqual'; - let Ye = 47113; - e[(e.bitShiftL = Ye)] = 'bitShiftL'; - let et = 48137; - e[(e.bitShiftR = et)] = 'bitShiftR'; - let pt = 49802; - e[(e.plus = pt)] = 'plus'; - let zt = 50826; - e[(e.minus = zt)] = 'minus'; - let tt = 51723; - e[(e.modulo = tt)] = 'modulo'; - let Fn = 52235; - e[(e.star = Fn)] = 'star'; - let Qn = 53259; - e[(e.slash = Qn)] = 'slash'; - let bo = 54348; - e[(e.exponent = bo)] = 'exponent'; - let Zn = 55296; - e[(e.jsxName = Zn)] = 'jsxName'; - let $n = 56320; - e[(e.jsxText = $n)] = 'jsxText'; - let jt = 57344; - e[(e.jsxEmptyText = jt)] = 'jsxEmptyText'; - let kn = 58880; - e[(e.jsxTagStart = kn)] = 'jsxTagStart'; - let eo = 59392; - e[(e.jsxTagEnd = eo)] = 'jsxTagEnd'; - let to = 60928; - e[(e.typeParameterStart = to)] = 'typeParameterStart'; - let no = 61440; - e[(e.nonNullAssertion = no)] = 'nonNullAssertion'; - let Is = 62480; - e[(e._break = Is)] = '_break'; - let Ss = 63504; - e[(e._case = Ss)] = '_case'; - let bs = 64528; - e[(e._catch = bs)] = '_catch'; - let Es = 65552; - e[(e._continue = Es)] = '_continue'; - let As = 66576; - e[(e._debugger = As)] = '_debugger'; - let Ps = 67600; - e[(e._default = Ps)] = '_default'; - let Rs = 68624; - e[(e._do = Rs)] = '_do'; - let Ns = 69648; - e[(e._else = Ns)] = '_else'; - let Ds = 70672; - e[(e._finally = Ds)] = '_finally'; - let Os = 71696; - e[(e._for = Os)] = '_for'; - let Ms = 73232; - e[(e._function = Ms)] = '_function'; - let Ls = 73744; - e[(e._if = Ls)] = '_if'; - let Fs = 74768; - e[(e._return = Fs)] = '_return'; - let $s = 75792; - e[(e._switch = $s)] = '_switch'; - let Bs = 77456; - e[(e._throw = Bs)] = '_throw'; - let js = 77840; - e[(e._try = js)] = '_try'; - let Ks = 78864; - e[(e._var = Ks)] = '_var'; - let qs = 79888; - e[(e._let = qs)] = '_let'; - let Hs = 80912; - e[(e._const = Hs)] = '_const'; - let Us = 81936; - e[(e._while = Us)] = '_while'; - let Ws = 82960; - e[(e._with = Ws)] = '_with'; - let Vs = 84496; - e[(e._new = Vs)] = '_new'; - let zs = 85520; - e[(e._this = zs)] = '_this'; - let Xs = 86544; - e[(e._super = Xs)] = '_super'; - let Ys = 87568; - e[(e._class = Ys)] = '_class'; - let Gs = 88080; - e[(e._extends = Gs)] = '_extends'; - let Js = 89104; - e[(e._export = Js)] = '_export'; - let Qs = 90640; - e[(e._import = Qs)] = '_import'; - let Zs = 91664; - e[(e._yield = Zs)] = '_yield'; - let ei = 92688; - e[(e._null = ei)] = '_null'; - let ti = 93712; - e[(e._true = ti)] = '_true'; - let ni = 94736; - e[(e._false = ni)] = '_false'; - let oi = 95256; - e[(e._in = oi)] = '_in'; - let ri = 96280; - e[(e._instanceof = ri)] = '_instanceof'; - let si = 97936; - e[(e._typeof = si)] = '_typeof'; - let ii = 98960; - e[(e._void = ii)] = '_void'; - let kd = 99984; - e[(e._delete = kd)] = '_delete'; - let vd = 100880; - e[(e._async = vd)] = '_async'; - let _d = 101904; - e[(e._get = _d)] = '_get'; - let xd = 102928; - e[(e._set = xd)] = '_set'; - let gd = 103952; - e[(e._declare = gd)] = '_declare'; - let Cd = 104976; - e[(e._readonly = Cd)] = '_readonly'; - let wd = 106e3; - e[(e._abstract = wd)] = '_abstract'; - let Id = 107024; - e[(e._static = Id)] = '_static'; - let Sd = 107536; - e[(e._public = Sd)] = '_public'; - let bd = 108560; - e[(e._private = bd)] = '_private'; - let Ed = 109584; - e[(e._protected = Ed)] = '_protected'; - let Ad = 110608; - e[(e._override = Ad)] = '_override'; - let Pd = 112144; - e[(e._as = Pd)] = '_as'; - let Rd = 113168; - e[(e._enum = Rd)] = '_enum'; - let Nd = 114192; - e[(e._type = Nd)] = '_type'; - let Dd = 115216; - e[(e._implements = Dd)] = '_implements'; - })(b || (Er.TokenType = b = {})); - function Uf(e) { + let a = 128; + e[(e.IS_PREFIX = a)] = 'IS_PREFIX'; + let p = 256; + e[(e.IS_POSTFIX = p)] = 'IS_POSTFIX'; + let d = 512; + e[(e.IS_EXPRESSION_START = d)] = 'IS_EXPRESSION_START'; + let y = 512; + e[(e.num = y)] = 'num'; + let k = 1536; + e[(e.bigint = k)] = 'bigint'; + let A = 2560; + e[(e.decimal = A)] = 'decimal'; + let u = 3584; + e[(e.regexp = u)] = 'regexp'; + let f = 4608; + e[(e.string = f)] = 'string'; + let x = 5632; + e[(e.name = x)] = 'name'; + let g = 6144; + e[(e.eof = g)] = 'eof'; + let S = 7680; + e[(e.bracketL = S)] = 'bracketL'; + let E = 8192; + e[(e.bracketR = E)] = 'bracketR'; + let L = 9728; + e[(e.braceL = L)] = 'braceL'; + let H = 10752; + e[(e.braceBarL = H)] = 'braceBarL'; + let D = 11264; + e[(e.braceR = D)] = 'braceR'; + let c = 12288; + e[(e.braceBarR = c)] = 'braceBarR'; + let M = 13824; + e[(e.parenL = M)] = 'parenL'; + let z = 14336; + e[(e.parenR = z)] = 'parenR'; + let X = 15360; + e[(e.comma = X)] = 'comma'; + let ie = 16384; + e[(e.semi = ie)] = 'semi'; + let pe = 17408; + e[(e.colon = pe)] = 'colon'; + let ae = 18432; + e[(e.doubleColon = ae)] = 'doubleColon'; + let He = 19456; + e[(e.dot = He)] = 'dot'; + let qe = 20480; + e[(e.question = qe)] = 'question'; + let Bt = 21504; + e[(e.questionDot = Bt)] = 'questionDot'; + let mt = 22528; + e[(e.arrow = mt)] = 'arrow'; + let kt = 23552; + e[(e.template = kt)] = 'template'; + let At = 24576; + e[(e.ellipsis = At)] = 'ellipsis'; + let tt = 25600; + e[(e.backQuote = tt)] = 'backQuote'; + let nt = 27136; + e[(e.dollarBraceL = nt)] = 'dollarBraceL'; + let _t = 27648; + e[(e.at = _t)] = 'at'; + let ct = 29184; + e[(e.hash = ct)] = 'hash'; + let wt = 29728; + e[(e.eq = wt)] = 'eq'; + let $t = 30752; + e[(e.assign = $t)] = 'assign'; + let Pt = 32640; + e[(e.preIncDec = Pt)] = 'preIncDec'; + let qt = 33664; + e[(e.postIncDec = qt)] = 'postIncDec'; + let yn = 34432; + e[(e.bang = yn)] = 'bang'; + let V = 35456; + e[(e.tilde = V)] = 'tilde'; + let W = 35841; + e[(e.pipeline = W)] = 'pipeline'; + let J = 36866; + e[(e.nullishCoalescing = J)] = 'nullishCoalescing'; + let re = 37890; + e[(e.logicalOR = re)] = 'logicalOR'; + let ve = 38915; + e[(e.logicalAND = ve)] = 'logicalAND'; + let he = 39940; + e[(e.bitwiseOR = he)] = 'bitwiseOR'; + let Ie = 40965; + e[(e.bitwiseXOR = Ie)] = 'bitwiseXOR'; + let Ee = 41990; + e[(e.bitwiseAND = Ee)] = 'bitwiseAND'; + let Le = 43015; + e[(e.equality = Le)] = 'equality'; + let Xe = 44040; + e[(e.lessThan = Xe)] = 'lessThan'; + let We = 45064; + e[(e.greaterThan = We)] = 'greaterThan'; + let Ke = 46088; + e[(e.relationalOrEqual = Ke)] = 'relationalOrEqual'; + let ut = 47113; + e[(e.bitShiftL = ut)] = 'bitShiftL'; + let pt = 48137; + e[(e.bitShiftR = pt)] = 'bitShiftR'; + let bt = 49802; + e[(e.plus = bt)] = 'plus'; + let Tt = 50826; + e[(e.minus = Tt)] = 'minus'; + let vt = 51723; + e[(e.modulo = vt)] = 'modulo'; + let bn = 52235; + e[(e.star = bn)] = 'star'; + let Dn = 53259; + e[(e.slash = Dn)] = 'slash'; + let Ge = 54348; + e[(e.exponent = Ge)] = 'exponent'; + let St = 55296; + e[(e.jsxName = St)] = 'jsxName'; + let ot = 56320; + e[(e.jsxText = ot)] = 'jsxText'; + let zt = 57344; + e[(e.jsxEmptyText = zt)] = 'jsxEmptyText'; + let Xt = 58880; + e[(e.jsxTagStart = Xt)] = 'jsxTagStart'; + let te = 59392; + e[(e.jsxTagEnd = te)] = 'jsxTagEnd'; + let Cn = 60928; + e[(e.typeParameterStart = Cn)] = 'typeParameterStart'; + let Zn = 61440; + e[(e.nonNullAssertion = Zn)] = 'nonNullAssertion'; + let _i = 62480; + e[(e._break = _i)] = '_break'; + let Mn = 63504; + e[(e._case = Mn)] = '_case'; + let xs = 64528; + e[(e._catch = xs)] = '_catch'; + let Ds = 65552; + e[(e._continue = Ds)] = '_continue'; + let bi = 66576; + e[(e._debugger = bi)] = '_debugger'; + let es = 67600; + e[(e._default = es)] = '_default'; + let Nt = 68624; + e[(e._do = Nt)] = '_do'; + let Rt = 69648; + e[(e._else = Rt)] = '_else'; + let Ue = 70672; + e[(e._finally = Ue)] = '_finally'; + let wn = 71696; + e[(e._for = wn)] = '_for'; + let de = 73232; + e[(e._function = de)] = '_function'; + let Ms = 73744; + e[(e._if = Ms)] = '_if'; + let gs = 74768; + e[(e._return = gs)] = '_return'; + let Ci = 75792; + e[(e._switch = Ci)] = '_switch'; + let ts = 77456; + e[(e._throw = ts)] = '_throw'; + let rn = 77840; + e[(e._try = rn)] = '_try'; + let wi = 78864; + e[(e._var = wi)] = '_var'; + let Fn = 79888; + e[(e._let = Fn)] = '_let'; + let Bn = 80912; + e[(e._const = Bn)] = '_const'; + let Fs = 81936; + e[(e._while = Fs)] = '_while'; + let Si = 82960; + e[(e._with = Si)] = '_with'; + let Bs = 84496; + e[(e._new = Bs)] = '_new'; + let Vs = 85520; + e[(e._this = Vs)] = '_this'; + let js = 86544; + e[(e._super = js)] = '_super'; + let $s = 87568; + e[(e._class = $s)] = '_class'; + let qs = 88080; + e[(e._extends = qs)] = '_extends'; + let Ii = 89104; + e[(e._export = Ii)] = '_export'; + let Ei = 90640; + e[(e._import = Ei)] = '_import'; + let Ai = 91664; + e[(e._yield = Ai)] = '_yield'; + let Pi = 92688; + e[(e._null = Pi)] = '_null'; + let Ks = 93712; + e[(e._true = Ks)] = '_true'; + let Us = 94736; + e[(e._false = Us)] = '_false'; + let Hs = 95256; + e[(e._in = Hs)] = '_in'; + let Ws = 96280; + e[(e._instanceof = Ws)] = '_instanceof'; + let Gs = 97936; + e[(e._typeof = Gs)] = '_typeof'; + let zs = 98960; + e[(e._void = zs)] = '_void'; + let jo = 99984; + e[(e._delete = jo)] = '_delete'; + let $o = 100880; + e[(e._async = $o)] = '_async'; + let mr = 101904; + e[(e._get = mr)] = '_get'; + let qo = 102928; + e[(e._set = qo)] = '_set'; + let Ni = 103952; + e[(e._declare = Ni)] = '_declare'; + let Tr = 104976; + e[(e._readonly = Tr)] = '_readonly'; + let Ko = 106e3; + e[(e._abstract = Ko)] = '_abstract'; + let le = 107024; + e[(e._static = le)] = '_static'; + let Xs = 107536; + e[(e._public = Xs)] = '_public'; + let on = 108560; + e[(e._private = on)] = '_private'; + let Uo = 109584; + e[(e._protected = Uo)] = '_protected'; + let Ho = 110608; + e[(e._override = Ho)] = '_override'; + let yr = 112144; + e[(e._as = yr)] = '_as'; + let Wo = 113168; + e[(e._enum = Wo)] = '_enum'; + let Go = 114192; + e[(e._type = Go)] = '_type'; + let kr = 115216; + e[(e._implements = kr)] = '_implements'; + })(q || (jr.TokenType = q = {})); + function Md(e) { switch (e) { - case b.num: + case q.num: return 'num'; - case b.bigint: + case q.bigint: return 'bigint'; - case b.decimal: + case q.decimal: return 'decimal'; - case b.regexp: + case q.regexp: return 'regexp'; - case b.string: + case q.string: return 'string'; - case b.name: + case q.name: return 'name'; - case b.eof: + case q.eof: return 'eof'; - case b.bracketL: + case q.bracketL: return '['; - case b.bracketR: + case q.bracketR: return ']'; - case b.braceL: + case q.braceL: return '{'; - case b.braceBarL: + case q.braceBarL: return '{|'; - case b.braceR: + case q.braceR: return '}'; - case b.braceBarR: + case q.braceBarR: return '|}'; - case b.parenL: + case q.parenL: return '('; - case b.parenR: + case q.parenR: return ')'; - case b.comma: + case q.comma: return ','; - case b.semi: + case q.semi: return ';'; - case b.colon: + case q.colon: return ':'; - case b.doubleColon: + case q.doubleColon: return '::'; - case b.dot: + case q.dot: return '.'; - case b.question: + case q.question: return '?'; - case b.questionDot: + case q.questionDot: return '?.'; - case b.arrow: + case q.arrow: return '=>'; - case b.template: + case q.template: return 'template'; - case b.ellipsis: + case q.ellipsis: return '...'; - case b.backQuote: + case q.backQuote: return '`'; - case b.dollarBraceL: + case q.dollarBraceL: return '${'; - case b.at: + case q.at: return '@'; - case b.hash: + case q.hash: return '#'; - case b.eq: + case q.eq: return '='; - case b.assign: + case q.assign: return '_='; - case b.preIncDec: + case q.preIncDec: return '++/--'; - case b.postIncDec: + case q.postIncDec: return '++/--'; - case b.bang: + case q.bang: return '!'; - case b.tilde: + case q.tilde: return '~'; - case b.pipeline: + case q.pipeline: return '|>'; - case b.nullishCoalescing: + case q.nullishCoalescing: return '??'; - case b.logicalOR: + case q.logicalOR: return '||'; - case b.logicalAND: + case q.logicalAND: return '&&'; - case b.bitwiseOR: + case q.bitwiseOR: return '|'; - case b.bitwiseXOR: + case q.bitwiseXOR: return '^'; - case b.bitwiseAND: + case q.bitwiseAND: return '&'; - case b.equality: + case q.equality: return '==/!='; - case b.lessThan: + case q.lessThan: return '<'; - case b.greaterThan: + case q.greaterThan: return '>'; - case b.relationalOrEqual: + case q.relationalOrEqual: return '<=/>='; - case b.bitShiftL: + case q.bitShiftL: return '<<'; - case b.bitShiftR: + case q.bitShiftR: return '>>/>>>'; - case b.plus: + case q.plus: return '+'; - case b.minus: + case q.minus: return '-'; - case b.modulo: + case q.modulo: return '%'; - case b.star: + case q.star: return '*'; - case b.slash: + case q.slash: return '/'; - case b.exponent: + case q.exponent: return '**'; - case b.jsxName: + case q.jsxName: return 'jsxName'; - case b.jsxText: + case q.jsxText: return 'jsxText'; - case b.jsxEmptyText: + case q.jsxEmptyText: return 'jsxEmptyText'; - case b.jsxTagStart: + case q.jsxTagStart: return 'jsxTagStart'; - case b.jsxTagEnd: + case q.jsxTagEnd: return 'jsxTagEnd'; - case b.typeParameterStart: + case q.typeParameterStart: return 'typeParameterStart'; - case b.nonNullAssertion: + case q.nonNullAssertion: return 'nonNullAssertion'; - case b._break: + case q._break: return 'break'; - case b._case: + case q._case: return 'case'; - case b._catch: + case q._catch: return 'catch'; - case b._continue: + case q._continue: return 'continue'; - case b._debugger: + case q._debugger: return 'debugger'; - case b._default: + case q._default: return 'default'; - case b._do: + case q._do: return 'do'; - case b._else: + case q._else: return 'else'; - case b._finally: + case q._finally: return 'finally'; - case b._for: + case q._for: return 'for'; - case b._function: + case q._function: return 'function'; - case b._if: + case q._if: return 'if'; - case b._return: + case q._return: return 'return'; - case b._switch: + case q._switch: return 'switch'; - case b._throw: + case q._throw: return 'throw'; - case b._try: + case q._try: return 'try'; - case b._var: + case q._var: return 'var'; - case b._let: + case q._let: return 'let'; - case b._const: + case q._const: return 'const'; - case b._while: + case q._while: return 'while'; - case b._with: + case q._with: return 'with'; - case b._new: + case q._new: return 'new'; - case b._this: + case q._this: return 'this'; - case b._super: + case q._super: return 'super'; - case b._class: + case q._class: return 'class'; - case b._extends: + case q._extends: return 'extends'; - case b._export: + case q._export: return 'export'; - case b._import: + case q._import: return 'import'; - case b._yield: + case q._yield: return 'yield'; - case b._null: + case q._null: return 'null'; - case b._true: + case q._true: return 'true'; - case b._false: + case q._false: return 'false'; - case b._in: + case q._in: return 'in'; - case b._instanceof: + case q._instanceof: return 'instanceof'; - case b._typeof: + case q._typeof: return 'typeof'; - case b._void: + case q._void: return 'void'; - case b._delete: + case q._delete: return 'delete'; - case b._async: + case q._async: return 'async'; - case b._get: + case q._get: return 'get'; - case b._set: + case q._set: return 'set'; - case b._declare: + case q._declare: return 'declare'; - case b._readonly: + case q._readonly: return 'readonly'; - case b._abstract: + case q._abstract: return 'abstract'; - case b._static: + case q._static: return 'static'; - case b._public: + case q._public: return 'public'; - case b._private: + case q._private: return 'private'; - case b._protected: + case q._protected: return 'protected'; - case b._override: + case q._override: return 'override'; - case b._as: + case q._as: return 'as'; - case b._enum: + case q._enum: return 'enum'; - case b._type: + case q._type: return 'type'; - case b._implements: + case q._implements: return 'implements'; default: return ''; } } - Er.formatTokenType = Uf; + jr.formatTokenType = Md; }); - var Pr = H((Bo) => { + var qr = Z((Ui) => { 'use strict'; - Object.defineProperty(Bo, '__esModule', {value: !0}); - var Wf = Ge(), - Vf = ce(), - Pi = class { - constructor(t, n, o) { + Object.defineProperty(Ui, '__esModule', {value: !0}); + var Fd = It(), + Bd = be(), + ya = class { + constructor(t, s, i) { (this.startTokenIndex = t), - (this.endTokenIndex = n), - (this.isFunctionScope = o); + (this.endTokenIndex = s), + (this.isFunctionScope = i); } }; - Bo.Scope = Pi; - var Ar = class { - constructor(t, n, o, r, s, i, a, u, h, v, _, x, L) { + Ui.Scope = ya; + var $r = class { + constructor(t, s, i, r, a, p, d, y, k, A, u, f, x) { (this.potentialArrowAt = t), - (this.noAnonFunctionType = n), - (this.inDisallowConditionalTypesContext = o), + (this.noAnonFunctionType = s), + (this.inDisallowConditionalTypesContext = i), (this.tokensLength = r), - (this.scopesLength = s), - (this.pos = i), - (this.type = a), - (this.contextualKeyword = u), - (this.start = h), - (this.end = v), - (this.isType = _), - (this.scopeDepth = x), - (this.error = L); + (this.scopesLength = a), + (this.pos = p), + (this.type = d), + (this.contextualKeyword = y), + (this.start = k), + (this.end = A), + (this.isType = u), + (this.scopeDepth = f), + (this.error = x); } }; - Bo.StateSnapshot = Ar; - var Ri = class e { + Ui.StateSnapshot = $r; + var ka = class e { constructor() { e.prototype.__init.call(this), e.prototype.__init2.call(this), @@ -4082,10 +4082,10 @@ If you need interactivity, consider converting part of this to a Client Componen this.pos = 0; } __init7() { - this.type = Vf.TokenType.eof; + this.type = Bd.TokenType.eof; } __init8() { - this.contextualKeyword = Wf.ContextualKeyword.NONE; + this.contextualKeyword = Fd.ContextualKeyword.NONE; } __init9() { this.start = 0; @@ -4103,7 +4103,7 @@ If you need interactivity, consider converting part of this to a Client Componen this.error = null; } snapshot() { - return new Ar( + return new $r( this.potentialArrowAt, this.noAnonFunctionType, this.inDisallowConditionalTypesContext, @@ -4136,383 +4136,383 @@ If you need interactivity, consider converting part of this to a Client Componen (this.error = t.error); } }; - Bo.default = Ri; + Ui.default = ka; }); - var gt = H((Rr) => { + var Qt = Z((Kr) => { 'use strict'; - Object.defineProperty(Rr, '__esModule', {value: !0}); - var wn; + Object.defineProperty(Kr, '__esModule', {value: !0}); + var as; (function (e) { e[(e.backSpace = 8)] = 'backSpace'; - let n = 10; - e[(e.lineFeed = n)] = 'lineFeed'; - let o = 9; - e[(e.tab = o)] = 'tab'; + let s = 10; + e[(e.lineFeed = s)] = 'lineFeed'; + let i = 9; + e[(e.tab = i)] = 'tab'; let r = 13; e[(e.carriageReturn = r)] = 'carriageReturn'; - let s = 14; - e[(e.shiftOut = s)] = 'shiftOut'; - let i = 32; - e[(e.space = i)] = 'space'; - let a = 33; - e[(e.exclamationMark = a)] = 'exclamationMark'; - let u = 34; - e[(e.quotationMark = u)] = 'quotationMark'; - let h = 35; - e[(e.numberSign = h)] = 'numberSign'; - let v = 36; - e[(e.dollarSign = v)] = 'dollarSign'; - let _ = 37; - e[(e.percentSign = _)] = 'percentSign'; - let x = 38; - e[(e.ampersand = x)] = 'ampersand'; - let L = 39; - e[(e.apostrophe = L)] = 'apostrophe'; - let G = 40; - e[(e.leftParenthesis = G)] = 'leftParenthesis'; - let F = 41; - e[(e.rightParenthesis = F)] = 'rightParenthesis'; - let K = 42; - e[(e.asterisk = K)] = 'asterisk'; - let R = 43; - e[(e.plusSign = R)] = 'plusSign'; - let z = 44; - e[(e.comma = z)] = 'comma'; - let $ = 45; - e[(e.dash = $)] = 'dash'; - let O = 46; - e[(e.dot = O)] = 'dot'; - let A = 47; - e[(e.slash = A)] = 'slash'; - let M = 48; - e[(e.digit0 = M)] = 'digit0'; - let B = 49; - e[(e.digit1 = B)] = 'digit1'; - let oe = 50; - e[(e.digit2 = oe)] = 'digit2'; - let ne = 51; - e[(e.digit3 = ne)] = 'digit3'; - let re = 52; - e[(e.digit4 = re)] = 'digit4'; - let Le = 53; - e[(e.digit5 = Le)] = 'digit5'; - let Fe = 54; - e[(e.digit6 = Fe)] = 'digit6'; - let mt = 55; - e[(e.digit7 = mt)] = 'digit7'; - let kt = 56; - e[(e.digit8 = kt)] = 'digit8'; - let Qe = 57; - e[(e.digit9 = Qe)] = 'digit9'; - let vt = 58; - e[(e.colon = vt)] = 'colon'; - let it = 59; - e[(e.semicolon = it)] = 'semicolon'; - let ct = 60; - e[(e.lessThan = ct)] = 'lessThan'; - let Ze = 61; - e[(e.equalsTo = Ze)] = 'equalsTo'; - let ut = 62; - e[(e.greaterThan = ut)] = 'greaterThan'; - let Ft = 63; - e[(e.questionMark = Ft)] = 'questionMark'; - let Vt = 64; - e[(e.atSign = Vt)] = 'atSign'; - let $t = 65; - e[(e.uppercaseA = $t)] = 'uppercaseA'; - let Bt = 66; - e[(e.uppercaseB = Bt)] = 'uppercaseB'; - let on = 67; - e[(e.uppercaseC = on)] = 'uppercaseC'; - let I = 68; - e[(e.uppercaseD = I)] = 'uppercaseD'; - let D = 69; - e[(e.uppercaseE = D)] = 'uppercaseE'; - let j = 70; - e[(e.uppercaseF = j)] = 'uppercaseF'; - let Y = 71; - e[(e.uppercaseG = Y)] = 'uppercaseG'; - let le = 72; - e[(e.uppercaseH = le)] = 'uppercaseH'; - let Q = 73; - e[(e.uppercaseI = Q)] = 'uppercaseI'; - let ke = 74; - e[(e.uppercaseJ = ke)] = 'uppercaseJ'; - let ge = 75; - e[(e.uppercaseK = ge)] = 'uppercaseK'; - let Ce = 76; - e[(e.uppercaseL = Ce)] = 'uppercaseL'; - let We = 77; - e[(e.uppercaseM = We)] = 'uppercaseM'; - let $e = 78; - e[(e.uppercaseN = $e)] = 'uppercaseN'; - let Ne = 79; - e[(e.uppercaseO = Ne)] = 'uppercaseO'; - let Ye = 80; - e[(e.uppercaseP = Ye)] = 'uppercaseP'; - let et = 81; - e[(e.uppercaseQ = et)] = 'uppercaseQ'; - let pt = 82; - e[(e.uppercaseR = pt)] = 'uppercaseR'; - let zt = 83; - e[(e.uppercaseS = zt)] = 'uppercaseS'; - let tt = 84; - e[(e.uppercaseT = tt)] = 'uppercaseT'; - let Fn = 85; - e[(e.uppercaseU = Fn)] = 'uppercaseU'; - let Qn = 86; - e[(e.uppercaseV = Qn)] = 'uppercaseV'; - let bo = 87; - e[(e.uppercaseW = bo)] = 'uppercaseW'; - let Zn = 88; - e[(e.uppercaseX = Zn)] = 'uppercaseX'; - let $n = 89; - e[(e.uppercaseY = $n)] = 'uppercaseY'; - let jt = 90; - e[(e.uppercaseZ = jt)] = 'uppercaseZ'; - let kn = 91; - e[(e.leftSquareBracket = kn)] = 'leftSquareBracket'; - let eo = 92; - e[(e.backslash = eo)] = 'backslash'; - let to = 93; - e[(e.rightSquareBracket = to)] = 'rightSquareBracket'; - let no = 94; - e[(e.caret = no)] = 'caret'; - let Is = 95; - e[(e.underscore = Is)] = 'underscore'; - let Ss = 96; - e[(e.graveAccent = Ss)] = 'graveAccent'; - let bs = 97; - e[(e.lowercaseA = bs)] = 'lowercaseA'; - let Es = 98; - e[(e.lowercaseB = Es)] = 'lowercaseB'; - let As = 99; - e[(e.lowercaseC = As)] = 'lowercaseC'; - let Ps = 100; - e[(e.lowercaseD = Ps)] = 'lowercaseD'; - let Rs = 101; - e[(e.lowercaseE = Rs)] = 'lowercaseE'; - let Ns = 102; - e[(e.lowercaseF = Ns)] = 'lowercaseF'; - let Ds = 103; - e[(e.lowercaseG = Ds)] = 'lowercaseG'; - let Os = 104; - e[(e.lowercaseH = Os)] = 'lowercaseH'; - let Ms = 105; - e[(e.lowercaseI = Ms)] = 'lowercaseI'; - let Ls = 106; - e[(e.lowercaseJ = Ls)] = 'lowercaseJ'; - let Fs = 107; - e[(e.lowercaseK = Fs)] = 'lowercaseK'; - let $s = 108; - e[(e.lowercaseL = $s)] = 'lowercaseL'; - let Bs = 109; - e[(e.lowercaseM = Bs)] = 'lowercaseM'; - let js = 110; - e[(e.lowercaseN = js)] = 'lowercaseN'; - let Ks = 111; - e[(e.lowercaseO = Ks)] = 'lowercaseO'; - let qs = 112; - e[(e.lowercaseP = qs)] = 'lowercaseP'; - let Hs = 113; - e[(e.lowercaseQ = Hs)] = 'lowercaseQ'; - let Us = 114; - e[(e.lowercaseR = Us)] = 'lowercaseR'; - let Ws = 115; - e[(e.lowercaseS = Ws)] = 'lowercaseS'; - let Vs = 116; - e[(e.lowercaseT = Vs)] = 'lowercaseT'; - let zs = 117; - e[(e.lowercaseU = zs)] = 'lowercaseU'; - let Xs = 118; - e[(e.lowercaseV = Xs)] = 'lowercaseV'; - let Ys = 119; - e[(e.lowercaseW = Ys)] = 'lowercaseW'; - let Gs = 120; - e[(e.lowercaseX = Gs)] = 'lowercaseX'; - let Js = 121; - e[(e.lowercaseY = Js)] = 'lowercaseY'; - let Qs = 122; - e[(e.lowercaseZ = Qs)] = 'lowercaseZ'; - let Zs = 123; - e[(e.leftCurlyBrace = Zs)] = 'leftCurlyBrace'; - let ei = 124; - e[(e.verticalBar = ei)] = 'verticalBar'; - let ti = 125; - e[(e.rightCurlyBrace = ti)] = 'rightCurlyBrace'; - let ni = 126; - e[(e.tilde = ni)] = 'tilde'; - let oi = 160; - e[(e.nonBreakingSpace = oi)] = 'nonBreakingSpace'; - let ri = 5760; - e[(e.oghamSpaceMark = ri)] = 'oghamSpaceMark'; - let si = 8232; - e[(e.lineSeparator = si)] = 'lineSeparator'; - let ii = 8233; - e[(e.paragraphSeparator = ii)] = 'paragraphSeparator'; - })(wn || (Rr.charCodes = wn = {})); - function zf(e) { + let a = 14; + e[(e.shiftOut = a)] = 'shiftOut'; + let p = 32; + e[(e.space = p)] = 'space'; + let d = 33; + e[(e.exclamationMark = d)] = 'exclamationMark'; + let y = 34; + e[(e.quotationMark = y)] = 'quotationMark'; + let k = 35; + e[(e.numberSign = k)] = 'numberSign'; + let A = 36; + e[(e.dollarSign = A)] = 'dollarSign'; + let u = 37; + e[(e.percentSign = u)] = 'percentSign'; + let f = 38; + e[(e.ampersand = f)] = 'ampersand'; + let x = 39; + e[(e.apostrophe = x)] = 'apostrophe'; + let g = 40; + e[(e.leftParenthesis = g)] = 'leftParenthesis'; + let S = 41; + e[(e.rightParenthesis = S)] = 'rightParenthesis'; + let E = 42; + e[(e.asterisk = E)] = 'asterisk'; + let L = 43; + e[(e.plusSign = L)] = 'plusSign'; + let H = 44; + e[(e.comma = H)] = 'comma'; + let D = 45; + e[(e.dash = D)] = 'dash'; + let c = 46; + e[(e.dot = c)] = 'dot'; + let M = 47; + e[(e.slash = M)] = 'slash'; + let z = 48; + e[(e.digit0 = z)] = 'digit0'; + let X = 49; + e[(e.digit1 = X)] = 'digit1'; + let ie = 50; + e[(e.digit2 = ie)] = 'digit2'; + let pe = 51; + e[(e.digit3 = pe)] = 'digit3'; + let ae = 52; + e[(e.digit4 = ae)] = 'digit4'; + let He = 53; + e[(e.digit5 = He)] = 'digit5'; + let qe = 54; + e[(e.digit6 = qe)] = 'digit6'; + let Bt = 55; + e[(e.digit7 = Bt)] = 'digit7'; + let mt = 56; + e[(e.digit8 = mt)] = 'digit8'; + let kt = 57; + e[(e.digit9 = kt)] = 'digit9'; + let At = 58; + e[(e.colon = At)] = 'colon'; + let tt = 59; + e[(e.semicolon = tt)] = 'semicolon'; + let nt = 60; + e[(e.lessThan = nt)] = 'lessThan'; + let _t = 61; + e[(e.equalsTo = _t)] = 'equalsTo'; + let ct = 62; + e[(e.greaterThan = ct)] = 'greaterThan'; + let wt = 63; + e[(e.questionMark = wt)] = 'questionMark'; + let $t = 64; + e[(e.atSign = $t)] = 'atSign'; + let Pt = 65; + e[(e.uppercaseA = Pt)] = 'uppercaseA'; + let qt = 66; + e[(e.uppercaseB = qt)] = 'uppercaseB'; + let yn = 67; + e[(e.uppercaseC = yn)] = 'uppercaseC'; + let V = 68; + e[(e.uppercaseD = V)] = 'uppercaseD'; + let W = 69; + e[(e.uppercaseE = W)] = 'uppercaseE'; + let J = 70; + e[(e.uppercaseF = J)] = 'uppercaseF'; + let re = 71; + e[(e.uppercaseG = re)] = 'uppercaseG'; + let ve = 72; + e[(e.uppercaseH = ve)] = 'uppercaseH'; + let he = 73; + e[(e.uppercaseI = he)] = 'uppercaseI'; + let Ie = 74; + e[(e.uppercaseJ = Ie)] = 'uppercaseJ'; + let Ee = 75; + e[(e.uppercaseK = Ee)] = 'uppercaseK'; + let Le = 76; + e[(e.uppercaseL = Le)] = 'uppercaseL'; + let Xe = 77; + e[(e.uppercaseM = Xe)] = 'uppercaseM'; + let We = 78; + e[(e.uppercaseN = We)] = 'uppercaseN'; + let Ke = 79; + e[(e.uppercaseO = Ke)] = 'uppercaseO'; + let ut = 80; + e[(e.uppercaseP = ut)] = 'uppercaseP'; + let pt = 81; + e[(e.uppercaseQ = pt)] = 'uppercaseQ'; + let bt = 82; + e[(e.uppercaseR = bt)] = 'uppercaseR'; + let Tt = 83; + e[(e.uppercaseS = Tt)] = 'uppercaseS'; + let vt = 84; + e[(e.uppercaseT = vt)] = 'uppercaseT'; + let bn = 85; + e[(e.uppercaseU = bn)] = 'uppercaseU'; + let Dn = 86; + e[(e.uppercaseV = Dn)] = 'uppercaseV'; + let Ge = 87; + e[(e.uppercaseW = Ge)] = 'uppercaseW'; + let St = 88; + e[(e.uppercaseX = St)] = 'uppercaseX'; + let ot = 89; + e[(e.uppercaseY = ot)] = 'uppercaseY'; + let zt = 90; + e[(e.uppercaseZ = zt)] = 'uppercaseZ'; + let Xt = 91; + e[(e.leftSquareBracket = Xt)] = 'leftSquareBracket'; + let te = 92; + e[(e.backslash = te)] = 'backslash'; + let Cn = 93; + e[(e.rightSquareBracket = Cn)] = 'rightSquareBracket'; + let Zn = 94; + e[(e.caret = Zn)] = 'caret'; + let _i = 95; + e[(e.underscore = _i)] = 'underscore'; + let Mn = 96; + e[(e.graveAccent = Mn)] = 'graveAccent'; + let xs = 97; + e[(e.lowercaseA = xs)] = 'lowercaseA'; + let Ds = 98; + e[(e.lowercaseB = Ds)] = 'lowercaseB'; + let bi = 99; + e[(e.lowercaseC = bi)] = 'lowercaseC'; + let es = 100; + e[(e.lowercaseD = es)] = 'lowercaseD'; + let Nt = 101; + e[(e.lowercaseE = Nt)] = 'lowercaseE'; + let Rt = 102; + e[(e.lowercaseF = Rt)] = 'lowercaseF'; + let Ue = 103; + e[(e.lowercaseG = Ue)] = 'lowercaseG'; + let wn = 104; + e[(e.lowercaseH = wn)] = 'lowercaseH'; + let de = 105; + e[(e.lowercaseI = de)] = 'lowercaseI'; + let Ms = 106; + e[(e.lowercaseJ = Ms)] = 'lowercaseJ'; + let gs = 107; + e[(e.lowercaseK = gs)] = 'lowercaseK'; + let Ci = 108; + e[(e.lowercaseL = Ci)] = 'lowercaseL'; + let ts = 109; + e[(e.lowercaseM = ts)] = 'lowercaseM'; + let rn = 110; + e[(e.lowercaseN = rn)] = 'lowercaseN'; + let wi = 111; + e[(e.lowercaseO = wi)] = 'lowercaseO'; + let Fn = 112; + e[(e.lowercaseP = Fn)] = 'lowercaseP'; + let Bn = 113; + e[(e.lowercaseQ = Bn)] = 'lowercaseQ'; + let Fs = 114; + e[(e.lowercaseR = Fs)] = 'lowercaseR'; + let Si = 115; + e[(e.lowercaseS = Si)] = 'lowercaseS'; + let Bs = 116; + e[(e.lowercaseT = Bs)] = 'lowercaseT'; + let Vs = 117; + e[(e.lowercaseU = Vs)] = 'lowercaseU'; + let js = 118; + e[(e.lowercaseV = js)] = 'lowercaseV'; + let $s = 119; + e[(e.lowercaseW = $s)] = 'lowercaseW'; + let qs = 120; + e[(e.lowercaseX = qs)] = 'lowercaseX'; + let Ii = 121; + e[(e.lowercaseY = Ii)] = 'lowercaseY'; + let Ei = 122; + e[(e.lowercaseZ = Ei)] = 'lowercaseZ'; + let Ai = 123; + e[(e.leftCurlyBrace = Ai)] = 'leftCurlyBrace'; + let Pi = 124; + e[(e.verticalBar = Pi)] = 'verticalBar'; + let Ks = 125; + e[(e.rightCurlyBrace = Ks)] = 'rightCurlyBrace'; + let Us = 126; + e[(e.tilde = Us)] = 'tilde'; + let Hs = 160; + e[(e.nonBreakingSpace = Hs)] = 'nonBreakingSpace'; + let Ws = 5760; + e[(e.oghamSpaceMark = Ws)] = 'oghamSpaceMark'; + let Gs = 8232; + e[(e.lineSeparator = Gs)] = 'lineSeparator'; + let zs = 8233; + e[(e.paragraphSeparator = zs)] = 'paragraphSeparator'; + })(as || (Kr.charCodes = as = {})); + function Vd(e) { return ( - (e >= wn.digit0 && e <= wn.digit9) || - (e >= wn.lowercaseA && e <= wn.lowercaseF) || - (e >= wn.uppercaseA && e <= wn.uppercaseF) + (e >= as.digit0 && e <= as.digit9) || + (e >= as.lowercaseA && e <= as.lowercaseF) || + (e >= as.uppercaseA && e <= as.uppercaseF) ); } - Rr.isDigit = zf; + Kr.isDigit = Vd; }); - var Ct = H((qe) => { + var Zt = Z((ft) => { 'use strict'; - Object.defineProperty(qe, '__esModule', {value: !0}); - function Xf(e) { + Object.defineProperty(ft, '__esModule', {value: !0}); + function jd(e) { return e && e.__esModule ? e : {default: e}; } - var Yf = Pr(), - Gf = Xf(Yf), - Jf = gt(); - qe.isJSXEnabled; - qe.isTypeScriptEnabled; - qe.isFlowEnabled; - qe.state; - qe.input; - qe.nextContextId; - function Qf() { - return qe.nextContextId++; - } - qe.getNextContextId = Qf; - function Zf(e) { + var $d = qr(), + qd = jd($d), + Kd = Qt(); + ft.isJSXEnabled; + ft.isTypeScriptEnabled; + ft.isFlowEnabled; + ft.state; + ft.input; + ft.nextContextId; + function Ud() { + return ft.nextContextId++; + } + ft.getNextContextId = Ud; + function Hd(e) { if ('pos' in e) { - let t = ic(e.pos); + let t = t1(e.pos); (e.message += ` (${t.line}:${t.column})`), (e.loc = t); } return e; } - qe.augmentError = Zf; - var Nr = class { - constructor(t, n) { - (this.line = t), (this.column = n); + ft.augmentError = Hd; + var Ur = class { + constructor(t, s) { + (this.line = t), (this.column = s); } }; - qe.Loc = Nr; - function ic(e) { + ft.Loc = Ur; + function t1(e) { let t = 1, - n = 1; - for (let o = 0; o < e; o++) - qe.input.charCodeAt(o) === Jf.charCodes.lineFeed ? (t++, (n = 1)) : n++; - return new Nr(t, n); - } - qe.locationForIndex = ic; - function eh(e, t, n, o) { - (qe.input = e), - (qe.state = new Gf.default()), - (qe.nextContextId = 1), - (qe.isJSXEnabled = t), - (qe.isTypeScriptEnabled = n), - (qe.isFlowEnabled = o); - } - qe.initParser = eh; + s = 1; + for (let i = 0; i < e; i++) + ft.input.charCodeAt(i) === Kd.charCodes.lineFeed ? (t++, (s = 1)) : s++; + return new Ur(t, s); + } + ft.locationForIndex = t1; + function Wd(e, t, s, i) { + (ft.input = e), + (ft.state = new qd.default()), + (ft.nextContextId = 1), + (ft.isJSXEnabled = t), + (ft.isTypeScriptEnabled = s), + (ft.isFlowEnabled = i); + } + ft.initParser = Wd; }); - var Sn = H((It) => { + var cs = Z((tn) => { 'use strict'; - Object.defineProperty(It, '__esModule', {value: !0}); - var In = Ve(), - Vn = ce(), - Dr = gt(), - wt = Ct(); - function th(e) { - return wt.state.contextualKeyword === e; - } - It.isContextual = th; - function nh(e) { - let t = In.lookaheadTypeAndKeyword.call(void 0); - return t.type === Vn.TokenType.name && t.contextualKeyword === e; - } - It.isLookaheadContextual = nh; - function ac(e) { + Object.defineProperty(tn, '__esModule', {value: !0}); + var ls = xt(), + As = be(), + Hr = Qt(), + en = Zt(); + function Gd(e) { + return en.state.contextualKeyword === e; + } + tn.isContextual = Gd; + function zd(e) { + let t = ls.lookaheadTypeAndKeyword.call(void 0); + return t.type === As.TokenType.name && t.contextualKeyword === e; + } + tn.isLookaheadContextual = zd; + function n1(e) { return ( - wt.state.contextualKeyword === e && - In.eat.call(void 0, Vn.TokenType.name) + en.state.contextualKeyword === e && + ls.eat.call(void 0, As.TokenType.name) ); } - It.eatContextual = ac; - function oh(e) { - ac(e) || Or(); + tn.eatContextual = n1; + function Xd(e) { + n1(e) || Wr(); } - It.expectContextual = oh; - function lc() { + tn.expectContextual = Xd; + function s1() { return ( - In.match.call(void 0, Vn.TokenType.eof) || - In.match.call(void 0, Vn.TokenType.braceR) || - cc() + ls.match.call(void 0, As.TokenType.eof) || + ls.match.call(void 0, As.TokenType.braceR) || + i1() ); } - It.canInsertSemicolon = lc; - function cc() { - let e = wt.state.tokens[wt.state.tokens.length - 1], + tn.canInsertSemicolon = s1; + function i1() { + let e = en.state.tokens[en.state.tokens.length - 1], t = e ? e.end : 0; - for (let n = t; n < wt.state.start; n++) { - let o = wt.input.charCodeAt(n); + for (let s = t; s < en.state.start; s++) { + let i = en.input.charCodeAt(s); if ( - o === Dr.charCodes.lineFeed || - o === Dr.charCodes.carriageReturn || - o === 8232 || - o === 8233 + i === Hr.charCodes.lineFeed || + i === Hr.charCodes.carriageReturn || + i === 8232 || + i === 8233 ) return !0; } return !1; } - It.hasPrecedingLineBreak = cc; - function rh() { - let e = In.nextTokenStart.call(void 0); - for (let t = wt.state.end; t < e; t++) { - let n = wt.input.charCodeAt(t); + tn.hasPrecedingLineBreak = i1; + function Yd() { + let e = ls.nextTokenStart.call(void 0); + for (let t = en.state.end; t < e; t++) { + let s = en.input.charCodeAt(t); if ( - n === Dr.charCodes.lineFeed || - n === Dr.charCodes.carriageReturn || - n === 8232 || - n === 8233 + s === Hr.charCodes.lineFeed || + s === Hr.charCodes.carriageReturn || + s === 8232 || + s === 8233 ) return !0; } return !1; } - It.hasFollowingLineBreak = rh; - function uc() { - return In.eat.call(void 0, Vn.TokenType.semi) || lc(); + tn.hasFollowingLineBreak = Yd; + function r1() { + return ls.eat.call(void 0, As.TokenType.semi) || s1(); } - It.isLineTerminator = uc; - function sh() { - uc() || Or('Unexpected token, expected ";"'); + tn.isLineTerminator = r1; + function Jd() { + r1() || Wr('Unexpected token, expected ";"'); } - It.semicolon = sh; - function ih(e) { - In.eat.call(void 0, e) || - Or( - `Unexpected token, expected "${Vn.formatTokenType.call(void 0, e)}"` + tn.semicolon = Jd; + function Qd(e) { + ls.eat.call(void 0, e) || + Wr( + `Unexpected token, expected "${As.formatTokenType.call(void 0, e)}"` ); } - It.expect = ih; - function Or(e = 'Unexpected token', t = wt.state.start) { - if (wt.state.error) return; - let n = new SyntaxError(e); - (n.pos = t), - (wt.state.error = n), - (wt.state.pos = wt.input.length), - In.finishToken.call(void 0, Vn.TokenType.eof); + tn.expect = Qd; + function Wr(e = 'Unexpected token', t = en.state.start) { + if (en.state.error) return; + let s = new SyntaxError(e); + (s.pos = t), + (en.state.error = s), + (en.state.pos = en.input.length), + ls.finishToken.call(void 0, As.TokenType.eof); } - It.unexpected = Or; + tn.unexpected = Wr; }); - var Di = H((zn) => { + var xa = Z((Ps) => { 'use strict'; - Object.defineProperty(zn, '__esModule', {value: !0}); - var Ni = gt(), - ah = [ + Object.defineProperty(Ps, '__esModule', {value: !0}); + var va = Qt(), + Zd = [ 9, 11, 12, - Ni.charCodes.space, - Ni.charCodes.nonBreakingSpace, - Ni.charCodes.oghamSpaceMark, + va.charCodes.space, + va.charCodes.nonBreakingSpace, + va.charCodes.oghamSpaceMark, 8192, 8193, 8194, @@ -4529,19 +4529,19 @@ If you need interactivity, consider converting part of this to a Client Componen 12288, 65279, ]; - zn.WHITESPACE_CHARS = ah; - var lh = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; - zn.skipWhiteSpace = lh; - var ch = new Uint8Array(65536); - zn.IS_WHITESPACE = ch; - for (let e of zn.WHITESPACE_CHARS) zn.IS_WHITESPACE[e] = 1; + Ps.WHITESPACE_CHARS = Zd; + var em = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; + Ps.skipWhiteSpace = em; + var tm = new Uint8Array(65536); + Ps.IS_WHITESPACE = tm; + for (let e of Ps.WHITESPACE_CHARS) Ps.IS_WHITESPACE[e] = 1; }); - var fo = H((qt) => { + var li = Z((vn) => { 'use strict'; - Object.defineProperty(qt, '__esModule', {value: !0}); - var pc = gt(), - uh = Di(); - function ph(e) { + Object.defineProperty(vn, '__esModule', {value: !0}); + var o1 = Qt(), + nm = xa(); + function sm(e) { if (e < 48) return e === 36; if (e < 58) return !0; if (e < 65) return !1; @@ -4551,24 +4551,24 @@ If you need interactivity, consider converting part of this to a Client Componen if (e < 128) return !1; throw new Error('Should not be called with non-ASCII char code.'); } - var dh = new Uint8Array(65536); - qt.IS_IDENTIFIER_CHAR = dh; - for (let e = 0; e < 128; e++) qt.IS_IDENTIFIER_CHAR[e] = ph(e) ? 1 : 0; - for (let e = 128; e < 65536; e++) qt.IS_IDENTIFIER_CHAR[e] = 1; - for (let e of uh.WHITESPACE_CHARS) qt.IS_IDENTIFIER_CHAR[e] = 0; - qt.IS_IDENTIFIER_CHAR[8232] = 0; - qt.IS_IDENTIFIER_CHAR[8233] = 0; - var fh = qt.IS_IDENTIFIER_CHAR.slice(); - qt.IS_IDENTIFIER_START = fh; - for (let e = pc.charCodes.digit0; e <= pc.charCodes.digit9; e++) - qt.IS_IDENTIFIER_START[e] = 0; + var im = new Uint8Array(65536); + vn.IS_IDENTIFIER_CHAR = im; + for (let e = 0; e < 128; e++) vn.IS_IDENTIFIER_CHAR[e] = sm(e) ? 1 : 0; + for (let e = 128; e < 65536; e++) vn.IS_IDENTIFIER_CHAR[e] = 1; + for (let e of nm.WHITESPACE_CHARS) vn.IS_IDENTIFIER_CHAR[e] = 0; + vn.IS_IDENTIFIER_CHAR[8232] = 0; + vn.IS_IDENTIFIER_CHAR[8233] = 0; + var rm = vn.IS_IDENTIFIER_CHAR.slice(); + vn.IS_IDENTIFIER_START = rm; + for (let e = o1.charCodes.digit0; e <= o1.charCodes.digit9; e++) + vn.IS_IDENTIFIER_START[e] = 0; }); - var dc = H((Oi) => { + var a1 = Z((ga) => { 'use strict'; - Object.defineProperty(Oi, '__esModule', {value: !0}); - var ie = Ge(), - ue = ce(), - hh = new Int32Array([ + Object.defineProperty(ga, '__esModule', {value: !0}); + var ge = It(), + Ce = be(), + om = new Int32Array([ -1, 27, 783, @@ -4785,7 +4785,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._abstract << 1, + ge.ContextualKeyword._abstract << 1, -1, -1, -1, @@ -4974,7 +4974,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._accessor << 1, + ge.ContextualKeyword._accessor << 1, -1, -1, -1, @@ -5001,7 +5001,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._as << 1, + ge.ContextualKeyword._as << 1, -1, -1, -1, @@ -5109,7 +5109,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._assert << 1, + ge.ContextualKeyword._assert << 1, -1, -1, -1, @@ -5136,7 +5136,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._asserts << 1, + ge.ContextualKeyword._asserts << 1, -1, -1, -1, @@ -5217,7 +5217,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._async << 1, + ge.ContextualKeyword._async << 1, -1, -1, -1, @@ -5325,7 +5325,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._await << 1, + ge.ContextualKeyword._await << 1, -1, -1, -1, @@ -5460,7 +5460,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._break << 1) + 1, + (Ce.TokenType._break << 1) + 1, -1, -1, -1, @@ -5568,7 +5568,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._case << 1) + 1, + (Ce.TokenType._case << 1) + 1, -1, -1, -1, @@ -5649,7 +5649,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._catch << 1) + 1, + (Ce.TokenType._catch << 1) + 1, -1, -1, -1, @@ -5784,7 +5784,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._checks << 1, + ge.ContextualKeyword._checks << 1, -1, -1, -1, @@ -5892,7 +5892,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._class << 1) + 1, + (Ce.TokenType._class << 1) + 1, -1, -1, -1, @@ -6000,7 +6000,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._const << 1) + 1, + (Ce.TokenType._const << 1) + 1, -1, -1, -1, @@ -6162,7 +6162,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._constructor << 1, + ge.ContextualKeyword._constructor << 1, -1, -1, -1, @@ -6297,7 +6297,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._continue << 1) + 1, + (Ce.TokenType._continue << 1) + 1, -1, -1, -1, @@ -6513,7 +6513,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._debugger << 1) + 1, + (Ce.TokenType._debugger << 1) + 1, -1, -1, -1, @@ -6648,7 +6648,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._declare << 1, + ge.ContextualKeyword._declare << 1, -1, -1, -1, @@ -6783,7 +6783,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._default << 1) + 1, + (Ce.TokenType._default << 1) + 1, -1, -1, -1, @@ -6891,7 +6891,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._delete << 1) + 1, + (Ce.TokenType._delete << 1) + 1, -1, -1, -1, @@ -6918,7 +6918,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._do << 1) + 1, + (Ce.TokenType._do << 1) + 1, -1, -1, -1, @@ -7026,7 +7026,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._else << 1) + 1, + (Ce.TokenType._else << 1) + 1, -1, -1, -1, @@ -7107,7 +7107,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._enum << 1, + ge.ContextualKeyword._enum << 1, -1, -1, -1, @@ -7242,7 +7242,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._export << 1) + 1, + (Ce.TokenType._export << 1) + 1, -1, -1, -1, @@ -7269,7 +7269,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._exports << 1, + ge.ContextualKeyword._exports << 1, -1, -1, -1, @@ -7404,7 +7404,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._extends << 1) + 1, + (Ce.TokenType._extends << 1) + 1, -1, -1, -1, @@ -7539,7 +7539,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._false << 1) + 1, + (Ce.TokenType._false << 1) + 1, -1, -1, -1, @@ -7701,7 +7701,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, 3132, -1, - (ue.TokenType._finally << 1) + 1, + (Ce.TokenType._finally << 1) + 1, -1, -1, -1, @@ -7755,7 +7755,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._for << 1) + 1, + (Ce.TokenType._for << 1) + 1, -1, -1, -1, @@ -7836,7 +7836,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._from << 1, + ge.ContextualKeyword._from << 1, -1, -1, -1, @@ -8025,7 +8025,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._function << 1) + 1, + (Ce.TokenType._function << 1) + 1, -1, -1, -1, @@ -8106,7 +8106,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._get << 1, + ge.ContextualKeyword._get << 1, -1, -1, -1, @@ -8241,7 +8241,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._global << 1, + ge.ContextualKeyword._global << 1, -1, -1, -1, @@ -8295,7 +8295,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._if << 1) + 1, + (Ce.TokenType._if << 1) + 1, -1, -1, -1, @@ -8538,7 +8538,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._implements << 1, + ge.ContextualKeyword._implements << 1, -1, -1, -1, @@ -8619,7 +8619,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._import << 1) + 1, + (Ce.TokenType._import << 1) + 1, -1, -1, -1, @@ -8646,7 +8646,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._in << 1) + 1, + (Ce.TokenType._in << 1) + 1, -1, -1, -1, @@ -8727,7 +8727,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._infer << 1, + ge.ContextualKeyword._infer << 1, -1, -1, -1, @@ -8943,7 +8943,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._instanceof << 1) + 1, + (Ce.TokenType._instanceof << 1) + 1, -1, -1, -1, @@ -9132,7 +9132,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._interface << 1, + ge.ContextualKeyword._interface << 1, -1, -1, -1, @@ -9159,7 +9159,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._is << 1, + ge.ContextualKeyword._is << 1, -1, -1, -1, @@ -9294,7 +9294,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._keyof << 1, + ge.ContextualKeyword._keyof << 1, -1, -1, -1, @@ -9375,7 +9375,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._let << 1) + 1, + (Ce.TokenType._let << 1) + 1, -1, -1, -1, @@ -9537,7 +9537,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._mixins << 1, + ge.ContextualKeyword._mixins << 1, -1, -1, -1, @@ -9672,7 +9672,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._module << 1, + ge.ContextualKeyword._module << 1, -1, -1, -1, @@ -9915,7 +9915,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._namespace << 1, + ge.ContextualKeyword._namespace << 1, -1, -1, -1, @@ -9969,7 +9969,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._new << 1) + 1, + (Ce.TokenType._new << 1) + 1, -1, -1, -1, @@ -10050,7 +10050,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._null << 1) + 1, + (Ce.TokenType._null << 1) + 1, -1, -1, -1, @@ -10104,7 +10104,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._of << 1, + ge.ContextualKeyword._of << 1, -1, -1, -1, @@ -10239,7 +10239,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._opaque << 1, + ge.ContextualKeyword._opaque << 1, -1, -1, -1, @@ -10293,7 +10293,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._out << 1, + ge.ContextualKeyword._out << 1, -1, -1, -1, @@ -10482,7 +10482,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._override << 1, + ge.ContextualKeyword._override << 1, -1, -1, -1, @@ -10671,7 +10671,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._private << 1, + ge.ContextualKeyword._private << 1, -1, -1, -1, @@ -10860,7 +10860,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._protected << 1, + ge.ContextualKeyword._protected << 1, -1, -1, -1, @@ -10887,7 +10887,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._proto << 1, + ge.ContextualKeyword._proto << 1, -1, -1, -1, @@ -11022,7 +11022,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._public << 1, + ge.ContextualKeyword._public << 1, -1, -1, -1, @@ -11238,7 +11238,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, 6669, -1, - ie.ContextualKeyword._readonly << 1, + ge.ContextualKeyword._readonly << 1, -1, -1, -1, @@ -11373,7 +11373,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._require << 1, + ge.ContextualKeyword._require << 1, -1, -1, -1, @@ -11481,7 +11481,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._return << 1) + 1, + (Ce.TokenType._return << 1) + 1, -1, -1, -1, @@ -11724,7 +11724,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._satisfies << 1, + ge.ContextualKeyword._satisfies << 1, -1, -1, -1, @@ -11778,7 +11778,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._set << 1, + ge.ContextualKeyword._set << 1, -1, -1, -1, @@ -11913,7 +11913,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._static << 1, + ge.ContextualKeyword._static << 1, -1, -1, -1, @@ -12021,7 +12021,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._super << 1) + 1, + (Ce.TokenType._super << 1) + 1, -1, -1, -1, @@ -12156,7 +12156,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._switch << 1) + 1, + (Ce.TokenType._switch << 1) + 1, -1, -1, -1, @@ -12291,7 +12291,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._symbol << 1, + ge.ContextualKeyword._symbol << 1, -1, -1, -1, @@ -12399,7 +12399,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._this << 1) + 1, + (Ce.TokenType._this << 1) + 1, -1, -1, -1, @@ -12480,7 +12480,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._throw << 1) + 1, + (Ce.TokenType._throw << 1) + 1, -1, -1, -1, @@ -12561,7 +12561,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._true << 1) + 1, + (Ce.TokenType._true << 1) + 1, -1, -1, -1, @@ -12588,7 +12588,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._try << 1) + 1, + (Ce.TokenType._try << 1) + 1, -1, -1, -1, @@ -12669,7 +12669,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._type << 1, + ge.ContextualKeyword._type << 1, -1, -1, -1, @@ -12723,7 +12723,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._typeof << 1) + 1, + (Ce.TokenType._typeof << 1) + 1, -1, -1, -1, @@ -12885,7 +12885,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._unique << 1, + ge.ContextualKeyword._unique << 1, -1, -1, -1, @@ -12993,7 +12993,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - ie.ContextualKeyword._using << 1, + ge.ContextualKeyword._using << 1, -1, -1, -1, @@ -13074,7 +13074,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._var << 1) + 1, + (Ce.TokenType._var << 1) + 1, -1, -1, -1, @@ -13155,7 +13155,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._void << 1) + 1, + (Ce.TokenType._void << 1) + 1, -1, -1, -1, @@ -13290,7 +13290,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._while << 1) + 1, + (Ce.TokenType._while << 1) + 1, -1, -1, -1, @@ -13371,7 +13371,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._with << 1) + 1, + (Ce.TokenType._with << 1) + 1, -1, -1, -1, @@ -13506,7 +13506,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, -1, - (ue.TokenType._yield << 1) + 1, + (Ce.TokenType._yield << 1) + 1, -1, -1, -1, @@ -13534,186 +13534,186 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, ]); - Oi.READ_WORD_TREE = hh; + ga.READ_WORD_TREE = om; }); - var yc = H((Li) => { + var p1 = Z((ba) => { 'use strict'; - Object.defineProperty(Li, '__esModule', {value: !0}); - var Ht = Ct(), - bn = gt(), - fc = fo(), - Mi = Ve(), - hc = dc(), - Tc = ce(); - function Th() { + Object.defineProperty(ba, '__esModule', {value: !0}); + var xn = Zt(), + us = Qt(), + l1 = li(), + _a = xt(), + c1 = a1(), + u1 = be(); + function am() { let e = 0, t = 0, - n = Ht.state.pos; + s = xn.state.pos; for ( ; - n < Ht.input.length && - ((t = Ht.input.charCodeAt(n)), - !(t < bn.charCodes.lowercaseA || t > bn.charCodes.lowercaseZ)); + s < xn.input.length && + ((t = xn.input.charCodeAt(s)), + !(t < us.charCodes.lowercaseA || t > us.charCodes.lowercaseZ)); ) { - let r = hc.READ_WORD_TREE[e + (t - bn.charCodes.lowercaseA) + 1]; + let r = c1.READ_WORD_TREE[e + (t - us.charCodes.lowercaseA) + 1]; if (r === -1) break; - (e = r), n++; - } - let o = hc.READ_WORD_TREE[e]; - if (o > -1 && !fc.IS_IDENTIFIER_CHAR[t]) { - (Ht.state.pos = n), - o & 1 - ? Mi.finishToken.call(void 0, o >>> 1) - : Mi.finishToken.call(void 0, Tc.TokenType.name, o >>> 1); + (e = r), s++; + } + let i = c1.READ_WORD_TREE[e]; + if (i > -1 && !l1.IS_IDENTIFIER_CHAR[t]) { + (xn.state.pos = s), + i & 1 + ? _a.finishToken.call(void 0, i >>> 1) + : _a.finishToken.call(void 0, u1.TokenType.name, i >>> 1); return; } - for (; n < Ht.input.length; ) { - let r = Ht.input.charCodeAt(n); - if (fc.IS_IDENTIFIER_CHAR[r]) n++; - else if (r === bn.charCodes.backslash) { + for (; s < xn.input.length; ) { + let r = xn.input.charCodeAt(s); + if (l1.IS_IDENTIFIER_CHAR[r]) s++; + else if (r === us.charCodes.backslash) { if ( - ((n += 2), Ht.input.charCodeAt(n) === bn.charCodes.leftCurlyBrace) + ((s += 2), xn.input.charCodeAt(s) === us.charCodes.leftCurlyBrace) ) { for ( ; - n < Ht.input.length && - Ht.input.charCodeAt(n) !== bn.charCodes.rightCurlyBrace; + s < xn.input.length && + xn.input.charCodeAt(s) !== us.charCodes.rightCurlyBrace; ) - n++; - n++; + s++; + s++; } } else if ( - r === bn.charCodes.atSign && - Ht.input.charCodeAt(n + 1) === bn.charCodes.atSign + r === us.charCodes.atSign && + xn.input.charCodeAt(s + 1) === us.charCodes.atSign ) - n += 2; + s += 2; else break; } - (Ht.state.pos = n), Mi.finishToken.call(void 0, Tc.TokenType.name); + (xn.state.pos = s), _a.finishToken.call(void 0, u1.TokenType.name); } - Li.default = Th; + ba.default = am; }); - var Ve = H((xe) => { + var xt = Z((Be) => { 'use strict'; - Object.defineProperty(xe, '__esModule', {value: !0}); - function yh(e) { + Object.defineProperty(Be, '__esModule', {value: !0}); + function lm(e) { return e && e.__esModule ? e : {default: e}; } - var d = Ct(), - ho = Sn(), - g = gt(), - kc = fo(), - $i = Di(), - mh = Ge(), - kh = yc(), - vh = yh(kh), - U = ce(), - Oe; + var b = Zt(), + ci = cs(), + F = Qt(), + f1 = li(), + wa = xa(), + cm = It(), + um = p1(), + pm = lm(um), + ne = be(), + it; (function (e) { e[(e.Access = 0)] = 'Access'; - let n = 1; - e[(e.ExportAccess = n)] = 'ExportAccess'; - let o = n + 1; - e[(e.TopLevelDeclaration = o)] = 'TopLevelDeclaration'; - let r = o + 1; - e[(e.FunctionScopedDeclaration = r)] = 'FunctionScopedDeclaration'; - let s = r + 1; - e[(e.BlockScopedDeclaration = s)] = 'BlockScopedDeclaration'; + let s = 1; + e[(e.ExportAccess = s)] = 'ExportAccess'; let i = s + 1; - e[(e.ObjectShorthandTopLevelDeclaration = i)] = + e[(e.TopLevelDeclaration = i)] = 'TopLevelDeclaration'; + let r = i + 1; + e[(e.FunctionScopedDeclaration = r)] = 'FunctionScopedDeclaration'; + let a = r + 1; + e[(e.BlockScopedDeclaration = a)] = 'BlockScopedDeclaration'; + let p = a + 1; + e[(e.ObjectShorthandTopLevelDeclaration = p)] = 'ObjectShorthandTopLevelDeclaration'; - let a = i + 1; - e[(e.ObjectShorthandFunctionScopedDeclaration = a)] = + let d = p + 1; + e[(e.ObjectShorthandFunctionScopedDeclaration = d)] = 'ObjectShorthandFunctionScopedDeclaration'; - let u = a + 1; - e[(e.ObjectShorthandBlockScopedDeclaration = u)] = + let y = d + 1; + e[(e.ObjectShorthandBlockScopedDeclaration = y)] = 'ObjectShorthandBlockScopedDeclaration'; - let h = u + 1; - e[(e.ObjectShorthand = h)] = 'ObjectShorthand'; - let v = h + 1; - e[(e.ImportDeclaration = v)] = 'ImportDeclaration'; - let _ = v + 1; - e[(e.ObjectKey = _)] = 'ObjectKey'; - let x = _ + 1; - e[(e.ImportAccess = x)] = 'ImportAccess'; - })(Oe || (xe.IdentifierRole = Oe = {})); - var mc; + let k = y + 1; + e[(e.ObjectShorthand = k)] = 'ObjectShorthand'; + let A = k + 1; + e[(e.ImportDeclaration = A)] = 'ImportDeclaration'; + let u = A + 1; + e[(e.ObjectKey = u)] = 'ObjectKey'; + let f = u + 1; + e[(e.ImportAccess = f)] = 'ImportAccess'; + })(it || (Be.IdentifierRole = it = {})); + var h1; (function (e) { e[(e.NoChildren = 0)] = 'NoChildren'; - let n = 1; - e[(e.OneChild = n)] = 'OneChild'; - let o = n + 1; - e[(e.StaticChildren = o)] = 'StaticChildren'; - let r = o + 1; + let s = 1; + e[(e.OneChild = s)] = 'OneChild'; + let i = s + 1; + e[(e.StaticChildren = i)] = 'StaticChildren'; + let r = i + 1; e[(e.KeyAfterPropSpread = r)] = 'KeyAfterPropSpread'; - })(mc || (xe.JSXRole = mc = {})); - function _h(e) { + })(h1 || (Be.JSXRole = h1 = {})); + function hm(e) { let t = e.identifierRole; return ( - t === Oe.TopLevelDeclaration || - t === Oe.FunctionScopedDeclaration || - t === Oe.BlockScopedDeclaration || - t === Oe.ObjectShorthandTopLevelDeclaration || - t === Oe.ObjectShorthandFunctionScopedDeclaration || - t === Oe.ObjectShorthandBlockScopedDeclaration + t === it.TopLevelDeclaration || + t === it.FunctionScopedDeclaration || + t === it.BlockScopedDeclaration || + t === it.ObjectShorthandTopLevelDeclaration || + t === it.ObjectShorthandFunctionScopedDeclaration || + t === it.ObjectShorthandBlockScopedDeclaration ); } - xe.isDeclaration = _h; - function xh(e) { + Be.isDeclaration = hm; + function fm(e) { let t = e.identifierRole; return ( - t === Oe.FunctionScopedDeclaration || - t === Oe.BlockScopedDeclaration || - t === Oe.ObjectShorthandFunctionScopedDeclaration || - t === Oe.ObjectShorthandBlockScopedDeclaration + t === it.FunctionScopedDeclaration || + t === it.BlockScopedDeclaration || + t === it.ObjectShorthandFunctionScopedDeclaration || + t === it.ObjectShorthandBlockScopedDeclaration ); } - xe.isNonTopLevelDeclaration = xh; - function gh(e) { + Be.isNonTopLevelDeclaration = fm; + function dm(e) { let t = e.identifierRole; return ( - t === Oe.TopLevelDeclaration || - t === Oe.ObjectShorthandTopLevelDeclaration || - t === Oe.ImportDeclaration + t === it.TopLevelDeclaration || + t === it.ObjectShorthandTopLevelDeclaration || + t === it.ImportDeclaration ); } - xe.isTopLevelDeclaration = gh; - function Ch(e) { + Be.isTopLevelDeclaration = dm; + function mm(e) { let t = e.identifierRole; return ( - t === Oe.TopLevelDeclaration || - t === Oe.BlockScopedDeclaration || - t === Oe.ObjectShorthandTopLevelDeclaration || - t === Oe.ObjectShorthandBlockScopedDeclaration + t === it.TopLevelDeclaration || + t === it.BlockScopedDeclaration || + t === it.ObjectShorthandTopLevelDeclaration || + t === it.ObjectShorthandBlockScopedDeclaration ); } - xe.isBlockScopedDeclaration = Ch; - function wh(e) { + Be.isBlockScopedDeclaration = mm; + function Tm(e) { let t = e.identifierRole; return ( - t === Oe.FunctionScopedDeclaration || - t === Oe.ObjectShorthandFunctionScopedDeclaration + t === it.FunctionScopedDeclaration || + t === it.ObjectShorthandFunctionScopedDeclaration ); } - xe.isFunctionScopedDeclaration = wh; - function Ih(e) { + Be.isFunctionScopedDeclaration = Tm; + function ym(e) { return ( - e.identifierRole === Oe.ObjectShorthandTopLevelDeclaration || - e.identifierRole === Oe.ObjectShorthandBlockScopedDeclaration || - e.identifierRole === Oe.ObjectShorthandFunctionScopedDeclaration + e.identifierRole === it.ObjectShorthandTopLevelDeclaration || + e.identifierRole === it.ObjectShorthandBlockScopedDeclaration || + e.identifierRole === it.ObjectShorthandFunctionScopedDeclaration ); } - xe.isObjectShorthandDeclaration = Ih; - var jo = class { + Be.isObjectShorthandDeclaration = ym; + var Hi = class { constructor() { - (this.type = d.state.type), - (this.contextualKeyword = d.state.contextualKeyword), - (this.start = d.state.start), - (this.end = d.state.end), - (this.scopeDepth = d.state.scopeDepth), - (this.isType = d.state.isType), + (this.type = b.state.type), + (this.contextualKeyword = b.state.contextualKeyword), + (this.start = b.state.start), + (this.end = b.state.end), + (this.scopeDepth = b.state.scopeDepth), + (this.isType = b.state.isType), (this.identifierRole = null), (this.jsxRole = null), (this.shadowsGlobal = !1), @@ -13729,609 +13729,609 @@ If you need interactivity, consider converting part of this to a Client Componen (this.nullishStartIndex = null); } }; - xe.Token = jo; - function Lr() { - d.state.tokens.push(new jo()), gc(); - } - xe.next = Lr; - function Sh() { - d.state.tokens.push(new jo()), (d.state.start = d.state.pos), Yh(); - } - xe.nextTemplateToken = Sh; - function bh() { - d.state.type === U.TokenType.assign && --d.state.pos, Vh(); - } - xe.retokenizeSlashAsRegex = bh; - function Eh(e) { - for (let n = d.state.tokens.length - e; n < d.state.tokens.length; n++) - d.state.tokens[n].isType = !0; - let t = d.state.isType; - return (d.state.isType = !0), t; - } - xe.pushTypeContext = Eh; - function Ah(e) { - d.state.isType = e; - } - xe.popTypeContext = Ah; - function vc(e) { - return Bi(e) ? (Lr(), !0) : !1; - } - xe.eat = vc; - function Ph(e) { - let t = d.state.isType; - (d.state.isType = !0), vc(e), (d.state.isType = t); - } - xe.eatTypeToken = Ph; - function Bi(e) { - return d.state.type === e; + Be.Token = Hi; + function zr() { + b.state.tokens.push(new Hi()), y1(); + } + Be.next = zr; + function km() { + b.state.tokens.push(new Hi()), (b.state.start = b.state.pos), $m(); } - xe.match = Bi; - function Rh() { - let e = d.state.snapshot(); - Lr(); - let t = d.state.type; - return d.state.restoreFromSnapshot(e), t; + Be.nextTemplateToken = km; + function vm() { + b.state.type === ne.TokenType.assign && --b.state.pos, Bm(); + } + Be.retokenizeSlashAsRegex = vm; + function xm(e) { + for (let s = b.state.tokens.length - e; s < b.state.tokens.length; s++) + b.state.tokens[s].isType = !0; + let t = b.state.isType; + return (b.state.isType = !0), t; + } + Be.pushTypeContext = xm; + function gm(e) { + b.state.isType = e; + } + Be.popTypeContext = gm; + function d1(e) { + return Sa(e) ? (zr(), !0) : !1; + } + Be.eat = d1; + function _m(e) { + let t = b.state.isType; + (b.state.isType = !0), d1(e), (b.state.isType = t); + } + Be.eatTypeToken = _m; + function Sa(e) { + return b.state.type === e; + } + Be.match = Sa; + function bm() { + let e = b.state.snapshot(); + zr(); + let t = b.state.type; + return b.state.restoreFromSnapshot(e), t; } - xe.lookaheadType = Rh; - var Mr = class { - constructor(t, n) { - (this.type = t), (this.contextualKeyword = n); + Be.lookaheadType = bm; + var Gr = class { + constructor(t, s) { + (this.type = t), (this.contextualKeyword = s); } }; - xe.TypeAndKeyword = Mr; - function Nh() { - let e = d.state.snapshot(); - Lr(); - let t = d.state.type, - n = d.state.contextualKeyword; - return d.state.restoreFromSnapshot(e), new Mr(t, n); - } - xe.lookaheadTypeAndKeyword = Nh; - function _c() { - return xc(d.state.pos); - } - xe.nextTokenStart = _c; - function xc(e) { - $i.skipWhiteSpace.lastIndex = e; - let t = $i.skipWhiteSpace.exec(d.input); + Be.TypeAndKeyword = Gr; + function Cm() { + let e = b.state.snapshot(); + zr(); + let t = b.state.type, + s = b.state.contextualKeyword; + return b.state.restoreFromSnapshot(e), new Gr(t, s); + } + Be.lookaheadTypeAndKeyword = Cm; + function m1() { + return T1(b.state.pos); + } + Be.nextTokenStart = m1; + function T1(e) { + wa.skipWhiteSpace.lastIndex = e; + let t = wa.skipWhiteSpace.exec(b.input); return e + t[0].length; } - xe.nextTokenStartSince = xc; - function Dh() { - return d.input.charCodeAt(_c()); + Be.nextTokenStartSince = T1; + function wm() { + return b.input.charCodeAt(m1()); } - xe.lookaheadCharCode = Dh; - function gc() { + Be.lookaheadCharCode = wm; + function y1() { if ( - (wc(), (d.state.start = d.state.pos), d.state.pos >= d.input.length) + (v1(), (b.state.start = b.state.pos), b.state.pos >= b.input.length) ) { - let e = d.state.tokens; + let e = b.state.tokens; e.length >= 2 && - e[e.length - 1].start >= d.input.length && - e[e.length - 2].start >= d.input.length && - ho.unexpected.call(void 0, 'Unexpectedly reached the end of input.'), - we(U.TokenType.eof); + e[e.length - 1].start >= b.input.length && + e[e.length - 2].start >= b.input.length && + ci.unexpected.call(void 0, 'Unexpectedly reached the end of input.'), + Ve(ne.TokenType.eof); return; } - Oh(d.input.charCodeAt(d.state.pos)); + Sm(b.input.charCodeAt(b.state.pos)); } - xe.nextToken = gc; - function Oh(e) { - kc.IS_IDENTIFIER_START[e] || - e === g.charCodes.backslash || - (e === g.charCodes.atSign && - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.atSign) - ? vh.default.call(void 0) - : Sc(e); + Be.nextToken = y1; + function Sm(e) { + f1.IS_IDENTIFIER_START[e] || + e === F.charCodes.backslash || + (e === F.charCodes.atSign && + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.atSign) + ? pm.default.call(void 0) + : g1(e); } - function Mh() { + function Im() { for ( ; - d.input.charCodeAt(d.state.pos) !== g.charCodes.asterisk || - d.input.charCodeAt(d.state.pos + 1) !== g.charCodes.slash; + b.input.charCodeAt(b.state.pos) !== F.charCodes.asterisk || + b.input.charCodeAt(b.state.pos + 1) !== F.charCodes.slash; ) - if ((d.state.pos++, d.state.pos > d.input.length)) { - ho.unexpected.call(void 0, 'Unterminated comment', d.state.pos - 2); + if ((b.state.pos++, b.state.pos > b.input.length)) { + ci.unexpected.call(void 0, 'Unterminated comment', b.state.pos - 2); return; } - d.state.pos += 2; + b.state.pos += 2; } - function Cc(e) { - let t = d.input.charCodeAt((d.state.pos += e)); - if (d.state.pos < d.input.length) + function k1(e) { + let t = b.input.charCodeAt((b.state.pos += e)); + if (b.state.pos < b.input.length) for ( ; - t !== g.charCodes.lineFeed && - t !== g.charCodes.carriageReturn && - t !== g.charCodes.lineSeparator && - t !== g.charCodes.paragraphSeparator && - ++d.state.pos < d.input.length; + t !== F.charCodes.lineFeed && + t !== F.charCodes.carriageReturn && + t !== F.charCodes.lineSeparator && + t !== F.charCodes.paragraphSeparator && + ++b.state.pos < b.input.length; ) - t = d.input.charCodeAt(d.state.pos); + t = b.input.charCodeAt(b.state.pos); } - xe.skipLineComment = Cc; - function wc() { - for (; d.state.pos < d.input.length; ) { - let e = d.input.charCodeAt(d.state.pos); + Be.skipLineComment = k1; + function v1() { + for (; b.state.pos < b.input.length; ) { + let e = b.input.charCodeAt(b.state.pos); switch (e) { - case g.charCodes.carriageReturn: - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.lineFeed && - ++d.state.pos; - case g.charCodes.lineFeed: - case g.charCodes.lineSeparator: - case g.charCodes.paragraphSeparator: - ++d.state.pos; + case F.charCodes.carriageReturn: + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.lineFeed && + ++b.state.pos; + case F.charCodes.lineFeed: + case F.charCodes.lineSeparator: + case F.charCodes.paragraphSeparator: + ++b.state.pos; break; - case g.charCodes.slash: - switch (d.input.charCodeAt(d.state.pos + 1)) { - case g.charCodes.asterisk: - (d.state.pos += 2), Mh(); + case F.charCodes.slash: + switch (b.input.charCodeAt(b.state.pos + 1)) { + case F.charCodes.asterisk: + (b.state.pos += 2), Im(); break; - case g.charCodes.slash: - Cc(2); + case F.charCodes.slash: + k1(2); break; default: return; } break; default: - if ($i.IS_WHITESPACE[e]) ++d.state.pos; + if (wa.IS_WHITESPACE[e]) ++b.state.pos; else return; } } } - xe.skipSpace = wc; - function we(e, t = mh.ContextualKeyword.NONE) { - (d.state.end = d.state.pos), - (d.state.type = e), - (d.state.contextualKeyword = t); + Be.skipSpace = v1; + function Ve(e, t = cm.ContextualKeyword.NONE) { + (b.state.end = b.state.pos), + (b.state.type = e), + (b.state.contextualKeyword = t); } - xe.finishToken = we; - function Lh() { - let e = d.input.charCodeAt(d.state.pos + 1); - if (e >= g.charCodes.digit0 && e <= g.charCodes.digit9) { - bc(!0); + Be.finishToken = Ve; + function Em() { + let e = b.input.charCodeAt(b.state.pos + 1); + if (e >= F.charCodes.digit0 && e <= F.charCodes.digit9) { + _1(!0); return; } - e === g.charCodes.dot && - d.input.charCodeAt(d.state.pos + 2) === g.charCodes.dot - ? ((d.state.pos += 3), we(U.TokenType.ellipsis)) - : (++d.state.pos, we(U.TokenType.dot)); + e === F.charCodes.dot && + b.input.charCodeAt(b.state.pos + 2) === F.charCodes.dot + ? ((b.state.pos += 3), Ve(ne.TokenType.ellipsis)) + : (++b.state.pos, Ve(ne.TokenType.dot)); } - function Fh() { - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.equalsTo - ? _e(U.TokenType.assign, 2) - : _e(U.TokenType.slash, 1); + function Am() { + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.equalsTo + ? Fe(ne.TokenType.assign, 2) + : Fe(ne.TokenType.slash, 1); } - function $h(e) { + function Pm(e) { let t = - e === g.charCodes.asterisk ? U.TokenType.star : U.TokenType.modulo, - n = 1, - o = d.input.charCodeAt(d.state.pos + 1); - e === g.charCodes.asterisk && - o === g.charCodes.asterisk && - (n++, - (o = d.input.charCodeAt(d.state.pos + 2)), - (t = U.TokenType.exponent)), - o === g.charCodes.equalsTo && - d.input.charCodeAt(d.state.pos + 2) !== g.charCodes.greaterThan && - (n++, (t = U.TokenType.assign)), - _e(t, n); - } - function Bh(e) { - let t = d.input.charCodeAt(d.state.pos + 1); + e === F.charCodes.asterisk ? ne.TokenType.star : ne.TokenType.modulo, + s = 1, + i = b.input.charCodeAt(b.state.pos + 1); + e === F.charCodes.asterisk && + i === F.charCodes.asterisk && + (s++, + (i = b.input.charCodeAt(b.state.pos + 2)), + (t = ne.TokenType.exponent)), + i === F.charCodes.equalsTo && + b.input.charCodeAt(b.state.pos + 2) !== F.charCodes.greaterThan && + (s++, (t = ne.TokenType.assign)), + Fe(t, s); + } + function Nm(e) { + let t = b.input.charCodeAt(b.state.pos + 1); if (t === e) { - d.input.charCodeAt(d.state.pos + 2) === g.charCodes.equalsTo - ? _e(U.TokenType.assign, 3) - : _e( - e === g.charCodes.verticalBar - ? U.TokenType.logicalOR - : U.TokenType.logicalAND, + b.input.charCodeAt(b.state.pos + 2) === F.charCodes.equalsTo + ? Fe(ne.TokenType.assign, 3) + : Fe( + e === F.charCodes.verticalBar + ? ne.TokenType.logicalOR + : ne.TokenType.logicalAND, 2 ); return; } - if (e === g.charCodes.verticalBar) { - if (t === g.charCodes.greaterThan) { - _e(U.TokenType.pipeline, 2); + if (e === F.charCodes.verticalBar) { + if (t === F.charCodes.greaterThan) { + Fe(ne.TokenType.pipeline, 2); return; - } else if (t === g.charCodes.rightCurlyBrace && d.isFlowEnabled) { - _e(U.TokenType.braceBarR, 2); + } else if (t === F.charCodes.rightCurlyBrace && b.isFlowEnabled) { + Fe(ne.TokenType.braceBarR, 2); return; } } - if (t === g.charCodes.equalsTo) { - _e(U.TokenType.assign, 2); + if (t === F.charCodes.equalsTo) { + Fe(ne.TokenType.assign, 2); return; } - _e( - e === g.charCodes.verticalBar - ? U.TokenType.bitwiseOR - : U.TokenType.bitwiseAND, + Fe( + e === F.charCodes.verticalBar + ? ne.TokenType.bitwiseOR + : ne.TokenType.bitwiseAND, 1 ); } - function jh() { - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.equalsTo - ? _e(U.TokenType.assign, 2) - : _e(U.TokenType.bitwiseXOR, 1); + function Rm() { + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.equalsTo + ? Fe(ne.TokenType.assign, 2) + : Fe(ne.TokenType.bitwiseXOR, 1); } - function Kh(e) { - let t = d.input.charCodeAt(d.state.pos + 1); + function Lm(e) { + let t = b.input.charCodeAt(b.state.pos + 1); if (t === e) { - _e(U.TokenType.preIncDec, 2); + Fe(ne.TokenType.preIncDec, 2); return; } - t === g.charCodes.equalsTo - ? _e(U.TokenType.assign, 2) - : e === g.charCodes.plusSign - ? _e(U.TokenType.plus, 1) - : _e(U.TokenType.minus, 1); - } - function qh() { - let e = d.input.charCodeAt(d.state.pos + 1); - if (e === g.charCodes.lessThan) { - if (d.input.charCodeAt(d.state.pos + 2) === g.charCodes.equalsTo) { - _e(U.TokenType.assign, 3); + t === F.charCodes.equalsTo + ? Fe(ne.TokenType.assign, 2) + : e === F.charCodes.plusSign + ? Fe(ne.TokenType.plus, 1) + : Fe(ne.TokenType.minus, 1); + } + function Om() { + let e = b.input.charCodeAt(b.state.pos + 1); + if (e === F.charCodes.lessThan) { + if (b.input.charCodeAt(b.state.pos + 2) === F.charCodes.equalsTo) { + Fe(ne.TokenType.assign, 3); return; } - d.state.isType - ? _e(U.TokenType.lessThan, 1) - : _e(U.TokenType.bitShiftL, 2); + b.state.isType + ? Fe(ne.TokenType.lessThan, 1) + : Fe(ne.TokenType.bitShiftL, 2); return; } - e === g.charCodes.equalsTo - ? _e(U.TokenType.relationalOrEqual, 2) - : _e(U.TokenType.lessThan, 1); + e === F.charCodes.equalsTo + ? Fe(ne.TokenType.relationalOrEqual, 2) + : Fe(ne.TokenType.lessThan, 1); } - function Ic() { - if (d.state.isType) { - _e(U.TokenType.greaterThan, 1); + function x1() { + if (b.state.isType) { + Fe(ne.TokenType.greaterThan, 1); return; } - let e = d.input.charCodeAt(d.state.pos + 1); - if (e === g.charCodes.greaterThan) { + let e = b.input.charCodeAt(b.state.pos + 1); + if (e === F.charCodes.greaterThan) { let t = - d.input.charCodeAt(d.state.pos + 2) === g.charCodes.greaterThan + b.input.charCodeAt(b.state.pos + 2) === F.charCodes.greaterThan ? 3 : 2; - if (d.input.charCodeAt(d.state.pos + t) === g.charCodes.equalsTo) { - _e(U.TokenType.assign, t + 1); + if (b.input.charCodeAt(b.state.pos + t) === F.charCodes.equalsTo) { + Fe(ne.TokenType.assign, t + 1); return; } - _e(U.TokenType.bitShiftR, t); + Fe(ne.TokenType.bitShiftR, t); return; } - e === g.charCodes.equalsTo - ? _e(U.TokenType.relationalOrEqual, 2) - : _e(U.TokenType.greaterThan, 1); + e === F.charCodes.equalsTo + ? Fe(ne.TokenType.relationalOrEqual, 2) + : Fe(ne.TokenType.greaterThan, 1); } - function Hh() { - d.state.type === U.TokenType.greaterThan && ((d.state.pos -= 1), Ic()); + function Dm() { + b.state.type === ne.TokenType.greaterThan && ((b.state.pos -= 1), x1()); } - xe.rescan_gt = Hh; - function Uh(e) { - let t = d.input.charCodeAt(d.state.pos + 1); - if (t === g.charCodes.equalsTo) { - _e( - U.TokenType.equality, - d.input.charCodeAt(d.state.pos + 2) === g.charCodes.equalsTo ? 3 : 2 + Be.rescan_gt = Dm; + function Mm(e) { + let t = b.input.charCodeAt(b.state.pos + 1); + if (t === F.charCodes.equalsTo) { + Fe( + ne.TokenType.equality, + b.input.charCodeAt(b.state.pos + 2) === F.charCodes.equalsTo ? 3 : 2 ); return; } - if (e === g.charCodes.equalsTo && t === g.charCodes.greaterThan) { - (d.state.pos += 2), we(U.TokenType.arrow); + if (e === F.charCodes.equalsTo && t === F.charCodes.greaterThan) { + (b.state.pos += 2), Ve(ne.TokenType.arrow); return; } - _e(e === g.charCodes.equalsTo ? U.TokenType.eq : U.TokenType.bang, 1); - } - function Wh() { - let e = d.input.charCodeAt(d.state.pos + 1), - t = d.input.charCodeAt(d.state.pos + 2); - e === g.charCodes.questionMark && !(d.isFlowEnabled && d.state.isType) - ? t === g.charCodes.equalsTo - ? _e(U.TokenType.assign, 3) - : _e(U.TokenType.nullishCoalescing, 2) - : e === g.charCodes.dot && - !(t >= g.charCodes.digit0 && t <= g.charCodes.digit9) - ? ((d.state.pos += 2), we(U.TokenType.questionDot)) - : (++d.state.pos, we(U.TokenType.question)); - } - function Sc(e) { + Fe(e === F.charCodes.equalsTo ? ne.TokenType.eq : ne.TokenType.bang, 1); + } + function Fm() { + let e = b.input.charCodeAt(b.state.pos + 1), + t = b.input.charCodeAt(b.state.pos + 2); + e === F.charCodes.questionMark && !(b.isFlowEnabled && b.state.isType) + ? t === F.charCodes.equalsTo + ? Fe(ne.TokenType.assign, 3) + : Fe(ne.TokenType.nullishCoalescing, 2) + : e === F.charCodes.dot && + !(t >= F.charCodes.digit0 && t <= F.charCodes.digit9) + ? ((b.state.pos += 2), Ve(ne.TokenType.questionDot)) + : (++b.state.pos, Ve(ne.TokenType.question)); + } + function g1(e) { switch (e) { - case g.charCodes.numberSign: - ++d.state.pos, we(U.TokenType.hash); + case F.charCodes.numberSign: + ++b.state.pos, Ve(ne.TokenType.hash); return; - case g.charCodes.dot: - Lh(); + case F.charCodes.dot: + Em(); return; - case g.charCodes.leftParenthesis: - ++d.state.pos, we(U.TokenType.parenL); + case F.charCodes.leftParenthesis: + ++b.state.pos, Ve(ne.TokenType.parenL); return; - case g.charCodes.rightParenthesis: - ++d.state.pos, we(U.TokenType.parenR); + case F.charCodes.rightParenthesis: + ++b.state.pos, Ve(ne.TokenType.parenR); return; - case g.charCodes.semicolon: - ++d.state.pos, we(U.TokenType.semi); + case F.charCodes.semicolon: + ++b.state.pos, Ve(ne.TokenType.semi); return; - case g.charCodes.comma: - ++d.state.pos, we(U.TokenType.comma); + case F.charCodes.comma: + ++b.state.pos, Ve(ne.TokenType.comma); return; - case g.charCodes.leftSquareBracket: - ++d.state.pos, we(U.TokenType.bracketL); + case F.charCodes.leftSquareBracket: + ++b.state.pos, Ve(ne.TokenType.bracketL); return; - case g.charCodes.rightSquareBracket: - ++d.state.pos, we(U.TokenType.bracketR); + case F.charCodes.rightSquareBracket: + ++b.state.pos, Ve(ne.TokenType.bracketR); return; - case g.charCodes.leftCurlyBrace: - d.isFlowEnabled && - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.verticalBar - ? _e(U.TokenType.braceBarL, 2) - : (++d.state.pos, we(U.TokenType.braceL)); + case F.charCodes.leftCurlyBrace: + b.isFlowEnabled && + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.verticalBar + ? Fe(ne.TokenType.braceBarL, 2) + : (++b.state.pos, Ve(ne.TokenType.braceL)); return; - case g.charCodes.rightCurlyBrace: - ++d.state.pos, we(U.TokenType.braceR); + case F.charCodes.rightCurlyBrace: + ++b.state.pos, Ve(ne.TokenType.braceR); return; - case g.charCodes.colon: - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.colon - ? _e(U.TokenType.doubleColon, 2) - : (++d.state.pos, we(U.TokenType.colon)); + case F.charCodes.colon: + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.colon + ? Fe(ne.TokenType.doubleColon, 2) + : (++b.state.pos, Ve(ne.TokenType.colon)); return; - case g.charCodes.questionMark: - Wh(); + case F.charCodes.questionMark: + Fm(); return; - case g.charCodes.atSign: - ++d.state.pos, we(U.TokenType.at); + case F.charCodes.atSign: + ++b.state.pos, Ve(ne.TokenType.at); return; - case g.charCodes.graveAccent: - ++d.state.pos, we(U.TokenType.backQuote); + case F.charCodes.graveAccent: + ++b.state.pos, Ve(ne.TokenType.backQuote); return; - case g.charCodes.digit0: { - let t = d.input.charCodeAt(d.state.pos + 1); + case F.charCodes.digit0: { + let t = b.input.charCodeAt(b.state.pos + 1); if ( - t === g.charCodes.lowercaseX || - t === g.charCodes.uppercaseX || - t === g.charCodes.lowercaseO || - t === g.charCodes.uppercaseO || - t === g.charCodes.lowercaseB || - t === g.charCodes.uppercaseB + t === F.charCodes.lowercaseX || + t === F.charCodes.uppercaseX || + t === F.charCodes.lowercaseO || + t === F.charCodes.uppercaseO || + t === F.charCodes.lowercaseB || + t === F.charCodes.uppercaseB ) { - zh(); + Vm(); return; } } - case g.charCodes.digit1: - case g.charCodes.digit2: - case g.charCodes.digit3: - case g.charCodes.digit4: - case g.charCodes.digit5: - case g.charCodes.digit6: - case g.charCodes.digit7: - case g.charCodes.digit8: - case g.charCodes.digit9: - bc(!1); + case F.charCodes.digit1: + case F.charCodes.digit2: + case F.charCodes.digit3: + case F.charCodes.digit4: + case F.charCodes.digit5: + case F.charCodes.digit6: + case F.charCodes.digit7: + case F.charCodes.digit8: + case F.charCodes.digit9: + _1(!1); return; - case g.charCodes.quotationMark: - case g.charCodes.apostrophe: - Xh(e); + case F.charCodes.quotationMark: + case F.charCodes.apostrophe: + jm(e); return; - case g.charCodes.slash: - Fh(); + case F.charCodes.slash: + Am(); return; - case g.charCodes.percentSign: - case g.charCodes.asterisk: - $h(e); + case F.charCodes.percentSign: + case F.charCodes.asterisk: + Pm(e); return; - case g.charCodes.verticalBar: - case g.charCodes.ampersand: - Bh(e); + case F.charCodes.verticalBar: + case F.charCodes.ampersand: + Nm(e); return; - case g.charCodes.caret: - jh(); + case F.charCodes.caret: + Rm(); return; - case g.charCodes.plusSign: - case g.charCodes.dash: - Kh(e); + case F.charCodes.plusSign: + case F.charCodes.dash: + Lm(e); return; - case g.charCodes.lessThan: - qh(); + case F.charCodes.lessThan: + Om(); return; - case g.charCodes.greaterThan: - Ic(); + case F.charCodes.greaterThan: + x1(); return; - case g.charCodes.equalsTo: - case g.charCodes.exclamationMark: - Uh(e); + case F.charCodes.equalsTo: + case F.charCodes.exclamationMark: + Mm(e); return; - case g.charCodes.tilde: - _e(U.TokenType.tilde, 1); + case F.charCodes.tilde: + Fe(ne.TokenType.tilde, 1); return; default: break; } - ho.unexpected.call( + ci.unexpected.call( void 0, `Unexpected character '${String.fromCharCode(e)}'`, - d.state.pos + b.state.pos ); } - xe.getTokenFromCode = Sc; - function _e(e, t) { - (d.state.pos += t), we(e); + Be.getTokenFromCode = g1; + function Fe(e, t) { + (b.state.pos += t), Ve(e); } - function Vh() { - let e = d.state.pos, + function Bm() { + let e = b.state.pos, t = !1, - n = !1; + s = !1; for (;;) { - if (d.state.pos >= d.input.length) { - ho.unexpected.call(void 0, 'Unterminated regular expression', e); + if (b.state.pos >= b.input.length) { + ci.unexpected.call(void 0, 'Unterminated regular expression', e); return; } - let o = d.input.charCodeAt(d.state.pos); + let i = b.input.charCodeAt(b.state.pos); if (t) t = !1; else { - if (o === g.charCodes.leftSquareBracket) n = !0; - else if (o === g.charCodes.rightSquareBracket && n) n = !1; - else if (o === g.charCodes.slash && !n) break; - t = o === g.charCodes.backslash; + if (i === F.charCodes.leftSquareBracket) s = !0; + else if (i === F.charCodes.rightSquareBracket && s) s = !1; + else if (i === F.charCodes.slash && !s) break; + t = i === F.charCodes.backslash; } - ++d.state.pos; + ++b.state.pos; } - ++d.state.pos, Ec(), we(U.TokenType.regexp); + ++b.state.pos, b1(), Ve(ne.TokenType.regexp); } - function Fi() { + function Ca() { for (;;) { - let e = d.input.charCodeAt(d.state.pos); + let e = b.input.charCodeAt(b.state.pos); if ( - (e >= g.charCodes.digit0 && e <= g.charCodes.digit9) || - e === g.charCodes.underscore + (e >= F.charCodes.digit0 && e <= F.charCodes.digit9) || + e === F.charCodes.underscore ) - d.state.pos++; + b.state.pos++; else break; } } - function zh() { - for (d.state.pos += 2; ; ) { - let t = d.input.charCodeAt(d.state.pos); + function Vm() { + for (b.state.pos += 2; ; ) { + let t = b.input.charCodeAt(b.state.pos); if ( - (t >= g.charCodes.digit0 && t <= g.charCodes.digit9) || - (t >= g.charCodes.lowercaseA && t <= g.charCodes.lowercaseF) || - (t >= g.charCodes.uppercaseA && t <= g.charCodes.uppercaseF) || - t === g.charCodes.underscore + (t >= F.charCodes.digit0 && t <= F.charCodes.digit9) || + (t >= F.charCodes.lowercaseA && t <= F.charCodes.lowercaseF) || + (t >= F.charCodes.uppercaseA && t <= F.charCodes.uppercaseF) || + t === F.charCodes.underscore ) - d.state.pos++; + b.state.pos++; else break; } - d.input.charCodeAt(d.state.pos) === g.charCodes.lowercaseN - ? (++d.state.pos, we(U.TokenType.bigint)) - : we(U.TokenType.num); + b.input.charCodeAt(b.state.pos) === F.charCodes.lowercaseN + ? (++b.state.pos, Ve(ne.TokenType.bigint)) + : Ve(ne.TokenType.num); } - function bc(e) { + function _1(e) { let t = !1, - n = !1; - e || Fi(); - let o = d.input.charCodeAt(d.state.pos); + s = !1; + e || Ca(); + let i = b.input.charCodeAt(b.state.pos); if ( - (o === g.charCodes.dot && - (++d.state.pos, Fi(), (o = d.input.charCodeAt(d.state.pos))), - (o === g.charCodes.uppercaseE || o === g.charCodes.lowercaseE) && - ((o = d.input.charCodeAt(++d.state.pos)), - (o === g.charCodes.plusSign || o === g.charCodes.dash) && - ++d.state.pos, - Fi(), - (o = d.input.charCodeAt(d.state.pos))), - o === g.charCodes.lowercaseN - ? (++d.state.pos, (t = !0)) - : o === g.charCodes.lowercaseM && (++d.state.pos, (n = !0)), + (i === F.charCodes.dot && + (++b.state.pos, Ca(), (i = b.input.charCodeAt(b.state.pos))), + (i === F.charCodes.uppercaseE || i === F.charCodes.lowercaseE) && + ((i = b.input.charCodeAt(++b.state.pos)), + (i === F.charCodes.plusSign || i === F.charCodes.dash) && + ++b.state.pos, + Ca(), + (i = b.input.charCodeAt(b.state.pos))), + i === F.charCodes.lowercaseN + ? (++b.state.pos, (t = !0)) + : i === F.charCodes.lowercaseM && (++b.state.pos, (s = !0)), t) ) { - we(U.TokenType.bigint); + Ve(ne.TokenType.bigint); return; } - if (n) { - we(U.TokenType.decimal); + if (s) { + Ve(ne.TokenType.decimal); return; } - we(U.TokenType.num); + Ve(ne.TokenType.num); } - function Xh(e) { - for (d.state.pos++; ; ) { - if (d.state.pos >= d.input.length) { - ho.unexpected.call(void 0, 'Unterminated string constant'); + function jm(e) { + for (b.state.pos++; ; ) { + if (b.state.pos >= b.input.length) { + ci.unexpected.call(void 0, 'Unterminated string constant'); return; } - let t = d.input.charCodeAt(d.state.pos); - if (t === g.charCodes.backslash) d.state.pos++; + let t = b.input.charCodeAt(b.state.pos); + if (t === F.charCodes.backslash) b.state.pos++; else if (t === e) break; - d.state.pos++; + b.state.pos++; } - d.state.pos++, we(U.TokenType.string); + b.state.pos++, Ve(ne.TokenType.string); } - function Yh() { + function $m() { for (;;) { - if (d.state.pos >= d.input.length) { - ho.unexpected.call(void 0, 'Unterminated template'); + if (b.state.pos >= b.input.length) { + ci.unexpected.call(void 0, 'Unterminated template'); return; } - let e = d.input.charCodeAt(d.state.pos); + let e = b.input.charCodeAt(b.state.pos); if ( - e === g.charCodes.graveAccent || - (e === g.charCodes.dollarSign && - d.input.charCodeAt(d.state.pos + 1) === g.charCodes.leftCurlyBrace) + e === F.charCodes.graveAccent || + (e === F.charCodes.dollarSign && + b.input.charCodeAt(b.state.pos + 1) === F.charCodes.leftCurlyBrace) ) { - if (d.state.pos === d.state.start && Bi(U.TokenType.template)) - if (e === g.charCodes.dollarSign) { - (d.state.pos += 2), we(U.TokenType.dollarBraceL); + if (b.state.pos === b.state.start && Sa(ne.TokenType.template)) + if (e === F.charCodes.dollarSign) { + (b.state.pos += 2), Ve(ne.TokenType.dollarBraceL); return; } else { - ++d.state.pos, we(U.TokenType.backQuote); + ++b.state.pos, Ve(ne.TokenType.backQuote); return; } - we(U.TokenType.template); + Ve(ne.TokenType.template); return; } - e === g.charCodes.backslash && d.state.pos++, d.state.pos++; + e === F.charCodes.backslash && b.state.pos++, b.state.pos++; } } - function Ec() { - for (; d.state.pos < d.input.length; ) { - let e = d.input.charCodeAt(d.state.pos); - if (kc.IS_IDENTIFIER_CHAR[e]) d.state.pos++; - else if (e === g.charCodes.backslash) { + function b1() { + for (; b.state.pos < b.input.length; ) { + let e = b.input.charCodeAt(b.state.pos); + if (f1.IS_IDENTIFIER_CHAR[e]) b.state.pos++; + else if (e === F.charCodes.backslash) { if ( - ((d.state.pos += 2), - d.input.charCodeAt(d.state.pos) === g.charCodes.leftCurlyBrace) + ((b.state.pos += 2), + b.input.charCodeAt(b.state.pos) === F.charCodes.leftCurlyBrace) ) { for ( ; - d.state.pos < d.input.length && - d.input.charCodeAt(d.state.pos) !== g.charCodes.rightCurlyBrace; + b.state.pos < b.input.length && + b.input.charCodeAt(b.state.pos) !== F.charCodes.rightCurlyBrace; ) - d.state.pos++; - d.state.pos++; + b.state.pos++; + b.state.pos++; } } else break; } } - xe.skipWord = Ec; + Be.skipWord = b1; }); - var Ko = H((ji) => { + var Wi = Z((Ia) => { 'use strict'; - Object.defineProperty(ji, '__esModule', {value: !0}); - var Ac = ce(); - function Gh(e, t = e.currentIndex()) { - let n = t + 1; - if (Fr(e, n)) { - let o = e.identifierNameAtIndex(t); - return {isType: !1, leftName: o, rightName: o, endIndex: n}; - } - if ((n++, Fr(e, n))) - return {isType: !0, leftName: null, rightName: null, endIndex: n}; - if ((n++, Fr(e, n))) + Object.defineProperty(Ia, '__esModule', {value: !0}); + var C1 = be(); + function qm(e, t = e.currentIndex()) { + let s = t + 1; + if (Xr(e, s)) { + let i = e.identifierNameAtIndex(t); + return {isType: !1, leftName: i, rightName: i, endIndex: s}; + } + if ((s++, Xr(e, s))) + return {isType: !0, leftName: null, rightName: null, endIndex: s}; + if ((s++, Xr(e, s))) return { isType: !1, leftName: e.identifierNameAtIndex(t), rightName: e.identifierNameAtIndex(t + 2), - endIndex: n, + endIndex: s, }; - if ((n++, Fr(e, n))) - return {isType: !0, leftName: null, rightName: null, endIndex: n}; + if ((s++, Xr(e, s))) + return {isType: !0, leftName: null, rightName: null, endIndex: s}; throw new Error(`Unexpected import/export specifier at ${t}`); } - ji.default = Gh; - function Fr(e, t) { - let n = e.tokens[t]; - return n.type === Ac.TokenType.braceR || n.type === Ac.TokenType.comma; + Ia.default = qm; + function Xr(e, t) { + let s = e.tokens[t]; + return s.type === C1.TokenType.braceR || s.type === C1.TokenType.comma; } }); - var Pc = H((Ki) => { + var w1 = Z((Ea) => { 'use strict'; - Object.defineProperty(Ki, '__esModule', {value: !0}); - Ki.default = new Map([ + Object.defineProperty(Ea, '__esModule', {value: !0}); + Ea.default = new Map([ ['quot', '"'], ['amp', '&'], ['apos', "'"], @@ -14587,24 +14587,24 @@ If you need interactivity, consider converting part of this to a Client Componen ['diams', '\u2666'], ]); }); - var Hi = H((qi) => { + var Pa = Z((Aa) => { 'use strict'; - Object.defineProperty(qi, '__esModule', {value: !0}); - function Jh(e) { - let [t, n] = Rc(e.jsxPragma || 'React.createElement'), - [o, r] = Rc(e.jsxFragmentPragma || 'React.Fragment'); - return {base: t, suffix: n, fragmentBase: o, fragmentSuffix: r}; - } - qi.default = Jh; - function Rc(e) { + Object.defineProperty(Aa, '__esModule', {value: !0}); + function Km(e) { + let [t, s] = S1(e.jsxPragma || 'React.createElement'), + [i, r] = S1(e.jsxFragmentPragma || 'React.Fragment'); + return {base: t, suffix: s, fragmentBase: i, fragmentSuffix: r}; + } + Aa.default = Km; + function S1(e) { let t = e.indexOf('.'); return t === -1 && (t = e.length), [e.slice(0, t), e.slice(t)]; } }); - var Nt = H((Wi) => { + var hn = Z((Ra) => { 'use strict'; - Object.defineProperty(Wi, '__esModule', {value: !0}); - var Ui = class { + Object.defineProperty(Ra, '__esModule', {value: !0}); + var Na = class { getPrefixCode() { return ''; } @@ -14615,24 +14615,24 @@ If you need interactivity, consider converting part of this to a Client Componen return ''; } }; - Wi.default = Ui; + Ra.default = Na; }); - var Xi = H((Br) => { + var Da = Z((Jr) => { 'use strict'; - Object.defineProperty(Br, '__esModule', {value: !0}); - function zi(e) { + Object.defineProperty(Jr, '__esModule', {value: !0}); + function Oa(e) { return e && e.__esModule ? e : {default: e}; } - var Qh = Pc(), - Zh = zi(Qh), - $r = Ve(), - Te = ce(), - Jt = gt(), - eT = Hi(), - tT = zi(eT), - nT = Nt(), - oT = zi(nT), - Vi = class e extends oT.default { + var Um = w1(), + Hm = Oa(Um), + Yr = xt(), + Re = be(), + An = Qt(), + Wm = Pa(), + Gm = Oa(Wm), + zm = hn(), + Xm = Oa(zm), + La = class e extends Xm.default { __init() { this.lastLineNumber = 1; } @@ -14648,24 +14648,24 @@ If you need interactivity, consider converting part of this to a Client Componen __init5() { this.cjsAutomaticModuleNameResolutions = {}; } - constructor(t, n, o, r, s) { + constructor(t, s, i, r, a) { super(), (this.rootTransformer = t), - (this.tokens = n), - (this.importProcessor = o), + (this.tokens = s), + (this.importProcessor = i), (this.nameManager = r), - (this.options = s), + (this.options = a), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), e.prototype.__init4.call(this), e.prototype.__init5.call(this), - (this.jsxPragmaInfo = tT.default.call(void 0, s)), - (this.isAutomaticRuntime = s.jsxRuntime === 'automatic'), - (this.jsxImportSource = s.jsxImportSource || 'react'); + (this.jsxPragmaInfo = Gm.default.call(void 0, a)), + (this.isAutomaticRuntime = a.jsxRuntime === 'automatic'), + (this.jsxImportSource = a.jsxImportSource || 'react'); } process() { - return this.tokens.matches1(Te.TokenType.jsxTagStart) + return this.tokens.matches1(Re.TokenType.jsxTagStart) ? (this.processJSXTag(), !0) : !1; } @@ -14679,66 +14679,66 @@ If you need interactivity, consider converting part of this to a Client Componen this.isAutomaticRuntime) ) if (this.importProcessor) - for (let [n, o] of Object.entries( + for (let [s, i] of Object.entries( this.cjsAutomaticModuleNameResolutions )) - t += `var ${o} = require("${n}");`; + t += `var ${i} = require("${s}");`; else { - let {createElement: n, ...o} = + let {createElement: s, ...i} = this.esmAutomaticImportNameResolutions; - n && - (t += `import {createElement as ${n}} from "${this.jsxImportSource}";`); - let r = Object.entries(o) - .map(([s, i]) => `${s} as ${i}`) + s && + (t += `import {createElement as ${s}} from "${this.jsxImportSource}";`); + let r = Object.entries(i) + .map(([a, p]) => `${a} as ${p}`) .join(', '); if (r) { - let s = + let a = this.jsxImportSource + (this.options.production ? '/jsx-runtime' : '/jsx-dev-runtime'); - t += `import {${r}} from "${s}";`; + t += `import {${r}} from "${a}";`; } } return t; } processJSXTag() { - let {jsxRole: t, start: n} = this.tokens.currentToken(), - o = this.options.production ? null : this.getElementLocationCode(n); - this.isAutomaticRuntime && t !== $r.JSXRole.KeyAfterPropSpread - ? this.transformTagToJSXFunc(o, t) - : this.transformTagToCreateElement(o); + let {jsxRole: t, start: s} = this.tokens.currentToken(), + i = this.options.production ? null : this.getElementLocationCode(s); + this.isAutomaticRuntime && t !== Yr.JSXRole.KeyAfterPropSpread + ? this.transformTagToJSXFunc(i, t) + : this.transformTagToCreateElement(i); } getElementLocationCode(t) { return `lineNumber: ${this.getLineNumberForIndex(t)}`; } getLineNumberForIndex(t) { - let n = this.tokens.code; - for (; this.lastIndex < t && this.lastIndex < n.length; ) - n[this.lastIndex] === + let s = this.tokens.code; + for (; this.lastIndex < t && this.lastIndex < s.length; ) + s[this.lastIndex] === ` ` && this.lastLineNumber++, this.lastIndex++; return this.lastLineNumber; } - transformTagToJSXFunc(t, n) { - let o = n === $r.JSXRole.StaticChildren; - this.tokens.replaceToken(this.getJSXFuncInvocationCode(o)); + transformTagToJSXFunc(t, s) { + let i = s === Yr.JSXRole.StaticChildren; + this.tokens.replaceToken(this.getJSXFuncInvocationCode(i)); let r = null; - if (this.tokens.matches1(Te.TokenType.jsxTagEnd)) + if (this.tokens.matches1(Re.TokenType.jsxTagEnd)) this.tokens.replaceToken(`${this.getFragmentCode()}, {`), - this.processAutomaticChildrenAndEndProps(n); + this.processAutomaticChildrenAndEndProps(s); else { if ( (this.processTagIntro(), this.tokens.appendCode(', {'), (r = this.processProps(!0)), - this.tokens.matches2(Te.TokenType.slash, Te.TokenType.jsxTagEnd)) + this.tokens.matches2(Re.TokenType.slash, Re.TokenType.jsxTagEnd)) ) this.tokens.appendCode('}'); - else if (this.tokens.matches1(Te.TokenType.jsxTagEnd)) + else if (this.tokens.matches1(Re.TokenType.jsxTagEnd)) this.tokens.removeToken(), - this.processAutomaticChildrenAndEndProps(n); + this.processAutomaticChildrenAndEndProps(s); else throw new Error('Expected either /> or > at the end of the tag.'); r && this.tokens.appendCode(`, ${r}`); @@ -14746,9 +14746,9 @@ If you need interactivity, consider converting part of this to a Client Componen for ( this.options.production || (r === null && this.tokens.appendCode(', void 0'), - this.tokens.appendCode(`, ${o}, ${this.getDevSource(t)}, this`)), + this.tokens.appendCode(`, ${i}, ${this.getDevSource(t)}, this`)), this.tokens.removeInitialToken(); - !this.tokens.matches1(Te.TokenType.jsxTagEnd); + !this.tokens.matches1(Re.TokenType.jsxTagEnd); ) this.tokens.removeToken(); @@ -14757,22 +14757,22 @@ If you need interactivity, consider converting part of this to a Client Componen transformTagToCreateElement(t) { if ( (this.tokens.replaceToken(this.getCreateElementInvocationCode()), - this.tokens.matches1(Te.TokenType.jsxTagEnd)) + this.tokens.matches1(Re.TokenType.jsxTagEnd)) ) this.tokens.replaceToken(`${this.getFragmentCode()}, null`), this.processChildren(!0); else if ( (this.processTagIntro(), this.processPropsObjectWithDevInfo(t), - !this.tokens.matches2(Te.TokenType.slash, Te.TokenType.jsxTagEnd)) + !this.tokens.matches2(Re.TokenType.slash, Re.TokenType.jsxTagEnd)) ) - if (this.tokens.matches1(Te.TokenType.jsxTagEnd)) + if (this.tokens.matches1(Re.TokenType.jsxTagEnd)) this.tokens.removeToken(), this.processChildren(!0); else throw new Error('Expected either /> or > at the end of the tag.'); for ( this.tokens.removeInitialToken(); - !this.tokens.matches1(Te.TokenType.jsxTagEnd); + !this.tokens.matches1(Re.TokenType.jsxTagEnd); ) this.tokens.removeToken(); @@ -14817,18 +14817,18 @@ If you need interactivity, consider converting part of this to a Client Componen ); } } - claimAutoImportedFuncInvocation(t, n) { - let o = this.claimAutoImportedName(t, n); - return this.importProcessor ? `${o}.call(void 0, ` : `${o}(`; + claimAutoImportedFuncInvocation(t, s) { + let i = this.claimAutoImportedName(t, s); + return this.importProcessor ? `${i}.call(void 0, ` : `${i}(`; } - claimAutoImportedName(t, n) { + claimAutoImportedName(t, s) { if (this.importProcessor) { - let o = this.jsxImportSource + n; + let i = this.jsxImportSource + s; return ( - this.cjsAutomaticModuleNameResolutions[o] || - (this.cjsAutomaticModuleNameResolutions[o] = - this.importProcessor.getFreeIdentifierForPath(o)), - `${this.cjsAutomaticModuleNameResolutions[o]}.${t}` + this.cjsAutomaticModuleNameResolutions[i] || + (this.cjsAutomaticModuleNameResolutions[i] = + this.importProcessor.getFreeIdentifierForPath(i)), + `${this.cjsAutomaticModuleNameResolutions[i]}.${t}` ); } else return ( @@ -14845,76 +14845,76 @@ If you need interactivity, consider converting part of this to a Client Componen this.tokens.tokens[t].isType || (!this.tokens.matches2AtIndex( t - 1, - Te.TokenType.jsxName, - Te.TokenType.jsxName + Re.TokenType.jsxName, + Re.TokenType.jsxName ) && !this.tokens.matches2AtIndex( t - 1, - Te.TokenType.greaterThan, - Te.TokenType.jsxName + Re.TokenType.greaterThan, + Re.TokenType.jsxName ) && - !this.tokens.matches1AtIndex(t, Te.TokenType.braceL) && - !this.tokens.matches1AtIndex(t, Te.TokenType.jsxTagEnd) && + !this.tokens.matches1AtIndex(t, Re.TokenType.braceL) && + !this.tokens.matches1AtIndex(t, Re.TokenType.jsxTagEnd) && !this.tokens.matches2AtIndex( t, - Te.TokenType.slash, - Te.TokenType.jsxTagEnd + Re.TokenType.slash, + Re.TokenType.jsxTagEnd )); ) t++; if (t === this.tokens.currentIndex() + 1) { - let n = this.tokens.identifierName(); - Dc(n) && this.tokens.replaceToken(`'${n}'`); + let s = this.tokens.identifierName(); + E1(s) && this.tokens.replaceToken(`'${s}'`); } for (; this.tokens.currentIndex() < t; ) this.rootTransformer.processToken(); } processPropsObjectWithDevInfo(t) { - let n = this.options.production + let s = this.options.production ? '' : `__self: this, __source: ${this.getDevSource(t)}`; if ( - !this.tokens.matches1(Te.TokenType.jsxName) && - !this.tokens.matches1(Te.TokenType.braceL) + !this.tokens.matches1(Re.TokenType.jsxName) && + !this.tokens.matches1(Re.TokenType.braceL) ) { - n - ? this.tokens.appendCode(`, {${n}}`) + s + ? this.tokens.appendCode(`, {${s}}`) : this.tokens.appendCode(', null'); return; } this.tokens.appendCode(', {'), this.processProps(!1), - n ? this.tokens.appendCode(` ${n}}`) : this.tokens.appendCode('}'); + s ? this.tokens.appendCode(` ${s}}`) : this.tokens.appendCode('}'); } processProps(t) { - let n = null; + let s = null; for (;;) { - if (this.tokens.matches2(Te.TokenType.jsxName, Te.TokenType.eq)) { - let o = this.tokens.identifierName(); - if (t && o === 'key') { - n !== null && this.tokens.appendCode(n.replace(/[^\n]/g, '')), + if (this.tokens.matches2(Re.TokenType.jsxName, Re.TokenType.eq)) { + let i = this.tokens.identifierName(); + if (t && i === 'key') { + s !== null && this.tokens.appendCode(s.replace(/[^\n]/g, '')), this.tokens.removeToken(), this.tokens.removeToken(); let r = this.tokens.snapshot(); this.processPropValue(), - (n = this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r)); + (s = this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r)); continue; } else - this.processPropName(o), + this.processPropName(i), this.tokens.replaceToken(': '), this.processPropValue(); - } else if (this.tokens.matches1(Te.TokenType.jsxName)) { - let o = this.tokens.identifierName(); - this.processPropName(o), this.tokens.appendCode(': true'); - } else if (this.tokens.matches1(Te.TokenType.braceL)) + } else if (this.tokens.matches1(Re.TokenType.jsxName)) { + let i = this.tokens.identifierName(); + this.processPropName(i), this.tokens.appendCode(': true'); + } else if (this.tokens.matches1(Re.TokenType.braceL)) this.tokens.replaceToken(''), this.rootTransformer.processBalancedCode(), this.tokens.replaceToken(''); else break; this.tokens.appendCode(','); } - return n; + return s; } processPropName(t) { t.includes('-') @@ -14922,68 +14922,68 @@ If you need interactivity, consider converting part of this to a Client Componen : this.tokens.copyToken(); } processPropValue() { - this.tokens.matches1(Te.TokenType.braceL) + this.tokens.matches1(Re.TokenType.braceL) ? (this.tokens.replaceToken(''), this.rootTransformer.processBalancedCode(), this.tokens.replaceToken('')) - : this.tokens.matches1(Te.TokenType.jsxTagStart) + : this.tokens.matches1(Re.TokenType.jsxTagStart) ? this.processJSXTag() : this.processStringPropValue(); } processStringPropValue() { let t = this.tokens.currentToken(), - n = this.tokens.code.slice(t.start + 1, t.end - 1), - o = Nc(n), - r = sT(n); - this.tokens.replaceToken(r + o); + s = this.tokens.code.slice(t.start + 1, t.end - 1), + i = I1(s), + r = Jm(s); + this.tokens.replaceToken(r + i); } processAutomaticChildrenAndEndProps(t) { - t === $r.JSXRole.StaticChildren + t === Yr.JSXRole.StaticChildren ? (this.tokens.appendCode(' children: ['), this.processChildren(!1), this.tokens.appendCode(']}')) - : (t === $r.JSXRole.OneChild && + : (t === Yr.JSXRole.OneChild && this.tokens.appendCode(' children: '), this.processChildren(!1), this.tokens.appendCode('}')); } processChildren(t) { - let n = t; + let s = t; for (;;) { if ( - this.tokens.matches2(Te.TokenType.jsxTagStart, Te.TokenType.slash) + this.tokens.matches2(Re.TokenType.jsxTagStart, Re.TokenType.slash) ) return; - let o = !1; - if (this.tokens.matches1(Te.TokenType.braceL)) - this.tokens.matches2(Te.TokenType.braceL, Te.TokenType.braceR) + let i = !1; + if (this.tokens.matches1(Re.TokenType.braceL)) + this.tokens.matches2(Re.TokenType.braceL, Re.TokenType.braceR) ? (this.tokens.replaceToken(''), this.tokens.replaceToken('')) - : (this.tokens.replaceToken(n ? ', ' : ''), + : (this.tokens.replaceToken(s ? ', ' : ''), this.rootTransformer.processBalancedCode(), this.tokens.replaceToken(''), - (o = !0)); - else if (this.tokens.matches1(Te.TokenType.jsxTagStart)) - this.tokens.appendCode(n ? ', ' : ''), + (i = !0)); + else if (this.tokens.matches1(Re.TokenType.jsxTagStart)) + this.tokens.appendCode(s ? ', ' : ''), this.processJSXTag(), - (o = !0); + (i = !0); else if ( - this.tokens.matches1(Te.TokenType.jsxText) || - this.tokens.matches1(Te.TokenType.jsxEmptyText) + this.tokens.matches1(Re.TokenType.jsxText) || + this.tokens.matches1(Re.TokenType.jsxEmptyText) ) - o = this.processChildTextElement(n); + i = this.processChildTextElement(s); else throw new Error('Unexpected token when processing JSX children.'); - o && (n = !0); + i && (s = !0); } } processChildTextElement(t) { - let n = this.tokens.currentToken(), - o = this.tokens.code.slice(n.start, n.end), - r = Nc(o), - s = rT(o); - return s === '""' + let s = this.tokens.currentToken(), + i = this.tokens.code.slice(s.start, s.end), + r = I1(i), + a = Ym(i); + return a === '""' ? (this.tokens.replaceToken(r), !1) - : (this.tokens.replaceToken(`${t ? ', ' : ''}${s}${r}`), !0); + : (this.tokens.replaceToken(`${t ? ', ' : ''}${a}${r}`), !0); } getDevSource(t) { return `{fileName: ${this.getFilenameVarName()}, ${t}}`; @@ -14997,164 +14997,164 @@ If you need interactivity, consider converting part of this to a Client Componen ); } }; - Br.default = Vi; - function Dc(e) { + Jr.default = La; + function E1(e) { let t = e.charCodeAt(0); - return t >= Jt.charCodes.lowercaseA && t <= Jt.charCodes.lowercaseZ; + return t >= An.charCodes.lowercaseA && t <= An.charCodes.lowercaseZ; } - Br.startsWithLowerCase = Dc; - function rT(e) { + Jr.startsWithLowerCase = E1; + function Ym(e) { let t = '', - n = '', - o = !1, + s = '', + i = !1, r = !1; - for (let s = 0; s < e.length; s++) { - let i = e[s]; - if (i === ' ' || i === ' ' || i === '\r') o || (n += i); + for (let a = 0; a < e.length; a++) { + let p = e[a]; + if (p === ' ' || p === ' ' || p === '\r') i || (s += p); else if ( - i === + p === ` ` ) - (n = ''), (o = !0); + (s = ''), (i = !0); else { - if ((r && o && (t += ' '), (t += n), (n = ''), i === '&')) { - let {entity: a, newI: u} = Oc(e, s + 1); - (s = u - 1), (t += a); - } else t += i; - (r = !0), (o = !1); + if ((r && i && (t += ' '), (t += s), (s = ''), p === '&')) { + let {entity: d, newI: y} = A1(e, a + 1); + (a = y - 1), (t += d); + } else t += p; + (r = !0), (i = !1); } } - return o || (t += n), JSON.stringify(t); + return i || (t += s), JSON.stringify(t); } - function Nc(e) { + function I1(e) { let t = 0, - n = 0; - for (let o of e) - o === + s = 0; + for (let i of e) + i === ` ` - ? (t++, (n = 0)) - : o === ' ' && n++; + ? (t++, (s = 0)) + : i === ' ' && s++; return ( ` -`.repeat(t) + ' '.repeat(n) +`.repeat(t) + ' '.repeat(s) ); } - function sT(e) { + function Jm(e) { let t = ''; - for (let n = 0; n < e.length; n++) { - let o = e[n]; + for (let s = 0; s < e.length; s++) { + let i = e[s]; if ( - o === + i === ` ` ) - if (/\s/.test(e[n + 1])) - for (t += ' '; n < e.length && /\s/.test(e[n + 1]); ) n++; + if (/\s/.test(e[s + 1])) + for (t += ' '; s < e.length && /\s/.test(e[s + 1]); ) s++; else t += ` `; - else if (o === '&') { - let {entity: r, newI: s} = Oc(e, n + 1); - (t += r), (n = s - 1); - } else t += o; + else if (i === '&') { + let {entity: r, newI: a} = A1(e, s + 1); + (t += r), (s = a - 1); + } else t += i; } return JSON.stringify(t); } - function Oc(e, t) { - let n = '', - o = 0, + function A1(e, t) { + let s = '', + i = 0, r, - s = t; - if (e[s] === '#') { - let i = 10; - s++; - let a; - if (e[s] === 'x') - for (i = 16, s++, a = s; s < e.length && aT(e.charCodeAt(s)); ) s++; - else for (a = s; s < e.length && iT(e.charCodeAt(s)); ) s++; - if (e[s] === ';') { - let u = e.slice(a, s); - u && (s++, (r = String.fromCodePoint(parseInt(u, i)))); + a = t; + if (e[a] === '#') { + let p = 10; + a++; + let d; + if (e[a] === 'x') + for (p = 16, a++, d = a; a < e.length && Zm(e.charCodeAt(a)); ) a++; + else for (d = a; a < e.length && Qm(e.charCodeAt(a)); ) a++; + if (e[a] === ';') { + let y = e.slice(d, a); + y && (a++, (r = String.fromCodePoint(parseInt(y, p)))); } } else - for (; s < e.length && o++ < 10; ) { - let i = e[s]; - if ((s++, i === ';')) { - r = Zh.default.get(n); + for (; a < e.length && i++ < 10; ) { + let p = e[a]; + if ((a++, p === ';')) { + r = Hm.default.get(s); break; } - n += i; + s += p; } - return r ? {entity: r, newI: s} : {entity: '&', newI: t}; + return r ? {entity: r, newI: a} : {entity: '&', newI: t}; } - function iT(e) { - return e >= Jt.charCodes.digit0 && e <= Jt.charCodes.digit9; + function Qm(e) { + return e >= An.charCodes.digit0 && e <= An.charCodes.digit9; } - function aT(e) { + function Zm(e) { return ( - (e >= Jt.charCodes.digit0 && e <= Jt.charCodes.digit9) || - (e >= Jt.charCodes.lowercaseA && e <= Jt.charCodes.lowercaseF) || - (e >= Jt.charCodes.uppercaseA && e <= Jt.charCodes.uppercaseF) + (e >= An.charCodes.digit0 && e <= An.charCodes.digit9) || + (e >= An.charCodes.lowercaseA && e <= An.charCodes.lowercaseF) || + (e >= An.charCodes.uppercaseA && e <= An.charCodes.uppercaseF) ); } }); - var Gi = H((Yi) => { + var Fa = Z((Ma) => { 'use strict'; - Object.defineProperty(Yi, '__esModule', {value: !0}); - function lT(e) { + Object.defineProperty(Ma, '__esModule', {value: !0}); + function eT(e) { return e && e.__esModule ? e : {default: e}; } - var jr = Ve(), - To = ce(), - cT = Xi(), - uT = Hi(), - pT = lT(uT); - function dT(e, t) { - let n = pT.default.call(void 0, t), - o = new Set(); + var Qr = xt(), + ui = be(), + tT = Da(), + nT = Pa(), + sT = eT(nT); + function iT(e, t) { + let s = sT.default.call(void 0, t), + i = new Set(); for (let r = 0; r < e.tokens.length; r++) { - let s = e.tokens[r]; + let a = e.tokens[r]; if ( - (s.type === To.TokenType.name && - !s.isType && - (s.identifierRole === jr.IdentifierRole.Access || - s.identifierRole === jr.IdentifierRole.ObjectShorthand || - s.identifierRole === jr.IdentifierRole.ExportAccess) && - !s.shadowsGlobal && - o.add(e.identifierNameForToken(s)), - s.type === To.TokenType.jsxTagStart && o.add(n.base), - s.type === To.TokenType.jsxTagStart && + (a.type === ui.TokenType.name && + !a.isType && + (a.identifierRole === Qr.IdentifierRole.Access || + a.identifierRole === Qr.IdentifierRole.ObjectShorthand || + a.identifierRole === Qr.IdentifierRole.ExportAccess) && + !a.shadowsGlobal && + i.add(e.identifierNameForToken(a)), + a.type === ui.TokenType.jsxTagStart && i.add(s.base), + a.type === ui.TokenType.jsxTagStart && r + 1 < e.tokens.length && - e.tokens[r + 1].type === To.TokenType.jsxTagEnd && - (o.add(n.base), o.add(n.fragmentBase)), - s.type === To.TokenType.jsxName && - s.identifierRole === jr.IdentifierRole.Access) + e.tokens[r + 1].type === ui.TokenType.jsxTagEnd && + (i.add(s.base), i.add(s.fragmentBase)), + a.type === ui.TokenType.jsxName && + a.identifierRole === Qr.IdentifierRole.Access) ) { - let i = e.identifierNameForToken(s); - (!cT.startsWithLowerCase.call(void 0, i) || - e.tokens[r + 1].type === To.TokenType.dot) && - o.add(e.identifierNameForToken(s)); + let p = e.identifierNameForToken(a); + (!tT.startsWithLowerCase.call(void 0, p) || + e.tokens[r + 1].type === ui.TokenType.dot) && + i.add(e.identifierNameForToken(a)); } } - return o; + return i; } - Yi.getNonTypeIdentifiers = dT; + Ma.getNonTypeIdentifiers = iT; }); - var Mc = H((Qi) => { + var P1 = Z((Va) => { 'use strict'; - Object.defineProperty(Qi, '__esModule', {value: !0}); - function fT(e) { + Object.defineProperty(Va, '__esModule', {value: !0}); + function rT(e) { return e && e.__esModule ? e : {default: e}; } - var hT = Ve(), - Kr = Ge(), - ee = ce(), - TT = Ko(), - yT = fT(TT), - mT = Gi(), - Ji = class e { + var oT = xt(), + Zr = It(), + me = be(), + aT = Wi(), + lT = rT(aT), + cT = Fa(), + Ba = class e { __init() { this.nonTypeIdentifiers = new Set(); } @@ -15170,13 +15170,13 @@ If you need interactivity, consider converting part of this to a Client Componen __init5() { this.exportBindingsByLocalName = new Map(); } - constructor(t, n, o, r, s, i) { + constructor(t, s, i, r, a, p) { (this.nameManager = t), - (this.tokens = n), - (this.enableLegacyTypeScriptModuleInterop = o), + (this.tokens = s), + (this.enableLegacyTypeScriptModuleInterop = i), (this.options = r), - (this.isTypeScriptTransformEnabled = s), - (this.helperManager = i), + (this.isTypeScriptTransformEnabled = a), + (this.helperManager = p), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), @@ -15185,41 +15185,41 @@ If you need interactivity, consider converting part of this to a Client Componen } preprocessTokens() { for (let t = 0; t < this.tokens.tokens.length; t++) - this.tokens.matches1AtIndex(t, ee.TokenType._import) && + this.tokens.matches1AtIndex(t, me.TokenType._import) && !this.tokens.matches3AtIndex( t, - ee.TokenType._import, - ee.TokenType.name, - ee.TokenType.eq + me.TokenType._import, + me.TokenType.name, + me.TokenType.eq ) && this.preprocessImportAtIndex(t), - this.tokens.matches1AtIndex(t, ee.TokenType._export) && + this.tokens.matches1AtIndex(t, me.TokenType._export) && !this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType.eq + me.TokenType._export, + me.TokenType.eq ) && this.preprocessExportAtIndex(t); this.generateImportReplacements(); } pruneTypeOnlyImports() { - this.nonTypeIdentifiers = mT.getNonTypeIdentifiers.call( + this.nonTypeIdentifiers = cT.getNonTypeIdentifiers.call( void 0, this.tokens, this.options ); - for (let [t, n] of this.importInfoByPath.entries()) { + for (let [t, s] of this.importInfoByPath.entries()) { if ( - n.hasBareImport || - n.hasStarExport || - n.exportStarNames.length > 0 || - n.namedExports.length > 0 + s.hasBareImport || + s.hasStarExport || + s.exportStarNames.length > 0 || + s.namedExports.length > 0 ) continue; [ - ...n.defaultNames, - ...n.wildcardNames, - ...n.namedImports.map(({localName: r}) => r), + ...s.defaultNames, + ...s.wildcardNames, + ...s.namedImports.map(({localName: r}) => r), ].every((r) => this.isTypeName(r)) && this.importsToReplace.set(t, ''); } @@ -15230,286 +15230,286 @@ If you need interactivity, consider converting part of this to a Client Componen ); } generateImportReplacements() { - for (let [t, n] of this.importInfoByPath.entries()) { + for (let [t, s] of this.importInfoByPath.entries()) { let { - defaultNames: o, + defaultNames: i, wildcardNames: r, - namedImports: s, - namedExports: i, - exportStarNames: a, - hasStarExport: u, - } = n; + namedImports: a, + namedExports: p, + exportStarNames: d, + hasStarExport: y, + } = s; if ( - o.length === 0 && - r.length === 0 && - s.length === 0 && i.length === 0 && + r.length === 0 && a.length === 0 && - !u + p.length === 0 && + d.length === 0 && + !y ) { this.importsToReplace.set(t, `require('${t}');`); continue; } - let h = this.getFreeIdentifierForPath(t), - v; + let k = this.getFreeIdentifierForPath(t), + A; this.enableLegacyTypeScriptModuleInterop - ? (v = h) - : (v = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); - let _ = `var ${h} = require('${t}');`; + ? (A = k) + : (A = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); + let u = `var ${k} = require('${t}');`; if (r.length > 0) - for (let x of r) { - let L = this.enableLegacyTypeScriptModuleInterop - ? h + for (let f of r) { + let x = this.enableLegacyTypeScriptModuleInterop + ? k : `${this.helperManager.getHelperName( 'interopRequireWildcard' - )}(${h})`; - _ += ` var ${x} = ${L};`; + )}(${k})`; + u += ` var ${f} = ${x};`; } else - a.length > 0 && v !== h - ? (_ += ` var ${v} = ${this.helperManager.getHelperName( + d.length > 0 && A !== k + ? (u += ` var ${A} = ${this.helperManager.getHelperName( 'interopRequireWildcard' - )}(${h});`) - : o.length > 0 && - v !== h && - (_ += ` var ${v} = ${this.helperManager.getHelperName( + )}(${k});`) + : i.length > 0 && + A !== k && + (u += ` var ${A} = ${this.helperManager.getHelperName( 'interopRequireDefault' - )}(${h});`); - for (let {importedName: x, localName: L} of i) - _ += ` ${this.helperManager.getHelperName( + )}(${k});`); + for (let {importedName: f, localName: x} of p) + u += ` ${this.helperManager.getHelperName( 'createNamedExportFrom' - )}(${h}, '${L}', '${x}');`; - for (let x of a) _ += ` exports.${x} = ${v};`; - u && - (_ += ` ${this.helperManager.getHelperName( + )}(${k}, '${x}', '${f}');`; + for (let f of d) u += ` exports.${f} = ${A};`; + y && + (u += ` ${this.helperManager.getHelperName( 'createStarExport' - )}(${h});`), - this.importsToReplace.set(t, _); - for (let x of o) this.identifierReplacements.set(x, `${v}.default`); - for (let {importedName: x, localName: L} of s) - this.identifierReplacements.set(L, `${h}.${x}`); + )}(${k});`), + this.importsToReplace.set(t, u); + for (let f of i) this.identifierReplacements.set(f, `${A}.default`); + for (let {importedName: f, localName: x} of a) + this.identifierReplacements.set(x, `${k}.${f}`); } } getFreeIdentifierForPath(t) { - let n = t.split('/'), - r = n[n.length - 1].replace(/\W/g, ''); + let s = t.split('/'), + r = s[s.length - 1].replace(/\W/g, ''); return this.nameManager.claimFreeName(`_${r}`); } preprocessImportAtIndex(t) { - let n = [], - o = [], + let s = [], + i = [], r = []; if ( (t++, ((this.tokens.matchesContextualAtIndex( t, - Kr.ContextualKeyword._type + Zr.ContextualKeyword._type ) || - this.tokens.matches1AtIndex(t, ee.TokenType._typeof)) && - !this.tokens.matches1AtIndex(t + 1, ee.TokenType.comma) && + this.tokens.matches1AtIndex(t, me.TokenType._typeof)) && + !this.tokens.matches1AtIndex(t + 1, me.TokenType.comma) && !this.tokens.matchesContextualAtIndex( t + 1, - Kr.ContextualKeyword._from + Zr.ContextualKeyword._from )) || - this.tokens.matches1AtIndex(t, ee.TokenType.parenL)) + this.tokens.matches1AtIndex(t, me.TokenType.parenL)) ) return; if ( - (this.tokens.matches1AtIndex(t, ee.TokenType.name) && - (n.push(this.tokens.identifierNameAtIndex(t)), + (this.tokens.matches1AtIndex(t, me.TokenType.name) && + (s.push(this.tokens.identifierNameAtIndex(t)), t++, - this.tokens.matches1AtIndex(t, ee.TokenType.comma) && t++), - this.tokens.matches1AtIndex(t, ee.TokenType.star) && - ((t += 2), o.push(this.tokens.identifierNameAtIndex(t)), t++), - this.tokens.matches1AtIndex(t, ee.TokenType.braceL)) + this.tokens.matches1AtIndex(t, me.TokenType.comma) && t++), + this.tokens.matches1AtIndex(t, me.TokenType.star) && + ((t += 2), i.push(this.tokens.identifierNameAtIndex(t)), t++), + this.tokens.matches1AtIndex(t, me.TokenType.braceL)) ) { - let a = this.getNamedImports(t + 1); - t = a.newIndex; - for (let u of a.namedImports) - u.importedName === 'default' ? n.push(u.localName) : r.push(u); + let d = this.getNamedImports(t + 1); + t = d.newIndex; + for (let y of d.namedImports) + y.importedName === 'default' ? s.push(y.localName) : r.push(y); } if ( (this.tokens.matchesContextualAtIndex( t, - Kr.ContextualKeyword._from + Zr.ContextualKeyword._from ) && t++, - !this.tokens.matches1AtIndex(t, ee.TokenType.string)) + !this.tokens.matches1AtIndex(t, me.TokenType.string)) ) throw new Error( 'Expected string token at the end of import statement.' ); - let s = this.tokens.stringValueAtIndex(t), - i = this.getImportInfo(s); - i.defaultNames.push(...n), - i.wildcardNames.push(...o), - i.namedImports.push(...r), - n.length === 0 && - o.length === 0 && + let a = this.tokens.stringValueAtIndex(t), + p = this.getImportInfo(a); + p.defaultNames.push(...s), + p.wildcardNames.push(...i), + p.namedImports.push(...r), + s.length === 0 && + i.length === 0 && r.length === 0 && - (i.hasBareImport = !0); + (p.hasBareImport = !0); } preprocessExportAtIndex(t) { if ( this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType._var + me.TokenType._export, + me.TokenType._var ) || this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType._let + me.TokenType._export, + me.TokenType._let ) || this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType._const + me.TokenType._export, + me.TokenType._const ) ) this.preprocessVarExportAtIndex(t); else if ( this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType._function + me.TokenType._export, + me.TokenType._function ) || this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType._class + me.TokenType._export, + me.TokenType._class ) ) { - let n = this.tokens.identifierNameAtIndex(t + 2); - this.addExportBinding(n, n); + let s = this.tokens.identifierNameAtIndex(t + 2); + this.addExportBinding(s, s); } else if ( this.tokens.matches3AtIndex( t, - ee.TokenType._export, - ee.TokenType.name, - ee.TokenType._function + me.TokenType._export, + me.TokenType.name, + me.TokenType._function ) ) { - let n = this.tokens.identifierNameAtIndex(t + 3); - this.addExportBinding(n, n); + let s = this.tokens.identifierNameAtIndex(t + 3); + this.addExportBinding(s, s); } else this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType.braceL + me.TokenType._export, + me.TokenType.braceL ) ? this.preprocessNamedExportAtIndex(t) : this.tokens.matches2AtIndex( t, - ee.TokenType._export, - ee.TokenType.star + me.TokenType._export, + me.TokenType.star ) && this.preprocessExportStarAtIndex(t); } preprocessVarExportAtIndex(t) { - let n = 0; - for (let o = t + 2; ; o++) + let s = 0; + for (let i = t + 2; ; i++) if ( - this.tokens.matches1AtIndex(o, ee.TokenType.braceL) || - this.tokens.matches1AtIndex(o, ee.TokenType.dollarBraceL) || - this.tokens.matches1AtIndex(o, ee.TokenType.bracketL) + this.tokens.matches1AtIndex(i, me.TokenType.braceL) || + this.tokens.matches1AtIndex(i, me.TokenType.dollarBraceL) || + this.tokens.matches1AtIndex(i, me.TokenType.bracketL) ) - n++; + s++; else if ( - this.tokens.matches1AtIndex(o, ee.TokenType.braceR) || - this.tokens.matches1AtIndex(o, ee.TokenType.bracketR) + this.tokens.matches1AtIndex(i, me.TokenType.braceR) || + this.tokens.matches1AtIndex(i, me.TokenType.bracketR) ) - n--; + s--; else { - if (n === 0 && !this.tokens.matches1AtIndex(o, ee.TokenType.name)) + if (s === 0 && !this.tokens.matches1AtIndex(i, me.TokenType.name)) break; - if (this.tokens.matches1AtIndex(1, ee.TokenType.eq)) { + if (this.tokens.matches1AtIndex(1, me.TokenType.eq)) { let r = this.tokens.currentToken().rhsEndIndex; if (r == null) throw new Error('Expected = token with an end index.'); - o = r - 1; + i = r - 1; } else { - let r = this.tokens.tokens[o]; - if (hT.isDeclaration.call(void 0, r)) { - let s = this.tokens.identifierNameAtIndex(o); - this.identifierReplacements.set(s, `exports.${s}`); + let r = this.tokens.tokens[i]; + if (oT.isDeclaration.call(void 0, r)) { + let a = this.tokens.identifierNameAtIndex(i); + this.identifierReplacements.set(a, `exports.${a}`); } } } } preprocessNamedExportAtIndex(t) { t += 2; - let {newIndex: n, namedImports: o} = this.getNamedImports(t); + let {newIndex: s, namedImports: i} = this.getNamedImports(t); if ( - ((t = n), - this.tokens.matchesContextualAtIndex(t, Kr.ContextualKeyword._from)) + ((t = s), + this.tokens.matchesContextualAtIndex(t, Zr.ContextualKeyword._from)) ) t++; else { - for (let {importedName: i, localName: a} of o) - this.addExportBinding(i, a); + for (let {importedName: p, localName: d} of i) + this.addExportBinding(p, d); return; } - if (!this.tokens.matches1AtIndex(t, ee.TokenType.string)) + if (!this.tokens.matches1AtIndex(t, me.TokenType.string)) throw new Error( 'Expected string token at the end of import statement.' ); let r = this.tokens.stringValueAtIndex(t); - this.getImportInfo(r).namedExports.push(...o); + this.getImportInfo(r).namedExports.push(...i); } preprocessExportStarAtIndex(t) { - let n = null; + let s = null; if ( (this.tokens.matches3AtIndex( t, - ee.TokenType._export, - ee.TokenType.star, - ee.TokenType._as + me.TokenType._export, + me.TokenType.star, + me.TokenType._as ) - ? ((t += 3), (n = this.tokens.identifierNameAtIndex(t)), (t += 2)) + ? ((t += 3), (s = this.tokens.identifierNameAtIndex(t)), (t += 2)) : (t += 3), - !this.tokens.matches1AtIndex(t, ee.TokenType.string)) + !this.tokens.matches1AtIndex(t, me.TokenType.string)) ) throw new Error( 'Expected string token at the end of star export statement.' ); - let o = this.tokens.stringValueAtIndex(t), - r = this.getImportInfo(o); - n !== null ? r.exportStarNames.push(n) : (r.hasStarExport = !0); + let i = this.tokens.stringValueAtIndex(t), + r = this.getImportInfo(i); + s !== null ? r.exportStarNames.push(s) : (r.hasStarExport = !0); } getNamedImports(t) { - let n = []; + let s = []; for (;;) { - if (this.tokens.matches1AtIndex(t, ee.TokenType.braceR)) { + if (this.tokens.matches1AtIndex(t, me.TokenType.braceR)) { t++; break; } - let o = yT.default.call(void 0, this.tokens, t); + let i = lT.default.call(void 0, this.tokens, t); if ( - ((t = o.endIndex), - o.isType || - n.push({importedName: o.leftName, localName: o.rightName}), + ((t = i.endIndex), + i.isType || + s.push({importedName: i.leftName, localName: i.rightName}), this.tokens.matches2AtIndex( t, - ee.TokenType.comma, - ee.TokenType.braceR + me.TokenType.comma, + me.TokenType.braceR )) ) { t += 2; break; - } else if (this.tokens.matches1AtIndex(t, ee.TokenType.braceR)) { + } else if (this.tokens.matches1AtIndex(t, me.TokenType.braceR)) { t++; break; - } else if (this.tokens.matches1AtIndex(t, ee.TokenType.comma)) t++; + } else if (this.tokens.matches1AtIndex(t, me.TokenType.comma)) t++; else throw new Error( `Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}` ); } - return {newIndex: t, namedImports: n}; + return {newIndex: t, namedImports: s}; } getImportInfo(t) { - let n = this.importInfoByPath.get(t); - if (n) return n; - let o = { + let s = this.importInfoByPath.get(t); + if (s) return s; + let i = { defaultNames: [], wildcardNames: [], namedImports: [], @@ -15518,25 +15518,25 @@ If you need interactivity, consider converting part of this to a Client Componen exportStarNames: [], hasStarExport: !1, }; - return this.importInfoByPath.set(t, o), o; + return this.importInfoByPath.set(t, i), i; } - addExportBinding(t, n) { + addExportBinding(t, s) { this.exportBindingsByLocalName.has(t) || this.exportBindingsByLocalName.set(t, []), - this.exportBindingsByLocalName.get(t).push(n); + this.exportBindingsByLocalName.get(t).push(s); } claimImportCode(t) { - let n = this.importsToReplace.get(t); - return this.importsToReplace.set(t, ''), n || ''; + let s = this.importsToReplace.get(t); + return this.importsToReplace.set(t, ''), s || ''; } getIdentifierReplacement(t) { return this.identifierReplacements.get(t) || null; } resolveExportBinding(t) { - let n = this.exportBindingsByLocalName.get(t); - return !n || n.length === 0 + let s = this.exportBindingsByLocalName.get(t); + return !s || s.length === 0 ? null - : n.map((o) => `exports.${o}`).join(' = '); + : s.map((i) => `exports.${i}`).join(' = '); } getGlobalNames() { return new Set([ @@ -15545,17 +15545,17 @@ If you need interactivity, consider converting part of this to a Client Componen ]); } }; - Qi.default = Ji; + Va.default = Ba; }); - var Fc = H((qr, Lc) => { + var R1 = Z((eo, N1) => { (function (e, t) { - typeof qr == 'object' && typeof Lc < 'u' - ? t(qr) + typeof eo == 'object' && typeof N1 < 'u' + ? t(eo) : typeof define == 'function' && define.amd ? define(['exports'], t) : ((e = typeof globalThis < 'u' ? globalThis : e || self), t((e.setArray = {}))); - })(qr, function (e) { + })(eo, function (e) { 'use strict'; (e.get = void 0), (e.put = void 0), (e.pop = void 0); class t { @@ -15563,340 +15563,340 @@ If you need interactivity, consider converting part of this to a Client Componen (this._indexes = {__proto__: null}), (this.array = []); } } - (e.get = (n, o) => n._indexes[o]), - (e.put = (n, o) => { - let r = e.get(n, o); + (e.get = (s, i) => s._indexes[i]), + (e.put = (s, i) => { + let r = e.get(s, i); if (r !== void 0) return r; - let {array: s, _indexes: i} = n; - return (i[o] = s.push(o) - 1); + let {array: a, _indexes: p} = s; + return (p[i] = a.push(i) - 1); }), - (e.pop = (n) => { - let {array: o, _indexes: r} = n; - if (o.length === 0) return; - let s = o.pop(); - r[s] = void 0; + (e.pop = (s) => { + let {array: i, _indexes: r} = s; + if (i.length === 0) return; + let a = i.pop(); + r[a] = void 0; }), (e.SetArray = t), Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var Zi = H((Hr, $c) => { + var ja = Z((to, L1) => { (function (e, t) { - typeof Hr == 'object' && typeof $c < 'u' - ? t(Hr) + typeof to == 'object' && typeof L1 < 'u' + ? t(to) : typeof define == 'function' && define.amd ? define(['exports'], t) : ((e = typeof globalThis < 'u' ? globalThis : e || self), t((e.sourcemapCodec = {}))); - })(Hr, function (e) { + })(to, function (e) { 'use strict'; - let o = + let i = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', r = new Uint8Array(64), - s = new Uint8Array(128); - for (let F = 0; F < o.length; F++) { - let K = o.charCodeAt(F); - (r[F] = K), (s[K] = F); + a = new Uint8Array(128); + for (let S = 0; S < i.length; S++) { + let E = i.charCodeAt(S); + (r[S] = E), (a[E] = S); } - let i = + let p = typeof TextDecoder < 'u' ? new TextDecoder() : typeof Buffer < 'u' ? { - decode(F) { + decode(S) { return Buffer.from( - F.buffer, - F.byteOffset, - F.byteLength + S.buffer, + S.byteOffset, + S.byteLength ).toString(); }, } : { - decode(F) { - let K = ''; - for (let R = 0; R < F.length; R++) - K += String.fromCharCode(F[R]); - return K; + decode(S) { + let E = ''; + for (let L = 0; L < S.length; L++) + E += String.fromCharCode(S[L]); + return E; }, }; - function a(F) { - let K = new Int32Array(5), - R = [], - z = 0; + function d(S) { + let E = new Int32Array(5), + L = [], + H = 0; do { - let $ = u(F, z), - O = [], - A = !0, - M = 0; - K[0] = 0; - for (let B = z; B < $; B++) { - let oe; - B = h(F, B, K, 0); - let ne = K[0]; - ne < M && (A = !1), - (M = ne), - v(F, B, $) - ? ((B = h(F, B, K, 1)), - (B = h(F, B, K, 2)), - (B = h(F, B, K, 3)), - v(F, B, $) - ? ((B = h(F, B, K, 4)), (oe = [ne, K[1], K[2], K[3], K[4]])) - : (oe = [ne, K[1], K[2], K[3]])) - : (oe = [ne]), - O.push(oe); + let D = y(S, H), + c = [], + M = !0, + z = 0; + E[0] = 0; + for (let X = H; X < D; X++) { + let ie; + X = k(S, X, E, 0); + let pe = E[0]; + pe < z && (M = !1), + (z = pe), + A(S, X, D) + ? ((X = k(S, X, E, 1)), + (X = k(S, X, E, 2)), + (X = k(S, X, E, 3)), + A(S, X, D) + ? ((X = k(S, X, E, 4)), (ie = [pe, E[1], E[2], E[3], E[4]])) + : (ie = [pe, E[1], E[2], E[3]])) + : (ie = [pe]), + c.push(ie); } - A || _(O), R.push(O), (z = $ + 1); - } while (z <= F.length); - return R; - } - function u(F, K) { - let R = F.indexOf(';', K); - return R === -1 ? F.length : R; - } - function h(F, K, R, z) { - let $ = 0, - O = 0, - A = 0; + M || u(c), L.push(c), (H = D + 1); + } while (H <= S.length); + return L; + } + function y(S, E) { + let L = S.indexOf(';', E); + return L === -1 ? S.length : L; + } + function k(S, E, L, H) { + let D = 0, + c = 0, + M = 0; do { - let B = F.charCodeAt(K++); - (A = s[B]), ($ |= (A & 31) << O), (O += 5); - } while (A & 32); - let M = $ & 1; - return ($ >>>= 1), M && ($ = -2147483648 | -$), (R[z] += $), K; - } - function v(F, K, R) { - return K >= R ? !1 : F.charCodeAt(K) !== 44; - } - function _(F) { - F.sort(x); - } - function x(F, K) { - return F[0] - K[0]; - } - function L(F) { - let K = new Int32Array(5), - R = 1024 * 16, - z = R - 36, - $ = new Uint8Array(R), - O = $.subarray(0, z), - A = 0, - M = ''; - for (let B = 0; B < F.length; B++) { - let oe = F[B]; + let X = S.charCodeAt(E++); + (M = a[X]), (D |= (M & 31) << c), (c += 5); + } while (M & 32); + let z = D & 1; + return (D >>>= 1), z && (D = -2147483648 | -D), (L[H] += D), E; + } + function A(S, E, L) { + return E >= L ? !1 : S.charCodeAt(E) !== 44; + } + function u(S) { + S.sort(f); + } + function f(S, E) { + return S[0] - E[0]; + } + function x(S) { + let E = new Int32Array(5), + L = 1024 * 16, + H = L - 36, + D = new Uint8Array(L), + c = D.subarray(0, H), + M = 0, + z = ''; + for (let X = 0; X < S.length; X++) { + let ie = S[X]; if ( - (B > 0 && (A === R && ((M += i.decode($)), (A = 0)), ($[A++] = 59)), - oe.length !== 0) + (X > 0 && (M === L && ((z += p.decode(D)), (M = 0)), (D[M++] = 59)), + ie.length !== 0) ) { - K[0] = 0; - for (let ne = 0; ne < oe.length; ne++) { - let re = oe[ne]; - A > z && ((M += i.decode(O)), $.copyWithin(0, z, A), (A -= z)), - ne > 0 && ($[A++] = 44), - (A = G($, A, K, re, 0)), - re.length !== 1 && - ((A = G($, A, K, re, 1)), - (A = G($, A, K, re, 2)), - (A = G($, A, K, re, 3)), - re.length !== 4 && (A = G($, A, K, re, 4))); + E[0] = 0; + for (let pe = 0; pe < ie.length; pe++) { + let ae = ie[pe]; + M > H && ((z += p.decode(c)), D.copyWithin(0, H, M), (M -= H)), + pe > 0 && (D[M++] = 44), + (M = g(D, M, E, ae, 0)), + ae.length !== 1 && + ((M = g(D, M, E, ae, 1)), + (M = g(D, M, E, ae, 2)), + (M = g(D, M, E, ae, 3)), + ae.length !== 4 && (M = g(D, M, E, ae, 4))); } } } - return M + i.decode($.subarray(0, A)); + return z + p.decode(D.subarray(0, M)); } - function G(F, K, R, z, $) { - let O = z[$], - A = O - R[$]; - (R[$] = O), (A = A < 0 ? (-A << 1) | 1 : A << 1); + function g(S, E, L, H, D) { + let c = H[D], + M = c - L[D]; + (L[D] = c), (M = M < 0 ? (-M << 1) | 1 : M << 1); do { - let M = A & 31; - (A >>>= 5), A > 0 && (M |= 32), (F[K++] = r[M]); - } while (A > 0); - return K; + let z = M & 31; + (M >>>= 5), M > 0 && (z |= 32), (S[E++] = r[z]); + } while (M > 0); + return E; } - (e.decode = a), - (e.encode = L), + (e.decode = d), + (e.encode = x), Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var Bc = H((ea, ta) => { + var O1 = Z(($a, qa) => { (function (e, t) { - typeof ea == 'object' && typeof ta < 'u' - ? (ta.exports = t()) + typeof $a == 'object' && typeof qa < 'u' + ? (qa.exports = t()) : typeof define == 'function' && define.amd ? define(t) : ((e = typeof globalThis < 'u' ? globalThis : e || self), (e.resolveURI = t())); - })(ea, function () { + })($a, function () { 'use strict'; let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, - n = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; - var o; - (function (R) { - (R[(R.Empty = 1)] = 'Empty'), - (R[(R.Hash = 2)] = 'Hash'), - (R[(R.Query = 3)] = 'Query'), - (R[(R.RelativePath = 4)] = 'RelativePath'), - (R[(R.AbsolutePath = 5)] = 'AbsolutePath'), - (R[(R.SchemeRelative = 6)] = 'SchemeRelative'), - (R[(R.Absolute = 7)] = 'Absolute'); - })(o || (o = {})); - function r(R) { - return e.test(R); - } - function s(R) { - return R.startsWith('//'); - } - function i(R) { - return R.startsWith('/'); - } - function a(R) { - return R.startsWith('file:'); - } - function u(R) { - return /^[.?#]/.test(R); - } - function h(R) { - let z = t.exec(R); - return _( - z[1], - z[2] || '', - z[3], - z[4] || '', - z[5] || '/', - z[6] || '', - z[7] || '' + s = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; + var i; + (function (L) { + (L[(L.Empty = 1)] = 'Empty'), + (L[(L.Hash = 2)] = 'Hash'), + (L[(L.Query = 3)] = 'Query'), + (L[(L.RelativePath = 4)] = 'RelativePath'), + (L[(L.AbsolutePath = 5)] = 'AbsolutePath'), + (L[(L.SchemeRelative = 6)] = 'SchemeRelative'), + (L[(L.Absolute = 7)] = 'Absolute'); + })(i || (i = {})); + function r(L) { + return e.test(L); + } + function a(L) { + return L.startsWith('//'); + } + function p(L) { + return L.startsWith('/'); + } + function d(L) { + return L.startsWith('file:'); + } + function y(L) { + return /^[.?#]/.test(L); + } + function k(L) { + let H = t.exec(L); + return u( + H[1], + H[2] || '', + H[3], + H[4] || '', + H[5] || '/', + H[6] || '', + H[7] || '' ); } - function v(R) { - let z = n.exec(R), - $ = z[2]; - return _( + function A(L) { + let H = s.exec(L), + D = H[2]; + return u( 'file:', '', - z[1] || '', + H[1] || '', '', - i($) ? $ : '/' + $, - z[3] || '', - z[4] || '' + p(D) ? D : '/' + D, + H[3] || '', + H[4] || '' ); } - function _(R, z, $, O, A, M, B) { + function u(L, H, D, c, M, z, X) { return { - scheme: R, - user: z, - host: $, - port: O, - path: A, - query: M, - hash: B, - type: o.Absolute, + scheme: L, + user: H, + host: D, + port: c, + path: M, + query: z, + hash: X, + type: i.Absolute, }; } - function x(R) { - if (s(R)) { - let $ = h('http:' + R); - return ($.scheme = ''), ($.type = o.SchemeRelative), $; + function f(L) { + if (a(L)) { + let D = k('http:' + L); + return (D.scheme = ''), (D.type = i.SchemeRelative), D; } - if (i(R)) { - let $ = h('http://foo.com' + R); - return ($.scheme = ''), ($.host = ''), ($.type = o.AbsolutePath), $; + if (p(L)) { + let D = k('http://foo.com' + L); + return (D.scheme = ''), (D.host = ''), (D.type = i.AbsolutePath), D; } - if (a(R)) return v(R); - if (r(R)) return h(R); - let z = h('http://foo.com/' + R); + if (d(L)) return A(L); + if (r(L)) return k(L); + let H = k('http://foo.com/' + L); return ( - (z.scheme = ''), - (z.host = ''), - (z.type = R - ? R.startsWith('?') - ? o.Query - : R.startsWith('#') - ? o.Hash - : o.RelativePath - : o.Empty), - z + (H.scheme = ''), + (H.host = ''), + (H.type = L + ? L.startsWith('?') + ? i.Query + : L.startsWith('#') + ? i.Hash + : i.RelativePath + : i.Empty), + H ); } - function L(R) { - if (R.endsWith('/..')) return R; - let z = R.lastIndexOf('/'); - return R.slice(0, z + 1); - } - function G(R, z) { - F(z, z.type), - R.path === '/' ? (R.path = z.path) : (R.path = L(z.path) + R.path); - } - function F(R, z) { - let $ = z <= o.RelativePath, - O = R.path.split('/'), - A = 1, - M = 0, - B = !1; - for (let ne = 1; ne < O.length; ne++) { - let re = O[ne]; - if (!re) { - B = !0; + function x(L) { + if (L.endsWith('/..')) return L; + let H = L.lastIndexOf('/'); + return L.slice(0, H + 1); + } + function g(L, H) { + S(H, H.type), + L.path === '/' ? (L.path = H.path) : (L.path = x(H.path) + L.path); + } + function S(L, H) { + let D = H <= i.RelativePath, + c = L.path.split('/'), + M = 1, + z = 0, + X = !1; + for (let pe = 1; pe < c.length; pe++) { + let ae = c[pe]; + if (!ae) { + X = !0; continue; } - if (((B = !1), re !== '.')) { - if (re === '..') { - M ? ((B = !0), M--, A--) : $ && (O[A++] = re); + if (((X = !1), ae !== '.')) { + if (ae === '..') { + z ? ((X = !0), z--, M--) : D && (c[M++] = ae); continue; } - (O[A++] = re), M++; + (c[M++] = ae), z++; } } - let oe = ''; - for (let ne = 1; ne < A; ne++) oe += '/' + O[ne]; - (!oe || (B && !oe.endsWith('/..'))) && (oe += '/'), (R.path = oe); - } - function K(R, z) { - if (!R && !z) return ''; - let $ = x(R), - O = $.type; - if (z && O !== o.Absolute) { - let M = x(z), - B = M.type; - switch (O) { - case o.Empty: - $.hash = M.hash; - case o.Hash: - $.query = M.query; - case o.Query: - case o.RelativePath: - G($, M); - case o.AbsolutePath: - ($.user = M.user), ($.host = M.host), ($.port = M.port); - case o.SchemeRelative: - $.scheme = M.scheme; + let ie = ''; + for (let pe = 1; pe < M; pe++) ie += '/' + c[pe]; + (!ie || (X && !ie.endsWith('/..'))) && (ie += '/'), (L.path = ie); + } + function E(L, H) { + if (!L && !H) return ''; + let D = f(L), + c = D.type; + if (H && c !== i.Absolute) { + let z = f(H), + X = z.type; + switch (c) { + case i.Empty: + D.hash = z.hash; + case i.Hash: + D.query = z.query; + case i.Query: + case i.RelativePath: + g(D, z); + case i.AbsolutePath: + (D.user = z.user), (D.host = z.host), (D.port = z.port); + case i.SchemeRelative: + D.scheme = z.scheme; } - B > O && (O = B); - } - F($, O); - let A = $.query + $.hash; - switch (O) { - case o.Hash: - case o.Query: - return A; - case o.RelativePath: { - let M = $.path.slice(1); - return M ? (u(z || R) && !u(M) ? './' + M + A : M + A) : A || '.'; + X > c && (c = X); + } + S(D, c); + let M = D.query + D.hash; + switch (c) { + case i.Hash: + case i.Query: + return M; + case i.RelativePath: { + let z = D.path.slice(1); + return z ? (y(H || L) && !y(z) ? './' + z + M : z + M) : M || '.'; } - case o.AbsolutePath: - return $.path + A; + case i.AbsolutePath: + return D.path + M; default: - return $.scheme + '//' + $.user + $.host + $.port + $.path + A; + return D.scheme + '//' + D.user + D.host + D.port + D.path + M; } } - return K; + return E; }); }); - var Kc = H((Ur, jc) => { + var M1 = Z((no, D1) => { (function (e, t) { - typeof Ur == 'object' && typeof jc < 'u' - ? t(Ur, Zi(), Bc()) + typeof no == 'object' && typeof D1 < 'u' + ? t(no, ja(), O1()) : typeof define == 'function' && define.amd ? define( [ @@ -15908,185 +15908,185 @@ If you need interactivity, consider converting part of this to a Client Componen ) : ((e = typeof globalThis < 'u' ? globalThis : e || self), t((e.traceMapping = {}), e.sourcemapCodec, e.resolveURI)); - })(Ur, function (e, t, n) { + })(no, function (e, t, s) { 'use strict'; - function o(I) { - return I && typeof I == 'object' && 'default' in I ? I : {default: I}; - } - var r = o(n); - function s(I, D) { - return D && !D.endsWith('/') && (D += '/'), r.default(I, D); - } - function i(I) { - if (!I) return ''; - let D = I.lastIndexOf('/'); - return I.slice(0, D + 1); - } - let a = 0, - u = 1, - h = 2, - v = 3, - _ = 4, - x = 1, - L = 2; - function G(I, D) { - let j = F(I, 0); - if (j === I.length) return I; - D || (I = I.slice()); - for (let Y = j; Y < I.length; Y = F(I, Y + 1)) I[Y] = R(I[Y], D); - return I; - } - function F(I, D) { - for (let j = D; j < I.length; j++) if (!K(I[j])) return j; - return I.length; - } - function K(I) { - for (let D = 1; D < I.length; D++) if (I[D][a] < I[D - 1][a]) return !1; + function i(V) { + return V && typeof V == 'object' && 'default' in V ? V : {default: V}; + } + var r = i(s); + function a(V, W) { + return W && !W.endsWith('/') && (W += '/'), r.default(V, W); + } + function p(V) { + if (!V) return ''; + let W = V.lastIndexOf('/'); + return V.slice(0, W + 1); + } + let d = 0, + y = 1, + k = 2, + A = 3, + u = 4, + f = 1, + x = 2; + function g(V, W) { + let J = S(V, 0); + if (J === V.length) return V; + W || (V = V.slice()); + for (let re = J; re < V.length; re = S(V, re + 1)) V[re] = L(V[re], W); + return V; + } + function S(V, W) { + for (let J = W; J < V.length; J++) if (!E(V[J])) return J; + return V.length; + } + function E(V) { + for (let W = 1; W < V.length; W++) if (V[W][d] < V[W - 1][d]) return !1; return !0; } - function R(I, D) { - return D || (I = I.slice()), I.sort(z); + function L(V, W) { + return W || (V = V.slice()), V.sort(H); } - function z(I, D) { - return I[a] - D[a]; + function H(V, W) { + return V[d] - W[d]; } - let $ = !1; - function O(I, D, j, Y) { - for (; j <= Y; ) { - let le = j + ((Y - j) >> 1), - Q = I[le][a] - D; - if (Q === 0) return ($ = !0), le; - Q < 0 ? (j = le + 1) : (Y = le - 1); + let D = !1; + function c(V, W, J, re) { + for (; J <= re; ) { + let ve = J + ((re - J) >> 1), + he = V[ve][d] - W; + if (he === 0) return (D = !0), ve; + he < 0 ? (J = ve + 1) : (re = ve - 1); } - return ($ = !1), j - 1; + return (D = !1), J - 1; } - function A(I, D, j) { - for (let Y = j + 1; Y < I.length && I[Y][a] === D; j = Y++); - return j; + function M(V, W, J) { + for (let re = J + 1; re < V.length && V[re][d] === W; J = re++); + return J; } - function M(I, D, j) { - for (let Y = j - 1; Y >= 0 && I[Y][a] === D; j = Y--); - return j; + function z(V, W, J) { + for (let re = J - 1; re >= 0 && V[re][d] === W; J = re--); + return J; } - function B() { + function X() { return {lastKey: -1, lastNeedle: -1, lastIndex: -1}; } - function oe(I, D, j, Y) { - let {lastKey: le, lastNeedle: Q, lastIndex: ke} = j, - ge = 0, - Ce = I.length - 1; - if (Y === le) { - if (D === Q) return ($ = ke !== -1 && I[ke][a] === D), ke; - D >= Q ? (ge = ke === -1 ? 0 : ke) : (Ce = ke); + function ie(V, W, J, re) { + let {lastKey: ve, lastNeedle: he, lastIndex: Ie} = J, + Ee = 0, + Le = V.length - 1; + if (re === ve) { + if (W === he) return (D = Ie !== -1 && V[Ie][d] === W), Ie; + W >= he ? (Ee = Ie === -1 ? 0 : Ie) : (Le = Ie); } return ( - (j.lastKey = Y), (j.lastNeedle = D), (j.lastIndex = O(I, D, ge, Ce)) + (J.lastKey = re), (J.lastNeedle = W), (J.lastIndex = c(V, W, Ee, Le)) ); } - function ne(I, D) { - let j = D.map(Le); - for (let Y = 0; Y < I.length; Y++) { - let le = I[Y]; - for (let Q = 0; Q < le.length; Q++) { - let ke = le[Q]; - if (ke.length === 1) continue; - let ge = ke[u], - Ce = ke[h], - We = ke[v], - $e = j[ge], - Ne = $e[Ce] || ($e[Ce] = []), - Ye = D[ge], - et = A(Ne, We, oe(Ne, We, Ye, Ce)); - re(Ne, (Ye.lastIndex = et + 1), [We, Y, ke[a]]); + function pe(V, W) { + let J = W.map(He); + for (let re = 0; re < V.length; re++) { + let ve = V[re]; + for (let he = 0; he < ve.length; he++) { + let Ie = ve[he]; + if (Ie.length === 1) continue; + let Ee = Ie[y], + Le = Ie[k], + Xe = Ie[A], + We = J[Ee], + Ke = We[Le] || (We[Le] = []), + ut = W[Ee], + pt = M(Ke, Xe, ie(Ke, Xe, ut, Le)); + ae(Ke, (ut.lastIndex = pt + 1), [Xe, re, Ie[d]]); } } - return j; + return J; } - function re(I, D, j) { - for (let Y = I.length; Y > D; Y--) I[Y] = I[Y - 1]; - I[D] = j; + function ae(V, W, J) { + for (let re = V.length; re > W; re--) V[re] = V[re - 1]; + V[W] = J; } - function Le() { + function He() { return {__proto__: null}; } - let Fe = function (I, D) { - let j = typeof I == 'string' ? JSON.parse(I) : I; - if (!('sections' in j)) return new Ft(j, D); - let Y = [], - le = [], - Q = [], - ke = []; - mt(j, D, Y, le, Q, ke, 0, 0, 1 / 0, 1 / 0); - let ge = { + let qe = function (V, W) { + let J = typeof V == 'string' ? JSON.parse(V) : V; + if (!('sections' in J)) return new wt(J, W); + let re = [], + ve = [], + he = [], + Ie = []; + Bt(J, W, re, ve, he, Ie, 0, 0, 1 / 0, 1 / 0); + let Ee = { version: 3, - file: j.file, - names: ke, - sources: le, - sourcesContent: Q, - mappings: Y, + file: J.file, + names: Ie, + sources: ve, + sourcesContent: he, + mappings: re, }; - return e.presortedDecodedMap(ge); + return e.presortedDecodedMap(Ee); }; - function mt(I, D, j, Y, le, Q, ke, ge, Ce, We) { - let {sections: $e} = I; - for (let Ne = 0; Ne < $e.length; Ne++) { - let {map: Ye, offset: et} = $e[Ne], - pt = Ce, - zt = We; - if (Ne + 1 < $e.length) { - let tt = $e[Ne + 1].offset; - (pt = Math.min(Ce, ke + tt.line)), - pt === Ce - ? (zt = Math.min(We, ge + tt.column)) - : pt < Ce && (zt = ge + tt.column); + function Bt(V, W, J, re, ve, he, Ie, Ee, Le, Xe) { + let {sections: We} = V; + for (let Ke = 0; Ke < We.length; Ke++) { + let {map: ut, offset: pt} = We[Ke], + bt = Le, + Tt = Xe; + if (Ke + 1 < We.length) { + let vt = We[Ke + 1].offset; + (bt = Math.min(Le, Ie + vt.line)), + bt === Le + ? (Tt = Math.min(Xe, Ee + vt.column)) + : bt < Le && (Tt = Ee + vt.column); } - kt(Ye, D, j, Y, le, Q, ke + et.line, ge + et.column, pt, zt); - } - } - function kt(I, D, j, Y, le, Q, ke, ge, Ce, We) { - if ('sections' in I) return mt(...arguments); - let $e = new Ft(I, D), - Ne = Y.length, - Ye = Q.length, - et = e.decodedMappings($e), - {resolvedSources: pt, sourcesContent: zt} = $e; - if ((Qe(Y, pt), Qe(Q, $e.names), zt)) Qe(le, zt); - else for (let tt = 0; tt < pt.length; tt++) le.push(null); - for (let tt = 0; tt < et.length; tt++) { - let Fn = ke + tt; - if (Fn > Ce) return; - let Qn = vt(j, Fn), - bo = tt === 0 ? ge : 0, - Zn = et[tt]; - for (let $n = 0; $n < Zn.length; $n++) { - let jt = Zn[$n], - kn = bo + jt[a]; - if (Fn === Ce && kn >= We) return; - if (jt.length === 1) { - Qn.push([kn]); + mt(ut, W, J, re, ve, he, Ie + pt.line, Ee + pt.column, bt, Tt); + } + } + function mt(V, W, J, re, ve, he, Ie, Ee, Le, Xe) { + if ('sections' in V) return Bt(...arguments); + let We = new wt(V, W), + Ke = re.length, + ut = he.length, + pt = e.decodedMappings(We), + {resolvedSources: bt, sourcesContent: Tt} = We; + if ((kt(re, bt), kt(he, We.names), Tt)) kt(ve, Tt); + else for (let vt = 0; vt < bt.length; vt++) ve.push(null); + for (let vt = 0; vt < pt.length; vt++) { + let bn = Ie + vt; + if (bn > Le) return; + let Dn = At(J, bn), + Ge = vt === 0 ? Ee : 0, + St = pt[vt]; + for (let ot = 0; ot < St.length; ot++) { + let zt = St[ot], + Xt = Ge + zt[d]; + if (bn === Le && Xt >= Xe) return; + if (zt.length === 1) { + Dn.push([Xt]); continue; } - let eo = Ne + jt[u], - to = jt[h], - no = jt[v]; - Qn.push( - jt.length === 4 ? [kn, eo, to, no] : [kn, eo, to, no, Ye + jt[_]] + let te = Ke + zt[y], + Cn = zt[k], + Zn = zt[A]; + Dn.push( + zt.length === 4 ? [Xt, te, Cn, Zn] : [Xt, te, Cn, Zn, ut + zt[u]] ); } } } - function Qe(I, D) { - for (let j = 0; j < D.length; j++) I.push(D[j]); + function kt(V, W) { + for (let J = 0; J < W.length; J++) V.push(W[J]); } - function vt(I, D) { - for (let j = I.length; j <= D; j++) I[j] = []; - return I[D]; + function At(V, W) { + for (let J = V.length; J <= W; J++) V[J] = []; + return V[W]; } - let it = '`line` must be greater than 0 (lines start at line 1)', - ct = + let tt = '`line` must be greater than 0 (lines start at line 1)', + nt = '`column` must be greater than or equal to 0 (columns start at column 0)', - Ze = -1, - ut = 1; + _t = -1, + ct = 1; (e.encodedMappings = void 0), (e.decodedMappings = void 0), (e.traceSegment = void 0), @@ -16097,154 +16097,159 @@ If you need interactivity, consider converting part of this to a Client Componen (e.presortedDecodedMap = void 0), (e.decodedMap = void 0), (e.encodedMap = void 0); - class Ft { - constructor(D, j) { - let Y = typeof D == 'string'; - if (!Y && D._decodedMemo) return D; - let le = Y ? JSON.parse(D) : D, + class wt { + constructor(W, J) { + let re = typeof W == 'string'; + if (!re && W._decodedMemo) return W; + let ve = re ? JSON.parse(W) : W, { - version: Q, - file: ke, - names: ge, - sourceRoot: Ce, - sources: We, - sourcesContent: $e, - } = le; - (this.version = Q), - (this.file = ke), - (this.names = ge), - (this.sourceRoot = Ce), - (this.sources = We), - (this.sourcesContent = $e); - let Ne = s(Ce || '', i(j)); - this.resolvedSources = We.map((et) => s(et || '', Ne)); - let {mappings: Ye} = le; - typeof Ye == 'string' - ? ((this._encoded = Ye), (this._decoded = void 0)) - : ((this._encoded = void 0), (this._decoded = G(Ye, Y))), - (this._decodedMemo = B()), + version: he, + file: Ie, + names: Ee, + sourceRoot: Le, + sources: Xe, + sourcesContent: We, + } = ve; + (this.version = he), + (this.file = Ie), + (this.names = Ee), + (this.sourceRoot = Le), + (this.sources = Xe), + (this.sourcesContent = We); + let Ke = a(Le || '', p(J)); + this.resolvedSources = Xe.map((pt) => a(pt || '', Ke)); + let {mappings: ut} = ve; + typeof ut == 'string' + ? ((this._encoded = ut), (this._decoded = void 0)) + : ((this._encoded = void 0), (this._decoded = g(ut, re))), + (this._decodedMemo = X()), (this._bySources = void 0), (this._bySourceMemos = void 0); } } - (e.encodedMappings = (I) => { - var D; - return (D = I._encoded) !== null && D !== void 0 - ? D - : (I._encoded = t.encode(I._decoded)); + (e.encodedMappings = (V) => { + var W; + return (W = V._encoded) !== null && W !== void 0 + ? W + : (V._encoded = t.encode(V._decoded)); }), - (e.decodedMappings = (I) => - I._decoded || (I._decoded = t.decode(I._encoded))), - (e.traceSegment = (I, D, j) => { - let Y = e.decodedMappings(I); - return D >= Y.length ? null : on(Y[D], I._decodedMemo, D, j, ut); - }), - (e.originalPositionFor = (I, {line: D, column: j, bias: Y}) => { - if ((D--, D < 0)) throw new Error(it); - if (j < 0) throw new Error(ct); - let le = e.decodedMappings(I); - if (D >= le.length) return $t(null, null, null, null); - let Q = on(le[D], I._decodedMemo, D, j, Y || ut); - if (Q == null || Q.length == 1) return $t(null, null, null, null); - let {names: ke, resolvedSources: ge} = I; - return $t(ge[Q[u]], Q[h] + 1, Q[v], Q.length === 5 ? ke[Q[_]] : null); + (e.decodedMappings = (V) => + V._decoded || (V._decoded = t.decode(V._encoded))), + (e.traceSegment = (V, W, J) => { + let re = e.decodedMappings(V); + return W >= re.length ? null : yn(re[W], V._decodedMemo, W, J, ct); + }), + (e.originalPositionFor = (V, {line: W, column: J, bias: re}) => { + if ((W--, W < 0)) throw new Error(tt); + if (J < 0) throw new Error(nt); + let ve = e.decodedMappings(V); + if (W >= ve.length) return Pt(null, null, null, null); + let he = yn(ve[W], V._decodedMemo, W, J, re || ct); + if (he == null || he.length == 1) return Pt(null, null, null, null); + let {names: Ie, resolvedSources: Ee} = V; + return Pt( + Ee[he[y]], + he[k] + 1, + he[A], + he.length === 5 ? Ie[he[u]] : null + ); }), (e.generatedPositionFor = ( - I, - {source: D, line: j, column: Y, bias: le} + V, + {source: W, line: J, column: re, bias: ve} ) => { - if ((j--, j < 0)) throw new Error(it); - if (Y < 0) throw new Error(ct); - let {sources: Q, resolvedSources: ke} = I, - ge = Q.indexOf(D); - if ((ge === -1 && (ge = ke.indexOf(D)), ge === -1)) - return Bt(null, null); - let Ce = - I._bySources || - (I._bySources = ne( - e.decodedMappings(I), - (I._bySourceMemos = Q.map(B)) + if ((J--, J < 0)) throw new Error(tt); + if (re < 0) throw new Error(nt); + let {sources: he, resolvedSources: Ie} = V, + Ee = he.indexOf(W); + if ((Ee === -1 && (Ee = Ie.indexOf(W)), Ee === -1)) + return qt(null, null); + let Le = + V._bySources || + (V._bySources = pe( + e.decodedMappings(V), + (V._bySourceMemos = he.map(X)) )), - We = I._bySourceMemos, - $e = Ce[ge][j]; - if ($e == null) return Bt(null, null); - let Ne = on($e, We[ge], j, Y, le || ut); - return Ne == null ? Bt(null, null) : Bt(Ne[x] + 1, Ne[L]); - }), - (e.eachMapping = (I, D) => { - let j = e.decodedMappings(I), - {names: Y, resolvedSources: le} = I; - for (let Q = 0; Q < j.length; Q++) { - let ke = j[Q]; - for (let ge = 0; ge < ke.length; ge++) { - let Ce = ke[ge], - We = Q + 1, - $e = Ce[0], - Ne = null, - Ye = null, - et = null, - pt = null; - Ce.length !== 1 && - ((Ne = le[Ce[1]]), (Ye = Ce[2] + 1), (et = Ce[3])), - Ce.length === 5 && (pt = Y[Ce[4]]), - D({ - generatedLine: We, - generatedColumn: $e, - source: Ne, - originalLine: Ye, - originalColumn: et, - name: pt, + Xe = V._bySourceMemos, + We = Le[Ee][J]; + if (We == null) return qt(null, null); + let Ke = yn(We, Xe[Ee], J, re, ve || ct); + return Ke == null ? qt(null, null) : qt(Ke[f] + 1, Ke[x]); + }), + (e.eachMapping = (V, W) => { + let J = e.decodedMappings(V), + {names: re, resolvedSources: ve} = V; + for (let he = 0; he < J.length; he++) { + let Ie = J[he]; + for (let Ee = 0; Ee < Ie.length; Ee++) { + let Le = Ie[Ee], + Xe = he + 1, + We = Le[0], + Ke = null, + ut = null, + pt = null, + bt = null; + Le.length !== 1 && + ((Ke = ve[Le[1]]), (ut = Le[2] + 1), (pt = Le[3])), + Le.length === 5 && (bt = re[Le[4]]), + W({ + generatedLine: Xe, + generatedColumn: We, + source: Ke, + originalLine: ut, + originalColumn: pt, + name: bt, }); } } }), - (e.sourceContentFor = (I, D) => { - let {sources: j, resolvedSources: Y, sourcesContent: le} = I; - if (le == null) return null; - let Q = j.indexOf(D); - return Q === -1 && (Q = Y.indexOf(D)), Q === -1 ? null : le[Q]; + (e.sourceContentFor = (V, W) => { + let {sources: J, resolvedSources: re, sourcesContent: ve} = V; + if (ve == null) return null; + let he = J.indexOf(W); + return he === -1 && (he = re.indexOf(W)), he === -1 ? null : ve[he]; }), - (e.presortedDecodedMap = (I, D) => { - let j = new Ft(Vt(I, []), D); - return (j._decoded = I.mappings), j; + (e.presortedDecodedMap = (V, W) => { + let J = new wt($t(V, []), W); + return (J._decoded = V.mappings), J; }), - (e.decodedMap = (I) => Vt(I, e.decodedMappings(I))), - (e.encodedMap = (I) => Vt(I, e.encodedMappings(I))); - function Vt(I, D) { + (e.decodedMap = (V) => $t(V, e.decodedMappings(V))), + (e.encodedMap = (V) => $t(V, e.encodedMappings(V))); + function $t(V, W) { return { - version: I.version, - file: I.file, - names: I.names, - sourceRoot: I.sourceRoot, - sources: I.sources, - sourcesContent: I.sourcesContent, - mappings: D, + version: V.version, + file: V.file, + names: V.names, + sourceRoot: V.sourceRoot, + sources: V.sources, + sourcesContent: V.sourcesContent, + mappings: W, }; } - function $t(I, D, j, Y) { - return {source: I, line: D, column: j, name: Y}; + function Pt(V, W, J, re) { + return {source: V, line: W, column: J, name: re}; } - function Bt(I, D) { - return {line: I, column: D}; + function qt(V, W) { + return {line: V, column: W}; } - function on(I, D, j, Y, le) { - let Q = oe(I, Y, D, j); + function yn(V, W, J, re, ve) { + let he = ie(V, re, W, J); return ( - $ ? (Q = (le === Ze ? A : M)(I, Y, Q)) : le === Ze && Q++, - Q === -1 || Q === I.length ? null : I[Q] + D ? (he = (ve === _t ? M : z)(V, re, he)) : ve === _t && he++, + he === -1 || he === V.length ? null : V[he] ); } - (e.AnyMap = Fe), - (e.GREATEST_LOWER_BOUND = ut), - (e.LEAST_UPPER_BOUND = Ze), - (e.TraceMap = Ft), + (e.AnyMap = qe), + (e.GREATEST_LOWER_BOUND = ct), + (e.LEAST_UPPER_BOUND = _t), + (e.TraceMap = wt), Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var Hc = H((Wr, qc) => { + var B1 = Z((so, F1) => { (function (e, t) { - typeof Wr == 'object' && typeof qc < 'u' - ? t(Wr, Fc(), Zi(), Kc()) + typeof so == 'object' && typeof F1 < 'u' + ? t(so, R1(), ja(), M1()) : typeof define == 'function' && define.amd ? define( [ @@ -16257,7 +16262,7 @@ If you need interactivity, consider converting part of this to a Client Componen ) : ((e = typeof globalThis < 'u' ? globalThis : e || self), t((e.genMapping = {}), e.setArray, e.sourcemapCodec, e.traceMapping)); - })(Wr, function (e, t, n, o) { + })(so, function (e, t, s, i) { 'use strict'; (e.addSegment = void 0), (e.addMapping = void 0), @@ -16268,215 +16273,215 @@ If you need interactivity, consider converting part of this to a Client Componen (e.toEncodedMap = void 0), (e.fromMap = void 0), (e.allMappings = void 0); - let v; - class _ { - constructor({file: A, sourceRoot: M} = {}) { + let A; + class u { + constructor({file: M, sourceRoot: z} = {}) { (this._names = new t.SetArray()), (this._sources = new t.SetArray()), (this._sourcesContent = []), (this._mappings = []), - (this.file = A), - (this.sourceRoot = M); - } - } - (e.addSegment = (O, A, M, B, oe, ne, re, Le) => - v(!1, O, A, M, B, oe, ne, re, Le)), - (e.maybeAddSegment = (O, A, M, B, oe, ne, re, Le) => - v(!0, O, A, M, B, oe, ne, re, Le)), - (e.addMapping = (O, A) => $(!1, O, A)), - (e.maybeAddMapping = (O, A) => $(!0, O, A)), - (e.setSourceContent = (O, A, M) => { - let {_sources: B, _sourcesContent: oe} = O; - oe[t.put(B, A)] = M; + (this.file = M), + (this.sourceRoot = z); + } + } + (e.addSegment = (c, M, z, X, ie, pe, ae, He) => + A(!1, c, M, z, X, ie, pe, ae, He)), + (e.maybeAddSegment = (c, M, z, X, ie, pe, ae, He) => + A(!0, c, M, z, X, ie, pe, ae, He)), + (e.addMapping = (c, M) => D(!1, c, M)), + (e.maybeAddMapping = (c, M) => D(!0, c, M)), + (e.setSourceContent = (c, M, z) => { + let {_sources: X, _sourcesContent: ie} = c; + ie[t.put(X, M)] = z; }), - (e.toDecodedMap = (O) => { + (e.toDecodedMap = (c) => { let { - file: A, - sourceRoot: M, - _mappings: B, - _sources: oe, - _sourcesContent: ne, - _names: re, - } = O; + file: M, + sourceRoot: z, + _mappings: X, + _sources: ie, + _sourcesContent: pe, + _names: ae, + } = c; return ( - F(B), + S(X), { version: 3, - file: A || void 0, - names: re.array, - sourceRoot: M || void 0, - sources: oe.array, - sourcesContent: ne, - mappings: B, + file: M || void 0, + names: ae.array, + sourceRoot: z || void 0, + sources: ie.array, + sourcesContent: pe, + mappings: X, } ); }), - (e.toEncodedMap = (O) => { - let A = e.toDecodedMap(O); - return Object.assign(Object.assign({}, A), { - mappings: n.encode(A.mappings), + (e.toEncodedMap = (c) => { + let M = e.toDecodedMap(c); + return Object.assign(Object.assign({}, M), { + mappings: s.encode(M.mappings), }); }), - (e.allMappings = (O) => { - let A = [], - {_mappings: M, _sources: B, _names: oe} = O; - for (let ne = 0; ne < M.length; ne++) { - let re = M[ne]; - for (let Le = 0; Le < re.length; Le++) { - let Fe = re[Le], - mt = {line: ne + 1, column: Fe[0]}, + (e.allMappings = (c) => { + let M = [], + {_mappings: z, _sources: X, _names: ie} = c; + for (let pe = 0; pe < z.length; pe++) { + let ae = z[pe]; + for (let He = 0; He < ae.length; He++) { + let qe = ae[He], + Bt = {line: pe + 1, column: qe[0]}, + mt, kt, - Qe, - vt; - Fe.length !== 1 && - ((kt = B.array[Fe[1]]), - (Qe = {line: Fe[2] + 1, column: Fe[3]}), - Fe.length === 5 && (vt = oe.array[Fe[4]])), - A.push({generated: mt, source: kt, original: Qe, name: vt}); + At; + qe.length !== 1 && + ((mt = X.array[qe[1]]), + (kt = {line: qe[2] + 1, column: qe[3]}), + qe.length === 5 && (At = ie.array[qe[4]])), + M.push({generated: Bt, source: mt, original: kt, name: At}); } } - return A; + return M; }), - (e.fromMap = (O) => { - let A = new o.TraceMap(O), - M = new _({file: A.file, sourceRoot: A.sourceRoot}); + (e.fromMap = (c) => { + let M = new i.TraceMap(c), + z = new u({file: M.file, sourceRoot: M.sourceRoot}); return ( - K(M._names, A.names), - K(M._sources, A.sources), - (M._sourcesContent = A.sourcesContent || A.sources.map(() => null)), - (M._mappings = o.decodedMappings(A)), - M + E(z._names, M.names), + E(z._sources, M.sources), + (z._sourcesContent = M.sourcesContent || M.sources.map(() => null)), + (z._mappings = i.decodedMappings(M)), + z ); }), - (v = (O, A, M, B, oe, ne, re, Le, Fe) => { + (A = (c, M, z, X, ie, pe, ae, He, qe) => { let { - _mappings: mt, - _sources: kt, - _sourcesContent: Qe, - _names: vt, - } = A, - it = x(mt, M), - ct = L(it, B); - if (!oe) return O && R(it, ct) ? void 0 : G(it, ct, [B]); - let Ze = t.put(kt, oe), - ut = Le ? t.put(vt, Le) : -1; + _mappings: Bt, + _sources: mt, + _sourcesContent: kt, + _names: At, + } = M, + tt = f(Bt, z), + nt = x(tt, X); + if (!ie) return c && L(tt, nt) ? void 0 : g(tt, nt, [X]); + let _t = t.put(mt, ie), + ct = He ? t.put(At, He) : -1; if ( - (Ze === Qe.length && (Qe[Ze] = Fe ?? null), - !(O && z(it, ct, Ze, ne, re, ut))) + (_t === kt.length && (kt[_t] = qe ?? null), + !(c && H(tt, nt, _t, pe, ae, ct))) ) - return G(it, ct, Le ? [B, Ze, ne, re, ut] : [B, Ze, ne, re]); + return g(tt, nt, He ? [X, _t, pe, ae, ct] : [X, _t, pe, ae]); }); - function x(O, A) { - for (let M = O.length; M <= A; M++) O[M] = []; - return O[A]; - } - function L(O, A) { - let M = O.length; - for (let B = M - 1; B >= 0; M = B--) { - let oe = O[B]; - if (A >= oe[0]) break; - } - return M; - } - function G(O, A, M) { - for (let B = O.length; B > A; B--) O[B] = O[B - 1]; - O[A] = M; - } - function F(O) { - let {length: A} = O, - M = A; - for (let B = M - 1; B >= 0 && !(O[B].length > 0); M = B, B--); - M < A && (O.length = M); - } - function K(O, A) { - for (let M = 0; M < A.length; M++) t.put(O, A[M]); - } - function R(O, A) { - return A === 0 ? !0 : O[A - 1].length === 1; - } - function z(O, A, M, B, oe, ne) { - if (A === 0) return !1; - let re = O[A - 1]; - return re.length === 1 + function f(c, M) { + for (let z = c.length; z <= M; z++) c[z] = []; + return c[M]; + } + function x(c, M) { + let z = c.length; + for (let X = z - 1; X >= 0; z = X--) { + let ie = c[X]; + if (M >= ie[0]) break; + } + return z; + } + function g(c, M, z) { + for (let X = c.length; X > M; X--) c[X] = c[X - 1]; + c[M] = z; + } + function S(c) { + let {length: M} = c, + z = M; + for (let X = z - 1; X >= 0 && !(c[X].length > 0); z = X, X--); + z < M && (c.length = z); + } + function E(c, M) { + for (let z = 0; z < M.length; z++) t.put(c, M[z]); + } + function L(c, M) { + return M === 0 ? !0 : c[M - 1].length === 1; + } + function H(c, M, z, X, ie, pe) { + if (M === 0) return !1; + let ae = c[M - 1]; + return ae.length === 1 ? !1 - : M === re[1] && - B === re[2] && - oe === re[3] && - ne === (re.length === 5 ? re[4] : -1); - } - function $(O, A, M) { - let {generated: B, source: oe, original: ne, name: re, content: Le} = M; - if (!oe) - return v(O, A, B.line - 1, B.column, null, null, null, null, null); - let Fe = oe; - return v( - O, - A, - B.line - 1, - B.column, - Fe, - ne.line - 1, - ne.column, - re, - Le + : z === ae[1] && + X === ae[2] && + ie === ae[3] && + pe === (ae.length === 5 ? ae[4] : -1); + } + function D(c, M, z) { + let {generated: X, source: ie, original: pe, name: ae, content: He} = z; + if (!ie) + return A(c, M, X.line - 1, X.column, null, null, null, null, null); + let qe = ie; + return A( + c, + M, + X.line - 1, + X.column, + qe, + pe.line - 1, + pe.column, + ae, + He ); } - (e.GenMapping = _), Object.defineProperty(e, '__esModule', {value: !0}); + (e.GenMapping = u), Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var Wc = H((na) => { + var j1 = Z((Ka) => { 'use strict'; - Object.defineProperty(na, '__esModule', {value: !0}); - var qo = Hc(), - Uc = gt(); - function kT({code: e, mappings: t}, n, o, r, s) { - let i = vT(r, s), - a = new qo.GenMapping({file: o.compiledFilename}), - u = 0, - h = t[0]; - for (; h === void 0 && u < t.length - 1; ) u++, (h = t[u]); - let v = 0, - _ = 0; - h !== _ && qo.maybeAddSegment.call(void 0, a, v, 0, n, v, 0); - for (let F = 0; F < e.length; F++) { - if (F === h) { - let K = h - _, - R = i[u]; + Object.defineProperty(Ka, '__esModule', {value: !0}); + var Gi = B1(), + V1 = Qt(); + function uT({code: e, mappings: t}, s, i, r, a) { + let p = pT(r, a), + d = new Gi.GenMapping({file: i.compiledFilename}), + y = 0, + k = t[0]; + for (; k === void 0 && y < t.length - 1; ) y++, (k = t[y]); + let A = 0, + u = 0; + k !== u && Gi.maybeAddSegment.call(void 0, d, A, 0, s, A, 0); + for (let S = 0; S < e.length; S++) { + if (S === k) { + let E = k - u, + L = p[y]; for ( - qo.maybeAddSegment.call(void 0, a, v, K, n, v, R); - (h === F || h === void 0) && u < t.length - 1; + Gi.maybeAddSegment.call(void 0, d, A, E, s, A, L); + (k === S || k === void 0) && y < t.length - 1; ) - u++, (h = t[u]); + y++, (k = t[y]); } - e.charCodeAt(F) === Uc.charCodes.lineFeed && - (v++, - (_ = F + 1), - h !== _ && qo.maybeAddSegment.call(void 0, a, v, 0, n, v, 0)); + e.charCodeAt(S) === V1.charCodes.lineFeed && + (A++, + (u = S + 1), + k !== u && Gi.maybeAddSegment.call(void 0, d, A, 0, s, A, 0)); } let { - sourceRoot: x, - sourcesContent: L, - ...G - } = qo.toEncodedMap.call(void 0, a); - return G; - } - na.default = kT; - function vT(e, t) { - let n = new Array(t.length), - o = 0, - r = t[o].start, - s = 0; - for (let i = 0; i < e.length; i++) - i === r && ((n[o] = r - s), o++, (r = t[o].start)), - e.charCodeAt(i) === Uc.charCodes.lineFeed && (s = i + 1); - return n; + sourceRoot: f, + sourcesContent: x, + ...g + } = Gi.toEncodedMap.call(void 0, d); + return g; + } + Ka.default = uT; + function pT(e, t) { + let s = new Array(t.length), + i = 0, + r = t[i].start, + a = 0; + for (let p = 0; p < e.length; p++) + p === r && ((s[i] = r - a), i++, (r = t[i].start)), + e.charCodeAt(p) === V1.charCodes.lineFeed && (a = p + 1); + return s; } }); - var Vc = H((ra) => { + var $1 = Z((Ha) => { 'use strict'; - Object.defineProperty(ra, '__esModule', {value: !0}); - var _T = { + Object.defineProperty(Ha, '__esModule', {value: !0}); + var hT = { require: ` import {createRequire as CREATE_REQUIRE_NAME} from "module"; const require = CREATE_REQUIRE_NAME(import.meta.url); @@ -16598,7 +16603,7 @@ If you need interactivity, consider converting part of this to a Client Componen } `, }, - oa = class e { + Ua = class e { __init() { this.helperNames = {}; } @@ -16611,12 +16616,12 @@ If you need interactivity, consider converting part of this to a Client Componen e.prototype.__init2.call(this); } getHelperName(t) { - let n = this.helperNames[t]; + let s = this.helperNames[t]; return ( - n || - ((n = this.nameManager.claimFreeName(`_${t}`)), - (this.helperNames[t] = n), - n) + s || + ((s = this.nameManager.claimFreeName(`_${t}`)), + (this.helperNames[t] = s), + s) ); } emitHelpers() { @@ -16625,175 +16630,175 @@ If you need interactivity, consider converting part of this to a Client Componen this.getHelperName('optionalChain'), this.helperNames.asyncOptionalChainDelete && this.getHelperName('asyncOptionalChain'); - for (let [n, o] of Object.entries(_T)) { - let r = this.helperNames[n], - s = o; - n === 'optionalChainDelete' - ? (s = s.replace( + for (let [s, i] of Object.entries(hT)) { + let r = this.helperNames[s], + a = i; + s === 'optionalChainDelete' + ? (a = a.replace( 'OPTIONAL_CHAIN_NAME', this.helperNames.optionalChain )) - : n === 'asyncOptionalChainDelete' - ? (s = s.replace( + : s === 'asyncOptionalChainDelete' + ? (a = a.replace( 'ASYNC_OPTIONAL_CHAIN_NAME', this.helperNames.asyncOptionalChain )) - : n === 'require' && + : s === 'require' && (this.createRequireName === null && (this.createRequireName = this.nameManager.claimFreeName('_createRequire')), - (s = s.replace( + (a = a.replace( /CREATE_REQUIRE_NAME/g, this.createRequireName ))), r && ((t += ' '), - (t += s.replace(n, r).replace(/\s+/g, ' ').trim())); + (t += a.replace(s, r).replace(/\s+/g, ' ').trim())); } return t; } }; - ra.HelperManager = oa; + Ha.HelperManager = Ua; }); - var Yc = H((zr) => { + var U1 = Z((ro) => { 'use strict'; - Object.defineProperty(zr, '__esModule', {value: !0}); - var sa = Ve(), - Vr = ce(); - function xT(e, t, n) { - Xc(e, n) && gT(e, t, n); - } - zr.default = xT; - function Xc(e, t) { - for (let n of e.tokens) + Object.defineProperty(ro, '__esModule', {value: !0}); + var Wa = xt(), + io = be(); + function fT(e, t, s) { + K1(e, s) && dT(e, t, s); + } + ro.default = fT; + function K1(e, t) { + for (let s of e.tokens) if ( - n.type === Vr.TokenType.name && - sa.isNonTopLevelDeclaration.call(void 0, n) && - t.has(e.identifierNameForToken(n)) + s.type === io.TokenType.name && + Wa.isNonTopLevelDeclaration.call(void 0, s) && + t.has(e.identifierNameForToken(s)) ) return !0; return !1; } - zr.hasShadowedGlobals = Xc; - function gT(e, t, n) { - let o = [], + ro.hasShadowedGlobals = K1; + function dT(e, t, s) { + let i = [], r = t.length - 1; - for (let s = e.tokens.length - 1; ; s--) { - for (; o.length > 0 && o[o.length - 1].startTokenIndex === s + 1; ) - o.pop(); - for (; r >= 0 && t[r].endTokenIndex === s + 1; ) o.push(t[r]), r--; - if (s < 0) break; - let i = e.tokens[s], - a = e.identifierNameForToken(i); - if (o.length > 1 && i.type === Vr.TokenType.name && n.has(a)) { - if (sa.isBlockScopedDeclaration.call(void 0, i)) - zc(o[o.length - 1], e, a); - else if (sa.isFunctionScopedDeclaration.call(void 0, i)) { - let u = o.length - 1; - for (; u > 0 && !o[u].isFunctionScope; ) u--; - if (u < 0) throw new Error('Did not find parent function scope.'); - zc(o[u], e, a); + for (let a = e.tokens.length - 1; ; a--) { + for (; i.length > 0 && i[i.length - 1].startTokenIndex === a + 1; ) + i.pop(); + for (; r >= 0 && t[r].endTokenIndex === a + 1; ) i.push(t[r]), r--; + if (a < 0) break; + let p = e.tokens[a], + d = e.identifierNameForToken(p); + if (i.length > 1 && p.type === io.TokenType.name && s.has(d)) { + if (Wa.isBlockScopedDeclaration.call(void 0, p)) + q1(i[i.length - 1], e, d); + else if (Wa.isFunctionScopedDeclaration.call(void 0, p)) { + let y = i.length - 1; + for (; y > 0 && !i[y].isFunctionScope; ) y--; + if (y < 0) throw new Error('Did not find parent function scope.'); + q1(i[y], e, d); } } } - if (o.length > 0) + if (i.length > 0) throw new Error('Expected empty scope stack after processing file.'); } - function zc(e, t, n) { - for (let o = e.startTokenIndex; o < e.endTokenIndex; o++) { - let r = t.tokens[o]; - (r.type === Vr.TokenType.name || r.type === Vr.TokenType.jsxName) && - t.identifierNameForToken(r) === n && + function q1(e, t, s) { + for (let i = e.startTokenIndex; i < e.endTokenIndex; i++) { + let r = t.tokens[i]; + (r.type === io.TokenType.name || r.type === io.TokenType.jsxName) && + t.identifierNameForToken(r) === s && (r.shadowsGlobal = !0); } } }); - var Gc = H((ia) => { + var H1 = Z((Ga) => { 'use strict'; - Object.defineProperty(ia, '__esModule', {value: !0}); - var CT = ce(); - function wT(e, t) { - let n = []; - for (let o of t) - o.type === CT.TokenType.name && n.push(e.slice(o.start, o.end)); - return n; - } - ia.default = wT; + Object.defineProperty(Ga, '__esModule', {value: !0}); + var mT = be(); + function TT(e, t) { + let s = []; + for (let i of t) + i.type === mT.TokenType.name && s.push(e.slice(i.start, i.end)); + return s; + } + Ga.default = TT; }); - var Jc = H((la) => { + var W1 = Z((Xa) => { 'use strict'; - Object.defineProperty(la, '__esModule', {value: !0}); - function IT(e) { + Object.defineProperty(Xa, '__esModule', {value: !0}); + function yT(e) { return e && e.__esModule ? e : {default: e}; } - var ST = Gc(), - bT = IT(ST), - aa = class e { + var kT = H1(), + vT = yT(kT), + za = class e { __init() { this.usedNames = new Set(); } - constructor(t, n) { + constructor(t, s) { e.prototype.__init.call(this), - (this.usedNames = new Set(bT.default.call(void 0, t, n))); + (this.usedNames = new Set(vT.default.call(void 0, t, s))); } claimFreeName(t) { - let n = this.findFreeName(t); - return this.usedNames.add(n), n; + let s = this.findFreeName(t); + return this.usedNames.add(s), s; } findFreeName(t) { if (!this.usedNames.has(t)) return t; - let n = 2; - for (; this.usedNames.has(t + String(n)); ) n++; - return t + String(n); + let s = 2; + for (; this.usedNames.has(t + String(s)); ) s++; + return t + String(s); } }; - la.default = aa; + Xa.default = za; }); - var Xr = H((Qt) => { + var oo = Z((Pn) => { 'use strict'; - var ET = - (Qt && Qt.__extends) || + var xT = + (Pn && Pn.__extends) || (function () { - var e = function (t, n) { + var e = function (t, s) { return ( (e = Object.setPrototypeOf || ({__proto__: []} instanceof Array && - function (o, r) { - o.__proto__ = r; + function (i, r) { + i.__proto__ = r; }) || - function (o, r) { - for (var s in r) r.hasOwnProperty(s) && (o[s] = r[s]); + function (i, r) { + for (var a in r) r.hasOwnProperty(a) && (i[a] = r[a]); }), - e(t, n) + e(t, s) ); }; - return function (t, n) { - e(t, n); - function o() { + return function (t, s) { + e(t, s); + function i() { this.constructor = t; } t.prototype = - n === null - ? Object.create(n) - : ((o.prototype = n.prototype), new o()); + s === null + ? Object.create(s) + : ((i.prototype = s.prototype), new i()); }; })(); - Object.defineProperty(Qt, '__esModule', {value: !0}); - Qt.DetailContext = Qt.NoopContext = Qt.VError = void 0; - var Qc = (function (e) { - ET(t, e); - function t(n, o) { - var r = e.call(this, o) || this; - return (r.path = n), Object.setPrototypeOf(r, t.prototype), r; + Object.defineProperty(Pn, '__esModule', {value: !0}); + Pn.DetailContext = Pn.NoopContext = Pn.VError = void 0; + var G1 = (function (e) { + xT(t, e); + function t(s, i) { + var r = e.call(this, i) || this; + return (r.path = s), Object.setPrototypeOf(r, t.prototype), r; } return t; })(Error); - Qt.VError = Qc; - var AT = (function () { + Pn.VError = G1; + var gT = (function () { function e() {} return ( - (e.prototype.fail = function (t, n, o) { + (e.prototype.fail = function (t, s, i) { return !1; }), (e.prototype.unionResolver = function () { @@ -16806,404 +16811,404 @@ If you need interactivity, consider converting part of this to a Client Componen e ); })(); - Qt.NoopContext = AT; - var Zc = (function () { + Pn.NoopContext = gT; + var z1 = (function () { function e() { (this._propNames = ['']), (this._messages = [null]), (this._score = 0); } return ( - (e.prototype.fail = function (t, n, o) { + (e.prototype.fail = function (t, s, i) { return ( this._propNames.push(t), - this._messages.push(n), - (this._score += o), + this._messages.push(s), + (this._score += i), !1 ); }), (e.prototype.unionResolver = function () { - return new PT(); + return new _T(); }), (e.prototype.resolveUnion = function (t) { for ( - var n, o, r = t, s = null, i = 0, a = r.contexts; - i < a.length; - i++ + var s, i, r = t, a = null, p = 0, d = r.contexts; + p < d.length; + p++ ) { - var u = a[i]; - (!s || u._score >= s._score) && (s = u); + var y = d[p]; + (!a || y._score >= a._score) && (a = y); } - s && - s._score > 0 && - ((n = this._propNames).push.apply(n, s._propNames), - (o = this._messages).push.apply(o, s._messages)); + a && + a._score > 0 && + ((s = this._propNames).push.apply(s, a._propNames), + (i = this._messages).push.apply(i, a._messages)); }), (e.prototype.getError = function (t) { - for (var n = [], o = this._propNames.length - 1; o >= 0; o--) { - var r = this._propNames[o]; + for (var s = [], i = this._propNames.length - 1; i >= 0; i--) { + var r = this._propNames[i]; t += typeof r == 'number' ? '[' + r + ']' : r ? '.' + r : ''; - var s = this._messages[o]; - s && n.push(t + ' ' + s); + var a = this._messages[i]; + a && s.push(t + ' ' + a); } - return new Qc(t, n.join('; ')); + return new G1(t, s.join('; ')); }), (e.prototype.getErrorDetail = function (t) { - for (var n = [], o = this._propNames.length - 1; o >= 0; o--) { - var r = this._propNames[o]; + for (var s = [], i = this._propNames.length - 1; i >= 0; i--) { + var r = this._propNames[i]; t += typeof r == 'number' ? '[' + r + ']' : r ? '.' + r : ''; - var s = this._messages[o]; - s && n.push({path: t, message: s}); + var a = this._messages[i]; + a && s.push({path: t, message: a}); } - for (var i = null, o = n.length - 1; o >= 0; o--) - i && (n[o].nested = [i]), (i = n[o]); - return i; + for (var p = null, i = s.length - 1; i >= 0; i--) + p && (s[i].nested = [p]), (p = s[i]); + return p; }), e ); })(); - Qt.DetailContext = Zc; - var PT = (function () { + Pn.DetailContext = z1; + var _T = (function () { function e() { this.contexts = []; } return ( (e.prototype.createContext = function () { - var t = new Zc(); + var t = new z1(); return this.contexts.push(t), t; }), e ); })(); }); - var ya = H((X) => { + var sl = Z((ce) => { 'use strict'; - var St = - (X && X.__extends) || + var nn = + (ce && ce.__extends) || (function () { - var e = function (t, n) { + var e = function (t, s) { return ( (e = Object.setPrototypeOf || ({__proto__: []} instanceof Array && - function (o, r) { - o.__proto__ = r; + function (i, r) { + i.__proto__ = r; }) || - function (o, r) { - for (var s in r) r.hasOwnProperty(s) && (o[s] = r[s]); + function (i, r) { + for (var a in r) r.hasOwnProperty(a) && (i[a] = r[a]); }), - e(t, n) + e(t, s) ); }; - return function (t, n) { - e(t, n); - function o() { + return function (t, s) { + e(t, s); + function i() { this.constructor = t; } t.prototype = - n === null - ? Object.create(n) - : ((o.prototype = n.prototype), new o()); + s === null + ? Object.create(s) + : ((i.prototype = s.prototype), new i()); }; })(); - Object.defineProperty(X, '__esModule', {value: !0}); - X.basicTypes = - X.BasicType = - X.TParamList = - X.TParam = - X.param = - X.TFunc = - X.func = - X.TProp = - X.TOptional = - X.opt = - X.TIface = - X.iface = - X.TEnumLiteral = - X.enumlit = - X.TEnumType = - X.enumtype = - X.TIntersection = - X.intersection = - X.TUnion = - X.union = - X.TTuple = - X.tuple = - X.TArray = - X.array = - X.TLiteral = - X.lit = - X.TName = - X.name = - X.TType = + Object.defineProperty(ce, '__esModule', {value: !0}); + ce.basicTypes = + ce.BasicType = + ce.TParamList = + ce.TParam = + ce.param = + ce.TFunc = + ce.func = + ce.TProp = + ce.TOptional = + ce.opt = + ce.TIface = + ce.iface = + ce.TEnumLiteral = + ce.enumlit = + ce.TEnumType = + ce.enumtype = + ce.TIntersection = + ce.intersection = + ce.TUnion = + ce.union = + ce.TTuple = + ce.tuple = + ce.TArray = + ce.array = + ce.TLiteral = + ce.lit = + ce.TName = + ce.name = + ce.TType = void 0; - var nu = Xr(), - ht = (function () { + var J1 = oo(), + Ht = (function () { function e() {} return e; })(); - X.TType = ht; - function En(e) { - return typeof e == 'string' ? ou(e) : e; + ce.TType = Ht; + function ps(e) { + return typeof e == 'string' ? Q1(e) : e; } - function pa(e, t) { - var n = e[t]; - if (!n) throw new Error('Unknown type ' + t); - return n; + function Qa(e, t) { + var s = e[t]; + if (!s) throw new Error('Unknown type ' + t); + return s; } - function ou(e) { - return new da(e); + function Q1(e) { + return new Za(e); } - X.name = ou; - var da = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - return (o.name = n), (o._failMsg = 'is not a ' + n), o; + ce.name = Q1; + var Za = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + return (i.name = s), (i._failMsg = 'is not a ' + s), i; } return ( - (t.prototype.getChecker = function (n, o, r) { - var s = this, - i = pa(n, this.name), - a = i.getChecker(n, o, r); - return i instanceof ot || i instanceof t - ? a - : function (u, h) { - return a(u, h) ? !0 : h.fail(null, s._failMsg, 0); + (t.prototype.getChecker = function (s, i, r) { + var a = this, + p = Qa(s, this.name), + d = p.getChecker(s, i, r); + return p instanceof Dt || p instanceof t + ? d + : function (y, k) { + return d(y, k) ? !0 : k.fail(null, a._failMsg, 0); }; }), t ); - })(ht); - X.TName = da; - function RT(e) { - return new fa(e); - } - X.lit = RT; - var fa = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; + })(Ht); + ce.TName = Za; + function bT(e) { + return new el(e); + } + ce.lit = bT; + var el = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; return ( - (o.value = n), - (o.name = JSON.stringify(n)), - (o._failMsg = 'is not ' + o.name), - o + (i.value = s), + (i.name = JSON.stringify(s)), + (i._failMsg = 'is not ' + i.name), + i ); } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = this; - return function (s, i) { - return s === r.value ? !0 : i.fail(null, r._failMsg, -1); + return function (a, p) { + return a === r.value ? !0 : p.fail(null, r._failMsg, -1); }; }), t ); - })(ht); - X.TLiteral = fa; - function NT(e) { - return new ru(En(e)); - } - X.array = NT; - var ru = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - return (o.ttype = n), o; + })(Ht); + ce.TLiteral = el; + function CT(e) { + return new Z1(ps(e)); + } + ce.array = CT; + var Z1 = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + return (i.ttype = s), i; } return ( - (t.prototype.getChecker = function (n, o) { - var r = this.ttype.getChecker(n, o); - return function (s, i) { - if (!Array.isArray(s)) return i.fail(null, 'is not an array', 0); - for (var a = 0; a < s.length; a++) { - var u = r(s[a], i); - if (!u) return i.fail(a, null, 1); + (t.prototype.getChecker = function (s, i) { + var r = this.ttype.getChecker(s, i); + return function (a, p) { + if (!Array.isArray(a)) return p.fail(null, 'is not an array', 0); + for (var d = 0; d < a.length; d++) { + var y = r(a[d], p); + if (!y) return p.fail(d, null, 1); } return !0; }; }), t ); - })(ht); - X.TArray = ru; - function DT() { + })(Ht); + ce.TArray = Z1; + function wT() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - return new su( - e.map(function (n) { - return En(n); + return new ep( + e.map(function (s) { + return ps(s); }) ); } - X.tuple = DT; - var su = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - return (o.ttypes = n), o; + ce.tuple = wT; + var ep = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + return (i.ttypes = s), i; } return ( - (t.prototype.getChecker = function (n, o) { - var r = this.ttypes.map(function (i) { - return i.getChecker(n, o); + (t.prototype.getChecker = function (s, i) { + var r = this.ttypes.map(function (p) { + return p.getChecker(s, i); }), - s = function (i, a) { - if (!Array.isArray(i)) return a.fail(null, 'is not an array', 0); - for (var u = 0; u < r.length; u++) { - var h = r[u](i[u], a); - if (!h) return a.fail(u, null, 1); + a = function (p, d) { + if (!Array.isArray(p)) return d.fail(null, 'is not an array', 0); + for (var y = 0; y < r.length; y++) { + var k = r[y](p[y], d); + if (!k) return d.fail(y, null, 1); } return !0; }; - return o - ? function (i, a) { - return s(i, a) - ? i.length <= r.length + return i + ? function (p, d) { + return a(p, d) + ? p.length <= r.length ? !0 - : a.fail(r.length, 'is extraneous', 2) + : d.fail(r.length, 'is extraneous', 2) : !1; } - : s; + : a; }), t ); - })(ht); - X.TTuple = su; - function OT() { + })(Ht); + ce.TTuple = ep; + function ST() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - return new iu( - e.map(function (n) { - return En(n); + return new tp( + e.map(function (s) { + return ps(s); }) ); } - X.union = OT; - var iu = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - o.ttypes = n; - var r = n - .map(function (i) { - return i instanceof da || i instanceof fa ? i.name : null; + ce.union = ST; + var tp = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + i.ttypes = s; + var r = s + .map(function (p) { + return p instanceof Za || p instanceof el ? p.name : null; }) - .filter(function (i) { - return i; + .filter(function (p) { + return p; }), - s = n.length - r.length; + a = s.length - r.length; return ( r.length - ? (s > 0 && r.push(s + ' more'), - (o._failMsg = 'is none of ' + r.join(', '))) - : (o._failMsg = 'is none of ' + s + ' types'), - o + ? (a > 0 && r.push(a + ' more'), + (i._failMsg = 'is none of ' + r.join(', '))) + : (i._failMsg = 'is none of ' + a + ' types'), + i ); } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = this, - s = this.ttypes.map(function (i) { - return i.getChecker(n, o); + a = this.ttypes.map(function (p) { + return p.getChecker(s, i); }); - return function (i, a) { - for (var u = a.unionResolver(), h = 0; h < s.length; h++) { - var v = s[h](i, u.createContext()); - if (v) return !0; + return function (p, d) { + for (var y = d.unionResolver(), k = 0; k < a.length; k++) { + var A = a[k](p, y.createContext()); + if (A) return !0; } - return a.resolveUnion(u), a.fail(null, r._failMsg, 0); + return d.resolveUnion(y), d.fail(null, r._failMsg, 0); }; }), t ); - })(ht); - X.TUnion = iu; - function MT() { + })(Ht); + ce.TUnion = tp; + function IT() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - return new au( - e.map(function (n) { - return En(n); + return new np( + e.map(function (s) { + return ps(s); }) ); } - X.intersection = MT; - var au = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - return (o.ttypes = n), o; + ce.intersection = IT; + var np = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + return (i.ttypes = s), i; } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = new Set(), - s = this.ttypes.map(function (i) { - return i.getChecker(n, o, r); + a = this.ttypes.map(function (p) { + return p.getChecker(s, i, r); }); - return function (i, a) { - var u = s.every(function (h) { - return h(i, a); + return function (p, d) { + var y = a.every(function (k) { + return k(p, d); }); - return u ? !0 : a.fail(null, null, 0); + return y ? !0 : d.fail(null, null, 0); }; }), t ); - })(ht); - X.TIntersection = au; - function LT(e) { - return new ha(e); - } - X.enumtype = LT; - var ha = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; + })(Ht); + ce.TIntersection = np; + function ET(e) { + return new tl(e); + } + ce.enumtype = ET; + var tl = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; return ( - (o.members = n), - (o.validValues = new Set()), - (o._failMsg = 'is not a valid enum value'), - (o.validValues = new Set( - Object.keys(n).map(function (r) { - return n[r]; + (i.members = s), + (i.validValues = new Set()), + (i._failMsg = 'is not a valid enum value'), + (i.validValues = new Set( + Object.keys(s).map(function (r) { + return s[r]; }) )), - o + i ); } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = this; - return function (s, i) { - return r.validValues.has(s) ? !0 : i.fail(null, r._failMsg, 0); + return function (a, p) { + return r.validValues.has(a) ? !0 : p.fail(null, r._failMsg, 0); }; }), t ); - })(ht); - X.TEnumType = ha; - function FT(e, t) { - return new lu(e, t); - } - X.enumlit = FT; - var lu = (function (e) { - St(t, e); - function t(n, o) { + })(Ht); + ce.TEnumType = tl; + function AT(e, t) { + return new sp(e, t); + } + ce.enumlit = AT; + var sp = (function (e) { + nn(t, e); + function t(s, i) { var r = e.call(this) || this; return ( - (r.enumName = n), - (r.prop = o), - (r._failMsg = 'is not ' + n + '.' + o), + (r.enumName = s), + (r.prop = i), + (r._failMsg = 'is not ' + s + '.' + i), r ); } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = this, - s = pa(n, this.enumName); - if (!(s instanceof ha)) + a = Qa(s, this.enumName); + if (!(a instanceof tl)) throw new Error( 'Type ' + this.enumName + ' used in enumlit is not an enum type' ); - var i = s.members[this.prop]; - if (!s.members.hasOwnProperty(this.prop)) + var p = a.members[this.prop]; + if (!a.members.hasOwnProperty(this.prop)) throw new Error( 'Unknown value ' + this.enumName + @@ -17211,265 +17216,265 @@ If you need interactivity, consider converting part of this to a Client Componen this.prop + ' used in enumlit' ); - return function (a, u) { - return a === i ? !0 : u.fail(null, r._failMsg, -1); + return function (d, y) { + return d === p ? !0 : y.fail(null, r._failMsg, -1); }; }), t ); - })(ht); - X.TEnumLiteral = lu; - function $T(e) { + })(Ht); + ce.TEnumLiteral = sp; + function PT(e) { return Object.keys(e).map(function (t) { - return BT(t, e[t]); + return NT(t, e[t]); }); } - function BT(e, t) { - return t instanceof Ta ? new ua(e, t.ttype, !0) : new ua(e, En(t), !1); + function NT(e, t) { + return t instanceof nl ? new Ja(e, t.ttype, !0) : new Ja(e, ps(t), !1); } - function jT(e, t) { - return new cu(e, $T(t)); + function RT(e, t) { + return new ip(e, PT(t)); } - X.iface = jT; - var cu = (function (e) { - St(t, e); - function t(n, o) { + ce.iface = RT; + var ip = (function (e) { + nn(t, e); + function t(s, i) { var r = e.call(this) || this; return ( - (r.bases = n), - (r.props = o), + (r.bases = s), + (r.props = i), (r.propSet = new Set( - o.map(function (s) { - return s.name; + i.map(function (a) { + return a.name; }) )), r ); } return ( - (t.prototype.getChecker = function (n, o, r) { - var s = this, - i = this.bases.map(function (x) { - return pa(n, x).getChecker(n, o); + (t.prototype.getChecker = function (s, i, r) { + var a = this, + p = this.bases.map(function (f) { + return Qa(s, f).getChecker(s, i); }), - a = this.props.map(function (x) { - return x.ttype.getChecker(n, o); + d = this.props.map(function (f) { + return f.ttype.getChecker(s, i); }), - u = new nu.NoopContext(), - h = this.props.map(function (x, L) { - return !x.isOpt && !a[L](void 0, u); + y = new J1.NoopContext(), + k = this.props.map(function (f, x) { + return !f.isOpt && !d[x](void 0, y); }), - v = function (x, L) { - if (typeof x != 'object' || x === null) - return L.fail(null, 'is not an object', 0); - for (var G = 0; G < i.length; G++) if (!i[G](x, L)) return !1; - for (var G = 0; G < a.length; G++) { - var F = s.props[G].name, - K = x[F]; - if (K === void 0) { - if (h[G]) return L.fail(F, 'is missing', 1); + A = function (f, x) { + if (typeof f != 'object' || f === null) + return x.fail(null, 'is not an object', 0); + for (var g = 0; g < p.length; g++) if (!p[g](f, x)) return !1; + for (var g = 0; g < d.length; g++) { + var S = a.props[g].name, + E = f[S]; + if (E === void 0) { + if (k[g]) return x.fail(S, 'is missing', 1); } else { - var R = a[G](K, L); - if (!R) return L.fail(F, null, 1); + var L = d[g](E, x); + if (!L) return x.fail(S, null, 1); } } return !0; }; - if (!o) return v; - var _ = this.propSet; + if (!i) return A; + var u = this.propSet; return ( r && - (this.propSet.forEach(function (x) { - return r.add(x); + (this.propSet.forEach(function (f) { + return r.add(f); }), - (_ = r)), - function (x, L) { - if (!v(x, L)) return !1; - for (var G in x) - if (!_.has(G)) return L.fail(G, 'is extraneous', 2); + (u = r)), + function (f, x) { + if (!A(f, x)) return !1; + for (var g in f) + if (!u.has(g)) return x.fail(g, 'is extraneous', 2); return !0; } ); }), t ); - })(ht); - X.TIface = cu; - function KT(e) { - return new Ta(En(e)); - } - X.opt = KT; - var Ta = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - return (o.ttype = n), o; + })(Ht); + ce.TIface = ip; + function LT(e) { + return new nl(ps(e)); + } + ce.opt = LT; + var nl = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + return (i.ttype = s), i; } return ( - (t.prototype.getChecker = function (n, o) { - var r = this.ttype.getChecker(n, o); - return function (s, i) { - return s === void 0 || r(s, i); + (t.prototype.getChecker = function (s, i) { + var r = this.ttype.getChecker(s, i); + return function (a, p) { + return a === void 0 || r(a, p); }; }), t ); - })(ht); - X.TOptional = Ta; - var ua = (function () { - function e(t, n, o) { - (this.name = t), (this.ttype = n), (this.isOpt = o); + })(Ht); + ce.TOptional = nl; + var Ja = (function () { + function e(t, s, i) { + (this.name = t), (this.ttype = s), (this.isOpt = i); } return e; })(); - X.TProp = ua; - function qT(e) { - for (var t = [], n = 1; n < arguments.length; n++) - t[n - 1] = arguments[n]; - return new uu(new du(t), En(e)); - } - X.func = qT; - var uu = (function (e) { - St(t, e); - function t(n, o) { + ce.TProp = Ja; + function OT(e) { + for (var t = [], s = 1; s < arguments.length; s++) + t[s - 1] = arguments[s]; + return new rp(new ap(t), ps(e)); + } + ce.func = OT; + var rp = (function (e) { + nn(t, e); + function t(s, i) { var r = e.call(this) || this; - return (r.paramList = n), (r.result = o), r; + return (r.paramList = s), (r.result = i), r; } return ( - (t.prototype.getChecker = function (n, o) { - return function (r, s) { + (t.prototype.getChecker = function (s, i) { + return function (r, a) { return typeof r == 'function' ? !0 - : s.fail(null, 'is not a function', 0); + : a.fail(null, 'is not a function', 0); }; }), t ); - })(ht); - X.TFunc = uu; - function HT(e, t, n) { - return new pu(e, En(t), !!n); + })(Ht); + ce.TFunc = rp; + function DT(e, t, s) { + return new op(e, ps(t), !!s); } - X.param = HT; - var pu = (function () { - function e(t, n, o) { - (this.name = t), (this.ttype = n), (this.isOpt = o); + ce.param = DT; + var op = (function () { + function e(t, s, i) { + (this.name = t), (this.ttype = s), (this.isOpt = i); } return e; })(); - X.TParam = pu; - var du = (function (e) { - St(t, e); - function t(n) { - var o = e.call(this) || this; - return (o.params = n), o; + ce.TParam = op; + var ap = (function (e) { + nn(t, e); + function t(s) { + var i = e.call(this) || this; + return (i.params = s), i; } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = this, - s = this.params.map(function (h) { - return h.ttype.getChecker(n, o); + a = this.params.map(function (k) { + return k.ttype.getChecker(s, i); }), - i = new nu.NoopContext(), - a = this.params.map(function (h, v) { - return !h.isOpt && !s[v](void 0, i); + p = new J1.NoopContext(), + d = this.params.map(function (k, A) { + return !k.isOpt && !a[A](void 0, p); }), - u = function (h, v) { - if (!Array.isArray(h)) return v.fail(null, 'is not an array', 0); - for (var _ = 0; _ < s.length; _++) { - var x = r.params[_]; - if (h[_] === void 0) { - if (a[_]) return v.fail(x.name, 'is missing', 1); + y = function (k, A) { + if (!Array.isArray(k)) return A.fail(null, 'is not an array', 0); + for (var u = 0; u < a.length; u++) { + var f = r.params[u]; + if (k[u] === void 0) { + if (d[u]) return A.fail(f.name, 'is missing', 1); } else { - var L = s[_](h[_], v); - if (!L) return v.fail(x.name, null, 1); + var x = a[u](k[u], A); + if (!x) return A.fail(f.name, null, 1); } } return !0; }; - return o - ? function (h, v) { - return u(h, v) - ? h.length <= s.length + return i + ? function (k, A) { + return y(k, A) + ? k.length <= a.length ? !0 - : v.fail(s.length, 'is extraneous', 2) + : A.fail(a.length, 'is extraneous', 2) : !1; } - : u; + : y; }), t ); - })(ht); - X.TParamList = du; - var ot = (function (e) { - St(t, e); - function t(n, o) { + })(Ht); + ce.TParamList = ap; + var Dt = (function (e) { + nn(t, e); + function t(s, i) { var r = e.call(this) || this; - return (r.validator = n), (r.message = o), r; + return (r.validator = s), (r.message = i), r; } return ( - (t.prototype.getChecker = function (n, o) { + (t.prototype.getChecker = function (s, i) { var r = this; - return function (s, i) { - return r.validator(s) ? !0 : i.fail(null, r.message, 0); + return function (a, p) { + return r.validator(a) ? !0 : p.fail(null, r.message, 0); }; }), t ); - })(ht); - X.BasicType = ot; - X.basicTypes = { - any: new ot(function (e) { + })(Ht); + ce.BasicType = Dt; + ce.basicTypes = { + any: new Dt(function (e) { return !0; }, 'is invalid'), - number: new ot(function (e) { + number: new Dt(function (e) { return typeof e == 'number'; }, 'is not a number'), - object: new ot(function (e) { + object: new Dt(function (e) { return typeof e == 'object' && e; }, 'is not an object'), - boolean: new ot(function (e) { + boolean: new Dt(function (e) { return typeof e == 'boolean'; }, 'is not a boolean'), - string: new ot(function (e) { + string: new Dt(function (e) { return typeof e == 'string'; }, 'is not a string'), - symbol: new ot(function (e) { + symbol: new Dt(function (e) { return typeof e == 'symbol'; }, 'is not a symbol'), - void: new ot(function (e) { + void: new Dt(function (e) { return e == null; }, 'is not void'), - undefined: new ot(function (e) { + undefined: new Dt(function (e) { return e === void 0; }, 'is not undefined'), - null: new ot(function (e) { + null: new Dt(function (e) { return e === null; }, 'is not null'), - never: new ot(function (e) { + never: new Dt(function (e) { return !1; }, 'is unexpected'), - Date: new ot(eu('[object Date]'), 'is not a Date'), - RegExp: new ot(eu('[object RegExp]'), 'is not a RegExp'), + Date: new Dt(X1('[object Date]'), 'is not a Date'), + RegExp: new Dt(X1('[object RegExp]'), 'is not a RegExp'), }; - var UT = Object.prototype.toString; - function eu(e) { + var MT = Object.prototype.toString; + function X1(e) { return function (t) { - return typeof t == 'object' && t && UT.call(t) === e; + return typeof t == 'object' && t && MT.call(t) === e; }; } typeof Buffer < 'u' && - (X.basicTypes.Buffer = new ot(function (e) { + (ce.basicTypes.Buffer = new Dt(function (e) { return Buffer.isBuffer(e); }, 'is not a Buffer')); - var WT = function (e) { - X.basicTypes[e.name] = new ot(function (t) { + var FT = function (e) { + ce.basicTypes[e.name] = new Dt(function (t) { return t instanceof e; }, 'is not a ' + e.name); }; for ( - Yr = 0, - ca = [ + ao = 0, + Ya = [ Int8Array, Uint8Array, Uint8ClampedArray, @@ -17481,234 +17486,234 @@ If you need interactivity, consider converting part of this to a Client Componen Float64Array, ArrayBuffer, ]; - Yr < ca.length; - Yr++ + ao < Ya.length; + ao++ ) - (tu = ca[Yr]), WT(tu); - var tu, Yr, ca; + (Y1 = Ya[ao]), FT(Y1); + var Y1, ao, Ya; }); - var ma = H((pe) => { + var il = Z((we) => { 'use strict'; - var VT = - (pe && pe.__spreadArrays) || + var BT = + (we && we.__spreadArrays) || function () { - for (var e = 0, t = 0, n = arguments.length; t < n; t++) + for (var e = 0, t = 0, s = arguments.length; t < s; t++) e += arguments[t].length; - for (var o = Array(e), r = 0, t = 0; t < n; t++) - for (var s = arguments[t], i = 0, a = s.length; i < a; i++, r++) - o[r] = s[i]; - return o; + for (var i = Array(e), r = 0, t = 0; t < s; t++) + for (var a = arguments[t], p = 0, d = a.length; p < d; p++, r++) + i[r] = a[p]; + return i; }; - Object.defineProperty(pe, '__esModule', {value: !0}); - pe.Checker = pe.createCheckers = void 0; - var Ho = ya(), - yo = Xr(), - be = ya(); - Object.defineProperty(pe, 'TArray', { + Object.defineProperty(we, '__esModule', {value: !0}); + we.Checker = we.createCheckers = void 0; + var zi = sl(), + pi = oo(), + ze = sl(); + Object.defineProperty(we, 'TArray', { enumerable: !0, get: function () { - return be.TArray; + return ze.TArray; }, }); - Object.defineProperty(pe, 'TEnumType', { + Object.defineProperty(we, 'TEnumType', { enumerable: !0, get: function () { - return be.TEnumType; + return ze.TEnumType; }, }); - Object.defineProperty(pe, 'TEnumLiteral', { + Object.defineProperty(we, 'TEnumLiteral', { enumerable: !0, get: function () { - return be.TEnumLiteral; + return ze.TEnumLiteral; }, }); - Object.defineProperty(pe, 'TFunc', { + Object.defineProperty(we, 'TFunc', { enumerable: !0, get: function () { - return be.TFunc; + return ze.TFunc; }, }); - Object.defineProperty(pe, 'TIface', { + Object.defineProperty(we, 'TIface', { enumerable: !0, get: function () { - return be.TIface; + return ze.TIface; }, }); - Object.defineProperty(pe, 'TLiteral', { + Object.defineProperty(we, 'TLiteral', { enumerable: !0, get: function () { - return be.TLiteral; + return ze.TLiteral; }, }); - Object.defineProperty(pe, 'TName', { + Object.defineProperty(we, 'TName', { enumerable: !0, get: function () { - return be.TName; + return ze.TName; }, }); - Object.defineProperty(pe, 'TOptional', { + Object.defineProperty(we, 'TOptional', { enumerable: !0, get: function () { - return be.TOptional; + return ze.TOptional; }, }); - Object.defineProperty(pe, 'TParam', { + Object.defineProperty(we, 'TParam', { enumerable: !0, get: function () { - return be.TParam; + return ze.TParam; }, }); - Object.defineProperty(pe, 'TParamList', { + Object.defineProperty(we, 'TParamList', { enumerable: !0, get: function () { - return be.TParamList; + return ze.TParamList; }, }); - Object.defineProperty(pe, 'TProp', { + Object.defineProperty(we, 'TProp', { enumerable: !0, get: function () { - return be.TProp; + return ze.TProp; }, }); - Object.defineProperty(pe, 'TTuple', { + Object.defineProperty(we, 'TTuple', { enumerable: !0, get: function () { - return be.TTuple; + return ze.TTuple; }, }); - Object.defineProperty(pe, 'TType', { + Object.defineProperty(we, 'TType', { enumerable: !0, get: function () { - return be.TType; + return ze.TType; }, }); - Object.defineProperty(pe, 'TUnion', { + Object.defineProperty(we, 'TUnion', { enumerable: !0, get: function () { - return be.TUnion; + return ze.TUnion; }, }); - Object.defineProperty(pe, 'TIntersection', { + Object.defineProperty(we, 'TIntersection', { enumerable: !0, get: function () { - return be.TIntersection; + return ze.TIntersection; }, }); - Object.defineProperty(pe, 'array', { + Object.defineProperty(we, 'array', { enumerable: !0, get: function () { - return be.array; + return ze.array; }, }); - Object.defineProperty(pe, 'enumlit', { + Object.defineProperty(we, 'enumlit', { enumerable: !0, get: function () { - return be.enumlit; + return ze.enumlit; }, }); - Object.defineProperty(pe, 'enumtype', { + Object.defineProperty(we, 'enumtype', { enumerable: !0, get: function () { - return be.enumtype; + return ze.enumtype; }, }); - Object.defineProperty(pe, 'func', { + Object.defineProperty(we, 'func', { enumerable: !0, get: function () { - return be.func; + return ze.func; }, }); - Object.defineProperty(pe, 'iface', { + Object.defineProperty(we, 'iface', { enumerable: !0, get: function () { - return be.iface; + return ze.iface; }, }); - Object.defineProperty(pe, 'lit', { + Object.defineProperty(we, 'lit', { enumerable: !0, get: function () { - return be.lit; + return ze.lit; }, }); - Object.defineProperty(pe, 'name', { + Object.defineProperty(we, 'name', { enumerable: !0, get: function () { - return be.name; + return ze.name; }, }); - Object.defineProperty(pe, 'opt', { + Object.defineProperty(we, 'opt', { enumerable: !0, get: function () { - return be.opt; + return ze.opt; }, }); - Object.defineProperty(pe, 'param', { + Object.defineProperty(we, 'param', { enumerable: !0, get: function () { - return be.param; + return ze.param; }, }); - Object.defineProperty(pe, 'tuple', { + Object.defineProperty(we, 'tuple', { enumerable: !0, get: function () { - return be.tuple; + return ze.tuple; }, }); - Object.defineProperty(pe, 'union', { + Object.defineProperty(we, 'union', { enumerable: !0, get: function () { - return be.union; + return ze.union; }, }); - Object.defineProperty(pe, 'intersection', { + Object.defineProperty(we, 'intersection', { enumerable: !0, get: function () { - return be.intersection; + return ze.intersection; }, }); - Object.defineProperty(pe, 'BasicType', { + Object.defineProperty(we, 'BasicType', { enumerable: !0, get: function () { - return be.BasicType; + return ze.BasicType; }, }); - var zT = Xr(); - Object.defineProperty(pe, 'VError', { + var VT = oo(); + Object.defineProperty(we, 'VError', { enumerable: !0, get: function () { - return zT.VError; + return VT.VError; }, }); - function XT() { + function jT() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; for ( - var n = Object.assign.apply(Object, VT([{}, Ho.basicTypes], e)), - o = {}, + var s = Object.assign.apply(Object, BT([{}, zi.basicTypes], e)), + i = {}, r = 0, - s = e; - r < s.length; + a = e; + r < a.length; r++ ) - for (var i = s[r], a = 0, u = Object.keys(i); a < u.length; a++) { - var h = u[a]; - o[h] = new fu(n, i[h]); + for (var p = a[r], d = 0, y = Object.keys(p); d < y.length; d++) { + var k = y[d]; + i[k] = new lp(s, p[k]); } - return o; + return i; } - pe.createCheckers = XT; - var fu = (function () { - function e(t, n, o) { + we.createCheckers = jT; + var lp = (function () { + function e(t, s, i) { if ( - (o === void 0 && (o = 'value'), + (i === void 0 && (i = 'value'), (this.suite = t), - (this.ttype = n), - (this._path = o), + (this.ttype = s), + (this._path = i), (this.props = new Map()), - n instanceof Ho.TIface) + s instanceof zi.TIface) ) - for (var r = 0, s = n.props; r < s.length; r++) { - var i = s[r]; - this.props.set(i.name, i.ttype); + for (var r = 0, a = s.props; r < a.length; r++) { + var p = a[r]; + this.props.set(p.name, p.ttype); } (this.checkerPlain = this.ttype.getChecker(t, !1)), (this.checkerStrict = this.ttype.getChecker(t, !0)); @@ -17721,7 +17726,7 @@ If you need interactivity, consider converting part of this to a Client Componen return this._doCheck(this.checkerPlain, t); }), (e.prototype.test = function (t) { - return this.checkerPlain(t, new yo.NoopContext()); + return this.checkerPlain(t, new pi.NoopContext()); }), (e.prototype.validate = function (t) { return this._doValidate(this.checkerPlain, t); @@ -17730,323 +17735,323 @@ If you need interactivity, consider converting part of this to a Client Componen return this._doCheck(this.checkerStrict, t); }), (e.prototype.strictTest = function (t) { - return this.checkerStrict(t, new yo.NoopContext()); + return this.checkerStrict(t, new pi.NoopContext()); }), (e.prototype.strictValidate = function (t) { return this._doValidate(this.checkerStrict, t); }), (e.prototype.getProp = function (t) { - var n = this.props.get(t); - if (!n) throw new Error('Type has no property ' + t); - return new e(this.suite, n, this._path + '.' + t); + var s = this.props.get(t); + if (!s) throw new Error('Type has no property ' + t); + return new e(this.suite, s, this._path + '.' + t); }), (e.prototype.methodArgs = function (t) { - var n = this._getMethod(t); - return new e(this.suite, n.paramList); + var s = this._getMethod(t); + return new e(this.suite, s.paramList); }), (e.prototype.methodResult = function (t) { - var n = this._getMethod(t); - return new e(this.suite, n.result); + var s = this._getMethod(t); + return new e(this.suite, s.result); }), (e.prototype.getArgs = function () { - if (!(this.ttype instanceof Ho.TFunc)) + if (!(this.ttype instanceof zi.TFunc)) throw new Error('getArgs() applied to non-function'); return new e(this.suite, this.ttype.paramList); }), (e.prototype.getResult = function () { - if (!(this.ttype instanceof Ho.TFunc)) + if (!(this.ttype instanceof zi.TFunc)) throw new Error('getResult() applied to non-function'); return new e(this.suite, this.ttype.result); }), (e.prototype.getType = function () { return this.ttype; }), - (e.prototype._doCheck = function (t, n) { - var o = new yo.NoopContext(); - if (!t(n, o)) { - var r = new yo.DetailContext(); - throw (t(n, r), r.getError(this._path)); + (e.prototype._doCheck = function (t, s) { + var i = new pi.NoopContext(); + if (!t(s, i)) { + var r = new pi.DetailContext(); + throw (t(s, r), r.getError(this._path)); } }), - (e.prototype._doValidate = function (t, n) { - var o = new yo.NoopContext(); - if (t(n, o)) return null; - var r = new yo.DetailContext(); - return t(n, r), r.getErrorDetail(this._path); + (e.prototype._doValidate = function (t, s) { + var i = new pi.NoopContext(); + if (t(s, i)) return null; + var r = new pi.DetailContext(); + return t(s, r), r.getErrorDetail(this._path); }), (e.prototype._getMethod = function (t) { - var n = this.props.get(t); - if (!n) throw new Error('Type has no property ' + t); - if (!(n instanceof Ho.TFunc)) + var s = this.props.get(t); + if (!s) throw new Error('Type has no property ' + t); + if (!(s instanceof zi.TFunc)) throw new Error('Property ' + t + ' is not a method'); - return n; + return s; }), e ); })(); - pe.Checker = fu; + we.Checker = lp; }); - var hu = H((dn) => { + var cp = Z((Gn) => { 'use strict'; - Object.defineProperty(dn, '__esModule', {value: !0}); - function YT(e) { + Object.defineProperty(Gn, '__esModule', {value: !0}); + function $T(e) { if (e && e.__esModule) return e; var t = {}; if (e != null) - for (var n in e) - Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); + for (var s in e) + Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]); return (t.default = e), t; } - var GT = ma(), - Pe = YT(GT), - JT = Pe.union( - Pe.lit('jsx'), - Pe.lit('typescript'), - Pe.lit('flow'), - Pe.lit('imports'), - Pe.lit('react-hot-loader'), - Pe.lit('jest') + var qT = il(), + Qe = $T(qT), + KT = Qe.union( + Qe.lit('jsx'), + Qe.lit('typescript'), + Qe.lit('flow'), + Qe.lit('imports'), + Qe.lit('react-hot-loader'), + Qe.lit('jest') ); - dn.Transform = JT; - var QT = Pe.iface([], {compiledFilename: 'string'}); - dn.SourceMapOptions = QT; - var ZT = Pe.iface([], { - transforms: Pe.array('Transform'), - disableESTransforms: Pe.opt('boolean'), - jsxRuntime: Pe.opt( - Pe.union(Pe.lit('classic'), Pe.lit('automatic'), Pe.lit('preserve')) + Gn.Transform = KT; + var UT = Qe.iface([], {compiledFilename: 'string'}); + Gn.SourceMapOptions = UT; + var HT = Qe.iface([], { + transforms: Qe.array('Transform'), + disableESTransforms: Qe.opt('boolean'), + jsxRuntime: Qe.opt( + Qe.union(Qe.lit('classic'), Qe.lit('automatic'), Qe.lit('preserve')) ), - production: Pe.opt('boolean'), - jsxImportSource: Pe.opt('string'), - jsxPragma: Pe.opt('string'), - jsxFragmentPragma: Pe.opt('string'), - preserveDynamicImport: Pe.opt('boolean'), - injectCreateRequireForImportRequire: Pe.opt('boolean'), - enableLegacyTypeScriptModuleInterop: Pe.opt('boolean'), - enableLegacyBabel5ModuleInterop: Pe.opt('boolean'), - sourceMapOptions: Pe.opt('SourceMapOptions'), - filePath: Pe.opt('string'), + production: Qe.opt('boolean'), + jsxImportSource: Qe.opt('string'), + jsxPragma: Qe.opt('string'), + jsxFragmentPragma: Qe.opt('string'), + preserveDynamicImport: Qe.opt('boolean'), + injectCreateRequireForImportRequire: Qe.opt('boolean'), + enableLegacyTypeScriptModuleInterop: Qe.opt('boolean'), + enableLegacyBabel5ModuleInterop: Qe.opt('boolean'), + sourceMapOptions: Qe.opt('SourceMapOptions'), + filePath: Qe.opt('string'), }); - dn.Options = ZT; - var ey = { - Transform: dn.Transform, - SourceMapOptions: dn.SourceMapOptions, - Options: dn.Options, + Gn.Options = HT; + var WT = { + Transform: Gn.Transform, + SourceMapOptions: Gn.SourceMapOptions, + Options: Gn.Options, }; - dn.default = ey; + Gn.default = WT; }); - var Tu = H((ka) => { + var up = Z((rl) => { 'use strict'; - Object.defineProperty(ka, '__esModule', {value: !0}); - function ty(e) { + Object.defineProperty(rl, '__esModule', {value: !0}); + function GT(e) { return e && e.__esModule ? e : {default: e}; } - var ny = ma(), - oy = hu(), - ry = ty(oy), - {Options: sy} = ny.createCheckers.call(void 0, ry.default); - function iy(e) { - sy.strictCheck(e); + var zT = il(), + XT = cp(), + YT = GT(XT), + {Options: JT} = zT.createCheckers.call(void 0, YT.default); + function QT(e) { + JT.strictCheck(e); } - ka.validateOptions = iy; + rl.validateOptions = QT; }); - var Gr = H((Zt) => { + var lo = Z((Nn) => { 'use strict'; - Object.defineProperty(Zt, '__esModule', {value: !0}); - var ay = Vo(), - yu = mo(), - rt = Ve(), - Uo = Ge(), - Dt = ce(), - ze = Ct(), - Wo = Xn(), - va = Sn(); - function ly() { - rt.next.call(void 0), Wo.parseMaybeAssign.call(void 0, !1); - } - Zt.parseSpread = ly; - function mu(e) { - rt.next.call(void 0), xa(e); - } - Zt.parseRest = mu; - function ku(e) { - Wo.parseIdentifier.call(void 0), vu(e); + Object.defineProperty(Nn, '__esModule', {value: !0}); + var ZT = Ji(), + pp = hi(), + Mt = xt(), + Xi = It(), + fn = be(), + gt = Zt(), + Yi = Ns(), + ol = cs(); + function ey() { + Mt.next.call(void 0), Yi.parseMaybeAssign.call(void 0, !1); + } + Nn.parseSpread = ey; + function hp(e) { + Mt.next.call(void 0), ll(e); + } + Nn.parseRest = hp; + function fp(e) { + Yi.parseIdentifier.call(void 0), dp(e); } - Zt.parseBindingIdentifier = ku; - function cy() { - Wo.parseIdentifier.call(void 0), - (ze.state.tokens[ze.state.tokens.length - 1].identifierRole = - rt.IdentifierRole.ImportDeclaration); + Nn.parseBindingIdentifier = fp; + function ty() { + Yi.parseIdentifier.call(void 0), + (gt.state.tokens[gt.state.tokens.length - 1].identifierRole = + Mt.IdentifierRole.ImportDeclaration); } - Zt.parseImportedIdentifier = cy; - function vu(e) { + Nn.parseImportedIdentifier = ty; + function dp(e) { let t; - ze.state.scopeDepth === 0 - ? (t = rt.IdentifierRole.TopLevelDeclaration) + gt.state.scopeDepth === 0 + ? (t = Mt.IdentifierRole.TopLevelDeclaration) : e - ? (t = rt.IdentifierRole.BlockScopedDeclaration) - : (t = rt.IdentifierRole.FunctionScopedDeclaration), - (ze.state.tokens[ze.state.tokens.length - 1].identifierRole = t); - } - Zt.markPriorBindingIdentifier = vu; - function xa(e) { - switch (ze.state.type) { - case Dt.TokenType._this: { - let t = rt.pushTypeContext.call(void 0, 0); - rt.next.call(void 0), rt.popTypeContext.call(void 0, t); + ? (t = Mt.IdentifierRole.BlockScopedDeclaration) + : (t = Mt.IdentifierRole.FunctionScopedDeclaration), + (gt.state.tokens[gt.state.tokens.length - 1].identifierRole = t); + } + Nn.markPriorBindingIdentifier = dp; + function ll(e) { + switch (gt.state.type) { + case fn.TokenType._this: { + let t = Mt.pushTypeContext.call(void 0, 0); + Mt.next.call(void 0), Mt.popTypeContext.call(void 0, t); return; } - case Dt.TokenType._yield: - case Dt.TokenType.name: { - (ze.state.type = Dt.TokenType.name), ku(e); + case fn.TokenType._yield: + case fn.TokenType.name: { + (gt.state.type = fn.TokenType.name), fp(e); return; } - case Dt.TokenType.bracketL: { - rt.next.call(void 0), _u(Dt.TokenType.bracketR, e, !0); + case fn.TokenType.bracketL: { + Mt.next.call(void 0), mp(fn.TokenType.bracketR, e, !0); return; } - case Dt.TokenType.braceL: - Wo.parseObj.call(void 0, !0, e); + case fn.TokenType.braceL: + Yi.parseObj.call(void 0, !0, e); return; default: - va.unexpected.call(void 0); + ol.unexpected.call(void 0); } } - Zt.parseBindingAtom = xa; - function _u(e, t, n = !1, o = !1, r = 0) { - let s = !0, - i = !1, - a = ze.state.tokens.length; - for (; !rt.eat.call(void 0, e) && !ze.state.error; ) + Nn.parseBindingAtom = ll; + function mp(e, t, s = !1, i = !1, r = 0) { + let a = !0, + p = !1, + d = gt.state.tokens.length; + for (; !Mt.eat.call(void 0, e) && !gt.state.error; ) if ( - (s - ? (s = !1) - : (va.expect.call(void 0, Dt.TokenType.comma), - (ze.state.tokens[ze.state.tokens.length - 1].contextId = r), - !i && - ze.state.tokens[a].isType && - ((ze.state.tokens[ze.state.tokens.length - 1].isType = !0), - (i = !0))), - !(n && rt.match.call(void 0, Dt.TokenType.comma))) + (a + ? (a = !1) + : (ol.expect.call(void 0, fn.TokenType.comma), + (gt.state.tokens[gt.state.tokens.length - 1].contextId = r), + !p && + gt.state.tokens[d].isType && + ((gt.state.tokens[gt.state.tokens.length - 1].isType = !0), + (p = !0))), + !(s && Mt.match.call(void 0, fn.TokenType.comma))) ) { - if (rt.eat.call(void 0, e)) break; - if (rt.match.call(void 0, Dt.TokenType.ellipsis)) { - mu(t), - xu(), - rt.eat.call(void 0, Dt.TokenType.comma), - va.expect.call(void 0, e); + if (Mt.eat.call(void 0, e)) break; + if (Mt.match.call(void 0, fn.TokenType.ellipsis)) { + hp(t), + Tp(), + Mt.eat.call(void 0, fn.TokenType.comma), + ol.expect.call(void 0, e); break; - } else uy(o, t); + } else ny(i, t); } } - Zt.parseBindingList = _u; - function uy(e, t) { + Nn.parseBindingList = mp; + function ny(e, t) { e && - yu.tsParseModifiers.call(void 0, [ - Uo.ContextualKeyword._public, - Uo.ContextualKeyword._protected, - Uo.ContextualKeyword._private, - Uo.ContextualKeyword._readonly, - Uo.ContextualKeyword._override, + pp.tsParseModifiers.call(void 0, [ + Xi.ContextualKeyword._public, + Xi.ContextualKeyword._protected, + Xi.ContextualKeyword._private, + Xi.ContextualKeyword._readonly, + Xi.ContextualKeyword._override, ]), - _a(t), - xu(), - _a(t, !0); + al(t), + Tp(), + al(t, !0); } - function xu() { - ze.isFlowEnabled - ? ay.flowParseAssignableListItemTypes.call(void 0) - : ze.isTypeScriptEnabled && - yu.tsParseAssignableListItemTypes.call(void 0); - } - function _a(e, t = !1) { - if ((t || xa(e), !rt.eat.call(void 0, Dt.TokenType.eq))) return; - let n = ze.state.tokens.length - 1; - Wo.parseMaybeAssign.call(void 0), - (ze.state.tokens[n].rhsEndIndex = ze.state.tokens.length); - } - Zt.parseMaybeDefault = _a; + function Tp() { + gt.isFlowEnabled + ? ZT.flowParseAssignableListItemTypes.call(void 0) + : gt.isTypeScriptEnabled && + pp.tsParseAssignableListItemTypes.call(void 0); + } + function al(e, t = !1) { + if ((t || ll(e), !Mt.eat.call(void 0, fn.TokenType.eq))) return; + let s = gt.state.tokens.length - 1; + Yi.parseMaybeAssign.call(void 0), + (gt.state.tokens[s].rhsEndIndex = gt.state.tokens.length); + } + Nn.parseMaybeDefault = al; }); - var mo = H((ye) => { + var hi = Z((Oe) => { 'use strict'; - Object.defineProperty(ye, '__esModule', {value: !0}); - var c = Ve(), - V = Ge(), - l = ce(), - T = Ct(), - ae = Xn(), - vo = Gr(), - en = Jo(), - P = Sn(), - py = Na(); - function Ca() { - return c.match.call(void 0, l.TokenType.name); - } - function dy() { + Object.defineProperty(Oe, '__esModule', {value: !0}); + var v = xt(), + oe = It(), + T = be(), + w = Zt(), + _e = Ns(), + di = lo(), + Rn = nr(), + U = cs(), + sy = vl(); + function ul() { + return v.match.call(void 0, T.TokenType.name); + } + function iy() { return ( - c.match.call(void 0, l.TokenType.name) || - !!(T.state.type & l.TokenType.IS_KEYWORD) || - c.match.call(void 0, l.TokenType.string) || - c.match.call(void 0, l.TokenType.num) || - c.match.call(void 0, l.TokenType.bigint) || - c.match.call(void 0, l.TokenType.decimal) + v.match.call(void 0, T.TokenType.name) || + !!(w.state.type & T.TokenType.IS_KEYWORD) || + v.match.call(void 0, T.TokenType.string) || + v.match.call(void 0, T.TokenType.num) || + v.match.call(void 0, T.TokenType.bigint) || + v.match.call(void 0, T.TokenType.decimal) ); } - function Su() { - let e = T.state.snapshot(); + function gp() { + let e = w.state.snapshot(); return ( - c.next.call(void 0), - (c.match.call(void 0, l.TokenType.bracketL) || - c.match.call(void 0, l.TokenType.braceL) || - c.match.call(void 0, l.TokenType.star) || - c.match.call(void 0, l.TokenType.ellipsis) || - c.match.call(void 0, l.TokenType.hash) || - dy()) && - !P.hasPrecedingLineBreak.call(void 0) + v.next.call(void 0), + (v.match.call(void 0, T.TokenType.bracketL) || + v.match.call(void 0, T.TokenType.braceL) || + v.match.call(void 0, T.TokenType.star) || + v.match.call(void 0, T.TokenType.ellipsis) || + v.match.call(void 0, T.TokenType.hash) || + iy()) && + !U.hasPrecedingLineBreak.call(void 0) ? !0 - : (T.state.restoreFromSnapshot(e), !1) + : (w.state.restoreFromSnapshot(e), !1) ); } - function bu(e) { - for (; ba(e) !== null; ); + function _p(e) { + for (; dl(e) !== null; ); } - ye.tsParseModifiers = bu; - function ba(e) { - if (!c.match.call(void 0, l.TokenType.name)) return null; - let t = T.state.contextualKeyword; - if (e.indexOf(t) !== -1 && Su()) { + Oe.tsParseModifiers = _p; + function dl(e) { + if (!v.match.call(void 0, T.TokenType.name)) return null; + let t = w.state.contextualKeyword; + if (e.indexOf(t) !== -1 && gp()) { switch (t) { - case V.ContextualKeyword._readonly: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._readonly; + case oe.ContextualKeyword._readonly: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._readonly; break; - case V.ContextualKeyword._abstract: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._abstract; + case oe.ContextualKeyword._abstract: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._abstract; break; - case V.ContextualKeyword._static: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._static; + case oe.ContextualKeyword._static: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._static; break; - case V.ContextualKeyword._public: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._public; + case oe.ContextualKeyword._public: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._public; break; - case V.ContextualKeyword._private: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._private; + case oe.ContextualKeyword._private: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._private; break; - case V.ContextualKeyword._protected: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._protected; + case oe.ContextualKeyword._protected: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._protected; break; - case V.ContextualKeyword._override: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._override; + case oe.ContextualKeyword._override: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._override; break; - case V.ContextualKeyword._declare: - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._declare; + case oe.ContextualKeyword._declare: + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._declare; break; default: break; @@ -18055,724 +18060,724 @@ If you need interactivity, consider converting part of this to a Client Componen } return null; } - ye.tsParseModifier = ba; - function Xo() { + Oe.tsParseModifier = dl; + function Zi() { for ( - ae.parseIdentifier.call(void 0); - c.eat.call(void 0, l.TokenType.dot); + _e.parseIdentifier.call(void 0); + v.eat.call(void 0, T.TokenType.dot); ) - ae.parseIdentifier.call(void 0); - } - function fy() { - Xo(), - !P.hasPrecedingLineBreak.call(void 0) && - c.match.call(void 0, l.TokenType.lessThan) && - xo(); - } - function hy() { - c.next.call(void 0), Go(); - } - function Ty() { - c.next.call(void 0); + _e.parseIdentifier.call(void 0); } - function yy() { - P.expect.call(void 0, l.TokenType._typeof), - c.match.call(void 0, l.TokenType._import) ? Eu() : Xo(), - !P.hasPrecedingLineBreak.call(void 0) && - c.match.call(void 0, l.TokenType.lessThan) && - xo(); + function ry() { + Zi(), + !U.hasPrecedingLineBreak.call(void 0) && + v.match.call(void 0, T.TokenType.lessThan) && + Ti(); } - function Eu() { - P.expect.call(void 0, l.TokenType._import), - P.expect.call(void 0, l.TokenType.parenL), - P.expect.call(void 0, l.TokenType.string), - P.expect.call(void 0, l.TokenType.parenR), - c.eat.call(void 0, l.TokenType.dot) && Xo(), - c.match.call(void 0, l.TokenType.lessThan) && xo(); + function oy() { + v.next.call(void 0), tr(); } - function my() { - c.eat.call(void 0, l.TokenType._const); - let e = c.eat.call(void 0, l.TokenType._in), - t = P.eatContextual.call(void 0, V.ContextualKeyword._out); - c.eat.call(void 0, l.TokenType._const), - (e || t) && !c.match.call(void 0, l.TokenType.name) - ? (T.state.tokens[T.state.tokens.length - 1].type = l.TokenType.name) - : ae.parseIdentifier.call(void 0), - c.eat.call(void 0, l.TokenType._extends) && Me(), - c.eat.call(void 0, l.TokenType.eq) && Me(); + function ay() { + v.next.call(void 0); } - function _o() { - c.match.call(void 0, l.TokenType.lessThan) && Qr(); + function ly() { + U.expect.call(void 0, T.TokenType._typeof), + v.match.call(void 0, T.TokenType._import) ? bp() : Zi(), + !U.hasPrecedingLineBreak.call(void 0) && + v.match.call(void 0, T.TokenType.lessThan) && + Ti(); + } + function bp() { + U.expect.call(void 0, T.TokenType._import), + U.expect.call(void 0, T.TokenType.parenL), + U.expect.call(void 0, T.TokenType.string), + U.expect.call(void 0, T.TokenType.parenR), + v.eat.call(void 0, T.TokenType.dot) && Zi(), + v.match.call(void 0, T.TokenType.lessThan) && Ti(); } - ye.tsTryParseTypeParameters = _o; - function Qr() { - let e = c.pushTypeContext.call(void 0, 0); + function cy() { + v.eat.call(void 0, T.TokenType._const); + let e = v.eat.call(void 0, T.TokenType._in), + t = U.eatContextual.call(void 0, oe.ContextualKeyword._out); + v.eat.call(void 0, T.TokenType._const), + (e || t) && !v.match.call(void 0, T.TokenType.name) + ? (w.state.tokens[w.state.tokens.length - 1].type = T.TokenType.name) + : _e.parseIdentifier.call(void 0), + v.eat.call(void 0, T.TokenType._extends) && rt(), + v.eat.call(void 0, T.TokenType.eq) && rt(); + } + function mi() { + v.match.call(void 0, T.TokenType.lessThan) && uo(); + } + Oe.tsTryParseTypeParameters = mi; + function uo() { + let e = v.pushTypeContext.call(void 0, 0); for ( - c.match.call(void 0, l.TokenType.lessThan) || - c.match.call(void 0, l.TokenType.typeParameterStart) - ? c.next.call(void 0) - : P.unexpected.call(void 0); - !c.eat.call(void 0, l.TokenType.greaterThan) && !T.state.error; + v.match.call(void 0, T.TokenType.lessThan) || + v.match.call(void 0, T.TokenType.typeParameterStart) + ? v.next.call(void 0) + : U.unexpected.call(void 0); + !v.eat.call(void 0, T.TokenType.greaterThan) && !w.state.error; ) - my(), c.eat.call(void 0, l.TokenType.comma); - c.popTypeContext.call(void 0, e); + cy(), v.eat.call(void 0, T.TokenType.comma); + v.popTypeContext.call(void 0, e); } - function Ea(e) { - let t = e === l.TokenType.arrow; - _o(), - P.expect.call(void 0, l.TokenType.parenL), - T.state.scopeDepth++, - ky(!1), - T.state.scopeDepth--, - (t || c.match.call(void 0, e)) && zo(e); + function ml(e) { + let t = e === T.TokenType.arrow; + mi(), + U.expect.call(void 0, T.TokenType.parenL), + w.state.scopeDepth++, + uy(!1), + w.state.scopeDepth--, + (t || v.match.call(void 0, e)) && Qi(e); } - function ky(e) { - vo.parseBindingList.call(void 0, l.TokenType.parenR, e); + function uy(e) { + di.parseBindingList.call(void 0, T.TokenType.parenR, e); } - function Jr() { - c.eat.call(void 0, l.TokenType.comma) || P.semicolon.call(void 0); + function co() { + v.eat.call(void 0, T.TokenType.comma) || U.semicolon.call(void 0); } - function gu() { - Ea(l.TokenType.colon), Jr(); + function yp() { + ml(T.TokenType.colon), co(); } - function vy() { - let e = T.state.snapshot(); - c.next.call(void 0); + function py() { + let e = w.state.snapshot(); + v.next.call(void 0); let t = - c.eat.call(void 0, l.TokenType.name) && - c.match.call(void 0, l.TokenType.colon); - return T.state.restoreFromSnapshot(e), t; + v.eat.call(void 0, T.TokenType.name) && + v.match.call(void 0, T.TokenType.colon); + return w.state.restoreFromSnapshot(e), t; } - function Au() { - if (!(c.match.call(void 0, l.TokenType.bracketL) && vy())) return !1; - let e = c.pushTypeContext.call(void 0, 0); + function Cp() { + if (!(v.match.call(void 0, T.TokenType.bracketL) && py())) return !1; + let e = v.pushTypeContext.call(void 0, 0); return ( - P.expect.call(void 0, l.TokenType.bracketL), - ae.parseIdentifier.call(void 0), - Go(), - P.expect.call(void 0, l.TokenType.bracketR), - Yo(), - Jr(), - c.popTypeContext.call(void 0, e), + U.expect.call(void 0, T.TokenType.bracketL), + _e.parseIdentifier.call(void 0), + tr(), + U.expect.call(void 0, T.TokenType.bracketR), + er(), + co(), + v.popTypeContext.call(void 0, e), !0 ); } - function Cu(e) { - c.eat.call(void 0, l.TokenType.question), + function kp(e) { + v.eat.call(void 0, T.TokenType.question), !e && - (c.match.call(void 0, l.TokenType.parenL) || - c.match.call(void 0, l.TokenType.lessThan)) - ? (Ea(l.TokenType.colon), Jr()) - : (Yo(), Jr()); + (v.match.call(void 0, T.TokenType.parenL) || + v.match.call(void 0, T.TokenType.lessThan)) + ? (ml(T.TokenType.colon), co()) + : (er(), co()); } - function _y() { + function hy() { if ( - c.match.call(void 0, l.TokenType.parenL) || - c.match.call(void 0, l.TokenType.lessThan) + v.match.call(void 0, T.TokenType.parenL) || + v.match.call(void 0, T.TokenType.lessThan) ) { - gu(); + yp(); return; } - if (c.match.call(void 0, l.TokenType._new)) { - c.next.call(void 0), - c.match.call(void 0, l.TokenType.parenL) || - c.match.call(void 0, l.TokenType.lessThan) - ? gu() - : Cu(!1); + if (v.match.call(void 0, T.TokenType._new)) { + v.next.call(void 0), + v.match.call(void 0, T.TokenType.parenL) || + v.match.call(void 0, T.TokenType.lessThan) + ? yp() + : kp(!1); return; } - let e = !!ba([V.ContextualKeyword._readonly]); - Au() || - ((P.isContextual.call(void 0, V.ContextualKeyword._get) || - P.isContextual.call(void 0, V.ContextualKeyword._set)) && - Su(), - ae.parsePropertyName.call(void 0, -1), - Cu(e)); + let e = !!dl([oe.ContextualKeyword._readonly]); + Cp() || + ((U.isContextual.call(void 0, oe.ContextualKeyword._get) || + U.isContextual.call(void 0, oe.ContextualKeyword._set)) && + gp(), + _e.parsePropertyName.call(void 0, -1), + kp(e)); } - function xy() { - Pu(); + function fy() { + wp(); } - function Pu() { + function wp() { for ( - P.expect.call(void 0, l.TokenType.braceL); - !c.eat.call(void 0, l.TokenType.braceR) && !T.state.error; + U.expect.call(void 0, T.TokenType.braceL); + !v.eat.call(void 0, T.TokenType.braceR) && !w.state.error; ) - _y(); + hy(); } - function gy() { - let e = T.state.snapshot(), - t = Cy(); - return T.state.restoreFromSnapshot(e), t; + function dy() { + let e = w.state.snapshot(), + t = my(); + return w.state.restoreFromSnapshot(e), t; } - function Cy() { + function my() { return ( - c.next.call(void 0), - c.eat.call(void 0, l.TokenType.plus) || - c.eat.call(void 0, l.TokenType.minus) - ? P.isContextual.call(void 0, V.ContextualKeyword._readonly) - : (P.isContextual.call(void 0, V.ContextualKeyword._readonly) && - c.next.call(void 0), - !c.match.call(void 0, l.TokenType.bracketL) || - (c.next.call(void 0), !Ca()) + v.next.call(void 0), + v.eat.call(void 0, T.TokenType.plus) || + v.eat.call(void 0, T.TokenType.minus) + ? U.isContextual.call(void 0, oe.ContextualKeyword._readonly) + : (U.isContextual.call(void 0, oe.ContextualKeyword._readonly) && + v.next.call(void 0), + !v.match.call(void 0, T.TokenType.bracketL) || + (v.next.call(void 0), !ul()) ? !1 - : (c.next.call(void 0), c.match.call(void 0, l.TokenType._in))) + : (v.next.call(void 0), v.match.call(void 0, T.TokenType._in))) ); } - function wy() { - ae.parseIdentifier.call(void 0), - P.expect.call(void 0, l.TokenType._in), - Me(); - } - function Iy() { - P.expect.call(void 0, l.TokenType.braceL), - c.match.call(void 0, l.TokenType.plus) || - c.match.call(void 0, l.TokenType.minus) - ? (c.next.call(void 0), - P.expectContextual.call(void 0, V.ContextualKeyword._readonly)) - : P.eatContextual.call(void 0, V.ContextualKeyword._readonly), - P.expect.call(void 0, l.TokenType.bracketL), - wy(), - P.eatContextual.call(void 0, V.ContextualKeyword._as) && Me(), - P.expect.call(void 0, l.TokenType.bracketR), - c.match.call(void 0, l.TokenType.plus) || - c.match.call(void 0, l.TokenType.minus) - ? (c.next.call(void 0), P.expect.call(void 0, l.TokenType.question)) - : c.eat.call(void 0, l.TokenType.question), - By(), - P.semicolon.call(void 0), - P.expect.call(void 0, l.TokenType.braceR); + function Ty() { + _e.parseIdentifier.call(void 0), + U.expect.call(void 0, T.TokenType._in), + rt(); } - function Sy() { + function yy() { + U.expect.call(void 0, T.TokenType.braceL), + v.match.call(void 0, T.TokenType.plus) || + v.match.call(void 0, T.TokenType.minus) + ? (v.next.call(void 0), + U.expectContextual.call(void 0, oe.ContextualKeyword._readonly)) + : U.eatContextual.call(void 0, oe.ContextualKeyword._readonly), + U.expect.call(void 0, T.TokenType.bracketL), + Ty(), + U.eatContextual.call(void 0, oe.ContextualKeyword._as) && rt(), + U.expect.call(void 0, T.TokenType.bracketR), + v.match.call(void 0, T.TokenType.plus) || + v.match.call(void 0, T.TokenType.minus) + ? (v.next.call(void 0), U.expect.call(void 0, T.TokenType.question)) + : v.eat.call(void 0, T.TokenType.question), + Ny(), + U.semicolon.call(void 0), + U.expect.call(void 0, T.TokenType.braceR); + } + function ky() { for ( - P.expect.call(void 0, l.TokenType.bracketL); - !c.eat.call(void 0, l.TokenType.bracketR) && !T.state.error; + U.expect.call(void 0, T.TokenType.bracketL); + !v.eat.call(void 0, T.TokenType.bracketR) && !w.state.error; ) - by(), c.eat.call(void 0, l.TokenType.comma); + vy(), v.eat.call(void 0, T.TokenType.comma); } - function by() { - c.eat.call(void 0, l.TokenType.ellipsis) - ? Me() - : (Me(), c.eat.call(void 0, l.TokenType.question)), - c.eat.call(void 0, l.TokenType.colon) && Me(); + function vy() { + v.eat.call(void 0, T.TokenType.ellipsis) + ? rt() + : (rt(), v.eat.call(void 0, T.TokenType.question)), + v.eat.call(void 0, T.TokenType.colon) && rt(); } - function Ey() { - P.expect.call(void 0, l.TokenType.parenL), - Me(), - P.expect.call(void 0, l.TokenType.parenR); + function xy() { + U.expect.call(void 0, T.TokenType.parenL), + rt(), + U.expect.call(void 0, T.TokenType.parenR); } - function Ay() { + function gy() { for ( - c.nextTemplateToken.call(void 0), c.nextTemplateToken.call(void 0); - !c.match.call(void 0, l.TokenType.backQuote) && !T.state.error; + v.nextTemplateToken.call(void 0), v.nextTemplateToken.call(void 0); + !v.match.call(void 0, T.TokenType.backQuote) && !w.state.error; ) - P.expect.call(void 0, l.TokenType.dollarBraceL), - Me(), - c.nextTemplateToken.call(void 0), - c.nextTemplateToken.call(void 0); - c.next.call(void 0); + U.expect.call(void 0, T.TokenType.dollarBraceL), + rt(), + v.nextTemplateToken.call(void 0), + v.nextTemplateToken.call(void 0); + v.next.call(void 0); } - var An; + var hs; (function (e) { e[(e.TSFunctionType = 0)] = 'TSFunctionType'; - let n = 1; - e[(e.TSConstructorType = n)] = 'TSConstructorType'; - let o = n + 1; - e[(e.TSAbstractConstructorType = o)] = 'TSAbstractConstructorType'; - })(An || (An = {})); - function ga(e) { - e === An.TSAbstractConstructorType && - P.expectContextual.call(void 0, V.ContextualKeyword._abstract), - (e === An.TSConstructorType || e === An.TSAbstractConstructorType) && - P.expect.call(void 0, l.TokenType._new); - let t = T.state.inDisallowConditionalTypesContext; - (T.state.inDisallowConditionalTypesContext = !1), - Ea(l.TokenType.arrow), - (T.state.inDisallowConditionalTypesContext = t); + let s = 1; + e[(e.TSConstructorType = s)] = 'TSConstructorType'; + let i = s + 1; + e[(e.TSAbstractConstructorType = i)] = 'TSAbstractConstructorType'; + })(hs || (hs = {})); + function cl(e) { + e === hs.TSAbstractConstructorType && + U.expectContextual.call(void 0, oe.ContextualKeyword._abstract), + (e === hs.TSConstructorType || e === hs.TSAbstractConstructorType) && + U.expect.call(void 0, T.TokenType._new); + let t = w.state.inDisallowConditionalTypesContext; + (w.state.inDisallowConditionalTypesContext = !1), + ml(T.TokenType.arrow), + (w.state.inDisallowConditionalTypesContext = t); } - function Py() { - switch (T.state.type) { - case l.TokenType.name: - fy(); + function _y() { + switch (w.state.type) { + case T.TokenType.name: + ry(); return; - case l.TokenType._void: - case l.TokenType._null: - c.next.call(void 0); + case T.TokenType._void: + case T.TokenType._null: + v.next.call(void 0); return; - case l.TokenType.string: - case l.TokenType.num: - case l.TokenType.bigint: - case l.TokenType.decimal: - case l.TokenType._true: - case l.TokenType._false: - ae.parseLiteral.call(void 0); + case T.TokenType.string: + case T.TokenType.num: + case T.TokenType.bigint: + case T.TokenType.decimal: + case T.TokenType._true: + case T.TokenType._false: + _e.parseLiteral.call(void 0); return; - case l.TokenType.minus: - c.next.call(void 0), ae.parseLiteral.call(void 0); + case T.TokenType.minus: + v.next.call(void 0), _e.parseLiteral.call(void 0); return; - case l.TokenType._this: { - Ty(), - P.isContextual.call(void 0, V.ContextualKeyword._is) && - !P.hasPrecedingLineBreak.call(void 0) && - hy(); + case T.TokenType._this: { + ay(), + U.isContextual.call(void 0, oe.ContextualKeyword._is) && + !U.hasPrecedingLineBreak.call(void 0) && + oy(); return; } - case l.TokenType._typeof: - yy(); + case T.TokenType._typeof: + ly(); return; - case l.TokenType._import: - Eu(); + case T.TokenType._import: + bp(); return; - case l.TokenType.braceL: - gy() ? Iy() : xy(); + case T.TokenType.braceL: + dy() ? yy() : fy(); return; - case l.TokenType.bracketL: - Sy(); + case T.TokenType.bracketL: + ky(); return; - case l.TokenType.parenL: - Ey(); + case T.TokenType.parenL: + xy(); return; - case l.TokenType.backQuote: - Ay(); + case T.TokenType.backQuote: + gy(); return; default: - if (T.state.type & l.TokenType.IS_KEYWORD) { - c.next.call(void 0), - (T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType.name); + if (w.state.type & T.TokenType.IS_KEYWORD) { + v.next.call(void 0), + (w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType.name); return; } break; } - P.unexpected.call(void 0); + U.unexpected.call(void 0); } - function Ry() { + function by() { for ( - Py(); - !P.hasPrecedingLineBreak.call(void 0) && - c.eat.call(void 0, l.TokenType.bracketL); + _y(); + !U.hasPrecedingLineBreak.call(void 0) && + v.eat.call(void 0, T.TokenType.bracketL); ) - c.eat.call(void 0, l.TokenType.bracketR) || - (Me(), P.expect.call(void 0, l.TokenType.bracketR)); + v.eat.call(void 0, T.TokenType.bracketR) || + (rt(), U.expect.call(void 0, T.TokenType.bracketR)); } - function Ny() { + function Cy() { if ( - (P.expectContextual.call(void 0, V.ContextualKeyword._infer), - ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType._extends)) + (U.expectContextual.call(void 0, oe.ContextualKeyword._infer), + _e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType._extends)) ) { - let e = T.state.snapshot(); - P.expect.call(void 0, l.TokenType._extends); - let t = T.state.inDisallowConditionalTypesContext; - (T.state.inDisallowConditionalTypesContext = !0), - Me(), - (T.state.inDisallowConditionalTypesContext = t), - (T.state.error || - (!T.state.inDisallowConditionalTypesContext && - c.match.call(void 0, l.TokenType.question))) && - T.state.restoreFromSnapshot(e); - } - } - function wa() { + let e = w.state.snapshot(); + U.expect.call(void 0, T.TokenType._extends); + let t = w.state.inDisallowConditionalTypesContext; + (w.state.inDisallowConditionalTypesContext = !0), + rt(), + (w.state.inDisallowConditionalTypesContext = t), + (w.state.error || + (!w.state.inDisallowConditionalTypesContext && + v.match.call(void 0, T.TokenType.question))) && + w.state.restoreFromSnapshot(e); + } + } + function pl() { if ( - P.isContextual.call(void 0, V.ContextualKeyword._keyof) || - P.isContextual.call(void 0, V.ContextualKeyword._unique) || - P.isContextual.call(void 0, V.ContextualKeyword._readonly) + U.isContextual.call(void 0, oe.ContextualKeyword._keyof) || + U.isContextual.call(void 0, oe.ContextualKeyword._unique) || + U.isContextual.call(void 0, oe.ContextualKeyword._readonly) ) - c.next.call(void 0), wa(); - else if (P.isContextual.call(void 0, V.ContextualKeyword._infer)) Ny(); + v.next.call(void 0), pl(); + else if (U.isContextual.call(void 0, oe.ContextualKeyword._infer)) Cy(); else { - let e = T.state.inDisallowConditionalTypesContext; - (T.state.inDisallowConditionalTypesContext = !1), - Ry(), - (T.state.inDisallowConditionalTypesContext = e); + let e = w.state.inDisallowConditionalTypesContext; + (w.state.inDisallowConditionalTypesContext = !1), + by(), + (w.state.inDisallowConditionalTypesContext = e); } } - function wu() { + function vp() { if ( - (c.eat.call(void 0, l.TokenType.bitwiseAND), - wa(), - c.match.call(void 0, l.TokenType.bitwiseAND)) + (v.eat.call(void 0, T.TokenType.bitwiseAND), + pl(), + v.match.call(void 0, T.TokenType.bitwiseAND)) ) - for (; c.eat.call(void 0, l.TokenType.bitwiseAND); ) wa(); + for (; v.eat.call(void 0, T.TokenType.bitwiseAND); ) pl(); } - function Dy() { + function wy() { if ( - (c.eat.call(void 0, l.TokenType.bitwiseOR), - wu(), - c.match.call(void 0, l.TokenType.bitwiseOR)) + (v.eat.call(void 0, T.TokenType.bitwiseOR), + vp(), + v.match.call(void 0, T.TokenType.bitwiseOR)) ) - for (; c.eat.call(void 0, l.TokenType.bitwiseOR); ) wu(); + for (; v.eat.call(void 0, T.TokenType.bitwiseOR); ) vp(); } - function Oy() { - return c.match.call(void 0, l.TokenType.lessThan) + function Sy() { + return v.match.call(void 0, T.TokenType.lessThan) ? !0 - : c.match.call(void 0, l.TokenType.parenL) && Ly(); + : v.match.call(void 0, T.TokenType.parenL) && Ey(); } - function My() { + function Iy() { if ( - c.match.call(void 0, l.TokenType.name) || - c.match.call(void 0, l.TokenType._this) + v.match.call(void 0, T.TokenType.name) || + v.match.call(void 0, T.TokenType._this) ) - return c.next.call(void 0), !0; + return v.next.call(void 0), !0; if ( - c.match.call(void 0, l.TokenType.braceL) || - c.match.call(void 0, l.TokenType.bracketL) + v.match.call(void 0, T.TokenType.braceL) || + v.match.call(void 0, T.TokenType.bracketL) ) { let e = 1; - for (c.next.call(void 0); e > 0 && !T.state.error; ) - c.match.call(void 0, l.TokenType.braceL) || - c.match.call(void 0, l.TokenType.bracketL) + for (v.next.call(void 0); e > 0 && !w.state.error; ) + v.match.call(void 0, T.TokenType.braceL) || + v.match.call(void 0, T.TokenType.bracketL) ? e++ - : (c.match.call(void 0, l.TokenType.braceR) || - c.match.call(void 0, l.TokenType.bracketR)) && + : (v.match.call(void 0, T.TokenType.braceR) || + v.match.call(void 0, T.TokenType.bracketR)) && e--, - c.next.call(void 0); + v.next.call(void 0); return !0; } return !1; } - function Ly() { - let e = T.state.snapshot(), - t = Fy(); - return T.state.restoreFromSnapshot(e), t; + function Ey() { + let e = w.state.snapshot(), + t = Ay(); + return w.state.restoreFromSnapshot(e), t; } - function Fy() { + function Ay() { return ( - c.next.call(void 0), + v.next.call(void 0), !!( - c.match.call(void 0, l.TokenType.parenR) || - c.match.call(void 0, l.TokenType.ellipsis) || - (My() && - (c.match.call(void 0, l.TokenType.colon) || - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.question) || - c.match.call(void 0, l.TokenType.eq) || - (c.match.call(void 0, l.TokenType.parenR) && - (c.next.call(void 0), - c.match.call(void 0, l.TokenType.arrow))))) + v.match.call(void 0, T.TokenType.parenR) || + v.match.call(void 0, T.TokenType.ellipsis) || + (Iy() && + (v.match.call(void 0, T.TokenType.colon) || + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.question) || + v.match.call(void 0, T.TokenType.eq) || + (v.match.call(void 0, T.TokenType.parenR) && + (v.next.call(void 0), + v.match.call(void 0, T.TokenType.arrow))))) ) ); } - function zo(e) { - let t = c.pushTypeContext.call(void 0, 0); - P.expect.call(void 0, e), jy() || Me(), c.popTypeContext.call(void 0, t); + function Qi(e) { + let t = v.pushTypeContext.call(void 0, 0); + U.expect.call(void 0, e), Ry() || rt(), v.popTypeContext.call(void 0, t); } - function $y() { - c.match.call(void 0, l.TokenType.colon) && zo(l.TokenType.colon); + function Py() { + v.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon); } - function Yo() { - c.match.call(void 0, l.TokenType.colon) && Go(); + function er() { + v.match.call(void 0, T.TokenType.colon) && tr(); } - ye.tsTryParseTypeAnnotation = Yo; - function By() { - c.eat.call(void 0, l.TokenType.colon) && Me(); + Oe.tsTryParseTypeAnnotation = er; + function Ny() { + v.eat.call(void 0, T.TokenType.colon) && rt(); } - function jy() { - let e = T.state.snapshot(); - return P.isContextual.call(void 0, V.ContextualKeyword._asserts) - ? (c.next.call(void 0), - P.eatContextual.call(void 0, V.ContextualKeyword._is) - ? (Me(), !0) - : Ca() || c.match.call(void 0, l.TokenType._this) - ? (c.next.call(void 0), - P.eatContextual.call(void 0, V.ContextualKeyword._is) && Me(), + function Ry() { + let e = w.state.snapshot(); + return U.isContextual.call(void 0, oe.ContextualKeyword._asserts) + ? (v.next.call(void 0), + U.eatContextual.call(void 0, oe.ContextualKeyword._is) + ? (rt(), !0) + : ul() || v.match.call(void 0, T.TokenType._this) + ? (v.next.call(void 0), + U.eatContextual.call(void 0, oe.ContextualKeyword._is) && rt(), !0) - : (T.state.restoreFromSnapshot(e), !1)) - : Ca() || c.match.call(void 0, l.TokenType._this) - ? (c.next.call(void 0), - P.isContextual.call(void 0, V.ContextualKeyword._is) && - !P.hasPrecedingLineBreak.call(void 0) - ? (c.next.call(void 0), Me(), !0) - : (T.state.restoreFromSnapshot(e), !1)) + : (w.state.restoreFromSnapshot(e), !1)) + : ul() || v.match.call(void 0, T.TokenType._this) + ? (v.next.call(void 0), + U.isContextual.call(void 0, oe.ContextualKeyword._is) && + !U.hasPrecedingLineBreak.call(void 0) + ? (v.next.call(void 0), rt(), !0) + : (w.state.restoreFromSnapshot(e), !1)) : !1; } - function Go() { - let e = c.pushTypeContext.call(void 0, 0); - P.expect.call(void 0, l.TokenType.colon), - Me(), - c.popTypeContext.call(void 0, e); + function tr() { + let e = v.pushTypeContext.call(void 0, 0); + U.expect.call(void 0, T.TokenType.colon), + rt(), + v.popTypeContext.call(void 0, e); } - ye.tsParseTypeAnnotation = Go; - function Me() { + Oe.tsParseTypeAnnotation = tr; + function rt() { if ( - (Ia(), - T.state.inDisallowConditionalTypesContext || - P.hasPrecedingLineBreak.call(void 0) || - !c.eat.call(void 0, l.TokenType._extends)) + (hl(), + w.state.inDisallowConditionalTypesContext || + U.hasPrecedingLineBreak.call(void 0) || + !v.eat.call(void 0, T.TokenType._extends)) ) return; - let e = T.state.inDisallowConditionalTypesContext; - (T.state.inDisallowConditionalTypesContext = !0), - Ia(), - (T.state.inDisallowConditionalTypesContext = e), - P.expect.call(void 0, l.TokenType.question), - Me(), - P.expect.call(void 0, l.TokenType.colon), - Me(); - } - ye.tsParseType = Me; - function Ky() { + let e = w.state.inDisallowConditionalTypesContext; + (w.state.inDisallowConditionalTypesContext = !0), + hl(), + (w.state.inDisallowConditionalTypesContext = e), + U.expect.call(void 0, T.TokenType.question), + rt(), + U.expect.call(void 0, T.TokenType.colon), + rt(); + } + Oe.tsParseType = rt; + function Ly() { return ( - P.isContextual.call(void 0, V.ContextualKeyword._abstract) && - c.lookaheadType.call(void 0) === l.TokenType._new + U.isContextual.call(void 0, oe.ContextualKeyword._abstract) && + v.lookaheadType.call(void 0) === T.TokenType._new ); } - function Ia() { - if (Oy()) { - ga(An.TSFunctionType); + function hl() { + if (Sy()) { + cl(hs.TSFunctionType); return; } - if (c.match.call(void 0, l.TokenType._new)) { - ga(An.TSConstructorType); + if (v.match.call(void 0, T.TokenType._new)) { + cl(hs.TSConstructorType); return; - } else if (Ky()) { - ga(An.TSAbstractConstructorType); + } else if (Ly()) { + cl(hs.TSAbstractConstructorType); return; } - Dy(); + wy(); } - ye.tsParseNonConditionalType = Ia; - function qy() { - let e = c.pushTypeContext.call(void 0, 1); - Me(), - P.expect.call(void 0, l.TokenType.greaterThan), - c.popTypeContext.call(void 0, e), - ae.parseMaybeUnary.call(void 0); + Oe.tsParseNonConditionalType = hl; + function Oy() { + let e = v.pushTypeContext.call(void 0, 1); + rt(), + U.expect.call(void 0, T.TokenType.greaterThan), + v.popTypeContext.call(void 0, e), + _e.parseMaybeUnary.call(void 0); } - ye.tsParseTypeAssertion = qy; - function Hy() { - if (c.eat.call(void 0, l.TokenType.jsxTagStart)) { - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType.typeParameterStart; - let e = c.pushTypeContext.call(void 0, 1); + Oe.tsParseTypeAssertion = Oy; + function Dy() { + if (v.eat.call(void 0, T.TokenType.jsxTagStart)) { + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType.typeParameterStart; + let e = v.pushTypeContext.call(void 0, 1); for ( ; - !c.match.call(void 0, l.TokenType.greaterThan) && !T.state.error; + !v.match.call(void 0, T.TokenType.greaterThan) && !w.state.error; ) - Me(), c.eat.call(void 0, l.TokenType.comma); - py.nextJSXTagToken.call(void 0), c.popTypeContext.call(void 0, e); + rt(), v.eat.call(void 0, T.TokenType.comma); + sy.nextJSXTagToken.call(void 0), v.popTypeContext.call(void 0, e); } } - ye.tsTryParseJSXTypeArgument = Hy; - function Ru() { - for (; !c.match.call(void 0, l.TokenType.braceL) && !T.state.error; ) - Uy(), c.eat.call(void 0, l.TokenType.comma); + Oe.tsTryParseJSXTypeArgument = Dy; + function Sp() { + for (; !v.match.call(void 0, T.TokenType.braceL) && !w.state.error; ) + My(), v.eat.call(void 0, T.TokenType.comma); } - function Uy() { - Xo(), c.match.call(void 0, l.TokenType.lessThan) && xo(); + function My() { + Zi(), v.match.call(void 0, T.TokenType.lessThan) && Ti(); } - function Wy() { - vo.parseBindingIdentifier.call(void 0, !1), - _o(), - c.eat.call(void 0, l.TokenType._extends) && Ru(), - Pu(); + function Fy() { + di.parseBindingIdentifier.call(void 0, !1), + mi(), + v.eat.call(void 0, T.TokenType._extends) && Sp(), + wp(); } - function Vy() { - vo.parseBindingIdentifier.call(void 0, !1), - _o(), - P.expect.call(void 0, l.TokenType.eq), - Me(), - P.semicolon.call(void 0); + function By() { + di.parseBindingIdentifier.call(void 0, !1), + mi(), + U.expect.call(void 0, T.TokenType.eq), + rt(), + U.semicolon.call(void 0); } - function zy() { + function Vy() { if ( - (c.match.call(void 0, l.TokenType.string) - ? ae.parseLiteral.call(void 0) - : ae.parseIdentifier.call(void 0), - c.eat.call(void 0, l.TokenType.eq)) + (v.match.call(void 0, T.TokenType.string) + ? _e.parseLiteral.call(void 0) + : _e.parseIdentifier.call(void 0), + v.eat.call(void 0, T.TokenType.eq)) ) { - let e = T.state.tokens.length - 1; - ae.parseMaybeAssign.call(void 0), - (T.state.tokens[e].rhsEndIndex = T.state.tokens.length); + let e = w.state.tokens.length - 1; + _e.parseMaybeAssign.call(void 0), + (w.state.tokens[e].rhsEndIndex = w.state.tokens.length); } } - function Aa() { + function Tl() { for ( - vo.parseBindingIdentifier.call(void 0, !1), - P.expect.call(void 0, l.TokenType.braceL); - !c.eat.call(void 0, l.TokenType.braceR) && !T.state.error; + di.parseBindingIdentifier.call(void 0, !1), + U.expect.call(void 0, T.TokenType.braceL); + !v.eat.call(void 0, T.TokenType.braceR) && !w.state.error; ) - zy(), c.eat.call(void 0, l.TokenType.comma); - } - function Pa() { - P.expect.call(void 0, l.TokenType.braceL), - en.parseBlockBody.call(void 0, l.TokenType.braceR); - } - function Sa() { - vo.parseBindingIdentifier.call(void 0, !1), - c.eat.call(void 0, l.TokenType.dot) ? Sa() : Pa(); - } - function Nu() { - P.isContextual.call(void 0, V.ContextualKeyword._global) - ? ae.parseIdentifier.call(void 0) - : c.match.call(void 0, l.TokenType.string) - ? ae.parseExprAtom.call(void 0) - : P.unexpected.call(void 0), - c.match.call(void 0, l.TokenType.braceL) - ? Pa() - : P.semicolon.call(void 0); - } - function Du() { - vo.parseImportedIdentifier.call(void 0), - P.expect.call(void 0, l.TokenType.eq), - Yy(), - P.semicolon.call(void 0); - } - ye.tsParseImportEqualsDeclaration = Du; - function Xy() { + Vy(), v.eat.call(void 0, T.TokenType.comma); + } + function yl() { + U.expect.call(void 0, T.TokenType.braceL), + Rn.parseBlockBody.call(void 0, T.TokenType.braceR); + } + function fl() { + di.parseBindingIdentifier.call(void 0, !1), + v.eat.call(void 0, T.TokenType.dot) ? fl() : yl(); + } + function Ip() { + U.isContextual.call(void 0, oe.ContextualKeyword._global) + ? _e.parseIdentifier.call(void 0) + : v.match.call(void 0, T.TokenType.string) + ? _e.parseExprAtom.call(void 0) + : U.unexpected.call(void 0), + v.match.call(void 0, T.TokenType.braceL) + ? yl() + : U.semicolon.call(void 0); + } + function Ep() { + di.parseImportedIdentifier.call(void 0), + U.expect.call(void 0, T.TokenType.eq), + $y(), + U.semicolon.call(void 0); + } + Oe.tsParseImportEqualsDeclaration = Ep; + function jy() { return ( - P.isContextual.call(void 0, V.ContextualKeyword._require) && - c.lookaheadType.call(void 0) === l.TokenType.parenL + U.isContextual.call(void 0, oe.ContextualKeyword._require) && + v.lookaheadType.call(void 0) === T.TokenType.parenL ); } - function Yy() { - Xy() ? Gy() : Xo(); + function $y() { + jy() ? qy() : Zi(); } - function Gy() { - P.expectContextual.call(void 0, V.ContextualKeyword._require), - P.expect.call(void 0, l.TokenType.parenL), - c.match.call(void 0, l.TokenType.string) || P.unexpected.call(void 0), - ae.parseLiteral.call(void 0), - P.expect.call(void 0, l.TokenType.parenR); + function qy() { + U.expectContextual.call(void 0, oe.ContextualKeyword._require), + U.expect.call(void 0, T.TokenType.parenL), + v.match.call(void 0, T.TokenType.string) || U.unexpected.call(void 0), + _e.parseLiteral.call(void 0), + U.expect.call(void 0, T.TokenType.parenR); } - function Jy() { - if (P.isLineTerminator.call(void 0)) return !1; - switch (T.state.type) { - case l.TokenType._function: { - let e = c.pushTypeContext.call(void 0, 1); - c.next.call(void 0); - let t = T.state.start; + function Ky() { + if (U.isLineTerminator.call(void 0)) return !1; + switch (w.state.type) { + case T.TokenType._function: { + let e = v.pushTypeContext.call(void 0, 1); + v.next.call(void 0); + let t = w.state.start; return ( - en.parseFunction.call(void 0, t, !0), - c.popTypeContext.call(void 0, e), + Rn.parseFunction.call(void 0, t, !0), + v.popTypeContext.call(void 0, e), !0 ); } - case l.TokenType._class: { - let e = c.pushTypeContext.call(void 0, 1); + case T.TokenType._class: { + let e = v.pushTypeContext.call(void 0, 1); return ( - en.parseClass.call(void 0, !0, !1), - c.popTypeContext.call(void 0, e), + Rn.parseClass.call(void 0, !0, !1), + v.popTypeContext.call(void 0, e), !0 ); } - case l.TokenType._const: + case T.TokenType._const: if ( - c.match.call(void 0, l.TokenType._const) && - P.isLookaheadContextual.call(void 0, V.ContextualKeyword._enum) + v.match.call(void 0, T.TokenType._const) && + U.isLookaheadContextual.call(void 0, oe.ContextualKeyword._enum) ) { - let e = c.pushTypeContext.call(void 0, 1); + let e = v.pushTypeContext.call(void 0, 1); return ( - P.expect.call(void 0, l.TokenType._const), - P.expectContextual.call(void 0, V.ContextualKeyword._enum), - (T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._enum), - Aa(), - c.popTypeContext.call(void 0, e), + U.expect.call(void 0, T.TokenType._const), + U.expectContextual.call(void 0, oe.ContextualKeyword._enum), + (w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._enum), + Tl(), + v.popTypeContext.call(void 0, e), !0 ); } - case l.TokenType._var: - case l.TokenType._let: { - let e = c.pushTypeContext.call(void 0, 1); + case T.TokenType._var: + case T.TokenType._let: { + let e = v.pushTypeContext.call(void 0, 1); return ( - en.parseVarStatement.call( + Rn.parseVarStatement.call( void 0, - T.state.type !== l.TokenType._var + w.state.type !== T.TokenType._var ), - c.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), !0 ); } - case l.TokenType.name: { - let e = c.pushTypeContext.call(void 0, 1), - t = T.state.contextualKeyword, - n = !1; + case T.TokenType.name: { + let e = v.pushTypeContext.call(void 0, 1), + t = w.state.contextualKeyword, + s = !1; return ( - t === V.ContextualKeyword._global - ? (Nu(), (n = !0)) - : (n = Zr(t, !0)), - c.popTypeContext.call(void 0, e), - n + t === oe.ContextualKeyword._global + ? (Ip(), (s = !0)) + : (s = po(t, !0)), + v.popTypeContext.call(void 0, e), + s ); } default: return !1; } } - function Iu() { - return Zr(T.state.contextualKeyword, !0); + function xp() { + return po(w.state.contextualKeyword, !0); } - function Qy(e) { + function Uy(e) { switch (e) { - case V.ContextualKeyword._declare: { - let t = T.state.tokens.length - 1; - if (Jy()) return (T.state.tokens[t].type = l.TokenType._declare), !0; + case oe.ContextualKeyword._declare: { + let t = w.state.tokens.length - 1; + if (Ky()) return (w.state.tokens[t].type = T.TokenType._declare), !0; break; } - case V.ContextualKeyword._global: - if (c.match.call(void 0, l.TokenType.braceL)) return Pa(), !0; + case oe.ContextualKeyword._global: + if (v.match.call(void 0, T.TokenType.braceL)) return yl(), !0; break; default: - return Zr(e, !1); + return po(e, !1); } return !1; } - function Zr(e, t) { + function po(e, t) { switch (e) { - case V.ContextualKeyword._abstract: - if (ko(t) && c.match.call(void 0, l.TokenType._class)) + case oe.ContextualKeyword._abstract: + if (fi(t) && v.match.call(void 0, T.TokenType._class)) return ( - (T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._abstract), - en.parseClass.call(void 0, !0, !1), + (w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._abstract), + Rn.parseClass.call(void 0, !0, !1), !0 ); break; - case V.ContextualKeyword._enum: - if (ko(t) && c.match.call(void 0, l.TokenType.name)) + case oe.ContextualKeyword._enum: + if (fi(t) && v.match.call(void 0, T.TokenType.name)) return ( - (T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._enum), - Aa(), + (w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._enum), + Tl(), !0 ); break; - case V.ContextualKeyword._interface: - if (ko(t) && c.match.call(void 0, l.TokenType.name)) { - let n = c.pushTypeContext.call(void 0, t ? 2 : 1); - return Wy(), c.popTypeContext.call(void 0, n), !0; + case oe.ContextualKeyword._interface: + if (fi(t) && v.match.call(void 0, T.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return Fy(), v.popTypeContext.call(void 0, s), !0; } break; - case V.ContextualKeyword._module: - if (ko(t)) { - if (c.match.call(void 0, l.TokenType.string)) { - let n = c.pushTypeContext.call(void 0, t ? 2 : 1); - return Nu(), c.popTypeContext.call(void 0, n), !0; - } else if (c.match.call(void 0, l.TokenType.name)) { - let n = c.pushTypeContext.call(void 0, t ? 2 : 1); - return Sa(), c.popTypeContext.call(void 0, n), !0; + case oe.ContextualKeyword._module: + if (fi(t)) { + if (v.match.call(void 0, T.TokenType.string)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return Ip(), v.popTypeContext.call(void 0, s), !0; + } else if (v.match.call(void 0, T.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return fl(), v.popTypeContext.call(void 0, s), !0; } } break; - case V.ContextualKeyword._namespace: - if (ko(t) && c.match.call(void 0, l.TokenType.name)) { - let n = c.pushTypeContext.call(void 0, t ? 2 : 1); - return Sa(), c.popTypeContext.call(void 0, n), !0; + case oe.ContextualKeyword._namespace: + if (fi(t) && v.match.call(void 0, T.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return fl(), v.popTypeContext.call(void 0, s), !0; } break; - case V.ContextualKeyword._type: - if (ko(t) && c.match.call(void 0, l.TokenType.name)) { - let n = c.pushTypeContext.call(void 0, t ? 2 : 1); - return Vy(), c.popTypeContext.call(void 0, n), !0; + case oe.ContextualKeyword._type: + if (fi(t) && v.match.call(void 0, T.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return By(), v.popTypeContext.call(void 0, s), !0; } break; default: @@ -18780,3015 +18785,3018 @@ If you need interactivity, consider converting part of this to a Client Componen } return !1; } - function ko(e) { - return e ? (c.next.call(void 0), !0) : !P.isLineTerminator.call(void 0); + function fi(e) { + return e ? (v.next.call(void 0), !0) : !U.isLineTerminator.call(void 0); } - function Zy() { - let e = T.state.snapshot(); + function Hy() { + let e = w.state.snapshot(); return ( - Qr(), - en.parseFunctionParams.call(void 0), - $y(), - P.expect.call(void 0, l.TokenType.arrow), - T.state.error - ? (T.state.restoreFromSnapshot(e), !1) - : (ae.parseFunctionBody.call(void 0, !0), !0) + uo(), + Rn.parseFunctionParams.call(void 0), + Py(), + U.expect.call(void 0, T.TokenType.arrow), + w.state.error + ? (w.state.restoreFromSnapshot(e), !1) + : (_e.parseFunctionBody.call(void 0, !0), !0) ); } - function Ra() { - T.state.type === l.TokenType.bitShiftL && - ((T.state.pos -= 1), c.finishToken.call(void 0, l.TokenType.lessThan)), - xo(); + function kl() { + w.state.type === T.TokenType.bitShiftL && + ((w.state.pos -= 1), v.finishToken.call(void 0, T.TokenType.lessThan)), + Ti(); } - function xo() { - let e = c.pushTypeContext.call(void 0, 0); + function Ti() { + let e = v.pushTypeContext.call(void 0, 0); for ( - P.expect.call(void 0, l.TokenType.lessThan); - !c.eat.call(void 0, l.TokenType.greaterThan) && !T.state.error; + U.expect.call(void 0, T.TokenType.lessThan); + !v.eat.call(void 0, T.TokenType.greaterThan) && !w.state.error; ) - Me(), c.eat.call(void 0, l.TokenType.comma); - c.popTypeContext.call(void 0, e); - } - function em() { - if (c.match.call(void 0, l.TokenType.name)) - switch (T.state.contextualKeyword) { - case V.ContextualKeyword._abstract: - case V.ContextualKeyword._declare: - case V.ContextualKeyword._enum: - case V.ContextualKeyword._interface: - case V.ContextualKeyword._module: - case V.ContextualKeyword._namespace: - case V.ContextualKeyword._type: + rt(), v.eat.call(void 0, T.TokenType.comma); + v.popTypeContext.call(void 0, e); + } + function Wy() { + if (v.match.call(void 0, T.TokenType.name)) + switch (w.state.contextualKeyword) { + case oe.ContextualKeyword._abstract: + case oe.ContextualKeyword._declare: + case oe.ContextualKeyword._enum: + case oe.ContextualKeyword._interface: + case oe.ContextualKeyword._module: + case oe.ContextualKeyword._namespace: + case oe.ContextualKeyword._type: return !0; default: break; } return !1; } - ye.tsIsDeclarationStart = em; - function tm(e, t) { + Oe.tsIsDeclarationStart = Wy; + function Gy(e, t) { if ( - (c.match.call(void 0, l.TokenType.colon) && zo(l.TokenType.colon), - !c.match.call(void 0, l.TokenType.braceL) && - P.isLineTerminator.call(void 0)) + (v.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon), + !v.match.call(void 0, T.TokenType.braceL) && + U.isLineTerminator.call(void 0)) ) { - let n = T.state.tokens.length - 1; + let s = w.state.tokens.length - 1; for ( ; - n >= 0 && - (T.state.tokens[n].start >= e || - T.state.tokens[n].type === l.TokenType._default || - T.state.tokens[n].type === l.TokenType._export); + s >= 0 && + (w.state.tokens[s].start >= e || + w.state.tokens[s].type === T.TokenType._default || + w.state.tokens[s].type === T.TokenType._export); ) - (T.state.tokens[n].isType = !0), n--; + (w.state.tokens[s].isType = !0), s--; return; } - ae.parseFunctionBody.call(void 0, !1, t); + _e.parseFunctionBody.call(void 0, !1, t); } - ye.tsParseFunctionBodyAndFinish = tm; - function nm(e, t, n) { + Oe.tsParseFunctionBodyAndFinish = Gy; + function zy(e, t, s) { if ( - !P.hasPrecedingLineBreak.call(void 0) && - c.eat.call(void 0, l.TokenType.bang) + !U.hasPrecedingLineBreak.call(void 0) && + v.eat.call(void 0, T.TokenType.bang) ) { - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType.nonNullAssertion; + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType.nonNullAssertion; return; } if ( - c.match.call(void 0, l.TokenType.lessThan) || - c.match.call(void 0, l.TokenType.bitShiftL) + v.match.call(void 0, T.TokenType.lessThan) || + v.match.call(void 0, T.TokenType.bitShiftL) ) { - let o = T.state.snapshot(); - if (!t && ae.atPossibleAsync.call(void 0) && Zy()) return; + let i = w.state.snapshot(); + if (!t && _e.atPossibleAsync.call(void 0) && Hy()) return; if ( - (Ra(), - !t && c.eat.call(void 0, l.TokenType.parenL) - ? ((T.state.tokens[T.state.tokens.length - 1].subscriptStartIndex = + (kl(), + !t && v.eat.call(void 0, T.TokenType.parenL) + ? ((w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), - ae.parseCallExpressionArguments.call(void 0)) - : c.match.call(void 0, l.TokenType.backQuote) - ? ae.parseTemplate.call(void 0) - : (T.state.type === l.TokenType.greaterThan || - (T.state.type !== l.TokenType.parenL && - T.state.type & l.TokenType.IS_EXPRESSION_START && - !P.hasPrecedingLineBreak.call(void 0))) && - P.unexpected.call(void 0), - T.state.error) + _e.parseCallExpressionArguments.call(void 0)) + : v.match.call(void 0, T.TokenType.backQuote) + ? _e.parseTemplate.call(void 0) + : (w.state.type === T.TokenType.greaterThan || + (w.state.type !== T.TokenType.parenL && + w.state.type & T.TokenType.IS_EXPRESSION_START && + !U.hasPrecedingLineBreak.call(void 0))) && + U.unexpected.call(void 0), + w.state.error) ) - T.state.restoreFromSnapshot(o); + w.state.restoreFromSnapshot(i); else return; } else !t && - c.match.call(void 0, l.TokenType.questionDot) && - c.lookaheadType.call(void 0) === l.TokenType.lessThan && - (c.next.call(void 0), - (T.state.tokens[e].isOptionalChainStart = !0), - (T.state.tokens[T.state.tokens.length - 1].subscriptStartIndex = e), - xo(), - P.expect.call(void 0, l.TokenType.parenL), - ae.parseCallExpressionArguments.call(void 0)); - ae.baseParseSubscript.call(void 0, e, t, n); - } - ye.tsParseSubscript = nm; - function om() { - if (c.eat.call(void 0, l.TokenType._import)) + v.match.call(void 0, T.TokenType.questionDot) && + v.lookaheadType.call(void 0) === T.TokenType.lessThan && + (v.next.call(void 0), + (w.state.tokens[e].isOptionalChainStart = !0), + (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), + Ti(), + U.expect.call(void 0, T.TokenType.parenL), + _e.parseCallExpressionArguments.call(void 0)); + _e.baseParseSubscript.call(void 0, e, t, s); + } + Oe.tsParseSubscript = zy; + function Xy() { + if (v.eat.call(void 0, T.TokenType._import)) return ( - P.isContextual.call(void 0, V.ContextualKeyword._type) && - c.lookaheadType.call(void 0) !== l.TokenType.eq && - P.expectContextual.call(void 0, V.ContextualKeyword._type), - Du(), + U.isContextual.call(void 0, oe.ContextualKeyword._type) && + v.lookaheadType.call(void 0) !== T.TokenType.eq && + U.expectContextual.call(void 0, oe.ContextualKeyword._type), + Ep(), !0 ); - if (c.eat.call(void 0, l.TokenType.eq)) - return ae.parseExpression.call(void 0), P.semicolon.call(void 0), !0; - if (P.eatContextual.call(void 0, V.ContextualKeyword._as)) + if (v.eat.call(void 0, T.TokenType.eq)) + return _e.parseExpression.call(void 0), U.semicolon.call(void 0), !0; + if (U.eatContextual.call(void 0, oe.ContextualKeyword._as)) return ( - P.expectContextual.call(void 0, V.ContextualKeyword._namespace), - ae.parseIdentifier.call(void 0), - P.semicolon.call(void 0), + U.expectContextual.call(void 0, oe.ContextualKeyword._namespace), + _e.parseIdentifier.call(void 0), + U.semicolon.call(void 0), !0 ); - if (P.isContextual.call(void 0, V.ContextualKeyword._type)) { - let e = c.lookaheadType.call(void 0); - (e === l.TokenType.braceL || e === l.TokenType.star) && - c.next.call(void 0); + if (U.isContextual.call(void 0, oe.ContextualKeyword._type)) { + let e = v.lookaheadType.call(void 0); + (e === T.TokenType.braceL || e === T.TokenType.star) && + v.next.call(void 0); } return !1; } - ye.tsTryParseExport = om; - function rm() { + Oe.tsTryParseExport = Xy; + function Yy() { if ( - (ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.braceR)) + (_e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.braceR)) ) { - T.state.tokens[T.state.tokens.length - 1].identifierRole = - c.IdentifierRole.ImportDeclaration; + w.state.tokens[w.state.tokens.length - 1].identifierRole = + v.IdentifierRole.ImportDeclaration; return; } if ( - (ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.braceR)) + (_e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.braceR)) ) { - (T.state.tokens[T.state.tokens.length - 1].identifierRole = - c.IdentifierRole.ImportDeclaration), - (T.state.tokens[T.state.tokens.length - 2].isType = !0), - (T.state.tokens[T.state.tokens.length - 1].isType = !0); + (w.state.tokens[w.state.tokens.length - 1].identifierRole = + v.IdentifierRole.ImportDeclaration), + (w.state.tokens[w.state.tokens.length - 2].isType = !0), + (w.state.tokens[w.state.tokens.length - 1].isType = !0); return; } if ( - (ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.braceR)) + (_e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.braceR)) ) { - (T.state.tokens[T.state.tokens.length - 3].identifierRole = - c.IdentifierRole.ImportAccess), - (T.state.tokens[T.state.tokens.length - 1].identifierRole = - c.IdentifierRole.ImportDeclaration); + (w.state.tokens[w.state.tokens.length - 3].identifierRole = + v.IdentifierRole.ImportAccess), + (w.state.tokens[w.state.tokens.length - 1].identifierRole = + v.IdentifierRole.ImportDeclaration); return; } - ae.parseIdentifier.call(void 0), - (T.state.tokens[T.state.tokens.length - 3].identifierRole = - c.IdentifierRole.ImportAccess), - (T.state.tokens[T.state.tokens.length - 1].identifierRole = - c.IdentifierRole.ImportDeclaration), - (T.state.tokens[T.state.tokens.length - 4].isType = !0), - (T.state.tokens[T.state.tokens.length - 3].isType = !0), - (T.state.tokens[T.state.tokens.length - 2].isType = !0), - (T.state.tokens[T.state.tokens.length - 1].isType = !0); - } - ye.tsParseImportSpecifier = rm; - function sm() { + _e.parseIdentifier.call(void 0), + (w.state.tokens[w.state.tokens.length - 3].identifierRole = + v.IdentifierRole.ImportAccess), + (w.state.tokens[w.state.tokens.length - 1].identifierRole = + v.IdentifierRole.ImportDeclaration), + (w.state.tokens[w.state.tokens.length - 4].isType = !0), + (w.state.tokens[w.state.tokens.length - 3].isType = !0), + (w.state.tokens[w.state.tokens.length - 2].isType = !0), + (w.state.tokens[w.state.tokens.length - 1].isType = !0); + } + Oe.tsParseImportSpecifier = Yy; + function Jy() { if ( - (ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.braceR)) + (_e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.braceR)) ) { - T.state.tokens[T.state.tokens.length - 1].identifierRole = - c.IdentifierRole.ExportAccess; + w.state.tokens[w.state.tokens.length - 1].identifierRole = + v.IdentifierRole.ExportAccess; return; } if ( - (ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.braceR)) + (_e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.braceR)) ) { - (T.state.tokens[T.state.tokens.length - 1].identifierRole = - c.IdentifierRole.ExportAccess), - (T.state.tokens[T.state.tokens.length - 2].isType = !0), - (T.state.tokens[T.state.tokens.length - 1].isType = !0); + (w.state.tokens[w.state.tokens.length - 1].identifierRole = + v.IdentifierRole.ExportAccess), + (w.state.tokens[w.state.tokens.length - 2].isType = !0), + (w.state.tokens[w.state.tokens.length - 1].isType = !0); return; } if ( - (ae.parseIdentifier.call(void 0), - c.match.call(void 0, l.TokenType.comma) || - c.match.call(void 0, l.TokenType.braceR)) + (_e.parseIdentifier.call(void 0), + v.match.call(void 0, T.TokenType.comma) || + v.match.call(void 0, T.TokenType.braceR)) ) { - T.state.tokens[T.state.tokens.length - 3].identifierRole = - c.IdentifierRole.ExportAccess; + w.state.tokens[w.state.tokens.length - 3].identifierRole = + v.IdentifierRole.ExportAccess; return; } - ae.parseIdentifier.call(void 0), - (T.state.tokens[T.state.tokens.length - 3].identifierRole = - c.IdentifierRole.ExportAccess), - (T.state.tokens[T.state.tokens.length - 4].isType = !0), - (T.state.tokens[T.state.tokens.length - 3].isType = !0), - (T.state.tokens[T.state.tokens.length - 2].isType = !0), - (T.state.tokens[T.state.tokens.length - 1].isType = !0); + _e.parseIdentifier.call(void 0), + (w.state.tokens[w.state.tokens.length - 3].identifierRole = + v.IdentifierRole.ExportAccess), + (w.state.tokens[w.state.tokens.length - 4].isType = !0), + (w.state.tokens[w.state.tokens.length - 3].isType = !0), + (w.state.tokens[w.state.tokens.length - 2].isType = !0), + (w.state.tokens[w.state.tokens.length - 1].isType = !0); } - ye.tsParseExportSpecifier = sm; - function im() { + Oe.tsParseExportSpecifier = Jy; + function Qy() { if ( - P.isContextual.call(void 0, V.ContextualKeyword._abstract) && - c.lookaheadType.call(void 0) === l.TokenType._class + U.isContextual.call(void 0, oe.ContextualKeyword._abstract) && + v.lookaheadType.call(void 0) === T.TokenType._class ) return ( - (T.state.type = l.TokenType._abstract), - c.next.call(void 0), - en.parseClass.call(void 0, !0, !0), + (w.state.type = T.TokenType._abstract), + v.next.call(void 0), + Rn.parseClass.call(void 0, !0, !0), !0 ); - if (P.isContextual.call(void 0, V.ContextualKeyword._interface)) { - let e = c.pushTypeContext.call(void 0, 2); + if (U.isContextual.call(void 0, oe.ContextualKeyword._interface)) { + let e = v.pushTypeContext.call(void 0, 2); return ( - Zr(V.ContextualKeyword._interface, !0), - c.popTypeContext.call(void 0, e), + po(oe.ContextualKeyword._interface, !0), + v.popTypeContext.call(void 0, e), !0 ); } return !1; } - ye.tsTryParseExportDefaultExpression = im; - function am() { - if (T.state.type === l.TokenType._const) { - let e = c.lookaheadTypeAndKeyword.call(void 0); + Oe.tsTryParseExportDefaultExpression = Qy; + function Zy() { + if (w.state.type === T.TokenType._const) { + let e = v.lookaheadTypeAndKeyword.call(void 0); if ( - e.type === l.TokenType.name && - e.contextualKeyword === V.ContextualKeyword._enum + e.type === T.TokenType.name && + e.contextualKeyword === oe.ContextualKeyword._enum ) return ( - P.expect.call(void 0, l.TokenType._const), - P.expectContextual.call(void 0, V.ContextualKeyword._enum), - (T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._enum), - Aa(), + U.expect.call(void 0, T.TokenType._const), + U.expectContextual.call(void 0, oe.ContextualKeyword._enum), + (w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._enum), + Tl(), !0 ); } return !1; } - ye.tsTryParseStatementContent = am; - function lm(e) { - let t = T.state.tokens.length; - bu([ - V.ContextualKeyword._abstract, - V.ContextualKeyword._readonly, - V.ContextualKeyword._declare, - V.ContextualKeyword._static, - V.ContextualKeyword._override, + Oe.tsTryParseStatementContent = Zy; + function ek(e) { + let t = w.state.tokens.length; + _p([ + oe.ContextualKeyword._abstract, + oe.ContextualKeyword._readonly, + oe.ContextualKeyword._declare, + oe.ContextualKeyword._static, + oe.ContextualKeyword._override, ]); - let n = T.state.tokens.length; - if (Au()) { + let s = w.state.tokens.length; + if (Cp()) { let r = e ? t - 1 : t; - for (let s = r; s < n; s++) T.state.tokens[s].isType = !0; + for (let a = r; a < s; a++) w.state.tokens[a].isType = !0; return !0; } return !1; } - ye.tsTryParseClassMemberWithIsStatic = lm; - function cm(e) { - Qy(e) || P.semicolon.call(void 0); + Oe.tsTryParseClassMemberWithIsStatic = ek; + function tk(e) { + Uy(e) || U.semicolon.call(void 0); } - ye.tsParseIdentifierStatement = cm; - function um() { - let e = P.eatContextual.call(void 0, V.ContextualKeyword._declare); + Oe.tsParseIdentifierStatement = tk; + function nk() { + let e = U.eatContextual.call(void 0, oe.ContextualKeyword._declare); e && - (T.state.tokens[T.state.tokens.length - 1].type = l.TokenType._declare); + (w.state.tokens[w.state.tokens.length - 1].type = T.TokenType._declare); let t = !1; - if (c.match.call(void 0, l.TokenType.name)) + if (v.match.call(void 0, T.TokenType.name)) if (e) { - let n = c.pushTypeContext.call(void 0, 2); - (t = Iu()), c.popTypeContext.call(void 0, n); - } else t = Iu(); + let s = v.pushTypeContext.call(void 0, 2); + (t = xp()), v.popTypeContext.call(void 0, s); + } else t = xp(); if (!t) if (e) { - let n = c.pushTypeContext.call(void 0, 2); - en.parseStatement.call(void 0, !0), c.popTypeContext.call(void 0, n); - } else en.parseStatement.call(void 0, !0); + let s = v.pushTypeContext.call(void 0, 2); + Rn.parseStatement.call(void 0, !0), v.popTypeContext.call(void 0, s); + } else Rn.parseStatement.call(void 0, !0); } - ye.tsParseExportDeclaration = um; - function pm(e) { + Oe.tsParseExportDeclaration = nk; + function sk(e) { if ( (e && - (c.match.call(void 0, l.TokenType.lessThan) || - c.match.call(void 0, l.TokenType.bitShiftL)) && - Ra(), - P.eatContextual.call(void 0, V.ContextualKeyword._implements)) + (v.match.call(void 0, T.TokenType.lessThan) || + v.match.call(void 0, T.TokenType.bitShiftL)) && + kl(), + U.eatContextual.call(void 0, oe.ContextualKeyword._implements)) ) { - T.state.tokens[T.state.tokens.length - 1].type = - l.TokenType._implements; - let t = c.pushTypeContext.call(void 0, 1); - Ru(), c.popTypeContext.call(void 0, t); - } - } - ye.tsAfterParseClassSuper = pm; - function dm() { - _o(); - } - ye.tsStartParseObjPropValue = dm; - function fm() { - _o(); - } - ye.tsStartParseFunctionParams = fm; - function hm() { - let e = c.pushTypeContext.call(void 0, 0); - P.hasPrecedingLineBreak.call(void 0) || - c.eat.call(void 0, l.TokenType.bang), - Yo(), - c.popTypeContext.call(void 0, e); - } - ye.tsAfterParseVarHead = hm; - function Tm() { - c.match.call(void 0, l.TokenType.colon) && Go(); - } - ye.tsStartParseAsyncArrowFromCallExpression = Tm; - function ym(e, t) { - return T.isJSXEnabled ? Ou(e, t) : Mu(e, t); - } - ye.tsParseMaybeAssign = ym; - function Ou(e, t) { - if (!c.match.call(void 0, l.TokenType.lessThan)) - return ae.baseParseMaybeAssign.call(void 0, e, t); - let n = T.state.snapshot(), - o = ae.baseParseMaybeAssign.call(void 0, e, t); - if (T.state.error) T.state.restoreFromSnapshot(n); - else return o; - return ( - (T.state.type = l.TokenType.typeParameterStart), - Qr(), - (o = ae.baseParseMaybeAssign.call(void 0, e, t)), - o || P.unexpected.call(void 0), - o + w.state.tokens[w.state.tokens.length - 1].type = + T.TokenType._implements; + let t = v.pushTypeContext.call(void 0, 1); + Sp(), v.popTypeContext.call(void 0, t); + } + } + Oe.tsAfterParseClassSuper = sk; + function ik() { + mi(); + } + Oe.tsStartParseObjPropValue = ik; + function rk() { + mi(); + } + Oe.tsStartParseFunctionParams = rk; + function ok() { + let e = v.pushTypeContext.call(void 0, 0); + U.hasPrecedingLineBreak.call(void 0) || + v.eat.call(void 0, T.TokenType.bang), + er(), + v.popTypeContext.call(void 0, e); + } + Oe.tsAfterParseVarHead = ok; + function ak() { + v.match.call(void 0, T.TokenType.colon) && tr(); + } + Oe.tsStartParseAsyncArrowFromCallExpression = ak; + function lk(e, t) { + return w.isJSXEnabled ? Ap(e, t) : Pp(e, t); + } + Oe.tsParseMaybeAssign = lk; + function Ap(e, t) { + if (!v.match.call(void 0, T.TokenType.lessThan)) + return _e.baseParseMaybeAssign.call(void 0, e, t); + let s = w.state.snapshot(), + i = _e.baseParseMaybeAssign.call(void 0, e, t); + if (w.state.error) w.state.restoreFromSnapshot(s); + else return i; + return ( + (w.state.type = T.TokenType.typeParameterStart), + uo(), + (i = _e.baseParseMaybeAssign.call(void 0, e, t)), + i || U.unexpected.call(void 0), + i ); } - ye.tsParseMaybeAssignWithJSX = Ou; - function Mu(e, t) { - if (!c.match.call(void 0, l.TokenType.lessThan)) - return ae.baseParseMaybeAssign.call(void 0, e, t); - let n = T.state.snapshot(); - Qr(); - let o = ae.baseParseMaybeAssign.call(void 0, e, t); - if ((o || P.unexpected.call(void 0), T.state.error)) - T.state.restoreFromSnapshot(n); - else return o; - return ae.baseParseMaybeAssign.call(void 0, e, t); - } - ye.tsParseMaybeAssignWithoutJSX = Mu; - function mm() { - if (c.match.call(void 0, l.TokenType.colon)) { - let e = T.state.snapshot(); - zo(l.TokenType.colon), - P.canInsertSemicolon.call(void 0) && P.unexpected.call(void 0), - c.match.call(void 0, l.TokenType.arrow) || P.unexpected.call(void 0), - T.state.error && T.state.restoreFromSnapshot(e); - } - return c.eat.call(void 0, l.TokenType.arrow); - } - ye.tsParseArrow = mm; - function km() { - let e = c.pushTypeContext.call(void 0, 0); - c.eat.call(void 0, l.TokenType.question), - Yo(), - c.popTypeContext.call(void 0, e); + Oe.tsParseMaybeAssignWithJSX = Ap; + function Pp(e, t) { + if (!v.match.call(void 0, T.TokenType.lessThan)) + return _e.baseParseMaybeAssign.call(void 0, e, t); + let s = w.state.snapshot(); + uo(); + let i = _e.baseParseMaybeAssign.call(void 0, e, t); + if ((i || U.unexpected.call(void 0), w.state.error)) + w.state.restoreFromSnapshot(s); + else return i; + return _e.baseParseMaybeAssign.call(void 0, e, t); + } + Oe.tsParseMaybeAssignWithoutJSX = Pp; + function ck() { + if (v.match.call(void 0, T.TokenType.colon)) { + let e = w.state.snapshot(); + Qi(T.TokenType.colon), + U.canInsertSemicolon.call(void 0) && U.unexpected.call(void 0), + v.match.call(void 0, T.TokenType.arrow) || U.unexpected.call(void 0), + w.state.error && w.state.restoreFromSnapshot(e); + } + return v.eat.call(void 0, T.TokenType.arrow); } - ye.tsParseAssignableListItemTypes = km; - function vm() { - (c.match.call(void 0, l.TokenType.lessThan) || - c.match.call(void 0, l.TokenType.bitShiftL)) && - Ra(), - en.baseParseMaybeDecoratorArguments.call(void 0); + Oe.tsParseArrow = ck; + function uk() { + let e = v.pushTypeContext.call(void 0, 0); + v.eat.call(void 0, T.TokenType.question), + er(), + v.popTypeContext.call(void 0, e); + } + Oe.tsParseAssignableListItemTypes = uk; + function pk() { + (v.match.call(void 0, T.TokenType.lessThan) || + v.match.call(void 0, T.TokenType.bitShiftL)) && + kl(), + Rn.baseParseMaybeDecoratorArguments.call(void 0); } - ye.tsParseMaybeDecoratorArguments = vm; + Oe.tsParseMaybeDecoratorArguments = pk; }); - var Na = H((ts) => { + var vl = Z((fo) => { 'use strict'; - Object.defineProperty(ts, '__esModule', {value: !0}); - var de = Ve(), - ve = ce(), - Z = Ct(), - es = Xn(), - Pn = Sn(), - Be = gt(), - Lu = fo(), - _m = mo(); - function xm() { + Object.defineProperty(fo, '__esModule', {value: !0}); + var Se = xt(), + Me = be(), + fe = Zt(), + ho = Ns(), + fs = cs(), + at = Qt(), + Np = li(), + hk = hi(); + function fk() { let e = !1, t = !1; for (;;) { - if (Z.state.pos >= Z.input.length) { - Pn.unexpected.call(void 0, 'Unterminated JSX contents'); + if (fe.state.pos >= fe.input.length) { + fs.unexpected.call(void 0, 'Unterminated JSX contents'); return; } - let n = Z.input.charCodeAt(Z.state.pos); - if (n === Be.charCodes.lessThan || n === Be.charCodes.leftCurlyBrace) { - if (Z.state.pos === Z.state.start) { - if (n === Be.charCodes.lessThan) { - Z.state.pos++, - de.finishToken.call(void 0, ve.TokenType.jsxTagStart); + let s = fe.input.charCodeAt(fe.state.pos); + if (s === at.charCodes.lessThan || s === at.charCodes.leftCurlyBrace) { + if (fe.state.pos === fe.state.start) { + if (s === at.charCodes.lessThan) { + fe.state.pos++, + Se.finishToken.call(void 0, Me.TokenType.jsxTagStart); return; } - de.getTokenFromCode.call(void 0, n); + Se.getTokenFromCode.call(void 0, s); return; } e && !t - ? de.finishToken.call(void 0, ve.TokenType.jsxEmptyText) - : de.finishToken.call(void 0, ve.TokenType.jsxText); + ? Se.finishToken.call(void 0, Me.TokenType.jsxEmptyText) + : Se.finishToken.call(void 0, Me.TokenType.jsxText); return; } - n === Be.charCodes.lineFeed + s === at.charCodes.lineFeed ? (e = !0) - : n !== Be.charCodes.space && - n !== Be.charCodes.carriageReturn && - n !== Be.charCodes.tab && + : s !== at.charCodes.space && + s !== at.charCodes.carriageReturn && + s !== at.charCodes.tab && (t = !0), - Z.state.pos++; + fe.state.pos++; } } - function gm(e) { - for (Z.state.pos++; ; ) { - if (Z.state.pos >= Z.input.length) { - Pn.unexpected.call(void 0, 'Unterminated string constant'); + function dk(e) { + for (fe.state.pos++; ; ) { + if (fe.state.pos >= fe.input.length) { + fs.unexpected.call(void 0, 'Unterminated string constant'); return; } - if (Z.input.charCodeAt(Z.state.pos) === e) { - Z.state.pos++; + if (fe.input.charCodeAt(fe.state.pos) === e) { + fe.state.pos++; break; } - Z.state.pos++; + fe.state.pos++; } - de.finishToken.call(void 0, ve.TokenType.string); + Se.finishToken.call(void 0, Me.TokenType.string); } - function Cm() { + function mk() { let e; do { - if (Z.state.pos > Z.input.length) { - Pn.unexpected.call(void 0, 'Unexpectedly reached the end of input.'); + if (fe.state.pos > fe.input.length) { + fs.unexpected.call(void 0, 'Unexpectedly reached the end of input.'); return; } - e = Z.input.charCodeAt(++Z.state.pos); - } while (Lu.IS_IDENTIFIER_CHAR[e] || e === Be.charCodes.dash); - de.finishToken.call(void 0, ve.TokenType.jsxName); + e = fe.input.charCodeAt(++fe.state.pos); + } while (Np.IS_IDENTIFIER_CHAR[e] || e === at.charCodes.dash); + Se.finishToken.call(void 0, Me.TokenType.jsxName); } - function Da() { - Ot(); + function xl() { + dn(); } - function Fu(e) { - if ((Da(), !de.eat.call(void 0, ve.TokenType.colon))) { - Z.state.tokens[Z.state.tokens.length - 1].identifierRole = e; + function Rp(e) { + if ((xl(), !Se.eat.call(void 0, Me.TokenType.colon))) { + fe.state.tokens[fe.state.tokens.length - 1].identifierRole = e; return; } - Da(); + xl(); } - function $u() { - let e = Z.state.tokens.length; - Fu(de.IdentifierRole.Access); + function Lp() { + let e = fe.state.tokens.length; + Rp(Se.IdentifierRole.Access); let t = !1; - for (; de.match.call(void 0, ve.TokenType.dot); ) (t = !0), Ot(), Da(); + for (; Se.match.call(void 0, Me.TokenType.dot); ) (t = !0), dn(), xl(); if (!t) { - let n = Z.state.tokens[e], - o = Z.input.charCodeAt(n.start); - o >= Be.charCodes.lowercaseA && - o <= Be.charCodes.lowercaseZ && - (n.identifierRole = null); + let s = fe.state.tokens[e], + i = fe.input.charCodeAt(s.start); + i >= at.charCodes.lowercaseA && + i <= at.charCodes.lowercaseZ && + (s.identifierRole = null); } } - function wm() { - switch (Z.state.type) { - case ve.TokenType.braceL: - de.next.call(void 0), es.parseExpression.call(void 0), Ot(); + function Tk() { + switch (fe.state.type) { + case Me.TokenType.braceL: + Se.next.call(void 0), ho.parseExpression.call(void 0), dn(); return; - case ve.TokenType.jsxTagStart: - ju(), Ot(); + case Me.TokenType.jsxTagStart: + Dp(), dn(); return; - case ve.TokenType.string: - Ot(); + case Me.TokenType.string: + dn(); return; default: - Pn.unexpected.call( + fs.unexpected.call( void 0, 'JSX value should be either an expression or a quoted JSX text' ); } } - function Im() { - Pn.expect.call(void 0, ve.TokenType.ellipsis), - es.parseExpression.call(void 0); + function yk() { + fs.expect.call(void 0, Me.TokenType.ellipsis), + ho.parseExpression.call(void 0); } - function Sm(e) { - if (de.match.call(void 0, ve.TokenType.jsxTagEnd)) return !1; - $u(), Z.isTypeScriptEnabled && _m.tsTryParseJSXTypeArgument.call(void 0); + function kk(e) { + if (Se.match.call(void 0, Me.TokenType.jsxTagEnd)) return !1; + Lp(), fe.isTypeScriptEnabled && hk.tsTryParseJSXTypeArgument.call(void 0); let t = !1; for ( ; - !de.match.call(void 0, ve.TokenType.slash) && - !de.match.call(void 0, ve.TokenType.jsxTagEnd) && - !Z.state.error; + !Se.match.call(void 0, Me.TokenType.slash) && + !Se.match.call(void 0, Me.TokenType.jsxTagEnd) && + !fe.state.error; ) { - if (de.eat.call(void 0, ve.TokenType.braceL)) { + if (Se.eat.call(void 0, Me.TokenType.braceL)) { (t = !0), - Pn.expect.call(void 0, ve.TokenType.ellipsis), - es.parseMaybeAssign.call(void 0), - Ot(); + fs.expect.call(void 0, Me.TokenType.ellipsis), + ho.parseMaybeAssign.call(void 0), + dn(); continue; } t && - Z.state.end - Z.state.start === 3 && - Z.input.charCodeAt(Z.state.start) === Be.charCodes.lowercaseK && - Z.input.charCodeAt(Z.state.start + 1) === Be.charCodes.lowercaseE && - Z.input.charCodeAt(Z.state.start + 2) === Be.charCodes.lowercaseY && - (Z.state.tokens[e].jsxRole = de.JSXRole.KeyAfterPropSpread), - Fu(de.IdentifierRole.ObjectKey), - de.match.call(void 0, ve.TokenType.eq) && (Ot(), wm()); + fe.state.end - fe.state.start === 3 && + fe.input.charCodeAt(fe.state.start) === at.charCodes.lowercaseK && + fe.input.charCodeAt(fe.state.start + 1) === at.charCodes.lowercaseE && + fe.input.charCodeAt(fe.state.start + 2) === at.charCodes.lowercaseY && + (fe.state.tokens[e].jsxRole = Se.JSXRole.KeyAfterPropSpread), + Rp(Se.IdentifierRole.ObjectKey), + Se.match.call(void 0, Me.TokenType.eq) && (dn(), Tk()); } - let n = de.match.call(void 0, ve.TokenType.slash); - return n && Ot(), n; + let s = Se.match.call(void 0, Me.TokenType.slash); + return s && dn(), s; } - function bm() { - de.match.call(void 0, ve.TokenType.jsxTagEnd) || $u(); + function vk() { + Se.match.call(void 0, Me.TokenType.jsxTagEnd) || Lp(); } - function Bu() { - let e = Z.state.tokens.length - 1; - Z.state.tokens[e].jsxRole = de.JSXRole.NoChildren; + function Op() { + let e = fe.state.tokens.length - 1; + fe.state.tokens[e].jsxRole = Se.JSXRole.NoChildren; let t = 0; - if (!Sm(e)) - for (go(); ; ) - switch (Z.state.type) { - case ve.TokenType.jsxTagStart: - if ((Ot(), de.match.call(void 0, ve.TokenType.slash))) { - Ot(), - bm(), - Z.state.tokens[e].jsxRole !== de.JSXRole.KeyAfterPropSpread && + if (!kk(e)) + for (yi(); ; ) + switch (fe.state.type) { + case Me.TokenType.jsxTagStart: + if ((dn(), Se.match.call(void 0, Me.TokenType.slash))) { + dn(), + vk(), + fe.state.tokens[e].jsxRole !== + Se.JSXRole.KeyAfterPropSpread && (t === 1 - ? (Z.state.tokens[e].jsxRole = de.JSXRole.OneChild) + ? (fe.state.tokens[e].jsxRole = Se.JSXRole.OneChild) : t > 1 && - (Z.state.tokens[e].jsxRole = - de.JSXRole.StaticChildren)); + (fe.state.tokens[e].jsxRole = + Se.JSXRole.StaticChildren)); return; } - t++, Bu(), go(); + t++, Op(), yi(); break; - case ve.TokenType.jsxText: - t++, go(); + case Me.TokenType.jsxText: + t++, yi(); break; - case ve.TokenType.jsxEmptyText: - go(); + case Me.TokenType.jsxEmptyText: + yi(); break; - case ve.TokenType.braceL: - de.next.call(void 0), - de.match.call(void 0, ve.TokenType.ellipsis) - ? (Im(), go(), (t += 2)) - : (de.match.call(void 0, ve.TokenType.braceR) || - (t++, es.parseExpression.call(void 0)), - go()); + case Me.TokenType.braceL: + Se.next.call(void 0), + Se.match.call(void 0, Me.TokenType.ellipsis) + ? (yk(), yi(), (t += 2)) + : (Se.match.call(void 0, Me.TokenType.braceR) || + (t++, ho.parseExpression.call(void 0)), + yi()); break; default: - Pn.unexpected.call(void 0); + fs.unexpected.call(void 0); return; } } - function ju() { - Ot(), Bu(); + function Dp() { + dn(), Op(); } - ts.jsxParseElement = ju; - function Ot() { - Z.state.tokens.push(new de.Token()), - de.skipSpace.call(void 0), - (Z.state.start = Z.state.pos); - let e = Z.input.charCodeAt(Z.state.pos); - if (Lu.IS_IDENTIFIER_START[e]) Cm(); + fo.jsxParseElement = Dp; + function dn() { + fe.state.tokens.push(new Se.Token()), + Se.skipSpace.call(void 0), + (fe.state.start = fe.state.pos); + let e = fe.input.charCodeAt(fe.state.pos); + if (Np.IS_IDENTIFIER_START[e]) mk(); else if ( - e === Be.charCodes.quotationMark || - e === Be.charCodes.apostrophe + e === at.charCodes.quotationMark || + e === at.charCodes.apostrophe ) - gm(e); + dk(e); else - switch ((++Z.state.pos, e)) { - case Be.charCodes.greaterThan: - de.finishToken.call(void 0, ve.TokenType.jsxTagEnd); + switch ((++fe.state.pos, e)) { + case at.charCodes.greaterThan: + Se.finishToken.call(void 0, Me.TokenType.jsxTagEnd); break; - case Be.charCodes.lessThan: - de.finishToken.call(void 0, ve.TokenType.jsxTagStart); + case at.charCodes.lessThan: + Se.finishToken.call(void 0, Me.TokenType.jsxTagStart); break; - case Be.charCodes.slash: - de.finishToken.call(void 0, ve.TokenType.slash); + case at.charCodes.slash: + Se.finishToken.call(void 0, Me.TokenType.slash); break; - case Be.charCodes.equalsTo: - de.finishToken.call(void 0, ve.TokenType.eq); + case at.charCodes.equalsTo: + Se.finishToken.call(void 0, Me.TokenType.eq); break; - case Be.charCodes.leftCurlyBrace: - de.finishToken.call(void 0, ve.TokenType.braceL); + case at.charCodes.leftCurlyBrace: + Se.finishToken.call(void 0, Me.TokenType.braceL); break; - case Be.charCodes.dot: - de.finishToken.call(void 0, ve.TokenType.dot); + case at.charCodes.dot: + Se.finishToken.call(void 0, Me.TokenType.dot); break; - case Be.charCodes.colon: - de.finishToken.call(void 0, ve.TokenType.colon); + case at.charCodes.colon: + Se.finishToken.call(void 0, Me.TokenType.colon); break; default: - Pn.unexpected.call(void 0); + fs.unexpected.call(void 0); } } - ts.nextJSXTagToken = Ot; - function go() { - Z.state.tokens.push(new de.Token()), (Z.state.start = Z.state.pos), xm(); + fo.nextJSXTagToken = dn; + function yi() { + fe.state.tokens.push(new Se.Token()), + (fe.state.start = fe.state.pos), + fk(); } }); - var qu = H((os) => { + var Fp = Z((To) => { 'use strict'; - Object.defineProperty(os, '__esModule', {value: !0}); - var ns = Ve(), - Co = ce(), - Ku = Ct(), - Em = Xn(), - Am = Vo(), - Pm = mo(); - function Rm(e) { - if (ns.match.call(void 0, Co.TokenType.question)) { - let t = ns.lookaheadType.call(void 0); + Object.defineProperty(To, '__esModule', {value: !0}); + var mo = xt(), + ki = be(), + Mp = Zt(), + xk = Ns(), + gk = Ji(), + _k = hi(); + function bk(e) { + if (mo.match.call(void 0, ki.TokenType.question)) { + let t = mo.lookaheadType.call(void 0); if ( - t === Co.TokenType.colon || - t === Co.TokenType.comma || - t === Co.TokenType.parenR + t === ki.TokenType.colon || + t === ki.TokenType.comma || + t === ki.TokenType.parenR ) return; } - Em.baseParseConditional.call(void 0, e); + xk.baseParseConditional.call(void 0, e); } - os.typedParseConditional = Rm; - function Nm() { - ns.eatTypeToken.call(void 0, Co.TokenType.question), - ns.match.call(void 0, Co.TokenType.colon) && - (Ku.isTypeScriptEnabled - ? Pm.tsParseTypeAnnotation.call(void 0) - : Ku.isFlowEnabled && Am.flowParseTypeAnnotation.call(void 0)); + To.typedParseConditional = bk; + function Ck() { + mo.eatTypeToken.call(void 0, ki.TokenType.question), + mo.match.call(void 0, ki.TokenType.colon) && + (Mp.isTypeScriptEnabled + ? _k.tsParseTypeAnnotation.call(void 0) + : Mp.isFlowEnabled && gk.flowParseTypeAnnotation.call(void 0)); } - os.typedParseParenItem = Nm; + To.typedParseParenItem = Ck; }); - var Xn = H((Re) => { + var Ns = Z((et) => { 'use strict'; - Object.defineProperty(Re, '__esModule', {value: !0}); - var Tn = Vo(), - Dm = Na(), - Hu = qu(), - Nn = mo(), - E = Ve(), - fn = Ge(), - Uu = Pr(), - C = ce(), - Wu = gt(), - Om = fo(), - w = Ct(), - Rn = Gr(), - Ut = Jo(), - fe = Sn(), - is = class { + Object.defineProperty(et, '__esModule', {value: !0}); + var Yn = Ji(), + wk = vl(), + Bp = Fp(), + ms = hi(), + K = xt(), + zn = It(), + Vp = qr(), + B = be(), + jp = Qt(), + Sk = li(), + j = Zt(), + ds = lo(), + gn = nr(), + Pe = cs(), + vo = class { constructor(t) { this.stop = t; } }; - Re.StopState = is; - function Qo(e = !1) { - if ((Mt(e), E.match.call(void 0, C.TokenType.comma))) - for (; E.eat.call(void 0, C.TokenType.comma); ) Mt(e); - } - Re.parseExpression = Qo; - function Mt(e = !1, t = !1) { - return w.isTypeScriptEnabled - ? Nn.tsParseMaybeAssign.call(void 0, e, t) - : w.isFlowEnabled - ? Tn.flowParseMaybeAssign.call(void 0, e, t) - : Vu(e, t); - } - Re.parseMaybeAssign = Mt; - function Vu(e, t) { - if (E.match.call(void 0, C.TokenType._yield)) return Jm(), !1; - (E.match.call(void 0, C.TokenType.parenL) || - E.match.call(void 0, C.TokenType.name) || - E.match.call(void 0, C.TokenType._yield)) && - (w.state.potentialArrowAt = w.state.start); - let n = Mm(e); + et.StopState = vo; + function sr(e = !1) { + if ((mn(e), K.match.call(void 0, B.TokenType.comma))) + for (; K.eat.call(void 0, B.TokenType.comma); ) mn(e); + } + et.parseExpression = sr; + function mn(e = !1, t = !1) { + return j.isTypeScriptEnabled + ? ms.tsParseMaybeAssign.call(void 0, e, t) + : j.isFlowEnabled + ? Yn.flowParseMaybeAssign.call(void 0, e, t) + : $p(e, t); + } + et.parseMaybeAssign = mn; + function $p(e, t) { + if (K.match.call(void 0, B.TokenType._yield)) return Kk(), !1; + (K.match.call(void 0, B.TokenType.parenL) || + K.match.call(void 0, B.TokenType.name) || + K.match.call(void 0, B.TokenType._yield)) && + (j.state.potentialArrowAt = j.state.start); + let s = Ik(e); return ( - t && $a(), - w.state.type & C.TokenType.IS_ASSIGN - ? (E.next.call(void 0), Mt(e), !1) - : n + t && wl(), + j.state.type & B.TokenType.IS_ASSIGN + ? (K.next.call(void 0), mn(e), !1) + : s ); } - Re.baseParseMaybeAssign = Vu; - function Mm(e) { - return Fm(e) ? !0 : (Lm(e), !1); + et.baseParseMaybeAssign = $p; + function Ik(e) { + return Ak(e) ? !0 : (Ek(e), !1); } - function Lm(e) { - w.isTypeScriptEnabled || w.isFlowEnabled - ? Hu.typedParseConditional.call(void 0, e) - : zu(e); + function Ek(e) { + j.isTypeScriptEnabled || j.isFlowEnabled + ? Bp.typedParseConditional.call(void 0, e) + : qp(e); } - function zu(e) { - E.eat.call(void 0, C.TokenType.question) && - (Mt(), fe.expect.call(void 0, C.TokenType.colon), Mt(e)); + function qp(e) { + K.eat.call(void 0, B.TokenType.question) && + (mn(), Pe.expect.call(void 0, B.TokenType.colon), mn(e)); } - Re.baseParseConditional = zu; - function Fm(e) { - let t = w.state.tokens.length; - return er() ? !0 : (rs(t, -1, e), !1); + et.baseParseConditional = qp; + function Ak(e) { + let t = j.state.tokens.length; + return rr() ? !0 : (yo(t, -1, e), !1); } - function rs(e, t, n) { + function yo(e, t, s) { if ( - w.isTypeScriptEnabled && - (C.TokenType._in & C.TokenType.PRECEDENCE_MASK) > t && - !fe.hasPrecedingLineBreak.call(void 0) && - (fe.eatContextual.call(void 0, fn.ContextualKeyword._as) || - fe.eatContextual.call(void 0, fn.ContextualKeyword._satisfies)) + j.isTypeScriptEnabled && + (B.TokenType._in & B.TokenType.PRECEDENCE_MASK) > t && + !Pe.hasPrecedingLineBreak.call(void 0) && + (Pe.eatContextual.call(void 0, zn.ContextualKeyword._as) || + Pe.eatContextual.call(void 0, zn.ContextualKeyword._satisfies)) ) { - let r = E.pushTypeContext.call(void 0, 1); - Nn.tsParseType.call(void 0), - E.popTypeContext.call(void 0, r), - E.rescan_gt.call(void 0), - rs(e, t, n); + let r = K.pushTypeContext.call(void 0, 1); + ms.tsParseType.call(void 0), + K.popTypeContext.call(void 0, r), + K.rescan_gt.call(void 0), + yo(e, t, s); return; } - let o = w.state.type & C.TokenType.PRECEDENCE_MASK; - if (o > 0 && (!n || !E.match.call(void 0, C.TokenType._in)) && o > t) { - let r = w.state.type; - E.next.call(void 0), - r === C.TokenType.nullishCoalescing && - (w.state.tokens[w.state.tokens.length - 1].nullishStartIndex = e); - let s = w.state.tokens.length; - er(), - rs(s, r & C.TokenType.IS_RIGHT_ASSOCIATIVE ? o - 1 : o, n), - r === C.TokenType.nullishCoalescing && - (w.state.tokens[e].numNullishCoalesceStarts++, - w.state.tokens[w.state.tokens.length - 1].numNullishCoalesceEnds++), - rs(e, t, n); + let i = j.state.type & B.TokenType.PRECEDENCE_MASK; + if (i > 0 && (!s || !K.match.call(void 0, B.TokenType._in)) && i > t) { + let r = j.state.type; + K.next.call(void 0), + r === B.TokenType.nullishCoalescing && + (j.state.tokens[j.state.tokens.length - 1].nullishStartIndex = e); + let a = j.state.tokens.length; + rr(), + yo(a, r & B.TokenType.IS_RIGHT_ASSOCIATIVE ? i - 1 : i, s), + r === B.TokenType.nullishCoalescing && + (j.state.tokens[e].numNullishCoalesceStarts++, + j.state.tokens[j.state.tokens.length - 1].numNullishCoalesceEnds++), + yo(e, t, s); } } - function er() { + function rr() { if ( - w.isTypeScriptEnabled && - !w.isJSXEnabled && - E.eat.call(void 0, C.TokenType.lessThan) + j.isTypeScriptEnabled && + !j.isJSXEnabled && + K.eat.call(void 0, B.TokenType.lessThan) ) - return Nn.tsParseTypeAssertion.call(void 0), !1; + return ms.tsParseTypeAssertion.call(void 0), !1; if ( - fe.isContextual.call(void 0, fn.ContextualKeyword._module) && - E.lookaheadCharCode.call(void 0) === Wu.charCodes.leftCurlyBrace && - !fe.hasFollowingLineBreak.call(void 0) + Pe.isContextual.call(void 0, zn.ContextualKeyword._module) && + K.lookaheadCharCode.call(void 0) === jp.charCodes.leftCurlyBrace && + !Pe.hasFollowingLineBreak.call(void 0) ) - return Qm(), !1; - if (w.state.type & C.TokenType.IS_PREFIX) - return E.next.call(void 0), er(), !1; - if (Xu()) return !0; + return Uk(), !1; + if (j.state.type & B.TokenType.IS_PREFIX) + return K.next.call(void 0), rr(), !1; + if (Kp()) return !0; for ( ; - w.state.type & C.TokenType.IS_POSTFIX && - !fe.canInsertSemicolon.call(void 0); + j.state.type & B.TokenType.IS_POSTFIX && + !Pe.canInsertSemicolon.call(void 0); ) - w.state.type === C.TokenType.preIncDec && - (w.state.type = C.TokenType.postIncDec), - E.next.call(void 0); + j.state.type === B.TokenType.preIncDec && + (j.state.type = B.TokenType.postIncDec), + K.next.call(void 0); return !1; } - Re.parseMaybeUnary = er; - function Xu() { - let e = w.state.tokens.length; - return cs() + et.parseMaybeUnary = rr; + function Kp() { + let e = j.state.tokens.length; + return _o() ? !0 - : (La(e), - w.state.tokens.length > e && - w.state.tokens[e].isOptionalChainStart && - (w.state.tokens[w.state.tokens.length - 1].isOptionalChainEnd = !0), + : (bl(e), + j.state.tokens.length > e && + j.state.tokens[e].isOptionalChainStart && + (j.state.tokens[j.state.tokens.length - 1].isOptionalChainEnd = !0), !1); } - Re.parseExprSubscripts = Xu; - function La(e, t = !1) { - w.isFlowEnabled ? Tn.flowParseSubscripts.call(void 0, e, t) : Yu(e, t); - } - function Yu(e, t = !1) { - let n = new is(!1); - do $m(e, t, n); - while (!n.stop && !w.state.error); - } - Re.baseParseSubscripts = Yu; - function $m(e, t, n) { - w.isTypeScriptEnabled - ? Nn.tsParseSubscript.call(void 0, e, t, n) - : w.isFlowEnabled - ? Tn.flowParseSubscript.call(void 0, e, t, n) - : Gu(e, t, n); - } - function Gu(e, t, n) { - if (!t && E.eat.call(void 0, C.TokenType.doubleColon)) - Fa(), (n.stop = !0), La(e, t); - else if (E.match.call(void 0, C.TokenType.questionDot)) { + et.parseExprSubscripts = Kp; + function bl(e, t = !1) { + j.isFlowEnabled ? Yn.flowParseSubscripts.call(void 0, e, t) : Up(e, t); + } + function Up(e, t = !1) { + let s = new vo(!1); + do Pk(e, t, s); + while (!s.stop && !j.state.error); + } + et.baseParseSubscripts = Up; + function Pk(e, t, s) { + j.isTypeScriptEnabled + ? ms.tsParseSubscript.call(void 0, e, t, s) + : j.isFlowEnabled + ? Yn.flowParseSubscript.call(void 0, e, t, s) + : Hp(e, t, s); + } + function Hp(e, t, s) { + if (!t && K.eat.call(void 0, B.TokenType.doubleColon)) + Cl(), (s.stop = !0), bl(e, t); + else if (K.match.call(void 0, B.TokenType.questionDot)) { if ( - ((w.state.tokens[e].isOptionalChainStart = !0), - t && E.lookaheadType.call(void 0) === C.TokenType.parenL) + ((j.state.tokens[e].isOptionalChainStart = !0), + t && K.lookaheadType.call(void 0) === B.TokenType.parenL) ) { - n.stop = !0; + s.stop = !0; return; } - E.next.call(void 0), - (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), - E.eat.call(void 0, C.TokenType.bracketL) - ? (Qo(), fe.expect.call(void 0, C.TokenType.bracketR)) - : E.eat.call(void 0, C.TokenType.parenL) - ? ss() - : as(); - } else if (E.eat.call(void 0, C.TokenType.dot)) - (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), - as(); - else if (E.eat.call(void 0, C.TokenType.bracketL)) - (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), - Qo(), - fe.expect.call(void 0, C.TokenType.bracketR); - else if (!t && E.match.call(void 0, C.TokenType.parenL)) - if (Ju()) { - let o = w.state.snapshot(), - r = w.state.tokens.length; - E.next.call(void 0), - (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e); - let s = w.getNextContextId.call(void 0); - (w.state.tokens[w.state.tokens.length - 1].contextId = s), - ss(), - (w.state.tokens[w.state.tokens.length - 1].contextId = s), - Bm() && - (w.state.restoreFromSnapshot(o), - (n.stop = !0), - w.state.scopeDepth++, - Ut.parseFunctionParams.call(void 0), - jm(r)); + K.next.call(void 0), + (j.state.tokens[j.state.tokens.length - 1].subscriptStartIndex = e), + K.eat.call(void 0, B.TokenType.bracketL) + ? (sr(), Pe.expect.call(void 0, B.TokenType.bracketR)) + : K.eat.call(void 0, B.TokenType.parenL) + ? ko() + : xo(); + } else if (K.eat.call(void 0, B.TokenType.dot)) + (j.state.tokens[j.state.tokens.length - 1].subscriptStartIndex = e), + xo(); + else if (K.eat.call(void 0, B.TokenType.bracketL)) + (j.state.tokens[j.state.tokens.length - 1].subscriptStartIndex = e), + sr(), + Pe.expect.call(void 0, B.TokenType.bracketR); + else if (!t && K.match.call(void 0, B.TokenType.parenL)) + if (Wp()) { + let i = j.state.snapshot(), + r = j.state.tokens.length; + K.next.call(void 0), + (j.state.tokens[j.state.tokens.length - 1].subscriptStartIndex = e); + let a = j.getNextContextId.call(void 0); + (j.state.tokens[j.state.tokens.length - 1].contextId = a), + ko(), + (j.state.tokens[j.state.tokens.length - 1].contextId = a), + Nk() && + (j.state.restoreFromSnapshot(i), + (s.stop = !0), + j.state.scopeDepth++, + gn.parseFunctionParams.call(void 0), + Rk(r)); } else { - E.next.call(void 0), - (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e); - let o = w.getNextContextId.call(void 0); - (w.state.tokens[w.state.tokens.length - 1].contextId = o), - ss(), - (w.state.tokens[w.state.tokens.length - 1].contextId = o); + K.next.call(void 0), + (j.state.tokens[j.state.tokens.length - 1].subscriptStartIndex = e); + let i = j.getNextContextId.call(void 0); + (j.state.tokens[j.state.tokens.length - 1].contextId = i), + ko(), + (j.state.tokens[j.state.tokens.length - 1].contextId = i); } - else E.match.call(void 0, C.TokenType.backQuote) ? Ba() : (n.stop = !0); + else K.match.call(void 0, B.TokenType.backQuote) ? Sl() : (s.stop = !0); } - Re.baseParseSubscript = Gu; - function Ju() { + et.baseParseSubscript = Hp; + function Wp() { return ( - w.state.tokens[w.state.tokens.length - 1].contextualKeyword === - fn.ContextualKeyword._async && !fe.canInsertSemicolon.call(void 0) + j.state.tokens[j.state.tokens.length - 1].contextualKeyword === + zn.ContextualKeyword._async && !Pe.canInsertSemicolon.call(void 0) ); } - Re.atPossibleAsync = Ju; - function ss() { + et.atPossibleAsync = Wp; + function ko() { let e = !0; - for (; !E.eat.call(void 0, C.TokenType.parenR) && !w.state.error; ) { + for (; !K.eat.call(void 0, B.TokenType.parenR) && !j.state.error; ) { if (e) e = !1; else if ( - (fe.expect.call(void 0, C.TokenType.comma), - E.eat.call(void 0, C.TokenType.parenR)) + (Pe.expect.call(void 0, B.TokenType.comma), + K.eat.call(void 0, B.TokenType.parenR)) ) break; - op(!1); + Qp(!1); } } - Re.parseCallExpressionArguments = ss; - function Bm() { + et.parseCallExpressionArguments = ko; + function Nk() { return ( - E.match.call(void 0, C.TokenType.colon) || - E.match.call(void 0, C.TokenType.arrow) + K.match.call(void 0, B.TokenType.colon) || + K.match.call(void 0, B.TokenType.arrow) ); } - function jm(e) { - w.isTypeScriptEnabled - ? Nn.tsStartParseAsyncArrowFromCallExpression.call(void 0) - : w.isFlowEnabled && - Tn.flowStartParseAsyncArrowFromCallExpression.call(void 0), - fe.expect.call(void 0, C.TokenType.arrow), - Zo(e); - } - function Fa() { - let e = w.state.tokens.length; - cs(), La(e, !0); - } - function cs() { - if (E.eat.call(void 0, C.TokenType.modulo)) return hn(), !1; + function Rk(e) { + j.isTypeScriptEnabled + ? ms.tsStartParseAsyncArrowFromCallExpression.call(void 0) + : j.isFlowEnabled && + Yn.flowStartParseAsyncArrowFromCallExpression.call(void 0), + Pe.expect.call(void 0, B.TokenType.arrow), + ir(e); + } + function Cl() { + let e = j.state.tokens.length; + _o(), bl(e, !0); + } + function _o() { + if (K.eat.call(void 0, B.TokenType.modulo)) return Xn(), !1; if ( - E.match.call(void 0, C.TokenType.jsxText) || - E.match.call(void 0, C.TokenType.jsxEmptyText) + K.match.call(void 0, B.TokenType.jsxText) || + K.match.call(void 0, B.TokenType.jsxEmptyText) ) - return Qu(), !1; - if (E.match.call(void 0, C.TokenType.lessThan) && w.isJSXEnabled) + return Gp(), !1; + if (K.match.call(void 0, B.TokenType.lessThan) && j.isJSXEnabled) return ( - (w.state.type = C.TokenType.jsxTagStart), - Dm.jsxParseElement.call(void 0), - E.next.call(void 0), + (j.state.type = B.TokenType.jsxTagStart), + wk.jsxParseElement.call(void 0), + K.next.call(void 0), !1 ); - let e = w.state.potentialArrowAt === w.state.start; - switch (w.state.type) { - case C.TokenType.slash: - case C.TokenType.assign: - E.retokenizeSlashAsRegex.call(void 0); - case C.TokenType._super: - case C.TokenType._this: - case C.TokenType.regexp: - case C.TokenType.num: - case C.TokenType.bigint: - case C.TokenType.decimal: - case C.TokenType.string: - case C.TokenType._null: - case C.TokenType._true: - case C.TokenType._false: - return E.next.call(void 0), !1; - case C.TokenType._import: + let e = j.state.potentialArrowAt === j.state.start; + switch (j.state.type) { + case B.TokenType.slash: + case B.TokenType.assign: + K.retokenizeSlashAsRegex.call(void 0); + case B.TokenType._super: + case B.TokenType._this: + case B.TokenType.regexp: + case B.TokenType.num: + case B.TokenType.bigint: + case B.TokenType.decimal: + case B.TokenType.string: + case B.TokenType._null: + case B.TokenType._true: + case B.TokenType._false: + return K.next.call(void 0), !1; + case B.TokenType._import: return ( - E.next.call(void 0), - E.match.call(void 0, C.TokenType.dot) && - ((w.state.tokens[w.state.tokens.length - 1].type = - C.TokenType.name), - E.next.call(void 0), - hn()), + K.next.call(void 0), + K.match.call(void 0, B.TokenType.dot) && + ((j.state.tokens[j.state.tokens.length - 1].type = + B.TokenType.name), + K.next.call(void 0), + Xn()), !1 ); - case C.TokenType.name: { - let t = w.state.tokens.length, - n = w.state.start, - o = w.state.contextualKeyword; + case B.TokenType.name: { + let t = j.state.tokens.length, + s = j.state.start, + i = j.state.contextualKeyword; return ( - hn(), - o === fn.ContextualKeyword._await - ? (Gm(), !1) - : o === fn.ContextualKeyword._async && - E.match.call(void 0, C.TokenType._function) && - !fe.canInsertSemicolon.call(void 0) - ? (E.next.call(void 0), Ut.parseFunction.call(void 0, n, !1), !1) + Xn(), + i === zn.ContextualKeyword._await + ? (qk(), !1) + : i === zn.ContextualKeyword._async && + K.match.call(void 0, B.TokenType._function) && + !Pe.canInsertSemicolon.call(void 0) + ? (K.next.call(void 0), gn.parseFunction.call(void 0, s, !1), !1) : e && - o === fn.ContextualKeyword._async && - !fe.canInsertSemicolon.call(void 0) && - E.match.call(void 0, C.TokenType.name) - ? (w.state.scopeDepth++, - Rn.parseBindingIdentifier.call(void 0, !1), - fe.expect.call(void 0, C.TokenType.arrow), - Zo(t), + i === zn.ContextualKeyword._async && + !Pe.canInsertSemicolon.call(void 0) && + K.match.call(void 0, B.TokenType.name) + ? (j.state.scopeDepth++, + ds.parseBindingIdentifier.call(void 0, !1), + Pe.expect.call(void 0, B.TokenType.arrow), + ir(t), !0) - : E.match.call(void 0, C.TokenType._do) && - !fe.canInsertSemicolon.call(void 0) - ? (E.next.call(void 0), Ut.parseBlock.call(void 0), !1) + : K.match.call(void 0, B.TokenType._do) && + !Pe.canInsertSemicolon.call(void 0) + ? (K.next.call(void 0), gn.parseBlock.call(void 0), !1) : e && - !fe.canInsertSemicolon.call(void 0) && - E.match.call(void 0, C.TokenType.arrow) - ? (w.state.scopeDepth++, - Rn.markPriorBindingIdentifier.call(void 0, !1), - fe.expect.call(void 0, C.TokenType.arrow), - Zo(t), + !Pe.canInsertSemicolon.call(void 0) && + K.match.call(void 0, B.TokenType.arrow) + ? (j.state.scopeDepth++, + ds.markPriorBindingIdentifier.call(void 0, !1), + Pe.expect.call(void 0, B.TokenType.arrow), + ir(t), !0) - : ((w.state.tokens[w.state.tokens.length - 1].identifierRole = - E.IdentifierRole.Access), + : ((j.state.tokens[j.state.tokens.length - 1].identifierRole = + K.IdentifierRole.Access), !1) ); } - case C.TokenType._do: - return E.next.call(void 0), Ut.parseBlock.call(void 0), !1; - case C.TokenType.parenL: - return Zu(e); - case C.TokenType.bracketL: - return E.next.call(void 0), np(C.TokenType.bracketR, !0), !1; - case C.TokenType.braceL: - return ep(!1, !1), !1; - case C.TokenType._function: - return Km(), !1; - case C.TokenType.at: - Ut.parseDecorators.call(void 0); - case C.TokenType._class: - return Ut.parseClass.call(void 0, !1), !1; - case C.TokenType._new: - return Um(), !1; - case C.TokenType.backQuote: - return Ba(), !1; - case C.TokenType.doubleColon: - return E.next.call(void 0), Fa(), !1; - case C.TokenType.hash: { - let t = E.lookaheadCharCode.call(void 0); + case B.TokenType._do: + return K.next.call(void 0), gn.parseBlock.call(void 0), !1; + case B.TokenType.parenL: + return zp(e); + case B.TokenType.bracketL: + return K.next.call(void 0), Jp(B.TokenType.bracketR, !0), !1; + case B.TokenType.braceL: + return Xp(!1, !1), !1; + case B.TokenType._function: + return Lk(), !1; + case B.TokenType.at: + gn.parseDecorators.call(void 0); + case B.TokenType._class: + return gn.parseClass.call(void 0, !1), !1; + case B.TokenType._new: + return Mk(), !1; + case B.TokenType.backQuote: + return Sl(), !1; + case B.TokenType.doubleColon: + return K.next.call(void 0), Cl(), !1; + case B.TokenType.hash: { + let t = K.lookaheadCharCode.call(void 0); return ( - Om.IS_IDENTIFIER_START[t] || t === Wu.charCodes.backslash - ? as() - : E.next.call(void 0), + Sk.IS_IDENTIFIER_START[t] || t === jp.charCodes.backslash + ? xo() + : K.next.call(void 0), !1 ); } default: - return fe.unexpected.call(void 0), !1; - } - } - Re.parseExprAtom = cs; - function as() { - E.eat.call(void 0, C.TokenType.hash), hn(); - } - function Km() { - let e = w.state.start; - hn(), - E.eat.call(void 0, C.TokenType.dot) && hn(), - Ut.parseFunction.call(void 0, e, !1); - } - function Qu() { - E.next.call(void 0); - } - Re.parseLiteral = Qu; - function qm() { - fe.expect.call(void 0, C.TokenType.parenL), - Qo(), - fe.expect.call(void 0, C.TokenType.parenR); - } - Re.parseParenExpression = qm; - function Zu(e) { - let t = w.state.snapshot(), - n = w.state.tokens.length; - fe.expect.call(void 0, C.TokenType.parenL); - let o = !0; - for (; !E.match.call(void 0, C.TokenType.parenR) && !w.state.error; ) { - if (o) o = !1; + return Pe.unexpected.call(void 0), !1; + } + } + et.parseExprAtom = _o; + function xo() { + K.eat.call(void 0, B.TokenType.hash), Xn(); + } + function Lk() { + let e = j.state.start; + Xn(), + K.eat.call(void 0, B.TokenType.dot) && Xn(), + gn.parseFunction.call(void 0, e, !1); + } + function Gp() { + K.next.call(void 0); + } + et.parseLiteral = Gp; + function Ok() { + Pe.expect.call(void 0, B.TokenType.parenL), + sr(), + Pe.expect.call(void 0, B.TokenType.parenR); + } + et.parseParenExpression = Ok; + function zp(e) { + let t = j.state.snapshot(), + s = j.state.tokens.length; + Pe.expect.call(void 0, B.TokenType.parenL); + let i = !0; + for (; !K.match.call(void 0, B.TokenType.parenR) && !j.state.error; ) { + if (i) i = !1; else if ( - (fe.expect.call(void 0, C.TokenType.comma), - E.match.call(void 0, C.TokenType.parenR)) + (Pe.expect.call(void 0, B.TokenType.comma), + K.match.call(void 0, B.TokenType.parenR)) ) break; - if (E.match.call(void 0, C.TokenType.ellipsis)) { - Rn.parseRest.call(void 0, !1), $a(); + if (K.match.call(void 0, B.TokenType.ellipsis)) { + ds.parseRest.call(void 0, !1), wl(); break; - } else Mt(!1, !0); + } else mn(!1, !0); } return ( - fe.expect.call(void 0, C.TokenType.parenR), - e && Hm() && Oa() - ? (w.state.restoreFromSnapshot(t), - w.state.scopeDepth++, - Ut.parseFunctionParams.call(void 0), - Oa(), - Zo(n), - w.state.error ? (w.state.restoreFromSnapshot(t), Zu(!1), !1) : !0) + Pe.expect.call(void 0, B.TokenType.parenR), + e && Dk() && gl() + ? (j.state.restoreFromSnapshot(t), + j.state.scopeDepth++, + gn.parseFunctionParams.call(void 0), + gl(), + ir(s), + j.state.error ? (j.state.restoreFromSnapshot(t), zp(!1), !1) : !0) : !1 ); } - function Hm() { + function Dk() { return ( - E.match.call(void 0, C.TokenType.colon) || - !fe.canInsertSemicolon.call(void 0) + K.match.call(void 0, B.TokenType.colon) || + !Pe.canInsertSemicolon.call(void 0) ); } - function Oa() { - return w.isTypeScriptEnabled - ? Nn.tsParseArrow.call(void 0) - : w.isFlowEnabled - ? Tn.flowParseArrow.call(void 0) - : E.eat.call(void 0, C.TokenType.arrow); + function gl() { + return j.isTypeScriptEnabled + ? ms.tsParseArrow.call(void 0) + : j.isFlowEnabled + ? Yn.flowParseArrow.call(void 0) + : K.eat.call(void 0, B.TokenType.arrow); } - Re.parseArrow = Oa; - function $a() { - (w.isTypeScriptEnabled || w.isFlowEnabled) && - Hu.typedParseParenItem.call(void 0); + et.parseArrow = gl; + function wl() { + (j.isTypeScriptEnabled || j.isFlowEnabled) && + Bp.typedParseParenItem.call(void 0); } - function Um() { + function Mk() { if ( - (fe.expect.call(void 0, C.TokenType._new), - E.eat.call(void 0, C.TokenType.dot)) + (Pe.expect.call(void 0, B.TokenType._new), + K.eat.call(void 0, B.TokenType.dot)) ) { - hn(); + Xn(); return; } - Wm(), - w.isFlowEnabled && Tn.flowStartParseNewArguments.call(void 0), - E.eat.call(void 0, C.TokenType.parenL) && np(C.TokenType.parenR); + Fk(), + j.isFlowEnabled && Yn.flowStartParseNewArguments.call(void 0), + K.eat.call(void 0, B.TokenType.parenL) && Jp(B.TokenType.parenR); } - function Wm() { - Fa(), E.eat.call(void 0, C.TokenType.questionDot); + function Fk() { + Cl(), K.eat.call(void 0, B.TokenType.questionDot); } - function Ba() { + function Sl() { for ( - E.nextTemplateToken.call(void 0), E.nextTemplateToken.call(void 0); - !E.match.call(void 0, C.TokenType.backQuote) && !w.state.error; + K.nextTemplateToken.call(void 0), K.nextTemplateToken.call(void 0); + !K.match.call(void 0, B.TokenType.backQuote) && !j.state.error; ) - fe.expect.call(void 0, C.TokenType.dollarBraceL), - Qo(), - E.nextTemplateToken.call(void 0), - E.nextTemplateToken.call(void 0); - E.next.call(void 0); - } - Re.parseTemplate = Ba; - function ep(e, t) { - let n = w.getNextContextId.call(void 0), - o = !0; + Pe.expect.call(void 0, B.TokenType.dollarBraceL), + sr(), + K.nextTemplateToken.call(void 0), + K.nextTemplateToken.call(void 0); + K.next.call(void 0); + } + et.parseTemplate = Sl; + function Xp(e, t) { + let s = j.getNextContextId.call(void 0), + i = !0; for ( - E.next.call(void 0), - w.state.tokens[w.state.tokens.length - 1].contextId = n; - !E.eat.call(void 0, C.TokenType.braceR) && !w.state.error; + K.next.call(void 0), + j.state.tokens[j.state.tokens.length - 1].contextId = s; + !K.eat.call(void 0, B.TokenType.braceR) && !j.state.error; ) { - if (o) o = !1; + if (i) i = !1; else if ( - (fe.expect.call(void 0, C.TokenType.comma), - E.eat.call(void 0, C.TokenType.braceR)) + (Pe.expect.call(void 0, B.TokenType.comma), + K.eat.call(void 0, B.TokenType.braceR)) ) break; let r = !1; - if (E.match.call(void 0, C.TokenType.ellipsis)) { - let s = w.state.tokens.length; + if (K.match.call(void 0, B.TokenType.ellipsis)) { + let a = j.state.tokens.length; if ( - (Rn.parseSpread.call(void 0), + (ds.parseSpread.call(void 0), e && - (w.state.tokens.length === s + 2 && - Rn.markPriorBindingIdentifier.call(void 0, t), - E.eat.call(void 0, C.TokenType.braceR))) + (j.state.tokens.length === a + 2 && + ds.markPriorBindingIdentifier.call(void 0, t), + K.eat.call(void 0, B.TokenType.braceR))) ) break; continue; } - e || (r = E.eat.call(void 0, C.TokenType.star)), - !e && fe.isContextual.call(void 0, fn.ContextualKeyword._async) - ? (r && fe.unexpected.call(void 0), - hn(), - E.match.call(void 0, C.TokenType.colon) || - E.match.call(void 0, C.TokenType.parenL) || - E.match.call(void 0, C.TokenType.braceR) || - E.match.call(void 0, C.TokenType.eq) || - E.match.call(void 0, C.TokenType.comma) || - (E.match.call(void 0, C.TokenType.star) && - (E.next.call(void 0), (r = !0)), - ls(n))) - : ls(n), - Ym(e, t, n); - } - w.state.tokens[w.state.tokens.length - 1].contextId = n; - } - Re.parseObj = ep; - function Vm(e) { + e || (r = K.eat.call(void 0, B.TokenType.star)), + !e && Pe.isContextual.call(void 0, zn.ContextualKeyword._async) + ? (r && Pe.unexpected.call(void 0), + Xn(), + K.match.call(void 0, B.TokenType.colon) || + K.match.call(void 0, B.TokenType.parenL) || + K.match.call(void 0, B.TokenType.braceR) || + K.match.call(void 0, B.TokenType.eq) || + K.match.call(void 0, B.TokenType.comma) || + (K.match.call(void 0, B.TokenType.star) && + (K.next.call(void 0), (r = !0)), + go(s))) + : go(s), + $k(e, t, s); + } + j.state.tokens[j.state.tokens.length - 1].contextId = s; + } + et.parseObj = Xp; + function Bk(e) { return ( !e && - (E.match.call(void 0, C.TokenType.string) || - E.match.call(void 0, C.TokenType.num) || - E.match.call(void 0, C.TokenType.bracketL) || - E.match.call(void 0, C.TokenType.name) || - !!(w.state.type & C.TokenType.IS_KEYWORD)) + (K.match.call(void 0, B.TokenType.string) || + K.match.call(void 0, B.TokenType.num) || + K.match.call(void 0, B.TokenType.bracketL) || + K.match.call(void 0, B.TokenType.name) || + !!(j.state.type & B.TokenType.IS_KEYWORD)) ); } - function zm(e, t) { - let n = w.state.start; - return E.match.call(void 0, C.TokenType.parenL) - ? (e && fe.unexpected.call(void 0), Ma(n, !1), !0) - : Vm(e) - ? (ls(t), Ma(n, !1), !0) + function Vk(e, t) { + let s = j.state.start; + return K.match.call(void 0, B.TokenType.parenL) + ? (e && Pe.unexpected.call(void 0), _l(s, !1), !0) + : Bk(e) + ? (go(t), _l(s, !1), !0) : !1; } - function Xm(e, t) { - if (E.eat.call(void 0, C.TokenType.colon)) { - e ? Rn.parseMaybeDefault.call(void 0, t) : Mt(!1); + function jk(e, t) { + if (K.eat.call(void 0, B.TokenType.colon)) { + e ? ds.parseMaybeDefault.call(void 0, t) : mn(!1); return; } - let n; + let s; e - ? w.state.scopeDepth === 0 - ? (n = E.IdentifierRole.ObjectShorthandTopLevelDeclaration) + ? j.state.scopeDepth === 0 + ? (s = K.IdentifierRole.ObjectShorthandTopLevelDeclaration) : t - ? (n = E.IdentifierRole.ObjectShorthandBlockScopedDeclaration) - : (n = E.IdentifierRole.ObjectShorthandFunctionScopedDeclaration) - : (n = E.IdentifierRole.ObjectShorthand), - (w.state.tokens[w.state.tokens.length - 1].identifierRole = n), - Rn.parseMaybeDefault.call(void 0, t, !0); - } - function Ym(e, t, n) { - w.isTypeScriptEnabled - ? Nn.tsStartParseObjPropValue.call(void 0) - : w.isFlowEnabled && Tn.flowStartParseObjPropValue.call(void 0), - zm(e, n) || Xm(e, t); - } - function ls(e) { - w.isFlowEnabled && Tn.flowParseVariance.call(void 0), - E.eat.call(void 0, C.TokenType.bracketL) - ? ((w.state.tokens[w.state.tokens.length - 1].contextId = e), - Mt(), - fe.expect.call(void 0, C.TokenType.bracketR), - (w.state.tokens[w.state.tokens.length - 1].contextId = e)) - : (E.match.call(void 0, C.TokenType.num) || - E.match.call(void 0, C.TokenType.string) || - E.match.call(void 0, C.TokenType.bigint) || - E.match.call(void 0, C.TokenType.decimal) - ? cs() - : as(), - (w.state.tokens[w.state.tokens.length - 1].identifierRole = - E.IdentifierRole.ObjectKey), - (w.state.tokens[w.state.tokens.length - 1].contextId = e)); - } - Re.parsePropertyName = ls; - function Ma(e, t) { - let n = w.getNextContextId.call(void 0); - w.state.scopeDepth++; - let o = w.state.tokens.length, + ? (s = K.IdentifierRole.ObjectShorthandBlockScopedDeclaration) + : (s = K.IdentifierRole.ObjectShorthandFunctionScopedDeclaration) + : (s = K.IdentifierRole.ObjectShorthand), + (j.state.tokens[j.state.tokens.length - 1].identifierRole = s), + ds.parseMaybeDefault.call(void 0, t, !0); + } + function $k(e, t, s) { + j.isTypeScriptEnabled + ? ms.tsStartParseObjPropValue.call(void 0) + : j.isFlowEnabled && Yn.flowStartParseObjPropValue.call(void 0), + Vk(e, s) || jk(e, t); + } + function go(e) { + j.isFlowEnabled && Yn.flowParseVariance.call(void 0), + K.eat.call(void 0, B.TokenType.bracketL) + ? ((j.state.tokens[j.state.tokens.length - 1].contextId = e), + mn(), + Pe.expect.call(void 0, B.TokenType.bracketR), + (j.state.tokens[j.state.tokens.length - 1].contextId = e)) + : (K.match.call(void 0, B.TokenType.num) || + K.match.call(void 0, B.TokenType.string) || + K.match.call(void 0, B.TokenType.bigint) || + K.match.call(void 0, B.TokenType.decimal) + ? _o() + : xo(), + (j.state.tokens[j.state.tokens.length - 1].identifierRole = + K.IdentifierRole.ObjectKey), + (j.state.tokens[j.state.tokens.length - 1].contextId = e)); + } + et.parsePropertyName = go; + function _l(e, t) { + let s = j.getNextContextId.call(void 0); + j.state.scopeDepth++; + let i = j.state.tokens.length, r = t; - Ut.parseFunctionParams.call(void 0, r, n), tp(e, n); - let s = w.state.tokens.length; - w.state.scopes.push(new Uu.Scope(o, s, !0)), w.state.scopeDepth--; + gn.parseFunctionParams.call(void 0, r, s), Yp(e, s); + let a = j.state.tokens.length; + j.state.scopes.push(new Vp.Scope(i, a, !0)), j.state.scopeDepth--; } - Re.parseMethod = Ma; - function Zo(e) { - ja(!0); - let t = w.state.tokens.length; - w.state.scopes.push(new Uu.Scope(e, t, !0)), w.state.scopeDepth--; - } - Re.parseArrowExpression = Zo; - function tp(e, t = 0) { - w.isTypeScriptEnabled - ? Nn.tsParseFunctionBodyAndFinish.call(void 0, e, t) - : w.isFlowEnabled - ? Tn.flowParseFunctionBodyAndFinish.call(void 0, t) - : ja(!1, t); - } - Re.parseFunctionBodyAndFinish = tp; - function ja(e, t = 0) { - e && !E.match.call(void 0, C.TokenType.braceL) - ? Mt() - : Ut.parseBlock.call(void 0, !0, t); - } - Re.parseFunctionBody = ja; - function np(e, t = !1) { - let n = !0; - for (; !E.eat.call(void 0, e) && !w.state.error; ) { - if (n) n = !1; + et.parseMethod = _l; + function ir(e) { + Il(!0); + let t = j.state.tokens.length; + j.state.scopes.push(new Vp.Scope(e, t, !0)), j.state.scopeDepth--; + } + et.parseArrowExpression = ir; + function Yp(e, t = 0) { + j.isTypeScriptEnabled + ? ms.tsParseFunctionBodyAndFinish.call(void 0, e, t) + : j.isFlowEnabled + ? Yn.flowParseFunctionBodyAndFinish.call(void 0, t) + : Il(!1, t); + } + et.parseFunctionBodyAndFinish = Yp; + function Il(e, t = 0) { + e && !K.match.call(void 0, B.TokenType.braceL) + ? mn() + : gn.parseBlock.call(void 0, !0, t); + } + et.parseFunctionBody = Il; + function Jp(e, t = !1) { + let s = !0; + for (; !K.eat.call(void 0, e) && !j.state.error; ) { + if (s) s = !1; else if ( - (fe.expect.call(void 0, C.TokenType.comma), E.eat.call(void 0, e)) + (Pe.expect.call(void 0, B.TokenType.comma), K.eat.call(void 0, e)) ) break; - op(t); + Qp(t); } } - function op(e) { - (e && E.match.call(void 0, C.TokenType.comma)) || - (E.match.call(void 0, C.TokenType.ellipsis) - ? (Rn.parseSpread.call(void 0), $a()) - : E.match.call(void 0, C.TokenType.question) - ? E.next.call(void 0) - : Mt(!1, !0)); + function Qp(e) { + (e && K.match.call(void 0, B.TokenType.comma)) || + (K.match.call(void 0, B.TokenType.ellipsis) + ? (ds.parseSpread.call(void 0), wl()) + : K.match.call(void 0, B.TokenType.question) + ? K.next.call(void 0) + : mn(!1, !0)); } - function hn() { - E.next.call(void 0), - (w.state.tokens[w.state.tokens.length - 1].type = C.TokenType.name); + function Xn() { + K.next.call(void 0), + (j.state.tokens[j.state.tokens.length - 1].type = B.TokenType.name); } - Re.parseIdentifier = hn; - function Gm() { - er(); + et.parseIdentifier = Xn; + function qk() { + rr(); } - function Jm() { - E.next.call(void 0), - !E.match.call(void 0, C.TokenType.semi) && - !fe.canInsertSemicolon.call(void 0) && - (E.eat.call(void 0, C.TokenType.star), Mt()); + function Kk() { + K.next.call(void 0), + !K.match.call(void 0, B.TokenType.semi) && + !Pe.canInsertSemicolon.call(void 0) && + (K.eat.call(void 0, B.TokenType.star), mn()); } - function Qm() { - fe.expectContextual.call(void 0, fn.ContextualKeyword._module), - fe.expect.call(void 0, C.TokenType.braceL), - Ut.parseBlockBody.call(void 0, C.TokenType.braceR); + function Uk() { + Pe.expectContextual.call(void 0, zn.ContextualKeyword._module), + Pe.expect.call(void 0, B.TokenType.braceL), + gn.parseBlockBody.call(void 0, B.TokenType.braceR); } }); - var Vo = H((Ae) => { + var Ji = Z((Je) => { 'use strict'; - Object.defineProperty(Ae, '__esModule', {value: !0}); - var f = Ve(), - te = Ge(), - p = ce(), - J = Ct(), - Ie = Xn(), - Dn = Jo(), - N = Sn(); - function Zm(e) { + Object.defineProperty(Je, '__esModule', {value: !0}); + var C = xt(), + Te = It(), + _ = be(), + ue = Zt(), + je = Ns(), + Ts = nr(), + G = cs(); + function Hk(e) { return ( - (e.type === p.TokenType.name || !!(e.type & p.TokenType.IS_KEYWORD)) && - e.contextualKeyword !== te.ContextualKeyword._from + (e.type === _.TokenType.name || !!(e.type & _.TokenType.IS_KEYWORD)) && + e.contextualKeyword !== Te.ContextualKeyword._from ); } - function tn(e) { - let t = f.pushTypeContext.call(void 0, 0); - N.expect.call(void 0, e || p.TokenType.colon), - Tt(), - f.popTypeContext.call(void 0, t); - } - function rp() { - N.expect.call(void 0, p.TokenType.modulo), - N.expectContextual.call(void 0, te.ContextualKeyword._checks), - f.eat.call(void 0, p.TokenType.parenL) && - (Ie.parseExpression.call(void 0), - N.expect.call(void 0, p.TokenType.parenR)); - } - function Ha() { - let e = f.pushTypeContext.call(void 0, 0); - N.expect.call(void 0, p.TokenType.colon), - f.match.call(void 0, p.TokenType.modulo) - ? rp() - : (Tt(), f.match.call(void 0, p.TokenType.modulo) && rp()), - f.popTypeContext.call(void 0, e); - } - function ek() { - f.next.call(void 0), Ua(!0); - } - function tk() { - f.next.call(void 0), - Ie.parseIdentifier.call(void 0), - f.match.call(void 0, p.TokenType.lessThan) && nn(), - N.expect.call(void 0, p.TokenType.parenL), - qa(), - N.expect.call(void 0, p.TokenType.parenR), - Ha(), - N.semicolon.call(void 0); - } - function Ka() { - f.match.call(void 0, p.TokenType._class) - ? ek() - : f.match.call(void 0, p.TokenType._function) - ? tk() - : f.match.call(void 0, p.TokenType._var) - ? nk() - : N.eatContextual.call(void 0, te.ContextualKeyword._module) - ? f.eat.call(void 0, p.TokenType.dot) - ? sk() - : ok() - : N.isContextual.call(void 0, te.ContextualKeyword._type) - ? ik() - : N.isContextual.call(void 0, te.ContextualKeyword._opaque) - ? ak() - : N.isContextual.call(void 0, te.ContextualKeyword._interface) - ? lk() - : f.match.call(void 0, p.TokenType._export) - ? rk() - : N.unexpected.call(void 0); + function Ln(e) { + let t = C.pushTypeContext.call(void 0, 0); + G.expect.call(void 0, e || _.TokenType.colon), + Wt(), + C.popTypeContext.call(void 0, t); + } + function Zp() { + G.expect.call(void 0, _.TokenType.modulo), + G.expectContextual.call(void 0, Te.ContextualKeyword._checks), + C.eat.call(void 0, _.TokenType.parenL) && + (je.parseExpression.call(void 0), + G.expect.call(void 0, _.TokenType.parenR)); + } + function Pl() { + let e = C.pushTypeContext.call(void 0, 0); + G.expect.call(void 0, _.TokenType.colon), + C.match.call(void 0, _.TokenType.modulo) + ? Zp() + : (Wt(), C.match.call(void 0, _.TokenType.modulo) && Zp()), + C.popTypeContext.call(void 0, e); } - function nk() { - f.next.call(void 0), up(), N.semicolon.call(void 0); + function Wk() { + C.next.call(void 0), Nl(!0); } - function ok() { + function Gk() { + C.next.call(void 0), + je.parseIdentifier.call(void 0), + C.match.call(void 0, _.TokenType.lessThan) && On(), + G.expect.call(void 0, _.TokenType.parenL), + Al(), + G.expect.call(void 0, _.TokenType.parenR), + Pl(), + G.semicolon.call(void 0); + } + function El() { + C.match.call(void 0, _.TokenType._class) + ? Wk() + : C.match.call(void 0, _.TokenType._function) + ? Gk() + : C.match.call(void 0, _.TokenType._var) + ? zk() + : G.eatContextual.call(void 0, Te.ContextualKeyword._module) + ? C.eat.call(void 0, _.TokenType.dot) + ? Jk() + : Xk() + : G.isContextual.call(void 0, Te.ContextualKeyword._type) + ? Qk() + : G.isContextual.call(void 0, Te.ContextualKeyword._opaque) + ? Zk() + : G.isContextual.call(void 0, Te.ContextualKeyword._interface) + ? e0() + : C.match.call(void 0, _.TokenType._export) + ? Yk() + : G.unexpected.call(void 0); + } + function zk() { + C.next.call(void 0), rh(), G.semicolon.call(void 0); + } + function Xk() { for ( - f.match.call(void 0, p.TokenType.string) - ? Ie.parseExprAtom.call(void 0) - : Ie.parseIdentifier.call(void 0), - N.expect.call(void 0, p.TokenType.braceL); - !f.match.call(void 0, p.TokenType.braceR) && !J.state.error; + C.match.call(void 0, _.TokenType.string) + ? je.parseExprAtom.call(void 0) + : je.parseIdentifier.call(void 0), + G.expect.call(void 0, _.TokenType.braceL); + !C.match.call(void 0, _.TokenType.braceR) && !ue.state.error; ) - f.match.call(void 0, p.TokenType._import) - ? (f.next.call(void 0), Dn.parseImport.call(void 0)) - : N.unexpected.call(void 0); - N.expect.call(void 0, p.TokenType.braceR); + C.match.call(void 0, _.TokenType._import) + ? (C.next.call(void 0), Ts.parseImport.call(void 0)) + : G.unexpected.call(void 0); + G.expect.call(void 0, _.TokenType.braceR); + } + function Yk() { + G.expect.call(void 0, _.TokenType._export), + C.eat.call(void 0, _.TokenType._default) + ? C.match.call(void 0, _.TokenType._function) || + C.match.call(void 0, _.TokenType._class) + ? El() + : (Wt(), G.semicolon.call(void 0)) + : C.match.call(void 0, _.TokenType._var) || + C.match.call(void 0, _.TokenType._function) || + C.match.call(void 0, _.TokenType._class) || + G.isContextual.call(void 0, Te.ContextualKeyword._opaque) + ? El() + : C.match.call(void 0, _.TokenType.star) || + C.match.call(void 0, _.TokenType.braceL) || + G.isContextual.call(void 0, Te.ContextualKeyword._interface) || + G.isContextual.call(void 0, Te.ContextualKeyword._type) || + G.isContextual.call(void 0, Te.ContextualKeyword._opaque) + ? Ts.parseExport.call(void 0) + : G.unexpected.call(void 0); } - function rk() { - N.expect.call(void 0, p.TokenType._export), - f.eat.call(void 0, p.TokenType._default) - ? f.match.call(void 0, p.TokenType._function) || - f.match.call(void 0, p.TokenType._class) - ? Ka() - : (Tt(), N.semicolon.call(void 0)) - : f.match.call(void 0, p.TokenType._var) || - f.match.call(void 0, p.TokenType._function) || - f.match.call(void 0, p.TokenType._class) || - N.isContextual.call(void 0, te.ContextualKeyword._opaque) - ? Ka() - : f.match.call(void 0, p.TokenType.star) || - f.match.call(void 0, p.TokenType.braceL) || - N.isContextual.call(void 0, te.ContextualKeyword._interface) || - N.isContextual.call(void 0, te.ContextualKeyword._type) || - N.isContextual.call(void 0, te.ContextualKeyword._opaque) - ? Dn.parseExport.call(void 0) - : N.unexpected.call(void 0); - } - function sk() { - N.expectContextual.call(void 0, te.ContextualKeyword._exports), - wo(), - N.semicolon.call(void 0); + function Jk() { + G.expectContextual.call(void 0, Te.ContextualKeyword._exports), + vi(), + G.semicolon.call(void 0); } - function ik() { - f.next.call(void 0), Va(); + function Qk() { + C.next.call(void 0), Ll(); } - function ak() { - f.next.call(void 0), za(!0); + function Zk() { + C.next.call(void 0), Ol(!0); } - function lk() { - f.next.call(void 0), Ua(); + function e0() { + C.next.call(void 0), Nl(); } - function Ua(e = !1) { + function Nl(e = !1) { if ( - (fs(), - f.match.call(void 0, p.TokenType.lessThan) && nn(), - f.eat.call(void 0, p.TokenType._extends)) + (So(), + C.match.call(void 0, _.TokenType.lessThan) && On(), + C.eat.call(void 0, _.TokenType._extends)) ) - do us(); - while (!e && f.eat.call(void 0, p.TokenType.comma)); - if (N.isContextual.call(void 0, te.ContextualKeyword._mixins)) { - f.next.call(void 0); - do us(); - while (f.eat.call(void 0, p.TokenType.comma)); - } - if (N.isContextual.call(void 0, te.ContextualKeyword._implements)) { - f.next.call(void 0); - do us(); - while (f.eat.call(void 0, p.TokenType.comma)); - } - ps(e, !1, e); - } - function us() { - ap(!1), f.match.call(void 0, p.TokenType.lessThan) && Yn(); - } - function Wa() { - Ua(); - } - function fs() { - Ie.parseIdentifier.call(void 0); - } - function Va() { - fs(), - f.match.call(void 0, p.TokenType.lessThan) && nn(), - tn(p.TokenType.eq), - N.semicolon.call(void 0); - } - function za(e) { - N.expectContextual.call(void 0, te.ContextualKeyword._type), - fs(), - f.match.call(void 0, p.TokenType.lessThan) && nn(), - f.match.call(void 0, p.TokenType.colon) && tn(p.TokenType.colon), - e || tn(p.TokenType.eq), - N.semicolon.call(void 0); - } - function ck() { - Ga(), up(), f.eat.call(void 0, p.TokenType.eq) && Tt(); - } - function nn() { - let e = f.pushTypeContext.call(void 0, 0); - f.match.call(void 0, p.TokenType.lessThan) || - f.match.call(void 0, p.TokenType.typeParameterStart) - ? f.next.call(void 0) - : N.unexpected.call(void 0); + do bo(); + while (!e && C.eat.call(void 0, _.TokenType.comma)); + if (G.isContextual.call(void 0, Te.ContextualKeyword._mixins)) { + C.next.call(void 0); + do bo(); + while (C.eat.call(void 0, _.TokenType.comma)); + } + if (G.isContextual.call(void 0, Te.ContextualKeyword._implements)) { + C.next.call(void 0); + do bo(); + while (C.eat.call(void 0, _.TokenType.comma)); + } + Co(e, !1, e); + } + function bo() { + nh(!1), C.match.call(void 0, _.TokenType.lessThan) && Rs(); + } + function Rl() { + Nl(); + } + function So() { + je.parseIdentifier.call(void 0); + } + function Ll() { + So(), + C.match.call(void 0, _.TokenType.lessThan) && On(), + Ln(_.TokenType.eq), + G.semicolon.call(void 0); + } + function Ol(e) { + G.expectContextual.call(void 0, Te.ContextualKeyword._type), + So(), + C.match.call(void 0, _.TokenType.lessThan) && On(), + C.match.call(void 0, _.TokenType.colon) && Ln(_.TokenType.colon), + e || Ln(_.TokenType.eq), + G.semicolon.call(void 0); + } + function t0() { + Fl(), rh(), C.eat.call(void 0, _.TokenType.eq) && Wt(); + } + function On() { + let e = C.pushTypeContext.call(void 0, 0); + C.match.call(void 0, _.TokenType.lessThan) || + C.match.call(void 0, _.TokenType.typeParameterStart) + ? C.next.call(void 0) + : G.unexpected.call(void 0); do - ck(), - f.match.call(void 0, p.TokenType.greaterThan) || - N.expect.call(void 0, p.TokenType.comma); - while (!f.match.call(void 0, p.TokenType.greaterThan) && !J.state.error); - N.expect.call(void 0, p.TokenType.greaterThan), - f.popTypeContext.call(void 0, e); - } - Ae.flowParseTypeParameterDeclaration = nn; - function Yn() { - let e = f.pushTypeContext.call(void 0, 0); + t0(), + C.match.call(void 0, _.TokenType.greaterThan) || + G.expect.call(void 0, _.TokenType.comma); + while (!C.match.call(void 0, _.TokenType.greaterThan) && !ue.state.error); + G.expect.call(void 0, _.TokenType.greaterThan), + C.popTypeContext.call(void 0, e); + } + Je.flowParseTypeParameterDeclaration = On; + function Rs() { + let e = C.pushTypeContext.call(void 0, 0); for ( - N.expect.call(void 0, p.TokenType.lessThan); - !f.match.call(void 0, p.TokenType.greaterThan) && !J.state.error; + G.expect.call(void 0, _.TokenType.lessThan); + !C.match.call(void 0, _.TokenType.greaterThan) && !ue.state.error; ) - Tt(), - f.match.call(void 0, p.TokenType.greaterThan) || - N.expect.call(void 0, p.TokenType.comma); - N.expect.call(void 0, p.TokenType.greaterThan), - f.popTypeContext.call(void 0, e); + Wt(), + C.match.call(void 0, _.TokenType.greaterThan) || + G.expect.call(void 0, _.TokenType.comma); + G.expect.call(void 0, _.TokenType.greaterThan), + C.popTypeContext.call(void 0, e); } - function uk() { + function n0() { if ( - (N.expectContextual.call(void 0, te.ContextualKeyword._interface), - f.eat.call(void 0, p.TokenType._extends)) + (G.expectContextual.call(void 0, Te.ContextualKeyword._interface), + C.eat.call(void 0, _.TokenType._extends)) ) - do us(); - while (f.eat.call(void 0, p.TokenType.comma)); - ps(!1, !1, !1); + do bo(); + while (C.eat.call(void 0, _.TokenType.comma)); + Co(!1, !1, !1); } - function Xa() { - f.match.call(void 0, p.TokenType.num) || - f.match.call(void 0, p.TokenType.string) - ? Ie.parseExprAtom.call(void 0) - : Ie.parseIdentifier.call(void 0); - } - function pk() { - f.lookaheadType.call(void 0) === p.TokenType.colon ? (Xa(), tn()) : Tt(), - N.expect.call(void 0, p.TokenType.bracketR), - tn(); - } - function dk() { - Xa(), - N.expect.call(void 0, p.TokenType.bracketR), - N.expect.call(void 0, p.TokenType.bracketR), - f.match.call(void 0, p.TokenType.lessThan) || - f.match.call(void 0, p.TokenType.parenL) - ? Ya() - : (f.eat.call(void 0, p.TokenType.question), tn()); - } - function Ya() { + function Dl() { + C.match.call(void 0, _.TokenType.num) || + C.match.call(void 0, _.TokenType.string) + ? je.parseExprAtom.call(void 0) + : je.parseIdentifier.call(void 0); + } + function s0() { + C.lookaheadType.call(void 0) === _.TokenType.colon ? (Dl(), Ln()) : Wt(), + G.expect.call(void 0, _.TokenType.bracketR), + Ln(); + } + function i0() { + Dl(), + G.expect.call(void 0, _.TokenType.bracketR), + G.expect.call(void 0, _.TokenType.bracketR), + C.match.call(void 0, _.TokenType.lessThan) || + C.match.call(void 0, _.TokenType.parenL) + ? Ml() + : (C.eat.call(void 0, _.TokenType.question), Ln()); + } + function Ml() { for ( - f.match.call(void 0, p.TokenType.lessThan) && nn(), - N.expect.call(void 0, p.TokenType.parenL); - !f.match.call(void 0, p.TokenType.parenR) && - !f.match.call(void 0, p.TokenType.ellipsis) && - !J.state.error; + C.match.call(void 0, _.TokenType.lessThan) && On(), + G.expect.call(void 0, _.TokenType.parenL); + !C.match.call(void 0, _.TokenType.parenR) && + !C.match.call(void 0, _.TokenType.ellipsis) && + !ue.state.error; ) - ds(), - f.match.call(void 0, p.TokenType.parenR) || - N.expect.call(void 0, p.TokenType.comma); - f.eat.call(void 0, p.TokenType.ellipsis) && ds(), - N.expect.call(void 0, p.TokenType.parenR), - tn(); + wo(), + C.match.call(void 0, _.TokenType.parenR) || + G.expect.call(void 0, _.TokenType.comma); + C.eat.call(void 0, _.TokenType.ellipsis) && wo(), + G.expect.call(void 0, _.TokenType.parenR), + Ln(); } - function fk() { - Ya(); + function r0() { + Ml(); } - function ps(e, t, n) { - let o; + function Co(e, t, s) { + let i; for ( - t && f.match.call(void 0, p.TokenType.braceBarL) - ? (N.expect.call(void 0, p.TokenType.braceBarL), - (o = p.TokenType.braceBarR)) - : (N.expect.call(void 0, p.TokenType.braceL), - (o = p.TokenType.braceR)); - !f.match.call(void 0, o) && !J.state.error; + t && C.match.call(void 0, _.TokenType.braceBarL) + ? (G.expect.call(void 0, _.TokenType.braceBarL), + (i = _.TokenType.braceBarR)) + : (G.expect.call(void 0, _.TokenType.braceL), + (i = _.TokenType.braceR)); + !C.match.call(void 0, i) && !ue.state.error; ) { - if (n && N.isContextual.call(void 0, te.ContextualKeyword._proto)) { - let r = f.lookaheadType.call(void 0); - r !== p.TokenType.colon && - r !== p.TokenType.question && - (f.next.call(void 0), (e = !1)); - } - if (e && N.isContextual.call(void 0, te.ContextualKeyword._static)) { - let r = f.lookaheadType.call(void 0); - r !== p.TokenType.colon && - r !== p.TokenType.question && - f.next.call(void 0); - } - if ((Ga(), f.eat.call(void 0, p.TokenType.bracketL))) - f.eat.call(void 0, p.TokenType.bracketL) ? dk() : pk(); + if (s && G.isContextual.call(void 0, Te.ContextualKeyword._proto)) { + let r = C.lookaheadType.call(void 0); + r !== _.TokenType.colon && + r !== _.TokenType.question && + (C.next.call(void 0), (e = !1)); + } + if (e && G.isContextual.call(void 0, Te.ContextualKeyword._static)) { + let r = C.lookaheadType.call(void 0); + r !== _.TokenType.colon && + r !== _.TokenType.question && + C.next.call(void 0); + } + if ((Fl(), C.eat.call(void 0, _.TokenType.bracketL))) + C.eat.call(void 0, _.TokenType.bracketL) ? i0() : s0(); else if ( - f.match.call(void 0, p.TokenType.parenL) || - f.match.call(void 0, p.TokenType.lessThan) + C.match.call(void 0, _.TokenType.parenL) || + C.match.call(void 0, _.TokenType.lessThan) ) - fk(); + r0(); else { if ( - N.isContextual.call(void 0, te.ContextualKeyword._get) || - N.isContextual.call(void 0, te.ContextualKeyword._set) + G.isContextual.call(void 0, Te.ContextualKeyword._get) || + G.isContextual.call(void 0, Te.ContextualKeyword._set) ) { - let r = f.lookaheadType.call(void 0); - (r === p.TokenType.name || - r === p.TokenType.string || - r === p.TokenType.num) && - f.next.call(void 0); + let r = C.lookaheadType.call(void 0); + (r === _.TokenType.name || + r === _.TokenType.string || + r === _.TokenType.num) && + C.next.call(void 0); } - hk(); + o0(); } - Tk(); + a0(); } - N.expect.call(void 0, o); + G.expect.call(void 0, i); } - function hk() { - if (f.match.call(void 0, p.TokenType.ellipsis)) { + function o0() { + if (C.match.call(void 0, _.TokenType.ellipsis)) { if ( - (N.expect.call(void 0, p.TokenType.ellipsis), - f.eat.call(void 0, p.TokenType.comma) || - f.eat.call(void 0, p.TokenType.semi), - f.match.call(void 0, p.TokenType.braceR)) + (G.expect.call(void 0, _.TokenType.ellipsis), + C.eat.call(void 0, _.TokenType.comma) || + C.eat.call(void 0, _.TokenType.semi), + C.match.call(void 0, _.TokenType.braceR)) ) return; - Tt(); + Wt(); } else - Xa(), - f.match.call(void 0, p.TokenType.lessThan) || - f.match.call(void 0, p.TokenType.parenL) - ? Ya() - : (f.eat.call(void 0, p.TokenType.question), tn()); - } - function Tk() { - !f.eat.call(void 0, p.TokenType.semi) && - !f.eat.call(void 0, p.TokenType.comma) && - !f.match.call(void 0, p.TokenType.braceR) && - !f.match.call(void 0, p.TokenType.braceBarR) && - N.unexpected.call(void 0); + Dl(), + C.match.call(void 0, _.TokenType.lessThan) || + C.match.call(void 0, _.TokenType.parenL) + ? Ml() + : (C.eat.call(void 0, _.TokenType.question), Ln()); + } + function a0() { + !C.eat.call(void 0, _.TokenType.semi) && + !C.eat.call(void 0, _.TokenType.comma) && + !C.match.call(void 0, _.TokenType.braceR) && + !C.match.call(void 0, _.TokenType.braceBarR) && + G.unexpected.call(void 0); } - function ap(e) { + function nh(e) { for ( - e || Ie.parseIdentifier.call(void 0); - f.eat.call(void 0, p.TokenType.dot); + e || je.parseIdentifier.call(void 0); + C.eat.call(void 0, _.TokenType.dot); ) - Ie.parseIdentifier.call(void 0); + je.parseIdentifier.call(void 0); } - function yk() { - ap(!0), f.match.call(void 0, p.TokenType.lessThan) && Yn(); + function l0() { + nh(!0), C.match.call(void 0, _.TokenType.lessThan) && Rs(); } - function mk() { - N.expect.call(void 0, p.TokenType._typeof), lp(); + function c0() { + G.expect.call(void 0, _.TokenType._typeof), sh(); } - function kk() { + function u0() { for ( - N.expect.call(void 0, p.TokenType.bracketL); - J.state.pos < J.input.length && - !f.match.call(void 0, p.TokenType.bracketR) && - (Tt(), !f.match.call(void 0, p.TokenType.bracketR)); + G.expect.call(void 0, _.TokenType.bracketL); + ue.state.pos < ue.input.length && + !C.match.call(void 0, _.TokenType.bracketR) && + (Wt(), !C.match.call(void 0, _.TokenType.bracketR)); ) - N.expect.call(void 0, p.TokenType.comma); - N.expect.call(void 0, p.TokenType.bracketR); - } - function ds() { - let e = f.lookaheadType.call(void 0); - e === p.TokenType.colon || e === p.TokenType.question - ? (Ie.parseIdentifier.call(void 0), - f.eat.call(void 0, p.TokenType.question), - tn()) - : Tt(); - } - function qa() { + G.expect.call(void 0, _.TokenType.comma); + G.expect.call(void 0, _.TokenType.bracketR); + } + function wo() { + let e = C.lookaheadType.call(void 0); + e === _.TokenType.colon || e === _.TokenType.question + ? (je.parseIdentifier.call(void 0), + C.eat.call(void 0, _.TokenType.question), + Ln()) + : Wt(); + } + function Al() { for ( ; - !f.match.call(void 0, p.TokenType.parenR) && - !f.match.call(void 0, p.TokenType.ellipsis) && - !J.state.error; + !C.match.call(void 0, _.TokenType.parenR) && + !C.match.call(void 0, _.TokenType.ellipsis) && + !ue.state.error; ) - ds(), - f.match.call(void 0, p.TokenType.parenR) || - N.expect.call(void 0, p.TokenType.comma); - f.eat.call(void 0, p.TokenType.ellipsis) && ds(); + wo(), + C.match.call(void 0, _.TokenType.parenR) || + G.expect.call(void 0, _.TokenType.comma); + C.eat.call(void 0, _.TokenType.ellipsis) && wo(); } - function lp() { + function sh() { let e = !1, - t = J.state.noAnonFunctionType; - switch (J.state.type) { - case p.TokenType.name: { - if (N.isContextual.call(void 0, te.ContextualKeyword._interface)) { - uk(); + t = ue.state.noAnonFunctionType; + switch (ue.state.type) { + case _.TokenType.name: { + if (G.isContextual.call(void 0, Te.ContextualKeyword._interface)) { + n0(); return; } - Ie.parseIdentifier.call(void 0), yk(); + je.parseIdentifier.call(void 0), l0(); return; } - case p.TokenType.braceL: - ps(!1, !1, !1); + case _.TokenType.braceL: + Co(!1, !1, !1); return; - case p.TokenType.braceBarL: - ps(!1, !0, !1); + case _.TokenType.braceBarL: + Co(!1, !0, !1); return; - case p.TokenType.bracketL: - kk(); + case _.TokenType.bracketL: + u0(); return; - case p.TokenType.lessThan: - nn(), - N.expect.call(void 0, p.TokenType.parenL), - qa(), - N.expect.call(void 0, p.TokenType.parenR), - N.expect.call(void 0, p.TokenType.arrow), - Tt(); + case _.TokenType.lessThan: + On(), + G.expect.call(void 0, _.TokenType.parenL), + Al(), + G.expect.call(void 0, _.TokenType.parenR), + G.expect.call(void 0, _.TokenType.arrow), + Wt(); return; - case p.TokenType.parenL: + case _.TokenType.parenL: if ( - (f.next.call(void 0), - !f.match.call(void 0, p.TokenType.parenR) && - !f.match.call(void 0, p.TokenType.ellipsis)) + (C.next.call(void 0), + !C.match.call(void 0, _.TokenType.parenR) && + !C.match.call(void 0, _.TokenType.ellipsis)) ) - if (f.match.call(void 0, p.TokenType.name)) { - let n = f.lookaheadType.call(void 0); - e = n !== p.TokenType.question && n !== p.TokenType.colon; + if (C.match.call(void 0, _.TokenType.name)) { + let s = C.lookaheadType.call(void 0); + e = s !== _.TokenType.question && s !== _.TokenType.colon; } else e = !0; if (e) if ( - ((J.state.noAnonFunctionType = !1), - Tt(), - (J.state.noAnonFunctionType = t), - J.state.noAnonFunctionType || + ((ue.state.noAnonFunctionType = !1), + Wt(), + (ue.state.noAnonFunctionType = t), + ue.state.noAnonFunctionType || !( - f.match.call(void 0, p.TokenType.comma) || - (f.match.call(void 0, p.TokenType.parenR) && - f.lookaheadType.call(void 0) === p.TokenType.arrow) + C.match.call(void 0, _.TokenType.comma) || + (C.match.call(void 0, _.TokenType.parenR) && + C.lookaheadType.call(void 0) === _.TokenType.arrow) )) ) { - N.expect.call(void 0, p.TokenType.parenR); + G.expect.call(void 0, _.TokenType.parenR); return; - } else f.eat.call(void 0, p.TokenType.comma); - qa(), - N.expect.call(void 0, p.TokenType.parenR), - N.expect.call(void 0, p.TokenType.arrow), - Tt(); + } else C.eat.call(void 0, _.TokenType.comma); + Al(), + G.expect.call(void 0, _.TokenType.parenR), + G.expect.call(void 0, _.TokenType.arrow), + Wt(); return; - case p.TokenType.minus: - f.next.call(void 0), Ie.parseLiteral.call(void 0); + case _.TokenType.minus: + C.next.call(void 0), je.parseLiteral.call(void 0); return; - case p.TokenType.string: - case p.TokenType.num: - case p.TokenType._true: - case p.TokenType._false: - case p.TokenType._null: - case p.TokenType._this: - case p.TokenType._void: - case p.TokenType.star: - f.next.call(void 0); + case _.TokenType.string: + case _.TokenType.num: + case _.TokenType._true: + case _.TokenType._false: + case _.TokenType._null: + case _.TokenType._this: + case _.TokenType._void: + case _.TokenType.star: + C.next.call(void 0); return; default: - if (J.state.type === p.TokenType._typeof) { - mk(); + if (ue.state.type === _.TokenType._typeof) { + c0(); return; - } else if (J.state.type & p.TokenType.IS_KEYWORD) { - f.next.call(void 0), - (J.state.tokens[J.state.tokens.length - 1].type = - p.TokenType.name); + } else if (ue.state.type & _.TokenType.IS_KEYWORD) { + C.next.call(void 0), + (ue.state.tokens[ue.state.tokens.length - 1].type = + _.TokenType.name); return; } } - N.unexpected.call(void 0); + G.unexpected.call(void 0); } - function vk() { + function p0() { for ( - lp(); - !N.canInsertSemicolon.call(void 0) && - (f.match.call(void 0, p.TokenType.bracketL) || - f.match.call(void 0, p.TokenType.questionDot)); + sh(); + !G.canInsertSemicolon.call(void 0) && + (C.match.call(void 0, _.TokenType.bracketL) || + C.match.call(void 0, _.TokenType.questionDot)); ) - f.eat.call(void 0, p.TokenType.questionDot), - N.expect.call(void 0, p.TokenType.bracketL), - f.eat.call(void 0, p.TokenType.bracketR) || - (Tt(), N.expect.call(void 0, p.TokenType.bracketR)); + C.eat.call(void 0, _.TokenType.questionDot), + G.expect.call(void 0, _.TokenType.bracketL), + C.eat.call(void 0, _.TokenType.bracketR) || + (Wt(), G.expect.call(void 0, _.TokenType.bracketR)); } - function cp() { - f.eat.call(void 0, p.TokenType.question) ? cp() : vk(); + function ih() { + C.eat.call(void 0, _.TokenType.question) ? ih() : p0(); } - function sp() { - cp(), - !J.state.noAnonFunctionType && - f.eat.call(void 0, p.TokenType.arrow) && - Tt(); + function eh() { + ih(), + !ue.state.noAnonFunctionType && + C.eat.call(void 0, _.TokenType.arrow) && + Wt(); } - function ip() { + function th() { for ( - f.eat.call(void 0, p.TokenType.bitwiseAND), sp(); - f.eat.call(void 0, p.TokenType.bitwiseAND); + C.eat.call(void 0, _.TokenType.bitwiseAND), eh(); + C.eat.call(void 0, _.TokenType.bitwiseAND); ) - sp(); + eh(); } - function _k() { + function h0() { for ( - f.eat.call(void 0, p.TokenType.bitwiseOR), ip(); - f.eat.call(void 0, p.TokenType.bitwiseOR); + C.eat.call(void 0, _.TokenType.bitwiseOR), th(); + C.eat.call(void 0, _.TokenType.bitwiseOR); ) - ip(); + th(); } - function Tt() { - _k(); + function Wt() { + h0(); } - function wo() { - tn(); - } - Ae.flowParseTypeAnnotation = wo; - function up() { - Ie.parseIdentifier.call(void 0), - f.match.call(void 0, p.TokenType.colon) && wo(); - } - function Ga() { - (f.match.call(void 0, p.TokenType.plus) || - f.match.call(void 0, p.TokenType.minus)) && - (f.next.call(void 0), - (J.state.tokens[J.state.tokens.length - 1].isType = !0)); - } - Ae.flowParseVariance = Ga; - function xk(e) { - f.match.call(void 0, p.TokenType.colon) && Ha(), - Ie.parseFunctionBody.call(void 0, !1, e); - } - Ae.flowParseFunctionBodyAndFinish = xk; - function gk(e, t, n) { + function vi() { + Ln(); + } + Je.flowParseTypeAnnotation = vi; + function rh() { + je.parseIdentifier.call(void 0), + C.match.call(void 0, _.TokenType.colon) && vi(); + } + function Fl() { + (C.match.call(void 0, _.TokenType.plus) || + C.match.call(void 0, _.TokenType.minus)) && + (C.next.call(void 0), + (ue.state.tokens[ue.state.tokens.length - 1].isType = !0)); + } + Je.flowParseVariance = Fl; + function f0(e) { + C.match.call(void 0, _.TokenType.colon) && Pl(), + je.parseFunctionBody.call(void 0, !1, e); + } + Je.flowParseFunctionBodyAndFinish = f0; + function d0(e, t, s) { if ( - f.match.call(void 0, p.TokenType.questionDot) && - f.lookaheadType.call(void 0) === p.TokenType.lessThan + C.match.call(void 0, _.TokenType.questionDot) && + C.lookaheadType.call(void 0) === _.TokenType.lessThan ) { if (t) { - n.stop = !0; + s.stop = !0; return; } - f.next.call(void 0), - Yn(), - N.expect.call(void 0, p.TokenType.parenL), - Ie.parseCallExpressionArguments.call(void 0); + C.next.call(void 0), + Rs(), + G.expect.call(void 0, _.TokenType.parenL), + je.parseCallExpressionArguments.call(void 0); return; - } else if (!t && f.match.call(void 0, p.TokenType.lessThan)) { - let o = J.state.snapshot(); + } else if (!t && C.match.call(void 0, _.TokenType.lessThan)) { + let i = ue.state.snapshot(); if ( - (Yn(), - N.expect.call(void 0, p.TokenType.parenL), - Ie.parseCallExpressionArguments.call(void 0), - J.state.error) + (Rs(), + G.expect.call(void 0, _.TokenType.parenL), + je.parseCallExpressionArguments.call(void 0), + ue.state.error) ) - J.state.restoreFromSnapshot(o); + ue.state.restoreFromSnapshot(i); else return; } - Ie.baseParseSubscript.call(void 0, e, t, n); + je.baseParseSubscript.call(void 0, e, t, s); } - Ae.flowParseSubscript = gk; - function Ck() { - if (f.match.call(void 0, p.TokenType.lessThan)) { - let e = J.state.snapshot(); - Yn(), J.state.error && J.state.restoreFromSnapshot(e); + Je.flowParseSubscript = d0; + function m0() { + if (C.match.call(void 0, _.TokenType.lessThan)) { + let e = ue.state.snapshot(); + Rs(), ue.state.error && ue.state.restoreFromSnapshot(e); } } - Ae.flowStartParseNewArguments = Ck; - function wk() { + Je.flowStartParseNewArguments = m0; + function T0() { if ( - f.match.call(void 0, p.TokenType.name) && - J.state.contextualKeyword === te.ContextualKeyword._interface + C.match.call(void 0, _.TokenType.name) && + ue.state.contextualKeyword === Te.ContextualKeyword._interface ) { - let e = f.pushTypeContext.call(void 0, 0); - return f.next.call(void 0), Wa(), f.popTypeContext.call(void 0, e), !0; - } else if (N.isContextual.call(void 0, te.ContextualKeyword._enum)) - return pp(), !0; + let e = C.pushTypeContext.call(void 0, 0); + return C.next.call(void 0), Rl(), C.popTypeContext.call(void 0, e), !0; + } else if (G.isContextual.call(void 0, Te.ContextualKeyword._enum)) + return oh(), !0; return !1; } - Ae.flowTryParseStatement = wk; - function Ik() { - return N.isContextual.call(void 0, te.ContextualKeyword._enum) - ? (pp(), !0) + Je.flowTryParseStatement = T0; + function y0() { + return G.isContextual.call(void 0, Te.ContextualKeyword._enum) + ? (oh(), !0) : !1; } - Ae.flowTryParseExportDefaultExpression = Ik; - function Sk(e) { - if (e === te.ContextualKeyword._declare) { + Je.flowTryParseExportDefaultExpression = y0; + function k0(e) { + if (e === Te.ContextualKeyword._declare) { if ( - f.match.call(void 0, p.TokenType._class) || - f.match.call(void 0, p.TokenType.name) || - f.match.call(void 0, p.TokenType._function) || - f.match.call(void 0, p.TokenType._var) || - f.match.call(void 0, p.TokenType._export) + C.match.call(void 0, _.TokenType._class) || + C.match.call(void 0, _.TokenType.name) || + C.match.call(void 0, _.TokenType._function) || + C.match.call(void 0, _.TokenType._var) || + C.match.call(void 0, _.TokenType._export) ) { - let t = f.pushTypeContext.call(void 0, 1); - Ka(), f.popTypeContext.call(void 0, t); + let t = C.pushTypeContext.call(void 0, 1); + El(), C.popTypeContext.call(void 0, t); } - } else if (f.match.call(void 0, p.TokenType.name)) { - if (e === te.ContextualKeyword._interface) { - let t = f.pushTypeContext.call(void 0, 1); - Wa(), f.popTypeContext.call(void 0, t); - } else if (e === te.ContextualKeyword._type) { - let t = f.pushTypeContext.call(void 0, 1); - Va(), f.popTypeContext.call(void 0, t); - } else if (e === te.ContextualKeyword._opaque) { - let t = f.pushTypeContext.call(void 0, 1); - za(!1), f.popTypeContext.call(void 0, t); + } else if (C.match.call(void 0, _.TokenType.name)) { + if (e === Te.ContextualKeyword._interface) { + let t = C.pushTypeContext.call(void 0, 1); + Rl(), C.popTypeContext.call(void 0, t); + } else if (e === Te.ContextualKeyword._type) { + let t = C.pushTypeContext.call(void 0, 1); + Ll(), C.popTypeContext.call(void 0, t); + } else if (e === Te.ContextualKeyword._opaque) { + let t = C.pushTypeContext.call(void 0, 1); + Ol(!1), C.popTypeContext.call(void 0, t); } } - N.semicolon.call(void 0); + G.semicolon.call(void 0); } - Ae.flowParseIdentifierStatement = Sk; - function bk() { + Je.flowParseIdentifierStatement = k0; + function v0() { return ( - N.isContextual.call(void 0, te.ContextualKeyword._type) || - N.isContextual.call(void 0, te.ContextualKeyword._interface) || - N.isContextual.call(void 0, te.ContextualKeyword._opaque) || - N.isContextual.call(void 0, te.ContextualKeyword._enum) + G.isContextual.call(void 0, Te.ContextualKeyword._type) || + G.isContextual.call(void 0, Te.ContextualKeyword._interface) || + G.isContextual.call(void 0, Te.ContextualKeyword._opaque) || + G.isContextual.call(void 0, Te.ContextualKeyword._enum) ); } - Ae.flowShouldParseExportDeclaration = bk; - function Ek() { + Je.flowShouldParseExportDeclaration = v0; + function x0() { return ( - f.match.call(void 0, p.TokenType.name) && - (J.state.contextualKeyword === te.ContextualKeyword._type || - J.state.contextualKeyword === te.ContextualKeyword._interface || - J.state.contextualKeyword === te.ContextualKeyword._opaque || - J.state.contextualKeyword === te.ContextualKeyword._enum) + C.match.call(void 0, _.TokenType.name) && + (ue.state.contextualKeyword === Te.ContextualKeyword._type || + ue.state.contextualKeyword === Te.ContextualKeyword._interface || + ue.state.contextualKeyword === Te.ContextualKeyword._opaque || + ue.state.contextualKeyword === Te.ContextualKeyword._enum) ); } - Ae.flowShouldDisallowExportDefaultSpecifier = Ek; - function Ak() { - if (N.isContextual.call(void 0, te.ContextualKeyword._type)) { - let e = f.pushTypeContext.call(void 0, 1); - f.next.call(void 0), - f.match.call(void 0, p.TokenType.braceL) - ? (Dn.parseExportSpecifiers.call(void 0), - Dn.parseExportFrom.call(void 0)) - : Va(), - f.popTypeContext.call(void 0, e); - } else if (N.isContextual.call(void 0, te.ContextualKeyword._opaque)) { - let e = f.pushTypeContext.call(void 0, 1); - f.next.call(void 0), za(!1), f.popTypeContext.call(void 0, e); - } else if (N.isContextual.call(void 0, te.ContextualKeyword._interface)) { - let e = f.pushTypeContext.call(void 0, 1); - f.next.call(void 0), Wa(), f.popTypeContext.call(void 0, e); - } else Dn.parseStatement.call(void 0, !0); - } - Ae.flowParseExportDeclaration = Ak; - function Pk() { + Je.flowShouldDisallowExportDefaultSpecifier = x0; + function g0() { + if (G.isContextual.call(void 0, Te.ContextualKeyword._type)) { + let e = C.pushTypeContext.call(void 0, 1); + C.next.call(void 0), + C.match.call(void 0, _.TokenType.braceL) + ? (Ts.parseExportSpecifiers.call(void 0), + Ts.parseExportFrom.call(void 0)) + : Ll(), + C.popTypeContext.call(void 0, e); + } else if (G.isContextual.call(void 0, Te.ContextualKeyword._opaque)) { + let e = C.pushTypeContext.call(void 0, 1); + C.next.call(void 0), Ol(!1), C.popTypeContext.call(void 0, e); + } else if (G.isContextual.call(void 0, Te.ContextualKeyword._interface)) { + let e = C.pushTypeContext.call(void 0, 1); + C.next.call(void 0), Rl(), C.popTypeContext.call(void 0, e); + } else Ts.parseStatement.call(void 0, !0); + } + Je.flowParseExportDeclaration = g0; + function _0() { return ( - f.match.call(void 0, p.TokenType.star) || - (N.isContextual.call(void 0, te.ContextualKeyword._type) && - f.lookaheadType.call(void 0) === p.TokenType.star) + C.match.call(void 0, _.TokenType.star) || + (G.isContextual.call(void 0, Te.ContextualKeyword._type) && + C.lookaheadType.call(void 0) === _.TokenType.star) ); } - Ae.flowShouldParseExportStar = Pk; - function Rk() { - if (N.eatContextual.call(void 0, te.ContextualKeyword._type)) { - let e = f.pushTypeContext.call(void 0, 2); - Dn.baseParseExportStar.call(void 0), f.popTypeContext.call(void 0, e); - } else Dn.baseParseExportStar.call(void 0); + Je.flowShouldParseExportStar = _0; + function b0() { + if (G.eatContextual.call(void 0, Te.ContextualKeyword._type)) { + let e = C.pushTypeContext.call(void 0, 2); + Ts.baseParseExportStar.call(void 0), C.popTypeContext.call(void 0, e); + } else Ts.baseParseExportStar.call(void 0); } - Ae.flowParseExportStar = Rk; - function Nk(e) { + Je.flowParseExportStar = b0; + function C0(e) { if ( - (e && f.match.call(void 0, p.TokenType.lessThan) && Yn(), - N.isContextual.call(void 0, te.ContextualKeyword._implements)) + (e && C.match.call(void 0, _.TokenType.lessThan) && Rs(), + G.isContextual.call(void 0, Te.ContextualKeyword._implements)) ) { - let t = f.pushTypeContext.call(void 0, 0); - f.next.call(void 0), - (J.state.tokens[J.state.tokens.length - 1].type = - p.TokenType._implements); - do fs(), f.match.call(void 0, p.TokenType.lessThan) && Yn(); - while (f.eat.call(void 0, p.TokenType.comma)); - f.popTypeContext.call(void 0, t); - } - } - Ae.flowAfterParseClassSuper = Nk; - function Dk() { - f.match.call(void 0, p.TokenType.lessThan) && - (nn(), - f.match.call(void 0, p.TokenType.parenL) || N.unexpected.call(void 0)); - } - Ae.flowStartParseObjPropValue = Dk; - function Ok() { - let e = f.pushTypeContext.call(void 0, 0); - f.eat.call(void 0, p.TokenType.question), - f.match.call(void 0, p.TokenType.colon) && wo(), - f.popTypeContext.call(void 0, e); - } - Ae.flowParseAssignableListItemTypes = Ok; - function Mk() { + let t = C.pushTypeContext.call(void 0, 0); + C.next.call(void 0), + (ue.state.tokens[ue.state.tokens.length - 1].type = + _.TokenType._implements); + do So(), C.match.call(void 0, _.TokenType.lessThan) && Rs(); + while (C.eat.call(void 0, _.TokenType.comma)); + C.popTypeContext.call(void 0, t); + } + } + Je.flowAfterParseClassSuper = C0; + function w0() { + C.match.call(void 0, _.TokenType.lessThan) && + (On(), + C.match.call(void 0, _.TokenType.parenL) || G.unexpected.call(void 0)); + } + Je.flowStartParseObjPropValue = w0; + function S0() { + let e = C.pushTypeContext.call(void 0, 0); + C.eat.call(void 0, _.TokenType.question), + C.match.call(void 0, _.TokenType.colon) && vi(), + C.popTypeContext.call(void 0, e); + } + Je.flowParseAssignableListItemTypes = S0; + function I0() { if ( - f.match.call(void 0, p.TokenType._typeof) || - N.isContextual.call(void 0, te.ContextualKeyword._type) + C.match.call(void 0, _.TokenType._typeof) || + G.isContextual.call(void 0, Te.ContextualKeyword._type) ) { - let e = f.lookaheadTypeAndKeyword.call(void 0); - (Zm(e) || - e.type === p.TokenType.braceL || - e.type === p.TokenType.star) && - f.next.call(void 0); + let e = C.lookaheadTypeAndKeyword.call(void 0); + (Hk(e) || + e.type === _.TokenType.braceL || + e.type === _.TokenType.star) && + C.next.call(void 0); } } - Ae.flowStartParseImportSpecifiers = Mk; - function Lk() { + Je.flowStartParseImportSpecifiers = I0; + function E0() { let e = - J.state.contextualKeyword === te.ContextualKeyword._type || - J.state.type === p.TokenType._typeof; - e ? f.next.call(void 0) : Ie.parseIdentifier.call(void 0), - N.isContextual.call(void 0, te.ContextualKeyword._as) && - !N.isLookaheadContextual.call(void 0, te.ContextualKeyword._as) - ? (Ie.parseIdentifier.call(void 0), + ue.state.contextualKeyword === Te.ContextualKeyword._type || + ue.state.type === _.TokenType._typeof; + e ? C.next.call(void 0) : je.parseIdentifier.call(void 0), + G.isContextual.call(void 0, Te.ContextualKeyword._as) && + !G.isLookaheadContextual.call(void 0, Te.ContextualKeyword._as) + ? (je.parseIdentifier.call(void 0), (e && - !f.match.call(void 0, p.TokenType.name) && - !(J.state.type & p.TokenType.IS_KEYWORD)) || - Ie.parseIdentifier.call(void 0)) + !C.match.call(void 0, _.TokenType.name) && + !(ue.state.type & _.TokenType.IS_KEYWORD)) || + je.parseIdentifier.call(void 0)) : (e && - (f.match.call(void 0, p.TokenType.name) || - J.state.type & p.TokenType.IS_KEYWORD) && - Ie.parseIdentifier.call(void 0), - N.eatContextual.call(void 0, te.ContextualKeyword._as) && - Ie.parseIdentifier.call(void 0)); - } - Ae.flowParseImportSpecifier = Lk; - function Fk() { - if (f.match.call(void 0, p.TokenType.lessThan)) { - let e = f.pushTypeContext.call(void 0, 0); - nn(), f.popTypeContext.call(void 0, e); - } - } - Ae.flowStartParseFunctionParams = Fk; - function $k() { - f.match.call(void 0, p.TokenType.colon) && wo(); - } - Ae.flowAfterParseVarHead = $k; - function Bk() { - if (f.match.call(void 0, p.TokenType.colon)) { - let e = J.state.noAnonFunctionType; - (J.state.noAnonFunctionType = !0), - wo(), - (J.state.noAnonFunctionType = e); - } - } - Ae.flowStartParseAsyncArrowFromCallExpression = Bk; - function jk(e, t) { - if (f.match.call(void 0, p.TokenType.lessThan)) { - let n = J.state.snapshot(), - o = Ie.baseParseMaybeAssign.call(void 0, e, t); - if (J.state.error) - J.state.restoreFromSnapshot(n), - (J.state.type = p.TokenType.typeParameterStart); - else return o; - let r = f.pushTypeContext.call(void 0, 0); + (C.match.call(void 0, _.TokenType.name) || + ue.state.type & _.TokenType.IS_KEYWORD) && + je.parseIdentifier.call(void 0), + G.eatContextual.call(void 0, Te.ContextualKeyword._as) && + je.parseIdentifier.call(void 0)); + } + Je.flowParseImportSpecifier = E0; + function A0() { + if (C.match.call(void 0, _.TokenType.lessThan)) { + let e = C.pushTypeContext.call(void 0, 0); + On(), C.popTypeContext.call(void 0, e); + } + } + Je.flowStartParseFunctionParams = A0; + function P0() { + C.match.call(void 0, _.TokenType.colon) && vi(); + } + Je.flowAfterParseVarHead = P0; + function N0() { + if (C.match.call(void 0, _.TokenType.colon)) { + let e = ue.state.noAnonFunctionType; + (ue.state.noAnonFunctionType = !0), + vi(), + (ue.state.noAnonFunctionType = e); + } + } + Je.flowStartParseAsyncArrowFromCallExpression = N0; + function R0(e, t) { + if (C.match.call(void 0, _.TokenType.lessThan)) { + let s = ue.state.snapshot(), + i = je.baseParseMaybeAssign.call(void 0, e, t); + if (ue.state.error) + ue.state.restoreFromSnapshot(s), + (ue.state.type = _.TokenType.typeParameterStart); + else return i; + let r = C.pushTypeContext.call(void 0, 0); if ( - (nn(), - f.popTypeContext.call(void 0, r), - (o = Ie.baseParseMaybeAssign.call(void 0, e, t)), - o) + (On(), + C.popTypeContext.call(void 0, r), + (i = je.baseParseMaybeAssign.call(void 0, e, t)), + i) ) return !0; - N.unexpected.call(void 0); - } - return Ie.baseParseMaybeAssign.call(void 0, e, t); - } - Ae.flowParseMaybeAssign = jk; - function Kk() { - if (f.match.call(void 0, p.TokenType.colon)) { - let e = f.pushTypeContext.call(void 0, 0), - t = J.state.snapshot(), - n = J.state.noAnonFunctionType; - (J.state.noAnonFunctionType = !0), - Ha(), - (J.state.noAnonFunctionType = n), - N.canInsertSemicolon.call(void 0) && N.unexpected.call(void 0), - f.match.call(void 0, p.TokenType.arrow) || N.unexpected.call(void 0), - J.state.error && J.state.restoreFromSnapshot(t), - f.popTypeContext.call(void 0, e); - } - return f.eat.call(void 0, p.TokenType.arrow); - } - Ae.flowParseArrow = Kk; - function qk(e, t = !1) { + G.unexpected.call(void 0); + } + return je.baseParseMaybeAssign.call(void 0, e, t); + } + Je.flowParseMaybeAssign = R0; + function L0() { + if (C.match.call(void 0, _.TokenType.colon)) { + let e = C.pushTypeContext.call(void 0, 0), + t = ue.state.snapshot(), + s = ue.state.noAnonFunctionType; + (ue.state.noAnonFunctionType = !0), + Pl(), + (ue.state.noAnonFunctionType = s), + G.canInsertSemicolon.call(void 0) && G.unexpected.call(void 0), + C.match.call(void 0, _.TokenType.arrow) || G.unexpected.call(void 0), + ue.state.error && ue.state.restoreFromSnapshot(t), + C.popTypeContext.call(void 0, e); + } + return C.eat.call(void 0, _.TokenType.arrow); + } + Je.flowParseArrow = L0; + function O0(e, t = !1) { if ( - J.state.tokens[J.state.tokens.length - 1].contextualKeyword === - te.ContextualKeyword._async && - f.match.call(void 0, p.TokenType.lessThan) + ue.state.tokens[ue.state.tokens.length - 1].contextualKeyword === + Te.ContextualKeyword._async && + C.match.call(void 0, _.TokenType.lessThan) ) { - let n = J.state.snapshot(); - if (Hk() && !J.state.error) return; - J.state.restoreFromSnapshot(n); + let s = ue.state.snapshot(); + if (D0() && !ue.state.error) return; + ue.state.restoreFromSnapshot(s); } - Ie.baseParseSubscripts.call(void 0, e, t); + je.baseParseSubscripts.call(void 0, e, t); } - Ae.flowParseSubscripts = qk; - function Hk() { - J.state.scopeDepth++; - let e = J.state.tokens.length; + Je.flowParseSubscripts = O0; + function D0() { + ue.state.scopeDepth++; + let e = ue.state.tokens.length; return ( - Dn.parseFunctionParams.call(void 0), - Ie.parseArrow.call(void 0) - ? (Ie.parseArrowExpression.call(void 0, e), !0) + Ts.parseFunctionParams.call(void 0), + je.parseArrow.call(void 0) + ? (je.parseArrowExpression.call(void 0, e), !0) : !1 ); } - function pp() { - N.expectContextual.call(void 0, te.ContextualKeyword._enum), - (J.state.tokens[J.state.tokens.length - 1].type = p.TokenType._enum), - Ie.parseIdentifier.call(void 0), - Uk(); + function oh() { + G.expectContextual.call(void 0, Te.ContextualKeyword._enum), + (ue.state.tokens[ue.state.tokens.length - 1].type = _.TokenType._enum), + je.parseIdentifier.call(void 0), + M0(); } - function Uk() { - N.eatContextual.call(void 0, te.ContextualKeyword._of) && - f.next.call(void 0), - N.expect.call(void 0, p.TokenType.braceL), - Wk(), - N.expect.call(void 0, p.TokenType.braceR); + function M0() { + G.eatContextual.call(void 0, Te.ContextualKeyword._of) && + C.next.call(void 0), + G.expect.call(void 0, _.TokenType.braceL), + F0(), + G.expect.call(void 0, _.TokenType.braceR); } - function Wk() { + function F0() { for ( ; - !f.match.call(void 0, p.TokenType.braceR) && - !J.state.error && - !f.eat.call(void 0, p.TokenType.ellipsis); + !C.match.call(void 0, _.TokenType.braceR) && + !ue.state.error && + !C.eat.call(void 0, _.TokenType.ellipsis); ) - Vk(), - f.match.call(void 0, p.TokenType.braceR) || - N.expect.call(void 0, p.TokenType.comma); + B0(), + C.match.call(void 0, _.TokenType.braceR) || + G.expect.call(void 0, _.TokenType.comma); } - function Vk() { - Ie.parseIdentifier.call(void 0), - f.eat.call(void 0, p.TokenType.eq) && f.next.call(void 0); + function B0() { + je.parseIdentifier.call(void 0), + C.eat.call(void 0, _.TokenType.eq) && C.next.call(void 0); } }); - var Jo = H((Ue) => { + var nr = Z((yt) => { 'use strict'; - Object.defineProperty(Ue, '__esModule', {value: !0}); - var zk = o1(), - st = Vo(), - He = mo(), - S = Ve(), - se = Ge(), - On = Pr(), - k = ce(), - dp = gt(), - y = Ct(), - me = Xn(), - Mn = Gr(), - q = Sn(); - function Xk() { + Object.defineProperty(yt, '__esModule', {value: !0}); + var V0 = Ul(), + Ft = Ji(), + dt = hi(), + $ = xt(), + ke = It(), + ys = qr(), + O = be(), + ah = Qt(), + P = Zt(), + De = Ns(), + ks = lo(), + ee = cs(); + function j0() { if ( - (t1(k.TokenType.eof), - y.state.scopes.push(new On.Scope(0, y.state.tokens.length, !0)), - y.state.scopeDepth !== 0) + (ql(O.TokenType.eof), + P.state.scopes.push(new ys.Scope(0, P.state.tokens.length, !0)), + P.state.scopeDepth !== 0) ) throw new Error( - `Invalid scope depth at end of file: ${y.state.scopeDepth}` + `Invalid scope depth at end of file: ${P.state.scopeDepth}` ); - return new zk.File(y.state.tokens, y.state.scopes); + return new V0.File(P.state.tokens, P.state.scopes); } - Ue.parseTopLevel = Xk; - function Wt(e) { - (y.isFlowEnabled && st.flowTryParseStatement.call(void 0)) || - (S.match.call(void 0, k.TokenType.at) && e1(), Yk(e)); + yt.parseTopLevel = j0; + function _n(e) { + (P.isFlowEnabled && Ft.flowTryParseStatement.call(void 0)) || + ($.match.call(void 0, O.TokenType.at) && $l(), $0(e)); } - Ue.parseStatement = Wt; - function Yk(e) { - if (y.isTypeScriptEnabled && He.tsTryParseStatementContent.call(void 0)) + yt.parseStatement = _n; + function $0(e) { + if (P.isTypeScriptEnabled && dt.tsTryParseStatementContent.call(void 0)) return; - let t = y.state.type; + let t = P.state.type; switch (t) { - case k.TokenType._break: - case k.TokenType._continue: - Jk(); + case O.TokenType._break: + case O.TokenType._continue: + K0(); return; - case k.TokenType._debugger: - Qk(); + case O.TokenType._debugger: + U0(); return; - case k.TokenType._do: - Zk(); + case O.TokenType._do: + H0(); return; - case k.TokenType._for: - ev(); + case O.TokenType._for: + W0(); return; - case k.TokenType._function: - if (S.lookaheadType.call(void 0) === k.TokenType.dot) break; - e || q.unexpected.call(void 0), ov(); + case O.TokenType._function: + if ($.lookaheadType.call(void 0) === O.TokenType.dot) break; + e || ee.unexpected.call(void 0), X0(); return; - case k.TokenType._class: - e || q.unexpected.call(void 0), hs(!0); + case O.TokenType._class: + e || ee.unexpected.call(void 0), Io(!0); return; - case k.TokenType._if: - rv(); + case O.TokenType._if: + Y0(); return; - case k.TokenType._return: - sv(); + case O.TokenType._return: + J0(); return; - case k.TokenType._switch: - iv(); + case O.TokenType._switch: + Q0(); return; - case k.TokenType._throw: - av(); + case O.TokenType._throw: + Z0(); return; - case k.TokenType._try: - cv(); + case O.TokenType._try: + tv(); return; - case k.TokenType._let: - case k.TokenType._const: - e || q.unexpected.call(void 0); - case k.TokenType._var: - Qa(t !== k.TokenType._var); + case O.TokenType._let: + case O.TokenType._const: + e || ee.unexpected.call(void 0); + case O.TokenType._var: + Vl(t !== O.TokenType._var); return; - case k.TokenType._while: - uv(); + case O.TokenType._while: + nv(); return; - case k.TokenType.braceL: - So(); + case O.TokenType.braceL: + gi(); return; - case k.TokenType.semi: - pv(); + case O.TokenType.semi: + sv(); return; - case k.TokenType._export: - case k.TokenType._import: { - let r = S.lookaheadType.call(void 0); - if (r === k.TokenType.parenL || r === k.TokenType.dot) break; - S.next.call(void 0), t === k.TokenType._import ? wp() : xp(); + case O.TokenType._export: + case O.TokenType._import: { + let r = $.lookaheadType.call(void 0); + if (r === O.TokenType.parenL || r === O.TokenType.dot) break; + $.next.call(void 0), t === O.TokenType._import ? vh() : Th(); return; } - case k.TokenType.name: - if (y.state.contextualKeyword === se.ContextualKeyword._async) { - let r = y.state.start, - s = y.state.snapshot(); + case O.TokenType.name: + if (P.state.contextualKeyword === ke.ContextualKeyword._async) { + let r = P.state.start, + a = P.state.snapshot(); if ( - (S.next.call(void 0), - S.match.call(void 0, k.TokenType._function) && - !q.canInsertSemicolon.call(void 0)) + ($.next.call(void 0), + $.match.call(void 0, O.TokenType._function) && + !ee.canInsertSemicolon.call(void 0)) ) { - q.expect.call(void 0, k.TokenType._function), or(r, !0); + ee.expect.call(void 0, O.TokenType._function), lr(r, !0); return; - } else y.state.restoreFromSnapshot(s); + } else P.state.restoreFromSnapshot(a); } else if ( - y.state.contextualKeyword === se.ContextualKeyword._using && - !q.hasFollowingLineBreak.call(void 0) && - S.lookaheadType.call(void 0) === k.TokenType.name + P.state.contextualKeyword === ke.ContextualKeyword._using && + !ee.hasFollowingLineBreak.call(void 0) && + $.lookaheadType.call(void 0) === O.TokenType.name ) { - Qa(!0); + Vl(!0); return; } default: break; } - let n = y.state.tokens.length; - me.parseExpression.call(void 0); - let o = null; - if (y.state.tokens.length === n + 1) { - let r = y.state.tokens[y.state.tokens.length - 1]; - r.type === k.TokenType.name && (o = r.contextualKeyword); + let s = P.state.tokens.length; + De.parseExpression.call(void 0); + let i = null; + if (P.state.tokens.length === s + 1) { + let r = P.state.tokens[P.state.tokens.length - 1]; + r.type === O.TokenType.name && (i = r.contextualKeyword); } - if (o == null) { - q.semicolon.call(void 0); + if (i == null) { + ee.semicolon.call(void 0); return; } - S.eat.call(void 0, k.TokenType.colon) ? dv() : fv(o); + $.eat.call(void 0, O.TokenType.colon) ? iv() : rv(i); } - function e1() { - for (; S.match.call(void 0, k.TokenType.at); ) Tp(); + function $l() { + for (; $.match.call(void 0, O.TokenType.at); ) uh(); } - Ue.parseDecorators = e1; - function Tp() { - if ((S.next.call(void 0), S.eat.call(void 0, k.TokenType.parenL))) - me.parseExpression.call(void 0), - q.expect.call(void 0, k.TokenType.parenR); + yt.parseDecorators = $l; + function uh() { + if (($.next.call(void 0), $.eat.call(void 0, O.TokenType.parenL))) + De.parseExpression.call(void 0), + ee.expect.call(void 0, O.TokenType.parenR); else { for ( - me.parseIdentifier.call(void 0); - S.eat.call(void 0, k.TokenType.dot); + De.parseIdentifier.call(void 0); + $.eat.call(void 0, O.TokenType.dot); ) - me.parseIdentifier.call(void 0); - Gk(); - } - } - function Gk() { - y.isTypeScriptEnabled - ? He.tsParseMaybeDecoratorArguments.call(void 0) - : yp(); - } - function yp() { - S.eat.call(void 0, k.TokenType.parenL) && - me.parseCallExpressionArguments.call(void 0); - } - Ue.baseParseMaybeDecoratorArguments = yp; - function Jk() { - S.next.call(void 0), - q.isLineTerminator.call(void 0) || - (me.parseIdentifier.call(void 0), q.semicolon.call(void 0)); - } - function Qk() { - S.next.call(void 0), q.semicolon.call(void 0); - } - function Zk() { - S.next.call(void 0), - Wt(!1), - q.expect.call(void 0, k.TokenType._while), - me.parseParenExpression.call(void 0), - S.eat.call(void 0, k.TokenType.semi); - } - function ev() { - y.state.scopeDepth++; - let e = y.state.tokens.length; - nv(); - let t = y.state.tokens.length; - y.state.scopes.push(new On.Scope(e, t, !1)), y.state.scopeDepth--; - } - function tv() { + De.parseIdentifier.call(void 0); + q0(); + } + } + function q0() { + P.isTypeScriptEnabled + ? dt.tsParseMaybeDecoratorArguments.call(void 0) + : ph(); + } + function ph() { + $.eat.call(void 0, O.TokenType.parenL) && + De.parseCallExpressionArguments.call(void 0); + } + yt.baseParseMaybeDecoratorArguments = ph; + function K0() { + $.next.call(void 0), + ee.isLineTerminator.call(void 0) || + (De.parseIdentifier.call(void 0), ee.semicolon.call(void 0)); + } + function U0() { + $.next.call(void 0), ee.semicolon.call(void 0); + } + function H0() { + $.next.call(void 0), + _n(!1), + ee.expect.call(void 0, O.TokenType._while), + De.parseParenExpression.call(void 0), + $.eat.call(void 0, O.TokenType.semi); + } + function W0() { + P.state.scopeDepth++; + let e = P.state.tokens.length; + z0(); + let t = P.state.tokens.length; + P.state.scopes.push(new ys.Scope(e, t, !1)), P.state.scopeDepth--; + } + function G0() { return !( - !q.isContextual.call(void 0, se.ContextualKeyword._using) || - q.isLookaheadContextual.call(void 0, se.ContextualKeyword._of) + !ee.isContextual.call(void 0, ke.ContextualKeyword._using) || + ee.isLookaheadContextual.call(void 0, ke.ContextualKeyword._of) ); } - function nv() { - S.next.call(void 0); + function z0() { + $.next.call(void 0); let e = !1; if ( - (q.isContextual.call(void 0, se.ContextualKeyword._await) && - ((e = !0), S.next.call(void 0)), - q.expect.call(void 0, k.TokenType.parenL), - S.match.call(void 0, k.TokenType.semi)) + (ee.isContextual.call(void 0, ke.ContextualKeyword._await) && + ((e = !0), $.next.call(void 0)), + ee.expect.call(void 0, O.TokenType.parenL), + $.match.call(void 0, O.TokenType.semi)) ) { - e && q.unexpected.call(void 0), Ja(); + e && ee.unexpected.call(void 0), Bl(); return; } if ( - S.match.call(void 0, k.TokenType._var) || - S.match.call(void 0, k.TokenType._let) || - S.match.call(void 0, k.TokenType._const) || - tv() + $.match.call(void 0, O.TokenType._var) || + $.match.call(void 0, O.TokenType._let) || + $.match.call(void 0, O.TokenType._const) || + G0() ) { if ( - (S.next.call(void 0), - mp(!0, y.state.type !== k.TokenType._var), - S.match.call(void 0, k.TokenType._in) || - q.isContextual.call(void 0, se.ContextualKeyword._of)) + ($.next.call(void 0), + hh(!0, P.state.type !== O.TokenType._var), + $.match.call(void 0, O.TokenType._in) || + ee.isContextual.call(void 0, ke.ContextualKeyword._of)) ) { - fp(e); + lh(e); return; } - Ja(); + Bl(); return; } if ( - (me.parseExpression.call(void 0, !0), - S.match.call(void 0, k.TokenType._in) || - q.isContextual.call(void 0, se.ContextualKeyword._of)) + (De.parseExpression.call(void 0, !0), + $.match.call(void 0, O.TokenType._in) || + ee.isContextual.call(void 0, ke.ContextualKeyword._of)) ) { - fp(e); + lh(e); return; } - e && q.unexpected.call(void 0), Ja(); + e && ee.unexpected.call(void 0), Bl(); } - function ov() { - let e = y.state.start; - S.next.call(void 0), or(e, !0); + function X0() { + let e = P.state.start; + $.next.call(void 0), lr(e, !0); } - function rv() { - S.next.call(void 0), - me.parseParenExpression.call(void 0), - Wt(!1), - S.eat.call(void 0, k.TokenType._else) && Wt(!1); + function Y0() { + $.next.call(void 0), + De.parseParenExpression.call(void 0), + _n(!1), + $.eat.call(void 0, O.TokenType._else) && _n(!1); } - function sv() { - S.next.call(void 0), - q.isLineTerminator.call(void 0) || - (me.parseExpression.call(void 0), q.semicolon.call(void 0)); + function J0() { + $.next.call(void 0), + ee.isLineTerminator.call(void 0) || + (De.parseExpression.call(void 0), ee.semicolon.call(void 0)); } - function iv() { - S.next.call(void 0), - me.parseParenExpression.call(void 0), - y.state.scopeDepth++; - let e = y.state.tokens.length; + function Q0() { + $.next.call(void 0), + De.parseParenExpression.call(void 0), + P.state.scopeDepth++; + let e = P.state.tokens.length; for ( - q.expect.call(void 0, k.TokenType.braceL); - !S.match.call(void 0, k.TokenType.braceR) && !y.state.error; + ee.expect.call(void 0, O.TokenType.braceL); + !$.match.call(void 0, O.TokenType.braceR) && !P.state.error; ) if ( - S.match.call(void 0, k.TokenType._case) || - S.match.call(void 0, k.TokenType._default) + $.match.call(void 0, O.TokenType._case) || + $.match.call(void 0, O.TokenType._default) ) { - let n = S.match.call(void 0, k.TokenType._case); - S.next.call(void 0), - n && me.parseExpression.call(void 0), - q.expect.call(void 0, k.TokenType.colon); - } else Wt(!0); - S.next.call(void 0); - let t = y.state.tokens.length; - y.state.scopes.push(new On.Scope(e, t, !1)), y.state.scopeDepth--; - } - function av() { - S.next.call(void 0), - me.parseExpression.call(void 0), - q.semicolon.call(void 0); - } - function lv() { - Mn.parseBindingAtom.call(void 0, !0), - y.isTypeScriptEnabled && He.tsTryParseTypeAnnotation.call(void 0); - } - function cv() { + let s = $.match.call(void 0, O.TokenType._case); + $.next.call(void 0), + s && De.parseExpression.call(void 0), + ee.expect.call(void 0, O.TokenType.colon); + } else _n(!0); + $.next.call(void 0); + let t = P.state.tokens.length; + P.state.scopes.push(new ys.Scope(e, t, !1)), P.state.scopeDepth--; + } + function Z0() { + $.next.call(void 0), + De.parseExpression.call(void 0), + ee.semicolon.call(void 0); + } + function ev() { + ks.parseBindingAtom.call(void 0, !0), + P.isTypeScriptEnabled && dt.tsTryParseTypeAnnotation.call(void 0); + } + function tv() { if ( - (S.next.call(void 0), So(), S.match.call(void 0, k.TokenType._catch)) + ($.next.call(void 0), gi(), $.match.call(void 0, O.TokenType._catch)) ) { - S.next.call(void 0); + $.next.call(void 0); let e = null; if ( - (S.match.call(void 0, k.TokenType.parenL) && - (y.state.scopeDepth++, - (e = y.state.tokens.length), - q.expect.call(void 0, k.TokenType.parenL), - lv(), - q.expect.call(void 0, k.TokenType.parenR)), - So(), + ($.match.call(void 0, O.TokenType.parenL) && + (P.state.scopeDepth++, + (e = P.state.tokens.length), + ee.expect.call(void 0, O.TokenType.parenL), + ev(), + ee.expect.call(void 0, O.TokenType.parenR)), + gi(), e != null) ) { - let t = y.state.tokens.length; - y.state.scopes.push(new On.Scope(e, t, !1)), y.state.scopeDepth--; + let t = P.state.tokens.length; + P.state.scopes.push(new ys.Scope(e, t, !1)), P.state.scopeDepth--; } } - S.eat.call(void 0, k.TokenType._finally) && So(); - } - function Qa(e) { - S.next.call(void 0), mp(!1, e), q.semicolon.call(void 0); + $.eat.call(void 0, O.TokenType._finally) && gi(); } - Ue.parseVarStatement = Qa; - function uv() { - S.next.call(void 0), me.parseParenExpression.call(void 0), Wt(!1); + function Vl(e) { + $.next.call(void 0), hh(!1, e), ee.semicolon.call(void 0); } - function pv() { - S.next.call(void 0); + yt.parseVarStatement = Vl; + function nv() { + $.next.call(void 0), De.parseParenExpression.call(void 0), _n(!1); } - function dv() { - Wt(!0); - } - function fv(e) { - y.isTypeScriptEnabled - ? He.tsParseIdentifierStatement.call(void 0, e) - : y.isFlowEnabled - ? st.flowParseIdentifierStatement.call(void 0, e) - : q.semicolon.call(void 0); - } - function So(e = !1, t = 0) { - let n = y.state.tokens.length; - y.state.scopeDepth++, - q.expect.call(void 0, k.TokenType.braceL), - t && (y.state.tokens[y.state.tokens.length - 1].contextId = t), - t1(k.TokenType.braceR), - t && (y.state.tokens[y.state.tokens.length - 1].contextId = t); - let o = y.state.tokens.length; - y.state.scopes.push(new On.Scope(n, o, e)), y.state.scopeDepth--; - } - Ue.parseBlock = So; - function t1(e) { - for (; !S.eat.call(void 0, e) && !y.state.error; ) Wt(!0); - } - Ue.parseBlockBody = t1; - function Ja() { - q.expect.call(void 0, k.TokenType.semi), - S.match.call(void 0, k.TokenType.semi) || - me.parseExpression.call(void 0), - q.expect.call(void 0, k.TokenType.semi), - S.match.call(void 0, k.TokenType.parenR) || - me.parseExpression.call(void 0), - q.expect.call(void 0, k.TokenType.parenR), - Wt(!1); + function sv() { + $.next.call(void 0); } - function fp(e) { + function iv() { + _n(!0); + } + function rv(e) { + P.isTypeScriptEnabled + ? dt.tsParseIdentifierStatement.call(void 0, e) + : P.isFlowEnabled + ? Ft.flowParseIdentifierStatement.call(void 0, e) + : ee.semicolon.call(void 0); + } + function gi(e = !1, t = 0) { + let s = P.state.tokens.length; + P.state.scopeDepth++, + ee.expect.call(void 0, O.TokenType.braceL), + t && (P.state.tokens[P.state.tokens.length - 1].contextId = t), + ql(O.TokenType.braceR), + t && (P.state.tokens[P.state.tokens.length - 1].contextId = t); + let i = P.state.tokens.length; + P.state.scopes.push(new ys.Scope(s, i, e)), P.state.scopeDepth--; + } + yt.parseBlock = gi; + function ql(e) { + for (; !$.eat.call(void 0, e) && !P.state.error; ) _n(!0); + } + yt.parseBlockBody = ql; + function Bl() { + ee.expect.call(void 0, O.TokenType.semi), + $.match.call(void 0, O.TokenType.semi) || + De.parseExpression.call(void 0), + ee.expect.call(void 0, O.TokenType.semi), + $.match.call(void 0, O.TokenType.parenR) || + De.parseExpression.call(void 0), + ee.expect.call(void 0, O.TokenType.parenR), + _n(!1); + } + function lh(e) { e - ? q.eatContextual.call(void 0, se.ContextualKeyword._of) - : S.next.call(void 0), - me.parseExpression.call(void 0), - q.expect.call(void 0, k.TokenType.parenR), - Wt(!1); + ? ee.eatContextual.call(void 0, ke.ContextualKeyword._of) + : $.next.call(void 0), + De.parseExpression.call(void 0), + ee.expect.call(void 0, O.TokenType.parenR), + _n(!1); } - function mp(e, t) { + function hh(e, t) { for (;;) { - if ((hv(t), S.eat.call(void 0, k.TokenType.eq))) { - let n = y.state.tokens.length - 1; - me.parseMaybeAssign.call(void 0, e), - (y.state.tokens[n].rhsEndIndex = y.state.tokens.length); + if ((ov(t), $.eat.call(void 0, O.TokenType.eq))) { + let s = P.state.tokens.length - 1; + De.parseMaybeAssign.call(void 0, e), + (P.state.tokens[s].rhsEndIndex = P.state.tokens.length); } - if (!S.eat.call(void 0, k.TokenType.comma)) break; + if (!$.eat.call(void 0, O.TokenType.comma)) break; } } - function hv(e) { - Mn.parseBindingAtom.call(void 0, e), - y.isTypeScriptEnabled - ? He.tsAfterParseVarHead.call(void 0) - : y.isFlowEnabled && st.flowAfterParseVarHead.call(void 0); + function ov(e) { + ks.parseBindingAtom.call(void 0, e), + P.isTypeScriptEnabled + ? dt.tsAfterParseVarHead.call(void 0) + : P.isFlowEnabled && Ft.flowAfterParseVarHead.call(void 0); } - function or(e, t, n = !1) { - S.match.call(void 0, k.TokenType.star) && S.next.call(void 0), + function lr(e, t, s = !1) { + $.match.call(void 0, O.TokenType.star) && $.next.call(void 0), t && - !n && - !S.match.call(void 0, k.TokenType.name) && - !S.match.call(void 0, k.TokenType._yield) && - q.unexpected.call(void 0); - let o = null; - S.match.call(void 0, k.TokenType.name) && - (t || ((o = y.state.tokens.length), y.state.scopeDepth++), - Mn.parseBindingIdentifier.call(void 0, !1)); - let r = y.state.tokens.length; - y.state.scopeDepth++, kp(), me.parseFunctionBodyAndFinish.call(void 0, e); - let s = y.state.tokens.length; - y.state.scopes.push(new On.Scope(r, s, !0)), - y.state.scopeDepth--, - o !== null && - (y.state.scopes.push(new On.Scope(o, s, !0)), y.state.scopeDepth--); - } - Ue.parseFunction = or; - function kp(e = !1, t = 0) { - y.isTypeScriptEnabled - ? He.tsStartParseFunctionParams.call(void 0) - : y.isFlowEnabled && st.flowStartParseFunctionParams.call(void 0), - q.expect.call(void 0, k.TokenType.parenL), - t && (y.state.tokens[y.state.tokens.length - 1].contextId = t), - Mn.parseBindingList.call(void 0, k.TokenType.parenR, !1, !1, e, t), - t && (y.state.tokens[y.state.tokens.length - 1].contextId = t); - } - Ue.parseFunctionParams = kp; - function hs(e, t = !1) { - let n = y.getNextContextId.call(void 0); - S.next.call(void 0), - (y.state.tokens[y.state.tokens.length - 1].contextId = n), - (y.state.tokens[y.state.tokens.length - 1].isExpression = !e); - let o = null; - e || ((o = y.state.tokens.length), y.state.scopeDepth++), kv(e, t), vv(); - let r = y.state.tokens.length; + !s && + !$.match.call(void 0, O.TokenType.name) && + !$.match.call(void 0, O.TokenType._yield) && + ee.unexpected.call(void 0); + let i = null; + $.match.call(void 0, O.TokenType.name) && + (t || ((i = P.state.tokens.length), P.state.scopeDepth++), + ks.parseBindingIdentifier.call(void 0, !1)); + let r = P.state.tokens.length; + P.state.scopeDepth++, fh(), De.parseFunctionBodyAndFinish.call(void 0, e); + let a = P.state.tokens.length; + P.state.scopes.push(new ys.Scope(r, a, !0)), + P.state.scopeDepth--, + i !== null && + (P.state.scopes.push(new ys.Scope(i, a, !0)), P.state.scopeDepth--); + } + yt.parseFunction = lr; + function fh(e = !1, t = 0) { + P.isTypeScriptEnabled + ? dt.tsStartParseFunctionParams.call(void 0) + : P.isFlowEnabled && Ft.flowStartParseFunctionParams.call(void 0), + ee.expect.call(void 0, O.TokenType.parenL), + t && (P.state.tokens[P.state.tokens.length - 1].contextId = t), + ks.parseBindingList.call(void 0, O.TokenType.parenR, !1, !1, e, t), + t && (P.state.tokens[P.state.tokens.length - 1].contextId = t); + } + yt.parseFunctionParams = fh; + function Io(e, t = !1) { + let s = P.getNextContextId.call(void 0); + $.next.call(void 0), + (P.state.tokens[P.state.tokens.length - 1].contextId = s), + (P.state.tokens[P.state.tokens.length - 1].isExpression = !e); + let i = null; + e || ((i = P.state.tokens.length), P.state.scopeDepth++), uv(e, t), pv(); + let r = P.state.tokens.length; if ( - (Tv(n), - !y.state.error && - ((y.state.tokens[r].contextId = n), - (y.state.tokens[y.state.tokens.length - 1].contextId = n), - o !== null)) + (av(s), + !P.state.error && + ((P.state.tokens[r].contextId = s), + (P.state.tokens[P.state.tokens.length - 1].contextId = s), + i !== null)) ) { - let s = y.state.tokens.length; - y.state.scopes.push(new On.Scope(o, s, !1)), y.state.scopeDepth--; + let a = P.state.tokens.length; + P.state.scopes.push(new ys.Scope(i, a, !1)), P.state.scopeDepth--; } } - Ue.parseClass = hs; - function vp() { + yt.parseClass = Io; + function dh() { return ( - S.match.call(void 0, k.TokenType.eq) || - S.match.call(void 0, k.TokenType.semi) || - S.match.call(void 0, k.TokenType.braceR) || - S.match.call(void 0, k.TokenType.bang) || - S.match.call(void 0, k.TokenType.colon) + $.match.call(void 0, O.TokenType.eq) || + $.match.call(void 0, O.TokenType.semi) || + $.match.call(void 0, O.TokenType.braceR) || + $.match.call(void 0, O.TokenType.bang) || + $.match.call(void 0, O.TokenType.colon) ); } - function _p() { + function mh() { return ( - S.match.call(void 0, k.TokenType.parenL) || - S.match.call(void 0, k.TokenType.lessThan) + $.match.call(void 0, O.TokenType.parenL) || + $.match.call(void 0, O.TokenType.lessThan) ); } - function Tv(e) { + function av(e) { for ( - q.expect.call(void 0, k.TokenType.braceL); - !S.eat.call(void 0, k.TokenType.braceR) && !y.state.error; + ee.expect.call(void 0, O.TokenType.braceL); + !$.eat.call(void 0, O.TokenType.braceR) && !P.state.error; ) { - if (S.eat.call(void 0, k.TokenType.semi)) continue; - if (S.match.call(void 0, k.TokenType.at)) { - Tp(); + if ($.eat.call(void 0, O.TokenType.semi)) continue; + if ($.match.call(void 0, O.TokenType.at)) { + uh(); continue; } - let t = y.state.start; - yv(t, e); + let t = P.state.start; + lv(t, e); } } - function yv(e, t) { - y.isTypeScriptEnabled && - He.tsParseModifiers.call(void 0, [ - se.ContextualKeyword._declare, - se.ContextualKeyword._public, - se.ContextualKeyword._protected, - se.ContextualKeyword._private, - se.ContextualKeyword._override, + function lv(e, t) { + P.isTypeScriptEnabled && + dt.tsParseModifiers.call(void 0, [ + ke.ContextualKeyword._declare, + ke.ContextualKeyword._public, + ke.ContextualKeyword._protected, + ke.ContextualKeyword._private, + ke.ContextualKeyword._override, ]); - let n = !1; + let s = !1; if ( - S.match.call(void 0, k.TokenType.name) && - y.state.contextualKeyword === se.ContextualKeyword._static + $.match.call(void 0, O.TokenType.name) && + P.state.contextualKeyword === ke.ContextualKeyword._static ) { - if ((me.parseIdentifier.call(void 0), _p())) { - tr(e, !1); + if ((De.parseIdentifier.call(void 0), mh())) { + or(e, !1); return; - } else if (vp()) { - nr(); + } else if (dh()) { + ar(); return; } if ( - ((y.state.tokens[y.state.tokens.length - 1].type = - k.TokenType._static), - (n = !0), - S.match.call(void 0, k.TokenType.braceL)) + ((P.state.tokens[P.state.tokens.length - 1].type = + O.TokenType._static), + (s = !0), + $.match.call(void 0, O.TokenType.braceL)) ) { - (y.state.tokens[y.state.tokens.length - 1].contextId = t), So(); + (P.state.tokens[P.state.tokens.length - 1].contextId = t), gi(); return; } } - mv(e, n, t); + cv(e, s, t); } - function mv(e, t, n) { + function cv(e, t, s) { if ( - y.isTypeScriptEnabled && - He.tsTryParseClassMemberWithIsStatic.call(void 0, t) + P.isTypeScriptEnabled && + dt.tsTryParseClassMemberWithIsStatic.call(void 0, t) ) return; - if (S.eat.call(void 0, k.TokenType.star)) { - Io(n), tr(e, !1); + if ($.eat.call(void 0, O.TokenType.star)) { + xi(s), or(e, !1); return; } - Io(n); - let o = !1, - r = y.state.tokens[y.state.tokens.length - 1]; - r.contextualKeyword === se.ContextualKeyword._constructor && (o = !0), - Za(), - _p() - ? tr(e, o) - : vp() - ? nr() - : r.contextualKeyword === se.ContextualKeyword._async && - !q.isLineTerminator.call(void 0) - ? ((y.state.tokens[y.state.tokens.length - 1].type = - k.TokenType._async), - S.match.call(void 0, k.TokenType.star) && S.next.call(void 0), - Io(n), - Za(), - tr(e, !1)) - : (r.contextualKeyword === se.ContextualKeyword._get || - r.contextualKeyword === se.ContextualKeyword._set) && + xi(s); + let i = !1, + r = P.state.tokens[P.state.tokens.length - 1]; + r.contextualKeyword === ke.ContextualKeyword._constructor && (i = !0), + jl(), + mh() + ? or(e, i) + : dh() + ? ar() + : r.contextualKeyword === ke.ContextualKeyword._async && + !ee.isLineTerminator.call(void 0) + ? ((P.state.tokens[P.state.tokens.length - 1].type = + O.TokenType._async), + $.match.call(void 0, O.TokenType.star) && $.next.call(void 0), + xi(s), + jl(), + or(e, !1)) + : (r.contextualKeyword === ke.ContextualKeyword._get || + r.contextualKeyword === ke.ContextualKeyword._set) && !( - q.isLineTerminator.call(void 0) && - S.match.call(void 0, k.TokenType.star) + ee.isLineTerminator.call(void 0) && + $.match.call(void 0, O.TokenType.star) ) - ? (r.contextualKeyword === se.ContextualKeyword._get - ? (y.state.tokens[y.state.tokens.length - 1].type = - k.TokenType._get) - : (y.state.tokens[y.state.tokens.length - 1].type = - k.TokenType._set), - Io(n), - tr(e, !1)) - : r.contextualKeyword === se.ContextualKeyword._accessor && - !q.isLineTerminator.call(void 0) - ? (Io(n), nr()) - : q.isLineTerminator.call(void 0) - ? nr() - : q.unexpected.call(void 0); - } - function tr(e, t) { - y.isTypeScriptEnabled - ? He.tsTryParseTypeParameters.call(void 0) - : y.isFlowEnabled && - S.match.call(void 0, k.TokenType.lessThan) && - st.flowParseTypeParameterDeclaration.call(void 0), - me.parseMethod.call(void 0, e, t); - } - function Io(e) { - me.parsePropertyName.call(void 0, e); - } - Ue.parseClassPropertyName = Io; - function Za() { - if (y.isTypeScriptEnabled) { - let e = S.pushTypeContext.call(void 0, 0); - S.eat.call(void 0, k.TokenType.question), - S.popTypeContext.call(void 0, e); - } - } - Ue.parsePostMemberNameModifiers = Za; - function nr() { + ? (r.contextualKeyword === ke.ContextualKeyword._get + ? (P.state.tokens[P.state.tokens.length - 1].type = + O.TokenType._get) + : (P.state.tokens[P.state.tokens.length - 1].type = + O.TokenType._set), + xi(s), + or(e, !1)) + : r.contextualKeyword === ke.ContextualKeyword._accessor && + !ee.isLineTerminator.call(void 0) + ? (xi(s), ar()) + : ee.isLineTerminator.call(void 0) + ? ar() + : ee.unexpected.call(void 0); + } + function or(e, t) { + P.isTypeScriptEnabled + ? dt.tsTryParseTypeParameters.call(void 0) + : P.isFlowEnabled && + $.match.call(void 0, O.TokenType.lessThan) && + Ft.flowParseTypeParameterDeclaration.call(void 0), + De.parseMethod.call(void 0, e, t); + } + function xi(e) { + De.parsePropertyName.call(void 0, e); + } + yt.parseClassPropertyName = xi; + function jl() { + if (P.isTypeScriptEnabled) { + let e = $.pushTypeContext.call(void 0, 0); + $.eat.call(void 0, O.TokenType.question), + $.popTypeContext.call(void 0, e); + } + } + yt.parsePostMemberNameModifiers = jl; + function ar() { if ( - (y.isTypeScriptEnabled - ? (S.eatTypeToken.call(void 0, k.TokenType.bang), - He.tsTryParseTypeAnnotation.call(void 0)) - : y.isFlowEnabled && - S.match.call(void 0, k.TokenType.colon) && - st.flowParseTypeAnnotation.call(void 0), - S.match.call(void 0, k.TokenType.eq)) + (P.isTypeScriptEnabled + ? ($.eatTypeToken.call(void 0, O.TokenType.bang), + dt.tsTryParseTypeAnnotation.call(void 0)) + : P.isFlowEnabled && + $.match.call(void 0, O.TokenType.colon) && + Ft.flowParseTypeAnnotation.call(void 0), + $.match.call(void 0, O.TokenType.eq)) ) { - let e = y.state.tokens.length; - S.next.call(void 0), - me.parseMaybeAssign.call(void 0), - (y.state.tokens[e].rhsEndIndex = y.state.tokens.length); + let e = P.state.tokens.length; + $.next.call(void 0), + De.parseMaybeAssign.call(void 0), + (P.state.tokens[e].rhsEndIndex = P.state.tokens.length); } - q.semicolon.call(void 0); + ee.semicolon.call(void 0); } - Ue.parseClassProperty = nr; - function kv(e, t = !1) { - (y.isTypeScriptEnabled && + yt.parseClassProperty = ar; + function uv(e, t = !1) { + (P.isTypeScriptEnabled && (!e || t) && - q.isContextual.call(void 0, se.ContextualKeyword._implements)) || - (S.match.call(void 0, k.TokenType.name) && - Mn.parseBindingIdentifier.call(void 0, !0), - y.isTypeScriptEnabled - ? He.tsTryParseTypeParameters.call(void 0) - : y.isFlowEnabled && - S.match.call(void 0, k.TokenType.lessThan) && - st.flowParseTypeParameterDeclaration.call(void 0)); + ee.isContextual.call(void 0, ke.ContextualKeyword._implements)) || + ($.match.call(void 0, O.TokenType.name) && + ks.parseBindingIdentifier.call(void 0, !0), + P.isTypeScriptEnabled + ? dt.tsTryParseTypeParameters.call(void 0) + : P.isFlowEnabled && + $.match.call(void 0, O.TokenType.lessThan) && + Ft.flowParseTypeParameterDeclaration.call(void 0)); } - function vv() { + function pv() { let e = !1; - S.eat.call(void 0, k.TokenType._extends) - ? (me.parseExprSubscripts.call(void 0), (e = !0)) + $.eat.call(void 0, O.TokenType._extends) + ? (De.parseExprSubscripts.call(void 0), (e = !0)) : (e = !1), - y.isTypeScriptEnabled - ? He.tsAfterParseClassSuper.call(void 0, e) - : y.isFlowEnabled && st.flowAfterParseClassSuper.call(void 0, e); + P.isTypeScriptEnabled + ? dt.tsAfterParseClassSuper.call(void 0, e) + : P.isFlowEnabled && Ft.flowAfterParseClassSuper.call(void 0, e); } - function xp() { - let e = y.state.tokens.length - 1; - (y.isTypeScriptEnabled && He.tsTryParseExport.call(void 0)) || - (Cv() - ? wv() - : gv() - ? (me.parseIdentifier.call(void 0), - S.match.call(void 0, k.TokenType.comma) && - S.lookaheadType.call(void 0) === k.TokenType.star - ? (q.expect.call(void 0, k.TokenType.comma), - q.expect.call(void 0, k.TokenType.star), - q.expectContextual.call(void 0, se.ContextualKeyword._as), - me.parseIdentifier.call(void 0)) - : gp(), - rr()) - : S.eat.call(void 0, k.TokenType._default) - ? _v() - : Sv() - ? xv() - : (n1(), rr()), - (y.state.tokens[e].rhsEndIndex = y.state.tokens.length)); - } - Ue.parseExport = xp; - function _v() { + function Th() { + let e = P.state.tokens.length - 1; + (P.isTypeScriptEnabled && dt.tsTryParseExport.call(void 0)) || + (mv() + ? Tv() + : dv() + ? (De.parseIdentifier.call(void 0), + $.match.call(void 0, O.TokenType.comma) && + $.lookaheadType.call(void 0) === O.TokenType.star + ? (ee.expect.call(void 0, O.TokenType.comma), + ee.expect.call(void 0, O.TokenType.star), + ee.expectContextual.call(void 0, ke.ContextualKeyword._as), + De.parseIdentifier.call(void 0)) + : yh(), + cr()) + : $.eat.call(void 0, O.TokenType._default) + ? hv() + : kv() + ? fv() + : (Kl(), cr()), + (P.state.tokens[e].rhsEndIndex = P.state.tokens.length)); + } + yt.parseExport = Th; + function hv() { if ( - (y.isTypeScriptEnabled && - He.tsTryParseExportDefaultExpression.call(void 0)) || - (y.isFlowEnabled && st.flowTryParseExportDefaultExpression.call(void 0)) + (P.isTypeScriptEnabled && + dt.tsTryParseExportDefaultExpression.call(void 0)) || + (P.isFlowEnabled && Ft.flowTryParseExportDefaultExpression.call(void 0)) ) return; - let e = y.state.start; - S.eat.call(void 0, k.TokenType._function) - ? or(e, !0, !0) - : q.isContextual.call(void 0, se.ContextualKeyword._async) && - S.lookaheadType.call(void 0) === k.TokenType._function - ? (q.eatContextual.call(void 0, se.ContextualKeyword._async), - S.eat.call(void 0, k.TokenType._function), - or(e, !0, !0)) - : S.match.call(void 0, k.TokenType._class) - ? hs(!0, !0) - : S.match.call(void 0, k.TokenType.at) - ? (e1(), hs(!0, !0)) - : (me.parseMaybeAssign.call(void 0), q.semicolon.call(void 0)); - } - function xv() { - y.isTypeScriptEnabled - ? He.tsParseExportDeclaration.call(void 0) - : y.isFlowEnabled - ? st.flowParseExportDeclaration.call(void 0) - : Wt(!0); + let e = P.state.start; + $.eat.call(void 0, O.TokenType._function) + ? lr(e, !0, !0) + : ee.isContextual.call(void 0, ke.ContextualKeyword._async) && + $.lookaheadType.call(void 0) === O.TokenType._function + ? (ee.eatContextual.call(void 0, ke.ContextualKeyword._async), + $.eat.call(void 0, O.TokenType._function), + lr(e, !0, !0)) + : $.match.call(void 0, O.TokenType._class) + ? Io(!0, !0) + : $.match.call(void 0, O.TokenType.at) + ? ($l(), Io(!0, !0)) + : (De.parseMaybeAssign.call(void 0), ee.semicolon.call(void 0)); + } + function fv() { + P.isTypeScriptEnabled + ? dt.tsParseExportDeclaration.call(void 0) + : P.isFlowEnabled + ? Ft.flowParseExportDeclaration.call(void 0) + : _n(!0); } - function gv() { - if (y.isTypeScriptEnabled && He.tsIsDeclarationStart.call(void 0)) + function dv() { + if (P.isTypeScriptEnabled && dt.tsIsDeclarationStart.call(void 0)) return !1; if ( - y.isFlowEnabled && - st.flowShouldDisallowExportDefaultSpecifier.call(void 0) + P.isFlowEnabled && + Ft.flowShouldDisallowExportDefaultSpecifier.call(void 0) ) return !1; - if (S.match.call(void 0, k.TokenType.name)) - return y.state.contextualKeyword !== se.ContextualKeyword._async; - if (!S.match.call(void 0, k.TokenType._default)) return !1; - let e = S.nextTokenStart.call(void 0), - t = S.lookaheadTypeAndKeyword.call(void 0), - n = - t.type === k.TokenType.name && - t.contextualKeyword === se.ContextualKeyword._from; - if (t.type === k.TokenType.comma) return !0; - if (n) { - let o = y.input.charCodeAt(S.nextTokenStartSince.call(void 0, e + 4)); + if ($.match.call(void 0, O.TokenType.name)) + return P.state.contextualKeyword !== ke.ContextualKeyword._async; + if (!$.match.call(void 0, O.TokenType._default)) return !1; + let e = $.nextTokenStart.call(void 0), + t = $.lookaheadTypeAndKeyword.call(void 0), + s = + t.type === O.TokenType.name && + t.contextualKeyword === ke.ContextualKeyword._from; + if (t.type === O.TokenType.comma) return !0; + if (s) { + let i = P.input.charCodeAt($.nextTokenStartSince.call(void 0, e + 4)); return ( - o === dp.charCodes.quotationMark || o === dp.charCodes.apostrophe + i === ah.charCodes.quotationMark || i === ah.charCodes.apostrophe ); } return !1; } - function gp() { - S.eat.call(void 0, k.TokenType.comma) && n1(); + function yh() { + $.eat.call(void 0, O.TokenType.comma) && Kl(); } - function rr() { - q.eatContextual.call(void 0, se.ContextualKeyword._from) && - (me.parseExprAtom.call(void 0), Ip()), - q.semicolon.call(void 0); + function cr() { + ee.eatContextual.call(void 0, ke.ContextualKeyword._from) && + (De.parseExprAtom.call(void 0), xh()), + ee.semicolon.call(void 0); } - Ue.parseExportFrom = rr; - function Cv() { - return y.isFlowEnabled - ? st.flowShouldParseExportStar.call(void 0) - : S.match.call(void 0, k.TokenType.star); + yt.parseExportFrom = cr; + function mv() { + return P.isFlowEnabled + ? Ft.flowShouldParseExportStar.call(void 0) + : $.match.call(void 0, O.TokenType.star); } - function wv() { - y.isFlowEnabled ? st.flowParseExportStar.call(void 0) : Cp(); + function Tv() { + P.isFlowEnabled ? Ft.flowParseExportStar.call(void 0) : kh(); } - function Cp() { - q.expect.call(void 0, k.TokenType.star), - q.isContextual.call(void 0, se.ContextualKeyword._as) ? Iv() : rr(); + function kh() { + ee.expect.call(void 0, O.TokenType.star), + ee.isContextual.call(void 0, ke.ContextualKeyword._as) ? yv() : cr(); } - Ue.baseParseExportStar = Cp; - function Iv() { - S.next.call(void 0), - (y.state.tokens[y.state.tokens.length - 1].type = k.TokenType._as), - me.parseIdentifier.call(void 0), - gp(), - rr(); + yt.baseParseExportStar = kh; + function yv() { + $.next.call(void 0), + (P.state.tokens[P.state.tokens.length - 1].type = O.TokenType._as), + De.parseIdentifier.call(void 0), + yh(), + cr(); } - function Sv() { + function kv() { return ( - (y.isTypeScriptEnabled && He.tsIsDeclarationStart.call(void 0)) || - (y.isFlowEnabled && st.flowShouldParseExportDeclaration.call(void 0)) || - y.state.type === k.TokenType._var || - y.state.type === k.TokenType._const || - y.state.type === k.TokenType._let || - y.state.type === k.TokenType._function || - y.state.type === k.TokenType._class || - q.isContextual.call(void 0, se.ContextualKeyword._async) || - S.match.call(void 0, k.TokenType.at) + (P.isTypeScriptEnabled && dt.tsIsDeclarationStart.call(void 0)) || + (P.isFlowEnabled && Ft.flowShouldParseExportDeclaration.call(void 0)) || + P.state.type === O.TokenType._var || + P.state.type === O.TokenType._const || + P.state.type === O.TokenType._let || + P.state.type === O.TokenType._function || + P.state.type === O.TokenType._class || + ee.isContextual.call(void 0, ke.ContextualKeyword._async) || + $.match.call(void 0, O.TokenType.at) ); } - function n1() { + function Kl() { let e = !0; for ( - q.expect.call(void 0, k.TokenType.braceL); - !S.eat.call(void 0, k.TokenType.braceR) && !y.state.error; + ee.expect.call(void 0, O.TokenType.braceL); + !$.eat.call(void 0, O.TokenType.braceR) && !P.state.error; ) { if (e) e = !1; else if ( - (q.expect.call(void 0, k.TokenType.comma), - S.eat.call(void 0, k.TokenType.braceR)) + (ee.expect.call(void 0, O.TokenType.comma), + $.eat.call(void 0, O.TokenType.braceR)) ) break; - bv(); + vv(); } } - Ue.parseExportSpecifiers = n1; - function bv() { - if (y.isTypeScriptEnabled) { - He.tsParseExportSpecifier.call(void 0); + yt.parseExportSpecifiers = Kl; + function vv() { + if (P.isTypeScriptEnabled) { + dt.tsParseExportSpecifier.call(void 0); return; } - me.parseIdentifier.call(void 0), - (y.state.tokens[y.state.tokens.length - 1].identifierRole = - S.IdentifierRole.ExportAccess), - q.eatContextual.call(void 0, se.ContextualKeyword._as) && - me.parseIdentifier.call(void 0); + De.parseIdentifier.call(void 0), + (P.state.tokens[P.state.tokens.length - 1].identifierRole = + $.IdentifierRole.ExportAccess), + ee.eatContextual.call(void 0, ke.ContextualKeyword._as) && + De.parseIdentifier.call(void 0); } - function Ev() { - let e = y.state.snapshot(); + function xv() { + let e = P.state.snapshot(); return ( - q.expectContextual.call(void 0, se.ContextualKeyword._module), - q.eatContextual.call(void 0, se.ContextualKeyword._from) - ? q.isContextual.call(void 0, se.ContextualKeyword._from) - ? (y.state.restoreFromSnapshot(e), !0) - : (y.state.restoreFromSnapshot(e), !1) - : S.match.call(void 0, k.TokenType.comma) - ? (y.state.restoreFromSnapshot(e), !1) - : (y.state.restoreFromSnapshot(e), !0) + ee.expectContextual.call(void 0, ke.ContextualKeyword._module), + ee.eatContextual.call(void 0, ke.ContextualKeyword._from) + ? ee.isContextual.call(void 0, ke.ContextualKeyword._from) + ? (P.state.restoreFromSnapshot(e), !0) + : (P.state.restoreFromSnapshot(e), !1) + : $.match.call(void 0, O.TokenType.comma) + ? (P.state.restoreFromSnapshot(e), !1) + : (P.state.restoreFromSnapshot(e), !0) ); } - function Av() { - q.isContextual.call(void 0, se.ContextualKeyword._module) && - Ev() && - S.next.call(void 0); + function gv() { + ee.isContextual.call(void 0, ke.ContextualKeyword._module) && + xv() && + $.next.call(void 0); } - function wp() { + function vh() { if ( - y.isTypeScriptEnabled && - S.match.call(void 0, k.TokenType.name) && - S.lookaheadType.call(void 0) === k.TokenType.eq + P.isTypeScriptEnabled && + $.match.call(void 0, O.TokenType.name) && + $.lookaheadType.call(void 0) === O.TokenType.eq ) { - He.tsParseImportEqualsDeclaration.call(void 0); + dt.tsParseImportEqualsDeclaration.call(void 0); return; } if ( - y.isTypeScriptEnabled && - q.isContextual.call(void 0, se.ContextualKeyword._type) + P.isTypeScriptEnabled && + ee.isContextual.call(void 0, ke.ContextualKeyword._type) ) { - let e = S.lookaheadTypeAndKeyword.call(void 0); + let e = $.lookaheadTypeAndKeyword.call(void 0); if ( - e.type === k.TokenType.name && - e.contextualKeyword !== se.ContextualKeyword._from + e.type === O.TokenType.name && + e.contextualKeyword !== ke.ContextualKeyword._from ) { if ( - (q.expectContextual.call(void 0, se.ContextualKeyword._type), - S.lookaheadType.call(void 0) === k.TokenType.eq) + (ee.expectContextual.call(void 0, ke.ContextualKeyword._type), + $.lookaheadType.call(void 0) === O.TokenType.eq) ) { - He.tsParseImportEqualsDeclaration.call(void 0); + dt.tsParseImportEqualsDeclaration.call(void 0); return; } } else - (e.type === k.TokenType.star || e.type === k.TokenType.braceL) && - q.expectContextual.call(void 0, se.ContextualKeyword._type); - } - S.match.call(void 0, k.TokenType.string) || - (Av(), - Rv(), - q.expectContextual.call(void 0, se.ContextualKeyword._from)), - me.parseExprAtom.call(void 0), - Ip(), - q.semicolon.call(void 0); - } - Ue.parseImport = wp; - function Pv() { - return S.match.call(void 0, k.TokenType.name); - } - function hp() { - Mn.parseImportedIdentifier.call(void 0); - } - function Rv() { - y.isFlowEnabled && st.flowStartParseImportSpecifiers.call(void 0); + (e.type === O.TokenType.star || e.type === O.TokenType.braceL) && + ee.expectContextual.call(void 0, ke.ContextualKeyword._type); + } + $.match.call(void 0, O.TokenType.string) || + (gv(), + bv(), + ee.expectContextual.call(void 0, ke.ContextualKeyword._from)), + De.parseExprAtom.call(void 0), + xh(), + ee.semicolon.call(void 0); + } + yt.parseImport = vh; + function _v() { + return $.match.call(void 0, O.TokenType.name); + } + function ch() { + ks.parseImportedIdentifier.call(void 0); + } + function bv() { + P.isFlowEnabled && Ft.flowStartParseImportSpecifiers.call(void 0); let e = !0; - if (!(Pv() && (hp(), !S.eat.call(void 0, k.TokenType.comma)))) { - if (S.match.call(void 0, k.TokenType.star)) { - S.next.call(void 0), - q.expectContextual.call(void 0, se.ContextualKeyword._as), - hp(); + if (!(_v() && (ch(), !$.eat.call(void 0, O.TokenType.comma)))) { + if ($.match.call(void 0, O.TokenType.star)) { + $.next.call(void 0), + ee.expectContextual.call(void 0, ke.ContextualKeyword._as), + ch(); return; } for ( - q.expect.call(void 0, k.TokenType.braceL); - !S.eat.call(void 0, k.TokenType.braceR) && !y.state.error; + ee.expect.call(void 0, O.TokenType.braceL); + !$.eat.call(void 0, O.TokenType.braceR) && !P.state.error; ) { if (e) e = !1; else if ( - (S.eat.call(void 0, k.TokenType.colon) && - q.unexpected.call( + ($.eat.call(void 0, O.TokenType.colon) && + ee.unexpected.call( void 0, 'ES2015 named imports do not destructure. Use another statement for destructuring after the import.' ), - q.expect.call(void 0, k.TokenType.comma), - S.eat.call(void 0, k.TokenType.braceR)) + ee.expect.call(void 0, O.TokenType.comma), + $.eat.call(void 0, O.TokenType.braceR)) ) break; - Nv(); + Cv(); } } } - function Nv() { - if (y.isTypeScriptEnabled) { - He.tsParseImportSpecifier.call(void 0); + function Cv() { + if (P.isTypeScriptEnabled) { + dt.tsParseImportSpecifier.call(void 0); return; } - if (y.isFlowEnabled) { - st.flowParseImportSpecifier.call(void 0); + if (P.isFlowEnabled) { + Ft.flowParseImportSpecifier.call(void 0); return; } - Mn.parseImportedIdentifier.call(void 0), - q.isContextual.call(void 0, se.ContextualKeyword._as) && - ((y.state.tokens[y.state.tokens.length - 1].identifierRole = - S.IdentifierRole.ImportAccess), - S.next.call(void 0), - Mn.parseImportedIdentifier.call(void 0)); + ks.parseImportedIdentifier.call(void 0), + ee.isContextual.call(void 0, ke.ContextualKeyword._as) && + ((P.state.tokens[P.state.tokens.length - 1].identifierRole = + $.IdentifierRole.ImportAccess), + $.next.call(void 0), + ks.parseImportedIdentifier.call(void 0)); } - function Ip() { - q.isContextual.call(void 0, se.ContextualKeyword._assert) && - !q.hasPrecedingLineBreak.call(void 0) && - (S.next.call(void 0), me.parseObj.call(void 0, !1, !1)); + function xh() { + ee.isContextual.call(void 0, ke.ContextualKeyword._assert) && + !ee.hasPrecedingLineBreak.call(void 0) && + ($.next.call(void 0), De.parseObj.call(void 0, !1, !1)); } }); - var Ep = H((s1) => { + var bh = Z((Wl) => { 'use strict'; - Object.defineProperty(s1, '__esModule', {value: !0}); - var Sp = Ve(), - bp = gt(), - r1 = Ct(), - Dv = Jo(); - function Ov() { + Object.defineProperty(Wl, '__esModule', {value: !0}); + var gh = xt(), + _h = Qt(), + Hl = Zt(), + wv = nr(); + function Sv() { return ( - r1.state.pos === 0 && - r1.input.charCodeAt(0) === bp.charCodes.numberSign && - r1.input.charCodeAt(1) === bp.charCodes.exclamationMark && - Sp.skipLineComment.call(void 0, 2), - Sp.nextToken.call(void 0), - Dv.parseTopLevel.call(void 0) + Hl.state.pos === 0 && + Hl.input.charCodeAt(0) === _h.charCodes.numberSign && + Hl.input.charCodeAt(1) === _h.charCodes.exclamationMark && + gh.skipLineComment.call(void 0, 2), + gh.nextToken.call(void 0), + wv.parseTopLevel.call(void 0) ); } - s1.parseFile = Ov; + Wl.parseFile = Sv; }); - var o1 = H((ys) => { + var Ul = Z((Ao) => { 'use strict'; - Object.defineProperty(ys, '__esModule', {value: !0}); - var Ts = Ct(), - Mv = Ep(), - i1 = class { - constructor(t, n) { - (this.tokens = t), (this.scopes = n); + Object.defineProperty(Ao, '__esModule', {value: !0}); + var Eo = Zt(), + Iv = bh(), + Gl = class { + constructor(t, s) { + (this.tokens = t), (this.scopes = s); } }; - ys.File = i1; - function Lv(e, t, n, o) { - if (o && n) + Ao.File = Gl; + function Ev(e, t, s, i) { + if (i && s) throw new Error('Cannot combine flow and typescript plugins.'); - Ts.initParser.call(void 0, e, t, n, o); - let r = Mv.parseFile.call(void 0); - if (Ts.state.error) throw Ts.augmentError.call(void 0, Ts.state.error); + Eo.initParser.call(void 0, e, t, s, i); + let r = Iv.parseFile.call(void 0); + if (Eo.state.error) throw Eo.augmentError.call(void 0, Eo.state.error); return r; } - ys.parse = Lv; + Ao.parse = Ev; }); - var Ap = H((a1) => { + var Ch = Z((zl) => { 'use strict'; - Object.defineProperty(a1, '__esModule', {value: !0}); - var Fv = Ge(); - function $v(e) { + Object.defineProperty(zl, '__esModule', {value: !0}); + var Av = It(); + function Pv(e) { let t = e.currentIndex(), - n = 0, - o = e.currentToken(); + s = 0, + i = e.currentToken(); do { let r = e.tokens[t]; if ( - (r.isOptionalChainStart && n++, - r.isOptionalChainEnd && n--, - (n += r.numNullishCoalesceStarts), - (n -= r.numNullishCoalesceEnds), - r.contextualKeyword === Fv.ContextualKeyword._await && + (r.isOptionalChainStart && s++, + r.isOptionalChainEnd && s--, + (s += r.numNullishCoalesceStarts), + (s -= r.numNullishCoalesceEnds), + r.contextualKeyword === Av.ContextualKeyword._await && r.identifierRole == null && - r.scopeDepth === o.scopeDepth) + r.scopeDepth === i.scopeDepth) ) return !0; t += 1; - } while (n > 0 && t < e.tokens.length); + } while (s > 0 && t < e.tokens.length); return !1; } - a1.default = $v; + zl.default = Pv; }); - var Pp = H((c1) => { + var wh = Z((Yl) => { 'use strict'; - Object.defineProperty(c1, '__esModule', {value: !0}); - function Bv(e) { + Object.defineProperty(Yl, '__esModule', {value: !0}); + function Nv(e) { return e && e.__esModule ? e : {default: e}; } - var ms = ce(), - jv = Ap(), - Kv = Bv(jv), - l1 = class e { + var Po = be(), + Rv = Ch(), + Lv = Nv(Rv), + Xl = class e { __init() { this.resultCode = ''; } @@ -21798,12 +21806,12 @@ If you need interactivity, consider converting part of this to a Client Componen __init3() { this.tokenIndex = 0; } - constructor(t, n, o, r, s) { + constructor(t, s, i, r, a) { (this.code = t), - (this.tokens = n), - (this.isFlowEnabled = o), + (this.tokens = s), + (this.isFlowEnabled = i), (this.disableESTransforms = r), - (this.helperManager = s), + (this.helperManager = a), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this); @@ -21815,18 +21823,18 @@ If you need interactivity, consider converting part of this to a Client Componen (this.resultCode = t.resultCode), (this.tokenIndex = t.tokenIndex); } dangerouslyGetAndRemoveCodeSinceSnapshot(t) { - let n = this.resultCode.slice(t.resultCode.length); - return (this.resultCode = t.resultCode), n; + let s = this.resultCode.slice(t.resultCode.length); + return (this.resultCode = t.resultCode), s; } reset() { (this.resultCode = ''), (this.resultMappings = new Array(this.tokens.length)), (this.tokenIndex = 0); } - matchesContextualAtIndex(t, n) { + matchesContextualAtIndex(t, s) { return ( - this.matches1AtIndex(t, ms.TokenType.name) && - this.tokens[t].contextualKeyword === n + this.matches1AtIndex(t, Po.TokenType.name) && + this.tokens[t].contextualKeyword === s ); } identifierNameAtIndex(t) { @@ -21853,57 +21861,57 @@ If you need interactivity, consider converting part of this to a Client Componen stringValueForToken(t) { return this.code.slice(t.start + 1, t.end - 1); } - matches1AtIndex(t, n) { - return this.tokens[t].type === n; + matches1AtIndex(t, s) { + return this.tokens[t].type === s; } - matches2AtIndex(t, n, o) { - return this.tokens[t].type === n && this.tokens[t + 1].type === o; + matches2AtIndex(t, s, i) { + return this.tokens[t].type === s && this.tokens[t + 1].type === i; } - matches3AtIndex(t, n, o, r) { + matches3AtIndex(t, s, i, r) { return ( - this.tokens[t].type === n && - this.tokens[t + 1].type === o && + this.tokens[t].type === s && + this.tokens[t + 1].type === i && this.tokens[t + 2].type === r ); } matches1(t) { return this.tokens[this.tokenIndex].type === t; } - matches2(t, n) { + matches2(t, s) { return ( this.tokens[this.tokenIndex].type === t && - this.tokens[this.tokenIndex + 1].type === n + this.tokens[this.tokenIndex + 1].type === s ); } - matches3(t, n, o) { + matches3(t, s, i) { return ( this.tokens[this.tokenIndex].type === t && - this.tokens[this.tokenIndex + 1].type === n && - this.tokens[this.tokenIndex + 2].type === o + this.tokens[this.tokenIndex + 1].type === s && + this.tokens[this.tokenIndex + 2].type === i ); } - matches4(t, n, o, r) { + matches4(t, s, i, r) { return ( this.tokens[this.tokenIndex].type === t && - this.tokens[this.tokenIndex + 1].type === n && - this.tokens[this.tokenIndex + 2].type === o && + this.tokens[this.tokenIndex + 1].type === s && + this.tokens[this.tokenIndex + 2].type === i && this.tokens[this.tokenIndex + 3].type === r ); } - matches5(t, n, o, r, s) { + matches5(t, s, i, r, a) { return ( this.tokens[this.tokenIndex].type === t && - this.tokens[this.tokenIndex + 1].type === n && - this.tokens[this.tokenIndex + 2].type === o && + this.tokens[this.tokenIndex + 1].type === s && + this.tokens[this.tokenIndex + 2].type === i && this.tokens[this.tokenIndex + 3].type === r && - this.tokens[this.tokenIndex + 4].type === s + this.tokens[this.tokenIndex + 4].type === a ); } matchesContextual(t) { return this.matchesContextualAtIndex(this.tokenIndex, t); } - matchesContextIdAndLabel(t, n) { - return this.matches1(t) && this.currentToken().contextId === n; + matchesContextIdAndLabel(t, s) { + return this.matches1(t) && this.currentToken().contextId === s; } previousWhitespaceAndComments() { let t = this.code.slice( @@ -21942,8 +21950,8 @@ If you need interactivity, consider converting part of this to a Client Componen removeBalancedCode() { let t = 0; for (; !this.isAtEnd(); ) { - if (this.matches1(ms.TokenType.braceL)) t++; - else if (this.matches1(ms.TokenType.braceR)) { + if (this.matches1(Po.TokenType.braceL)) t++; + else if (this.matches1(Po.TokenType.braceR)) { if (t === 0) return; t--; } @@ -21982,11 +21990,11 @@ If you need interactivity, consider converting part of this to a Client Componen let t = this.currentToken(); if ( ((t.numNullishCoalesceStarts || t.isOptionalChainStart) && - (t.isAsyncOperation = Kv.default.call(void 0, this)), + (t.isAsyncOperation = Lv.default.call(void 0, this)), !this.disableESTransforms) ) { if (t.numNullishCoalesceStarts) - for (let n = 0; n < t.numNullishCoalesceStarts; n++) + for (let s = 0; s < t.numNullishCoalesceStarts; s++) t.isAsyncOperation ? ((this.resultCode += 'await '), (this.resultCode += this.helperManager.getHelperName( @@ -21998,7 +22006,7 @@ If you need interactivity, consider converting part of this to a Client Componen t.isOptionalChainStart && (t.isAsyncOperation && (this.resultCode += 'await '), this.tokenIndex > 0 && - this.tokenAtRelativeIndex(-1).type === ms.TokenType._delete + this.tokenAtRelativeIndex(-1).type === Po.TokenType._delete ? t.isAsyncOperation ? (this.resultCode += this.helperManager.getHelperName( 'asyncOptionalChainDelete' @@ -22022,7 +22030,7 @@ If you need interactivity, consider converting part of this to a Client Componen (this.resultCode += '])'), t.numNullishCoalesceEnds && !this.disableESTransforms) ) - for (let n = 0; n < t.numNullishCoalesceEnds; n++) + for (let s = 0; s < t.numNullishCoalesceEnds; s++) this.resultCode += '))'; } appendCode(t) { @@ -22063,315 +22071,315 @@ If you need interactivity, consider converting part of this to a Client Componen return this.tokenIndex === this.tokens.length; } }; - c1.default = l1; + Yl.default = Xl; }); - var Dp = H((p1) => { + var Eh = Z((Ql) => { 'use strict'; - Object.defineProperty(p1, '__esModule', {value: !0}); - var Rp = Ge(), - he = ce(); - function qv(e, t, n, o) { + Object.defineProperty(Ql, '__esModule', {value: !0}); + var Sh = It(), + Ne = be(); + function Ov(e, t, s, i) { let r = t.snapshot(), - s = Hv(t), - i = [], - a = [], + a = Dv(t), + p = [], + d = [], + y = [], + k = null, + A = [], u = [], - h = null, - v = [], - _ = [], - x = t.currentToken().contextId; - if (x == null) + f = t.currentToken().contextId; + if (f == null) throw new Error( 'Expected non-null class context ID on class open-brace.' ); - for (t.nextToken(); !t.matchesContextIdAndLabel(he.TokenType.braceR, x); ) + for (t.nextToken(); !t.matchesContextIdAndLabel(Ne.TokenType.braceR, f); ) if ( - t.matchesContextual(Rp.ContextualKeyword._constructor) && + t.matchesContextual(Sh.ContextualKeyword._constructor) && !t.currentToken().isType ) - ({constructorInitializerStatements: i, constructorInsertPos: h} = - Np(t)); - else if (t.matches1(he.TokenType.semi)) - o || _.push({start: t.currentIndex(), end: t.currentIndex() + 1}), + ({constructorInitializerStatements: p, constructorInsertPos: k} = + Ih(t)); + else if (t.matches1(Ne.TokenType.semi)) + i || u.push({start: t.currentIndex(), end: t.currentIndex() + 1}), t.nextToken(); else if (t.currentToken().isType) t.nextToken(); else { - let L = t.currentIndex(), - G = !1, - F = !1, - K = !1; - for (; ks(t.currentToken()); ) - t.matches1(he.TokenType._static) && (G = !0), - t.matches1(he.TokenType.hash) && (F = !0), - (t.matches1(he.TokenType._declare) || - t.matches1(he.TokenType._abstract)) && - (K = !0), + let x = t.currentIndex(), + g = !1, + S = !1, + E = !1; + for (; No(t.currentToken()); ) + t.matches1(Ne.TokenType._static) && (g = !0), + t.matches1(Ne.TokenType.hash) && (S = !0), + (t.matches1(Ne.TokenType._declare) || + t.matches1(Ne.TokenType._abstract)) && + (E = !0), t.nextToken(); - if (G && t.matches1(he.TokenType.braceL)) { - u1(t, x); + if (g && t.matches1(Ne.TokenType.braceL)) { + Jl(t, f); continue; } - if (F) { - u1(t, x); + if (S) { + Jl(t, f); continue; } if ( - t.matchesContextual(Rp.ContextualKeyword._constructor) && + t.matchesContextual(Sh.ContextualKeyword._constructor) && !t.currentToken().isType ) { - ({constructorInitializerStatements: i, constructorInsertPos: h} = - Np(t)); + ({constructorInitializerStatements: p, constructorInsertPos: k} = + Ih(t)); continue; } - let R = t.currentIndex(); + let L = t.currentIndex(); if ( - (Uv(t), - t.matches1(he.TokenType.lessThan) || - t.matches1(he.TokenType.parenL)) + (Mv(t), + t.matches1(Ne.TokenType.lessThan) || + t.matches1(Ne.TokenType.parenL)) ) { - u1(t, x); + Jl(t, f); continue; } for (; t.currentToken().isType; ) t.nextToken(); - if (t.matches1(he.TokenType.eq)) { - let z = t.currentIndex(), - $ = t.currentToken().rhsEndIndex; - if ($ == null) + if (t.matches1(Ne.TokenType.eq)) { + let H = t.currentIndex(), + D = t.currentToken().rhsEndIndex; + if (D == null) throw new Error( 'Expected rhsEndIndex on class field assignment.' ); - for (t.nextToken(); t.currentIndex() < $; ) e.processToken(); - let O; - G - ? ((O = n.claimFreeName('__initStatic')), u.push(O)) - : ((O = n.claimFreeName('__init')), a.push(O)), - v.push({ - initializerName: O, - equalsIndex: z, - start: R, + for (t.nextToken(); t.currentIndex() < D; ) e.processToken(); + let c; + g + ? ((c = s.claimFreeName('__initStatic')), y.push(c)) + : ((c = s.claimFreeName('__init')), d.push(c)), + A.push({ + initializerName: c, + equalsIndex: H, + start: L, end: t.currentIndex(), }); - } else (!o || K) && _.push({start: L, end: t.currentIndex()}); + } else (!i || E) && u.push({start: x, end: t.currentIndex()}); } return ( t.restoreToSnapshot(r), - o + i ? { - headerInfo: s, - constructorInitializerStatements: i, + headerInfo: a, + constructorInitializerStatements: p, instanceInitializerNames: [], staticInitializerNames: [], - constructorInsertPos: h, + constructorInsertPos: k, fields: [], - rangesToRemove: _, + rangesToRemove: u, } : { - headerInfo: s, - constructorInitializerStatements: i, - instanceInitializerNames: a, - staticInitializerNames: u, - constructorInsertPos: h, - fields: v, - rangesToRemove: _, + headerInfo: a, + constructorInitializerStatements: p, + instanceInitializerNames: d, + staticInitializerNames: y, + constructorInsertPos: k, + fields: A, + rangesToRemove: u, } ); } - p1.default = qv; - function u1(e, t) { + Ql.default = Ov; + function Jl(e, t) { for (e.nextToken(); e.currentToken().contextId !== t; ) e.nextToken(); - for (; ks(e.tokenAtRelativeIndex(-1)); ) e.previousToken(); + for (; No(e.tokenAtRelativeIndex(-1)); ) e.previousToken(); } - function Hv(e) { + function Dv(e) { let t = e.currentToken(), - n = t.contextId; - if (n == null) throw new Error('Expected context ID on class token.'); - let o = t.isExpression; - if (o == null) throw new Error('Expected isExpression on class token.'); + s = t.contextId; + if (s == null) throw new Error('Expected context ID on class token.'); + let i = t.isExpression; + if (i == null) throw new Error('Expected isExpression on class token.'); let r = null, - s = !1; + a = !1; for ( e.nextToken(), - e.matches1(he.TokenType.name) && (r = e.identifierName()); - !e.matchesContextIdAndLabel(he.TokenType.braceL, n); + e.matches1(Ne.TokenType.name) && (r = e.identifierName()); + !e.matchesContextIdAndLabel(Ne.TokenType.braceL, s); ) - e.matches1(he.TokenType._extends) && + e.matches1(Ne.TokenType._extends) && !e.currentToken().isType && - (s = !0), + (a = !0), e.nextToken(); - return {isExpression: o, className: r, hasSuperclass: s}; + return {isExpression: i, className: r, hasSuperclass: a}; } - function Np(e) { + function Ih(e) { let t = []; e.nextToken(); - let n = e.currentToken().contextId; - if (n == null) + let s = e.currentToken().contextId; + if (s == null) throw new Error( 'Expected context ID on open-paren starting constructor params.' ); - for (; !e.matchesContextIdAndLabel(he.TokenType.parenR, n); ) - if (e.currentToken().contextId === n) { - if ((e.nextToken(), ks(e.currentToken()))) { - for (e.nextToken(); ks(e.currentToken()); ) e.nextToken(); - let s = e.currentToken(); - if (s.type !== he.TokenType.name) + for (; !e.matchesContextIdAndLabel(Ne.TokenType.parenR, s); ) + if (e.currentToken().contextId === s) { + if ((e.nextToken(), No(e.currentToken()))) { + for (e.nextToken(); No(e.currentToken()); ) e.nextToken(); + let a = e.currentToken(); + if (a.type !== Ne.TokenType.name) throw new Error( 'Expected identifier after access modifiers in constructor arg.' ); - let i = e.identifierNameForToken(s); - t.push(`this.${i} = ${i}`); + let p = e.identifierNameForToken(a); + t.push(`this.${p} = ${p}`); } } else e.nextToken(); e.nextToken(); - let o = e.currentIndex(), + let i = e.currentIndex(), r = !1; - for (; !e.matchesContextIdAndLabel(he.TokenType.braceR, n); ) { - if (!r && e.matches2(he.TokenType._super, he.TokenType.parenL)) { + for (; !e.matchesContextIdAndLabel(Ne.TokenType.braceR, s); ) { + if (!r && e.matches2(Ne.TokenType._super, Ne.TokenType.parenL)) { e.nextToken(); - let s = e.currentToken().contextId; - if (s == null) + let a = e.currentToken().contextId; + if (a == null) throw new Error('Expected a context ID on the super call'); - for (; !e.matchesContextIdAndLabel(he.TokenType.parenR, s); ) + for (; !e.matchesContextIdAndLabel(Ne.TokenType.parenR, a); ) e.nextToken(); - (o = e.currentIndex()), (r = !0); + (i = e.currentIndex()), (r = !0); } e.nextToken(); } return ( e.nextToken(), - {constructorInitializerStatements: t, constructorInsertPos: o} + {constructorInitializerStatements: t, constructorInsertPos: i} ); } - function ks(e) { + function No(e) { return [ - he.TokenType._async, - he.TokenType._get, - he.TokenType._set, - he.TokenType.plus, - he.TokenType.minus, - he.TokenType._readonly, - he.TokenType._static, - he.TokenType._public, - he.TokenType._private, - he.TokenType._protected, - he.TokenType._override, - he.TokenType._abstract, - he.TokenType.star, - he.TokenType._declare, - he.TokenType.hash, + Ne.TokenType._async, + Ne.TokenType._get, + Ne.TokenType._set, + Ne.TokenType.plus, + Ne.TokenType.minus, + Ne.TokenType._readonly, + Ne.TokenType._static, + Ne.TokenType._public, + Ne.TokenType._private, + Ne.TokenType._protected, + Ne.TokenType._override, + Ne.TokenType._abstract, + Ne.TokenType.star, + Ne.TokenType._declare, + Ne.TokenType.hash, ].includes(e.type); } - function Uv(e) { - if (e.matches1(he.TokenType.bracketL)) { - let n = e.currentToken().contextId; - if (n == null) + function Mv(e) { + if (e.matches1(Ne.TokenType.bracketL)) { + let s = e.currentToken().contextId; + if (s == null) throw new Error( 'Expected class context ID on computed name open bracket.' ); - for (; !e.matchesContextIdAndLabel(he.TokenType.bracketR, n); ) + for (; !e.matchesContextIdAndLabel(Ne.TokenType.bracketR, s); ) e.nextToken(); e.nextToken(); } else e.nextToken(); } }); - var f1 = H((d1) => { + var ec = Z((Zl) => { 'use strict'; - Object.defineProperty(d1, '__esModule', {value: !0}); - var Op = ce(); - function Wv(e) { + Object.defineProperty(Zl, '__esModule', {value: !0}); + var Ah = be(); + function Fv(e) { if ( (e.removeInitialToken(), e.removeToken(), e.removeToken(), e.removeToken(), - e.matches1(Op.TokenType.parenL)) + e.matches1(Ah.TokenType.parenL)) ) e.removeToken(), e.removeToken(), e.removeToken(); else - for (; e.matches1(Op.TokenType.dot); ) e.removeToken(), e.removeToken(); + for (; e.matches1(Ah.TokenType.dot); ) e.removeToken(), e.removeToken(); } - d1.default = Wv; + Zl.default = Fv; }); - var h1 = H((vs) => { + var tc = Z((Ro) => { 'use strict'; - Object.defineProperty(vs, '__esModule', {value: !0}); - var Vv = Ve(), - zv = ce(), - Xv = {typeDeclarations: new Set(), valueDeclarations: new Set()}; - vs.EMPTY_DECLARATION_INFO = Xv; - function Yv(e) { + Object.defineProperty(Ro, '__esModule', {value: !0}); + var Bv = xt(), + Vv = be(), + jv = {typeDeclarations: new Set(), valueDeclarations: new Set()}; + Ro.EMPTY_DECLARATION_INFO = jv; + function $v(e) { let t = new Set(), - n = new Set(); - for (let o = 0; o < e.tokens.length; o++) { - let r = e.tokens[o]; - r.type === zv.TokenType.name && - Vv.isTopLevelDeclaration.call(void 0, r) && + s = new Set(); + for (let i = 0; i < e.tokens.length; i++) { + let r = e.tokens[i]; + r.type === Vv.TokenType.name && + Bv.isTopLevelDeclaration.call(void 0, r) && (r.isType ? t.add(e.identifierNameForToken(r)) - : n.add(e.identifierNameForToken(r))); + : s.add(e.identifierNameForToken(r))); } - return {typeDeclarations: t, valueDeclarations: n}; + return {typeDeclarations: t, valueDeclarations: s}; } - vs.default = Yv; + Ro.default = $v; }); - var y1 = H((T1) => { + var sc = Z((nc) => { 'use strict'; - Object.defineProperty(T1, '__esModule', {value: !0}); - var Gv = Ge(), - Mp = ce(); - function Jv(e) { - e.matches2(Mp.TokenType.name, Mp.TokenType.braceL) && - e.matchesContextual(Gv.ContextualKeyword._assert) && + Object.defineProperty(nc, '__esModule', {value: !0}); + var qv = It(), + Ph = be(); + function Kv(e) { + e.matches2(Ph.TokenType.name, Ph.TokenType.braceL) && + e.matchesContextual(qv.ContextualKeyword._assert) && (e.removeToken(), e.removeToken(), e.removeBalancedCode(), e.removeToken()); } - T1.removeMaybeImportAssertion = Jv; + nc.removeMaybeImportAssertion = Kv; }); - var k1 = H((m1) => { + var rc = Z((ic) => { 'use strict'; - Object.defineProperty(m1, '__esModule', {value: !0}); - var Lp = ce(); - function Qv(e, t, n) { + Object.defineProperty(ic, '__esModule', {value: !0}); + var Nh = be(); + function Uv(e, t, s) { if (!e) return !1; - let o = t.currentToken(); - if (o.rhsEndIndex == null) + let i = t.currentToken(); + if (i.rhsEndIndex == null) throw new Error('Expected non-null rhsEndIndex on export token.'); - let r = o.rhsEndIndex - t.currentIndex(); + let r = i.rhsEndIndex - t.currentIndex(); if ( r !== 3 && - !(r === 4 && t.matches1AtIndex(o.rhsEndIndex - 1, Lp.TokenType.semi)) + !(r === 4 && t.matches1AtIndex(i.rhsEndIndex - 1, Nh.TokenType.semi)) ) return !1; - let s = t.tokenAtRelativeIndex(2); - if (s.type !== Lp.TokenType.name) return !1; - let i = t.identifierNameForToken(s); - return n.typeDeclarations.has(i) && !n.valueDeclarations.has(i); + let a = t.tokenAtRelativeIndex(2); + if (a.type !== Nh.TokenType.name) return !1; + let p = t.identifierNameForToken(a); + return s.typeDeclarations.has(p) && !s.valueDeclarations.has(p); } - m1.default = Qv; + ic.default = Uv; }); - var $p = H((_1) => { + var Lh = Z((ac) => { 'use strict'; - Object.defineProperty(_1, '__esModule', {value: !0}); - function sr(e) { + Object.defineProperty(ac, '__esModule', {value: !0}); + function ur(e) { return e && e.__esModule ? e : {default: e}; } - var _s = Ve(), - Gn = Ge(), - m = ce(), - Zv = f1(), - e0 = sr(Zv), - Fp = h1(), - t0 = sr(Fp), - n0 = Ko(), - o0 = sr(n0), - xs = y1(), - r0 = k1(), - s0 = sr(r0), - i0 = Nt(), - a0 = sr(i0), - v1 = class e extends a0.default { + var Lo = xt(), + Ls = It(), + N = be(), + Hv = ec(), + Wv = ur(Hv), + Rh = tc(), + Gv = ur(Rh), + zv = Wi(), + Xv = ur(zv), + Oo = sc(), + Yv = rc(), + Jv = ur(Yv), + Qv = hn(), + Zv = ur(Qv), + oc = class e extends Zv.default { __init() { this.hadExport = !1; } @@ -22381,24 +22389,24 @@ If you need interactivity, consider converting part of this to a Client Componen __init3() { this.hadDefaultExport = !1; } - constructor(t, n, o, r, s, i, a, u, h, v) { + constructor(t, s, i, r, a, p, d, y, k, A) { super(), (this.rootTransformer = t), - (this.tokens = n), - (this.importProcessor = o), + (this.tokens = s), + (this.importProcessor = i), (this.nameManager = r), - (this.helperManager = s), - (this.reactHotLoaderTransformer = i), - (this.enableLegacyBabel5ModuleInterop = a), - (this.enableLegacyTypeScriptModuleInterop = u), - (this.isTypeScriptTransformEnabled = h), - (this.preserveDynamicImport = v), + (this.helperManager = a), + (this.reactHotLoaderTransformer = p), + (this.enableLegacyBabel5ModuleInterop = d), + (this.enableLegacyTypeScriptModuleInterop = y), + (this.isTypeScriptTransformEnabled = k), + (this.preserveDynamicImport = A), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), - (this.declarationInfo = h - ? t0.default.call(void 0, n) - : Fp.EMPTY_DECLARATION_INFO); + (this.declarationInfo = k + ? Gv.default.call(void 0, s) + : Rh.EMPTY_DECLARATION_INFO); } getPrefixCode() { let t = ''; @@ -22420,29 +22428,29 @@ module.exports = exports.default; } process() { return this.tokens.matches3( - m.TokenType._import, - m.TokenType.name, - m.TokenType.eq + N.TokenType._import, + N.TokenType.name, + N.TokenType.eq ) ? this.processImportEquals() - : this.tokens.matches1(m.TokenType._import) + : this.tokens.matches1(N.TokenType._import) ? (this.processImport(), !0) - : this.tokens.matches2(m.TokenType._export, m.TokenType.eq) + : this.tokens.matches2(N.TokenType._export, N.TokenType.eq) ? (this.tokens.replaceToken('module.exports'), !0) - : this.tokens.matches1(m.TokenType._export) && + : this.tokens.matches1(N.TokenType._export) && !this.tokens.currentToken().isType ? ((this.hadExport = !0), this.processExport()) - : this.tokens.matches2(m.TokenType.name, m.TokenType.postIncDec) && + : this.tokens.matches2(N.TokenType.name, N.TokenType.postIncDec) && this.processPostIncDec() ? !0 - : this.tokens.matches1(m.TokenType.name) || - this.tokens.matches1(m.TokenType.jsxName) + : this.tokens.matches1(N.TokenType.name) || + this.tokens.matches1(N.TokenType.jsxName) ? this.processIdentifier() - : this.tokens.matches1(m.TokenType.eq) + : this.tokens.matches1(N.TokenType.eq) ? this.processAssignment() - : this.tokens.matches1(m.TokenType.assign) + : this.tokens.matches1(N.TokenType.assign) ? this.processComplexAssignment() - : this.tokens.matches1(m.TokenType.preIncDec) + : this.tokens.matches1(N.TokenType.preIncDec) ? this.processPreIncDec() : !1; } @@ -22452,312 +22460,312 @@ module.exports = exports.default; ); return ( this.importProcessor.isTypeName(t) - ? e0.default.call(void 0, this.tokens) + ? Wv.default.call(void 0, this.tokens) : this.tokens.replaceToken('const'), !0 ); } processImport() { - if (this.tokens.matches2(m.TokenType._import, m.TokenType.parenL)) { + if (this.tokens.matches2(N.TokenType._import, N.TokenType.parenL)) { if (this.preserveDynamicImport) { this.tokens.copyToken(); return; } - let n = this.enableLegacyTypeScriptModuleInterop + let s = this.enableLegacyTypeScriptModuleInterop ? '' : `${this.helperManager.getHelperName( 'interopRequireWildcard' )}(`; this.tokens.replaceToken( - `Promise.resolve().then(() => ${n}require` + `Promise.resolve().then(() => ${s}require` ); - let o = this.tokens.currentToken().contextId; - if (o == null) + let i = this.tokens.currentToken().contextId; + if (i == null) throw new Error( 'Expected context ID on dynamic import invocation.' ); for ( this.tokens.copyToken(); - !this.tokens.matchesContextIdAndLabel(m.TokenType.parenR, o); + !this.tokens.matchesContextIdAndLabel(N.TokenType.parenR, i); ) this.rootTransformer.processToken(); - this.tokens.replaceToken(n ? ')))' : '))'); + this.tokens.replaceToken(s ? ')))' : '))'); return; } if (this.removeImportAndDetectIfType()) this.tokens.removeToken(); else { - let n = this.tokens.stringValue(); + let s = this.tokens.stringValue(); this.tokens.replaceTokenTrimmingLeftWhitespace( - this.importProcessor.claimImportCode(n) + this.importProcessor.claimImportCode(s) ), - this.tokens.appendCode(this.importProcessor.claimImportCode(n)); + this.tokens.appendCode(this.importProcessor.claimImportCode(s)); } - xs.removeMaybeImportAssertion.call(void 0, this.tokens), - this.tokens.matches1(m.TokenType.semi) && this.tokens.removeToken(); + Oo.removeMaybeImportAssertion.call(void 0, this.tokens), + this.tokens.matches1(N.TokenType.semi) && this.tokens.removeToken(); } removeImportAndDetectIfType() { if ( (this.tokens.removeInitialToken(), - this.tokens.matchesContextual(Gn.ContextualKeyword._type) && + this.tokens.matchesContextual(Ls.ContextualKeyword._type) && !this.tokens.matches1AtIndex( this.tokens.currentIndex() + 1, - m.TokenType.comma + N.TokenType.comma ) && !this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 1, - Gn.ContextualKeyword._from + Ls.ContextualKeyword._from )) ) return this.removeRemainingImport(), !0; if ( - this.tokens.matches1(m.TokenType.name) || - this.tokens.matches1(m.TokenType.star) + this.tokens.matches1(N.TokenType.name) || + this.tokens.matches1(N.TokenType.star) ) return this.removeRemainingImport(), !1; - if (this.tokens.matches1(m.TokenType.string)) return !1; + if (this.tokens.matches1(N.TokenType.string)) return !1; let t = !1; - for (; !this.tokens.matches1(m.TokenType.string); ) - ((!t && this.tokens.matches1(m.TokenType.braceL)) || - this.tokens.matches1(m.TokenType.comma)) && + for (; !this.tokens.matches1(N.TokenType.string); ) + ((!t && this.tokens.matches1(N.TokenType.braceL)) || + this.tokens.matches1(N.TokenType.comma)) && (this.tokens.removeToken(), - (this.tokens.matches2(m.TokenType.name, m.TokenType.comma) || - this.tokens.matches2(m.TokenType.name, m.TokenType.braceR) || + (this.tokens.matches2(N.TokenType.name, N.TokenType.comma) || + this.tokens.matches2(N.TokenType.name, N.TokenType.braceR) || this.tokens.matches4( - m.TokenType.name, - m.TokenType.name, - m.TokenType.name, - m.TokenType.comma + N.TokenType.name, + N.TokenType.name, + N.TokenType.name, + N.TokenType.comma ) || this.tokens.matches4( - m.TokenType.name, - m.TokenType.name, - m.TokenType.name, - m.TokenType.braceR + N.TokenType.name, + N.TokenType.name, + N.TokenType.name, + N.TokenType.braceR )) && (t = !0)), this.tokens.removeToken(); return !t; } removeRemainingImport() { - for (; !this.tokens.matches1(m.TokenType.string); ) + for (; !this.tokens.matches1(N.TokenType.string); ) this.tokens.removeToken(); } processIdentifier() { let t = this.tokens.currentToken(); if (t.shadowsGlobal) return !1; - if (t.identifierRole === _s.IdentifierRole.ObjectShorthand) + if (t.identifierRole === Lo.IdentifierRole.ObjectShorthand) return this.processObjectShorthand(); - if (t.identifierRole !== _s.IdentifierRole.Access) return !1; - let n = this.importProcessor.getIdentifierReplacement( + if (t.identifierRole !== Lo.IdentifierRole.Access) return !1; + let s = this.importProcessor.getIdentifierReplacement( this.tokens.identifierNameForToken(t) ); - if (!n) return !1; - let o = this.tokens.currentIndex() + 1; + if (!s) return !1; + let i = this.tokens.currentIndex() + 1; for ( ; - o < this.tokens.tokens.length && - this.tokens.tokens[o].type === m.TokenType.parenR; + i < this.tokens.tokens.length && + this.tokens.tokens[i].type === N.TokenType.parenR; ) - o++; + i++; return ( - this.tokens.tokens[o].type === m.TokenType.parenL + this.tokens.tokens[i].type === N.TokenType.parenL ? this.tokens.tokenAtRelativeIndex(1).type === - m.TokenType.parenL && - this.tokens.tokenAtRelativeIndex(-1).type !== m.TokenType._new - ? (this.tokens.replaceToken(`${n}.call(void 0, `), + N.TokenType.parenL && + this.tokens.tokenAtRelativeIndex(-1).type !== N.TokenType._new + ? (this.tokens.replaceToken(`${s}.call(void 0, `), this.tokens.removeToken(), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(m.TokenType.parenR)) - : this.tokens.replaceToken(`(0, ${n})`) - : this.tokens.replaceToken(n), + this.tokens.copyExpectedToken(N.TokenType.parenR)) + : this.tokens.replaceToken(`(0, ${s})`) + : this.tokens.replaceToken(s), !0 ); } processObjectShorthand() { let t = this.tokens.identifierName(), - n = this.importProcessor.getIdentifierReplacement(t); - return n ? (this.tokens.replaceToken(`${t}: ${n}`), !0) : !1; + s = this.importProcessor.getIdentifierReplacement(t); + return s ? (this.tokens.replaceToken(`${t}: ${s}`), !0) : !1; } processExport() { if ( - this.tokens.matches2(m.TokenType._export, m.TokenType._enum) || + this.tokens.matches2(N.TokenType._export, N.TokenType._enum) || this.tokens.matches3( - m.TokenType._export, - m.TokenType._const, - m.TokenType._enum + N.TokenType._export, + N.TokenType._const, + N.TokenType._enum ) ) return !1; - if (this.tokens.matches2(m.TokenType._export, m.TokenType._default)) + if (this.tokens.matches2(N.TokenType._export, N.TokenType._default)) return ( (this.hadDefaultExport = !0), this.tokens.matches3( - m.TokenType._export, - m.TokenType._default, - m.TokenType._enum + N.TokenType._export, + N.TokenType._default, + N.TokenType._enum ) ? !1 : (this.processExportDefault(), !0) ); if ( ((this.hadNamedExport = !0), - this.tokens.matches2(m.TokenType._export, m.TokenType._var) || - this.tokens.matches2(m.TokenType._export, m.TokenType._let) || - this.tokens.matches2(m.TokenType._export, m.TokenType._const)) + this.tokens.matches2(N.TokenType._export, N.TokenType._var) || + this.tokens.matches2(N.TokenType._export, N.TokenType._let) || + this.tokens.matches2(N.TokenType._export, N.TokenType._const)) ) return this.processExportVar(), !0; if ( - this.tokens.matches2(m.TokenType._export, m.TokenType._function) || + this.tokens.matches2(N.TokenType._export, N.TokenType._function) || this.tokens.matches3( - m.TokenType._export, - m.TokenType.name, - m.TokenType._function + N.TokenType._export, + N.TokenType.name, + N.TokenType._function ) ) return this.processExportFunction(), !0; if ( - this.tokens.matches2(m.TokenType._export, m.TokenType._class) || + this.tokens.matches2(N.TokenType._export, N.TokenType._class) || this.tokens.matches3( - m.TokenType._export, - m.TokenType._abstract, - m.TokenType._class + N.TokenType._export, + N.TokenType._abstract, + N.TokenType._class ) || - this.tokens.matches2(m.TokenType._export, m.TokenType.at) + this.tokens.matches2(N.TokenType._export, N.TokenType.at) ) return this.processExportClass(), !0; - if (this.tokens.matches2(m.TokenType._export, m.TokenType.braceL)) + if (this.tokens.matches2(N.TokenType._export, N.TokenType.braceL)) return this.processExportBindings(), !0; - if (this.tokens.matches2(m.TokenType._export, m.TokenType.star)) + if (this.tokens.matches2(N.TokenType._export, N.TokenType.star)) return this.processExportStar(), !0; if ( - this.tokens.matches2(m.TokenType._export, m.TokenType.name) && + this.tokens.matches2(N.TokenType._export, N.TokenType.name) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 1, - Gn.ContextualKeyword._type + Ls.ContextualKeyword._type ) ) { if ( (this.tokens.removeInitialToken(), this.tokens.removeToken(), - this.tokens.matches1(m.TokenType.braceL)) + this.tokens.matches1(N.TokenType.braceL)) ) { - for (; !this.tokens.matches1(m.TokenType.braceR); ) + for (; !this.tokens.matches1(N.TokenType.braceR); ) this.tokens.removeToken(); this.tokens.removeToken(); } else this.tokens.removeToken(), - this.tokens.matches1(m.TokenType._as) && + this.tokens.matches1(N.TokenType._as) && (this.tokens.removeToken(), this.tokens.removeToken()); return ( - this.tokens.matchesContextual(Gn.ContextualKeyword._from) && + this.tokens.matchesContextual(Ls.ContextualKeyword._from) && this.tokens.matches1AtIndex( this.tokens.currentIndex() + 1, - m.TokenType.string + N.TokenType.string ) && (this.tokens.removeToken(), this.tokens.removeToken(), - xs.removeMaybeImportAssertion.call(void 0, this.tokens)), + Oo.removeMaybeImportAssertion.call(void 0, this.tokens)), !0 ); } else throw new Error('Unrecognized export syntax.'); } processAssignment() { let t = this.tokens.currentIndex(), - n = this.tokens.tokens[t - 1]; + s = this.tokens.tokens[t - 1]; if ( - n.isType || - n.type !== m.TokenType.name || - n.shadowsGlobal || - (t >= 2 && this.tokens.matches1AtIndex(t - 2, m.TokenType.dot)) || + s.isType || + s.type !== N.TokenType.name || + s.shadowsGlobal || + (t >= 2 && this.tokens.matches1AtIndex(t - 2, N.TokenType.dot)) || (t >= 2 && - [m.TokenType._var, m.TokenType._let, m.TokenType._const].includes( + [N.TokenType._var, N.TokenType._let, N.TokenType._const].includes( this.tokens.tokens[t - 2].type )) ) return !1; - let o = this.importProcessor.resolveExportBinding( - this.tokens.identifierNameForToken(n) + let i = this.importProcessor.resolveExportBinding( + this.tokens.identifierNameForToken(s) ); - return o - ? (this.tokens.copyToken(), this.tokens.appendCode(` ${o} =`), !0) + return i + ? (this.tokens.copyToken(), this.tokens.appendCode(` ${i} =`), !0) : !1; } processComplexAssignment() { let t = this.tokens.currentIndex(), - n = this.tokens.tokens[t - 1]; + s = this.tokens.tokens[t - 1]; if ( - n.type !== m.TokenType.name || - n.shadowsGlobal || - (t >= 2 && this.tokens.matches1AtIndex(t - 2, m.TokenType.dot)) + s.type !== N.TokenType.name || + s.shadowsGlobal || + (t >= 2 && this.tokens.matches1AtIndex(t - 2, N.TokenType.dot)) ) return !1; - let o = this.importProcessor.resolveExportBinding( - this.tokens.identifierNameForToken(n) + let i = this.importProcessor.resolveExportBinding( + this.tokens.identifierNameForToken(s) ); - return o - ? (this.tokens.appendCode(` = ${o}`), this.tokens.copyToken(), !0) + return i + ? (this.tokens.appendCode(` = ${i}`), this.tokens.copyToken(), !0) : !1; } processPreIncDec() { let t = this.tokens.currentIndex(), - n = this.tokens.tokens[t + 1]; + s = this.tokens.tokens[t + 1]; if ( - n.type !== m.TokenType.name || - n.shadowsGlobal || + s.type !== N.TokenType.name || + s.shadowsGlobal || (t + 2 < this.tokens.tokens.length && - (this.tokens.matches1AtIndex(t + 2, m.TokenType.dot) || - this.tokens.matches1AtIndex(t + 2, m.TokenType.bracketL) || - this.tokens.matches1AtIndex(t + 2, m.TokenType.parenL))) + (this.tokens.matches1AtIndex(t + 2, N.TokenType.dot) || + this.tokens.matches1AtIndex(t + 2, N.TokenType.bracketL) || + this.tokens.matches1AtIndex(t + 2, N.TokenType.parenL))) ) return !1; - let o = this.tokens.identifierNameForToken(n), - r = this.importProcessor.resolveExportBinding(o); + let i = this.tokens.identifierNameForToken(s), + r = this.importProcessor.resolveExportBinding(i); return r ? (this.tokens.appendCode(`${r} = `), this.tokens.copyToken(), !0) : !1; } processPostIncDec() { let t = this.tokens.currentIndex(), - n = this.tokens.tokens[t], - o = this.tokens.tokens[t + 1]; + s = this.tokens.tokens[t], + i = this.tokens.tokens[t + 1]; if ( - n.type !== m.TokenType.name || - n.shadowsGlobal || - (t >= 1 && this.tokens.matches1AtIndex(t - 1, m.TokenType.dot)) + s.type !== N.TokenType.name || + s.shadowsGlobal || + (t >= 1 && this.tokens.matches1AtIndex(t - 1, N.TokenType.dot)) ) return !1; - let r = this.tokens.identifierNameForToken(n), - s = this.importProcessor.resolveExportBinding(r); - if (!s) return !1; - let i = this.tokens.rawCodeForToken(o), - a = this.importProcessor.getIdentifierReplacement(r) || r; - if (i === '++') - this.tokens.replaceToken(`(${a} = ${s} = ${a} + 1, ${a} - 1)`); - else if (i === '--') - this.tokens.replaceToken(`(${a} = ${s} = ${a} - 1, ${a} + 1)`); - else throw new Error(`Unexpected operator: ${i}`); + let r = this.tokens.identifierNameForToken(s), + a = this.importProcessor.resolveExportBinding(r); + if (!a) return !1; + let p = this.tokens.rawCodeForToken(i), + d = this.importProcessor.getIdentifierReplacement(r) || r; + if (p === '++') + this.tokens.replaceToken(`(${d} = ${a} = ${d} + 1, ${d} - 1)`); + else if (p === '--') + this.tokens.replaceToken(`(${d} = ${a} = ${d} - 1, ${d} + 1)`); + else throw new Error(`Unexpected operator: ${p}`); return this.tokens.removeToken(), !0; } processExportDefault() { if ( this.tokens.matches4( - m.TokenType._export, - m.TokenType._default, - m.TokenType._function, - m.TokenType.name + N.TokenType._export, + N.TokenType._default, + N.TokenType._function, + N.TokenType.name ) || (this.tokens.matches5( - m.TokenType._export, - m.TokenType._default, - m.TokenType.name, - m.TokenType._function, - m.TokenType.name + N.TokenType._export, + N.TokenType._default, + N.TokenType.name, + N.TokenType._function, + N.TokenType.name ) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 2, - Gn.ContextualKeyword._async + Ls.ContextualKeyword._async )) ) { this.tokens.removeInitialToken(), this.tokens.removeToken(); @@ -22765,33 +22773,33 @@ module.exports = exports.default; this.tokens.appendCode(` exports.default = ${t};`); } else if ( this.tokens.matches4( - m.TokenType._export, - m.TokenType._default, - m.TokenType._class, - m.TokenType.name + N.TokenType._export, + N.TokenType._default, + N.TokenType._class, + N.TokenType.name ) || this.tokens.matches5( - m.TokenType._export, - m.TokenType._default, - m.TokenType._abstract, - m.TokenType._class, - m.TokenType.name + N.TokenType._export, + N.TokenType._default, + N.TokenType._abstract, + N.TokenType._class, + N.TokenType.name ) || this.tokens.matches3( - m.TokenType._export, - m.TokenType._default, - m.TokenType.at + N.TokenType._export, + N.TokenType._default, + N.TokenType.at ) ) { this.tokens.removeInitialToken(), this.tokens.removeToken(), this.copyDecorators(), - this.tokens.matches1(m.TokenType._abstract) && + this.tokens.matches1(N.TokenType._abstract) && this.tokens.removeToken(); let t = this.rootTransformer.processNamedClass(); this.tokens.appendCode(` exports.default = ${t};`); } else if ( - s0.default.call( + Jv.default.call( void 0, this.isTypeScriptTransformEnabled, this.tokens, @@ -22813,26 +22821,26 @@ module.exports = exports.default; this.tokens.appendCode(' ='); } copyDecorators() { - for (; this.tokens.matches1(m.TokenType.at); ) + for (; this.tokens.matches1(N.TokenType.at); ) if ( (this.tokens.copyToken(), - this.tokens.matches1(m.TokenType.parenL)) + this.tokens.matches1(N.TokenType.parenL)) ) - this.tokens.copyExpectedToken(m.TokenType.parenL), + this.tokens.copyExpectedToken(N.TokenType.parenL), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(m.TokenType.parenR); + this.tokens.copyExpectedToken(N.TokenType.parenR); else { for ( - this.tokens.copyExpectedToken(m.TokenType.name); - this.tokens.matches1(m.TokenType.dot); + this.tokens.copyExpectedToken(N.TokenType.name); + this.tokens.matches1(N.TokenType.dot); ) - this.tokens.copyExpectedToken(m.TokenType.dot), - this.tokens.copyExpectedToken(m.TokenType.name); - this.tokens.matches1(m.TokenType.parenL) && - (this.tokens.copyExpectedToken(m.TokenType.parenL), + this.tokens.copyExpectedToken(N.TokenType.dot), + this.tokens.copyExpectedToken(N.TokenType.name); + this.tokens.matches1(N.TokenType.parenL) && + (this.tokens.copyExpectedToken(N.TokenType.parenL), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(m.TokenType.parenR)); + this.tokens.copyExpectedToken(N.TokenType.parenR)); } } processExportVar() { @@ -22842,7 +22850,7 @@ module.exports = exports.default; } isSimpleExportVar() { let t = this.tokens.currentIndex(); - if ((t++, t++, !this.tokens.matches1AtIndex(t, m.TokenType.name))) + if ((t++, t++, !this.tokens.matches1AtIndex(t, N.TokenType.name))) return !1; for ( t++; @@ -22850,69 +22858,69 @@ module.exports = exports.default; ) t++; - return !!this.tokens.matches1AtIndex(t, m.TokenType.eq); + return !!this.tokens.matches1AtIndex(t, N.TokenType.eq); } processSimpleExportVar() { this.tokens.removeInitialToken(), this.tokens.copyToken(); let t = this.tokens.identifierName(); - for (; !this.tokens.matches1(m.TokenType.eq); ) + for (; !this.tokens.matches1(N.TokenType.eq); ) this.rootTransformer.processToken(); - let n = this.tokens.currentToken().rhsEndIndex; - if (n == null) throw new Error('Expected = token with an end index.'); - for (; this.tokens.currentIndex() < n; ) + let s = this.tokens.currentToken().rhsEndIndex; + if (s == null) throw new Error('Expected = token with an end index.'); + for (; this.tokens.currentIndex() < s; ) this.rootTransformer.processToken(); this.tokens.appendCode(`; exports.${t} = ${t}`); } processComplexExportVar() { this.tokens.removeInitialToken(), this.tokens.removeToken(); - let t = this.tokens.matches1(m.TokenType.braceL); + let t = this.tokens.matches1(N.TokenType.braceL); t && this.tokens.appendCode('('); - let n = 0; + let s = 0; for (;;) if ( - this.tokens.matches1(m.TokenType.braceL) || - this.tokens.matches1(m.TokenType.dollarBraceL) || - this.tokens.matches1(m.TokenType.bracketL) + this.tokens.matches1(N.TokenType.braceL) || + this.tokens.matches1(N.TokenType.dollarBraceL) || + this.tokens.matches1(N.TokenType.bracketL) ) - n++, this.tokens.copyToken(); + s++, this.tokens.copyToken(); else if ( - this.tokens.matches1(m.TokenType.braceR) || - this.tokens.matches1(m.TokenType.bracketR) + this.tokens.matches1(N.TokenType.braceR) || + this.tokens.matches1(N.TokenType.bracketR) ) - n--, this.tokens.copyToken(); + s--, this.tokens.copyToken(); else { if ( - n === 0 && - !this.tokens.matches1(m.TokenType.name) && + s === 0 && + !this.tokens.matches1(N.TokenType.name) && !this.tokens.currentToken().isType ) break; - if (this.tokens.matches1(m.TokenType.eq)) { - let o = this.tokens.currentToken().rhsEndIndex; - if (o == null) + if (this.tokens.matches1(N.TokenType.eq)) { + let i = this.tokens.currentToken().rhsEndIndex; + if (i == null) throw new Error('Expected = token with an end index.'); - for (; this.tokens.currentIndex() < o; ) + for (; this.tokens.currentIndex() < i; ) this.rootTransformer.processToken(); } else { - let o = this.tokens.currentToken(); - if (_s.isDeclaration.call(void 0, o)) { + let i = this.tokens.currentToken(); + if (Lo.isDeclaration.call(void 0, i)) { let r = this.tokens.identifierName(), - s = this.importProcessor.getIdentifierReplacement(r); - if (s === null) + a = this.importProcessor.getIdentifierReplacement(r); + if (a === null) throw new Error( `Expected a replacement for ${r} in \`export var\` syntax.` ); - _s.isObjectShorthandDeclaration.call(void 0, o) && - (s = `${r}: ${s}`), - this.tokens.replaceToken(s); + Lo.isObjectShorthandDeclaration.call(void 0, i) && + (a = `${r}: ${a}`), + this.tokens.replaceToken(a); } else this.rootTransformer.processToken(); } } if (t) { - let o = this.tokens.currentToken().rhsEndIndex; - if (o == null) + let i = this.tokens.currentToken().rhsEndIndex; + if (i == null) throw new Error('Expected = token with an end index.'); - for (; this.tokens.currentIndex() < o; ) + for (; this.tokens.currentIndex() < i; ) this.rootTransformer.processToken(); this.tokens.appendCode(')'); } @@ -22923,18 +22931,18 @@ module.exports = exports.default; this.tokens.appendCode(` exports.${t} = ${t};`); } processNamedFunction() { - if (this.tokens.matches1(m.TokenType._function)) + if (this.tokens.matches1(N.TokenType._function)) this.tokens.copyToken(); else if ( - this.tokens.matches2(m.TokenType.name, m.TokenType._function) + this.tokens.matches2(N.TokenType.name, N.TokenType._function) ) { - if (!this.tokens.matchesContextual(Gn.ContextualKeyword._async)) + if (!this.tokens.matchesContextual(Ls.ContextualKeyword._async)) throw new Error('Expected async keyword in function export.'); this.tokens.copyToken(), this.tokens.copyToken(); } if ( - (this.tokens.matches1(m.TokenType.star) && this.tokens.copyToken(), - !this.tokens.matches1(m.TokenType.name)) + (this.tokens.matches1(N.TokenType.star) && this.tokens.copyToken(), + !this.tokens.matches1(N.TokenType.name)) ) throw new Error('Expected identifier for exported function name.'); let t = this.tokens.identifierName(); @@ -22946,20 +22954,20 @@ module.exports = exports.default; ) this.tokens.removeToken(); return ( - this.tokens.copyExpectedToken(m.TokenType.parenL), + this.tokens.copyExpectedToken(N.TokenType.parenL), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(m.TokenType.parenR), + this.tokens.copyExpectedToken(N.TokenType.parenR), this.rootTransformer.processPossibleTypeRange(), - this.tokens.copyExpectedToken(m.TokenType.braceL), + this.tokens.copyExpectedToken(N.TokenType.braceL), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(m.TokenType.braceR), + this.tokens.copyExpectedToken(N.TokenType.braceR), t ); } processExportClass() { this.tokens.removeInitialToken(), this.copyDecorators(), - this.tokens.matches1(m.TokenType._abstract) && + this.tokens.matches1(N.TokenType._abstract) && this.tokens.removeToken(); let t = this.rootTransformer.processNamedClass(); this.tokens.appendCode(` exports.${t} = ${t};`); @@ -22968,27 +22976,27 @@ module.exports = exports.default; this.tokens.removeInitialToken(), this.tokens.removeToken(); let t = []; for (;;) { - if (this.tokens.matches1(m.TokenType.braceR)) { + if (this.tokens.matches1(N.TokenType.braceR)) { this.tokens.removeToken(); break; } - let n = o0.default.call(void 0, this.tokens); - for (; this.tokens.currentIndex() < n.endIndex; ) + let s = Xv.default.call(void 0, this.tokens); + for (; this.tokens.currentIndex() < s.endIndex; ) this.tokens.removeToken(); - if (!n.isType && !this.shouldElideExportedIdentifier(n.leftName)) { - let o = n.leftName, - r = n.rightName, - s = this.importProcessor.getIdentifierReplacement(o); - t.push(`exports.${r} = ${s || o};`); + if (!s.isType && !this.shouldElideExportedIdentifier(s.leftName)) { + let i = s.leftName, + r = s.rightName, + a = this.importProcessor.getIdentifierReplacement(i); + t.push(`exports.${r} = ${a || i};`); } - if (this.tokens.matches1(m.TokenType.braceR)) { + if (this.tokens.matches1(N.TokenType.braceR)) { this.tokens.removeToken(); break; } - if (this.tokens.matches2(m.TokenType.comma, m.TokenType.braceR)) { + if (this.tokens.matches2(N.TokenType.comma, N.TokenType.braceR)) { this.tokens.removeToken(), this.tokens.removeToken(); break; - } else if (this.tokens.matches1(m.TokenType.comma)) + } else if (this.tokens.matches1(N.TokenType.comma)) this.tokens.removeToken(); else throw new Error( @@ -22997,20 +23005,20 @@ module.exports = exports.default; )}` ); } - if (this.tokens.matchesContextual(Gn.ContextualKeyword._from)) { + if (this.tokens.matchesContextual(Ls.ContextualKeyword._from)) { this.tokens.removeToken(); - let n = this.tokens.stringValue(); + let s = this.tokens.stringValue(); this.tokens.replaceTokenTrimmingLeftWhitespace( - this.importProcessor.claimImportCode(n) + this.importProcessor.claimImportCode(s) ), - xs.removeMaybeImportAssertion.call(void 0, this.tokens); + Oo.removeMaybeImportAssertion.call(void 0, this.tokens); } else this.tokens.appendCode(t.join(' ')); - this.tokens.matches1(m.TokenType.semi) && this.tokens.removeToken(); + this.tokens.matches1(N.TokenType.semi) && this.tokens.removeToken(); } processExportStar() { for ( this.tokens.removeInitialToken(); - !this.tokens.matches1(m.TokenType.string); + !this.tokens.matches1(N.TokenType.string); ) this.tokens.removeToken(); @@ -23018,8 +23026,8 @@ module.exports = exports.default; this.tokens.replaceTokenTrimmingLeftWhitespace( this.importProcessor.claimImportCode(t) ), - xs.removeMaybeImportAssertion.call(void 0, this.tokens), - this.tokens.matches1(m.TokenType.semi) && this.tokens.removeToken(); + Oo.removeMaybeImportAssertion.call(void 0, this.tokens), + this.tokens.matches1(N.TokenType.semi) && this.tokens.removeToken(); } shouldElideExportedIdentifier(t) { return ( @@ -23028,123 +23036,123 @@ module.exports = exports.default; ); } }; - _1.default = v1; + ac.default = oc; }); - var qp = H((g1) => { + var Fh = Z((cc) => { 'use strict'; - Object.defineProperty(g1, '__esModule', {value: !0}); - function ir(e) { + Object.defineProperty(cc, '__esModule', {value: !0}); + function pr(e) { return e && e.__esModule ? e : {default: e}; } - var yn = Ge(), - W = ce(), - l0 = f1(), - c0 = ir(l0), - Kp = h1(), - u0 = ir(Kp), - p0 = Ko(), - Bp = ir(p0), - d0 = Gi(), - jp = y1(), - f0 = k1(), - h0 = ir(f0), - T0 = Nt(), - y0 = ir(T0), - x1 = class extends y0.default { - constructor(t, n, o, r, s, i) { + var Jn = It(), + se = be(), + ex = ec(), + tx = pr(ex), + Mh = tc(), + nx = pr(Mh), + sx = Wi(), + Oh = pr(sx), + ix = Fa(), + Dh = sc(), + rx = rc(), + ox = pr(rx), + ax = hn(), + lx = pr(ax), + lc = class extends lx.default { + constructor(t, s, i, r, a, p) { super(), (this.tokens = t), - (this.nameManager = n), - (this.helperManager = o), + (this.nameManager = s), + (this.helperManager = i), (this.reactHotLoaderTransformer = r), - (this.isTypeScriptTransformEnabled = s), - (this.nonTypeIdentifiers = s - ? d0.getNonTypeIdentifiers.call(void 0, t, i) + (this.isTypeScriptTransformEnabled = a), + (this.nonTypeIdentifiers = a + ? ix.getNonTypeIdentifiers.call(void 0, t, p) : new Set()), - (this.declarationInfo = s - ? u0.default.call(void 0, t) - : Kp.EMPTY_DECLARATION_INFO), + (this.declarationInfo = a + ? nx.default.call(void 0, t) + : Mh.EMPTY_DECLARATION_INFO), (this.injectCreateRequireForImportRequire = - !!i.injectCreateRequireForImportRequire); + !!p.injectCreateRequireForImportRequire); } process() { if ( this.tokens.matches3( - W.TokenType._import, - W.TokenType.name, - W.TokenType.eq + se.TokenType._import, + se.TokenType.name, + se.TokenType.eq ) ) return this.processImportEquals(); if ( this.tokens.matches4( - W.TokenType._import, - W.TokenType.name, - W.TokenType.name, - W.TokenType.eq + se.TokenType._import, + se.TokenType.name, + se.TokenType.name, + se.TokenType.eq ) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 1, - yn.ContextualKeyword._type + Jn.ContextualKeyword._type ) ) { this.tokens.removeInitialToken(); for (let t = 0; t < 7; t++) this.tokens.removeToken(); return !0; } - if (this.tokens.matches2(W.TokenType._export, W.TokenType.eq)) + if (this.tokens.matches2(se.TokenType._export, se.TokenType.eq)) return this.tokens.replaceToken('module.exports'), !0; if ( this.tokens.matches5( - W.TokenType._export, - W.TokenType._import, - W.TokenType.name, - W.TokenType.name, - W.TokenType.eq + se.TokenType._export, + se.TokenType._import, + se.TokenType.name, + se.TokenType.name, + se.TokenType.eq ) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 2, - yn.ContextualKeyword._type + Jn.ContextualKeyword._type ) ) { this.tokens.removeInitialToken(); for (let t = 0; t < 8; t++) this.tokens.removeToken(); return !0; } - if (this.tokens.matches1(W.TokenType._import)) + if (this.tokens.matches1(se.TokenType._import)) return this.processImport(); - if (this.tokens.matches2(W.TokenType._export, W.TokenType._default)) + if (this.tokens.matches2(se.TokenType._export, se.TokenType._default)) return this.processExportDefault(); - if (this.tokens.matches2(W.TokenType._export, W.TokenType.braceL)) + if (this.tokens.matches2(se.TokenType._export, se.TokenType.braceL)) return this.processNamedExports(); if ( - this.tokens.matches2(W.TokenType._export, W.TokenType.name) && + this.tokens.matches2(se.TokenType._export, se.TokenType.name) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 1, - yn.ContextualKeyword._type + Jn.ContextualKeyword._type ) ) { if ( (this.tokens.removeInitialToken(), this.tokens.removeToken(), - this.tokens.matches1(W.TokenType.braceL)) + this.tokens.matches1(se.TokenType.braceL)) ) { - for (; !this.tokens.matches1(W.TokenType.braceR); ) + for (; !this.tokens.matches1(se.TokenType.braceR); ) this.tokens.removeToken(); this.tokens.removeToken(); } else this.tokens.removeToken(), - this.tokens.matches1(W.TokenType._as) && + this.tokens.matches1(se.TokenType._as) && (this.tokens.removeToken(), this.tokens.removeToken()); return ( - this.tokens.matchesContextual(yn.ContextualKeyword._from) && + this.tokens.matchesContextual(Jn.ContextualKeyword._from) && this.tokens.matches1AtIndex( this.tokens.currentIndex() + 1, - W.TokenType.string + se.TokenType.string ) && (this.tokens.removeToken(), this.tokens.removeToken(), - jp.removeMaybeImportAssertion.call(void 0, this.tokens)), + Dh.removeMaybeImportAssertion.call(void 0, this.tokens)), !0 ); } @@ -23156,7 +23164,7 @@ module.exports = exports.default; ); return ( this.isTypeName(t) - ? c0.default.call(void 0, this.tokens) + ? tx.default.call(void 0, this.tokens) : this.injectCreateRequireForImportRequire ? (this.tokens.replaceToken('const'), this.tokens.copyToken(), @@ -23169,88 +23177,88 @@ module.exports = exports.default; ); } processImport() { - if (this.tokens.matches2(W.TokenType._import, W.TokenType.parenL)) + if (this.tokens.matches2(se.TokenType._import, se.TokenType.parenL)) return !1; let t = this.tokens.snapshot(); if (this.removeImportTypeBindings()) { for ( this.tokens.restoreToSnapshot(t); - !this.tokens.matches1(W.TokenType.string); + !this.tokens.matches1(se.TokenType.string); ) this.tokens.removeToken(); this.tokens.removeToken(), - jp.removeMaybeImportAssertion.call(void 0, this.tokens), - this.tokens.matches1(W.TokenType.semi) && + Dh.removeMaybeImportAssertion.call(void 0, this.tokens), + this.tokens.matches1(se.TokenType.semi) && this.tokens.removeToken(); } return !0; } removeImportTypeBindings() { if ( - (this.tokens.copyExpectedToken(W.TokenType._import), - this.tokens.matchesContextual(yn.ContextualKeyword._type) && + (this.tokens.copyExpectedToken(se.TokenType._import), + this.tokens.matchesContextual(Jn.ContextualKeyword._type) && !this.tokens.matches1AtIndex( this.tokens.currentIndex() + 1, - W.TokenType.comma + se.TokenType.comma ) && !this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 1, - yn.ContextualKeyword._from + Jn.ContextualKeyword._from )) ) return !0; - if (this.tokens.matches1(W.TokenType.string)) + if (this.tokens.matches1(se.TokenType.string)) return this.tokens.copyToken(), !1; - this.tokens.matchesContextual(yn.ContextualKeyword._module) && + this.tokens.matchesContextual(Jn.ContextualKeyword._module) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 2, - yn.ContextualKeyword._from + Jn.ContextualKeyword._from ) && this.tokens.copyToken(); let t = !1, - n = !1; + s = !1; if ( - (this.tokens.matches1(W.TokenType.name) && + (this.tokens.matches1(se.TokenType.name) && (this.isTypeName(this.tokens.identifierName()) ? (this.tokens.removeToken(), - this.tokens.matches1(W.TokenType.comma) && + this.tokens.matches1(se.TokenType.comma) && this.tokens.removeToken()) : ((t = !0), this.tokens.copyToken(), - this.tokens.matches1(W.TokenType.comma) && - ((n = !0), this.tokens.removeToken()))), - this.tokens.matches1(W.TokenType.star)) + this.tokens.matches1(se.TokenType.comma) && + ((s = !0), this.tokens.removeToken()))), + this.tokens.matches1(se.TokenType.star)) ) this.isTypeName(this.tokens.identifierNameAtRelativeIndex(2)) ? (this.tokens.removeToken(), this.tokens.removeToken(), this.tokens.removeToken()) - : (n && this.tokens.appendCode(','), + : (s && this.tokens.appendCode(','), (t = !0), - this.tokens.copyExpectedToken(W.TokenType.star), - this.tokens.copyExpectedToken(W.TokenType.name), - this.tokens.copyExpectedToken(W.TokenType.name)); - else if (this.tokens.matches1(W.TokenType.braceL)) { + this.tokens.copyExpectedToken(se.TokenType.star), + this.tokens.copyExpectedToken(se.TokenType.name), + this.tokens.copyExpectedToken(se.TokenType.name)); + else if (this.tokens.matches1(se.TokenType.braceL)) { for ( - n && this.tokens.appendCode(','), this.tokens.copyToken(); - !this.tokens.matches1(W.TokenType.braceR); + s && this.tokens.appendCode(','), this.tokens.copyToken(); + !this.tokens.matches1(se.TokenType.braceR); ) { - let o = Bp.default.call(void 0, this.tokens); - if (o.isType || this.isTypeName(o.rightName)) { - for (; this.tokens.currentIndex() < o.endIndex; ) + let i = Oh.default.call(void 0, this.tokens); + if (i.isType || this.isTypeName(i.rightName)) { + for (; this.tokens.currentIndex() < i.endIndex; ) this.tokens.removeToken(); - this.tokens.matches1(W.TokenType.comma) && + this.tokens.matches1(se.TokenType.comma) && this.tokens.removeToken(); } else { - for (t = !0; this.tokens.currentIndex() < o.endIndex; ) + for (t = !0; this.tokens.currentIndex() < i.endIndex; ) this.tokens.copyToken(); - this.tokens.matches1(W.TokenType.comma) && + this.tokens.matches1(se.TokenType.comma) && this.tokens.copyToken(); } } - this.tokens.copyExpectedToken(W.TokenType.braceR); + this.tokens.copyExpectedToken(se.TokenType.braceR); } return !t; } @@ -23261,7 +23269,7 @@ module.exports = exports.default; } processExportDefault() { if ( - h0.default.call( + ox.default.call( void 0, this.isTypeScriptTransformEnabled, this.tokens, @@ -23277,44 +23285,44 @@ module.exports = exports.default; if ( !( this.tokens.matches4( - W.TokenType._export, - W.TokenType._default, - W.TokenType._function, - W.TokenType.name + se.TokenType._export, + se.TokenType._default, + se.TokenType._function, + se.TokenType.name ) || (this.tokens.matches5( - W.TokenType._export, - W.TokenType._default, - W.TokenType.name, - W.TokenType._function, - W.TokenType.name + se.TokenType._export, + se.TokenType._default, + se.TokenType.name, + se.TokenType._function, + se.TokenType.name ) && this.tokens.matchesContextualAtIndex( this.tokens.currentIndex() + 2, - yn.ContextualKeyword._async + Jn.ContextualKeyword._async )) || this.tokens.matches4( - W.TokenType._export, - W.TokenType._default, - W.TokenType._class, - W.TokenType.name + se.TokenType._export, + se.TokenType._default, + se.TokenType._class, + se.TokenType.name ) || this.tokens.matches5( - W.TokenType._export, - W.TokenType._default, - W.TokenType._abstract, - W.TokenType._class, - W.TokenType.name + se.TokenType._export, + se.TokenType._default, + se.TokenType._abstract, + se.TokenType._class, + se.TokenType.name ) ) && this.reactHotLoaderTransformer ) { - let n = this.nameManager.claimFreeName('_default'); + let s = this.nameManager.claimFreeName('_default'); return ( - this.tokens.replaceToken(`let ${n}; export`), + this.tokens.replaceToken(`let ${s}; export`), this.tokens.copyToken(), - this.tokens.appendCode(` ${n} =`), - this.reactHotLoaderTransformer.setExtractedDefaultExportName(n), + this.tokens.appendCode(` ${s} =`), + this.reactHotLoaderTransformer.setExtractedDefaultExportName(s), !0 ); } @@ -23323,25 +23331,25 @@ module.exports = exports.default; processNamedExports() { if (!this.isTypeScriptTransformEnabled) return !1; for ( - this.tokens.copyExpectedToken(W.TokenType._export), - this.tokens.copyExpectedToken(W.TokenType.braceL); - !this.tokens.matches1(W.TokenType.braceR); + this.tokens.copyExpectedToken(se.TokenType._export), + this.tokens.copyExpectedToken(se.TokenType.braceL); + !this.tokens.matches1(se.TokenType.braceR); ) { - let t = Bp.default.call(void 0, this.tokens); + let t = Oh.default.call(void 0, this.tokens); if (t.isType || this.shouldElideExportedName(t.leftName)) { for (; this.tokens.currentIndex() < t.endIndex; ) this.tokens.removeToken(); - this.tokens.matches1(W.TokenType.comma) && + this.tokens.matches1(se.TokenType.comma) && this.tokens.removeToken(); } else { for (; this.tokens.currentIndex() < t.endIndex; ) this.tokens.copyToken(); - this.tokens.matches1(W.TokenType.comma) && + this.tokens.matches1(se.TokenType.comma) && this.tokens.copyToken(); } } - return this.tokens.copyExpectedToken(W.TokenType.braceR), !0; + return this.tokens.copyExpectedToken(se.TokenType.braceR), !0; } shouldElideExportedName(t) { return ( @@ -23351,38 +23359,38 @@ module.exports = exports.default; ); } }; - g1.default = x1; + cc.default = lc; }); - var Up = H((w1) => { + var Vh = Z((pc) => { 'use strict'; - Object.defineProperty(w1, '__esModule', {value: !0}); - function m0(e) { + Object.defineProperty(pc, '__esModule', {value: !0}); + function cx(e) { return e && e.__esModule ? e : {default: e}; } - var Hp = Ge(), - bt = ce(), - k0 = Nt(), - v0 = m0(k0), - C1 = class extends v0.default { - constructor(t, n, o) { + var Bh = It(), + sn = be(), + ux = hn(), + px = cx(ux), + uc = class extends px.default { + constructor(t, s, i) { super(), (this.rootTransformer = t), - (this.tokens = n), - (this.isImportsTransformEnabled = o); + (this.tokens = s), + (this.isImportsTransformEnabled = i); } process() { return this.rootTransformer.processPossibleArrowParamEnd() || this.rootTransformer.processPossibleAsyncArrowWithTypeParams() || this.rootTransformer.processPossibleTypeRange() ? !0 - : this.tokens.matches1(bt.TokenType._enum) + : this.tokens.matches1(sn.TokenType._enum) ? (this.processEnum(), !0) - : this.tokens.matches2(bt.TokenType._export, bt.TokenType._enum) + : this.tokens.matches2(sn.TokenType._export, sn.TokenType._enum) ? (this.processNamedExportEnum(), !0) : this.tokens.matches3( - bt.TokenType._export, - bt.TokenType._default, - bt.TokenType._enum + sn.TokenType._export, + sn.TokenType._default, + sn.TokenType._enum ) ? (this.processDefaultExportEnum(), !0) : !1; @@ -23404,102 +23412,102 @@ module.exports = exports.default; } processEnum() { this.tokens.replaceToken('const'), - this.tokens.copyExpectedToken(bt.TokenType.name); + this.tokens.copyExpectedToken(sn.TokenType.name); let t = !1; - this.tokens.matchesContextual(Hp.ContextualKeyword._of) && + this.tokens.matchesContextual(Bh.ContextualKeyword._of) && (this.tokens.removeToken(), - (t = this.tokens.matchesContextual(Hp.ContextualKeyword._symbol)), + (t = this.tokens.matchesContextual(Bh.ContextualKeyword._symbol)), this.tokens.removeToken()); - let n = this.tokens.matches3( - bt.TokenType.braceL, - bt.TokenType.name, - bt.TokenType.eq + let s = this.tokens.matches3( + sn.TokenType.braceL, + sn.TokenType.name, + sn.TokenType.eq ); this.tokens.appendCode(' = require("flow-enums-runtime")'); - let o = !t && !n; + let i = !t && !s; for ( this.tokens.replaceTokenTrimmingLeftWhitespace( - o ? '.Mirrored([' : '({' + i ? '.Mirrored([' : '({' ); - !this.tokens.matches1(bt.TokenType.braceR); + !this.tokens.matches1(sn.TokenType.braceR); ) { - if (this.tokens.matches1(bt.TokenType.ellipsis)) { + if (this.tokens.matches1(sn.TokenType.ellipsis)) { this.tokens.removeToken(); break; } - this.processEnumElement(t, n), - this.tokens.matches1(bt.TokenType.comma) && + this.processEnumElement(t, s), + this.tokens.matches1(sn.TokenType.comma) && this.tokens.copyToken(); } - this.tokens.replaceToken(o ? ']);' : '});'); + this.tokens.replaceToken(i ? ']);' : '});'); } - processEnumElement(t, n) { + processEnumElement(t, s) { if (t) { - let o = this.tokens.identifierName(); - this.tokens.copyToken(), this.tokens.appendCode(`: Symbol("${o}")`); + let i = this.tokens.identifierName(); + this.tokens.copyToken(), this.tokens.appendCode(`: Symbol("${i}")`); } else - n + s ? (this.tokens.copyToken(), this.tokens.replaceTokenTrimmingLeftWhitespace(':'), this.tokens.copyToken()) : this.tokens.replaceToken(`"${this.tokens.identifierName()}"`); } }; - w1.default = C1; + pc.default = uc; }); - var Wp = H((S1) => { + var jh = Z((fc) => { 'use strict'; - Object.defineProperty(S1, '__esModule', {value: !0}); - function _0(e) { + Object.defineProperty(fc, '__esModule', {value: !0}); + function hx(e) { return e && e.__esModule ? e : {default: e}; } - function x0(e) { + function fx(e) { let t, - n = e[0], - o = 1; - for (; o < e.length; ) { - let r = e[o], - s = e[o + 1]; + s = e[0], + i = 1; + for (; i < e.length; ) { + let r = e[i], + a = e[i + 1]; if ( - ((o += 2), - (r === 'optionalAccess' || r === 'optionalCall') && n == null) + ((i += 2), + (r === 'optionalAccess' || r === 'optionalCall') && s == null) ) return; r === 'access' || r === 'optionalAccess' - ? ((t = n), (n = s(n))) + ? ((t = s), (s = a(s))) : (r === 'call' || r === 'optionalCall') && - ((n = s((...i) => n.call(t, ...i))), (t = void 0)); + ((s = a((...p) => s.call(t, ...p))), (t = void 0)); } - return n; + return s; } - var mn = ce(), - g0 = Nt(), - C0 = _0(g0), - gs = 'jest', - w0 = ['mock', 'unmock', 'enableAutomock', 'disableAutomock'], - I1 = class e extends C0.default { + var Qn = be(), + dx = hn(), + mx = hx(dx), + Do = 'jest', + Tx = ['mock', 'unmock', 'enableAutomock', 'disableAutomock'], + hc = class e extends mx.default { __init() { this.hoistedFunctionNames = []; } - constructor(t, n, o, r) { + constructor(t, s, i, r) { super(), (this.rootTransformer = t), - (this.tokens = n), - (this.nameManager = o), + (this.tokens = s), + (this.nameManager = i), (this.importProcessor = r), e.prototype.__init.call(this); } process() { return this.tokens.currentToken().scopeDepth === 0 && this.tokens.matches4( - mn.TokenType.name, - mn.TokenType.dot, - mn.TokenType.name, - mn.TokenType.parenL + Qn.TokenType.name, + Qn.TokenType.dot, + Qn.TokenType.name, + Qn.TokenType.parenL ) && - this.tokens.identifierName() === gs - ? x0([ + this.tokens.identifierName() === Do + ? fx([ this, 'access', (t) => t.importProcessor, @@ -23510,7 +23518,7 @@ module.exports = exports.default; 'optionalAccess', (t) => t.has, 'call', - (t) => t(gs), + (t) => t(Do), ]) ? !1 : this.extractHoistedCalls() @@ -23527,53 +23535,53 @@ module.exports = exports.default; for ( ; this.tokens.matches3( - mn.TokenType.dot, - mn.TokenType.name, - mn.TokenType.parenL + Qn.TokenType.dot, + Qn.TokenType.name, + Qn.TokenType.parenL ); ) { - let n = this.tokens.identifierNameAtIndex( + let s = this.tokens.identifierNameAtIndex( this.tokens.currentIndex() + 1 ); - if (w0.includes(n)) { + if (Tx.includes(s)) { let r = this.nameManager.claimFreeName('__jestHoist'); this.hoistedFunctionNames.push(r), - this.tokens.replaceToken(`function ${r}(){${gs}.`), + this.tokens.replaceToken(`function ${r}(){${Do}.`), this.tokens.copyToken(), this.tokens.copyToken(), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(mn.TokenType.parenR), + this.tokens.copyExpectedToken(Qn.TokenType.parenR), this.tokens.appendCode(';}'), (t = !1); } else - t ? this.tokens.copyToken() : this.tokens.replaceToken(`${gs}.`), + t ? this.tokens.copyToken() : this.tokens.replaceToken(`${Do}.`), this.tokens.copyToken(), this.tokens.copyToken(), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(mn.TokenType.parenR), + this.tokens.copyExpectedToken(Qn.TokenType.parenR), (t = !0); } return !0; } }; - S1.default = I1; + fc.default = hc; }); - var Vp = H((E1) => { + var $h = Z((mc) => { 'use strict'; - Object.defineProperty(E1, '__esModule', {value: !0}); - function I0(e) { + Object.defineProperty(mc, '__esModule', {value: !0}); + function yx(e) { return e && e.__esModule ? e : {default: e}; } - var S0 = ce(), - b0 = Nt(), - E0 = I0(b0), - b1 = class extends E0.default { + var kx = be(), + vx = hn(), + xx = yx(vx), + dc = class extends xx.default { constructor(t) { super(), (this.tokens = t); } process() { - if (this.tokens.matches1(S0.TokenType.num)) { + if (this.tokens.matches1(kx.TokenType.num)) { let t = this.tokens.currentTokenCode(); if (t.includes('_')) return this.tokens.replaceToken(t.replace(/_/g, '')), !0; @@ -23581,23 +23589,23 @@ module.exports = exports.default; return !1; } }; - E1.default = b1; + mc.default = dc; }); - var Xp = H((P1) => { + var Kh = Z((yc) => { 'use strict'; - Object.defineProperty(P1, '__esModule', {value: !0}); - function A0(e) { + Object.defineProperty(yc, '__esModule', {value: !0}); + function gx(e) { return e && e.__esModule ? e : {default: e}; } - var zp = ce(), - P0 = Nt(), - R0 = A0(P0), - A1 = class extends R0.default { - constructor(t, n) { - super(), (this.tokens = t), (this.nameManager = n); + var qh = be(), + _x = hn(), + bx = gx(_x), + Tc = class extends bx.default { + constructor(t, s) { + super(), (this.tokens = t), (this.nameManager = s); } process() { - return this.tokens.matches2(zp.TokenType._catch, zp.TokenType.braceL) + return this.tokens.matches2(qh.TokenType._catch, qh.TokenType.braceL) ? (this.tokens.copyToken(), this.tokens.appendCode( ` (${this.nameManager.claimFreeName('e')})` @@ -23606,26 +23614,26 @@ module.exports = exports.default; : !1; } }; - P1.default = A1; + yc.default = Tc; }); - var Yp = H((N1) => { + var Uh = Z((vc) => { 'use strict'; - Object.defineProperty(N1, '__esModule', {value: !0}); - function N0(e) { + Object.defineProperty(vc, '__esModule', {value: !0}); + function Cx(e) { return e && e.__esModule ? e : {default: e}; } - var lt = ce(), - D0 = Nt(), - O0 = N0(D0), - R1 = class extends O0.default { - constructor(t, n) { - super(), (this.tokens = t), (this.nameManager = n); + var jt = be(), + wx = hn(), + Sx = Cx(wx), + kc = class extends Sx.default { + constructor(t, s) { + super(), (this.tokens = t), (this.nameManager = s); } process() { - if (this.tokens.matches1(lt.TokenType.nullishCoalescing)) { - let o = this.tokens.currentToken(); + if (this.tokens.matches1(jt.TokenType.nullishCoalescing)) { + let i = this.tokens.currentToken(); return ( - this.tokens.tokens[o.nullishStartIndex].isAsyncOperation + this.tokens.tokens[i.nullishStartIndex].isAsyncOperation ? this.tokens.replaceTokenTrimmingLeftWhitespace( ', async () => (' ) @@ -23634,32 +23642,32 @@ module.exports = exports.default; ); } if ( - this.tokens.matches1(lt.TokenType._delete) && + this.tokens.matches1(jt.TokenType._delete) && this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart ) return this.tokens.removeInitialToken(), !0; - let n = this.tokens.currentToken().subscriptStartIndex; + let s = this.tokens.currentToken().subscriptStartIndex; if ( - n != null && - this.tokens.tokens[n].isOptionalChainStart && - this.tokens.tokenAtRelativeIndex(-1).type !== lt.TokenType._super + s != null && + this.tokens.tokens[s].isOptionalChainStart && + this.tokens.tokenAtRelativeIndex(-1).type !== jt.TokenType._super ) { - let o = this.nameManager.claimFreeName('_'), + let i = this.nameManager.claimFreeName('_'), r; if ( - (n > 0 && - this.tokens.matches1AtIndex(n - 1, lt.TokenType._delete) && + (s > 0 && + this.tokens.matches1AtIndex(s - 1, jt.TokenType._delete) && this.isLastSubscriptInChain() - ? (r = `${o} => delete ${o}`) - : (r = `${o} => ${o}`), - this.tokens.tokens[n].isAsyncOperation && (r = `async ${r}`), + ? (r = `${i} => delete ${i}`) + : (r = `${i} => ${i}`), + this.tokens.tokens[s].isAsyncOperation && (r = `async ${r}`), this.tokens.matches2( - lt.TokenType.questionDot, - lt.TokenType.parenL + jt.TokenType.questionDot, + jt.TokenType.parenL ) || this.tokens.matches2( - lt.TokenType.questionDot, - lt.TokenType.lessThan + jt.TokenType.questionDot, + jt.TokenType.lessThan )) ) this.justSkippedSuper() && this.tokens.appendCode('.bind(this)'), @@ -23668,26 +23676,26 @@ module.exports = exports.default; ); else if ( this.tokens.matches2( - lt.TokenType.questionDot, - lt.TokenType.bracketL + jt.TokenType.questionDot, + jt.TokenType.bracketL ) ) this.tokens.replaceTokenTrimmingLeftWhitespace( `, 'optionalAccess', ${r}` ); - else if (this.tokens.matches1(lt.TokenType.questionDot)) + else if (this.tokens.matches1(jt.TokenType.questionDot)) this.tokens.replaceTokenTrimmingLeftWhitespace( `, 'optionalAccess', ${r}.` ); - else if (this.tokens.matches1(lt.TokenType.dot)) + else if (this.tokens.matches1(jt.TokenType.dot)) this.tokens.replaceTokenTrimmingLeftWhitespace( `, 'access', ${r}.` ); - else if (this.tokens.matches1(lt.TokenType.bracketL)) + else if (this.tokens.matches1(jt.TokenType.bracketL)) this.tokens.replaceTokenTrimmingLeftWhitespace( `, 'access', ${r}[` ); - else if (this.tokens.matches1(lt.TokenType.parenL)) + else if (this.tokens.matches1(jt.TokenType.parenL)) this.justSkippedSuper() && this.tokens.appendCode('.bind(this)'), this.tokens.replaceTokenTrimmingLeftWhitespace( `, 'call', ${r}(` @@ -23702,72 +23710,72 @@ module.exports = exports.default; } isLastSubscriptInChain() { let t = 0; - for (let n = this.tokens.currentIndex() + 1; ; n++) { - if (n >= this.tokens.tokens.length) + for (let s = this.tokens.currentIndex() + 1; ; s++) { + if (s >= this.tokens.tokens.length) throw new Error( 'Reached the end of the code while finding the end of the access chain.' ); if ( - (this.tokens.tokens[n].isOptionalChainStart + (this.tokens.tokens[s].isOptionalChainStart ? t++ - : this.tokens.tokens[n].isOptionalChainEnd && t--, + : this.tokens.tokens[s].isOptionalChainEnd && t--, t < 0) ) return !0; - if (t === 0 && this.tokens.tokens[n].subscriptStartIndex != null) + if (t === 0 && this.tokens.tokens[s].subscriptStartIndex != null) return !1; } } justSkippedSuper() { let t = 0, - n = this.tokens.currentIndex() - 1; + s = this.tokens.currentIndex() - 1; for (;;) { - if (n < 0) + if (s < 0) throw new Error( 'Reached the start of the code while finding the start of the access chain.' ); if ( - (this.tokens.tokens[n].isOptionalChainStart + (this.tokens.tokens[s].isOptionalChainStart ? t-- - : this.tokens.tokens[n].isOptionalChainEnd && t++, + : this.tokens.tokens[s].isOptionalChainEnd && t++, t < 0) ) return !1; - if (t === 0 && this.tokens.tokens[n].subscriptStartIndex != null) - return this.tokens.tokens[n - 1].type === lt.TokenType._super; - n--; + if (t === 0 && this.tokens.tokens[s].subscriptStartIndex != null) + return this.tokens.tokens[s - 1].type === jt.TokenType._super; + s--; } } }; - N1.default = R1; + vc.default = kc; }); - var Jp = H((O1) => { + var Wh = Z((gc) => { 'use strict'; - Object.defineProperty(O1, '__esModule', {value: !0}); - function M0(e) { + Object.defineProperty(gc, '__esModule', {value: !0}); + function Ix(e) { return e && e.__esModule ? e : {default: e}; } - var Gp = Ve(), - Je = ce(), - L0 = Nt(), - F0 = M0(L0), - D1 = class extends F0.default { - constructor(t, n, o, r) { + var Hh = xt(), + Et = be(), + Ex = hn(), + Ax = Ix(Ex), + xc = class extends Ax.default { + constructor(t, s, i, r) { super(), (this.rootTransformer = t), - (this.tokens = n), - (this.importProcessor = o), + (this.tokens = s), + (this.importProcessor = i), (this.options = r); } process() { let t = this.tokens.currentIndex(); if (this.tokens.identifierName() === 'createReactClass') { - let n = + let s = this.importProcessor && this.importProcessor.getIdentifierReplacement('createReactClass'); return ( - n - ? this.tokens.replaceToken(`(0, ${n})`) + s + ? this.tokens.replaceToken(`(0, ${s})`) : this.tokens.copyToken(), this.tryProcessCreateClassCall(t), !0 @@ -23775,22 +23783,22 @@ module.exports = exports.default; } if ( this.tokens.matches3( - Je.TokenType.name, - Je.TokenType.dot, - Je.TokenType.name + Et.TokenType.name, + Et.TokenType.dot, + Et.TokenType.name ) && this.tokens.identifierName() === 'React' && this.tokens.identifierNameAtIndex( this.tokens.currentIndex() + 2 ) === 'createClass' ) { - let n = + let s = (this.importProcessor && this.importProcessor.getIdentifierReplacement('React')) || 'React'; return ( - n - ? (this.tokens.replaceToken(n), + s + ? (this.tokens.replaceToken(s), this.tokens.copyToken(), this.tokens.copyToken()) : (this.tokens.copyToken(), @@ -23803,65 +23811,65 @@ module.exports = exports.default; return !1; } tryProcessCreateClassCall(t) { - let n = this.findDisplayName(t); - n && + let s = this.findDisplayName(t); + s && this.classNeedsDisplayName() && - (this.tokens.copyExpectedToken(Je.TokenType.parenL), - this.tokens.copyExpectedToken(Je.TokenType.braceL), - this.tokens.appendCode(`displayName: '${n}',`), + (this.tokens.copyExpectedToken(Et.TokenType.parenL), + this.tokens.copyExpectedToken(Et.TokenType.braceL), + this.tokens.appendCode(`displayName: '${s}',`), this.rootTransformer.processBalancedCode(), - this.tokens.copyExpectedToken(Je.TokenType.braceR), - this.tokens.copyExpectedToken(Je.TokenType.parenR)); + this.tokens.copyExpectedToken(Et.TokenType.braceR), + this.tokens.copyExpectedToken(Et.TokenType.parenR)); } findDisplayName(t) { return t < 2 ? null : this.tokens.matches2AtIndex( t - 2, - Je.TokenType.name, - Je.TokenType.eq + Et.TokenType.name, + Et.TokenType.eq ) ? this.tokens.identifierNameAtIndex(t - 2) : t >= 2 && this.tokens.tokens[t - 2].identifierRole === - Gp.IdentifierRole.ObjectKey + Hh.IdentifierRole.ObjectKey ? this.tokens.identifierNameAtIndex(t - 2) : this.tokens.matches2AtIndex( t - 2, - Je.TokenType._export, - Je.TokenType._default + Et.TokenType._export, + Et.TokenType._default ) ? this.getDisplayNameFromFilename() : null; } getDisplayNameFromFilename() { - let n = (this.options.filePath || 'unknown').split('/'), - o = n[n.length - 1], - r = o.lastIndexOf('.'), - s = r === -1 ? o : o.slice(0, r); - return s === 'index' && n[n.length - 2] ? n[n.length - 2] : s; + let s = (this.options.filePath || 'unknown').split('/'), + i = s[s.length - 1], + r = i.lastIndexOf('.'), + a = r === -1 ? i : i.slice(0, r); + return a === 'index' && s[s.length - 2] ? s[s.length - 2] : a; } classNeedsDisplayName() { let t = this.tokens.currentIndex(); - if (!this.tokens.matches2(Je.TokenType.parenL, Je.TokenType.braceL)) + if (!this.tokens.matches2(Et.TokenType.parenL, Et.TokenType.braceL)) return !1; - let n = t + 1, - o = this.tokens.tokens[n].contextId; - if (o == null) + let s = t + 1, + i = this.tokens.tokens[s].contextId; + if (i == null) throw new Error( 'Expected non-null context ID on object open-brace.' ); for (; t < this.tokens.tokens.length; t++) { let r = this.tokens.tokens[t]; - if (r.type === Je.TokenType.braceR && r.contextId === o) { + if (r.type === Et.TokenType.braceR && r.contextId === i) { t++; break; } if ( this.tokens.identifierNameAtIndex(t) === 'displayName' && this.tokens.tokens[t].identifierRole === - Gp.IdentifierRole.ObjectKey && - r.contextId === o + Hh.IdentifierRole.ObjectKey && + r.contextId === i ) return !1; } @@ -23870,34 +23878,34 @@ module.exports = exports.default; 'Unexpected end of input when processing React class.' ); return ( - this.tokens.matches1AtIndex(t, Je.TokenType.parenR) || + this.tokens.matches1AtIndex(t, Et.TokenType.parenR) || this.tokens.matches2AtIndex( t, - Je.TokenType.comma, - Je.TokenType.parenR + Et.TokenType.comma, + Et.TokenType.parenR ) ); } }; - O1.default = D1; + gc.default = xc; }); - var Zp = H((L1) => { + var zh = Z((bc) => { 'use strict'; - Object.defineProperty(L1, '__esModule', {value: !0}); - function $0(e) { + Object.defineProperty(bc, '__esModule', {value: !0}); + function Px(e) { return e && e.__esModule ? e : {default: e}; } - var Qp = Ve(), - B0 = Nt(), - j0 = $0(B0), - M1 = class e extends j0.default { + var Gh = xt(), + Nx = hn(), + Rx = Px(Nx), + _c = class e extends Rx.default { __init() { this.extractedDefaultExportName = null; } - constructor(t, n) { + constructor(t, s) { super(), (this.tokens = t), - (this.filePath = n), + (this.filePath = s), e.prototype.__init.call(this); } setExtractedDefaultExportName(t) { @@ -23914,18 +23922,18 @@ module.exports = exports.default; } getSuffixCode() { let t = new Set(); - for (let o of this.tokens.tokens) - !o.isType && - Qp.isTopLevelDeclaration.call(void 0, o) && - o.identifierRole !== Qp.IdentifierRole.ImportDeclaration && - t.add(this.tokens.identifierNameForToken(o)); - let n = Array.from(t).map((o) => ({ - variableName: o, - uniqueLocalName: o, + for (let i of this.tokens.tokens) + !i.isType && + Gh.isTopLevelDeclaration.call(void 0, i) && + i.identifierRole !== Gh.IdentifierRole.ImportDeclaration && + t.add(this.tokens.identifierNameForToken(i)); + let s = Array.from(t).map((i) => ({ + variableName: i, + uniqueLocalName: i, })); return ( this.extractedDefaultExportName && - n.push({ + s.push({ variableName: this.extractedDefaultExportName, uniqueLocalName: 'default', }), @@ -23936,9 +23944,9 @@ module.exports = exports.default; if (!reactHotLoader) { return; } -${n.map( - ({variableName: o, uniqueLocalName: r}) => - ` reactHotLoader.register(${o}, "${r}", ${JSON.stringify( +${s.map( + ({variableName: i, uniqueLocalName: r}) => + ` reactHotLoader.register(${i}, "${r}", ${JSON.stringify( this.filePath || '' )});` ).join(` @@ -23951,13 +23959,13 @@ ${n.map( return !1; } }; - L1.default = M1; + bc.default = _c; }); - var td = H((F1) => { + var Yh = Z((Cc) => { 'use strict'; - Object.defineProperty(F1, '__esModule', {value: !0}); - var ed = fo(), - K0 = new Set([ + Object.defineProperty(Cc, '__esModule', {value: !0}); + var Xh = li(), + Lx = new Set([ 'break', 'case', 'catch', @@ -24005,53 +24013,53 @@ ${n.map( 'null', 'true', ]); - function q0(e) { - if (e.length === 0 || !ed.IS_IDENTIFIER_START[e.charCodeAt(0)]) return !1; + function Ox(e) { + if (e.length === 0 || !Xh.IS_IDENTIFIER_START[e.charCodeAt(0)]) return !1; for (let t = 1; t < e.length; t++) - if (!ed.IS_IDENTIFIER_CHAR[e.charCodeAt(t)]) return !1; - return !K0.has(e); + if (!Xh.IS_IDENTIFIER_CHAR[e.charCodeAt(t)]) return !1; + return !Lx.has(e); } - F1.default = q0; + Cc.default = Ox; }); - var rd = H((B1) => { + var Zh = Z((Sc) => { 'use strict'; - Object.defineProperty(B1, '__esModule', {value: !0}); - function od(e) { + Object.defineProperty(Sc, '__esModule', {value: !0}); + function Qh(e) { return e && e.__esModule ? e : {default: e}; } - var Se = ce(), - H0 = td(), - nd = od(H0), - U0 = Nt(), - W0 = od(U0), - $1 = class extends W0.default { - constructor(t, n, o) { + var $e = be(), + Dx = Yh(), + Jh = Qh(Dx), + Mx = hn(), + Fx = Qh(Mx), + wc = class extends Fx.default { + constructor(t, s, i) { super(), (this.rootTransformer = t), - (this.tokens = n), - (this.isImportsTransformEnabled = o); + (this.tokens = s), + (this.isImportsTransformEnabled = i); } process() { return this.rootTransformer.processPossibleArrowParamEnd() || this.rootTransformer.processPossibleAsyncArrowWithTypeParams() || this.rootTransformer.processPossibleTypeRange() ? !0 - : this.tokens.matches1(Se.TokenType._public) || - this.tokens.matches1(Se.TokenType._protected) || - this.tokens.matches1(Se.TokenType._private) || - this.tokens.matches1(Se.TokenType._abstract) || - this.tokens.matches1(Se.TokenType._readonly) || - this.tokens.matches1(Se.TokenType._override) || - this.tokens.matches1(Se.TokenType.nonNullAssertion) + : this.tokens.matches1($e.TokenType._public) || + this.tokens.matches1($e.TokenType._protected) || + this.tokens.matches1($e.TokenType._private) || + this.tokens.matches1($e.TokenType._abstract) || + this.tokens.matches1($e.TokenType._readonly) || + this.tokens.matches1($e.TokenType._override) || + this.tokens.matches1($e.TokenType.nonNullAssertion) ? (this.tokens.removeInitialToken(), !0) - : this.tokens.matches1(Se.TokenType._enum) || - this.tokens.matches2(Se.TokenType._const, Se.TokenType._enum) + : this.tokens.matches1($e.TokenType._enum) || + this.tokens.matches2($e.TokenType._const, $e.TokenType._enum) ? (this.processEnum(), !0) - : this.tokens.matches2(Se.TokenType._export, Se.TokenType._enum) || + : this.tokens.matches2($e.TokenType._export, $e.TokenType._enum) || this.tokens.matches3( - Se.TokenType._export, - Se.TokenType._const, - Se.TokenType._enum + $e.TokenType._export, + $e.TokenType._const, + $e.TokenType._enum ) ? (this.processEnum(!0), !0) : !1; @@ -24059,274 +24067,274 @@ ${n.map( processEnum(t = !1) { for ( this.tokens.removeInitialToken(); - this.tokens.matches1(Se.TokenType._const) || - this.tokens.matches1(Se.TokenType._enum); + this.tokens.matches1($e.TokenType._const) || + this.tokens.matches1($e.TokenType._enum); ) this.tokens.removeToken(); - let n = this.tokens.identifierName(); + let s = this.tokens.identifierName(); this.tokens.removeToken(), t && !this.isImportsTransformEnabled && this.tokens.appendCode('export '), - this.tokens.appendCode(`var ${n}; (function (${n})`), - this.tokens.copyExpectedToken(Se.TokenType.braceL), - this.processEnumBody(n), - this.tokens.copyExpectedToken(Se.TokenType.braceR), + this.tokens.appendCode(`var ${s}; (function (${s})`), + this.tokens.copyExpectedToken($e.TokenType.braceL), + this.processEnumBody(s), + this.tokens.copyExpectedToken($e.TokenType.braceR), t && this.isImportsTransformEnabled - ? this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`) - : this.tokens.appendCode(`)(${n} || (${n} = {}));`); + ? this.tokens.appendCode(`)(${s} || (exports.${s} = ${s} = {}));`) + : this.tokens.appendCode(`)(${s} || (${s} = {}));`); } processEnumBody(t) { - let n = null; - for (; !this.tokens.matches1(Se.TokenType.braceR); ) { - let {nameStringCode: o, variableName: r} = this.extractEnumKeyInfo( + let s = null; + for (; !this.tokens.matches1($e.TokenType.braceR); ) { + let {nameStringCode: i, variableName: r} = this.extractEnumKeyInfo( this.tokens.currentToken() ); this.tokens.removeInitialToken(), this.tokens.matches3( - Se.TokenType.eq, - Se.TokenType.string, - Se.TokenType.comma + $e.TokenType.eq, + $e.TokenType.string, + $e.TokenType.comma ) || this.tokens.matches3( - Se.TokenType.eq, - Se.TokenType.string, - Se.TokenType.braceR + $e.TokenType.eq, + $e.TokenType.string, + $e.TokenType.braceR ) - ? this.processStringLiteralEnumMember(t, o, r) - : this.tokens.matches1(Se.TokenType.eq) - ? this.processExplicitValueEnumMember(t, o, r) - : this.processImplicitValueEnumMember(t, o, r, n), - this.tokens.matches1(Se.TokenType.comma) && + ? this.processStringLiteralEnumMember(t, i, r) + : this.tokens.matches1($e.TokenType.eq) + ? this.processExplicitValueEnumMember(t, i, r) + : this.processImplicitValueEnumMember(t, i, r, s), + this.tokens.matches1($e.TokenType.comma) && this.tokens.removeToken(), - r != null ? (n = r) : (n = `${t}[${o}]`); + r != null ? (s = r) : (s = `${t}[${i}]`); } } extractEnumKeyInfo(t) { - if (t.type === Se.TokenType.name) { - let n = this.tokens.identifierNameForToken(t); + if (t.type === $e.TokenType.name) { + let s = this.tokens.identifierNameForToken(t); return { - nameStringCode: `"${n}"`, - variableName: nd.default.call(void 0, n) ? n : null, + nameStringCode: `"${s}"`, + variableName: Jh.default.call(void 0, s) ? s : null, }; - } else if (t.type === Se.TokenType.string) { - let n = this.tokens.stringValueForToken(t); + } else if (t.type === $e.TokenType.string) { + let s = this.tokens.stringValueForToken(t); return { nameStringCode: this.tokens.code.slice(t.start, t.end), - variableName: nd.default.call(void 0, n) ? n : null, + variableName: Jh.default.call(void 0, s) ? s : null, }; } else throw new Error( 'Expected name or string at beginning of enum element.' ); } - processStringLiteralEnumMember(t, n, o) { - o != null - ? (this.tokens.appendCode(`const ${o}`), + processStringLiteralEnumMember(t, s, i) { + i != null + ? (this.tokens.appendCode(`const ${i}`), this.tokens.copyToken(), this.tokens.copyToken(), - this.tokens.appendCode(`; ${t}[${n}] = ${o};`)) - : (this.tokens.appendCode(`${t}[${n}]`), + this.tokens.appendCode(`; ${t}[${s}] = ${i};`)) + : (this.tokens.appendCode(`${t}[${s}]`), this.tokens.copyToken(), this.tokens.copyToken(), this.tokens.appendCode(';')); } - processExplicitValueEnumMember(t, n, o) { + processExplicitValueEnumMember(t, s, i) { let r = this.tokens.currentToken().rhsEndIndex; if (r == null) throw new Error('Expected rhsEndIndex on enum assign.'); - if (o != null) { + if (i != null) { for ( - this.tokens.appendCode(`const ${o}`), this.tokens.copyToken(); + this.tokens.appendCode(`const ${i}`), this.tokens.copyToken(); this.tokens.currentIndex() < r; ) this.rootTransformer.processToken(); - this.tokens.appendCode(`; ${t}[${t}[${n}] = ${o}] = ${n};`); + this.tokens.appendCode(`; ${t}[${t}[${s}] = ${i}] = ${s};`); } else { for ( - this.tokens.appendCode(`${t}[${t}[${n}]`), + this.tokens.appendCode(`${t}[${t}[${s}]`), this.tokens.copyToken(); this.tokens.currentIndex() < r; ) this.rootTransformer.processToken(); - this.tokens.appendCode(`] = ${n};`); + this.tokens.appendCode(`] = ${s};`); } } - processImplicitValueEnumMember(t, n, o, r) { - let s = r != null ? `${r} + 1` : '0'; - o != null && (this.tokens.appendCode(`const ${o} = ${s}; `), (s = o)), - this.tokens.appendCode(`${t}[${t}[${n}] = ${s}] = ${n};`); + processImplicitValueEnumMember(t, s, i, r) { + let a = r != null ? `${r} + 1` : '0'; + i != null && (this.tokens.appendCode(`const ${i} = ${a}; `), (a = i)), + this.tokens.appendCode(`${t}[${t}[${s}] = ${a}] = ${s};`); } }; - B1.default = $1; + Sc.default = wc; }); - var sd = H((K1) => { + var ef = Z((Ec) => { 'use strict'; - Object.defineProperty(K1, '__esModule', {value: !0}); - function Lt(e) { + Object.defineProperty(Ec, '__esModule', {value: !0}); + function Tn(e) { return e && e.__esModule ? e : {default: e}; } - var V0 = Ge(), - je = ce(), - z0 = Dp(), - X0 = Lt(z0), - Y0 = $p(), - G0 = Lt(Y0), - J0 = qp(), - Q0 = Lt(J0), - Z0 = Up(), - e_ = Lt(Z0), - t_ = Wp(), - n_ = Lt(t_), - o_ = Xi(), - r_ = Lt(o_), - s_ = Vp(), - i_ = Lt(s_), - a_ = Xp(), - l_ = Lt(a_), - c_ = Yp(), - u_ = Lt(c_), - p_ = Jp(), - d_ = Lt(p_), - f_ = Zp(), - h_ = Lt(f_), - T_ = rd(), - y_ = Lt(T_), - j1 = class e { + var Bx = It(), + lt = be(), + Vx = Eh(), + jx = Tn(Vx), + $x = Lh(), + qx = Tn($x), + Kx = Fh(), + Ux = Tn(Kx), + Hx = Vh(), + Wx = Tn(Hx), + Gx = jh(), + zx = Tn(Gx), + Xx = Da(), + Yx = Tn(Xx), + Jx = $h(), + Qx = Tn(Jx), + Zx = Kh(), + eg = Tn(Zx), + tg = Uh(), + ng = Tn(tg), + sg = Wh(), + ig = Tn(sg), + rg = zh(), + og = Tn(rg), + ag = Zh(), + lg = Tn(ag), + Ic = class e { __init() { this.transformers = []; } __init2() { this.generatedVariables = []; } - constructor(t, n, o, r) { + constructor(t, s, i, r) { e.prototype.__init.call(this), e.prototype.__init2.call(this), (this.nameManager = t.nameManager), (this.helperManager = t.helperManager); - let {tokenProcessor: s, importProcessor: i} = t; - (this.tokens = s), - (this.isImportsTransformEnabled = n.includes('imports')), + let {tokenProcessor: a, importProcessor: p} = t; + (this.tokens = a), + (this.isImportsTransformEnabled = s.includes('imports')), (this.isReactHotLoaderTransformEnabled = - n.includes('react-hot-loader')), + s.includes('react-hot-loader')), (this.disableESTransforms = !!r.disableESTransforms), r.disableESTransforms || - (this.transformers.push(new u_.default(s, this.nameManager)), - this.transformers.push(new i_.default(s)), - this.transformers.push(new l_.default(s, this.nameManager))), - n.includes('jsx') && + (this.transformers.push(new ng.default(a, this.nameManager)), + this.transformers.push(new Qx.default(a)), + this.transformers.push(new eg.default(a, this.nameManager))), + s.includes('jsx') && (r.jsxRuntime !== 'preserve' && this.transformers.push( - new r_.default(this, s, i, this.nameManager, r) + new Yx.default(this, a, p, this.nameManager, r) ), - this.transformers.push(new d_.default(this, s, i, r))); - let a = null; - if (n.includes('react-hot-loader')) { + this.transformers.push(new ig.default(this, a, p, r))); + let d = null; + if (s.includes('react-hot-loader')) { if (!r.filePath) throw new Error( 'filePath is required when using the react-hot-loader transform.' ); - (a = new h_.default(s, r.filePath)), this.transformers.push(a); + (d = new og.default(a, r.filePath)), this.transformers.push(d); } - if (n.includes('imports')) { - if (i === null) + if (s.includes('imports')) { + if (p === null) throw new Error( 'Expected non-null importProcessor with imports transform enabled.' ); this.transformers.push( - new G0.default( + new qx.default( this, - s, - i, + a, + p, this.nameManager, this.helperManager, - a, - o, + d, + i, !!r.enableLegacyTypeScriptModuleInterop, - n.includes('typescript'), + s.includes('typescript'), !!r.preserveDynamicImport ) ); } else this.transformers.push( - new Q0.default( - s, + new Ux.default( + a, this.nameManager, this.helperManager, - a, - n.includes('typescript'), + d, + s.includes('typescript'), r ) ); - n.includes('flow') && + s.includes('flow') && this.transformers.push( - new e_.default(this, s, n.includes('imports')) + new Wx.default(this, a, s.includes('imports')) ), - n.includes('typescript') && + s.includes('typescript') && this.transformers.push( - new y_.default(this, s, n.includes('imports')) + new lg.default(this, a, s.includes('imports')) ), - n.includes('jest') && + s.includes('jest') && this.transformers.push( - new n_.default(this, s, this.nameManager, i) + new zx.default(this, a, this.nameManager, p) ); } transform() { this.tokens.reset(), this.processBalancedCode(); - let n = this.isImportsTransformEnabled ? '"use strict";' : ''; - for (let i of this.transformers) n += i.getPrefixCode(); - (n += this.helperManager.emitHelpers()), - (n += this.generatedVariables.map((i) => ` var ${i};`).join('')); - for (let i of this.transformers) n += i.getHoistedCode(); - let o = ''; - for (let i of this.transformers) o += i.getSuffixCode(); + let s = this.isImportsTransformEnabled ? '"use strict";' : ''; + for (let p of this.transformers) s += p.getPrefixCode(); + (s += this.helperManager.emitHelpers()), + (s += this.generatedVariables.map((p) => ` var ${p};`).join('')); + for (let p of this.transformers) s += p.getHoistedCode(); + let i = ''; + for (let p of this.transformers) i += p.getSuffixCode(); let r = this.tokens.finish(), - {code: s} = r; - if (s.startsWith('#!')) { - let i = s.indexOf(` + {code: a} = r; + if (a.startsWith('#!')) { + let p = a.indexOf(` `); return ( - i === -1 && - ((i = s.length), - (s += ` + p === -1 && + ((p = a.length), + (a += ` `)), { - code: s.slice(0, i + 1) + n + s.slice(i + 1) + o, - mappings: this.shiftMappings(r.mappings, n.length), + code: a.slice(0, p + 1) + s + a.slice(p + 1) + i, + mappings: this.shiftMappings(r.mappings, s.length), } ); } else return { - code: n + s + o, - mappings: this.shiftMappings(r.mappings, n.length), + code: s + a + i, + mappings: this.shiftMappings(r.mappings, s.length), }; } processBalancedCode() { let t = 0, - n = 0; + s = 0; for (; !this.tokens.isAtEnd(); ) { if ( - this.tokens.matches1(je.TokenType.braceL) || - this.tokens.matches1(je.TokenType.dollarBraceL) + this.tokens.matches1(lt.TokenType.braceL) || + this.tokens.matches1(lt.TokenType.dollarBraceL) ) t++; - else if (this.tokens.matches1(je.TokenType.braceR)) { + else if (this.tokens.matches1(lt.TokenType.braceR)) { if (t === 0) return; t--; } - if (this.tokens.matches1(je.TokenType.parenL)) n++; - else if (this.tokens.matches1(je.TokenType.parenR)) { - if (n === 0) return; - n--; + if (this.tokens.matches1(lt.TokenType.parenL)) s++; + else if (this.tokens.matches1(lt.TokenType.parenR)) { + if (s === 0) return; + s--; } this.processToken(); } } processToken() { - if (this.tokens.matches1(je.TokenType._class)) { + if (this.tokens.matches1(lt.TokenType._class)) { this.processClass(); return; } @@ -24334,7 +24342,7 @@ ${n.map( this.tokens.copyToken(); } processNamedClass() { - if (!this.tokens.matches2(je.TokenType._class, je.TokenType.name)) + if (!this.tokens.matches2(lt.TokenType._class, lt.TokenType.name)) throw new Error('Expected identifier for exported class name.'); let t = this.tokens.identifierNameAtIndex( this.tokens.currentIndex() + 1 @@ -24342,135 +24350,135 @@ ${n.map( return this.processClass(), t; } processClass() { - let t = X0.default.call( + let t = jx.default.call( void 0, this, this.tokens, this.nameManager, this.disableESTransforms ), - n = + s = (t.headerInfo.isExpression || !t.headerInfo.className) && t.staticInitializerNames.length + t.instanceInitializerNames.length > 0, - o = t.headerInfo.className; - n && - ((o = this.nameManager.claimFreeName('_class')), - this.generatedVariables.push(o), - this.tokens.appendCode(` (${o} =`)); - let s = this.tokens.currentToken().contextId; - if (s == null) + i = t.headerInfo.className; + s && + ((i = this.nameManager.claimFreeName('_class')), + this.generatedVariables.push(i), + this.tokens.appendCode(` (${i} =`)); + let a = this.tokens.currentToken().contextId; + if (a == null) throw new Error('Expected class to have a context ID.'); for ( - this.tokens.copyExpectedToken(je.TokenType._class); - !this.tokens.matchesContextIdAndLabel(je.TokenType.braceL, s); + this.tokens.copyExpectedToken(lt.TokenType._class); + !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceL, a); ) this.processToken(); - this.processClassBody(t, o); - let i = t.staticInitializerNames.map((a) => `${o}.${a}()`); - n + this.processClassBody(t, i); + let p = t.staticInitializerNames.map((d) => `${i}.${d}()`); + s ? this.tokens.appendCode( - `, ${i.map((a) => `${a}, `).join('')}${o})` + `, ${p.map((d) => `${d}, `).join('')}${i})` ) : t.staticInitializerNames.length > 0 && - this.tokens.appendCode(` ${i.map((a) => `${a};`).join(' ')}`); + this.tokens.appendCode(` ${p.map((d) => `${d};`).join(' ')}`); } - processClassBody(t, n) { + processClassBody(t, s) { let { - headerInfo: o, + headerInfo: i, constructorInsertPos: r, - constructorInitializerStatements: s, - fields: i, - instanceInitializerNames: a, - rangesToRemove: u, + constructorInitializerStatements: a, + fields: p, + instanceInitializerNames: d, + rangesToRemove: y, } = t, - h = 0, - v = 0, - _ = this.tokens.currentToken().contextId; - if (_ == null) + k = 0, + A = 0, + u = this.tokens.currentToken().contextId; + if (u == null) throw new Error('Expected non-null context ID on class.'); - this.tokens.copyExpectedToken(je.TokenType.braceL), + this.tokens.copyExpectedToken(lt.TokenType.braceL), this.isReactHotLoaderTransformEnabled && this.tokens.appendCode( '__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}' ); - let x = s.length + a.length > 0; - if (r === null && x) { - let L = this.makeConstructorInitCode(s, a, n); - if (o.hasSuperclass) { - let G = this.nameManager.claimFreeName('args'); + let f = a.length + d.length > 0; + if (r === null && f) { + let x = this.makeConstructorInitCode(a, d, s); + if (i.hasSuperclass) { + let g = this.nameManager.claimFreeName('args'); this.tokens.appendCode( - `constructor(...${G}) { super(...${G}); ${L}; }` + `constructor(...${g}) { super(...${g}); ${x}; }` ); - } else this.tokens.appendCode(`constructor() { ${L}; }`); + } else this.tokens.appendCode(`constructor() { ${x}; }`); } for ( ; - !this.tokens.matchesContextIdAndLabel(je.TokenType.braceR, _); + !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceR, u); ) - if (h < i.length && this.tokens.currentIndex() === i[h].start) { - let L = !1; + if (k < p.length && this.tokens.currentIndex() === p[k].start) { + let x = !1; for ( - this.tokens.matches1(je.TokenType.bracketL) + this.tokens.matches1(lt.TokenType.bracketL) ? this.tokens.copyTokenWithPrefix( - `${i[h].initializerName}() {this` + `${p[k].initializerName}() {this` ) - : this.tokens.matches1(je.TokenType.string) || - this.tokens.matches1(je.TokenType.num) + : this.tokens.matches1(lt.TokenType.string) || + this.tokens.matches1(lt.TokenType.num) ? (this.tokens.copyTokenWithPrefix( - `${i[h].initializerName}() {this[` + `${p[k].initializerName}() {this[` ), - (L = !0)) + (x = !0)) : this.tokens.copyTokenWithPrefix( - `${i[h].initializerName}() {this.` + `${p[k].initializerName}() {this.` ); - this.tokens.currentIndex() < i[h].end; + this.tokens.currentIndex() < p[k].end; ) - L && - this.tokens.currentIndex() === i[h].equalsIndex && + x && + this.tokens.currentIndex() === p[k].equalsIndex && this.tokens.appendCode(']'), this.processToken(); - this.tokens.appendCode('}'), h++; + this.tokens.appendCode('}'), k++; } else if ( - v < u.length && - this.tokens.currentIndex() >= u[v].start + A < y.length && + this.tokens.currentIndex() >= y[A].start ) { for ( - this.tokens.currentIndex() < u[v].end && + this.tokens.currentIndex() < y[A].end && this.tokens.removeInitialToken(); - this.tokens.currentIndex() < u[v].end; + this.tokens.currentIndex() < y[A].end; ) this.tokens.removeToken(); - v++; + A++; } else this.tokens.currentIndex() === r ? (this.tokens.copyToken(), - x && + f && this.tokens.appendCode( - `;${this.makeConstructorInitCode(s, a, n)};` + `;${this.makeConstructorInitCode(a, d, s)};` ), this.processToken()) : this.processToken(); - this.tokens.copyExpectedToken(je.TokenType.braceR); + this.tokens.copyExpectedToken(lt.TokenType.braceR); } - makeConstructorInitCode(t, n, o) { - return [...t, ...n.map((r) => `${o}.prototype.${r}.call(this)`)].join( + makeConstructorInitCode(t, s, i) { + return [...t, ...s.map((r) => `${i}.prototype.${r}.call(this)`)].join( ';' ); } processPossibleArrowParamEnd() { if ( - this.tokens.matches2(je.TokenType.parenR, je.TokenType.colon) && + this.tokens.matches2(lt.TokenType.parenR, lt.TokenType.colon) && this.tokens.tokenAtRelativeIndex(1).isType ) { let t = this.tokens.currentIndex() + 1; for (; this.tokens.tokens[t].isType; ) t++; - if (this.tokens.matches1AtIndex(t, je.TokenType.arrow)) { + if (this.tokens.matches1AtIndex(t, lt.TokenType.arrow)) { for ( this.tokens.removeInitialToken(); this.tokens.currentIndex() < t; @@ -24484,19 +24492,19 @@ ${n.map( } processPossibleAsyncArrowWithTypeParams() { if ( - !this.tokens.matchesContextual(V0.ContextualKeyword._async) && - !this.tokens.matches1(je.TokenType._async) + !this.tokens.matchesContextual(Bx.ContextualKeyword._async) && + !this.tokens.matches1(lt.TokenType._async) ) return !1; let t = this.tokens.tokenAtRelativeIndex(1); - if (t.type !== je.TokenType.lessThan || !t.isType) return !1; - let n = this.tokens.currentIndex() + 1; - for (; this.tokens.tokens[n].isType; ) n++; - if (this.tokens.matches1AtIndex(n, je.TokenType.parenL)) { + if (t.type !== lt.TokenType.lessThan || !t.isType) return !1; + let s = this.tokens.currentIndex() + 1; + for (; this.tokens.tokens[s].isType; ) s++; + if (this.tokens.matches1AtIndex(s, lt.TokenType.parenL)) { for ( this.tokens.replaceToken('async ('), this.tokens.removeInitialToken(); - this.tokens.currentIndex() < n; + this.tokens.currentIndex() < s; ) this.tokens.removeToken(); @@ -24521,473 +24529,7448 @@ ${n.map( } return !1; } - shiftMappings(t, n) { - for (let o = 0; o < t.length; o++) { - let r = t[o]; - r !== void 0 && (t[o] = r + n); + shiftMappings(t, s) { + for (let i = 0; i < t.length; i++) { + let r = t[i]; + r !== void 0 && (t[i] = r + s); } return t; } }; - K1.default = j1; + Ec.default = Ic; }); - var ld = H((ar) => { + var sf = Z((hr) => { 'use strict'; - ar.__esModule = !0; - ar.LinesAndColumns = void 0; - var Cs = ` + hr.__esModule = !0; + hr.LinesAndColumns = void 0; + var Mo = ` `, - id = '\r', - ad = (function () { + tf = '\r', + nf = (function () { function e(t) { this.string = t; - for (var n = [0], o = 0; o < t.length; ) - switch (t[o]) { - case Cs: - (o += Cs.length), n.push(o); + for (var s = [0], i = 0; i < t.length; ) + switch (t[i]) { + case Mo: + (i += Mo.length), s.push(i); break; - case id: - (o += id.length), t[o] === Cs && (o += Cs.length), n.push(o); + case tf: + (i += tf.length), t[i] === Mo && (i += Mo.length), s.push(i); break; default: - o++; + i++; break; } - this.offsets = n; + this.offsets = s; } return ( (e.prototype.locationForIndex = function (t) { if (t < 0 || t > this.string.length) return null; - for (var n = 0, o = this.offsets; o[n + 1] <= t; ) n++; - var r = t - o[n]; - return {line: n, column: r}; + for (var s = 0, i = this.offsets; i[s + 1] <= t; ) s++; + var r = t - i[s]; + return {line: s, column: r}; }), (e.prototype.indexForLocation = function (t) { - var n = t.line, - o = t.column; - return n < 0 || - n >= this.offsets.length || - o < 0 || - o > this.lengthOfLine(n) + var s = t.line, + i = t.column; + return s < 0 || + s >= this.offsets.length || + i < 0 || + i > this.lengthOfLine(s) ? null - : this.offsets[n] + o; + : this.offsets[s] + i; }), (e.prototype.lengthOfLine = function (t) { - var n = this.offsets[t], - o = + var s = this.offsets[t], + i = t === this.offsets.length - 1 ? this.string.length : this.offsets[t + 1]; - return o - n; + return i - s; }), e ); })(); - ar.LinesAndColumns = ad; - ar.default = ad; + hr.LinesAndColumns = nf; + hr.default = nf; }); - var cd = H((q1) => { + var rf = Z((Ac) => { 'use strict'; - Object.defineProperty(q1, '__esModule', {value: !0}); - function m_(e) { + Object.defineProperty(Ac, '__esModule', {value: !0}); + function cg(e) { return e && e.__esModule ? e : {default: e}; } - var k_ = ld(), - v_ = m_(k_), - __ = ce(); - function x_(e, t) { + var ug = sf(), + pg = cg(ug), + hg = be(); + function fg(e, t) { if (t.length === 0) return ''; - let n = Object.keys(t[0]).filter( - (x) => - x !== 'type' && - x !== 'value' && - x !== 'start' && - x !== 'end' && - x !== 'loc' + let s = Object.keys(t[0]).filter( + (f) => + f !== 'type' && + f !== 'value' && + f !== 'start' && + f !== 'end' && + f !== 'loc' ), - o = Object.keys(t[0].type).filter( - (x) => x !== 'label' && x !== 'keyword' + i = Object.keys(t[0].type).filter( + (f) => f !== 'label' && f !== 'keyword' ), - r = ['Location', 'Label', 'Raw', ...n, ...o], - s = new v_.default(e), - i = [r, ...t.map(u)], - a = r.map(() => 0); - for (let x of i) - for (let L = 0; L < x.length; L++) a[L] = Math.max(a[L], x[L].length); - return i.map((x) => x.map((L, G) => L.padEnd(a[G])).join(' ')).join(` + r = ['Location', 'Label', 'Raw', ...s, ...i], + a = new pg.default(e), + p = [r, ...t.map(y)], + d = r.map(() => 0); + for (let f of p) + for (let x = 0; x < f.length; x++) d[x] = Math.max(d[x], f[x].length); + return p.map((f) => f.map((x, g) => x.padEnd(d[g])).join(' ')).join(` `); - function u(x) { - let L = e.slice(x.start, x.end); + function y(f) { + let x = e.slice(f.start, f.end); return [ - v(x.start, x.end), - __.formatTokenType.call(void 0, x.type), - g_(String(L), 14), - ...n.map((G) => h(x[G], G)), - ...o.map((G) => h(x.type[G], G)), + A(f.start, f.end), + hg.formatTokenType.call(void 0, f.type), + dg(String(x), 14), + ...s.map((g) => k(f[g], g)), + ...i.map((g) => k(f.type[g], g)), ]; } - function h(x, L) { - return x === !0 ? L : x === !1 || x === null ? '' : String(x); + function k(f, x) { + return f === !0 ? x : f === !1 || f === null ? '' : String(f); } - function v(x, L) { - return `${_(x)}-${_(L)}`; + function A(f, x) { + return `${u(f)}-${u(x)}`; } - function _(x) { - let L = s.locationForIndex(x); - return L ? `${L.line + 1}:${L.column + 1}` : 'Unknown'; + function u(f) { + let x = a.locationForIndex(f); + return x ? `${x.line + 1}:${x.column + 1}` : 'Unknown'; } } - q1.default = x_; - function g_(e, t) { + Ac.default = fg; + function dg(e, t) { return e.length > t ? `${e.slice(0, t - 3)}...` : e; } }); - var ud = H((H1) => { + var of = Z((Pc) => { 'use strict'; - Object.defineProperty(H1, '__esModule', {value: !0}); - function C_(e) { + Object.defineProperty(Pc, '__esModule', {value: !0}); + function mg(e) { return e && e.__esModule ? e : {default: e}; } - var yt = ce(), - w_ = Ko(), - I_ = C_(w_); - function S_(e) { + var Gt = be(), + Tg = Wi(), + yg = mg(Tg); + function kg(e) { let t = new Set(); - for (let n = 0; n < e.tokens.length; n++) - e.matches1AtIndex(n, yt.TokenType._import) && + for (let s = 0; s < e.tokens.length; s++) + e.matches1AtIndex(s, Gt.TokenType._import) && !e.matches3AtIndex( - n, - yt.TokenType._import, - yt.TokenType.name, - yt.TokenType.eq + s, + Gt.TokenType._import, + Gt.TokenType.name, + Gt.TokenType.eq ) && - b_(e, n, t); + vg(e, s, t); return t; } - H1.default = S_; - function b_(e, t, n) { + Pc.default = kg; + function vg(e, t, s) { t++, - !e.matches1AtIndex(t, yt.TokenType.parenL) && - (e.matches1AtIndex(t, yt.TokenType.name) && - (n.add(e.identifierNameAtIndex(t)), + !e.matches1AtIndex(t, Gt.TokenType.parenL) && + (e.matches1AtIndex(t, Gt.TokenType.name) && + (s.add(e.identifierNameAtIndex(t)), t++, - e.matches1AtIndex(t, yt.TokenType.comma) && t++), - e.matches1AtIndex(t, yt.TokenType.star) && - ((t += 2), n.add(e.identifierNameAtIndex(t)), t++), - e.matches1AtIndex(t, yt.TokenType.braceL) && (t++, E_(e, t, n))); + e.matches1AtIndex(t, Gt.TokenType.comma) && t++), + e.matches1AtIndex(t, Gt.TokenType.star) && + ((t += 2), s.add(e.identifierNameAtIndex(t)), t++), + e.matches1AtIndex(t, Gt.TokenType.braceL) && (t++, xg(e, t, s))); } - function E_(e, t, n) { + function xg(e, t, s) { for (;;) { - if (e.matches1AtIndex(t, yt.TokenType.braceR)) return; - let o = I_.default.call(void 0, e, t); + if (e.matches1AtIndex(t, Gt.TokenType.braceR)) return; + let i = yg.default.call(void 0, e, t); if ( - ((t = o.endIndex), - o.isType || n.add(o.rightName), - e.matches2AtIndex(t, yt.TokenType.comma, yt.TokenType.braceR)) + ((t = i.endIndex), + i.isType || s.add(i.rightName), + e.matches2AtIndex(t, Gt.TokenType.comma, Gt.TokenType.braceR)) ) return; - if (e.matches1AtIndex(t, yt.TokenType.braceR)) return; - if (e.matches1AtIndex(t, yt.TokenType.comma)) t++; + if (e.matches1AtIndex(t, Gt.TokenType.braceR)) return; + if (e.matches1AtIndex(t, Gt.TokenType.comma)) t++; else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`); } } }); - var fd = H((lr) => { + var cf = Z((fr) => { 'use strict'; - Object.defineProperty(lr, '__esModule', {value: !0}); - function Ln(e) { + Object.defineProperty(fr, '__esModule', {value: !0}); + function vs(e) { return e && e.__esModule ? e : {default: e}; } - var A_ = Mc(), - P_ = Ln(A_), - R_ = Wc(), - N_ = Ln(R_), - D_ = Vc(), - O_ = Yc(), - pd = Ln(O_), - M_ = Jc(), - L_ = Ln(M_), - F_ = Tu(), - $_ = o1(), - B_ = Pp(), - j_ = Ln(B_), - K_ = sd(), - q_ = Ln(K_), - H_ = cd(), - U_ = Ln(H_), - W_ = ud(), - V_ = Ln(W_); - function z_() { + var gg = P1(), + _g = vs(gg), + bg = j1(), + Cg = vs(bg), + wg = $1(), + Sg = U1(), + af = vs(Sg), + Ig = W1(), + Eg = vs(Ig), + Ag = up(), + Pg = Ul(), + Ng = wh(), + Rg = vs(Ng), + Lg = ef(), + Og = vs(Lg), + Dg = rf(), + Mg = vs(Dg), + Fg = of(), + Bg = vs(Fg); + function Vg() { return '3.32.0'; } - lr.getVersion = z_; - function X_(e, t) { - F_.validateOptions.call(void 0, t); + fr.getVersion = Vg; + function jg(e, t) { + Ag.validateOptions.call(void 0, t); try { - let n = dd(e, t), - r = new q_.default( - n, + let s = lf(e, t), + r = new Og.default( + s, t.transforms, !!t.enableLegacyBabel5ModuleInterop, t ).transform(), - s = {code: r.code}; + a = {code: r.code}; if (t.sourceMapOptions) { if (!t.filePath) throw new Error( 'filePath must be specified when generating a source map.' ); - s = { - ...s, - sourceMap: N_.default.call( + a = { + ...a, + sourceMap: Cg.default.call( void 0, r, t.filePath, t.sourceMapOptions, e, - n.tokenProcessor.tokens + s.tokenProcessor.tokens ), }; } - return s; - } catch (n) { + return a; + } catch (s) { throw ( (t.filePath && - (n.message = `Error transforming ${t.filePath}: ${n.message}`), - n) + (s.message = `Error transforming ${t.filePath}: ${s.message}`), + s) ); } } - lr.transform = X_; - function Y_(e, t) { - let n = dd(e, t).tokenProcessor.tokens; - return U_.default.call(void 0, e, n); + fr.transform = jg; + function $g(e, t) { + let s = lf(e, t).tokenProcessor.tokens; + return Mg.default.call(void 0, e, s); } - lr.getFormattedTokens = Y_; - function dd(e, t) { - let n = t.transforms.includes('jsx'), - o = t.transforms.includes('typescript'), + fr.getFormattedTokens = $g; + function lf(e, t) { + let s = t.transforms.includes('jsx'), + i = t.transforms.includes('typescript'), r = t.transforms.includes('flow'), - s = t.disableESTransforms === !0, - i = $_.parse.call(void 0, e, n, o, r), - a = i.tokens, - u = i.scopes, - h = new L_.default(e, a), - v = new D_.HelperManager(h), - _ = new j_.default(e, a, r, s, v), - x = !!t.enableLegacyTypeScriptModuleInterop, - L = null; + a = t.disableESTransforms === !0, + p = Pg.parse.call(void 0, e, s, i, r), + d = p.tokens, + y = p.scopes, + k = new Eg.default(e, d), + A = new wg.HelperManager(k), + u = new Rg.default(e, d, r, a, A), + f = !!t.enableLegacyTypeScriptModuleInterop, + x = null; return ( t.transforms.includes('imports') - ? ((L = new P_.default( - h, - _, - x, + ? ((x = new _g.default( + k, + u, + f, t, t.transforms.includes('typescript'), - v + A )), - L.preprocessTokens(), - pd.default.call(void 0, _, u, L.getGlobalNames()), - t.transforms.includes('typescript') && L.pruneTypeOnlyImports()) + x.preprocessTokens(), + af.default.call(void 0, u, y, x.getGlobalNames()), + t.transforms.includes('typescript') && x.pruneTypeOnlyImports()) : t.transforms.includes('typescript') && - pd.default.call(void 0, _, u, V_.default.call(void 0, _)), + af.default.call(void 0, u, y, Bg.default.call(void 0, u)), { - tokenProcessor: _, - scopes: u, - nameManager: h, - importProcessor: L, - helperManager: v, + tokenProcessor: u, + scopes: y, + nameManager: k, + importProcessor: x, + helperManager: A, } ); } }); - var ws = Eo(), - G_ = tl(), - cr = rc(), - hd = fd(), - Jn = null; - function yd() { - return new Proxy( - {}, - { - get: function (e, t) { - if (t in e) return e[t]; - var n = String(t).split('#'), - o = n[0], - r = n[1] || 'default', - s = {id: o, chunks: [o], name: r, async: !0}; - return (e[t] = s), s; + var pf = Z((Fo, uf) => { + (function (e, t) { + typeof Fo == 'object' && typeof uf < 'u' + ? t(Fo) + : typeof define == 'function' && define.amd + ? define(['exports'], t) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + t((e.acorn = {}))); + })(Fo, function (e) { + 'use strict'; + var t = [ + 509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, + 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, + 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, + 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, + 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, + 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, + 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, + 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, + 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, + 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, + 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, + 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, + 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, + 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, + 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, + 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, + 9, 787719, 239, + ], + s = [ + 0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, + 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, + 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, + 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, + 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, + 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, + 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, + 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, + 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, + 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, + 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, + 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, + 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, + 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, + 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, + 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, + 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, + 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, + 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, + 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, + 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, + 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, + 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, + 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, + 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, + 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, + 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, + 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, + 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, + 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, + 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191, + ], + i = + '\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65', + r = + '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC', + a = { + 3: 'abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile', + 5: 'class enum extends super const export import', + 6: 'enum', + strict: + 'implements interface let package private protected public static yield', + strictBind: 'eval arguments', }, - } - ); - } - var md = {}; - function J_(e, t, n) { - var o = cr.registerServerReference(e, t, n), - r = t + '#' + n; - return (md[r] = e), o; - } - function Q_(e, t) { - for ( - var n = e.split(` -`), - o = 0; - o < Math.min(n.length, 10); - o++ - ) { - var r = n[o].trim(); - if (r !== '' && !r.startsWith('//')) { - if (r.startsWith('/*')) { - for (; o < n.length && !n[o].includes('*/'); ) o++; - continue; + p = + 'break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this', + d = { + 5: p, + '5module': p + ' export import', + 6: p + ' const class extends export import super', + }, + y = /^in(stanceof)?$/, + k = new RegExp('[' + r + ']'), + A = new RegExp('[' + r + i + ']'); + function u(n, o) { + for (var l = 65536, h = 0; h < o.length; h += 2) { + if (((l += o[h]), l > n)) return !1; + if (((l += o[h + 1]), l >= n)) return !0; } - return ( - r === "'" + t + "';" || - r === '"' + t + '";' || - r === "'" + t + "'" || - r === '"' + t + '"' - ); + return !1; } - } - return !1; - } - function Z_(e, t) { - if (!t.startsWith('.')) return t; - var n = e.split('/'); - n.pop(); - for (var o = t.split('/'), r = 0; r < o.length; r++) - if (o[r] !== '.') { - if (o[r] === '..') { - n.pop(); - continue; + function f(n, o) { + return n < 65 + ? n === 36 + : n < 91 + ? !0 + : n < 97 + ? n === 95 + : n < 123 + ? !0 + : n <= 65535 + ? n >= 170 && k.test(String.fromCharCode(n)) + : o === !1 + ? !1 + : u(n, s); + } + function x(n, o) { + return n < 48 + ? n === 36 + : n < 58 + ? !0 + : n < 65 + ? !1 + : n < 91 + ? !0 + : n < 97 + ? n === 95 + : n < 123 + ? !0 + : n <= 65535 + ? n >= 170 && A.test(String.fromCharCode(n)) + : o === !1 + ? !1 + : u(n, s) || u(n, t); + } + var g = function (o, l) { + l === void 0 && (l = {}), + (this.label = o), + (this.keyword = l.keyword), + (this.beforeExpr = !!l.beforeExpr), + (this.startsExpr = !!l.startsExpr), + (this.isLoop = !!l.isLoop), + (this.isAssign = !!l.isAssign), + (this.prefix = !!l.prefix), + (this.postfix = !!l.postfix), + (this.binop = l.binop || null), + (this.updateContext = null); + }; + function S(n, o) { + return new g(n, {beforeExpr: !0, binop: o}); + } + var E = {beforeExpr: !0}, + L = {startsExpr: !0}, + H = {}; + function D(n, o) { + return o === void 0 && (o = {}), (o.keyword = n), (H[n] = new g(n, o)); + } + var c = { + num: new g('num', L), + regexp: new g('regexp', L), + string: new g('string', L), + name: new g('name', L), + privateId: new g('privateId', L), + eof: new g('eof'), + bracketL: new g('[', {beforeExpr: !0, startsExpr: !0}), + bracketR: new g(']'), + braceL: new g('{', {beforeExpr: !0, startsExpr: !0}), + braceR: new g('}'), + parenL: new g('(', {beforeExpr: !0, startsExpr: !0}), + parenR: new g(')'), + comma: new g(',', E), + semi: new g(';', E), + colon: new g(':', E), + dot: new g('.'), + question: new g('?', E), + questionDot: new g('?.'), + arrow: new g('=>', E), + template: new g('template'), + invalidTemplate: new g('invalidTemplate'), + ellipsis: new g('...', E), + backQuote: new g('`', L), + dollarBraceL: new g('${', {beforeExpr: !0, startsExpr: !0}), + eq: new g('=', {beforeExpr: !0, isAssign: !0}), + assign: new g('_=', {beforeExpr: !0, isAssign: !0}), + incDec: new g('++/--', {prefix: !0, postfix: !0, startsExpr: !0}), + prefix: new g('!/~', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + logicalOR: S('||', 1), + logicalAND: S('&&', 2), + bitwiseOR: S('|', 3), + bitwiseXOR: S('^', 4), + bitwiseAND: S('&', 5), + equality: S('==/!=/===/!==', 6), + relational: S('/<=/>=', 7), + bitShift: S('<>/>>>', 8), + plusMin: new g('+/-', { + beforeExpr: !0, + binop: 9, + prefix: !0, + startsExpr: !0, + }), + modulo: S('%', 10), + star: S('*', 10), + slash: S('/', 10), + starstar: new g('**', {beforeExpr: !0}), + coalesce: S('??', 1), + _break: D('break'), + _case: D('case', E), + _catch: D('catch'), + _continue: D('continue'), + _debugger: D('debugger'), + _default: D('default', E), + _do: D('do', {isLoop: !0, beforeExpr: !0}), + _else: D('else', E), + _finally: D('finally'), + _for: D('for', {isLoop: !0}), + _function: D('function', L), + _if: D('if'), + _return: D('return', E), + _switch: D('switch'), + _throw: D('throw', E), + _try: D('try'), + _var: D('var'), + _const: D('const'), + _while: D('while', {isLoop: !0}), + _with: D('with'), + _new: D('new', {beforeExpr: !0, startsExpr: !0}), + _this: D('this', L), + _super: D('super', L), + _class: D('class', L), + _extends: D('extends', E), + _export: D('export'), + _import: D('import', L), + _null: D('null', L), + _true: D('true', L), + _false: D('false', L), + _in: D('in', {beforeExpr: !0, binop: 7}), + _instanceof: D('instanceof', {beforeExpr: !0, binop: 7}), + _typeof: D('typeof', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + _void: D('void', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + _delete: D('delete', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + }, + M = /\r\n?|\n|\u2028|\u2029/, + z = new RegExp(M.source, 'g'); + function X(n) { + return n === 10 || n === 13 || n === 8232 || n === 8233; + } + function ie(n, o, l) { + l === void 0 && (l = n.length); + for (var h = o; h < l; h++) { + var m = n.charCodeAt(h); + if (X(m)) + return h < l - 1 && m === 13 && n.charCodeAt(h + 1) === 10 + ? h + 2 + : h + 1; + } + return -1; + } + var pe = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, + ae = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, + He = Object.prototype, + qe = He.hasOwnProperty, + Bt = He.toString, + mt = + Object.hasOwn || + function (n, o) { + return qe.call(n, o); + }, + kt = + Array.isArray || + function (n) { + return Bt.call(n) === '[object Array]'; + }, + At = Object.create(null); + function tt(n) { + return ( + At[n] || (At[n] = new RegExp('^(?:' + n.replace(/ /g, '|') + ')$')) + ); + } + function nt(n) { + return n <= 65535 + ? String.fromCharCode(n) + : ((n -= 65536), + String.fromCharCode((n >> 10) + 55296, (n & 1023) + 56320)); + } + var _t = + /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, + ct = function (o, l) { + (this.line = o), (this.column = l); + }; + ct.prototype.offset = function (o) { + return new ct(this.line, this.column + o); + }; + var wt = function (o, l, h) { + (this.start = l), + (this.end = h), + o.sourceFile !== null && (this.source = o.sourceFile); + }; + function $t(n, o) { + for (var l = 1, h = 0; ; ) { + var m = ie(n, h, o); + if (m < 0) return new ct(l, o - h); + ++l, (h = m); + } + } + var Pt = { + ecmaVersion: null, + sourceType: 'script', + onInsertedSemicolon: null, + onTrailingComma: null, + allowReserved: null, + allowReturnOutsideFunction: !1, + allowImportExportEverywhere: !1, + allowAwaitOutsideFunction: null, + allowSuperOutsideMethod: null, + allowHashBang: !1, + checkPrivateFields: !0, + locations: !1, + onToken: null, + onComment: null, + ranges: !1, + program: null, + sourceFile: null, + directSourceFile: null, + preserveParens: !1, + }, + qt = !1; + function yn(n) { + var o = {}; + for (var l in Pt) o[l] = n && mt(n, l) ? n[l] : Pt[l]; + if ( + (o.ecmaVersion === 'latest' + ? (o.ecmaVersion = 1e8) + : o.ecmaVersion == null + ? (!qt && + typeof console == 'object' && + console.warn && + ((qt = !0), + console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)), + (o.ecmaVersion = 11)) + : o.ecmaVersion >= 2015 && (o.ecmaVersion -= 2009), + o.allowReserved == null && (o.allowReserved = o.ecmaVersion < 5), + (!n || n.allowHashBang == null) && + (o.allowHashBang = o.ecmaVersion >= 14), + kt(o.onToken)) + ) { + var h = o.onToken; + o.onToken = function (m) { + return h.push(m); + }; + } + return kt(o.onComment) && (o.onComment = V(o, o.onComment)), o; + } + function V(n, o) { + return function (l, h, m, I, R, Y) { + var Q = {type: l ? 'Block' : 'Line', value: h, start: m, end: I}; + n.locations && (Q.loc = new wt(this, R, Y)), + n.ranges && (Q.range = [m, I]), + o.push(Q); + }; + } + var W = 1, + J = 2, + re = 4, + ve = 8, + he = 16, + Ie = 32, + Ee = 64, + Le = 128, + Xe = 256, + We = 512, + Ke = W | J | Xe; + function ut(n, o) { + return J | (n ? re : 0) | (o ? ve : 0); + } + var pt = 0, + bt = 1, + Tt = 2, + vt = 3, + bn = 4, + Dn = 5, + Ge = function (o, l, h) { + (this.options = o = yn(o)), + (this.sourceFile = o.sourceFile), + (this.keywords = tt( + d[ + o.ecmaVersion >= 6 + ? 6 + : o.sourceType === 'module' + ? '5module' + : 5 + ] + )); + var m = ''; + o.allowReserved !== !0 && + ((m = a[o.ecmaVersion >= 6 ? 6 : o.ecmaVersion === 5 ? 5 : 3]), + o.sourceType === 'module' && (m += ' await')), + (this.reservedWords = tt(m)); + var I = (m ? m + ' ' : '') + a.strict; + (this.reservedWordsStrict = tt(I)), + (this.reservedWordsStrictBind = tt(I + ' ' + a.strictBind)), + (this.input = String(l)), + (this.containsEsc = !1), + h + ? ((this.pos = h), + (this.lineStart = + this.input.lastIndexOf( + ` +`, + h - 1 + ) + 1), + (this.curLine = this.input + .slice(0, this.lineStart) + .split(M).length)) + : ((this.pos = this.lineStart = 0), (this.curLine = 1)), + (this.type = c.eof), + (this.value = null), + (this.start = this.end = this.pos), + (this.startLoc = this.endLoc = this.curPosition()), + (this.lastTokEndLoc = this.lastTokStartLoc = null), + (this.lastTokStart = this.lastTokEnd = this.pos), + (this.context = this.initialContext()), + (this.exprAllowed = !0), + (this.inModule = o.sourceType === 'module'), + (this.strict = this.inModule || this.strictDirective(this.pos)), + (this.potentialArrowAt = -1), + (this.potentialArrowInForAwait = !1), + (this.yieldPos = this.awaitPos = this.awaitIdentPos = 0), + (this.labels = []), + (this.undefinedExports = Object.create(null)), + this.pos === 0 && + o.allowHashBang && + this.input.slice(0, 2) === '#!' && + this.skipLineComment(2), + (this.scopeStack = []), + this.enterScope(W), + (this.regexpState = null), + (this.privateNameStack = []); + }, + St = { + inFunction: {configurable: !0}, + inGenerator: {configurable: !0}, + inAsync: {configurable: !0}, + canAwait: {configurable: !0}, + allowSuper: {configurable: !0}, + allowDirectSuper: {configurable: !0}, + treatFunctionsAsVar: {configurable: !0}, + allowNewDotTarget: {configurable: !0}, + inClassStaticBlock: {configurable: !0}, + }; + (Ge.prototype.parse = function () { + var o = this.options.program || this.startNode(); + return this.nextToken(), this.parseTopLevel(o); + }), + (St.inFunction.get = function () { + return (this.currentVarScope().flags & J) > 0; + }), + (St.inGenerator.get = function () { + return (this.currentVarScope().flags & ve) > 0; + }), + (St.inAsync.get = function () { + return (this.currentVarScope().flags & re) > 0; + }), + (St.canAwait.get = function () { + for (var n = this.scopeStack.length - 1; n >= 0; n--) { + var o = this.scopeStack[n], + l = o.flags; + if (l & (Xe | We)) return !1; + if (l & J) return (l & re) > 0; + } + return ( + (this.inModule && this.options.ecmaVersion >= 13) || + this.options.allowAwaitOutsideFunction + ); + }), + (St.allowSuper.get = function () { + var n = this.currentThisScope(), + o = n.flags; + return (o & Ee) > 0 || this.options.allowSuperOutsideMethod; + }), + (St.allowDirectSuper.get = function () { + return (this.currentThisScope().flags & Le) > 0; + }), + (St.treatFunctionsAsVar.get = function () { + return this.treatFunctionsAsVarInScope(this.currentScope()); + }), + (St.allowNewDotTarget.get = function () { + for (var n = this.scopeStack.length - 1; n >= 0; n--) { + var o = this.scopeStack[n], + l = o.flags; + if (l & (Xe | We) || (l & J && !(l & he))) return !0; + } + return !1; + }), + (St.inClassStaticBlock.get = function () { + return (this.currentVarScope().flags & Xe) > 0; + }), + (Ge.extend = function () { + for (var o = [], l = arguments.length; l--; ) o[l] = arguments[l]; + for (var h = this, m = 0; m < o.length; m++) h = o[m](h); + return h; + }), + (Ge.parse = function (o, l) { + return new this(l, o).parse(); + }), + (Ge.parseExpressionAt = function (o, l, h) { + var m = new this(h, o, l); + return m.nextToken(), m.parseExpression(); + }), + (Ge.tokenizer = function (o, l) { + return new this(l, o); + }), + Object.defineProperties(Ge.prototype, St); + var ot = Ge.prototype, + zt = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/; + (ot.strictDirective = function (n) { + if (this.options.ecmaVersion < 5) return !1; + for (;;) { + (ae.lastIndex = n), (n += ae.exec(this.input)[0].length); + var o = zt.exec(this.input.slice(n)); + if (!o) return !1; + if ((o[1] || o[2]) === 'use strict') { + ae.lastIndex = n + o[0].length; + var l = ae.exec(this.input), + h = l.index + l[0].length, + m = this.input.charAt(h); + return ( + m === ';' || + m === '}' || + (M.test(l[0]) && + !( + /[(`.[+\-/*%<>=,?^&]/.test(m) || + (m === '!' && this.input.charAt(h + 1) === '=') + )) + ); + } + (n += o[0].length), + (ae.lastIndex = n), + (n += ae.exec(this.input)[0].length), + this.input[n] === ';' && n++; + } + }), + (ot.eat = function (n) { + return this.type === n ? (this.next(), !0) : !1; + }), + (ot.isContextual = function (n) { + return this.type === c.name && this.value === n && !this.containsEsc; + }), + (ot.eatContextual = function (n) { + return this.isContextual(n) ? (this.next(), !0) : !1; + }), + (ot.expectContextual = function (n) { + this.eatContextual(n) || this.unexpected(); + }), + (ot.canInsertSemicolon = function () { + return ( + this.type === c.eof || + this.type === c.braceR || + M.test(this.input.slice(this.lastTokEnd, this.start)) + ); + }), + (ot.insertSemicolon = function () { + if (this.canInsertSemicolon()) + return ( + this.options.onInsertedSemicolon && + this.options.onInsertedSemicolon( + this.lastTokEnd, + this.lastTokEndLoc + ), + !0 + ); + }), + (ot.semicolon = function () { + !this.eat(c.semi) && !this.insertSemicolon() && this.unexpected(); + }), + (ot.afterTrailingComma = function (n, o) { + if (this.type === n) + return ( + this.options.onTrailingComma && + this.options.onTrailingComma( + this.lastTokStart, + this.lastTokStartLoc + ), + o || this.next(), + !0 + ); + }), + (ot.expect = function (n) { + this.eat(n) || this.unexpected(); + }), + (ot.unexpected = function (n) { + this.raise(n ?? this.start, 'Unexpected token'); + }); + var Xt = function () { + this.shorthandAssign = + this.trailingComma = + this.parenthesizedAssign = + this.parenthesizedBind = + this.doubleProto = + -1; + }; + (ot.checkPatternErrors = function (n, o) { + if (n) { + n.trailingComma > -1 && + this.raiseRecoverable( + n.trailingComma, + 'Comma is not permitted after the rest element' + ); + var l = o ? n.parenthesizedAssign : n.parenthesizedBind; + l > -1 && + this.raiseRecoverable( + l, + o ? 'Assigning to rvalue' : 'Parenthesized pattern' + ); + } + }), + (ot.checkExpressionErrors = function (n, o) { + if (!n) return !1; + var l = n.shorthandAssign, + h = n.doubleProto; + if (!o) return l >= 0 || h >= 0; + l >= 0 && + this.raise( + l, + 'Shorthand property assignments are valid only in destructuring patterns' + ), + h >= 0 && + this.raiseRecoverable(h, 'Redefinition of __proto__ property'); + }), + (ot.checkYieldAwaitInDefaultParams = function () { + this.yieldPos && + (!this.awaitPos || this.yieldPos < this.awaitPos) && + this.raise( + this.yieldPos, + 'Yield expression cannot be a default value' + ), + this.awaitPos && + this.raise( + this.awaitPos, + 'Await expression cannot be a default value' + ); + }), + (ot.isSimpleAssignTarget = function (n) { + return n.type === 'ParenthesizedExpression' + ? this.isSimpleAssignTarget(n.expression) + : n.type === 'Identifier' || n.type === 'MemberExpression'; + }); + var te = Ge.prototype; + te.parseTopLevel = function (n) { + var o = Object.create(null); + for (n.body || (n.body = []); this.type !== c.eof; ) { + var l = this.parseStatement(null, !0, o); + n.body.push(l); + } + if (this.inModule) + for ( + var h = 0, m = Object.keys(this.undefinedExports); + h < m.length; + h += 1 + ) { + var I = m[h]; + this.raiseRecoverable( + this.undefinedExports[I].start, + "Export '" + I + "' is not defined" + ); + } + return ( + this.adaptDirectivePrologue(n.body), + this.next(), + (n.sourceType = this.options.sourceType), + this.finishNode(n, 'Program') + ); + }; + var Cn = {kind: 'loop'}, + Zn = {kind: 'switch'}; + (te.isLet = function (n) { + if (this.options.ecmaVersion < 6 || !this.isContextual('let')) + return !1; + ae.lastIndex = this.pos; + var o = ae.exec(this.input), + l = this.pos + o[0].length, + h = this.input.charCodeAt(l); + if (h === 91 || h === 92) return !0; + if (n) return !1; + if (h === 123 || (h > 55295 && h < 56320)) return !0; + if (f(h, !0)) { + for (var m = l + 1; x((h = this.input.charCodeAt(m)), !0); ) ++m; + if (h === 92 || (h > 55295 && h < 56320)) return !0; + var I = this.input.slice(l, m); + if (!y.test(I)) return !0; + } + return !1; + }), + (te.isAsyncFunction = function () { + if (this.options.ecmaVersion < 8 || !this.isContextual('async')) + return !1; + ae.lastIndex = this.pos; + var n = ae.exec(this.input), + o = this.pos + n[0].length, + l; + return ( + !M.test(this.input.slice(this.pos, o)) && + this.input.slice(o, o + 8) === 'function' && + (o + 8 === this.input.length || + !( + x((l = this.input.charCodeAt(o + 8))) || + (l > 55295 && l < 56320) + )) + ); + }), + (te.isUsingKeyword = function (n, o) { + if ( + this.options.ecmaVersion < 17 || + !this.isContextual(n ? 'await' : 'using') + ) + return !1; + ae.lastIndex = this.pos; + var l = ae.exec(this.input), + h = this.pos + l[0].length; + if (M.test(this.input.slice(this.pos, h))) return !1; + if (n) { + var m = h + 5, + I; + if ( + this.input.slice(h, m) !== 'using' || + m === this.input.length || + x((I = this.input.charCodeAt(m))) || + (I > 55295 && I < 56320) + ) + return !1; + ae.lastIndex = m; + var R = ae.exec(this.input); + if (R && M.test(this.input.slice(m, m + R[0].length))) return !1; + } + if (o) { + var Y = h + 2, + Q; + if ( + this.input.slice(h, Y) === 'of' && + (Y === this.input.length || + (!x((Q = this.input.charCodeAt(Y))) && + !(Q > 55295 && Q < 56320))) + ) + return !1; + } + var ye = this.input.charCodeAt(h); + return f(ye, !0) || ye === 92; + }), + (te.isAwaitUsing = function (n) { + return this.isUsingKeyword(!0, n); + }), + (te.isUsing = function (n) { + return this.isUsingKeyword(!1, n); + }), + (te.parseStatement = function (n, o, l) { + var h = this.type, + m = this.startNode(), + I; + switch ((this.isLet(n) && ((h = c._var), (I = 'let')), h)) { + case c._break: + case c._continue: + return this.parseBreakContinueStatement(m, h.keyword); + case c._debugger: + return this.parseDebuggerStatement(m); + case c._do: + return this.parseDoStatement(m); + case c._for: + return this.parseForStatement(m); + case c._function: + return ( + n && + (this.strict || (n !== 'if' && n !== 'label')) && + this.options.ecmaVersion >= 6 && + this.unexpected(), + this.parseFunctionStatement(m, !1, !n) + ); + case c._class: + return n && this.unexpected(), this.parseClass(m, !0); + case c._if: + return this.parseIfStatement(m); + case c._return: + return this.parseReturnStatement(m); + case c._switch: + return this.parseSwitchStatement(m); + case c._throw: + return this.parseThrowStatement(m); + case c._try: + return this.parseTryStatement(m); + case c._const: + case c._var: + return ( + (I = I || this.value), + n && I !== 'var' && this.unexpected(), + this.parseVarStatement(m, I) + ); + case c._while: + return this.parseWhileStatement(m); + case c._with: + return this.parseWithStatement(m); + case c.braceL: + return this.parseBlock(!0, m); + case c.semi: + return this.parseEmptyStatement(m); + case c._export: + case c._import: + if (this.options.ecmaVersion > 10 && h === c._import) { + ae.lastIndex = this.pos; + var R = ae.exec(this.input), + Y = this.pos + R[0].length, + Q = this.input.charCodeAt(Y); + if (Q === 40 || Q === 46) + return this.parseExpressionStatement( + m, + this.parseExpression() + ); + } + return ( + this.options.allowImportExportEverywhere || + (o || + this.raise( + this.start, + "'import' and 'export' may only appear at the top level" + ), + this.inModule || + this.raise( + this.start, + "'import' and 'export' may appear only with 'sourceType: module'" + )), + h === c._import ? this.parseImport(m) : this.parseExport(m, l) + ); + default: + if (this.isAsyncFunction()) + return ( + n && this.unexpected(), + this.next(), + this.parseFunctionStatement(m, !0, !n) + ); + var ye = this.isAwaitUsing(!1) + ? 'await using' + : this.isUsing(!1) + ? 'using' + : null; + if (ye) + return ( + o && + this.options.sourceType === 'script' && + this.raise( + this.start, + 'Using declaration cannot appear in the top level when source type is `script`' + ), + ye === 'await using' && + (this.canAwait || + this.raise( + this.start, + 'Await using cannot appear outside of async function' + ), + this.next()), + this.next(), + this.parseVar(m, !1, ye), + this.semicolon(), + this.finishNode(m, 'VariableDeclaration') + ); + var xe = this.value, + Ze = this.parseExpression(); + return h === c.name && + Ze.type === 'Identifier' && + this.eat(c.colon) + ? this.parseLabeledStatement(m, xe, Ze, n) + : this.parseExpressionStatement(m, Ze); + } + }), + (te.parseBreakContinueStatement = function (n, o) { + var l = o === 'break'; + this.next(), + this.eat(c.semi) || this.insertSemicolon() + ? (n.label = null) + : this.type !== c.name + ? this.unexpected() + : ((n.label = this.parseIdent()), this.semicolon()); + for (var h = 0; h < this.labels.length; ++h) { + var m = this.labels[h]; + if ( + (n.label == null || m.name === n.label.name) && + ((m.kind != null && (l || m.kind === 'loop')) || (n.label && l)) + ) + break; + } + return ( + h === this.labels.length && this.raise(n.start, 'Unsyntactic ' + o), + this.finishNode(n, l ? 'BreakStatement' : 'ContinueStatement') + ); + }), + (te.parseDebuggerStatement = function (n) { + return ( + this.next(), + this.semicolon(), + this.finishNode(n, 'DebuggerStatement') + ); + }), + (te.parseDoStatement = function (n) { + return ( + this.next(), + this.labels.push(Cn), + (n.body = this.parseStatement('do')), + this.labels.pop(), + this.expect(c._while), + (n.test = this.parseParenExpression()), + this.options.ecmaVersion >= 6 ? this.eat(c.semi) : this.semicolon(), + this.finishNode(n, 'DoWhileStatement') + ); + }), + (te.parseForStatement = function (n) { + this.next(); + var o = + this.options.ecmaVersion >= 9 && + this.canAwait && + this.eatContextual('await') + ? this.lastTokStart + : -1; + if ( + (this.labels.push(Cn), + this.enterScope(0), + this.expect(c.parenL), + this.type === c.semi) + ) + return o > -1 && this.unexpected(o), this.parseFor(n, null); + var l = this.isLet(); + if (this.type === c._var || this.type === c._const || l) { + var h = this.startNode(), + m = l ? 'let' : this.value; + return ( + this.next(), + this.parseVar(h, !0, m), + this.finishNode(h, 'VariableDeclaration'), + this.parseForAfterInit(n, h, o) + ); + } + var I = this.isContextual('let'), + R = !1, + Y = this.isUsing(!0) + ? 'using' + : this.isAwaitUsing(!0) + ? 'await using' + : null; + if (Y) { + var Q = this.startNode(); + return ( + this.next(), + Y === 'await using' && this.next(), + this.parseVar(Q, !0, Y), + this.finishNode(Q, 'VariableDeclaration'), + this.parseForAfterInit(n, Q, o) + ); + } + var ye = this.containsEsc, + xe = new Xt(), + Ze = this.start, + Lt = + o > -1 + ? this.parseExprSubscripts(xe, 'await') + : this.parseExpression(!0, xe); + return this.type === c._in || + (R = this.options.ecmaVersion >= 6 && this.isContextual('of')) + ? (o > -1 + ? (this.type === c._in && this.unexpected(o), (n.await = !0)) + : R && + this.options.ecmaVersion >= 8 && + (Lt.start === Ze && + !ye && + Lt.type === 'Identifier' && + Lt.name === 'async' + ? this.unexpected() + : this.options.ecmaVersion >= 9 && (n.await = !1)), + I && + R && + this.raise( + Lt.start, + "The left-hand side of a for-of loop may not start with 'let'." + ), + this.toAssignable(Lt, !1, xe), + this.checkLValPattern(Lt), + this.parseForIn(n, Lt)) + : (this.checkExpressionErrors(xe, !0), + o > -1 && this.unexpected(o), + this.parseFor(n, Lt)); + }), + (te.parseForAfterInit = function (n, o, l) { + return (this.type === c._in || + (this.options.ecmaVersion >= 6 && this.isContextual('of'))) && + o.declarations.length === 1 + ? (this.options.ecmaVersion >= 9 && + (this.type === c._in + ? l > -1 && this.unexpected(l) + : (n.await = l > -1)), + this.parseForIn(n, o)) + : (l > -1 && this.unexpected(l), this.parseFor(n, o)); + }), + (te.parseFunctionStatement = function (n, o, l) { + return this.next(), this.parseFunction(n, Mn | (l ? 0 : xs), !1, o); + }), + (te.parseIfStatement = function (n) { + return ( + this.next(), + (n.test = this.parseParenExpression()), + (n.consequent = this.parseStatement('if')), + (n.alternate = this.eat(c._else) + ? this.parseStatement('if') + : null), + this.finishNode(n, 'IfStatement') + ); + }), + (te.parseReturnStatement = function (n) { + return ( + !this.inFunction && + !this.options.allowReturnOutsideFunction && + this.raise(this.start, "'return' outside of function"), + this.next(), + this.eat(c.semi) || this.insertSemicolon() + ? (n.argument = null) + : ((n.argument = this.parseExpression()), this.semicolon()), + this.finishNode(n, 'ReturnStatement') + ); + }), + (te.parseSwitchStatement = function (n) { + this.next(), + (n.discriminant = this.parseParenExpression()), + (n.cases = []), + this.expect(c.braceL), + this.labels.push(Zn), + this.enterScope(0); + for (var o, l = !1; this.type !== c.braceR; ) + if (this.type === c._case || this.type === c._default) { + var h = this.type === c._case; + o && this.finishNode(o, 'SwitchCase'), + n.cases.push((o = this.startNode())), + (o.consequent = []), + this.next(), + h + ? (o.test = this.parseExpression()) + : (l && + this.raiseRecoverable( + this.lastTokStart, + 'Multiple default clauses' + ), + (l = !0), + (o.test = null)), + this.expect(c.colon); + } else + o || this.unexpected(), + o.consequent.push(this.parseStatement(null)); + return ( + this.exitScope(), + o && this.finishNode(o, 'SwitchCase'), + this.next(), + this.labels.pop(), + this.finishNode(n, 'SwitchStatement') + ); + }), + (te.parseThrowStatement = function (n) { + return ( + this.next(), + M.test(this.input.slice(this.lastTokEnd, this.start)) && + this.raise(this.lastTokEnd, 'Illegal newline after throw'), + (n.argument = this.parseExpression()), + this.semicolon(), + this.finishNode(n, 'ThrowStatement') + ); + }); + var _i = []; + (te.parseCatchClauseParam = function () { + var n = this.parseBindingAtom(), + o = n.type === 'Identifier'; + return ( + this.enterScope(o ? Ie : 0), + this.checkLValPattern(n, o ? bn : Tt), + this.expect(c.parenR), + n + ); + }), + (te.parseTryStatement = function (n) { + if ( + (this.next(), + (n.block = this.parseBlock()), + (n.handler = null), + this.type === c._catch) + ) { + var o = this.startNode(); + this.next(), + this.eat(c.parenL) + ? (o.param = this.parseCatchClauseParam()) + : (this.options.ecmaVersion < 10 && this.unexpected(), + (o.param = null), + this.enterScope(0)), + (o.body = this.parseBlock(!1)), + this.exitScope(), + (n.handler = this.finishNode(o, 'CatchClause')); + } + return ( + (n.finalizer = this.eat(c._finally) ? this.parseBlock() : null), + !n.handler && + !n.finalizer && + this.raise(n.start, 'Missing catch or finally clause'), + this.finishNode(n, 'TryStatement') + ); + }), + (te.parseVarStatement = function (n, o, l) { + return ( + this.next(), + this.parseVar(n, !1, o, l), + this.semicolon(), + this.finishNode(n, 'VariableDeclaration') + ); + }), + (te.parseWhileStatement = function (n) { + return ( + this.next(), + (n.test = this.parseParenExpression()), + this.labels.push(Cn), + (n.body = this.parseStatement('while')), + this.labels.pop(), + this.finishNode(n, 'WhileStatement') + ); + }), + (te.parseWithStatement = function (n) { + return ( + this.strict && this.raise(this.start, "'with' in strict mode"), + this.next(), + (n.object = this.parseParenExpression()), + (n.body = this.parseStatement('with')), + this.finishNode(n, 'WithStatement') + ); + }), + (te.parseEmptyStatement = function (n) { + return this.next(), this.finishNode(n, 'EmptyStatement'); + }), + (te.parseLabeledStatement = function (n, o, l, h) { + for (var m = 0, I = this.labels; m < I.length; m += 1) { + var R = I[m]; + R.name === o && + this.raise(l.start, "Label '" + o + "' is already declared"); + } + for ( + var Y = this.type.isLoop + ? 'loop' + : this.type === c._switch + ? 'switch' + : null, + Q = this.labels.length - 1; + Q >= 0; + Q-- + ) { + var ye = this.labels[Q]; + if (ye.statementStart === n.start) + (ye.statementStart = this.start), (ye.kind = Y); + else break; + } + return ( + this.labels.push({name: o, kind: Y, statementStart: this.start}), + (n.body = this.parseStatement( + h ? (h.indexOf('label') === -1 ? h + 'label' : h) : 'label' + )), + this.labels.pop(), + (n.label = l), + this.finishNode(n, 'LabeledStatement') + ); + }), + (te.parseExpressionStatement = function (n, o) { + return ( + (n.expression = o), + this.semicolon(), + this.finishNode(n, 'ExpressionStatement') + ); + }), + (te.parseBlock = function (n, o, l) { + for ( + n === void 0 && (n = !0), + o === void 0 && (o = this.startNode()), + o.body = [], + this.expect(c.braceL), + n && this.enterScope(0); + this.type !== c.braceR; + + ) { + var h = this.parseStatement(null); + o.body.push(h); + } + return ( + l && (this.strict = !1), + this.next(), + n && this.exitScope(), + this.finishNode(o, 'BlockStatement') + ); + }), + (te.parseFor = function (n, o) { + return ( + (n.init = o), + this.expect(c.semi), + (n.test = this.type === c.semi ? null : this.parseExpression()), + this.expect(c.semi), + (n.update = this.type === c.parenR ? null : this.parseExpression()), + this.expect(c.parenR), + (n.body = this.parseStatement('for')), + this.exitScope(), + this.labels.pop(), + this.finishNode(n, 'ForStatement') + ); + }), + (te.parseForIn = function (n, o) { + var l = this.type === c._in; + return ( + this.next(), + o.type === 'VariableDeclaration' && + o.declarations[0].init != null && + (!l || + this.options.ecmaVersion < 8 || + this.strict || + o.kind !== 'var' || + o.declarations[0].id.type !== 'Identifier') && + this.raise( + o.start, + (l ? 'for-in' : 'for-of') + + ' loop variable declaration may not have an initializer' + ), + (n.left = o), + (n.right = l ? this.parseExpression() : this.parseMaybeAssign()), + this.expect(c.parenR), + (n.body = this.parseStatement('for')), + this.exitScope(), + this.labels.pop(), + this.finishNode(n, l ? 'ForInStatement' : 'ForOfStatement') + ); + }), + (te.parseVar = function (n, o, l, h) { + for (n.declarations = [], n.kind = l; ; ) { + var m = this.startNode(); + if ( + (this.parseVarId(m, l), + this.eat(c.eq) + ? (m.init = this.parseMaybeAssign(o)) + : !h && + l === 'const' && + !( + this.type === c._in || + (this.options.ecmaVersion >= 6 && this.isContextual('of')) + ) + ? this.unexpected() + : !h && + (l === 'using' || l === 'await using') && + this.options.ecmaVersion >= 17 && + this.type !== c._in && + !this.isContextual('of') + ? this.raise( + this.lastTokEnd, + 'Missing initializer in ' + l + ' declaration' + ) + : !h && + m.id.type !== 'Identifier' && + !(o && (this.type === c._in || this.isContextual('of'))) + ? this.raise( + this.lastTokEnd, + 'Complex binding patterns require an initialization value' + ) + : (m.init = null), + n.declarations.push(this.finishNode(m, 'VariableDeclarator')), + !this.eat(c.comma)) + ) + break; + } + return n; + }), + (te.parseVarId = function (n, o) { + (n.id = + o === 'using' || o === 'await using' + ? this.parseIdent() + : this.parseBindingAtom()), + this.checkLValPattern(n.id, o === 'var' ? bt : Tt, !1); + }); + var Mn = 1, + xs = 2, + Ds = 4; + (te.parseFunction = function (n, o, l, h, m) { + this.initFunction(n), + (this.options.ecmaVersion >= 9 || + (this.options.ecmaVersion >= 6 && !h)) && + (this.type === c.star && o & xs && this.unexpected(), + (n.generator = this.eat(c.star))), + this.options.ecmaVersion >= 8 && (n.async = !!h), + o & Mn && + ((n.id = o & Ds && this.type !== c.name ? null : this.parseIdent()), + n.id && + !(o & xs) && + this.checkLValSimple( + n.id, + this.strict || n.generator || n.async + ? this.treatFunctionsAsVar + ? bt + : Tt + : vt + )); + var I = this.yieldPos, + R = this.awaitPos, + Y = this.awaitIdentPos; + return ( + (this.yieldPos = 0), + (this.awaitPos = 0), + (this.awaitIdentPos = 0), + this.enterScope(ut(n.async, n.generator)), + o & Mn || (n.id = this.type === c.name ? this.parseIdent() : null), + this.parseFunctionParams(n), + this.parseFunctionBody(n, l, !1, m), + (this.yieldPos = I), + (this.awaitPos = R), + (this.awaitIdentPos = Y), + this.finishNode( + n, + o & Mn ? 'FunctionDeclaration' : 'FunctionExpression' + ) + ); + }), + (te.parseFunctionParams = function (n) { + this.expect(c.parenL), + (n.params = this.parseBindingList( + c.parenR, + !1, + this.options.ecmaVersion >= 8 + )), + this.checkYieldAwaitInDefaultParams(); + }), + (te.parseClass = function (n, o) { + this.next(); + var l = this.strict; + (this.strict = !0), this.parseClassId(n, o), this.parseClassSuper(n); + var h = this.enterClassBody(), + m = this.startNode(), + I = !1; + for (m.body = [], this.expect(c.braceL); this.type !== c.braceR; ) { + var R = this.parseClassElement(n.superClass !== null); + R && + (m.body.push(R), + R.type === 'MethodDefinition' && R.kind === 'constructor' + ? (I && + this.raiseRecoverable( + R.start, + 'Duplicate constructor in the same class' + ), + (I = !0)) + : R.key && + R.key.type === 'PrivateIdentifier' && + bi(h, R) && + this.raiseRecoverable( + R.key.start, + "Identifier '#" + R.key.name + "' has already been declared" + )); + } + return ( + (this.strict = l), + this.next(), + (n.body = this.finishNode(m, 'ClassBody')), + this.exitClassBody(), + this.finishNode(n, o ? 'ClassDeclaration' : 'ClassExpression') + ); + }), + (te.parseClassElement = function (n) { + if (this.eat(c.semi)) return null; + var o = this.options.ecmaVersion, + l = this.startNode(), + h = '', + m = !1, + I = !1, + R = 'method', + Y = !1; + if (this.eatContextual('static')) { + if (o >= 13 && this.eat(c.braceL)) + return this.parseClassStaticBlock(l), l; + this.isClassElementNameStart() || this.type === c.star + ? (Y = !0) + : (h = 'static'); + } + if ( + ((l.static = Y), + !h && + o >= 8 && + this.eatContextual('async') && + ((this.isClassElementNameStart() || this.type === c.star) && + !this.canInsertSemicolon() + ? (I = !0) + : (h = 'async')), + !h && (o >= 9 || !I) && this.eat(c.star) && (m = !0), + !h && !I && !m) + ) { + var Q = this.value; + (this.eatContextual('get') || this.eatContextual('set')) && + (this.isClassElementNameStart() ? (R = Q) : (h = Q)); + } + if ( + (h + ? ((l.computed = !1), + (l.key = this.startNodeAt( + this.lastTokStart, + this.lastTokStartLoc + )), + (l.key.name = h), + this.finishNode(l.key, 'Identifier')) + : this.parseClassElementName(l), + o < 13 || this.type === c.parenL || R !== 'method' || m || I) + ) { + var ye = !l.static && es(l, 'constructor'), + xe = ye && n; + ye && + R !== 'method' && + this.raise( + l.key.start, + "Constructor can't have get/set modifier" + ), + (l.kind = ye ? 'constructor' : R), + this.parseClassMethod(l, m, I, xe); + } else this.parseClassField(l); + return l; + }), + (te.isClassElementNameStart = function () { + return ( + this.type === c.name || + this.type === c.privateId || + this.type === c.num || + this.type === c.string || + this.type === c.bracketL || + this.type.keyword + ); + }), + (te.parseClassElementName = function (n) { + this.type === c.privateId + ? (this.value === 'constructor' && + this.raise( + this.start, + "Classes can't have an element named '#constructor'" + ), + (n.computed = !1), + (n.key = this.parsePrivateIdent())) + : this.parsePropertyName(n); + }), + (te.parseClassMethod = function (n, o, l, h) { + var m = n.key; + n.kind === 'constructor' + ? (o && this.raise(m.start, "Constructor can't be a generator"), + l && this.raise(m.start, "Constructor can't be an async method")) + : n.static && + es(n, 'prototype') && + this.raise( + m.start, + 'Classes may not have a static property named prototype' + ); + var I = (n.value = this.parseMethod(o, l, h)); + return ( + n.kind === 'get' && + I.params.length !== 0 && + this.raiseRecoverable(I.start, 'getter should have no params'), + n.kind === 'set' && + I.params.length !== 1 && + this.raiseRecoverable( + I.start, + 'setter should have exactly one param' + ), + n.kind === 'set' && + I.params[0].type === 'RestElement' && + this.raiseRecoverable( + I.params[0].start, + 'Setter cannot use rest params' + ), + this.finishNode(n, 'MethodDefinition') + ); + }), + (te.parseClassField = function (n) { + return ( + es(n, 'constructor') + ? this.raise( + n.key.start, + "Classes can't have a field named 'constructor'" + ) + : n.static && + es(n, 'prototype') && + this.raise( + n.key.start, + "Classes can't have a static field named 'prototype'" + ), + this.eat(c.eq) + ? (this.enterScope(We | Ee), + (n.value = this.parseMaybeAssign()), + this.exitScope()) + : (n.value = null), + this.semicolon(), + this.finishNode(n, 'PropertyDefinition') + ); + }), + (te.parseClassStaticBlock = function (n) { + n.body = []; + var o = this.labels; + for ( + this.labels = [], this.enterScope(Xe | Ee); + this.type !== c.braceR; + + ) { + var l = this.parseStatement(null); + n.body.push(l); + } + return ( + this.next(), + this.exitScope(), + (this.labels = o), + this.finishNode(n, 'StaticBlock') + ); + }), + (te.parseClassId = function (n, o) { + this.type === c.name + ? ((n.id = this.parseIdent()), + o && this.checkLValSimple(n.id, Tt, !1)) + : (o === !0 && this.unexpected(), (n.id = null)); + }), + (te.parseClassSuper = function (n) { + n.superClass = this.eat(c._extends) + ? this.parseExprSubscripts(null, !1) + : null; + }), + (te.enterClassBody = function () { + var n = {declared: Object.create(null), used: []}; + return this.privateNameStack.push(n), n.declared; + }), + (te.exitClassBody = function () { + var n = this.privateNameStack.pop(), + o = n.declared, + l = n.used; + if (this.options.checkPrivateFields) + for ( + var h = this.privateNameStack.length, + m = h === 0 ? null : this.privateNameStack[h - 1], + I = 0; + I < l.length; + ++I + ) { + var R = l[I]; + mt(o, R.name) || + (m + ? m.used.push(R) + : this.raiseRecoverable( + R.start, + "Private field '#" + + R.name + + "' must be declared in an enclosing class" + )); + } + }); + function bi(n, o) { + var l = o.key.name, + h = n[l], + m = 'true'; + return ( + o.type === 'MethodDefinition' && + (o.kind === 'get' || o.kind === 'set') && + (m = (o.static ? 's' : 'i') + o.kind), + (h === 'iget' && m === 'iset') || + (h === 'iset' && m === 'iget') || + (h === 'sget' && m === 'sset') || + (h === 'sset' && m === 'sget') + ? ((n[l] = 'true'), !1) + : h + ? !0 + : ((n[l] = m), !1) + ); + } + function es(n, o) { + var l = n.computed, + h = n.key; + return ( + !l && + ((h.type === 'Identifier' && h.name === o) || + (h.type === 'Literal' && h.value === o)) + ); + } + (te.parseExportAllDeclaration = function (n, o) { + return ( + this.options.ecmaVersion >= 11 && + (this.eatContextual('as') + ? ((n.exported = this.parseModuleExportName()), + this.checkExport(o, n.exported, this.lastTokStart)) + : (n.exported = null)), + this.expectContextual('from'), + this.type !== c.string && this.unexpected(), + (n.source = this.parseExprAtom()), + this.options.ecmaVersion >= 16 && + (n.attributes = this.parseWithClause()), + this.semicolon(), + this.finishNode(n, 'ExportAllDeclaration') + ); + }), + (te.parseExport = function (n, o) { + if ((this.next(), this.eat(c.star))) + return this.parseExportAllDeclaration(n, o); + if (this.eat(c._default)) + return ( + this.checkExport(o, 'default', this.lastTokStart), + (n.declaration = this.parseExportDefaultDeclaration()), + this.finishNode(n, 'ExportDefaultDeclaration') + ); + if (this.shouldParseExportStatement()) + (n.declaration = this.parseExportDeclaration(n)), + n.declaration.type === 'VariableDeclaration' + ? this.checkVariableExport(o, n.declaration.declarations) + : this.checkExport(o, n.declaration.id, n.declaration.id.start), + (n.specifiers = []), + (n.source = null), + this.options.ecmaVersion >= 16 && (n.attributes = []); + else { + if ( + ((n.declaration = null), + (n.specifiers = this.parseExportSpecifiers(o)), + this.eatContextual('from')) + ) + this.type !== c.string && this.unexpected(), + (n.source = this.parseExprAtom()), + this.options.ecmaVersion >= 16 && + (n.attributes = this.parseWithClause()); + else { + for (var l = 0, h = n.specifiers; l < h.length; l += 1) { + var m = h[l]; + this.checkUnreserved(m.local), + this.checkLocalExport(m.local), + m.local.type === 'Literal' && + this.raise( + m.local.start, + 'A string literal cannot be used as an exported binding without `from`.' + ); + } + (n.source = null), + this.options.ecmaVersion >= 16 && (n.attributes = []); + } + this.semicolon(); + } + return this.finishNode(n, 'ExportNamedDeclaration'); + }), + (te.parseExportDeclaration = function (n) { + return this.parseStatement(null); + }), + (te.parseExportDefaultDeclaration = function () { + var n; + if (this.type === c._function || (n = this.isAsyncFunction())) { + var o = this.startNode(); + return ( + this.next(), + n && this.next(), + this.parseFunction(o, Mn | Ds, !1, n) + ); + } else if (this.type === c._class) { + var l = this.startNode(); + return this.parseClass(l, 'nullableID'); + } else { + var h = this.parseMaybeAssign(); + return this.semicolon(), h; + } + }), + (te.checkExport = function (n, o, l) { + n && + (typeof o != 'string' && + (o = o.type === 'Identifier' ? o.name : o.value), + mt(n, o) && + this.raiseRecoverable(l, "Duplicate export '" + o + "'"), + (n[o] = !0)); + }), + (te.checkPatternExport = function (n, o) { + var l = o.type; + if (l === 'Identifier') this.checkExport(n, o, o.start); + else if (l === 'ObjectPattern') + for (var h = 0, m = o.properties; h < m.length; h += 1) { + var I = m[h]; + this.checkPatternExport(n, I); + } + else if (l === 'ArrayPattern') + for (var R = 0, Y = o.elements; R < Y.length; R += 1) { + var Q = Y[R]; + Q && this.checkPatternExport(n, Q); + } + else + l === 'Property' + ? this.checkPatternExport(n, o.value) + : l === 'AssignmentPattern' + ? this.checkPatternExport(n, o.left) + : l === 'RestElement' && this.checkPatternExport(n, o.argument); + }), + (te.checkVariableExport = function (n, o) { + if (n) + for (var l = 0, h = o; l < h.length; l += 1) { + var m = h[l]; + this.checkPatternExport(n, m.id); + } + }), + (te.shouldParseExportStatement = function () { + return ( + this.type.keyword === 'var' || + this.type.keyword === 'const' || + this.type.keyword === 'class' || + this.type.keyword === 'function' || + this.isLet() || + this.isAsyncFunction() + ); + }), + (te.parseExportSpecifier = function (n) { + var o = this.startNode(); + return ( + (o.local = this.parseModuleExportName()), + (o.exported = this.eatContextual('as') + ? this.parseModuleExportName() + : o.local), + this.checkExport(n, o.exported, o.exported.start), + this.finishNode(o, 'ExportSpecifier') + ); + }), + (te.parseExportSpecifiers = function (n) { + var o = [], + l = !0; + for (this.expect(c.braceL); !this.eat(c.braceR); ) { + if (l) l = !1; + else if ((this.expect(c.comma), this.afterTrailingComma(c.braceR))) + break; + o.push(this.parseExportSpecifier(n)); + } + return o; + }), + (te.parseImport = function (n) { + return ( + this.next(), + this.type === c.string + ? ((n.specifiers = _i), (n.source = this.parseExprAtom())) + : ((n.specifiers = this.parseImportSpecifiers()), + this.expectContextual('from'), + (n.source = + this.type === c.string + ? this.parseExprAtom() + : this.unexpected())), + this.options.ecmaVersion >= 16 && + (n.attributes = this.parseWithClause()), + this.semicolon(), + this.finishNode(n, 'ImportDeclaration') + ); + }), + (te.parseImportSpecifier = function () { + var n = this.startNode(); + return ( + (n.imported = this.parseModuleExportName()), + this.eatContextual('as') + ? (n.local = this.parseIdent()) + : (this.checkUnreserved(n.imported), (n.local = n.imported)), + this.checkLValSimple(n.local, Tt), + this.finishNode(n, 'ImportSpecifier') + ); + }), + (te.parseImportDefaultSpecifier = function () { + var n = this.startNode(); + return ( + (n.local = this.parseIdent()), + this.checkLValSimple(n.local, Tt), + this.finishNode(n, 'ImportDefaultSpecifier') + ); + }), + (te.parseImportNamespaceSpecifier = function () { + var n = this.startNode(); + return ( + this.next(), + this.expectContextual('as'), + (n.local = this.parseIdent()), + this.checkLValSimple(n.local, Tt), + this.finishNode(n, 'ImportNamespaceSpecifier') + ); + }), + (te.parseImportSpecifiers = function () { + var n = [], + o = !0; + if ( + this.type === c.name && + (n.push(this.parseImportDefaultSpecifier()), !this.eat(c.comma)) + ) + return n; + if (this.type === c.star) + return n.push(this.parseImportNamespaceSpecifier()), n; + for (this.expect(c.braceL); !this.eat(c.braceR); ) { + if (o) o = !1; + else if ((this.expect(c.comma), this.afterTrailingComma(c.braceR))) + break; + n.push(this.parseImportSpecifier()); + } + return n; + }), + (te.parseWithClause = function () { + var n = []; + if (!this.eat(c._with)) return n; + this.expect(c.braceL); + for (var o = {}, l = !0; !this.eat(c.braceR); ) { + if (l) l = !1; + else if ((this.expect(c.comma), this.afterTrailingComma(c.braceR))) + break; + var h = this.parseImportAttribute(), + m = h.key.type === 'Identifier' ? h.key.name : h.key.value; + mt(o, m) && + this.raiseRecoverable( + h.key.start, + "Duplicate attribute key '" + m + "'" + ), + (o[m] = !0), + n.push(h); + } + return n; + }), + (te.parseImportAttribute = function () { + var n = this.startNode(); + return ( + (n.key = + this.type === c.string + ? this.parseExprAtom() + : this.parseIdent(this.options.allowReserved !== 'never')), + this.expect(c.colon), + this.type !== c.string && this.unexpected(), + (n.value = this.parseExprAtom()), + this.finishNode(n, 'ImportAttribute') + ); + }), + (te.parseModuleExportName = function () { + if (this.options.ecmaVersion >= 13 && this.type === c.string) { + var n = this.parseLiteral(this.value); + return ( + _t.test(n.value) && + this.raise( + n.start, + 'An export name cannot include a lone surrogate.' + ), + n + ); + } + return this.parseIdent(!0); + }), + (te.adaptDirectivePrologue = function (n) { + for (var o = 0; o < n.length && this.isDirectiveCandidate(n[o]); ++o) + n[o].directive = n[o].expression.raw.slice(1, -1); + }), + (te.isDirectiveCandidate = function (n) { + return ( + this.options.ecmaVersion >= 5 && + n.type === 'ExpressionStatement' && + n.expression.type === 'Literal' && + typeof n.expression.value == 'string' && + (this.input[n.start] === '"' || this.input[n.start] === "'") + ); + }); + var Nt = Ge.prototype; + (Nt.toAssignable = function (n, o, l) { + if (this.options.ecmaVersion >= 6 && n) + switch (n.type) { + case 'Identifier': + this.inAsync && + n.name === 'await' && + this.raise( + n.start, + "Cannot use 'await' as identifier inside an async function" + ); + break; + case 'ObjectPattern': + case 'ArrayPattern': + case 'AssignmentPattern': + case 'RestElement': + break; + case 'ObjectExpression': + (n.type = 'ObjectPattern'), l && this.checkPatternErrors(l, !0); + for (var h = 0, m = n.properties; h < m.length; h += 1) { + var I = m[h]; + this.toAssignable(I, o), + I.type === 'RestElement' && + (I.argument.type === 'ArrayPattern' || + I.argument.type === 'ObjectPattern') && + this.raise(I.argument.start, 'Unexpected token'); + } + break; + case 'Property': + n.kind !== 'init' && + this.raise( + n.key.start, + "Object pattern can't contain getter or setter" + ), + this.toAssignable(n.value, o); + break; + case 'ArrayExpression': + (n.type = 'ArrayPattern'), + l && this.checkPatternErrors(l, !0), + this.toAssignableList(n.elements, o); + break; + case 'SpreadElement': + (n.type = 'RestElement'), + this.toAssignable(n.argument, o), + n.argument.type === 'AssignmentPattern' && + this.raise( + n.argument.start, + 'Rest elements cannot have a default value' + ); + break; + case 'AssignmentExpression': + n.operator !== '=' && + this.raise( + n.left.end, + "Only '=' operator can be used for specifying default value." + ), + (n.type = 'AssignmentPattern'), + delete n.operator, + this.toAssignable(n.left, o); + break; + case 'ParenthesizedExpression': + this.toAssignable(n.expression, o, l); + break; + case 'ChainExpression': + this.raiseRecoverable( + n.start, + 'Optional chaining cannot appear in left-hand side' + ); + break; + case 'MemberExpression': + if (!o) break; + default: + this.raise(n.start, 'Assigning to rvalue'); + } + else l && this.checkPatternErrors(l, !0); + return n; + }), + (Nt.toAssignableList = function (n, o) { + for (var l = n.length, h = 0; h < l; h++) { + var m = n[h]; + m && this.toAssignable(m, o); + } + if (l) { + var I = n[l - 1]; + this.options.ecmaVersion === 6 && + o && + I && + I.type === 'RestElement' && + I.argument.type !== 'Identifier' && + this.unexpected(I.argument.start); + } + return n; + }), + (Nt.parseSpread = function (n) { + var o = this.startNode(); + return ( + this.next(), + (o.argument = this.parseMaybeAssign(!1, n)), + this.finishNode(o, 'SpreadElement') + ); + }), + (Nt.parseRestBinding = function () { + var n = this.startNode(); + return ( + this.next(), + this.options.ecmaVersion === 6 && + this.type !== c.name && + this.unexpected(), + (n.argument = this.parseBindingAtom()), + this.finishNode(n, 'RestElement') + ); + }), + (Nt.parseBindingAtom = function () { + if (this.options.ecmaVersion >= 6) + switch (this.type) { + case c.bracketL: + var n = this.startNode(); + return ( + this.next(), + (n.elements = this.parseBindingList(c.bracketR, !0, !0)), + this.finishNode(n, 'ArrayPattern') + ); + case c.braceL: + return this.parseObj(!0); + } + return this.parseIdent(); + }), + (Nt.parseBindingList = function (n, o, l, h) { + for (var m = [], I = !0; !this.eat(n); ) + if ( + (I ? (I = !1) : this.expect(c.comma), o && this.type === c.comma) + ) + m.push(null); + else { + if (l && this.afterTrailingComma(n)) break; + if (this.type === c.ellipsis) { + var R = this.parseRestBinding(); + this.parseBindingListItem(R), + m.push(R), + this.type === c.comma && + this.raiseRecoverable( + this.start, + 'Comma is not permitted after the rest element' + ), + this.expect(n); + break; + } else m.push(this.parseAssignableListItem(h)); + } + return m; + }), + (Nt.parseAssignableListItem = function (n) { + var o = this.parseMaybeDefault(this.start, this.startLoc); + return this.parseBindingListItem(o), o; + }), + (Nt.parseBindingListItem = function (n) { + return n; + }), + (Nt.parseMaybeDefault = function (n, o, l) { + if ( + ((l = l || this.parseBindingAtom()), + this.options.ecmaVersion < 6 || !this.eat(c.eq)) + ) + return l; + var h = this.startNodeAt(n, o); + return ( + (h.left = l), + (h.right = this.parseMaybeAssign()), + this.finishNode(h, 'AssignmentPattern') + ); + }), + (Nt.checkLValSimple = function (n, o, l) { + o === void 0 && (o = pt); + var h = o !== pt; + switch (n.type) { + case 'Identifier': + this.strict && + this.reservedWordsStrictBind.test(n.name) && + this.raiseRecoverable( + n.start, + (h ? 'Binding ' : 'Assigning to ') + + n.name + + ' in strict mode' + ), + h && + (o === Tt && + n.name === 'let' && + this.raiseRecoverable( + n.start, + 'let is disallowed as a lexically bound name' + ), + l && + (mt(l, n.name) && + this.raiseRecoverable(n.start, 'Argument name clash'), + (l[n.name] = !0)), + o !== Dn && this.declareName(n.name, o, n.start)); + break; + case 'ChainExpression': + this.raiseRecoverable( + n.start, + 'Optional chaining cannot appear in left-hand side' + ); + break; + case 'MemberExpression': + h && this.raiseRecoverable(n.start, 'Binding member expression'); + break; + case 'ParenthesizedExpression': + return ( + h && + this.raiseRecoverable( + n.start, + 'Binding parenthesized expression' + ), + this.checkLValSimple(n.expression, o, l) + ); + default: + this.raise(n.start, (h ? 'Binding' : 'Assigning to') + ' rvalue'); + } + }), + (Nt.checkLValPattern = function (n, o, l) { + switch ((o === void 0 && (o = pt), n.type)) { + case 'ObjectPattern': + for (var h = 0, m = n.properties; h < m.length; h += 1) { + var I = m[h]; + this.checkLValInnerPattern(I, o, l); + } + break; + case 'ArrayPattern': + for (var R = 0, Y = n.elements; R < Y.length; R += 1) { + var Q = Y[R]; + Q && this.checkLValInnerPattern(Q, o, l); + } + break; + default: + this.checkLValSimple(n, o, l); + } + }), + (Nt.checkLValInnerPattern = function (n, o, l) { + switch ((o === void 0 && (o = pt), n.type)) { + case 'Property': + this.checkLValInnerPattern(n.value, o, l); + break; + case 'AssignmentPattern': + this.checkLValPattern(n.left, o, l); + break; + case 'RestElement': + this.checkLValPattern(n.argument, o, l); + break; + default: + this.checkLValPattern(n, o, l); + } + }); + var Rt = function (o, l, h, m, I) { + (this.token = o), + (this.isExpr = !!l), + (this.preserveSpace = !!h), + (this.override = m), + (this.generator = !!I); + }, + Ue = { + b_stat: new Rt('{', !1), + b_expr: new Rt('{', !0), + b_tmpl: new Rt('${', !1), + p_stat: new Rt('(', !1), + p_expr: new Rt('(', !0), + q_tmpl: new Rt('`', !0, !0, function (n) { + return n.tryReadTemplateToken(); + }), + f_stat: new Rt('function', !1), + f_expr: new Rt('function', !0), + f_expr_gen: new Rt('function', !0, !1, null, !0), + f_gen: new Rt('function', !1, !1, null, !0), + }, + wn = Ge.prototype; + (wn.initialContext = function () { + return [Ue.b_stat]; + }), + (wn.curContext = function () { + return this.context[this.context.length - 1]; + }), + (wn.braceIsBlock = function (n) { + var o = this.curContext(); + return o === Ue.f_expr || o === Ue.f_stat + ? !0 + : n === c.colon && (o === Ue.b_stat || o === Ue.b_expr) + ? !o.isExpr + : n === c._return || (n === c.name && this.exprAllowed) + ? M.test(this.input.slice(this.lastTokEnd, this.start)) + : n === c._else || + n === c.semi || + n === c.eof || + n === c.parenR || + n === c.arrow + ? !0 + : n === c.braceL + ? o === Ue.b_stat + : n === c._var || n === c._const || n === c.name + ? !1 + : !this.exprAllowed; + }), + (wn.inGeneratorContext = function () { + for (var n = this.context.length - 1; n >= 1; n--) { + var o = this.context[n]; + if (o.token === 'function') return o.generator; + } + return !1; + }), + (wn.updateContext = function (n) { + var o, + l = this.type; + l.keyword && n === c.dot + ? (this.exprAllowed = !1) + : (o = l.updateContext) + ? o.call(this, n) + : (this.exprAllowed = l.beforeExpr); + }), + (wn.overrideContext = function (n) { + this.curContext() !== n && + (this.context[this.context.length - 1] = n); + }), + (c.parenR.updateContext = c.braceR.updateContext = + function () { + if (this.context.length === 1) { + this.exprAllowed = !0; + return; + } + var n = this.context.pop(); + n === Ue.b_stat && + this.curContext().token === 'function' && + (n = this.context.pop()), + (this.exprAllowed = !n.isExpr); + }), + (c.braceL.updateContext = function (n) { + this.context.push(this.braceIsBlock(n) ? Ue.b_stat : Ue.b_expr), + (this.exprAllowed = !0); + }), + (c.dollarBraceL.updateContext = function () { + this.context.push(Ue.b_tmpl), (this.exprAllowed = !0); + }), + (c.parenL.updateContext = function (n) { + var o = + n === c._if || n === c._for || n === c._with || n === c._while; + this.context.push(o ? Ue.p_stat : Ue.p_expr), (this.exprAllowed = !0); + }), + (c.incDec.updateContext = function () {}), + (c._function.updateContext = c._class.updateContext = + function (n) { + n.beforeExpr && + n !== c._else && + !(n === c.semi && this.curContext() !== Ue.p_stat) && + !( + n === c._return && + M.test(this.input.slice(this.lastTokEnd, this.start)) + ) && + !( + (n === c.colon || n === c.braceL) && + this.curContext() === Ue.b_stat + ) + ? this.context.push(Ue.f_expr) + : this.context.push(Ue.f_stat), + (this.exprAllowed = !1); + }), + (c.colon.updateContext = function () { + this.curContext().token === 'function' && this.context.pop(), + (this.exprAllowed = !0); + }), + (c.backQuote.updateContext = function () { + this.curContext() === Ue.q_tmpl + ? this.context.pop() + : this.context.push(Ue.q_tmpl), + (this.exprAllowed = !1); + }), + (c.star.updateContext = function (n) { + if (n === c._function) { + var o = this.context.length - 1; + this.context[o] === Ue.f_expr + ? (this.context[o] = Ue.f_expr_gen) + : (this.context[o] = Ue.f_gen); + } + this.exprAllowed = !0; + }), + (c.name.updateContext = function (n) { + var o = !1; + this.options.ecmaVersion >= 6 && + n !== c.dot && + ((this.value === 'of' && !this.exprAllowed) || + (this.value === 'yield' && this.inGeneratorContext())) && + (o = !0), + (this.exprAllowed = o); + }); + var de = Ge.prototype; + (de.checkPropClash = function (n, o, l) { + if ( + !(this.options.ecmaVersion >= 9 && n.type === 'SpreadElement') && + !( + this.options.ecmaVersion >= 6 && + (n.computed || n.method || n.shorthand) + ) + ) { + var h = n.key, + m; + switch (h.type) { + case 'Identifier': + m = h.name; + break; + case 'Literal': + m = String(h.value); + break; + default: + return; + } + var I = n.kind; + if (this.options.ecmaVersion >= 6) { + m === '__proto__' && + I === 'init' && + (o.proto && + (l + ? l.doubleProto < 0 && (l.doubleProto = h.start) + : this.raiseRecoverable( + h.start, + 'Redefinition of __proto__ property' + )), + (o.proto = !0)); + return; + } + m = '$' + m; + var R = o[m]; + if (R) { + var Y; + I === 'init' + ? (Y = (this.strict && R.init) || R.get || R.set) + : (Y = R.init || R[I]), + Y && this.raiseRecoverable(h.start, 'Redefinition of property'); + } else R = o[m] = {init: !1, get: !1, set: !1}; + R[I] = !0; + } + }), + (de.parseExpression = function (n, o) { + var l = this.start, + h = this.startLoc, + m = this.parseMaybeAssign(n, o); + if (this.type === c.comma) { + var I = this.startNodeAt(l, h); + for (I.expressions = [m]; this.eat(c.comma); ) + I.expressions.push(this.parseMaybeAssign(n, o)); + return this.finishNode(I, 'SequenceExpression'); + } + return m; + }), + (de.parseMaybeAssign = function (n, o, l) { + if (this.isContextual('yield')) { + if (this.inGenerator) return this.parseYield(n); + this.exprAllowed = !1; + } + var h = !1, + m = -1, + I = -1, + R = -1; + o + ? ((m = o.parenthesizedAssign), + (I = o.trailingComma), + (R = o.doubleProto), + (o.parenthesizedAssign = o.trailingComma = -1)) + : ((o = new Xt()), (h = !0)); + var Y = this.start, + Q = this.startLoc; + (this.type === c.parenL || this.type === c.name) && + ((this.potentialArrowAt = this.start), + (this.potentialArrowInForAwait = n === 'await')); + var ye = this.parseMaybeConditional(n, o); + if ((l && (ye = l.call(this, ye, Y, Q)), this.type.isAssign)) { + var xe = this.startNodeAt(Y, Q); + return ( + (xe.operator = this.value), + this.type === c.eq && (ye = this.toAssignable(ye, !1, o)), + h || + (o.parenthesizedAssign = o.trailingComma = o.doubleProto = -1), + o.shorthandAssign >= ye.start && (o.shorthandAssign = -1), + this.type === c.eq + ? this.checkLValPattern(ye) + : this.checkLValSimple(ye), + (xe.left = ye), + this.next(), + (xe.right = this.parseMaybeAssign(n)), + R > -1 && (o.doubleProto = R), + this.finishNode(xe, 'AssignmentExpression') + ); + } else h && this.checkExpressionErrors(o, !0); + return ( + m > -1 && (o.parenthesizedAssign = m), + I > -1 && (o.trailingComma = I), + ye + ); + }), + (de.parseMaybeConditional = function (n, o) { + var l = this.start, + h = this.startLoc, + m = this.parseExprOps(n, o); + if (this.checkExpressionErrors(o)) return m; + if (this.eat(c.question)) { + var I = this.startNodeAt(l, h); + return ( + (I.test = m), + (I.consequent = this.parseMaybeAssign()), + this.expect(c.colon), + (I.alternate = this.parseMaybeAssign(n)), + this.finishNode(I, 'ConditionalExpression') + ); + } + return m; + }), + (de.parseExprOps = function (n, o) { + var l = this.start, + h = this.startLoc, + m = this.parseMaybeUnary(o, !1, !1, n); + return this.checkExpressionErrors(o) || + (m.start === l && m.type === 'ArrowFunctionExpression') + ? m + : this.parseExprOp(m, l, h, -1, n); + }), + (de.parseExprOp = function (n, o, l, h, m) { + var I = this.type.binop; + if (I != null && (!m || this.type !== c._in) && I > h) { + var R = this.type === c.logicalOR || this.type === c.logicalAND, + Y = this.type === c.coalesce; + Y && (I = c.logicalAND.binop); + var Q = this.value; + this.next(); + var ye = this.start, + xe = this.startLoc, + Ze = this.parseExprOp( + this.parseMaybeUnary(null, !1, !1, m), + ye, + xe, + I, + m + ), + Lt = this.buildBinary(o, l, n, Ze, Q, R || Y); + return ( + ((R && this.type === c.coalesce) || + (Y && + (this.type === c.logicalOR || this.type === c.logicalAND))) && + this.raiseRecoverable( + this.start, + 'Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses' + ), + this.parseExprOp(Lt, o, l, h, m) + ); + } + return n; + }), + (de.buildBinary = function (n, o, l, h, m, I) { + h.type === 'PrivateIdentifier' && + this.raise( + h.start, + 'Private identifier can only be left side of binary expression' + ); + var R = this.startNodeAt(n, o); + return ( + (R.left = l), + (R.operator = m), + (R.right = h), + this.finishNode(R, I ? 'LogicalExpression' : 'BinaryExpression') + ); + }), + (de.parseMaybeUnary = function (n, o, l, h) { + var m = this.start, + I = this.startLoc, + R; + if (this.isContextual('await') && this.canAwait) + (R = this.parseAwait(h)), (o = !0); + else if (this.type.prefix) { + var Y = this.startNode(), + Q = this.type === c.incDec; + (Y.operator = this.value), + (Y.prefix = !0), + this.next(), + (Y.argument = this.parseMaybeUnary(null, !0, Q, h)), + this.checkExpressionErrors(n, !0), + Q + ? this.checkLValSimple(Y.argument) + : this.strict && Y.operator === 'delete' && Ms(Y.argument) + ? this.raiseRecoverable( + Y.start, + 'Deleting local variable in strict mode' + ) + : Y.operator === 'delete' && gs(Y.argument) + ? this.raiseRecoverable( + Y.start, + 'Private fields can not be deleted' + ) + : (o = !0), + (R = this.finishNode( + Y, + Q ? 'UpdateExpression' : 'UnaryExpression' + )); + } else if (!o && this.type === c.privateId) + (h || this.privateNameStack.length === 0) && + this.options.checkPrivateFields && + this.unexpected(), + (R = this.parsePrivateIdent()), + this.type !== c._in && this.unexpected(); + else { + if ( + ((R = this.parseExprSubscripts(n, h)), + this.checkExpressionErrors(n)) + ) + return R; + for (; this.type.postfix && !this.canInsertSemicolon(); ) { + var ye = this.startNodeAt(m, I); + (ye.operator = this.value), + (ye.prefix = !1), + (ye.argument = R), + this.checkLValSimple(R), + this.next(), + (R = this.finishNode(ye, 'UpdateExpression')); + } + } + if (!l && this.eat(c.starstar)) + if (o) this.unexpected(this.lastTokStart); + else + return this.buildBinary( + m, + I, + R, + this.parseMaybeUnary(null, !1, !1, h), + '**', + !1 + ); + else return R; + }); + function Ms(n) { + return ( + n.type === 'Identifier' || + (n.type === 'ParenthesizedExpression' && Ms(n.expression)) + ); + } + function gs(n) { + return ( + (n.type === 'MemberExpression' && + n.property.type === 'PrivateIdentifier') || + (n.type === 'ChainExpression' && gs(n.expression)) || + (n.type === 'ParenthesizedExpression' && gs(n.expression)) + ); + } + (de.parseExprSubscripts = function (n, o) { + var l = this.start, + h = this.startLoc, + m = this.parseExprAtom(n, o); + if ( + m.type === 'ArrowFunctionExpression' && + this.input.slice(this.lastTokStart, this.lastTokEnd) !== ')' + ) + return m; + var I = this.parseSubscripts(m, l, h, !1, o); + return ( + n && + I.type === 'MemberExpression' && + (n.parenthesizedAssign >= I.start && (n.parenthesizedAssign = -1), + n.parenthesizedBind >= I.start && (n.parenthesizedBind = -1), + n.trailingComma >= I.start && (n.trailingComma = -1)), + I + ); + }), + (de.parseSubscripts = function (n, o, l, h, m) { + for ( + var I = + this.options.ecmaVersion >= 8 && + n.type === 'Identifier' && + n.name === 'async' && + this.lastTokEnd === n.end && + !this.canInsertSemicolon() && + n.end - n.start === 5 && + this.potentialArrowAt === n.start, + R = !1; + ; + + ) { + var Y = this.parseSubscript(n, o, l, h, I, R, m); + if ( + (Y.optional && (R = !0), + Y === n || Y.type === 'ArrowFunctionExpression') + ) { + if (R) { + var Q = this.startNodeAt(o, l); + (Q.expression = Y), (Y = this.finishNode(Q, 'ChainExpression')); + } + return Y; + } + n = Y; + } + }), + (de.shouldParseAsyncArrow = function () { + return !this.canInsertSemicolon() && this.eat(c.arrow); + }), + (de.parseSubscriptAsyncArrow = function (n, o, l, h) { + return this.parseArrowExpression(this.startNodeAt(n, o), l, !0, h); + }), + (de.parseSubscript = function (n, o, l, h, m, I, R) { + var Y = this.options.ecmaVersion >= 11, + Q = Y && this.eat(c.questionDot); + h && + Q && + this.raise( + this.lastTokStart, + 'Optional chaining cannot appear in the callee of new expressions' + ); + var ye = this.eat(c.bracketL); + if ( + ye || + (Q && this.type !== c.parenL && this.type !== c.backQuote) || + this.eat(c.dot) + ) { + var xe = this.startNodeAt(o, l); + (xe.object = n), + ye + ? ((xe.property = this.parseExpression()), + this.expect(c.bracketR)) + : this.type === c.privateId && n.type !== 'Super' + ? (xe.property = this.parsePrivateIdent()) + : (xe.property = this.parseIdent( + this.options.allowReserved !== 'never' + )), + (xe.computed = !!ye), + Y && (xe.optional = Q), + (n = this.finishNode(xe, 'MemberExpression')); + } else if (!h && this.eat(c.parenL)) { + var Ze = new Xt(), + Lt = this.yieldPos, + Ri = this.awaitPos, + Ys = this.awaitIdentPos; + (this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0); + var gr = this.parseExprList( + c.parenR, + this.options.ecmaVersion >= 8, + !1, + Ze + ); + if (m && !Q && this.shouldParseAsyncArrow()) + return ( + this.checkPatternErrors(Ze, !1), + this.checkYieldAwaitInDefaultParams(), + this.awaitIdentPos > 0 && + this.raise( + this.awaitIdentPos, + "Cannot use 'await' as identifier inside an async function" + ), + (this.yieldPos = Lt), + (this.awaitPos = Ri), + (this.awaitIdentPos = Ys), + this.parseSubscriptAsyncArrow(o, l, gr, R) + ); + this.checkExpressionErrors(Ze, !0), + (this.yieldPos = Lt || this.yieldPos), + (this.awaitPos = Ri || this.awaitPos), + (this.awaitIdentPos = Ys || this.awaitIdentPos); + var Js = this.startNodeAt(o, l); + (Js.callee = n), + (Js.arguments = gr), + Y && (Js.optional = Q), + (n = this.finishNode(Js, 'CallExpression')); + } else if (this.type === c.backQuote) { + (Q || I) && + this.raise( + this.start, + 'Optional chaining cannot appear in the tag of tagged template expressions' + ); + var Qs = this.startNodeAt(o, l); + (Qs.tag = n), + (Qs.quasi = this.parseTemplate({isTagged: !0})), + (n = this.finishNode(Qs, 'TaggedTemplateExpression')); + } + return n; + }), + (de.parseExprAtom = function (n, o, l) { + this.type === c.slash && this.readRegexp(); + var h, + m = this.potentialArrowAt === this.start; + switch (this.type) { + case c._super: + return ( + this.allowSuper || + this.raise(this.start, "'super' keyword outside a method"), + (h = this.startNode()), + this.next(), + this.type === c.parenL && + !this.allowDirectSuper && + this.raise( + h.start, + 'super() call outside constructor of a subclass' + ), + this.type !== c.dot && + this.type !== c.bracketL && + this.type !== c.parenL && + this.unexpected(), + this.finishNode(h, 'Super') + ); + case c._this: + return ( + (h = this.startNode()), + this.next(), + this.finishNode(h, 'ThisExpression') + ); + case c.name: + var I = this.start, + R = this.startLoc, + Y = this.containsEsc, + Q = this.parseIdent(!1); + if ( + this.options.ecmaVersion >= 8 && + !Y && + Q.name === 'async' && + !this.canInsertSemicolon() && + this.eat(c._function) + ) + return ( + this.overrideContext(Ue.f_expr), + this.parseFunction(this.startNodeAt(I, R), 0, !1, !0, o) + ); + if (m && !this.canInsertSemicolon()) { + if (this.eat(c.arrow)) + return this.parseArrowExpression( + this.startNodeAt(I, R), + [Q], + !1, + o + ); + if ( + this.options.ecmaVersion >= 8 && + Q.name === 'async' && + this.type === c.name && + !Y && + (!this.potentialArrowInForAwait || + this.value !== 'of' || + this.containsEsc) + ) + return ( + (Q = this.parseIdent(!1)), + (this.canInsertSemicolon() || !this.eat(c.arrow)) && + this.unexpected(), + this.parseArrowExpression( + this.startNodeAt(I, R), + [Q], + !0, + o + ) + ); + } + return Q; + case c.regexp: + var ye = this.value; + return ( + (h = this.parseLiteral(ye.value)), + (h.regex = {pattern: ye.pattern, flags: ye.flags}), + h + ); + case c.num: + case c.string: + return this.parseLiteral(this.value); + case c._null: + case c._true: + case c._false: + return ( + (h = this.startNode()), + (h.value = + this.type === c._null ? null : this.type === c._true), + (h.raw = this.type.keyword), + this.next(), + this.finishNode(h, 'Literal') + ); + case c.parenL: + var xe = this.start, + Ze = this.parseParenAndDistinguishExpression(m, o); + return ( + n && + (n.parenthesizedAssign < 0 && + !this.isSimpleAssignTarget(Ze) && + (n.parenthesizedAssign = xe), + n.parenthesizedBind < 0 && (n.parenthesizedBind = xe)), + Ze + ); + case c.bracketL: + return ( + (h = this.startNode()), + this.next(), + (h.elements = this.parseExprList(c.bracketR, !0, !0, n)), + this.finishNode(h, 'ArrayExpression') + ); + case c.braceL: + return this.overrideContext(Ue.b_expr), this.parseObj(!1, n); + case c._function: + return ( + (h = this.startNode()), this.next(), this.parseFunction(h, 0) + ); + case c._class: + return this.parseClass(this.startNode(), !1); + case c._new: + return this.parseNew(); + case c.backQuote: + return this.parseTemplate(); + case c._import: + return this.options.ecmaVersion >= 11 + ? this.parseExprImport(l) + : this.unexpected(); + default: + return this.parseExprAtomDefault(); + } + }), + (de.parseExprAtomDefault = function () { + this.unexpected(); + }), + (de.parseExprImport = function (n) { + var o = this.startNode(); + if ( + (this.containsEsc && + this.raiseRecoverable( + this.start, + 'Escape sequence in keyword import' + ), + this.next(), + this.type === c.parenL && !n) + ) + return this.parseDynamicImport(o); + if (this.type === c.dot) { + var l = this.startNodeAt(o.start, o.loc && o.loc.start); + return ( + (l.name = 'import'), + (o.meta = this.finishNode(l, 'Identifier')), + this.parseImportMeta(o) + ); + } else this.unexpected(); + }), + (de.parseDynamicImport = function (n) { + if ( + (this.next(), + (n.source = this.parseMaybeAssign()), + this.options.ecmaVersion >= 16) + ) + this.eat(c.parenR) + ? (n.options = null) + : (this.expect(c.comma), + this.afterTrailingComma(c.parenR) + ? (n.options = null) + : ((n.options = this.parseMaybeAssign()), + this.eat(c.parenR) || + (this.expect(c.comma), + this.afterTrailingComma(c.parenR) || this.unexpected()))); + else if (!this.eat(c.parenR)) { + var o = this.start; + this.eat(c.comma) && this.eat(c.parenR) + ? this.raiseRecoverable( + o, + 'Trailing comma is not allowed in import()' + ) + : this.unexpected(o); + } + return this.finishNode(n, 'ImportExpression'); + }), + (de.parseImportMeta = function (n) { + this.next(); + var o = this.containsEsc; + return ( + (n.property = this.parseIdent(!0)), + n.property.name !== 'meta' && + this.raiseRecoverable( + n.property.start, + "The only valid meta property for import is 'import.meta'" + ), + o && + this.raiseRecoverable( + n.start, + "'import.meta' must not contain escaped characters" + ), + this.options.sourceType !== 'module' && + !this.options.allowImportExportEverywhere && + this.raiseRecoverable( + n.start, + "Cannot use 'import.meta' outside a module" + ), + this.finishNode(n, 'MetaProperty') + ); + }), + (de.parseLiteral = function (n) { + var o = this.startNode(); + return ( + (o.value = n), + (o.raw = this.input.slice(this.start, this.end)), + o.raw.charCodeAt(o.raw.length - 1) === 110 && + (o.bigint = + o.value != null + ? o.value.toString() + : o.raw.slice(0, -1).replace(/_/g, '')), + this.next(), + this.finishNode(o, 'Literal') + ); + }), + (de.parseParenExpression = function () { + this.expect(c.parenL); + var n = this.parseExpression(); + return this.expect(c.parenR), n; + }), + (de.shouldParseArrow = function (n) { + return !this.canInsertSemicolon(); + }), + (de.parseParenAndDistinguishExpression = function (n, o) { + var l = this.start, + h = this.startLoc, + m, + I = this.options.ecmaVersion >= 8; + if (this.options.ecmaVersion >= 6) { + this.next(); + var R = this.start, + Y = this.startLoc, + Q = [], + ye = !0, + xe = !1, + Ze = new Xt(), + Lt = this.yieldPos, + Ri = this.awaitPos, + Ys; + for (this.yieldPos = 0, this.awaitPos = 0; this.type !== c.parenR; ) + if ( + (ye ? (ye = !1) : this.expect(c.comma), + I && this.afterTrailingComma(c.parenR, !0)) + ) { + xe = !0; + break; + } else if (this.type === c.ellipsis) { + (Ys = this.start), + Q.push(this.parseParenItem(this.parseRestBinding())), + this.type === c.comma && + this.raiseRecoverable( + this.start, + 'Comma is not permitted after the rest element' + ); + break; + } else Q.push(this.parseMaybeAssign(!1, Ze, this.parseParenItem)); + var gr = this.lastTokEnd, + Js = this.lastTokEndLoc; + if ( + (this.expect(c.parenR), + n && this.shouldParseArrow(Q) && this.eat(c.arrow)) + ) + return ( + this.checkPatternErrors(Ze, !1), + this.checkYieldAwaitInDefaultParams(), + (this.yieldPos = Lt), + (this.awaitPos = Ri), + this.parseParenArrowList(l, h, Q, o) + ); + (!Q.length || xe) && this.unexpected(this.lastTokStart), + Ys && this.unexpected(Ys), + this.checkExpressionErrors(Ze, !0), + (this.yieldPos = Lt || this.yieldPos), + (this.awaitPos = Ri || this.awaitPos), + Q.length > 1 + ? ((m = this.startNodeAt(R, Y)), + (m.expressions = Q), + this.finishNodeAt(m, 'SequenceExpression', gr, Js)) + : (m = Q[0]); + } else m = this.parseParenExpression(); + if (this.options.preserveParens) { + var Qs = this.startNodeAt(l, h); + return ( + (Qs.expression = m), + this.finishNode(Qs, 'ParenthesizedExpression') + ); + } else return m; + }), + (de.parseParenItem = function (n) { + return n; + }), + (de.parseParenArrowList = function (n, o, l, h) { + return this.parseArrowExpression(this.startNodeAt(n, o), l, !1, h); + }); + var Ci = []; + (de.parseNew = function () { + this.containsEsc && + this.raiseRecoverable(this.start, 'Escape sequence in keyword new'); + var n = this.startNode(); + if ( + (this.next(), this.options.ecmaVersion >= 6 && this.type === c.dot) + ) { + var o = this.startNodeAt(n.start, n.loc && n.loc.start); + (o.name = 'new'), + (n.meta = this.finishNode(o, 'Identifier')), + this.next(); + var l = this.containsEsc; + return ( + (n.property = this.parseIdent(!0)), + n.property.name !== 'target' && + this.raiseRecoverable( + n.property.start, + "The only valid meta property for new is 'new.target'" + ), + l && + this.raiseRecoverable( + n.start, + "'new.target' must not contain escaped characters" + ), + this.allowNewDotTarget || + this.raiseRecoverable( + n.start, + "'new.target' can only be used in functions and class static block" + ), + this.finishNode(n, 'MetaProperty') + ); + } + var h = this.start, + m = this.startLoc; + return ( + (n.callee = this.parseSubscripts( + this.parseExprAtom(null, !1, !0), + h, + m, + !0, + !1 + )), + this.eat(c.parenL) + ? (n.arguments = this.parseExprList( + c.parenR, + this.options.ecmaVersion >= 8, + !1 + )) + : (n.arguments = Ci), + this.finishNode(n, 'NewExpression') + ); + }), + (de.parseTemplateElement = function (n) { + var o = n.isTagged, + l = this.startNode(); + return ( + this.type === c.invalidTemplate + ? (o || + this.raiseRecoverable( + this.start, + 'Bad escape sequence in untagged template literal' + ), + (l.value = { + raw: this.value.replace( + /\r\n?/g, + ` +` + ), + cooked: null, + })) + : (l.value = { + raw: this.input.slice(this.start, this.end).replace( + /\r\n?/g, + ` +` + ), + cooked: this.value, + }), + this.next(), + (l.tail = this.type === c.backQuote), + this.finishNode(l, 'TemplateElement') + ); + }), + (de.parseTemplate = function (n) { + n === void 0 && (n = {}); + var o = n.isTagged; + o === void 0 && (o = !1); + var l = this.startNode(); + this.next(), (l.expressions = []); + var h = this.parseTemplateElement({isTagged: o}); + for (l.quasis = [h]; !h.tail; ) + this.type === c.eof && + this.raise(this.pos, 'Unterminated template literal'), + this.expect(c.dollarBraceL), + l.expressions.push(this.parseExpression()), + this.expect(c.braceR), + l.quasis.push((h = this.parseTemplateElement({isTagged: o}))); + return this.next(), this.finishNode(l, 'TemplateLiteral'); + }), + (de.isAsyncProp = function (n) { + return ( + !n.computed && + n.key.type === 'Identifier' && + n.key.name === 'async' && + (this.type === c.name || + this.type === c.num || + this.type === c.string || + this.type === c.bracketL || + this.type.keyword || + (this.options.ecmaVersion >= 9 && this.type === c.star)) && + !M.test(this.input.slice(this.lastTokEnd, this.start)) + ); + }), + (de.parseObj = function (n, o) { + var l = this.startNode(), + h = !0, + m = {}; + for (l.properties = [], this.next(); !this.eat(c.braceR); ) { + if (h) h = !1; + else if ( + (this.expect(c.comma), + this.options.ecmaVersion >= 5 && + this.afterTrailingComma(c.braceR)) + ) + break; + var I = this.parseProperty(n, o); + n || this.checkPropClash(I, m, o), l.properties.push(I); + } + return this.finishNode(l, n ? 'ObjectPattern' : 'ObjectExpression'); + }), + (de.parseProperty = function (n, o) { + var l = this.startNode(), + h, + m, + I, + R; + if (this.options.ecmaVersion >= 9 && this.eat(c.ellipsis)) + return n + ? ((l.argument = this.parseIdent(!1)), + this.type === c.comma && + this.raiseRecoverable( + this.start, + 'Comma is not permitted after the rest element' + ), + this.finishNode(l, 'RestElement')) + : ((l.argument = this.parseMaybeAssign(!1, o)), + this.type === c.comma && + o && + o.trailingComma < 0 && + (o.trailingComma = this.start), + this.finishNode(l, 'SpreadElement')); + this.options.ecmaVersion >= 6 && + ((l.method = !1), + (l.shorthand = !1), + (n || o) && ((I = this.start), (R = this.startLoc)), + n || (h = this.eat(c.star))); + var Y = this.containsEsc; + return ( + this.parsePropertyName(l), + !n && + !Y && + this.options.ecmaVersion >= 8 && + !h && + this.isAsyncProp(l) + ? ((m = !0), + (h = this.options.ecmaVersion >= 9 && this.eat(c.star)), + this.parsePropertyName(l)) + : (m = !1), + this.parsePropertyValue(l, n, h, m, I, R, o, Y), + this.finishNode(l, 'Property') + ); + }), + (de.parseGetterSetter = function (n) { + var o = n.key.name; + this.parsePropertyName(n), + (n.value = this.parseMethod(!1)), + (n.kind = o); + var l = n.kind === 'get' ? 0 : 1; + if (n.value.params.length !== l) { + var h = n.value.start; + n.kind === 'get' + ? this.raiseRecoverable(h, 'getter should have no params') + : this.raiseRecoverable( + h, + 'setter should have exactly one param' + ); + } else + n.kind === 'set' && + n.value.params[0].type === 'RestElement' && + this.raiseRecoverable( + n.value.params[0].start, + 'Setter cannot use rest params' + ); + }), + (de.parsePropertyValue = function (n, o, l, h, m, I, R, Y) { + (l || h) && this.type === c.colon && this.unexpected(), + this.eat(c.colon) + ? ((n.value = o + ? this.parseMaybeDefault(this.start, this.startLoc) + : this.parseMaybeAssign(!1, R)), + (n.kind = 'init')) + : this.options.ecmaVersion >= 6 && this.type === c.parenL + ? (o && this.unexpected(), + (n.method = !0), + (n.value = this.parseMethod(l, h)), + (n.kind = 'init')) + : !o && + !Y && + this.options.ecmaVersion >= 5 && + !n.computed && + n.key.type === 'Identifier' && + (n.key.name === 'get' || n.key.name === 'set') && + this.type !== c.comma && + this.type !== c.braceR && + this.type !== c.eq + ? ((l || h) && this.unexpected(), this.parseGetterSetter(n)) + : this.options.ecmaVersion >= 6 && + !n.computed && + n.key.type === 'Identifier' + ? ((l || h) && this.unexpected(), + this.checkUnreserved(n.key), + n.key.name === 'await' && + !this.awaitIdentPos && + (this.awaitIdentPos = m), + o + ? (n.value = this.parseMaybeDefault( + m, + I, + this.copyNode(n.key) + )) + : this.type === c.eq && R + ? (R.shorthandAssign < 0 && (R.shorthandAssign = this.start), + (n.value = this.parseMaybeDefault( + m, + I, + this.copyNode(n.key) + ))) + : (n.value = this.copyNode(n.key)), + (n.kind = 'init'), + (n.shorthand = !0)) + : this.unexpected(); + }), + (de.parsePropertyName = function (n) { + if (this.options.ecmaVersion >= 6) { + if (this.eat(c.bracketL)) + return ( + (n.computed = !0), + (n.key = this.parseMaybeAssign()), + this.expect(c.bracketR), + n.key + ); + n.computed = !1; + } + return (n.key = + this.type === c.num || this.type === c.string + ? this.parseExprAtom() + : this.parseIdent(this.options.allowReserved !== 'never')); + }), + (de.initFunction = function (n) { + (n.id = null), + this.options.ecmaVersion >= 6 && (n.generator = n.expression = !1), + this.options.ecmaVersion >= 8 && (n.async = !1); + }), + (de.parseMethod = function (n, o, l) { + var h = this.startNode(), + m = this.yieldPos, + I = this.awaitPos, + R = this.awaitIdentPos; + return ( + this.initFunction(h), + this.options.ecmaVersion >= 6 && (h.generator = n), + this.options.ecmaVersion >= 8 && (h.async = !!o), + (this.yieldPos = 0), + (this.awaitPos = 0), + (this.awaitIdentPos = 0), + this.enterScope(ut(o, h.generator) | Ee | (l ? Le : 0)), + this.expect(c.parenL), + (h.params = this.parseBindingList( + c.parenR, + !1, + this.options.ecmaVersion >= 8 + )), + this.checkYieldAwaitInDefaultParams(), + this.parseFunctionBody(h, !1, !0, !1), + (this.yieldPos = m), + (this.awaitPos = I), + (this.awaitIdentPos = R), + this.finishNode(h, 'FunctionExpression') + ); + }), + (de.parseArrowExpression = function (n, o, l, h) { + var m = this.yieldPos, + I = this.awaitPos, + R = this.awaitIdentPos; + return ( + this.enterScope(ut(l, !1) | he), + this.initFunction(n), + this.options.ecmaVersion >= 8 && (n.async = !!l), + (this.yieldPos = 0), + (this.awaitPos = 0), + (this.awaitIdentPos = 0), + (n.params = this.toAssignableList(o, !0)), + this.parseFunctionBody(n, !0, !1, h), + (this.yieldPos = m), + (this.awaitPos = I), + (this.awaitIdentPos = R), + this.finishNode(n, 'ArrowFunctionExpression') + ); + }), + (de.parseFunctionBody = function (n, o, l, h) { + var m = o && this.type !== c.braceL, + I = this.strict, + R = !1; + if (m) + (n.body = this.parseMaybeAssign(h)), + (n.expression = !0), + this.checkParams(n, !1); + else { + var Y = + this.options.ecmaVersion >= 7 && + !this.isSimpleParamList(n.params); + (!I || Y) && + ((R = this.strictDirective(this.end)), + R && + Y && + this.raiseRecoverable( + n.start, + "Illegal 'use strict' directive in function with non-simple parameter list" + )); + var Q = this.labels; + (this.labels = []), + R && (this.strict = !0), + this.checkParams( + n, + !I && !R && !o && !l && this.isSimpleParamList(n.params) + ), + this.strict && n.id && this.checkLValSimple(n.id, Dn), + (n.body = this.parseBlock(!1, void 0, R && !I)), + (n.expression = !1), + this.adaptDirectivePrologue(n.body.body), + (this.labels = Q); + } + this.exitScope(); + }), + (de.isSimpleParamList = function (n) { + for (var o = 0, l = n; o < l.length; o += 1) { + var h = l[o]; + if (h.type !== 'Identifier') return !1; + } + return !0; + }), + (de.checkParams = function (n, o) { + for ( + var l = Object.create(null), h = 0, m = n.params; + h < m.length; + h += 1 + ) { + var I = m[h]; + this.checkLValInnerPattern(I, bt, o ? null : l); + } + }), + (de.parseExprList = function (n, o, l, h) { + for (var m = [], I = !0; !this.eat(n); ) { + if (I) I = !1; + else if ((this.expect(c.comma), o && this.afterTrailingComma(n))) + break; + var R = void 0; + l && this.type === c.comma + ? (R = null) + : this.type === c.ellipsis + ? ((R = this.parseSpread(h)), + h && + this.type === c.comma && + h.trailingComma < 0 && + (h.trailingComma = this.start)) + : (R = this.parseMaybeAssign(!1, h)), + m.push(R); + } + return m; + }), + (de.checkUnreserved = function (n) { + var o = n.start, + l = n.end, + h = n.name; + if ( + (this.inGenerator && + h === 'yield' && + this.raiseRecoverable( + o, + "Cannot use 'yield' as identifier inside a generator" + ), + this.inAsync && + h === 'await' && + this.raiseRecoverable( + o, + "Cannot use 'await' as identifier inside an async function" + ), + !(this.currentThisScope().flags & Ke) && + h === 'arguments' && + this.raiseRecoverable( + o, + "Cannot use 'arguments' in class field initializer" + ), + this.inClassStaticBlock && + (h === 'arguments' || h === 'await') && + this.raise( + o, + 'Cannot use ' + h + ' in class static initialization block' + ), + this.keywords.test(h) && + this.raise(o, "Unexpected keyword '" + h + "'"), + !( + this.options.ecmaVersion < 6 && + this.input.slice(o, l).indexOf('\\') !== -1 + )) + ) { + var m = this.strict ? this.reservedWordsStrict : this.reservedWords; + m.test(h) && + (!this.inAsync && + h === 'await' && + this.raiseRecoverable( + o, + "Cannot use keyword 'await' outside an async function" + ), + this.raiseRecoverable(o, "The keyword '" + h + "' is reserved")); + } + }), + (de.parseIdent = function (n) { + var o = this.parseIdentNode(); + return ( + this.next(!!n), + this.finishNode(o, 'Identifier'), + n || + (this.checkUnreserved(o), + o.name === 'await' && + !this.awaitIdentPos && + (this.awaitIdentPos = o.start)), + o + ); + }), + (de.parseIdentNode = function () { + var n = this.startNode(); + return ( + this.type === c.name + ? (n.name = this.value) + : this.type.keyword + ? ((n.name = this.type.keyword), + (n.name === 'class' || n.name === 'function') && + (this.lastTokEnd !== this.lastTokStart + 1 || + this.input.charCodeAt(this.lastTokStart) !== 46) && + this.context.pop(), + (this.type = c.name)) + : this.unexpected(), + n + ); + }), + (de.parsePrivateIdent = function () { + var n = this.startNode(); + return ( + this.type === c.privateId + ? (n.name = this.value) + : this.unexpected(), + this.next(), + this.finishNode(n, 'PrivateIdentifier'), + this.options.checkPrivateFields && + (this.privateNameStack.length === 0 + ? this.raise( + n.start, + "Private field '#" + + n.name + + "' must be declared in an enclosing class" + ) + : this.privateNameStack[ + this.privateNameStack.length - 1 + ].used.push(n)), + n + ); + }), + (de.parseYield = function (n) { + this.yieldPos || (this.yieldPos = this.start); + var o = this.startNode(); + return ( + this.next(), + this.type === c.semi || + this.canInsertSemicolon() || + (this.type !== c.star && !this.type.startsExpr) + ? ((o.delegate = !1), (o.argument = null)) + : ((o.delegate = this.eat(c.star)), + (o.argument = this.parseMaybeAssign(n))), + this.finishNode(o, 'YieldExpression') + ); + }), + (de.parseAwait = function (n) { + this.awaitPos || (this.awaitPos = this.start); + var o = this.startNode(); + return ( + this.next(), + (o.argument = this.parseMaybeUnary(null, !0, !1, n)), + this.finishNode(o, 'AwaitExpression') + ); + }); + var ts = Ge.prototype; + (ts.raise = function (n, o) { + var l = $t(this.input, n); + (o += ' (' + l.line + ':' + l.column + ')'), + this.sourceFile && (o += ' in ' + this.sourceFile); + var h = new SyntaxError(o); + throw ((h.pos = n), (h.loc = l), (h.raisedAt = this.pos), h); + }), + (ts.raiseRecoverable = ts.raise), + (ts.curPosition = function () { + if (this.options.locations) + return new ct(this.curLine, this.pos - this.lineStart); + }); + var rn = Ge.prototype, + wi = function (o) { + (this.flags = o), + (this.var = []), + (this.lexical = []), + (this.functions = []); + }; + (rn.enterScope = function (n) { + this.scopeStack.push(new wi(n)); + }), + (rn.exitScope = function () { + this.scopeStack.pop(); + }), + (rn.treatFunctionsAsVarInScope = function (n) { + return n.flags & J || (!this.inModule && n.flags & W); + }), + (rn.declareName = function (n, o, l) { + var h = !1; + if (o === Tt) { + var m = this.currentScope(); + (h = + m.lexical.indexOf(n) > -1 || + m.functions.indexOf(n) > -1 || + m.var.indexOf(n) > -1), + m.lexical.push(n), + this.inModule && m.flags & W && delete this.undefinedExports[n]; + } else if (o === bn) { + var I = this.currentScope(); + I.lexical.push(n); + } else if (o === vt) { + var R = this.currentScope(); + this.treatFunctionsAsVar + ? (h = R.lexical.indexOf(n) > -1) + : (h = R.lexical.indexOf(n) > -1 || R.var.indexOf(n) > -1), + R.functions.push(n); + } else + for (var Y = this.scopeStack.length - 1; Y >= 0; --Y) { + var Q = this.scopeStack[Y]; + if ( + (Q.lexical.indexOf(n) > -1 && + !(Q.flags & Ie && Q.lexical[0] === n)) || + (!this.treatFunctionsAsVarInScope(Q) && + Q.functions.indexOf(n) > -1) + ) { + h = !0; + break; + } + if ( + (Q.var.push(n), + this.inModule && Q.flags & W && delete this.undefinedExports[n], + Q.flags & Ke) + ) + break; + } + h && + this.raiseRecoverable( + l, + "Identifier '" + n + "' has already been declared" + ); + }), + (rn.checkLocalExport = function (n) { + this.scopeStack[0].lexical.indexOf(n.name) === -1 && + this.scopeStack[0].var.indexOf(n.name) === -1 && + (this.undefinedExports[n.name] = n); + }), + (rn.currentScope = function () { + return this.scopeStack[this.scopeStack.length - 1]; + }), + (rn.currentVarScope = function () { + for (var n = this.scopeStack.length - 1; ; n--) { + var o = this.scopeStack[n]; + if (o.flags & (Ke | We | Xe)) return o; + } + }), + (rn.currentThisScope = function () { + for (var n = this.scopeStack.length - 1; ; n--) { + var o = this.scopeStack[n]; + if (o.flags & (Ke | We | Xe) && !(o.flags & he)) return o; + } + }); + var Fn = function (o, l, h) { + (this.type = ''), + (this.start = l), + (this.end = 0), + o.options.locations && (this.loc = new wt(o, h)), + o.options.directSourceFile && + (this.sourceFile = o.options.directSourceFile), + o.options.ranges && (this.range = [l, 0]); + }, + Bn = Ge.prototype; + (Bn.startNode = function () { + return new Fn(this, this.start, this.startLoc); + }), + (Bn.startNodeAt = function (n, o) { + return new Fn(this, n, o); + }); + function Fs(n, o, l, h) { + return ( + (n.type = o), + (n.end = l), + this.options.locations && (n.loc.end = h), + this.options.ranges && (n.range[1] = l), + n + ); + } + (Bn.finishNode = function (n, o) { + return Fs.call(this, n, o, this.lastTokEnd, this.lastTokEndLoc); + }), + (Bn.finishNodeAt = function (n, o, l, h) { + return Fs.call(this, n, o, l, h); + }), + (Bn.copyNode = function (n) { + var o = new Fn(this, n.start, this.startLoc); + for (var l in n) o[l] = n[l]; + return o; + }); + var Si = + 'Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz', + Bs = + 'ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS', + Vs = Bs + ' Extended_Pictographic', + js = Vs, + $s = js + ' EBase EComp EMod EPres ExtPict', + qs = $s, + Ii = qs, + Ei = {9: Bs, 10: Vs, 11: js, 12: $s, 13: qs, 14: Ii}, + Ai = + 'Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji', + Pi = {9: '', 10: '', 11: '', 12: '', 13: '', 14: Ai}, + Ks = + 'Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu', + Us = + 'Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb', + Hs = + Us + + ' Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd', + Ws = + Hs + + ' Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho', + Gs = + Ws + + ' Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi', + zs = + Gs + + ' Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith', + jo = zs + ' ' + Si, + $o = {9: Us, 10: Hs, 11: Ws, 12: Gs, 13: zs, 14: jo}, + mr = {}; + function qo(n) { + var o = (mr[n] = { + binary: tt(Ei[n] + ' ' + Ks), + binaryOfStrings: tt(Pi[n]), + nonBinary: {General_Category: tt(Ks), Script: tt($o[n])}, + }); + (o.nonBinary.Script_Extensions = o.nonBinary.Script), + (o.nonBinary.gc = o.nonBinary.General_Category), + (o.nonBinary.sc = o.nonBinary.Script), + (o.nonBinary.scx = o.nonBinary.Script_Extensions); + } + for (var Ni = 0, Tr = [9, 10, 11, 12, 13, 14]; Ni < Tr.length; Ni += 1) { + var Ko = Tr[Ni]; + qo(Ko); + } + var le = Ge.prototype, + Xs = function (o, l) { + (this.parent = o), (this.base = l || this); + }; + (Xs.prototype.separatedFrom = function (o) { + for (var l = this; l; l = l.parent) + for (var h = o; h; h = h.parent) + if (l.base === h.base && l !== h) return !0; + return !1; + }), + (Xs.prototype.sibling = function () { + return new Xs(this.parent, this.base); + }); + var on = function (o) { + (this.parser = o), + (this.validFlags = + 'gim' + + (o.options.ecmaVersion >= 6 ? 'uy' : '') + + (o.options.ecmaVersion >= 9 ? 's' : '') + + (o.options.ecmaVersion >= 13 ? 'd' : '') + + (o.options.ecmaVersion >= 15 ? 'v' : '')), + (this.unicodeProperties = + mr[o.options.ecmaVersion >= 14 ? 14 : o.options.ecmaVersion]), + (this.source = ''), + (this.flags = ''), + (this.start = 0), + (this.switchU = !1), + (this.switchV = !1), + (this.switchN = !1), + (this.pos = 0), + (this.lastIntValue = 0), + (this.lastStringValue = ''), + (this.lastAssertionIsQuantifiable = !1), + (this.numCapturingParens = 0), + (this.maxBackReference = 0), + (this.groupNames = Object.create(null)), + (this.backReferenceNames = []), + (this.branchID = null); + }; + (on.prototype.reset = function (o, l, h) { + var m = h.indexOf('v') !== -1, + I = h.indexOf('u') !== -1; + (this.start = o | 0), + (this.source = l + ''), + (this.flags = h), + m && this.parser.options.ecmaVersion >= 15 + ? ((this.switchU = !0), (this.switchV = !0), (this.switchN = !0)) + : ((this.switchU = I && this.parser.options.ecmaVersion >= 6), + (this.switchV = !1), + (this.switchN = I && this.parser.options.ecmaVersion >= 9)); + }), + (on.prototype.raise = function (o) { + this.parser.raiseRecoverable( + this.start, + 'Invalid regular expression: /' + this.source + '/: ' + o + ); + }), + (on.prototype.at = function (o, l) { + l === void 0 && (l = !1); + var h = this.source, + m = h.length; + if (o >= m) return -1; + var I = h.charCodeAt(o); + if (!(l || this.switchU) || I <= 55295 || I >= 57344 || o + 1 >= m) + return I; + var R = h.charCodeAt(o + 1); + return R >= 56320 && R <= 57343 ? (I << 10) + R - 56613888 : I; + }), + (on.prototype.nextIndex = function (o, l) { + l === void 0 && (l = !1); + var h = this.source, + m = h.length; + if (o >= m) return m; + var I = h.charCodeAt(o), + R; + return !(l || this.switchU) || + I <= 55295 || + I >= 57344 || + o + 1 >= m || + (R = h.charCodeAt(o + 1)) < 56320 || + R > 57343 + ? o + 1 + : o + 2; + }), + (on.prototype.current = function (o) { + return o === void 0 && (o = !1), this.at(this.pos, o); + }), + (on.prototype.lookahead = function (o) { + return ( + o === void 0 && (o = !1), this.at(this.nextIndex(this.pos, o), o) + ); + }), + (on.prototype.advance = function (o) { + o === void 0 && (o = !1), (this.pos = this.nextIndex(this.pos, o)); + }), + (on.prototype.eat = function (o, l) { + return ( + l === void 0 && (l = !1), + this.current(l) === o ? (this.advance(l), !0) : !1 + ); + }), + (on.prototype.eatChars = function (o, l) { + l === void 0 && (l = !1); + for (var h = this.pos, m = 0, I = o; m < I.length; m += 1) { + var R = I[m], + Y = this.at(h, l); + if (Y === -1 || Y !== R) return !1; + h = this.nextIndex(h, l); + } + return (this.pos = h), !0; + }), + (le.validateRegExpFlags = function (n) { + for ( + var o = n.validFlags, l = n.flags, h = !1, m = !1, I = 0; + I < l.length; + I++ + ) { + var R = l.charAt(I); + o.indexOf(R) === -1 && + this.raise(n.start, 'Invalid regular expression flag'), + l.indexOf(R, I + 1) > -1 && + this.raise(n.start, 'Duplicate regular expression flag'), + R === 'u' && (h = !0), + R === 'v' && (m = !0); + } + this.options.ecmaVersion >= 15 && + h && + m && + this.raise(n.start, 'Invalid regular expression flag'); + }); + function Uo(n) { + for (var o in n) return !0; + return !1; + } + (le.validateRegExpPattern = function (n) { + this.regexp_pattern(n), + !n.switchN && + this.options.ecmaVersion >= 9 && + Uo(n.groupNames) && + ((n.switchN = !0), this.regexp_pattern(n)); + }), + (le.regexp_pattern = function (n) { + (n.pos = 0), + (n.lastIntValue = 0), + (n.lastStringValue = ''), + (n.lastAssertionIsQuantifiable = !1), + (n.numCapturingParens = 0), + (n.maxBackReference = 0), + (n.groupNames = Object.create(null)), + (n.backReferenceNames.length = 0), + (n.branchID = null), + this.regexp_disjunction(n), + n.pos !== n.source.length && + (n.eat(41) && n.raise("Unmatched ')'"), + (n.eat(93) || n.eat(125)) && n.raise('Lone quantifier brackets')), + n.maxBackReference > n.numCapturingParens && + n.raise('Invalid escape'); + for (var o = 0, l = n.backReferenceNames; o < l.length; o += 1) { + var h = l[o]; + n.groupNames[h] || n.raise('Invalid named capture referenced'); + } + }), + (le.regexp_disjunction = function (n) { + var o = this.options.ecmaVersion >= 16; + for ( + o && (n.branchID = new Xs(n.branchID, null)), + this.regexp_alternative(n); + n.eat(124); + + ) + o && (n.branchID = n.branchID.sibling()), + this.regexp_alternative(n); + o && (n.branchID = n.branchID.parent), + this.regexp_eatQuantifier(n, !0) && n.raise('Nothing to repeat'), + n.eat(123) && n.raise('Lone quantifier brackets'); + }), + (le.regexp_alternative = function (n) { + for (; n.pos < n.source.length && this.regexp_eatTerm(n); ); + }), + (le.regexp_eatTerm = function (n) { + return this.regexp_eatAssertion(n) + ? (n.lastAssertionIsQuantifiable && + this.regexp_eatQuantifier(n) && + n.switchU && + n.raise('Invalid quantifier'), + !0) + : ( + n.switchU + ? this.regexp_eatAtom(n) + : this.regexp_eatExtendedAtom(n) + ) + ? (this.regexp_eatQuantifier(n), !0) + : !1; + }), + (le.regexp_eatAssertion = function (n) { + var o = n.pos; + if (((n.lastAssertionIsQuantifiable = !1), n.eat(94) || n.eat(36))) + return !0; + if (n.eat(92)) { + if (n.eat(66) || n.eat(98)) return !0; + n.pos = o; + } + if (n.eat(40) && n.eat(63)) { + var l = !1; + if ( + (this.options.ecmaVersion >= 9 && (l = n.eat(60)), + n.eat(61) || n.eat(33)) + ) + return ( + this.regexp_disjunction(n), + n.eat(41) || n.raise('Unterminated group'), + (n.lastAssertionIsQuantifiable = !l), + !0 + ); + } + return (n.pos = o), !1; + }), + (le.regexp_eatQuantifier = function (n, o) { + return ( + o === void 0 && (o = !1), + this.regexp_eatQuantifierPrefix(n, o) ? (n.eat(63), !0) : !1 + ); + }), + (le.regexp_eatQuantifierPrefix = function (n, o) { + return ( + n.eat(42) || + n.eat(43) || + n.eat(63) || + this.regexp_eatBracedQuantifier(n, o) + ); + }), + (le.regexp_eatBracedQuantifier = function (n, o) { + var l = n.pos; + if (n.eat(123)) { + var h = 0, + m = -1; + if ( + this.regexp_eatDecimalDigits(n) && + ((h = n.lastIntValue), + n.eat(44) && + this.regexp_eatDecimalDigits(n) && + (m = n.lastIntValue), + n.eat(125)) + ) + return ( + m !== -1 && + m < h && + !o && + n.raise('numbers out of order in {} quantifier'), + !0 + ); + n.switchU && !o && n.raise('Incomplete quantifier'), (n.pos = l); + } + return !1; + }), + (le.regexp_eatAtom = function (n) { + return ( + this.regexp_eatPatternCharacters(n) || + n.eat(46) || + this.regexp_eatReverseSolidusAtomEscape(n) || + this.regexp_eatCharacterClass(n) || + this.regexp_eatUncapturingGroup(n) || + this.regexp_eatCapturingGroup(n) + ); + }), + (le.regexp_eatReverseSolidusAtomEscape = function (n) { + var o = n.pos; + if (n.eat(92)) { + if (this.regexp_eatAtomEscape(n)) return !0; + n.pos = o; + } + return !1; + }), + (le.regexp_eatUncapturingGroup = function (n) { + var o = n.pos; + if (n.eat(40)) { + if (n.eat(63)) { + if (this.options.ecmaVersion >= 16) { + var l = this.regexp_eatModifiers(n), + h = n.eat(45); + if (l || h) { + for (var m = 0; m < l.length; m++) { + var I = l.charAt(m); + l.indexOf(I, m + 1) > -1 && + n.raise('Duplicate regular expression modifiers'); + } + if (h) { + var R = this.regexp_eatModifiers(n); + !l && + !R && + n.current() === 58 && + n.raise('Invalid regular expression modifiers'); + for (var Y = 0; Y < R.length; Y++) { + var Q = R.charAt(Y); + (R.indexOf(Q, Y + 1) > -1 || l.indexOf(Q) > -1) && + n.raise('Duplicate regular expression modifiers'); + } + } + } + } + if (n.eat(58)) { + if ((this.regexp_disjunction(n), n.eat(41))) return !0; + n.raise('Unterminated group'); + } + } + n.pos = o; + } + return !1; + }), + (le.regexp_eatCapturingGroup = function (n) { + if (n.eat(40)) { + if ( + (this.options.ecmaVersion >= 9 + ? this.regexp_groupSpecifier(n) + : n.current() === 63 && n.raise('Invalid group'), + this.regexp_disjunction(n), + n.eat(41)) + ) + return (n.numCapturingParens += 1), !0; + n.raise('Unterminated group'); + } + return !1; + }), + (le.regexp_eatModifiers = function (n) { + for (var o = '', l = 0; (l = n.current()) !== -1 && Ho(l); ) + (o += nt(l)), n.advance(); + return o; + }); + function Ho(n) { + return n === 105 || n === 109 || n === 115; + } + (le.regexp_eatExtendedAtom = function (n) { + return ( + n.eat(46) || + this.regexp_eatReverseSolidusAtomEscape(n) || + this.regexp_eatCharacterClass(n) || + this.regexp_eatUncapturingGroup(n) || + this.regexp_eatCapturingGroup(n) || + this.regexp_eatInvalidBracedQuantifier(n) || + this.regexp_eatExtendedPatternCharacter(n) + ); + }), + (le.regexp_eatInvalidBracedQuantifier = function (n) { + return ( + this.regexp_eatBracedQuantifier(n, !0) && + n.raise('Nothing to repeat'), + !1 + ); + }), + (le.regexp_eatSyntaxCharacter = function (n) { + var o = n.current(); + return yr(o) ? ((n.lastIntValue = o), n.advance(), !0) : !1; + }); + function yr(n) { + return ( + n === 36 || + (n >= 40 && n <= 43) || + n === 46 || + n === 63 || + (n >= 91 && n <= 94) || + (n >= 123 && n <= 125) + ); + } + (le.regexp_eatPatternCharacters = function (n) { + for (var o = n.pos, l = 0; (l = n.current()) !== -1 && !yr(l); ) + n.advance(); + return n.pos !== o; + }), + (le.regexp_eatExtendedPatternCharacter = function (n) { + var o = n.current(); + return o !== -1 && + o !== 36 && + !(o >= 40 && o <= 43) && + o !== 46 && + o !== 63 && + o !== 91 && + o !== 94 && + o !== 124 + ? (n.advance(), !0) + : !1; + }), + (le.regexp_groupSpecifier = function (n) { + if (n.eat(63)) { + this.regexp_eatGroupName(n) || n.raise('Invalid group'); + var o = this.options.ecmaVersion >= 16, + l = n.groupNames[n.lastStringValue]; + if (l) + if (o) + for (var h = 0, m = l; h < m.length; h += 1) { + var I = m[h]; + I.separatedFrom(n.branchID) || + n.raise('Duplicate capture group name'); + } + else n.raise('Duplicate capture group name'); + o + ? (l || (n.groupNames[n.lastStringValue] = [])).push(n.branchID) + : (n.groupNames[n.lastStringValue] = !0); + } + }), + (le.regexp_eatGroupName = function (n) { + if (((n.lastStringValue = ''), n.eat(60))) { + if (this.regexp_eatRegExpIdentifierName(n) && n.eat(62)) return !0; + n.raise('Invalid capture group name'); + } + return !1; + }), + (le.regexp_eatRegExpIdentifierName = function (n) { + if ( + ((n.lastStringValue = ''), this.regexp_eatRegExpIdentifierStart(n)) + ) { + for ( + n.lastStringValue += nt(n.lastIntValue); + this.regexp_eatRegExpIdentifierPart(n); + + ) + n.lastStringValue += nt(n.lastIntValue); + return !0; + } + return !1; + }), + (le.regexp_eatRegExpIdentifierStart = function (n) { + var o = n.pos, + l = this.options.ecmaVersion >= 11, + h = n.current(l); + return ( + n.advance(l), + h === 92 && + this.regexp_eatRegExpUnicodeEscapeSequence(n, l) && + (h = n.lastIntValue), + Wo(h) ? ((n.lastIntValue = h), !0) : ((n.pos = o), !1) + ); + }); + function Wo(n) { + return f(n, !0) || n === 36 || n === 95; + } + le.regexp_eatRegExpIdentifierPart = function (n) { + var o = n.pos, + l = this.options.ecmaVersion >= 11, + h = n.current(l); + return ( + n.advance(l), + h === 92 && + this.regexp_eatRegExpUnicodeEscapeSequence(n, l) && + (h = n.lastIntValue), + Go(h) ? ((n.lastIntValue = h), !0) : ((n.pos = o), !1) + ); + }; + function Go(n) { + return x(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205; + } + (le.regexp_eatAtomEscape = function (n) { + return this.regexp_eatBackReference(n) || + this.regexp_eatCharacterClassEscape(n) || + this.regexp_eatCharacterEscape(n) || + (n.switchN && this.regexp_eatKGroupName(n)) + ? !0 + : (n.switchU && + (n.current() === 99 && n.raise('Invalid unicode escape'), + n.raise('Invalid escape')), + !1); + }), + (le.regexp_eatBackReference = function (n) { + var o = n.pos; + if (this.regexp_eatDecimalEscape(n)) { + var l = n.lastIntValue; + if (n.switchU) + return l > n.maxBackReference && (n.maxBackReference = l), !0; + if (l <= n.numCapturingParens) return !0; + n.pos = o; + } + return !1; + }), + (le.regexp_eatKGroupName = function (n) { + if (n.eat(107)) { + if (this.regexp_eatGroupName(n)) + return n.backReferenceNames.push(n.lastStringValue), !0; + n.raise('Invalid named reference'); + } + return !1; + }), + (le.regexp_eatCharacterEscape = function (n) { + return ( + this.regexp_eatControlEscape(n) || + this.regexp_eatCControlLetter(n) || + this.regexp_eatZero(n) || + this.regexp_eatHexEscapeSequence(n) || + this.regexp_eatRegExpUnicodeEscapeSequence(n, !1) || + (!n.switchU && this.regexp_eatLegacyOctalEscapeSequence(n)) || + this.regexp_eatIdentityEscape(n) + ); + }), + (le.regexp_eatCControlLetter = function (n) { + var o = n.pos; + if (n.eat(99)) { + if (this.regexp_eatControlLetter(n)) return !0; + n.pos = o; + } + return !1; + }), + (le.regexp_eatZero = function (n) { + return n.current() === 48 && !vr(n.lookahead()) + ? ((n.lastIntValue = 0), n.advance(), !0) + : !1; + }), + (le.regexp_eatControlEscape = function (n) { + var o = n.current(); + return o === 116 + ? ((n.lastIntValue = 9), n.advance(), !0) + : o === 110 + ? ((n.lastIntValue = 10), n.advance(), !0) + : o === 118 + ? ((n.lastIntValue = 11), n.advance(), !0) + : o === 102 + ? ((n.lastIntValue = 12), n.advance(), !0) + : o === 114 + ? ((n.lastIntValue = 13), n.advance(), !0) + : !1; + }), + (le.regexp_eatControlLetter = function (n) { + var o = n.current(); + return kr(o) ? ((n.lastIntValue = o % 32), n.advance(), !0) : !1; + }); + function kr(n) { + return (n >= 65 && n <= 90) || (n >= 97 && n <= 122); + } + le.regexp_eatRegExpUnicodeEscapeSequence = function (n, o) { + o === void 0 && (o = !1); + var l = n.pos, + h = o || n.switchU; + if (n.eat(117)) { + if (this.regexp_eatFixedHexDigits(n, 4)) { + var m = n.lastIntValue; + if (h && m >= 55296 && m <= 56319) { + var I = n.pos; + if ( + n.eat(92) && + n.eat(117) && + this.regexp_eatFixedHexDigits(n, 4) + ) { + var R = n.lastIntValue; + if (R >= 56320 && R <= 57343) + return ( + (n.lastIntValue = (m - 55296) * 1024 + (R - 56320) + 65536), + !0 + ); + } + (n.pos = I), (n.lastIntValue = m); + } + return !0; + } + if ( + h && + n.eat(123) && + this.regexp_eatHexDigits(n) && + n.eat(125) && + yf(n.lastIntValue) + ) + return !0; + h && n.raise('Invalid unicode escape'), (n.pos = l); + } + return !1; + }; + function yf(n) { + return n >= 0 && n <= 1114111; + } + (le.regexp_eatIdentityEscape = function (n) { + if (n.switchU) + return this.regexp_eatSyntaxCharacter(n) + ? !0 + : n.eat(47) + ? ((n.lastIntValue = 47), !0) + : !1; + var o = n.current(); + return o !== 99 && (!n.switchN || o !== 107) + ? ((n.lastIntValue = o), n.advance(), !0) + : !1; + }), + (le.regexp_eatDecimalEscape = function (n) { + n.lastIntValue = 0; + var o = n.current(); + if (o >= 49 && o <= 57) { + do (n.lastIntValue = 10 * n.lastIntValue + (o - 48)), n.advance(); + while ((o = n.current()) >= 48 && o <= 57); + return !0; + } + return !1; + }); + var Nc = 0, + Vn = 1, + an = 2; + le.regexp_eatCharacterClassEscape = function (n) { + var o = n.current(); + if (kf(o)) return (n.lastIntValue = -1), n.advance(), Vn; + var l = !1; + if ( + n.switchU && + this.options.ecmaVersion >= 9 && + ((l = o === 80) || o === 112) + ) { + (n.lastIntValue = -1), n.advance(); + var h; + if ( + n.eat(123) && + (h = this.regexp_eatUnicodePropertyValueExpression(n)) && + n.eat(125) + ) + return l && h === an && n.raise('Invalid property name'), h; + n.raise('Invalid property name'); + } + return Nc; + }; + function kf(n) { + return ( + n === 100 || + n === 68 || + n === 115 || + n === 83 || + n === 119 || + n === 87 + ); + } + (le.regexp_eatUnicodePropertyValueExpression = function (n) { + var o = n.pos; + if (this.regexp_eatUnicodePropertyName(n) && n.eat(61)) { + var l = n.lastStringValue; + if (this.regexp_eatUnicodePropertyValue(n)) { + var h = n.lastStringValue; + return this.regexp_validateUnicodePropertyNameAndValue(n, l, h), Vn; + } + } + if (((n.pos = o), this.regexp_eatLoneUnicodePropertyNameOrValue(n))) { + var m = n.lastStringValue; + return this.regexp_validateUnicodePropertyNameOrValue(n, m); + } + return Nc; + }), + (le.regexp_validateUnicodePropertyNameAndValue = function (n, o, l) { + mt(n.unicodeProperties.nonBinary, o) || + n.raise('Invalid property name'), + n.unicodeProperties.nonBinary[o].test(l) || + n.raise('Invalid property value'); + }), + (le.regexp_validateUnicodePropertyNameOrValue = function (n, o) { + if (n.unicodeProperties.binary.test(o)) return Vn; + if (n.switchV && n.unicodeProperties.binaryOfStrings.test(o)) + return an; + n.raise('Invalid property name'); + }), + (le.regexp_eatUnicodePropertyName = function (n) { + var o = 0; + for (n.lastStringValue = ''; Rc((o = n.current())); ) + (n.lastStringValue += nt(o)), n.advance(); + return n.lastStringValue !== ''; + }); + function Rc(n) { + return kr(n) || n === 95; + } + le.regexp_eatUnicodePropertyValue = function (n) { + var o = 0; + for (n.lastStringValue = ''; vf((o = n.current())); ) + (n.lastStringValue += nt(o)), n.advance(); + return n.lastStringValue !== ''; + }; + function vf(n) { + return Rc(n) || vr(n); + } + (le.regexp_eatLoneUnicodePropertyNameOrValue = function (n) { + return this.regexp_eatUnicodePropertyValue(n); + }), + (le.regexp_eatCharacterClass = function (n) { + if (n.eat(91)) { + var o = n.eat(94), + l = this.regexp_classContents(n); + return ( + n.eat(93) || n.raise('Unterminated character class'), + o && + l === an && + n.raise('Negated character class may contain strings'), + !0 + ); + } + return !1; + }), + (le.regexp_classContents = function (n) { + return n.current() === 93 + ? Vn + : n.switchV + ? this.regexp_classSetExpression(n) + : (this.regexp_nonEmptyClassRanges(n), Vn); + }), + (le.regexp_nonEmptyClassRanges = function (n) { + for (; this.regexp_eatClassAtom(n); ) { + var o = n.lastIntValue; + if (n.eat(45) && this.regexp_eatClassAtom(n)) { + var l = n.lastIntValue; + n.switchU && + (o === -1 || l === -1) && + n.raise('Invalid character class'), + o !== -1 && + l !== -1 && + o > l && + n.raise('Range out of order in character class'); + } + } + }), + (le.regexp_eatClassAtom = function (n) { + var o = n.pos; + if (n.eat(92)) { + if (this.regexp_eatClassEscape(n)) return !0; + if (n.switchU) { + var l = n.current(); + (l === 99 || Dc(l)) && n.raise('Invalid class escape'), + n.raise('Invalid escape'); + } + n.pos = o; + } + var h = n.current(); + return h !== 93 ? ((n.lastIntValue = h), n.advance(), !0) : !1; + }), + (le.regexp_eatClassEscape = function (n) { + var o = n.pos; + if (n.eat(98)) return (n.lastIntValue = 8), !0; + if (n.switchU && n.eat(45)) return (n.lastIntValue = 45), !0; + if (!n.switchU && n.eat(99)) { + if (this.regexp_eatClassControlLetter(n)) return !0; + n.pos = o; + } + return ( + this.regexp_eatCharacterClassEscape(n) || + this.regexp_eatCharacterEscape(n) + ); + }), + (le.regexp_classSetExpression = function (n) { + var o = Vn, + l; + if (!this.regexp_eatClassSetRange(n)) + if ((l = this.regexp_eatClassSetOperand(n))) { + l === an && (o = an); + for (var h = n.pos; n.eatChars([38, 38]); ) { + if ( + n.current() !== 38 && + (l = this.regexp_eatClassSetOperand(n)) + ) { + l !== an && (o = Vn); + continue; + } + n.raise('Invalid character in character class'); + } + if (h !== n.pos) return o; + for (; n.eatChars([45, 45]); ) + this.regexp_eatClassSetOperand(n) || + n.raise('Invalid character in character class'); + if (h !== n.pos) return o; + } else n.raise('Invalid character in character class'); + for (;;) + if (!this.regexp_eatClassSetRange(n)) { + if (((l = this.regexp_eatClassSetOperand(n)), !l)) return o; + l === an && (o = an); + } + }), + (le.regexp_eatClassSetRange = function (n) { + var o = n.pos; + if (this.regexp_eatClassSetCharacter(n)) { + var l = n.lastIntValue; + if (n.eat(45) && this.regexp_eatClassSetCharacter(n)) { + var h = n.lastIntValue; + return ( + l !== -1 && + h !== -1 && + l > h && + n.raise('Range out of order in character class'), + !0 + ); + } + n.pos = o; + } + return !1; + }), + (le.regexp_eatClassSetOperand = function (n) { + return this.regexp_eatClassSetCharacter(n) + ? Vn + : this.regexp_eatClassStringDisjunction(n) || + this.regexp_eatNestedClass(n); + }), + (le.regexp_eatNestedClass = function (n) { + var o = n.pos; + if (n.eat(91)) { + var l = n.eat(94), + h = this.regexp_classContents(n); + if (n.eat(93)) + return ( + l && + h === an && + n.raise('Negated character class may contain strings'), + h + ); + n.pos = o; + } + if (n.eat(92)) { + var m = this.regexp_eatCharacterClassEscape(n); + if (m) return m; + n.pos = o; + } + return null; + }), + (le.regexp_eatClassStringDisjunction = function (n) { + var o = n.pos; + if (n.eatChars([92, 113])) { + if (n.eat(123)) { + var l = this.regexp_classStringDisjunctionContents(n); + if (n.eat(125)) return l; + } else n.raise('Invalid escape'); + n.pos = o; + } + return null; + }), + (le.regexp_classStringDisjunctionContents = function (n) { + for (var o = this.regexp_classString(n); n.eat(124); ) + this.regexp_classString(n) === an && (o = an); + return o; + }), + (le.regexp_classString = function (n) { + for (var o = 0; this.regexp_eatClassSetCharacter(n); ) o++; + return o === 1 ? Vn : an; + }), + (le.regexp_eatClassSetCharacter = function (n) { + var o = n.pos; + if (n.eat(92)) + return this.regexp_eatCharacterEscape(n) || + this.regexp_eatClassSetReservedPunctuator(n) + ? !0 + : n.eat(98) + ? ((n.lastIntValue = 8), !0) + : ((n.pos = o), !1); + var l = n.current(); + return l < 0 || (l === n.lookahead() && xf(l)) || gf(l) + ? !1 + : (n.advance(), (n.lastIntValue = l), !0); + }); + function xf(n) { + return ( + n === 33 || + (n >= 35 && n <= 38) || + (n >= 42 && n <= 44) || + n === 46 || + (n >= 58 && n <= 64) || + n === 94 || + n === 96 || + n === 126 + ); + } + function gf(n) { + return ( + n === 40 || + n === 41 || + n === 45 || + n === 47 || + (n >= 91 && n <= 93) || + (n >= 123 && n <= 125) + ); + } + le.regexp_eatClassSetReservedPunctuator = function (n) { + var o = n.current(); + return _f(o) ? ((n.lastIntValue = o), n.advance(), !0) : !1; + }; + function _f(n) { + return ( + n === 33 || + n === 35 || + n === 37 || + n === 38 || + n === 44 || + n === 45 || + (n >= 58 && n <= 62) || + n === 64 || + n === 96 || + n === 126 + ); + } + (le.regexp_eatClassControlLetter = function (n) { + var o = n.current(); + return vr(o) || o === 95 + ? ((n.lastIntValue = o % 32), n.advance(), !0) + : !1; + }), + (le.regexp_eatHexEscapeSequence = function (n) { + var o = n.pos; + if (n.eat(120)) { + if (this.regexp_eatFixedHexDigits(n, 2)) return !0; + n.switchU && n.raise('Invalid escape'), (n.pos = o); + } + return !1; + }), + (le.regexp_eatDecimalDigits = function (n) { + var o = n.pos, + l = 0; + for (n.lastIntValue = 0; vr((l = n.current())); ) + (n.lastIntValue = 10 * n.lastIntValue + (l - 48)), n.advance(); + return n.pos !== o; + }); + function vr(n) { + return n >= 48 && n <= 57; + } + le.regexp_eatHexDigits = function (n) { + var o = n.pos, + l = 0; + for (n.lastIntValue = 0; Lc((l = n.current())); ) + (n.lastIntValue = 16 * n.lastIntValue + Oc(l)), n.advance(); + return n.pos !== o; + }; + function Lc(n) { + return ( + (n >= 48 && n <= 57) || (n >= 65 && n <= 70) || (n >= 97 && n <= 102) + ); + } + function Oc(n) { + return n >= 65 && n <= 70 + ? 10 + (n - 65) + : n >= 97 && n <= 102 + ? 10 + (n - 97) + : n - 48; + } + (le.regexp_eatLegacyOctalEscapeSequence = function (n) { + if (this.regexp_eatOctalDigit(n)) { + var o = n.lastIntValue; + if (this.regexp_eatOctalDigit(n)) { + var l = n.lastIntValue; + o <= 3 && this.regexp_eatOctalDigit(n) + ? (n.lastIntValue = o * 64 + l * 8 + n.lastIntValue) + : (n.lastIntValue = o * 8 + l); + } else n.lastIntValue = o; + return !0; + } + return !1; + }), + (le.regexp_eatOctalDigit = function (n) { + var o = n.current(); + return Dc(o) + ? ((n.lastIntValue = o - 48), n.advance(), !0) + : ((n.lastIntValue = 0), !1); + }); + function Dc(n) { + return n >= 48 && n <= 55; + } + le.regexp_eatFixedHexDigits = function (n, o) { + var l = n.pos; + n.lastIntValue = 0; + for (var h = 0; h < o; ++h) { + var m = n.current(); + if (!Lc(m)) return (n.pos = l), !1; + (n.lastIntValue = 16 * n.lastIntValue + Oc(m)), n.advance(); + } + return !0; + }; + var xr = function (o) { + (this.type = o.type), + (this.value = o.value), + (this.start = o.start), + (this.end = o.end), + o.options.locations && (this.loc = new wt(o, o.startLoc, o.endLoc)), + o.options.ranges && (this.range = [o.start, o.end]); + }, + Ae = Ge.prototype; + (Ae.next = function (n) { + !n && + this.type.keyword && + this.containsEsc && + this.raiseRecoverable( + this.start, + 'Escape sequence in keyword ' + this.type.keyword + ), + this.options.onToken && this.options.onToken(new xr(this)), + (this.lastTokEnd = this.end), + (this.lastTokStart = this.start), + (this.lastTokEndLoc = this.endLoc), + (this.lastTokStartLoc = this.startLoc), + this.nextToken(); + }), + (Ae.getToken = function () { + return this.next(), new xr(this); + }), + typeof Symbol < 'u' && + (Ae[Symbol.iterator] = function () { + var n = this; + return { + next: function () { + var o = n.getToken(); + return {done: o.type === c.eof, value: o}; + }, + }; + }), + (Ae.nextToken = function () { + var n = this.curContext(); + if ( + ((!n || !n.preserveSpace) && this.skipSpace(), + (this.start = this.pos), + this.options.locations && (this.startLoc = this.curPosition()), + this.pos >= this.input.length) + ) + return this.finishToken(c.eof); + if (n.override) return n.override(this); + this.readToken(this.fullCharCodeAtPos()); + }), + (Ae.readToken = function (n) { + return f(n, this.options.ecmaVersion >= 6) || n === 92 + ? this.readWord() + : this.getTokenFromCode(n); + }), + (Ae.fullCharCodeAtPos = function () { + var n = this.input.charCodeAt(this.pos); + if (n <= 55295 || n >= 56320) return n; + var o = this.input.charCodeAt(this.pos + 1); + return o <= 56319 || o >= 57344 ? n : (n << 10) + o - 56613888; + }), + (Ae.skipBlockComment = function () { + var n = this.options.onComment && this.curPosition(), + o = this.pos, + l = this.input.indexOf('*/', (this.pos += 2)); + if ( + (l === -1 && this.raise(this.pos - 2, 'Unterminated comment'), + (this.pos = l + 2), + this.options.locations) + ) + for ( + var h = void 0, m = o; + (h = ie(this.input, m, this.pos)) > -1; + + ) + ++this.curLine, (m = this.lineStart = h); + this.options.onComment && + this.options.onComment( + !0, + this.input.slice(o + 2, l), + o, + this.pos, + n, + this.curPosition() + ); + }), + (Ae.skipLineComment = function (n) { + for ( + var o = this.pos, + l = this.options.onComment && this.curPosition(), + h = this.input.charCodeAt((this.pos += n)); + this.pos < this.input.length && !X(h); + + ) + h = this.input.charCodeAt(++this.pos); + this.options.onComment && + this.options.onComment( + !1, + this.input.slice(o + n, this.pos), + o, + this.pos, + l, + this.curPosition() + ); + }), + (Ae.skipSpace = function () { + e: for (; this.pos < this.input.length; ) { + var n = this.input.charCodeAt(this.pos); + switch (n) { + case 32: + case 160: + ++this.pos; + break; + case 13: + this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos; + case 10: + case 8232: + case 8233: + ++this.pos, + this.options.locations && + (++this.curLine, (this.lineStart = this.pos)); + break; + case 47: + switch (this.input.charCodeAt(this.pos + 1)) { + case 42: + this.skipBlockComment(); + break; + case 47: + this.skipLineComment(2); + break; + default: + break e; + } + break; + default: + if ( + (n > 8 && n < 14) || + (n >= 5760 && pe.test(String.fromCharCode(n))) + ) + ++this.pos; + else break e; + } + } + }), + (Ae.finishToken = function (n, o) { + (this.end = this.pos), + this.options.locations && (this.endLoc = this.curPosition()); + var l = this.type; + (this.type = n), (this.value = o), this.updateContext(l); + }), + (Ae.readToken_dot = function () { + var n = this.input.charCodeAt(this.pos + 1); + if (n >= 48 && n <= 57) return this.readNumber(!0); + var o = this.input.charCodeAt(this.pos + 2); + return this.options.ecmaVersion >= 6 && n === 46 && o === 46 + ? ((this.pos += 3), this.finishToken(c.ellipsis)) + : (++this.pos, this.finishToken(c.dot)); + }), + (Ae.readToken_slash = function () { + var n = this.input.charCodeAt(this.pos + 1); + return this.exprAllowed + ? (++this.pos, this.readRegexp()) + : n === 61 + ? this.finishOp(c.assign, 2) + : this.finishOp(c.slash, 1); + }), + (Ae.readToken_mult_modulo_exp = function (n) { + var o = this.input.charCodeAt(this.pos + 1), + l = 1, + h = n === 42 ? c.star : c.modulo; + return ( + this.options.ecmaVersion >= 7 && + n === 42 && + o === 42 && + (++l, + (h = c.starstar), + (o = this.input.charCodeAt(this.pos + 2))), + o === 61 ? this.finishOp(c.assign, l + 1) : this.finishOp(h, l) + ); + }), + (Ae.readToken_pipe_amp = function (n) { + var o = this.input.charCodeAt(this.pos + 1); + if (o === n) { + if (this.options.ecmaVersion >= 12) { + var l = this.input.charCodeAt(this.pos + 2); + if (l === 61) return this.finishOp(c.assign, 3); + } + return this.finishOp(n === 124 ? c.logicalOR : c.logicalAND, 2); + } + return o === 61 + ? this.finishOp(c.assign, 2) + : this.finishOp(n === 124 ? c.bitwiseOR : c.bitwiseAND, 1); + }), + (Ae.readToken_caret = function () { + var n = this.input.charCodeAt(this.pos + 1); + return n === 61 + ? this.finishOp(c.assign, 2) + : this.finishOp(c.bitwiseXOR, 1); + }), + (Ae.readToken_plus_min = function (n) { + var o = this.input.charCodeAt(this.pos + 1); + return o === n + ? o === 45 && + !this.inModule && + this.input.charCodeAt(this.pos + 2) === 62 && + (this.lastTokEnd === 0 || + M.test(this.input.slice(this.lastTokEnd, this.pos))) + ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) + : this.finishOp(c.incDec, 2) + : o === 61 + ? this.finishOp(c.assign, 2) + : this.finishOp(c.plusMin, 1); + }), + (Ae.readToken_lt_gt = function (n) { + var o = this.input.charCodeAt(this.pos + 1), + l = 1; + return o === n + ? ((l = + n === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2), + this.input.charCodeAt(this.pos + l) === 61 + ? this.finishOp(c.assign, l + 1) + : this.finishOp(c.bitShift, l)) + : o === 33 && + n === 60 && + !this.inModule && + this.input.charCodeAt(this.pos + 2) === 45 && + this.input.charCodeAt(this.pos + 3) === 45 + ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) + : (o === 61 && (l = 2), this.finishOp(c.relational, l)); + }), + (Ae.readToken_eq_excl = function (n) { + var o = this.input.charCodeAt(this.pos + 1); + return o === 61 + ? this.finishOp( + c.equality, + this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2 + ) + : n === 61 && o === 62 && this.options.ecmaVersion >= 6 + ? ((this.pos += 2), this.finishToken(c.arrow)) + : this.finishOp(n === 61 ? c.eq : c.prefix, 1); + }), + (Ae.readToken_question = function () { + var n = this.options.ecmaVersion; + if (n >= 11) { + var o = this.input.charCodeAt(this.pos + 1); + if (o === 46) { + var l = this.input.charCodeAt(this.pos + 2); + if (l < 48 || l > 57) return this.finishOp(c.questionDot, 2); + } + if (o === 63) { + if (n >= 12) { + var h = this.input.charCodeAt(this.pos + 2); + if (h === 61) return this.finishOp(c.assign, 3); + } + return this.finishOp(c.coalesce, 2); + } + } + return this.finishOp(c.question, 1); + }), + (Ae.readToken_numberSign = function () { + var n = this.options.ecmaVersion, + o = 35; + if ( + n >= 13 && + (++this.pos, (o = this.fullCharCodeAtPos()), f(o, !0) || o === 92) + ) + return this.finishToken(c.privateId, this.readWord1()); + this.raise(this.pos, "Unexpected character '" + nt(o) + "'"); + }), + (Ae.getTokenFromCode = function (n) { + switch (n) { + case 46: + return this.readToken_dot(); + case 40: + return ++this.pos, this.finishToken(c.parenL); + case 41: + return ++this.pos, this.finishToken(c.parenR); + case 59: + return ++this.pos, this.finishToken(c.semi); + case 44: + return ++this.pos, this.finishToken(c.comma); + case 91: + return ++this.pos, this.finishToken(c.bracketL); + case 93: + return ++this.pos, this.finishToken(c.bracketR); + case 123: + return ++this.pos, this.finishToken(c.braceL); + case 125: + return ++this.pos, this.finishToken(c.braceR); + case 58: + return ++this.pos, this.finishToken(c.colon); + case 96: + if (this.options.ecmaVersion < 6) break; + return ++this.pos, this.finishToken(c.backQuote); + case 48: + var o = this.input.charCodeAt(this.pos + 1); + if (o === 120 || o === 88) return this.readRadixNumber(16); + if (this.options.ecmaVersion >= 6) { + if (o === 111 || o === 79) return this.readRadixNumber(8); + if (o === 98 || o === 66) return this.readRadixNumber(2); + } + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + return this.readNumber(!1); + case 34: + case 39: + return this.readString(n); + case 47: + return this.readToken_slash(); + case 37: + case 42: + return this.readToken_mult_modulo_exp(n); + case 124: + case 38: + return this.readToken_pipe_amp(n); + case 94: + return this.readToken_caret(); + case 43: + case 45: + return this.readToken_plus_min(n); + case 60: + case 62: + return this.readToken_lt_gt(n); + case 61: + case 33: + return this.readToken_eq_excl(n); + case 63: + return this.readToken_question(); + case 126: + return this.finishOp(c.prefix, 1); + case 35: + return this.readToken_numberSign(); + } + this.raise(this.pos, "Unexpected character '" + nt(n) + "'"); + }), + (Ae.finishOp = function (n, o) { + var l = this.input.slice(this.pos, this.pos + o); + return (this.pos += o), this.finishToken(n, l); + }), + (Ae.readRegexp = function () { + for (var n, o, l = this.pos; ; ) { + this.pos >= this.input.length && + this.raise(l, 'Unterminated regular expression'); + var h = this.input.charAt(this.pos); + if ( + (M.test(h) && this.raise(l, 'Unterminated regular expression'), n) + ) + n = !1; + else { + if (h === '[') o = !0; + else if (h === ']' && o) o = !1; + else if (h === '/' && !o) break; + n = h === '\\'; + } + ++this.pos; + } + var m = this.input.slice(l, this.pos); + ++this.pos; + var I = this.pos, + R = this.readWord1(); + this.containsEsc && this.unexpected(I); + var Y = this.regexpState || (this.regexpState = new on(this)); + Y.reset(l, m, R), + this.validateRegExpFlags(Y), + this.validateRegExpPattern(Y); + var Q = null; + try { + Q = new RegExp(m, R); + } catch {} + return this.finishToken(c.regexp, {pattern: m, flags: R, value: Q}); + }), + (Ae.readInt = function (n, o, l) { + for ( + var h = this.options.ecmaVersion >= 12 && o === void 0, + m = l && this.input.charCodeAt(this.pos) === 48, + I = this.pos, + R = 0, + Y = 0, + Q = 0, + ye = o ?? 1 / 0; + Q < ye; + ++Q, ++this.pos + ) { + var xe = this.input.charCodeAt(this.pos), + Ze = void 0; + if (h && xe === 95) { + m && + this.raiseRecoverable( + this.pos, + 'Numeric separator is not allowed in legacy octal numeric literals' + ), + Y === 95 && + this.raiseRecoverable( + this.pos, + 'Numeric separator must be exactly one underscore' + ), + Q === 0 && + this.raiseRecoverable( + this.pos, + 'Numeric separator is not allowed at the first of digits' + ), + (Y = xe); + continue; + } + if ( + (xe >= 97 + ? (Ze = xe - 97 + 10) + : xe >= 65 + ? (Ze = xe - 65 + 10) + : xe >= 48 && xe <= 57 + ? (Ze = xe - 48) + : (Ze = 1 / 0), + Ze >= n) + ) + break; + (Y = xe), (R = R * n + Ze); + } + return ( + h && + Y === 95 && + this.raiseRecoverable( + this.pos - 1, + 'Numeric separator is not allowed at the last of digits' + ), + this.pos === I || (o != null && this.pos - I !== o) ? null : R + ); + }); + function bf(n, o) { + return o ? parseInt(n, 8) : parseFloat(n.replace(/_/g, '')); + } + function Mc(n) { + return typeof BigInt != 'function' ? null : BigInt(n.replace(/_/g, '')); + } + (Ae.readRadixNumber = function (n) { + var o = this.pos; + this.pos += 2; + var l = this.readInt(n); + return ( + l == null && + this.raise(this.start + 2, 'Expected number in radix ' + n), + this.options.ecmaVersion >= 11 && + this.input.charCodeAt(this.pos) === 110 + ? ((l = Mc(this.input.slice(o, this.pos))), ++this.pos) + : f(this.fullCharCodeAtPos()) && + this.raise(this.pos, 'Identifier directly after number'), + this.finishToken(c.num, l) + ); + }), + (Ae.readNumber = function (n) { + var o = this.pos; + !n && + this.readInt(10, void 0, !0) === null && + this.raise(o, 'Invalid number'); + var l = this.pos - o >= 2 && this.input.charCodeAt(o) === 48; + l && this.strict && this.raise(o, 'Invalid number'); + var h = this.input.charCodeAt(this.pos); + if (!l && !n && this.options.ecmaVersion >= 11 && h === 110) { + var m = Mc(this.input.slice(o, this.pos)); + return ( + ++this.pos, + f(this.fullCharCodeAtPos()) && + this.raise(this.pos, 'Identifier directly after number'), + this.finishToken(c.num, m) + ); + } + l && /[89]/.test(this.input.slice(o, this.pos)) && (l = !1), + h === 46 && + !l && + (++this.pos, + this.readInt(10), + (h = this.input.charCodeAt(this.pos))), + (h === 69 || h === 101) && + !l && + ((h = this.input.charCodeAt(++this.pos)), + (h === 43 || h === 45) && ++this.pos, + this.readInt(10) === null && this.raise(o, 'Invalid number')), + f(this.fullCharCodeAtPos()) && + this.raise(this.pos, 'Identifier directly after number'); + var I = bf(this.input.slice(o, this.pos), l); + return this.finishToken(c.num, I); + }), + (Ae.readCodePoint = function () { + var n = this.input.charCodeAt(this.pos), + o; + if (n === 123) { + this.options.ecmaVersion < 6 && this.unexpected(); + var l = ++this.pos; + (o = this.readHexChar( + this.input.indexOf('}', this.pos) - this.pos + )), + ++this.pos, + o > 1114111 && + this.invalidStringToken(l, 'Code point out of bounds'); + } else o = this.readHexChar(4); + return o; + }), + (Ae.readString = function (n) { + for (var o = '', l = ++this.pos; ; ) { + this.pos >= this.input.length && + this.raise(this.start, 'Unterminated string constant'); + var h = this.input.charCodeAt(this.pos); + if (h === n) break; + h === 92 + ? ((o += this.input.slice(l, this.pos)), + (o += this.readEscapedChar(!1)), + (l = this.pos)) + : h === 8232 || h === 8233 + ? (this.options.ecmaVersion < 10 && + this.raise(this.start, 'Unterminated string constant'), + ++this.pos, + this.options.locations && + (this.curLine++, (this.lineStart = this.pos))) + : (X(h) && this.raise(this.start, 'Unterminated string constant'), + ++this.pos); + } + return ( + (o += this.input.slice(l, this.pos++)), + this.finishToken(c.string, o) + ); + }); + var Fc = {}; + (Ae.tryReadTemplateToken = function () { + this.inTemplateElement = !0; + try { + this.readTmplToken(); + } catch (n) { + if (n === Fc) this.readInvalidTemplateToken(); + else throw n; + } + this.inTemplateElement = !1; + }), + (Ae.invalidStringToken = function (n, o) { + if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Fc; + this.raise(n, o); + }), + (Ae.readTmplToken = function () { + for (var n = '', o = this.pos; ; ) { + this.pos >= this.input.length && + this.raise(this.start, 'Unterminated template'); + var l = this.input.charCodeAt(this.pos); + if ( + l === 96 || + (l === 36 && this.input.charCodeAt(this.pos + 1) === 123) + ) + return this.pos === this.start && + (this.type === c.template || this.type === c.invalidTemplate) + ? l === 36 + ? ((this.pos += 2), this.finishToken(c.dollarBraceL)) + : (++this.pos, this.finishToken(c.backQuote)) + : ((n += this.input.slice(o, this.pos)), + this.finishToken(c.template, n)); + if (l === 92) + (n += this.input.slice(o, this.pos)), + (n += this.readEscapedChar(!0)), + (o = this.pos); + else if (X(l)) { + switch (((n += this.input.slice(o, this.pos)), ++this.pos, l)) { + case 13: + this.input.charCodeAt(this.pos) === 10 && ++this.pos; + case 10: + n += ` +`; + break; + default: + n += String.fromCharCode(l); + break; + } + this.options.locations && + (++this.curLine, (this.lineStart = this.pos)), + (o = this.pos); + } else ++this.pos; + } + }), + (Ae.readInvalidTemplateToken = function () { + for (; this.pos < this.input.length; this.pos++) + switch (this.input[this.pos]) { + case '\\': + ++this.pos; + break; + case '$': + if (this.input[this.pos + 1] !== '{') break; + case '`': + return this.finishToken( + c.invalidTemplate, + this.input.slice(this.start, this.pos) + ); + case '\r': + this.input[this.pos + 1] === + ` +` && ++this.pos; + case ` +`: + case '\u2028': + case '\u2029': + ++this.curLine, (this.lineStart = this.pos + 1); + break; + } + this.raise(this.start, 'Unterminated template'); + }), + (Ae.readEscapedChar = function (n) { + var o = this.input.charCodeAt(++this.pos); + switch ((++this.pos, o)) { + case 110: + return ` +`; + case 114: + return '\r'; + case 120: + return String.fromCharCode(this.readHexChar(2)); + case 117: + return nt(this.readCodePoint()); + case 116: + return ' '; + case 98: + return '\b'; + case 118: + return '\v'; + case 102: + return '\f'; + case 13: + this.input.charCodeAt(this.pos) === 10 && ++this.pos; + case 10: + return ( + this.options.locations && + ((this.lineStart = this.pos), ++this.curLine), + '' + ); + case 56: + case 57: + if ( + (this.strict && + this.invalidStringToken( + this.pos - 1, + 'Invalid escape sequence' + ), + n) + ) { + var l = this.pos - 1; + this.invalidStringToken( + l, + 'Invalid escape sequence in template string' + ); + } + default: + if (o >= 48 && o <= 55) { + var h = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], + m = parseInt(h, 8); + return ( + m > 255 && ((h = h.slice(0, -1)), (m = parseInt(h, 8))), + (this.pos += h.length - 1), + (o = this.input.charCodeAt(this.pos)), + (h !== '0' || o === 56 || o === 57) && + (this.strict || n) && + this.invalidStringToken( + this.pos - 1 - h.length, + n + ? 'Octal literal in template string' + : 'Octal literal in strict mode' + ), + String.fromCharCode(m) + ); + } + return X(o) + ? (this.options.locations && + ((this.lineStart = this.pos), ++this.curLine), + '') + : String.fromCharCode(o); + } + }), + (Ae.readHexChar = function (n) { + var o = this.pos, + l = this.readInt(16, n); + return ( + l === null && + this.invalidStringToken(o, 'Bad character escape sequence'), + l + ); + }), + (Ae.readWord1 = function () { + this.containsEsc = !1; + for ( + var n = '', o = !0, l = this.pos, h = this.options.ecmaVersion >= 6; + this.pos < this.input.length; + + ) { + var m = this.fullCharCodeAtPos(); + if (x(m, h)) this.pos += m <= 65535 ? 1 : 2; + else if (m === 92) { + (this.containsEsc = !0), (n += this.input.slice(l, this.pos)); + var I = this.pos; + this.input.charCodeAt(++this.pos) !== 117 && + this.invalidStringToken( + this.pos, + 'Expecting Unicode escape sequence \\uXXXX' + ), + ++this.pos; + var R = this.readCodePoint(); + (o ? f : x)(R, h) || + this.invalidStringToken(I, 'Invalid Unicode escape'), + (n += nt(R)), + (l = this.pos); + } else break; + o = !1; + } + return n + this.input.slice(l, this.pos); + }), + (Ae.readWord = function () { + var n = this.readWord1(), + o = c.name; + return this.keywords.test(n) && (o = H[n]), this.finishToken(o, n); + }); + var Bc = '8.15.0'; + Ge.acorn = { + Parser: Ge, + version: Bc, + defaultOptions: Pt, + Position: ct, + SourceLocation: wt, + getLineInfo: $t, + Node: Fn, + TokenType: g, + tokTypes: c, + keywordTypes: H, + TokContext: Rt, + tokContexts: Ue, + isIdentifierChar: x, + isIdentifierStart: f, + Token: xr, + isNewLine: X, + lineBreak: M, + lineBreakG: z, + nonASCIIwhitespace: pe, + }; + function Cf(n, o) { + return Ge.parse(n, o); + } + function wf(n, o, l) { + return Ge.parseExpressionAt(n, o, l); + } + function Sf(n, o) { + return Ge.tokenizer(n, o); + } + (e.Node = Fn), + (e.Parser = Ge), + (e.Position = ct), + (e.SourceLocation = wt), + (e.TokContext = Rt), + (e.Token = xr), + (e.TokenType = g), + (e.defaultOptions = Pt), + (e.getLineInfo = $t), + (e.isIdentifierChar = x), + (e.isIdentifierStart = f), + (e.isNewLine = X), + (e.keywordTypes = H), + (e.lineBreak = M), + (e.lineBreakG = z), + (e.nonASCIIwhitespace = pe), + (e.parse = Cf), + (e.parseExpressionAt = wf), + (e.tokContexts = Ue), + (e.tokTypes = c), + (e.tokenizer = Sf), + (e.version = Bc); + }); + }); + var ff = Z((Bo, hf) => { + (function (e, t) { + typeof Bo == 'object' && typeof hf < 'u' + ? t(Bo, pf()) + : typeof define == 'function' && define.amd + ? define(['exports', 'acorn'], t) + : ((e = typeof globalThis < 'u' ? globalThis : e || self), + t(((e.acorn = e.acorn || {}), (e.acorn.loose = {})), e.acorn)); + })(Bo, function (e, t) { + 'use strict'; + var s = '\u2716'; + function i(u) { + return u.name === s; + } + function r() {} + var a = function (f, x) { + if ( + (x === void 0 && (x = {}), + (this.toks = this.constructor.BaseParser.tokenizer(f, x)), + (this.options = this.toks.options), + (this.input = this.toks.input), + (this.tok = this.last = {type: t.tokTypes.eof, start: 0, end: 0}), + (this.tok.validateRegExpFlags = r), + (this.tok.validateRegExpPattern = r), + this.options.locations) + ) { + var g = this.toks.curPosition(); + this.tok.loc = new t.SourceLocation(this.toks, g, g); + } + (this.ahead = []), + (this.context = []), + (this.curIndent = 0), + (this.curLineStart = 0), + (this.nextLineStart = this.lineEnd(this.curLineStart) + 1), + (this.inAsync = !1), + (this.inGenerator = !1), + (this.inFunction = !1); + }; + (a.prototype.startNode = function () { + return new t.Node( + this.toks, + this.tok.start, + this.options.locations ? this.tok.loc.start : null + ); + }), + (a.prototype.storeCurrentPos = function () { + return this.options.locations + ? [this.tok.start, this.tok.loc.start] + : this.tok.start; + }), + (a.prototype.startNodeAt = function (f) { + return this.options.locations + ? new t.Node(this.toks, f[0], f[1]) + : new t.Node(this.toks, f); + }), + (a.prototype.finishNode = function (f, x) { + return ( + (f.type = x), + (f.end = this.last.end), + this.options.locations && (f.loc.end = this.last.loc.end), + this.options.ranges && (f.range[1] = this.last.end), + f + ); + }), + (a.prototype.dummyNode = function (f) { + var x = this.startNode(); + return ( + (x.type = f), + (x.end = x.start), + this.options.locations && (x.loc.end = x.loc.start), + this.options.ranges && (x.range[1] = x.start), + (this.last = { + type: t.tokTypes.name, + start: x.start, + end: x.start, + loc: x.loc, + }), + x + ); + }), + (a.prototype.dummyIdent = function () { + var f = this.dummyNode('Identifier'); + return (f.name = s), f; + }), + (a.prototype.dummyString = function () { + var f = this.dummyNode('Literal'); + return (f.value = f.raw = s), f; + }), + (a.prototype.eat = function (f) { + return this.tok.type === f ? (this.next(), !0) : !1; + }), + (a.prototype.isContextual = function (f) { + return this.tok.type === t.tokTypes.name && this.tok.value === f; + }), + (a.prototype.eatContextual = function (f) { + return this.tok.value === f && this.eat(t.tokTypes.name); + }), + (a.prototype.canInsertSemicolon = function () { + return ( + this.tok.type === t.tokTypes.eof || + this.tok.type === t.tokTypes.braceR || + t.lineBreak.test(this.input.slice(this.last.end, this.tok.start)) + ); + }), + (a.prototype.semicolon = function () { + return this.eat(t.tokTypes.semi); + }), + (a.prototype.expect = function (f) { + if (this.eat(f)) return !0; + for (var x = 1; x <= 2; x++) + if (this.lookAhead(x).type === f) { + for (var g = 0; g < x; g++) this.next(); + return !0; + } + }), + (a.prototype.pushCx = function () { + this.context.push(this.curIndent); + }), + (a.prototype.popCx = function () { + this.curIndent = this.context.pop(); + }), + (a.prototype.lineEnd = function (f) { + for ( + ; + f < this.input.length && !t.isNewLine(this.input.charCodeAt(f)); + + ) + ++f; + return f; + }), + (a.prototype.indentationAfter = function (f) { + for (var x = 0; ; ++f) { + var g = this.input.charCodeAt(f); + if (g === 32) ++x; + else if (g === 9) x += this.options.tabSize; + else return x; + } + }), + (a.prototype.closes = function (f, x, g, S) { + return this.tok.type === f || this.tok.type === t.tokTypes.eof + ? !0 + : g !== this.curLineStart && + this.curIndent < x && + this.tokenStartsLine() && + (!S || + this.nextLineStart >= this.input.length || + this.indentationAfter(this.nextLineStart) < x); + }), + (a.prototype.tokenStartsLine = function () { + for (var f = this.tok.start - 1; f >= this.curLineStart; --f) { + var x = this.input.charCodeAt(f); + if (x !== 9 && x !== 32) return !1; + } + return !0; + }), + (a.prototype.extend = function (f, x) { + this[f] = x(this[f]); + }), + (a.prototype.parse = function () { + return this.next(), this.parseTopLevel(); + }), + (a.extend = function () { + for (var f = [], x = arguments.length; x--; ) f[x] = arguments[x]; + for (var g = this, S = 0; S < f.length; S++) g = f[S](g); + return g; + }), + (a.parse = function (f, x) { + return new this(f, x).parse(); + }), + (a.BaseParser = t.Parser); + var p = a.prototype; + function d(u) { + return (u < 14 && u > 8) || u === 32 || u === 160 || t.isNewLine(u); + } + (p.next = function () { + if ( + ((this.last = this.tok), + this.ahead.length + ? (this.tok = this.ahead.shift()) + : (this.tok = this.readToken()), + this.tok.start >= this.nextLineStart) + ) { + for (; this.tok.start >= this.nextLineStart; ) + (this.curLineStart = this.nextLineStart), + (this.nextLineStart = this.lineEnd(this.curLineStart) + 1); + this.curIndent = this.indentationAfter(this.curLineStart); + } + }), + (p.readToken = function () { + for (;;) + try { + return ( + this.toks.next(), + this.toks.type === t.tokTypes.dot && + this.input.substr(this.toks.end, 1) === '.' && + this.options.ecmaVersion >= 6 && + (this.toks.end++, (this.toks.type = t.tokTypes.ellipsis)), + new t.Token(this.toks) + ); + } catch (E) { + if (!(E instanceof SyntaxError)) throw E; + var u = E.message, + f = E.raisedAt, + x = !0; + if (/unterminated/i.test(u)) + if (((f = this.lineEnd(E.pos + 1)), /string/.test(u))) + x = { + start: E.pos, + end: f, + type: t.tokTypes.string, + value: this.input.slice(E.pos + 1, f), + }; + else if (/regular expr/i.test(u)) { + var g = this.input.slice(E.pos, f); + try { + g = new RegExp(g); + } catch {} + x = {start: E.pos, end: f, type: t.tokTypes.regexp, value: g}; + } else + /template/.test(u) + ? (x = { + start: E.pos, + end: f, + type: t.tokTypes.template, + value: this.input.slice(E.pos, f), + }) + : (x = !1); + else if ( + /invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test( + u + ) + ) + for (; f < this.input.length && !d(this.input.charCodeAt(f)); ) + ++f; + else if (/character escape|expected hexadecimal/i.test(u)) + for (; f < this.input.length; ) { + var S = this.input.charCodeAt(f++); + if (S === 34 || S === 39 || t.isNewLine(S)) break; + } + else if (/unexpected character/i.test(u)) f++, (x = !1); + else if (/regular expression/i.test(u)) x = !0; + else throw E; + if ( + (this.resetTo(f), + x === !0 && + (x = {start: f, end: f, type: t.tokTypes.name, value: s}), + x) + ) + return ( + this.options.locations && + (x.loc = new t.SourceLocation( + this.toks, + t.getLineInfo(this.input, x.start), + t.getLineInfo(this.input, x.end) + )), + x + ); + } + }), + (p.resetTo = function (u) { + (this.toks.pos = u), (this.toks.containsEsc = !1); + var f = this.input.charAt(u - 1); + if ( + ((this.toks.exprAllowed = + !f || + /[[{(,;:?/*=+\-~!|&%^<>]/.test(f) || + (/[enwfd]/.test(f) && + /\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test( + this.input.slice(u - 10, u) + ))), + this.options.locations) + ) { + (this.toks.curLine = 1), + (this.toks.lineStart = t.lineBreakG.lastIndex = 0); + for (var x; (x = t.lineBreakG.exec(this.input)) && x.index < u; ) + ++this.toks.curLine, + (this.toks.lineStart = x.index + x[0].length); + } + }), + (p.lookAhead = function (u) { + for (; u > this.ahead.length; ) this.ahead.push(this.readToken()); + return this.ahead[u - 1]; + }); + var y = a.prototype; + (y.parseTopLevel = function () { + var u = this.startNodeAt( + this.options.locations ? [0, t.getLineInfo(this.input, 0)] : 0 + ); + for (u.body = []; this.tok.type !== t.tokTypes.eof; ) + u.body.push(this.parseStatement()); + return ( + this.toks.adaptDirectivePrologue(u.body), + (this.last = this.tok), + (u.sourceType = + this.options.sourceType === 'commonjs' + ? 'script' + : this.options.sourceType), + this.finishNode(u, 'Program') + ); + }), + (y.parseStatement = function () { + var u = this.tok.type, + f = this.startNode(), + x; + switch ( + (this.toks.isLet() && ((u = t.tokTypes._var), (x = 'let')), u) + ) { + case t.tokTypes._break: + case t.tokTypes._continue: + this.next(); + var g = u === t.tokTypes._break; + return ( + this.semicolon() || this.canInsertSemicolon() + ? (f.label = null) + : ((f.label = + this.tok.type === t.tokTypes.name + ? this.parseIdent() + : null), + this.semicolon()), + this.finishNode(f, g ? 'BreakStatement' : 'ContinueStatement') + ); + case t.tokTypes._debugger: + return ( + this.next(), + this.semicolon(), + this.finishNode(f, 'DebuggerStatement') + ); + case t.tokTypes._do: + return ( + this.next(), + (f.body = this.parseStatement()), + (f.test = this.eat(t.tokTypes._while) + ? this.parseParenExpression() + : this.dummyIdent()), + this.semicolon(), + this.finishNode(f, 'DoWhileStatement') + ); + case t.tokTypes._for: + this.next(); + var S = + this.options.ecmaVersion >= 9 && this.eatContextual('await'); + if ( + (this.pushCx(), + this.expect(t.tokTypes.parenL), + this.tok.type === t.tokTypes.semi) + ) + return this.parseFor(f, null); + var E = this.toks.isLet(), + L = this.toks.isAwaitUsing(!0), + H = !L && this.toks.isUsing(!0); + if ( + E || + this.tok.type === t.tokTypes._var || + this.tok.type === t.tokTypes._const || + H || + L + ) { + var D = E + ? 'let' + : H + ? 'using' + : L + ? 'await using' + : this.tok.value, + c = this.startNode(); + return ( + H || L + ? (L && this.next(), this.parseVar(c, !0, D)) + : (c = this.parseVar(c, !0, D)), + c.declarations.length === 1 && + (this.tok.type === t.tokTypes._in || this.isContextual('of')) + ? (this.options.ecmaVersion >= 9 && + this.tok.type !== t.tokTypes._in && + (f.await = S), + this.parseForIn(f, c)) + : this.parseFor(f, c) + ); + } + var M = this.parseExpression(!0); + return this.tok.type === t.tokTypes._in || this.isContextual('of') + ? (this.options.ecmaVersion >= 9 && + this.tok.type !== t.tokTypes._in && + (f.await = S), + this.parseForIn(f, this.toAssignable(M))) + : this.parseFor(f, M); + case t.tokTypes._function: + return this.next(), this.parseFunction(f, !0); + case t.tokTypes._if: + return ( + this.next(), + (f.test = this.parseParenExpression()), + (f.consequent = this.parseStatement()), + (f.alternate = this.eat(t.tokTypes._else) + ? this.parseStatement() + : null), + this.finishNode(f, 'IfStatement') + ); + case t.tokTypes._return: + return ( + this.next(), + this.eat(t.tokTypes.semi) || this.canInsertSemicolon() + ? (f.argument = null) + : ((f.argument = this.parseExpression()), this.semicolon()), + this.finishNode(f, 'ReturnStatement') + ); + case t.tokTypes._switch: + var z = this.curIndent, + X = this.curLineStart; + this.next(), + (f.discriminant = this.parseParenExpression()), + (f.cases = []), + this.pushCx(), + this.expect(t.tokTypes.braceL); + for (var ie; !this.closes(t.tokTypes.braceR, z, X, !0); ) + if ( + this.tok.type === t.tokTypes._case || + this.tok.type === t.tokTypes._default + ) { + var pe = this.tok.type === t.tokTypes._case; + ie && this.finishNode(ie, 'SwitchCase'), + f.cases.push((ie = this.startNode())), + (ie.consequent = []), + this.next(), + pe ? (ie.test = this.parseExpression()) : (ie.test = null), + this.expect(t.tokTypes.colon); + } else + ie || + (f.cases.push((ie = this.startNode())), + (ie.consequent = []), + (ie.test = null)), + ie.consequent.push(this.parseStatement()); + return ( + ie && this.finishNode(ie, 'SwitchCase'), + this.popCx(), + this.eat(t.tokTypes.braceR), + this.finishNode(f, 'SwitchStatement') + ); + case t.tokTypes._throw: + return ( + this.next(), + (f.argument = this.parseExpression()), + this.semicolon(), + this.finishNode(f, 'ThrowStatement') + ); + case t.tokTypes._try: + if ( + (this.next(), + (f.block = this.parseBlock()), + (f.handler = null), + this.tok.type === t.tokTypes._catch) + ) { + var ae = this.startNode(); + this.next(), + this.eat(t.tokTypes.parenL) + ? ((ae.param = this.toAssignable(this.parseExprAtom(), !0)), + this.expect(t.tokTypes.parenR)) + : (ae.param = null), + (ae.body = this.parseBlock()), + (f.handler = this.finishNode(ae, 'CatchClause')); + } + return ( + (f.finalizer = this.eat(t.tokTypes._finally) + ? this.parseBlock() + : null), + !f.handler && !f.finalizer + ? f.block + : this.finishNode(f, 'TryStatement') + ); + case t.tokTypes._var: + case t.tokTypes._const: + return this.parseVar(f, !1, x || this.tok.value); + case t.tokTypes._while: + return ( + this.next(), + (f.test = this.parseParenExpression()), + (f.body = this.parseStatement()), + this.finishNode(f, 'WhileStatement') + ); + case t.tokTypes._with: + return ( + this.next(), + (f.object = this.parseParenExpression()), + (f.body = this.parseStatement()), + this.finishNode(f, 'WithStatement') + ); + case t.tokTypes.braceL: + return this.parseBlock(); + case t.tokTypes.semi: + return this.next(), this.finishNode(f, 'EmptyStatement'); + case t.tokTypes._class: + return this.parseClass(!0); + case t.tokTypes._import: + if (this.options.ecmaVersion > 10) { + var He = this.lookAhead(1).type; + if (He === t.tokTypes.parenL || He === t.tokTypes.dot) + return ( + (f.expression = this.parseExpression()), + this.semicolon(), + this.finishNode(f, 'ExpressionStatement') + ); + } + return this.parseImport(); + case t.tokTypes._export: + return this.parseExport(); + default: + if (this.toks.isAsyncFunction()) + return this.next(), this.next(), this.parseFunction(f, !0, !0); + if (this.toks.isUsing(!1)) return this.parseVar(f, !1, 'using'); + if (this.toks.isAwaitUsing(!1)) + return this.next(), this.parseVar(f, !1, 'await using'); + var qe = this.parseExpression(); + return i(qe) + ? (this.next(), + this.tok.type === t.tokTypes.eof + ? this.finishNode(f, 'EmptyStatement') + : this.parseStatement()) + : u === t.tokTypes.name && + qe.type === 'Identifier' && + this.eat(t.tokTypes.colon) + ? ((f.body = this.parseStatement()), + (f.label = qe), + this.finishNode(f, 'LabeledStatement')) + : ((f.expression = qe), + this.semicolon(), + this.finishNode(f, 'ExpressionStatement')); + } + }), + (y.parseBlock = function () { + var u = this.startNode(); + this.pushCx(), this.expect(t.tokTypes.braceL); + var f = this.curIndent, + x = this.curLineStart; + for (u.body = []; !this.closes(t.tokTypes.braceR, f, x, !0); ) + u.body.push(this.parseStatement()); + return ( + this.popCx(), + this.eat(t.tokTypes.braceR), + this.finishNode(u, 'BlockStatement') + ); + }), + (y.parseFor = function (u, f) { + return ( + (u.init = f), + (u.test = u.update = null), + this.eat(t.tokTypes.semi) && + this.tok.type !== t.tokTypes.semi && + (u.test = this.parseExpression()), + this.eat(t.tokTypes.semi) && + this.tok.type !== t.tokTypes.parenR && + (u.update = this.parseExpression()), + this.popCx(), + this.expect(t.tokTypes.parenR), + (u.body = this.parseStatement()), + this.finishNode(u, 'ForStatement') + ); + }), + (y.parseForIn = function (u, f) { + var x = + this.tok.type === t.tokTypes._in + ? 'ForInStatement' + : 'ForOfStatement'; + return ( + this.next(), + (u.left = f), + (u.right = this.parseExpression()), + this.popCx(), + this.expect(t.tokTypes.parenR), + (u.body = this.parseStatement()), + this.finishNode(u, x) + ); + }), + (y.parseVar = function (u, f, x) { + (u.kind = x), this.next(), (u.declarations = []); + do { + var g = this.startNode(); + (g.id = + this.options.ecmaVersion >= 6 + ? this.toAssignable(this.parseExprAtom(), !0) + : this.parseIdent()), + (g.init = this.eat(t.tokTypes.eq) + ? this.parseMaybeAssign(f) + : null), + u.declarations.push(this.finishNode(g, 'VariableDeclarator')); + } while (this.eat(t.tokTypes.comma)); + if (!u.declarations.length) { + var S = this.startNode(); + (S.id = this.dummyIdent()), + u.declarations.push(this.finishNode(S, 'VariableDeclarator')); + } + return ( + f || this.semicolon(), this.finishNode(u, 'VariableDeclaration') + ); + }), + (y.parseClass = function (u) { + var f = this.startNode(); + this.next(), + this.tok.type === t.tokTypes.name + ? (f.id = this.parseIdent()) + : u === !0 + ? (f.id = this.dummyIdent()) + : (f.id = null), + (f.superClass = this.eat(t.tokTypes._extends) + ? this.parseExpression() + : null), + (f.body = this.startNode()), + (f.body.body = []), + this.pushCx(); + var x = this.curIndent + 1, + g = this.curLineStart; + for ( + this.eat(t.tokTypes.braceL), + this.curIndent + 1 < x && + ((x = this.curIndent), (g = this.curLineStart)); + !this.closes(t.tokTypes.braceR, x, g); + + ) { + var S = this.parseClassElement(); + S && f.body.body.push(S); + } + return ( + this.popCx(), + this.eat(t.tokTypes.braceR) || + ((this.last.end = this.tok.start), + this.options.locations && + (this.last.loc.end = this.tok.loc.start)), + this.semicolon(), + this.finishNode(f.body, 'ClassBody'), + this.finishNode(f, u ? 'ClassDeclaration' : 'ClassExpression') + ); + }), + (y.parseClassElement = function () { + if (this.eat(t.tokTypes.semi)) return null; + var u = this.options, + f = u.ecmaVersion, + x = u.locations, + g = this.curIndent, + S = this.curLineStart, + E = this.startNode(), + L = '', + H = !1, + D = !1, + c = 'method', + M = !1; + if (this.eatContextual('static')) { + if (f >= 13 && this.eat(t.tokTypes.braceL)) + return this.parseClassStaticBlock(E), E; + this.isClassElementNameStart() || this.toks.type === t.tokTypes.star + ? (M = !0) + : (L = 'static'); + } + if ( + ((E.static = M), + !L && + f >= 8 && + this.eatContextual('async') && + ((this.isClassElementNameStart() || + this.toks.type === t.tokTypes.star) && + !this.canInsertSemicolon() + ? (D = !0) + : (L = 'async')), + !L) + ) { + H = this.eat(t.tokTypes.star); + var z = this.toks.value; + (this.eatContextual('get') || this.eatContextual('set')) && + (this.isClassElementNameStart() ? (c = z) : (L = z)); + } + if (L) + (E.computed = !1), + (E.key = this.startNodeAt( + x + ? [this.toks.lastTokStart, this.toks.lastTokStartLoc] + : this.toks.lastTokStart + )), + (E.key.name = L), + this.finishNode(E.key, 'Identifier'); + else if ((this.parseClassElementName(E), i(E.key))) + return ( + i(this.parseMaybeAssign()) && this.next(), + this.eat(t.tokTypes.comma), + null + ); + if ( + f < 13 || + this.toks.type === t.tokTypes.parenL || + c !== 'method' || + H || + D + ) { + var X = + !E.computed && + !E.static && + !H && + !D && + c === 'method' && + ((E.key.type === 'Identifier' && E.key.name === 'constructor') || + (E.key.type === 'Literal' && E.key.value === 'constructor')); + (E.kind = X ? 'constructor' : c), + (E.value = this.parseMethod(H, D)), + this.finishNode(E, 'MethodDefinition'); + } else { + if (this.eat(t.tokTypes.eq)) + if ( + this.curLineStart !== S && + this.curIndent <= g && + this.tokenStartsLine() + ) + E.value = null; + else { + var ie = this.inAsync, + pe = this.inGenerator; + (this.inAsync = !1), + (this.inGenerator = !1), + (E.value = this.parseMaybeAssign()), + (this.inAsync = ie), + (this.inGenerator = pe); + } + else E.value = null; + this.semicolon(), this.finishNode(E, 'PropertyDefinition'); + } + return E; + }), + (y.parseClassStaticBlock = function (u) { + var f = this.curIndent, + x = this.curLineStart; + for ( + u.body = [], this.pushCx(); + !this.closes(t.tokTypes.braceR, f, x, !0); + + ) + u.body.push(this.parseStatement()); + return ( + this.popCx(), + this.eat(t.tokTypes.braceR), + this.finishNode(u, 'StaticBlock') + ); + }), + (y.isClassElementNameStart = function () { + return this.toks.isClassElementNameStart(); + }), + (y.parseClassElementName = function (u) { + this.toks.type === t.tokTypes.privateId + ? ((u.computed = !1), (u.key = this.parsePrivateIdent())) + : this.parsePropertyName(u); + }), + (y.parseFunction = function (u, f, x) { + var g = this.inAsync, + S = this.inGenerator, + E = this.inFunction; + return ( + this.initFunction(u), + this.options.ecmaVersion >= 6 && + (u.generator = this.eat(t.tokTypes.star)), + this.options.ecmaVersion >= 8 && (u.async = !!x), + this.tok.type === t.tokTypes.name + ? (u.id = this.parseIdent()) + : f === !0 && (u.id = this.dummyIdent()), + (this.inAsync = u.async), + (this.inGenerator = u.generator), + (this.inFunction = !0), + (u.params = this.parseFunctionParams()), + (u.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(u.body.body), + (this.inAsync = g), + (this.inGenerator = S), + (this.inFunction = E), + this.finishNode(u, f ? 'FunctionDeclaration' : 'FunctionExpression') + ); + }), + (y.parseExport = function () { + var u = this.startNode(); + if ((this.next(), this.eat(t.tokTypes.star))) + return ( + this.options.ecmaVersion >= 11 && + (this.eatContextual('as') + ? (u.exported = this.parseExprAtom()) + : (u.exported = null)), + (u.source = this.eatContextual('from') + ? this.parseExprAtom() + : this.dummyString()), + this.options.ecmaVersion >= 16 && + (u.attributes = this.parseWithClause()), + this.semicolon(), + this.finishNode(u, 'ExportAllDeclaration') + ); + if (this.eat(t.tokTypes._default)) { + var f; + if ( + this.tok.type === t.tokTypes._function || + (f = this.toks.isAsyncFunction()) + ) { + var x = this.startNode(); + this.next(), + f && this.next(), + (u.declaration = this.parseFunction(x, 'nullableID', f)); + } else + this.tok.type === t.tokTypes._class + ? (u.declaration = this.parseClass('nullableID')) + : ((u.declaration = this.parseMaybeAssign()), this.semicolon()); + return this.finishNode(u, 'ExportDefaultDeclaration'); + } + return ( + this.tok.type.keyword || + this.toks.isLet() || + this.toks.isAsyncFunction() + ? ((u.declaration = this.parseStatement()), + (u.specifiers = []), + (u.source = null)) + : ((u.declaration = null), + (u.specifiers = this.parseExportSpecifierList()), + (u.source = this.eatContextual('from') + ? this.parseExprAtom() + : null), + this.options.ecmaVersion >= 16 && + (u.attributes = this.parseWithClause()), + this.semicolon()), + this.finishNode(u, 'ExportNamedDeclaration') + ); + }), + (y.parseImport = function () { + var u = this.startNode(); + if ((this.next(), this.tok.type === t.tokTypes.string)) + (u.specifiers = []), (u.source = this.parseExprAtom()); + else { + var f; + this.tok.type === t.tokTypes.name && + this.tok.value !== 'from' && + ((f = this.startNode()), + (f.local = this.parseIdent()), + this.finishNode(f, 'ImportDefaultSpecifier'), + this.eat(t.tokTypes.comma)), + (u.specifiers = this.parseImportSpecifiers()), + (u.source = + this.eatContextual('from') && + this.tok.type === t.tokTypes.string + ? this.parseExprAtom() + : this.dummyString()), + f && u.specifiers.unshift(f); + } + return ( + this.options.ecmaVersion >= 16 && + (u.attributes = this.parseWithClause()), + this.semicolon(), + this.finishNode(u, 'ImportDeclaration') + ); + }), + (y.parseImportSpecifiers = function () { + var u = []; + if (this.tok.type === t.tokTypes.star) { + var f = this.startNode(); + this.next(), + (f.local = this.eatContextual('as') + ? this.parseIdent() + : this.dummyIdent()), + u.push(this.finishNode(f, 'ImportNamespaceSpecifier')); + } else { + var x = this.curIndent, + g = this.curLineStart, + S = this.nextLineStart; + for ( + this.pushCx(), + this.eat(t.tokTypes.braceL), + this.curLineStart > S && (S = this.curLineStart); + !this.closes( + t.tokTypes.braceR, + x + (this.curLineStart <= S ? 1 : 0), + g + ); + + ) { + var E = this.startNode(); + if (this.eat(t.tokTypes.star)) + (E.local = this.eatContextual('as') + ? this.parseModuleExportName() + : this.dummyIdent()), + this.finishNode(E, 'ImportNamespaceSpecifier'); + else { + if ( + this.isContextual('from') || + ((E.imported = this.parseModuleExportName()), i(E.imported)) + ) + break; + (E.local = this.eatContextual('as') + ? this.parseModuleExportName() + : E.imported), + this.finishNode(E, 'ImportSpecifier'); + } + u.push(E), this.eat(t.tokTypes.comma); + } + this.eat(t.tokTypes.braceR), this.popCx(); + } + return u; + }), + (y.parseWithClause = function () { + var u = []; + if (!this.eat(t.tokTypes._with)) return u; + var f = this.curIndent, + x = this.curLineStart, + g = this.nextLineStart; + for ( + this.pushCx(), + this.eat(t.tokTypes.braceL), + this.curLineStart > g && (g = this.curLineStart); + !this.closes( + t.tokTypes.braceR, + f + (this.curLineStart <= g ? 1 : 0), + x + ); + + ) { + var S = this.startNode(); + if ( + ((S.key = + this.tok.type === t.tokTypes.string + ? this.parseExprAtom() + : this.parseIdent()), + this.eat(t.tokTypes.colon)) + ) + this.tok.type === t.tokTypes.string + ? (S.value = this.parseExprAtom()) + : (S.value = this.dummyString()); + else { + if (i(S.key)) break; + if (this.tok.type === t.tokTypes.string) + S.value = this.parseExprAtom(); + else break; + } + u.push(this.finishNode(S, 'ImportAttribute')), + this.eat(t.tokTypes.comma); + } + return this.eat(t.tokTypes.braceR), this.popCx(), u; + }), + (y.parseExportSpecifierList = function () { + var u = [], + f = this.curIndent, + x = this.curLineStart, + g = this.nextLineStart; + for ( + this.pushCx(), + this.eat(t.tokTypes.braceL), + this.curLineStart > g && (g = this.curLineStart); + !this.closes( + t.tokTypes.braceR, + f + (this.curLineStart <= g ? 1 : 0), + x + ) && !this.isContextual('from'); + + ) { + var S = this.startNode(); + if (((S.local = this.parseModuleExportName()), i(S.local))) break; + (S.exported = this.eatContextual('as') + ? this.parseModuleExportName() + : S.local), + this.finishNode(S, 'ExportSpecifier'), + u.push(S), + this.eat(t.tokTypes.comma); + } + return this.eat(t.tokTypes.braceR), this.popCx(), u; + }), + (y.parseModuleExportName = function () { + return this.options.ecmaVersion >= 13 && + this.tok.type === t.tokTypes.string + ? this.parseExprAtom() + : this.parseIdent(); + }); + var k = a.prototype; + (k.checkLVal = function (u) { + if (!u) return u; + switch (u.type) { + case 'Identifier': + case 'MemberExpression': + return u; + case 'ParenthesizedExpression': + return (u.expression = this.checkLVal(u.expression)), u; + default: + return this.dummyIdent(); + } + }), + (k.parseExpression = function (u) { + var f = this.storeCurrentPos(), + x = this.parseMaybeAssign(u); + if (this.tok.type === t.tokTypes.comma) { + var g = this.startNodeAt(f); + for (g.expressions = [x]; this.eat(t.tokTypes.comma); ) + g.expressions.push(this.parseMaybeAssign(u)); + return this.finishNode(g, 'SequenceExpression'); + } + return x; + }), + (k.parseParenExpression = function () { + this.pushCx(), this.expect(t.tokTypes.parenL); + var u = this.parseExpression(); + return this.popCx(), this.expect(t.tokTypes.parenR), u; + }), + (k.parseMaybeAssign = function (u) { + if (this.inGenerator && this.toks.isContextual('yield')) { + var f = this.startNode(); + return ( + this.next(), + this.semicolon() || + this.canInsertSemicolon() || + (this.tok.type !== t.tokTypes.star && !this.tok.type.startsExpr) + ? ((f.delegate = !1), (f.argument = null)) + : ((f.delegate = this.eat(t.tokTypes.star)), + (f.argument = this.parseMaybeAssign())), + this.finishNode(f, 'YieldExpression') + ); + } + var x = this.storeCurrentPos(), + g = this.parseMaybeConditional(u); + if (this.tok.type.isAssign) { + var S = this.startNodeAt(x); + return ( + (S.operator = this.tok.value), + (S.left = + this.tok.type === t.tokTypes.eq + ? this.toAssignable(g) + : this.checkLVal(g)), + this.next(), + (S.right = this.parseMaybeAssign(u)), + this.finishNode(S, 'AssignmentExpression') + ); + } + return g; + }), + (k.parseMaybeConditional = function (u) { + var f = this.storeCurrentPos(), + x = this.parseExprOps(u); + if (this.eat(t.tokTypes.question)) { + var g = this.startNodeAt(f); + return ( + (g.test = x), + (g.consequent = this.parseMaybeAssign()), + (g.alternate = this.expect(t.tokTypes.colon) + ? this.parseMaybeAssign(u) + : this.dummyIdent()), + this.finishNode(g, 'ConditionalExpression') + ); + } + return x; + }), + (k.parseExprOps = function (u) { + var f = this.storeCurrentPos(), + x = this.curIndent, + g = this.curLineStart; + return this.parseExprOp(this.parseMaybeUnary(!1), f, -1, u, x, g); + }), + (k.parseExprOp = function (u, f, x, g, S, E) { + if ( + this.curLineStart !== E && + this.curIndent < S && + this.tokenStartsLine() + ) + return u; + var L = this.tok.type.binop; + if (L != null && (!g || this.tok.type !== t.tokTypes._in) && L > x) { + var H = this.startNodeAt(f); + if ( + ((H.left = u), + (H.operator = this.tok.value), + this.next(), + this.curLineStart !== E && + this.curIndent < S && + this.tokenStartsLine()) + ) + H.right = this.dummyIdent(); + else { + var D = this.storeCurrentPos(); + H.right = this.parseExprOp( + this.parseMaybeUnary(!1), + D, + L, + g, + S, + E + ); + } + return ( + this.finishNode( + H, + /&&|\|\||\?\?/.test(H.operator) + ? 'LogicalExpression' + : 'BinaryExpression' + ), + this.parseExprOp(H, f, x, g, S, E) + ); + } + return u; + }), + (k.parseMaybeUnary = function (u) { + var f = this.storeCurrentPos(), + x; + if ( + this.options.ecmaVersion >= 8 && + this.toks.isContextual('await') && + (this.inAsync || + (this.toks.inModule && this.options.ecmaVersion >= 13) || + (!this.inFunction && this.options.allowAwaitOutsideFunction)) + ) + (x = this.parseAwait()), (u = !0); + else if (this.tok.type.prefix) { + var g = this.startNode(), + S = this.tok.type === t.tokTypes.incDec; + S || (u = !0), + (g.operator = this.tok.value), + (g.prefix = !0), + this.next(), + (g.argument = this.parseMaybeUnary(!0)), + S && (g.argument = this.checkLVal(g.argument)), + (x = this.finishNode( + g, + S ? 'UpdateExpression' : 'UnaryExpression' + )); + } else if (this.tok.type === t.tokTypes.ellipsis) { + var E = this.startNode(); + this.next(), + (E.argument = this.parseMaybeUnary(u)), + (x = this.finishNode(E, 'SpreadElement')); + } else if (!u && this.tok.type === t.tokTypes.privateId) + x = this.parsePrivateIdent(); + else + for ( + x = this.parseExprSubscripts(); + this.tok.type.postfix && !this.canInsertSemicolon(); + + ) { + var L = this.startNodeAt(f); + (L.operator = this.tok.value), + (L.prefix = !1), + (L.argument = this.checkLVal(x)), + this.next(), + (x = this.finishNode(L, 'UpdateExpression')); + } + if (!u && this.eat(t.tokTypes.starstar)) { + var H = this.startNodeAt(f); + return ( + (H.operator = '**'), + (H.left = x), + (H.right = this.parseMaybeUnary(!1)), + this.finishNode(H, 'BinaryExpression') + ); + } + return x; + }), + (k.parseExprSubscripts = function () { + var u = this.storeCurrentPos(); + return this.parseSubscripts( + this.parseExprAtom(), + u, + !1, + this.curIndent, + this.curLineStart + ); + }), + (k.parseSubscripts = function (u, f, x, g, S) { + for (var E = this.options.ecmaVersion >= 11, L = !1; ; ) { + if ( + this.curLineStart !== S && + this.curIndent <= g && + this.tokenStartsLine() + ) + if (this.tok.type === t.tokTypes.dot && this.curIndent === g) --g; + else break; + var H = + u.type === 'Identifier' && + u.name === 'async' && + !this.canInsertSemicolon(), + D = E && this.eat(t.tokTypes.questionDot); + if ( + (D && (L = !0), + (D && + this.tok.type !== t.tokTypes.parenL && + this.tok.type !== t.tokTypes.bracketL && + this.tok.type !== t.tokTypes.backQuote) || + this.eat(t.tokTypes.dot)) + ) { + var c = this.startNodeAt(f); + (c.object = u), + this.curLineStart !== S && + this.curIndent <= g && + this.tokenStartsLine() + ? (c.property = this.dummyIdent()) + : (c.property = + this.parsePropertyAccessor() || this.dummyIdent()), + (c.computed = !1), + E && (c.optional = D), + (u = this.finishNode(c, 'MemberExpression')); + } else if (this.tok.type === t.tokTypes.bracketL) { + this.pushCx(), this.next(); + var M = this.startNodeAt(f); + (M.object = u), + (M.property = this.parseExpression()), + (M.computed = !0), + E && (M.optional = D), + this.popCx(), + this.expect(t.tokTypes.bracketR), + (u = this.finishNode(M, 'MemberExpression')); + } else if (!x && this.tok.type === t.tokTypes.parenL) { + var z = this.parseExprList(t.tokTypes.parenR); + if (H && this.eat(t.tokTypes.arrow)) + return this.parseArrowExpression(this.startNodeAt(f), z, !0); + var X = this.startNodeAt(f); + (X.callee = u), + (X.arguments = z), + E && (X.optional = D), + (u = this.finishNode(X, 'CallExpression')); + } else if (this.tok.type === t.tokTypes.backQuote) { + var ie = this.startNodeAt(f); + (ie.tag = u), + (ie.quasi = this.parseTemplate()), + (u = this.finishNode(ie, 'TaggedTemplateExpression')); + } else break; + } + if (L) { + var pe = this.startNodeAt(f); + (pe.expression = u), (u = this.finishNode(pe, 'ChainExpression')); + } + return u; + }), + (k.parseExprAtom = function () { + var u; + switch (this.tok.type) { + case t.tokTypes._this: + case t.tokTypes._super: + var f = + this.tok.type === t.tokTypes._this ? 'ThisExpression' : 'Super'; + return (u = this.startNode()), this.next(), this.finishNode(u, f); + case t.tokTypes.name: + var x = this.storeCurrentPos(), + g = this.parseIdent(), + S = !1; + if (g.name === 'async' && !this.canInsertSemicolon()) { + if (this.eat(t.tokTypes._function)) + return ( + this.toks.overrideContext(t.tokContexts.f_expr), + this.parseFunction(this.startNodeAt(x), !1, !0) + ); + this.tok.type === t.tokTypes.name && + ((g = this.parseIdent()), (S = !0)); + } + return this.eat(t.tokTypes.arrow) + ? this.parseArrowExpression(this.startNodeAt(x), [g], S) + : g; + case t.tokTypes.regexp: + u = this.startNode(); + var E = this.tok.value; + return ( + (u.regex = {pattern: E.pattern, flags: E.flags}), + (u.value = E.value), + (u.raw = this.input.slice(this.tok.start, this.tok.end)), + this.next(), + this.finishNode(u, 'Literal') + ); + case t.tokTypes.num: + case t.tokTypes.string: + return ( + (u = this.startNode()), + (u.value = this.tok.value), + (u.raw = this.input.slice(this.tok.start, this.tok.end)), + this.tok.type === t.tokTypes.num && + u.raw.charCodeAt(u.raw.length - 1) === 110 && + (u.bigint = + u.value != null + ? u.value.toString() + : u.raw.slice(0, -1).replace(/_/g, '')), + this.next(), + this.finishNode(u, 'Literal') + ); + case t.tokTypes._null: + case t.tokTypes._true: + case t.tokTypes._false: + return ( + (u = this.startNode()), + (u.value = + this.tok.type === t.tokTypes._null + ? null + : this.tok.type === t.tokTypes._true), + (u.raw = this.tok.type.keyword), + this.next(), + this.finishNode(u, 'Literal') + ); + case t.tokTypes.parenL: + var L = this.storeCurrentPos(); + this.next(); + var H = this.parseExpression(); + if ( + (this.expect(t.tokTypes.parenR), this.eat(t.tokTypes.arrow)) + ) { + var D = H.expressions || [H]; + return ( + D.length && i(D[D.length - 1]) && D.pop(), + this.parseArrowExpression(this.startNodeAt(L), D) + ); + } + if (this.options.preserveParens) { + var c = this.startNodeAt(L); + (c.expression = H), + (H = this.finishNode(c, 'ParenthesizedExpression')); + } + return H; + case t.tokTypes.bracketL: + return ( + (u = this.startNode()), + (u.elements = this.parseExprList(t.tokTypes.bracketR, !0)), + this.finishNode(u, 'ArrayExpression') + ); + case t.tokTypes.braceL: + return ( + this.toks.overrideContext(t.tokContexts.b_expr), this.parseObj() + ); + case t.tokTypes._class: + return this.parseClass(!1); + case t.tokTypes._function: + return ( + (u = this.startNode()), this.next(), this.parseFunction(u, !1) + ); + case t.tokTypes._new: + return this.parseNew(); + case t.tokTypes.backQuote: + return this.parseTemplate(); + case t.tokTypes._import: + return this.options.ecmaVersion >= 11 + ? this.parseExprImport() + : this.dummyIdent(); + default: + return this.dummyIdent(); + } + }), + (k.parseExprImport = function () { + var u = this.startNode(), + f = this.parseIdent(!0); + switch (this.tok.type) { + case t.tokTypes.parenL: + return this.parseDynamicImport(u); + case t.tokTypes.dot: + return (u.meta = f), this.parseImportMeta(u); + default: + return (u.name = 'import'), this.finishNode(u, 'Identifier'); + } + }), + (k.parseDynamicImport = function (u) { + var f = this.parseExprList(t.tokTypes.parenR); + return ( + (u.source = f[0] || this.dummyString()), + (u.options = f[1] || null), + this.finishNode(u, 'ImportExpression') + ); + }), + (k.parseImportMeta = function (u) { + return ( + this.next(), + (u.property = this.parseIdent(!0)), + this.finishNode(u, 'MetaProperty') + ); + }), + (k.parseNew = function () { + var u = this.startNode(), + f = this.curIndent, + x = this.curLineStart, + g = this.parseIdent(!0); + if (this.options.ecmaVersion >= 6 && this.eat(t.tokTypes.dot)) + return ( + (u.meta = g), + (u.property = this.parseIdent(!0)), + this.finishNode(u, 'MetaProperty') + ); + var S = this.storeCurrentPos(); + return ( + (u.callee = this.parseSubscripts( + this.parseExprAtom(), + S, + !0, + f, + x + )), + this.tok.type === t.tokTypes.parenL + ? (u.arguments = this.parseExprList(t.tokTypes.parenR)) + : (u.arguments = []), + this.finishNode(u, 'NewExpression') + ); + }), + (k.parseTemplateElement = function () { + var u = this.startNode(); + return ( + this.tok.type === t.tokTypes.invalidTemplate + ? (u.value = {raw: this.tok.value, cooked: null}) + : (u.value = { + raw: this.input.slice(this.tok.start, this.tok.end).replace( + /\r\n?/g, + ` +` + ), + cooked: this.tok.value, + }), + this.next(), + (u.tail = this.tok.type === t.tokTypes.backQuote), + this.finishNode(u, 'TemplateElement') + ); + }), + (k.parseTemplate = function () { + var u = this.startNode(); + this.next(), (u.expressions = []); + var f = this.parseTemplateElement(); + for (u.quasis = [f]; !f.tail; ) + this.next(), + u.expressions.push(this.parseExpression()), + this.expect(t.tokTypes.braceR) + ? (f = this.parseTemplateElement()) + : ((f = this.startNode()), + (f.value = {cooked: '', raw: ''}), + (f.tail = !0), + this.finishNode(f, 'TemplateElement')), + u.quasis.push(f); + return ( + this.expect(t.tokTypes.backQuote), + this.finishNode(u, 'TemplateLiteral') + ); + }), + (k.parseObj = function () { + var u = this.startNode(); + (u.properties = []), this.pushCx(); + var f = this.curIndent + 1, + x = this.curLineStart; + for ( + this.eat(t.tokTypes.braceL), + this.curIndent + 1 < f && + ((f = this.curIndent), (x = this.curLineStart)); + !this.closes(t.tokTypes.braceR, f, x); + + ) { + var g = this.startNode(), + S = void 0, + E = void 0, + L = void 0; + if ( + this.options.ecmaVersion >= 9 && + this.eat(t.tokTypes.ellipsis) + ) { + (g.argument = this.parseMaybeAssign()), + u.properties.push(this.finishNode(g, 'SpreadElement')), + this.eat(t.tokTypes.comma); + continue; + } + if ( + (this.options.ecmaVersion >= 6 && + ((L = this.storeCurrentPos()), + (g.method = !1), + (g.shorthand = !1), + (S = this.eat(t.tokTypes.star))), + this.parsePropertyName(g), + this.toks.isAsyncProp(g) + ? ((E = !0), + (S = + this.options.ecmaVersion >= 9 && this.eat(t.tokTypes.star)), + this.parsePropertyName(g)) + : (E = !1), + i(g.key)) + ) { + i(this.parseMaybeAssign()) && this.next(), + this.eat(t.tokTypes.comma); + continue; + } + if (this.eat(t.tokTypes.colon)) + (g.kind = 'init'), (g.value = this.parseMaybeAssign()); + else if ( + this.options.ecmaVersion >= 6 && + (this.tok.type === t.tokTypes.parenL || + this.tok.type === t.tokTypes.braceL) + ) + (g.kind = 'init'), + (g.method = !0), + (g.value = this.parseMethod(S, E)); + else if ( + this.options.ecmaVersion >= 5 && + g.key.type === 'Identifier' && + !g.computed && + (g.key.name === 'get' || g.key.name === 'set') && + this.tok.type !== t.tokTypes.comma && + this.tok.type !== t.tokTypes.braceR && + this.tok.type !== t.tokTypes.eq + ) + (g.kind = g.key.name), + this.parsePropertyName(g), + (g.value = this.parseMethod(!1)); + else { + if (((g.kind = 'init'), this.options.ecmaVersion >= 6)) + if (this.eat(t.tokTypes.eq)) { + var H = this.startNodeAt(L); + (H.operator = '='), + (H.left = g.key), + (H.right = this.parseMaybeAssign()), + (g.value = this.finishNode(H, 'AssignmentExpression')); + } else g.value = g.key; + else g.value = this.dummyIdent(); + g.shorthand = !0; + } + u.properties.push(this.finishNode(g, 'Property')), + this.eat(t.tokTypes.comma); + } + return ( + this.popCx(), + this.eat(t.tokTypes.braceR) || + ((this.last.end = this.tok.start), + this.options.locations && + (this.last.loc.end = this.tok.loc.start)), + this.finishNode(u, 'ObjectExpression') + ); + }), + (k.parsePropertyName = function (u) { + if (this.options.ecmaVersion >= 6) + if (this.eat(t.tokTypes.bracketL)) { + (u.computed = !0), + (u.key = this.parseExpression()), + this.expect(t.tokTypes.bracketR); + return; + } else u.computed = !1; + var f = + this.tok.type === t.tokTypes.num || + this.tok.type === t.tokTypes.string + ? this.parseExprAtom() + : this.parseIdent(); + u.key = f || this.dummyIdent(); + }), + (k.parsePropertyAccessor = function () { + if (this.tok.type === t.tokTypes.name || this.tok.type.keyword) + return this.parseIdent(); + if (this.tok.type === t.tokTypes.privateId) + return this.parsePrivateIdent(); + }), + (k.parseIdent = function () { + var u = + this.tok.type === t.tokTypes.name + ? this.tok.value + : this.tok.type.keyword; + if (!u) return this.dummyIdent(); + this.tok.type.keyword && (this.toks.type = t.tokTypes.name); + var f = this.startNode(); + return this.next(), (f.name = u), this.finishNode(f, 'Identifier'); + }), + (k.parsePrivateIdent = function () { + var u = this.startNode(); + return ( + (u.name = this.tok.value), + this.next(), + this.finishNode(u, 'PrivateIdentifier') + ); + }), + (k.initFunction = function (u) { + (u.id = null), + (u.params = []), + this.options.ecmaVersion >= 6 && + ((u.generator = !1), (u.expression = !1)), + this.options.ecmaVersion >= 8 && (u.async = !1); + }), + (k.toAssignable = function (u, f) { + if ( + !( + !u || + u.type === 'Identifier' || + (u.type === 'MemberExpression' && !f) + ) + ) + if (u.type === 'ParenthesizedExpression') + this.toAssignable(u.expression, f); + else { + if (this.options.ecmaVersion < 6) return this.dummyIdent(); + if (u.type === 'ObjectExpression') { + u.type = 'ObjectPattern'; + for (var x = 0, g = u.properties; x < g.length; x += 1) { + var S = g[x]; + this.toAssignable(S, f); + } + } else if (u.type === 'ArrayExpression') + (u.type = 'ArrayPattern'), this.toAssignableList(u.elements, f); + else if (u.type === 'Property') this.toAssignable(u.value, f); + else if (u.type === 'SpreadElement') + (u.type = 'RestElement'), this.toAssignable(u.argument, f); + else if (u.type === 'AssignmentExpression') + (u.type = 'AssignmentPattern'), delete u.operator; + else return this.dummyIdent(); + } + return u; + }), + (k.toAssignableList = function (u, f) { + for (var x = 0, g = u; x < g.length; x += 1) { + var S = g[x]; + this.toAssignable(S, f); + } + return u; + }), + (k.parseFunctionParams = function (u) { + return ( + (u = this.parseExprList(t.tokTypes.parenR)), + this.toAssignableList(u, !0) + ); + }), + (k.parseMethod = function (u, f) { + var x = this.startNode(), + g = this.inAsync, + S = this.inGenerator, + E = this.inFunction; + return ( + this.initFunction(x), + this.options.ecmaVersion >= 6 && (x.generator = !!u), + this.options.ecmaVersion >= 8 && (x.async = !!f), + (this.inAsync = x.async), + (this.inGenerator = x.generator), + (this.inFunction = !0), + (x.params = this.parseFunctionParams()), + (x.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(x.body.body), + (this.inAsync = g), + (this.inGenerator = S), + (this.inFunction = E), + this.finishNode(x, 'FunctionExpression') + ); + }), + (k.parseArrowExpression = function (u, f, x) { + var g = this.inAsync, + S = this.inGenerator, + E = this.inFunction; + return ( + this.initFunction(u), + this.options.ecmaVersion >= 8 && (u.async = !!x), + (this.inAsync = u.async), + (this.inGenerator = !1), + (this.inFunction = !0), + (u.params = this.toAssignableList(f, !0)), + (u.expression = this.tok.type !== t.tokTypes.braceL), + u.expression + ? (u.body = this.parseMaybeAssign()) + : ((u.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(u.body.body)), + (this.inAsync = g), + (this.inGenerator = S), + (this.inFunction = E), + this.finishNode(u, 'ArrowFunctionExpression') + ); + }), + (k.parseExprList = function (u, f) { + this.pushCx(); + var x = this.curIndent, + g = this.curLineStart, + S = []; + for (this.next(); !this.closes(u, x + 1, g); ) { + if (this.eat(t.tokTypes.comma)) { + S.push(f ? null : this.dummyIdent()); + continue; + } + var E = this.parseMaybeAssign(); + if (i(E)) { + if (this.closes(u, x, g)) break; + this.next(); + } else S.push(E); + this.eat(t.tokTypes.comma); + } + return ( + this.popCx(), + this.eat(u) || + ((this.last.end = this.tok.start), + this.options.locations && + (this.last.loc.end = this.tok.loc.start)), + S + ); + }), + (k.parseAwait = function () { + var u = this.startNode(); + return ( + this.next(), + (u.argument = this.parseMaybeUnary()), + this.finishNode(u, 'AwaitExpression') + ); + }), + (t.defaultOptions.tabSize = 4); + function A(u, f) { + return a.parse(u, f); + } + (e.LooseParser = a), (e.isDummy = i), (e.parse = A); + }); + }); + var Vo = Li(), + qg = Yc(), + dr = Zu(), + Kg = cf(), + Ug = ff(), + Os = null; + function mf() { + return new Proxy( + {}, + { + get: function (e, t) { + if (t in e) return e[t]; + var s = String(t).split('#'), + i = s[0], + r = s[1] || 'default', + a = {id: i, chunks: [i], name: r, async: !0}; + return (e[t] = a), a; + }, + } + ); + } + var Tf = {}; + function Hg(e, t, s) { + var i = dr.registerServerReference(e, t, s), + r = t + '#' + s; + return (Tf[r] = e), i; + } + function Wg(e) { + if (e.indexOf('use client') === -1 && e.indexOf('use server') === -1) + return null; + try { + var t = Ug.parse(e, {ecmaVersion: '2024', sourceType: 'source'}).body; + } catch { + return null; + } + for (var s = 0; s < t.length; s++) { + var i = t[s]; + if (i.type !== 'ExpressionStatement' || !i.directive) break; + if (i.directive === 'use client') return 'use client'; + if (i.directive === 'use server') return 'use server'; + } + return null; + } + function Gg(e, t) { + if (!t.startsWith('.')) return t; + var s = e.split('/'); + s.pop(); + for (var i = t.split('/'), r = 0; r < i.length; r++) + if (i[r] !== '.') { + if (i[r] === '..') { + s.pop(); + continue; } - n.push(o[r]); + s.push(i[r]); } - return n.join('/'); + return s.join('/'); } - function ex(e, t, n) { - var o = {react: ws, 'react/jsx-runtime': G_}; - Object.keys(t).forEach(function (_) { - o[_] = cr.createClientModuleProxy(_); - }); - var r = {}, - s = !1; + function zg(e) { + var t = {react: Vo, 'react/jsx-runtime': qg}, + s = {}, + i = null; if ( - (Object.keys(e).forEach(function (_) { - try { - r[_] = hd.transform(e[_], { - transforms: ['jsx', 'imports'], - jsxRuntime: 'automatic', - production: !0, - }).code; - } catch { - s = !0; - } + (Object.keys(e).forEach(function (k) { + if (!i) + try { + s[k] = Kg.transform(e[k], { + transforms: ['jsx', 'imports'], + jsxRuntime: 'automatic', + production: !0, + }).code; + } catch (A) { + i = k + ': ' + (A.message || String(A)); + } }), - s) + i) ) - return null; - function i(_, x) { - if (o[x]) return x; - if (x.startsWith('.')) { - var L = Z_(_, x); - if (o[L] || r[L]) return L; - for (var G = ['.js', '.jsx', '.ts', '.tsx'], F = 0; F < G.length; F++) { - var K = L + G[F]; - if (o[K] || r[K]) return K; - } - } - return x; - } - var a = {}; - function u(_) { - if (o[_]) return o[_]; - if (!r[_]) throw new Error('Module "' + _ + '" not found'); - if (a[_]) return a[_].exports; - var x = {exports: {}}; - a[_] = x; - var L = function (R) { - if (R.endsWith('.css')) return {}; - var z = i(_, R); - return o[z] ? o[z] : u(z); + return {type: 'error', error: i}; + function r(k, A) { + if (t[A]) return A; + if (A.startsWith('.')) { + var u = Gg(k, A); + if (t[u] || s[u]) return u; + for (var f = ['.js', '.jsx', '.ts', '.tsx'], x = 0; x < f.length; x++) { + var g = u + f[x]; + if (t[g] || s[g]) return g; + } + } + return A; + } + var a = {}, + p = {}; + function d(k) { + if (t[k]) return t[k]; + if (!s[k]) throw new Error('Module "' + k + '" not found'); + if (a[k]) return a[k].exports; + var A = Wg(e[k]); + if (A === 'use client') + return (t[k] = dr.createClientModuleProxy(k)), (p[k] = !0), t[k]; + var u = {exports: {}}; + a[k] = u; + var f = function (E) { + if (E.endsWith('.css')) return {}; + var L = r(k, E); + return t[L] ? t[L] : d(L); }; if ( - (new Function('module', 'exports', 'require', 'React', r[_])( - x, - x.exports, - L, - ws + (new Function('module', 'exports', 'require', 'React', s[k])( + u, + u.exports, + f, + Vo ), - (o[_] = x.exports), - Q_(e[_], 'use server')) + (t[k] = u.exports), + A === 'use server') ) - for (var G = Object.keys(x.exports), F = 0; F < G.length; F++) { - var K = G[F]; - typeof x.exports[K] == 'function' && J_(x.exports[K], _, K); - } - return delete a[_], x.exports; - } - var h = {exports: {}}; - Object.keys(r).forEach(function (_) { - u(_), - (_ === '/src/App.js' || _ === './App.js' || _ === './src/App.js') && - (h.exports = o[_]); - }), - (Jn = {module: h.exports, manifest: t}); - var v = {}; + for (var x = Object.keys(u.exports), g = 0; g < x.length; g++) { + var S = x[g]; + typeof u.exports[S] == 'function' && Hg(u.exports[S], k, S); + } + return delete a[k], u.exports; + } + var y = {exports: {}}; return ( - n && - Object.keys(n).forEach(function (_) { - try { - v[_] = hd.transform(n[_], { - transforms: ['jsx', 'imports'], - jsxRuntime: 'automatic', - production: !0, - }).code; - } catch (x) { - self.postMessage({ - type: 'rsc-error', - requestId: -1, - error: 'Sucrase compile error in ' + _ + ': ' + String(x), - }); - } - }), - {type: 'deployed', compiledClients: v} + Object.keys(s).forEach(function (k) { + d(k), + (k === '/src/App.js' || k === './App.js' || k === './src/App.js') && + (y.exports = t[k]); + }), + (Os = {module: y.exports}), + {type: 'deployed', compiledClients: s, clientEntries: p} ); } - function tx() { - if (!Jn) throw new Error('No code deployed'); - var e = Jn.module.default || Jn.module, - t = ws.createElement(e); - return cr.renderToReadableStream(t, yd(), {onError: console.error}); + function Xg() { + if (!Os) throw new Error('No code deployed'); + var e = Os.module.default || Os.module, + t = Vo.createElement(e); + return dr.renderToReadableStream(t, mf(), {onError: console.error}); } - function nx(e, t) { - if (!Jn) throw new Error('No code deployed'); - var n = md[e]; - if (!n) throw new Error('Action "' + e + '" not found'); - var o = t; + function Yg(e, t) { + if (!Os) throw new Error('No code deployed'); + var s = Tf[e]; + if (!s) throw new Error('Action "' + e + '" not found'); + var i = t; if (typeof t != 'string' && t && t.__formData) { - o = new FormData(); + i = new FormData(); for (var r = 0; r < t.__formData.length; r++) - o.append(t.__formData[r][0], t.__formData[r][1]); - } - return Promise.resolve(cr.decodeReply(o)).then(function (s) { - var i = Promise.resolve(n.apply(null, s)); - return i.then(function () { - var a = Jn.module.default || Jn.module; - return cr.renderToReadableStream( - {root: ws.createElement(a), returnValue: i}, - yd() + i.append(t.__formData[r][0], t.__formData[r][1]); + } + return Promise.resolve(dr.decodeReply(i)).then(function (a) { + var p = Promise.resolve(s.apply(null, a)); + return p.then(function () { + var d = Os.module.default || Os.module; + return dr.renderToReadableStream( + {root: Vo.createElement(d), returnValue: p}, + mf() ); }); }); } - function Td(e, t) { - var n = t.getReader(); - function o() { - return n.read().then(function (r) { + function df(e, t) { + var s = t.getReader(); + function i() { + return s.read().then(function (r) { if (r.done) { self.postMessage({type: 'rsc-chunk', requestId: e, done: !0}); return; @@ -24997,11 +31980,11 @@ ${n.map( {type: 'rsc-chunk', requestId: e, done: !1, chunk: r.value}, [r.value.buffer] ), - o() + i() ); }); } - o().catch(function (r) { + i().catch(function (r) { self.postMessage({type: 'rsc-error', requestId: e, error: String(r)}); }); } @@ -25009,19 +31992,31 @@ ${n.map( var t = e.data; if (t.type === 'deploy') try { - var n = ex(t.serverFiles, t.clientManifest, t.clientFiles); - n && - self.postMessage({ - type: 'deploy-result', - requestId: t.requestId, - result: n, - }); - } catch {} + var s = zg(t.files); + s && s.type === 'error' + ? self.postMessage({ + type: 'rsc-error', + requestId: t.requestId, + error: s.error, + }) + : s && + self.postMessage({ + type: 'deploy-result', + requestId: t.requestId, + result: s, + }); + } catch (r) { + self.postMessage({ + type: 'rsc-error', + requestId: t.requestId, + error: String(r), + }); + } else if (t.type === 'render') try { - var o = tx(); - Promise.resolve(o).then(function (r) { - Td(t.requestId, r); + var i = Xg(); + Promise.resolve(i).then(function (r) { + df(t.requestId, r); }); } catch (r) { self.postMessage({ @@ -25032,8 +32027,8 @@ ${n.map( } else if (t.type === 'callAction') try { - nx(t.actionId, t.encodedArgs).then(function (r) { - Td(t.requestId, r); + Yg(t.actionId, t.encodedArgs).then(function (r) { + df(t.requestId, r); }); } catch (r) { self.postMessage({ From c83196de17aec2ad05431e0a5da9988c381d6845 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Wed, 11 Feb 2026 20:17:13 -0500 Subject: [PATCH 3/9] Fix client edits --- .../sandbox-code/src/rsc-client.js | 20 +- .../sandbox-code/src/rsc-server.js | 30 +- .../sandbox-code/src/worker-bundle.dist.js | 1379 +++++++++-------- 3 files changed, 739 insertions(+), 690 deletions(-) diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js index e5675b84d19..02e322ff1d8 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js @@ -165,6 +165,14 @@ export function initClient() { } function triggerRender() { + // Close any in-flight streams from previous renders + Object.keys(chunkControllers).forEach(function (id) { + try { + chunkControllers[id].close(); + } catch (e) {} + delete chunkControllers[id]; + }); + renderRequestId++; var reqId = renderRequestId; @@ -255,6 +263,11 @@ export function initClient() { // Evaluate compiled client modules and register them in the webpack cache // so RSDW client can resolve them via __webpack_require__. function registerClientModules(compiledClients, clientEntries) { + // Clear stale client modules from previous deploys + Object.keys(globalThis.__webpack_module_cache__).forEach(function (key) { + delete globalThis.__webpack_module_cache__[key]; + }); + // Store all compiled code for lazy evaluation var allCompiled = compiledClients; @@ -269,7 +282,8 @@ export function initClient() { var mod = {exports: {}}; // Register before evaluating to handle circular deps - globalThis.__webpack_module_cache__[moduleId] = {exports: mod.exports}; + var cacheEntry = {exports: mod.exports}; + globalThis.__webpack_module_cache__[moduleId] = cacheEntry; var clientRequire = function (id) { if (id === 'react') return React; @@ -304,8 +318,8 @@ export function initClient() { console.error('Error executing client module ' + moduleId + ':', err); return mod.exports; } - // Update cache with actual exports (handles non-circular case) - globalThis.__webpack_module_cache__[moduleId] = {exports: mod.exports}; + // Update the SAME cache entry's exports (don't replace the wrapper) + cacheEntry.exports = mod.exports; return mod.exports; } diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js index ea4e22a2655..8f21c19eecf 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js @@ -92,6 +92,8 @@ function resolvePath(from, to) { // Deploy new server code into the Worker // Receives raw source files — compiles them with Sucrase before execution. function deploy(files) { + serverActionsRegistry = {}; + // Build a require function for the server module scope var modules = { react: React, @@ -318,9 +320,17 @@ self.onmessage = function (e) { } else if (msg.type === 'render') { try { var streamPromise = render(); - Promise.resolve(streamPromise).then(function (stream) { - sendStream(msg.requestId, stream); - }); + Promise.resolve(streamPromise) + .then(function (stream) { + sendStream(msg.requestId, stream); + }) + .catch(function (err) { + self.postMessage({ + type: 'rsc-error', + requestId: msg.requestId, + error: String(err), + }); + }); } catch (err) { self.postMessage({ type: 'rsc-error', @@ -330,9 +340,17 @@ self.onmessage = function (e) { } } else if (msg.type === 'callAction') { try { - callAction(msg.actionId, msg.encodedArgs).then(function (stream) { - sendStream(msg.requestId, stream); - }); + callAction(msg.actionId, msg.encodedArgs) + .then(function (stream) { + sendStream(msg.requestId, stream); + }) + .catch(function (err) { + self.postMessage({ + type: 'rsc-error', + requestId: msg.requestId, + error: String(err), + }); + }); } catch (err) { self.postMessage({ type: 'rsc-error', diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js index 501bd51d320..5428bbafb77 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js @@ -26,7 +26,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ('use strict'); (() => { var Z = (e, t) => () => (t || e((t = {exports: {}}).exports, t), t.exports); - var Hc = Z((ht) => { + var Wc = Z((ht) => { 'use strict'; var ei = {H: null, A: null}; function Yo(e) { @@ -44,7 +44,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' ); } - var Vc = Array.isArray, + var jc = Array.isArray, Jo = Symbol.for('react.transitional.element'), If = Symbol.for('react.portal'), Ef = Symbol.for('react.fragment'), @@ -53,15 +53,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { Nf = Symbol.for('react.forward_ref'), Rf = Symbol.for('react.suspense'), Lf = Symbol.for('react.memo'), - Kc = Symbol.for('react.lazy'), - jc = Symbol.iterator; + Uc = Symbol.for('react.lazy'), + $c = Symbol.iterator; function Of(e) { return e === null || typeof e != 'object' ? null - : ((e = (jc && e[jc]) || e['@@iterator']), + : ((e = ($c && e[$c]) || e['@@iterator']), typeof e == 'function' ? e : null); } - var Uc = Object.prototype.hasOwnProperty, + var Hc = Object.prototype.hasOwnProperty, Df = Object.assign; function Qo(e, t, s, i, r, a) { return ( @@ -84,13 +84,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }) ); } - var $c = /\/+/g; + var qc = /\/+/g; function zo(e, t) { return typeof e == 'object' && e !== null && e.key != null ? Ff('' + e.key) : t.toString(36); } - function qc() {} + function Kc() {} function Bf(e) { switch (e.status) { case 'fulfilled': @@ -100,7 +100,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { default: switch ( (typeof e.status == 'string' - ? e.then(qc, qc) + ? e.then(Kc, Kc) : ((e.status = 'pending'), e.then( function (t) { @@ -140,7 +140,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { case If: p = !0; break; - case Kc: + case Uc: return (p = e._init), Zs(p(e._payload), t, s, i, r); } } @@ -148,9 +148,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return ( (r = r(e)), (p = i === '' ? '.' + zo(e, 0) : i), - Vc(r) + jc(r) ? ((s = ''), - p != null && (s = p.replace($c, '$&/') + '/'), + p != null && (s = p.replace(qc, '$&/') + '/'), Zs(r, t, s, '', function (k) { return k; })) @@ -161,7 +161,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { s + (r.key == null || (e && e.key === r.key) ? '' - : ('' + r.key).replace($c, '$&/') + '/') + + : ('' + r.key).replace(qc, '$&/') + '/') + p )), t.push(r)), @@ -169,7 +169,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); p = 0; var d = i === '' ? '.' : i + ':'; - if (Vc(e)) + if (jc(e)) for (var y = 0; y < e.length; y++) (i = e[y]), (a = d + zo(i, y)), (p += Zs(i, t, s, a, r)); else if (((y = Of(e)), typeof y == 'function')) @@ -302,7 +302,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { for (p in (t.ref !== void 0 && (a = void 0), t.key !== void 0 && (r = '' + t.key), t)) - !Uc.call(t, p) || + !Hc.call(t, p) || p === 'key' || p === '__self' || p === '__source' || @@ -322,7 +322,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { a = null; if (t != null) for (i in (t.key !== void 0 && (a = '' + t.key), t)) - Uc.call(t, i) && + Hc.call(t, i) && i !== 'key' && i !== '__self' && i !== '__source' && @@ -345,7 +345,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }; ht.isValidElement = Zo; ht.lazy = function (e) { - return {$$typeof: Kc, _payload: {_status: -1, _result: e}, _init: Vf}; + return {$$typeof: Uc, _payload: {_status: -1, _result: e}, _init: Vf}; }; ht.memo = function (e, t) { return {$$typeof: Lf, type: e, compare: t === void 0 ? null : t}; @@ -365,11 +365,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }; ht.version = '19.0.0'; }); - var Li = Z((Zg, Wc) => { + var Li = Z((Zg, Gc) => { 'use strict'; - Wc.exports = Hc(); + Gc.exports = Wc(); }); - var zc = Z((Oi) => { + var Xc = Z((Oi) => { 'use strict'; var $f = Li(), qf = Symbol.for('react.transitional.element'), @@ -378,7 +378,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' ); - function Gc(e, t, s) { + function zc(e, t, s) { var i = null; if ( (s !== void 0 && (i = '' + s), @@ -394,15 +394,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); } Oi.Fragment = Kf; - Oi.jsx = Gc; + Oi.jsx = zc; Oi.jsxDEV = void 0; - Oi.jsxs = Gc; + Oi.jsxs = zc; }); - var Yc = Z((t_, Xc) => { + var Jc = Z((t_, Yc) => { 'use strict'; - Xc.exports = zc(); + Yc.exports = Xc(); }); - var Jc = Z((jn) => { + var Qc = Z((jn) => { 'use strict'; var Uf = Li(); function ns() {} @@ -522,22 +522,22 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }; jn.version = '19.0.0'; }); - var Zc = Z((s_, Qc) => { + var eu = Z((s_, Zc) => { 'use strict'; - Qc.exports = Jc(); + Zc.exports = Qc(); }); - var Qu = Z((En) => { + var Zu = Z((En) => { 'use strict'; - var Hf = Zc(), + var Hf = eu(), Wf = Li(), - Tu = new MessageChannel(), - yu = []; - Tu.port1.onmessage = function () { - var e = yu.shift(); + yu = new MessageChannel(), + ku = []; + yu.port1.onmessage = function () { + var e = ku.shift(); e && e(); }; function Bi(e) { - yu.push(e), Tu.port2.postMessage(null); + ku.push(e), yu.port2.postMessage(null); } function Gf(e) { setTimeout(function () { @@ -545,7 +545,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }); } var zf = Promise, - ku = + vu = typeof queueMicrotask == 'function' ? queueMicrotask : function (e) { @@ -583,7 +583,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function la(e) { return e.byteLength; } - function vu(e, t) { + function xu(e, t) { typeof e.error == 'function' ? e.error(t) : e.close(); } var rs = Symbol.for('react.client.reference'), @@ -597,7 +597,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } var Yf = Function.prototype.bind, Jf = Array.prototype.slice; - function xu() { + function gu() { var e = Yf.apply(this, arguments); if (this.$$typeof === Ar) { var t = Jf.call(arguments, 1), @@ -609,7 +609,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { $$typeof: s, $$id: i, $$bound: t, - bind: {value: xu, configurable: !0}, + bind: {value: gu, configurable: !0}, }) ); } @@ -665,7 +665,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { throw Error('Cannot assign to a client module from a server module.'); }, }; - function eu(e, t) { + function tu(e, t) { switch (t) { case '$$typeof': return e.$$typeof; @@ -705,7 +705,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (e.then) return e.then; if (e.$$async) return; var i = ti({}, e.$$id, !0), - r = new Proxy(i, gu); + r = new Proxy(i, _u); return ( (e.status = 'fulfilled'), (e.value = r), @@ -743,16 +743,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { i ); } - var gu = { + var _u = { get: function (e, t) { - return eu(e, t); + return tu(e, t); }, getOwnPropertyDescriptor: function (e, t) { var s = Object.getOwnPropertyDescriptor(e, t); return ( s || ((s = { - value: eu(e, t), + value: tu(e, t), writable: !1, configurable: !1, enumerable: !1, @@ -768,9 +768,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { throw Error('Cannot assign to a client module from a server module.'); }, }, - _u = Hf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - qn = _u.d; - _u.d = {f: qn.f, r: qn.r, D: td, C: nd, L: Sr, m: bu, X: id, S: sd, M: rd}; + bu = Hf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, + qn = bu.d; + bu.d = {f: qn.f, r: qn.r, D: td, C: nd, L: Sr, m: Cu, X: id, S: sd, M: rd}; function td(e) { if (typeof e == 'string' && e) { var t = st || null; @@ -815,7 +815,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } else qn.L(e, t, s); } } - function bu(e, t) { + function Cu(e, t) { if (typeof e == 'string') { var s = st || null; if (s) { @@ -952,7 +952,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }); break; case 'modulepreload': - bu(i, { + Cu(i, { as: s.as, crossOrigin: s.crossOrigin, integrity: s.integrity, @@ -1032,19 +1032,19 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var cd = Symbol.for('react.element'), In = Symbol.for('react.transitional.element'), ua = Symbol.for('react.fragment'), - tu = Symbol.for('react.context'), - Cu = Symbol.for('react.forward_ref'), + nu = Symbol.for('react.context'), + wu = Symbol.for('react.forward_ref'), ud = Symbol.for('react.suspense'), pd = Symbol.for('react.suspense_list'), - wu = Symbol.for('react.memo'), + Su = Symbol.for('react.memo'), $i = Symbol.for('react.lazy'), hd = Symbol.for('react.memo_cache_sentinel'); Symbol.for('react.postpone'); - var nu = Symbol.iterator; - function Su(e) { + var su = Symbol.iterator; + function Iu(e) { return e === null || typeof e != 'object' ? null - : ((e = (nu && e[nu]) || e['@@iterator']), + : ((e = (su && e[su]) || e['@@iterator']), typeof e == 'function' ? e : null); } var Ss = Symbol.asyncIterator; @@ -1093,7 +1093,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } } var Ir = null; - function Iu() { + function Eu() { if (Ir === null) throw Error( 'Expected a suspended thenable. This is a bug in React. Please file an issue.' @@ -1104,11 +1104,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var Mi = null, ta = 0, ni = null; - function Eu() { + function Au() { var e = ni || []; return (ni = null), e; } - var Au = { + var Pu = { readContext: na, use: Td, useCallback: function (e) { @@ -1142,7 +1142,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return dd; }, }; - Au.useEffectEvent = Vt; + Pu.useEffectEvent = Vt; function Vt() { throw Error('This Hook is not supported in Server Components.'); } @@ -1166,15 +1166,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var t = ta; return (ta += 1), ni === null && (ni = []), fd(ni, e, t); } - e.$$typeof === tu && na(); + e.$$typeof === nu && na(); } throw e.$$typeof === rs - ? e.value != null && e.value.$$typeof === tu + ? e.value != null && e.value.$$typeof === nu ? Error('Cannot read a Client Context from a Server Component.') : Error('Cannot use() an already resolved Client Reference.') : Error('An unsupported type was passed to use(): ' + String(e)); } - var su = { + var iu = { getCacheForType: function (e) { var t = (t = st || null) ? t.cache : new Map(), s = t.get(e); @@ -1192,10 +1192,10 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); var kn = Array.isArray, ii = Object.getPrototypeOf; - function Pu(e) { + function Nu(e) { return (e = Object.prototype.toString.call(e)), e.slice(8, e.length - 1); } - function iu(e) { + function ru(e) { switch (typeof e) { case 'string': return JSON.stringify(10 >= e.length ? e : e.slice(0, 10) + '...'); @@ -1204,7 +1204,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ? '[...]' : e !== null && e.$$typeof === sa ? 'client' - : ((e = Pu(e)), e === 'Object' ? '{...}' : e); + : ((e = Nu(e)), e === 'Object' ? '{...}' : e); case 'function': return e.$$typeof === sa ? 'client' @@ -1225,9 +1225,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } if (typeof e == 'object') switch (e.$$typeof) { - case Cu: - return Er(e.render); case wu: + return Er(e.render); + case Su: return Er(e.type); case $i: var t = e._payload; @@ -1240,7 +1240,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } var sa = Symbol.for('react.client.reference'); function _s(e, t) { - var s = Pu(e); + var s = Nu(e); if (s !== 'Object' && s !== 'Array') return s; s = -1; var i = 0; @@ -1248,7 +1248,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { for (var r = '[', a = 0; a < e.length; a++) { 0 < a && (r += ', '); var p = e[a]; - (p = typeof p == 'object' && p !== null ? _s(p) : iu(p)), + (p = typeof p == 'object' && p !== null ? _s(p) : ru(p)), '' + a === t ? ((s = r.length), (i = p.length), (r += p)) : (r = @@ -1266,7 +1266,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { y = JSON.stringify(d); (r += ('"' + d + '"' === y ? d : y) + ': '), (y = e[d]), - (y = typeof y == 'object' && y !== null ? _s(y) : iu(y)), + (y = typeof y == 'object' && y !== null ? _s(y) : ru(y)), d === t ? ((s = r.length), (i = y.length), (r += y)) : (r = @@ -1295,12 +1295,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function kd(e) { console.error(e); } - function Nu(e, t, s, i, r, a, p, d, y) { - if (Is.A !== null && Is.A !== su) + function Ru(e, t, s, i, r, a, p, d, y) { + if (Is.A !== null && Is.A !== iu) throw Error( 'Currently React only supports one RSC renderer at a time.' ); - Is.A = su; + Is.A = iu; var k = new Set(), A = [], u = new Set(); @@ -1335,7 +1335,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { A.push(e); } var st = null; - function ru(e, t, s) { + function ou(e, t, s) { var i = os( e, s, @@ -1401,7 +1401,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { try { (y.model = k.value), e.pendingChunks++, - Fu(e, y), + Bu(e, y), un(e), d.read().then(i, r); } catch (A) { @@ -1487,7 +1487,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { try { (d.model = y.value), e.pendingChunks++, - Fu(e, d), + Bu(e, d), un(e), i.next().then(r, a); } catch (u) { @@ -1573,11 +1573,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } return {$$typeof: $i, _payload: s, _init: gd}; } - function ou() {} + function au() {} function bd(e, t, s, i) { if (typeof i != 'object' || i === null || i.$$typeof === rs) return i; if (typeof i.then == 'function') return _d(e, t, i); - var r = Su(i); + var r = Iu(i); return r ? ((e = {}), (e[Symbol.iterator] = function () { @@ -1593,7 +1593,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }), e); } - function au(e, t, s, i, r) { + function lu(e, t, s, i, r) { var a = t.thenableState; if ( ((t.thenableState = null), @@ -1607,7 +1607,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { r !== null && typeof r.then == 'function' && r.$$typeof !== rs && - r.then(ou, ou), + r.then(au, au), null) ); return ( @@ -1623,13 +1623,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { e ); } - function lu(e, t, s) { + function cu(e, t, s) { return t.keyPath !== null ? ((e = [In, ua, t.keyPath, {children: s}]), t.implicitSlot ? [e] : e) : s; } var is = 0; - function cu(e, t) { + function uu(e, t) { return ( (t = os( e, @@ -1649,7 +1649,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { 'Refs cannot be used in Server Components, nor passed to Client Components.' ); if (typeof s == 'function' && s.$$typeof !== rs && s.$$typeof !== ca) - return au(e, t, i, s, a); + return lu(e, t, i, s, a); if (s === ua && i === null) return ( (s = t.implicitSlot), @@ -1664,9 +1664,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var p = s._init; if (((s = p(s._payload)), e.status === 12)) throw null; return ia(e, t, s, i, r, a); - case Cu: - return au(e, t, i, s.render, a); case wu: + return lu(e, t, i, s.render, a); + case Su: return ia(e, t, s.type, i, r, a); } else @@ -1689,7 +1689,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { s.length === 1 && ((e.flushScheduled = e.destination !== null), e.type === 21 || e.status === 10 - ? ku(function () { + ? vu(function () { return ra(e); }) : Bi(function () { @@ -1734,7 +1734,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ? ((A = e.nextChunkId++), (A = y ? ws(A) : Ct(A)), (f = A)) : ((A = e.fatalError), (f = y ? ws(A) : Ct(A))); else if ( - ((k = g === pa ? Iu() : g), + ((k = g === pa ? Eu() : g), typeof k == 'object' && k !== null && typeof k.then == 'function') ) { f = os( @@ -1747,7 +1747,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); var x = f.ping; k.then(x, x), - (f.thenableState = Eu()), + (f.thenableState = Au()), (d.keyPath = A), (d.implicitSlot = u), (f = y ? ws(f.id) : Ct(f.id)); @@ -1772,7 +1772,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function ws(e) { return '$L' + e.toString(16); } - function Ru(e, t, s) { + function Lu(e, t, s) { return ( (e = Es(s)), (t = @@ -1784,7 +1784,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { pn(t) ); } - function uu(e, t, s, i) { + function pu(e, t, s, i) { var r = i.$$async ? i.$$id + '#async' : i.$$id, a = e.writtenClientReferences, p = a.get(r); @@ -1840,7 +1840,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } } function bs(e, t, s) { - return (t = os(e, t, null, !1, s, e.abortableTasks)), Mu(e, t), t.id; + return (t = os(e, t, null, !1, s, e.abortableTasks)), Fu(e, t), t.id; } function Yt(e, t, s) { e.pendingChunks++; @@ -1901,7 +1901,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { s !== void 0 && ((a = s + ':' + i), p.set(r, a))); } return 3200 < is - ? cu(e, t) + ? uu(e, t) : ((i = r.props), (s = i.ref), (e = ia(e, t, r.type, r.key, s !== void 0 ? s : null, i)), @@ -1911,7 +1911,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (p.has(e) || p.set(e, a)), e); case $i: - if (3200 < is) return cu(e, t); + if (3200 < is) return uu(e, t); if ( ((t.thenableState = null), (i = r._init), @@ -1926,7 +1926,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { - A library pre-bundled an old copy of "react" or "react/jsx-runtime". - A compiler tries to "inline" JSX instead of using the runtime.`); } - if (r.$$typeof === rs) return uu(e, s, i, r); + if (r.$$typeof === rs) return pu(e, s, i, r); if ( e.temporaryReferences !== void 0 && ((a = e.temporaryReferences.get(r)), a !== void 0) @@ -1937,11 +1937,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ) { if (p !== void 0) { if (t.keyPath !== null || t.implicitSlot) - return '$@' + ru(e, t, r).toString(16); + return '$@' + ou(e, t, r).toString(16); if (ss === r) ss = null; else return p; } - return (e = '$@' + ru(e, t, r).toString(16)), a.set(r, e), e; + return (e = '$@' + ou(e, t, r).toString(16)), a.set(r, e), e; } if (p !== void 0) if (ss === r) { @@ -1965,7 +1965,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } a.set(r, p + ':' + d); } - if (kn(r)) return lu(e, t, r); + if (kn(r)) return cu(e, t, r); if (r instanceof Map) return (r = Array.from(r)), '$Q' + bs(e, r, 0).toString(16); if (r instanceof Set) @@ -1987,12 +1987,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (r instanceof BigUint64Array) return Yt(e, 'm', r); if (r instanceof DataView) return Yt(e, 'V', r); if (typeof Blob == 'function' && r instanceof Blob) return Cd(e, r); - if ((a = Su(r))) + if ((a = Iu(r))) return ( (i = a.call(r)), i === r ? ((r = Array.from(i)), '$i' + bs(e, r, 0).toString(16)) - : lu(e, t, Array.from(i)) + : cu(e, t, Array.from(i)) ); if (typeof ReadableStream == 'function' && r instanceof ReadableStream) return vd(e, t, r); @@ -2018,7 +2018,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { r[r.length - 1] === 'Z' && s[i] instanceof Date ? '$D' + r : 1024 <= r.length && la !== null - ? (e.pendingChunks++, (t = e.nextChunkId++), Ou(e, t, r, !1), Ct(t)) + ? (e.pendingChunks++, (t = e.nextChunkId++), Du(e, t, r, !1), Ct(t)) : ((e = r[0] === '$' ? '$' + r : r), e) ); if (typeof r == 'boolean') return r; @@ -2034,7 +2034,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { : '$NaN'; if (typeof r > 'u') return '$undefined'; if (typeof r == 'function') { - if (r.$$typeof === rs) return uu(e, s, i, r); + if (r.$$typeof === rs) return pu(e, s, i, r); if (r.$$typeof === Ar) return ( (t = e.writtenServerReferences), @@ -2081,7 +2081,7 @@ If you need interactivity, consider converting part of this to a Client Componen return ( e.pendingChunks++, (i = e.nextChunkId++), - (s = Ru(e, i, '$S' + a)), + (s = Lu(e, i, '$S' + a)), e.completedImportChunks.push(s), t.set(r, i), Ct(i) @@ -2116,7 +2116,7 @@ If you need interactivity, consider converting part of this to a Client Componen var s = e.onFatalError; s(t), e.destination !== null - ? ((e.status = 14), vu(e.destination, t)) + ? ((e.status = 14), xu(e.destination, t)) : ((e.status = 13), (e.fatalError = t)), e.cacheController.abort( Error('The render was aborted due to a fatal error.', {cause: t}) @@ -2133,7 +2133,7 @@ If you need interactivity, consider converting part of this to a Client Componen (t = pn(t)), e.completedErrorChunks.push(t); } - function Lu(e, t, s) { + function Ou(e, t, s) { (t = t.toString(16) + ':' + @@ -2152,7 +2152,7 @@ If you need interactivity, consider converting part of this to a Client Componen (t = pn(t)), e.completedRegularChunks.push(t, i); } - function Ou(e, t, s, i) { + function Du(e, t, s, i) { if (la === null) throw Error( 'Existence of byteLengthOfChunk should have already been checked. This is a bug in React.' @@ -2164,10 +2164,10 @@ If you need interactivity, consider converting part of this to a Client Componen (t = pn(t)), e.completedRegularChunks.push(t, s); } - function Du(e, t, s) { + function Mu(e, t, s) { var i = t.id; typeof s == 'string' && la !== null - ? Ou(e, i, s, !1) + ? Du(e, i, s, !1) : s instanceof ArrayBuffer ? Kt(e, i, 'A', new Uint8Array(s), !1) : s instanceof Int8Array @@ -2194,7 +2194,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? Kt(e, i, 'm', s, !1) : s instanceof DataView ? Kt(e, i, 'V', s, !1) - : ((s = Es(s, t.toJSON)), Lu(e, t.id, s)); + : ((s = Es(s, t.toJSON)), Ou(e, t.id, s)); } function Un(e, t, s) { (t.status = 4), @@ -2204,7 +2204,7 @@ If you need interactivity, consider converting part of this to a Client Componen Or(e); } var Lr = {}; - function Mu(e, t) { + function Fu(e, t) { if (t.status === 0) { t.status = 5; var s = is; @@ -2217,10 +2217,10 @@ If you need interactivity, consider converting part of this to a Client Componen (t.implicitSlot = !1), typeof i == 'object' && i !== null) ) - e.writtenObjects.set(i, Ct(t.id)), Du(e, t, i); + e.writtenObjects.set(i, Ct(t.id)), Mu(e, t, i); else { var r = Es(i); - Lu(e, t.id, r); + Ou(e, t.id, r); } (t.status = 1), e.abortableTasks.delete(t), Or(e); } catch (y) { @@ -2232,13 +2232,13 @@ If you need interactivity, consider converting part of this to a Client Componen ha(t), fa(t, e, a); } else { - var p = y === pa ? Iu() : y; + var p = y === pa ? Eu() : y; if ( typeof p == 'object' && p !== null && typeof p.then == 'function' ) { - (t.status = 0), (t.thenableState = Eu()); + (t.status = 0), (t.thenableState = Au()); var d = t.ping; p.then(d, d); } else Un(e, t, p); @@ -2248,23 +2248,23 @@ If you need interactivity, consider converting part of this to a Client Componen } } } - function Fu(e, t) { + function Bu(e, t) { var s = is; try { - Du(e, t, t.model); + Mu(e, t, t.model); } finally { is = s; } } function ra(e) { var t = Is.H; - Is.H = Au; + Is.H = Pu; var s = st; Mi = st = e; try { var i = e.pingedTasks; e.pingedTasks = []; - for (var r = 0; r < i.length; r++) Mu(e, i[r]); + for (var r = 0; r < i.length; r++) Fu(e, i[r]); ai(e); } catch (a) { Kn(e, a, null), Ki(e, a); @@ -2277,7 +2277,7 @@ If you need interactivity, consider converting part of this to a Client Componen } function fa(e, t, s) { e.status === 3 && - ((s = Ct(s)), (e = Ru(t, e.id, s)), t.completedErrorChunks.push(e)); + ((s = Ct(s)), (e = Lu(t, e.id, s)), t.completedErrorChunks.push(e)); } function ri(e) { e.status === 0 && (e.status = 3); @@ -2321,9 +2321,9 @@ If you need interactivity, consider converting part of this to a Client Componen e.destination !== null && ((e.status = 14), e.destination.close(), (e.destination = null))); } - function Bu(e) { + function Vu(e) { (e.flushScheduled = e.destination !== null), - ku(function () { + vu(function () { return ra(e); }), Bi(function () { @@ -2342,8 +2342,8 @@ If you need interactivity, consider converting part of this to a Client Componen function Or(e) { e.abortableTasks.size === 0 && ((e = e.onAllReady), e()); } - function Vu(e, t) { - if (e.status === 13) (e.status = 14), vu(t, e.fatalError); + function ju(e, t) { + if (e.status === 13) (e.status = 14), xu(t, e.fatalError); else if (e.status !== 14 && e.destination === null) { e.destination = t; try { @@ -2421,7 +2421,7 @@ If you need interactivity, consider converting part of this to a Client Componen Kn(e, d, null), Ki(e, d); } } - function ju(e, t) { + function $u(e, t) { var s = '', i = e[t]; if (i) s = i.name; @@ -2437,7 +2437,7 @@ If you need interactivity, consider converting part of this to a Client Componen return i.async ? [i.id, i.chunks, s, 1] : [i.id, i.chunks, s]; } var wr = new Map(); - function pu(e) { + function hu(e) { var t = __webpack_require__(e); return typeof t.then != 'function' || t.status === 'fulfilled' ? null @@ -2452,13 +2452,13 @@ If you need interactivity, consider converting part of this to a Client Componen t); } function Id() {} - function $u(e) { + function qu(e) { for (var t = e[1], s = [], i = 0; i < t.length; ) { var r = t[i++], a = t[i++], p = wr.get(r); p === void 0 - ? (qu.set(r, a), + ? (Ku.set(r, a), (a = __webpack_chunk_load__(r)), s.push(a), (p = wr.set.bind(wr, r, null)), @@ -2468,9 +2468,9 @@ If you need interactivity, consider converting part of this to a Client Componen } return e.length === 4 ? s.length === 0 - ? pu(e[0]) + ? hu(e[0]) : Promise.all(s).then(function () { - return pu(e[0]); + return hu(e[0]); }) : 0 < s.length ? Promise.all(s) @@ -2485,10 +2485,10 @@ If you need interactivity, consider converting part of this to a Client Componen if (e[2] === '') return t.__esModule ? t.default : t; if (Nr.call(t, e[2])) return t[e[2]]; } - var qu = new Map(), + var Ku = new Map(), Ed = __webpack_require__.u; __webpack_require__.u = function (e) { - var t = qu.get(e); + var t = Ku.get(e); return t !== void 0 ? t : Ed(e); }; var Dr = Symbol(); @@ -2527,12 +2527,12 @@ If you need interactivity, consider converting part of this to a Client Componen typeof t == 'function' && t(this.reason); } }; - var Ku = Object.prototype, - Uu = Array.prototype; + var Uu = Object.prototype, + Hu = Array.prototype; function Mr(e, t, s, i) { for (var r = 0; r < t.length; r++) { var a = t[r]; - typeof a == 'function' ? a(s) : Gu(e, a, s, i.reason); + typeof a == 'function' ? a(s) : zu(e, a, s, i.reason); } } function da(e, t, s) { @@ -2548,11 +2548,11 @@ If you need interactivity, consider converting part of this to a Client Componen (t.status = 'rejected'), (t.reason = s), i !== null && da(e, i, s); } } - function Hu(e, t, s) { + function Wu(e, t, s) { var i = {}; return new Ot('resolved_model', t, ((i.id = s), (i[Dr] = e), i)); } - function Wu(e, t, s, i) { + function Gu(e, t, s, i) { if (t.status !== 'pending') (t = t.reason), s[0] === 'C' @@ -2585,7 +2585,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } } - function hu(e, t, s) { + function fu(e, t, s) { var i = {}; return new Ot( 'resolved_model', @@ -2594,7 +2594,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); } function ea(e, t, s, i) { - Wu( + Gu( e, t, (i ? '{"done":true,"value":' : '{"done":false,"value":') + s + '}', @@ -2631,8 +2631,8 @@ If you need interactivity, consider converting part of this to a Client Componen null); var d = new Ot('blocked', null, null); t.$$promise = d; - var y = ju(e._bundlerConfig, a); - if (((p = t.bound), (a = $u(y)))) + var y = $u(e._bundlerConfig, a); + if (((p = t.bound), (a = qu(y)))) p instanceof Ot && (a = Promise.all([a, p])); else if (p instanceof Ot) a = Promise.resolve(p); else return (p = Fi(y)), (a = d), (a.status = 'fulfilled'), (a.value = p); @@ -2731,7 +2731,7 @@ If you need interactivity, consider converting part of this to a Client Componen if (d !== null) for (e.value = null, e.reason = null, a = 0; a < d.length; a++) { var y = d[a]; - typeof y == 'function' ? y(p) : Gu(i, y, p, r); + typeof y == 'function' ? y(p) : zu(i, y, p, r); } if (Ye !== null) { if (Ye.errored) throw Ye.reason; @@ -2766,7 +2766,7 @@ If you need interactivity, consider converting part of this to a Client Componen ((i = e._formData.get(e._prefix + t)), (i = typeof i == 'string' - ? Hu(e, i, t) + ? Wu(e, i, t) : e._closed ? new Ot('rejected', null, e._closedReason) : new Ot('pending', null, null)), @@ -2774,7 +2774,7 @@ If you need interactivity, consider converting part of this to a Client Componen i ); } - function Gu(e, t, s, i) { + function zu(e, t, s, i) { var r = t.handler, a = t.parentObject, p = t.key, @@ -2786,7 +2786,7 @@ If you need interactivity, consider converting part of this to a Client Componen if ( typeof s != 'object' || s === null || - (ii(s) !== Ku && ii(s) !== Uu) || + (ii(s) !== Uu && ii(s) !== Hu) || !Nr.call(s, f) ) throw Error('Invalid reference.'); @@ -2847,7 +2847,7 @@ If you need interactivity, consider converting part of this to a Client Componen ((y = t[A]), typeof p != 'object' || p === null || - (ii(p) !== Ku && ii(p) !== Uu) || + (ii(p) !== Uu && ii(p) !== Hu) || !Nr.call(p, y)) ) throw Error('Invalid reference.'); @@ -2978,7 +2978,7 @@ If you need interactivity, consider converting part of this to a Client Componen null ); } - function zu(e, t, s, i) { + function Xu(e, t, s, i) { var r = e._chunks; for ( s = new Ot('fulfilled', s, i), @@ -2994,7 +2994,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? i.close(r === 'C' ? '"$undefined"' : r.slice(1)) : i.enqueueModel(r)); } - function fu(e, t, s) { + function du(e, t, s) { function i(k) { s !== 'bytes' || ArrayBuffer.isView(k) ? r.enqueue(k) @@ -3014,7 +3014,7 @@ If you need interactivity, consider converting part of this to a Client Componen y = { enqueueModel: function (k) { if (d === null) { - var A = Hu(e, k, -1); + var A = Wu(e, k, -1); Br(A), A.status === 'fulfilled' ? i(A.value) @@ -3025,7 +3025,7 @@ If you need interactivity, consider converting part of this to a Client Componen u.then(i, y.error), (d = u), A.then(function () { - d === u && (d = null), Wu(e, u, k, -1); + d === u && (d = null), Gu(e, u, k, -1); }); } }, @@ -3052,7 +3052,7 @@ If you need interactivity, consider converting part of this to a Client Componen } }, }; - return zu(e, t, p, y), p; + return Xu(e, t, p, y), p; } function ma(e) { this.next = e; @@ -3061,7 +3061,7 @@ If you need interactivity, consider converting part of this to a Client Componen ma.prototype[Ss] = function () { return this; }; - function du(e, t, s) { + function mu(e, t, s) { if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) throw Error('Already initialized stream.'); var i = [], @@ -3087,15 +3087,15 @@ If you need interactivity, consider converting part of this to a Client Componen }), p)), (s = s ? p[Ss]() : p), - zu(e, t, s, { + Xu(e, t, s, { enqueueModel: function (d) { - a === i.length ? (i[a] = hu(e, d, !1)) : ea(e, i[a], d, !1), a++; + a === i.length ? (i[a] = fu(e, d, !1)) : ea(e, i[a], d, !1), a++; }, close: function (d) { if (!r) for ( r = !0, - a === i.length ? (i[a] = hu(e, d, !0)) : ea(e, i[a], d, !0), + a === i.length ? (i[a] = fu(e, d, !0)) : ea(e, i[a], d, !0), a++; a < i.length; @@ -3207,19 +3207,19 @@ If you need interactivity, consider converting part of this to a Client Componen (t = parseInt(i.slice(2), 16)), e._formData.get(e._prefix + t) ); case 'R': - return fu(e, i, void 0); + return du(e, i, void 0); case 'r': - return fu(e, i, 'bytes'); + return du(e, i, 'bytes'); case 'X': - return du(e, i, !1); + return mu(e, i, !1); case 'x': - return du(e, i, !0); + return mu(e, i, !0); } return (i = i.slice(1)), Di(e, i, t, s, a, Od); } return a !== null && $n(a, i.length, e), i; } - function Xu(e, t, s) { + function Yu(e, t, s) { var i = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] @@ -3239,15 +3239,15 @@ If you need interactivity, consider converting part of this to a Client Componen _arraySizeLimit: r, }; } - function Yu(e) { + function Ju(e) { Pd(e, Error('Connection closed.')); } - function mu(e, t) { + function Tu(e, t) { var s = t.id; if (typeof s != 'string') return null; - var i = ju(e, s); + var i = $u(e, s); return ( - (e = $u(i)), + (e = qu(i)), (t = t.bound), t instanceof Promise ? Promise.all([t, e]).then(function (r) { @@ -3268,10 +3268,10 @@ If you need interactivity, consider converting part of this to a Client Componen : Promise.resolve(Fi(i)) ); } - function Ju(e, t, s, i) { + function Qu(e, t, s, i) { if ( - ((e = Xu(t, s, void 0, e, i)), - Yu(e), + ((e = Yu(t, s, void 0, e, i)), + Ju(e), (e = Vr(e, 0)), e.then(function () {}), e.status !== 'fulfilled') @@ -3280,7 +3280,7 @@ If you need interactivity, consider converting part of this to a Client Componen return e.value; } En.createClientModuleProxy = function (e) { - return (e = ti({}, e, !1)), new Proxy(e, gu); + return (e = ti({}, e, !1)), new Proxy(e, _u); }; En.createTemporaryReferenceSet = function () { return new WeakMap(); @@ -3296,11 +3296,11 @@ If you need interactivity, consider converting part of this to a Client Componen ? r.has(p) || (r.add(p), (a = '$ACTION_' + p.slice(12) + ':'), - (a = Ju(e, t, a)), - (i = mu(t, a))) + (a = Qu(e, t, a)), + (i = Tu(t, a))) : p.startsWith('$ACTION_ID_') && !r.has(p) && - (r.add(p), (a = p.slice(11)), (i = mu(t, {id: a, bound: null}))) + (r.add(p), (a = p.slice(11)), (i = Tu(t, {id: a, bound: null}))) : s.append(p, a); }), i === null @@ -3317,7 +3317,7 @@ If you need interactivity, consider converting part of this to a Client Componen if ( (t.forEach(function (p, d) { d.startsWith('$ACTION_REF_') && - ((p = '$ACTION_' + d.slice(12) + ':'), (r = Ju(t, s, p))); + ((p = '$ACTION_' + d.slice(12) + ':'), (r = Qu(t, s, p))); }), r === null) ) @@ -3333,7 +3333,7 @@ If you need interactivity, consider converting part of this to a Client Componen i.append('0', e), (e = i); } return ( - (e = Xu( + (e = Yu( t, '', s ? s.temporaryReferences : void 0, @@ -3341,13 +3341,13 @@ If you need interactivity, consider converting part of this to a Client Componen s ? s.arraySizeLimit : void 0 )), (t = Vr(e, 0)), - Yu(e), + Ju(e), t ); }; En.prerender = function (e, t, s) { return new Promise(function (i, r) { - var a = new Nu( + var a = new Ru( 21, e, t, @@ -3358,7 +3358,7 @@ If you need interactivity, consider converting part of this to a Client Componen { type: 'bytes', pull: function (k) { - Vu(a, k); + ju(a, k); }, cancel: function (k) { (a.destination = null), si(a, k); @@ -3382,7 +3382,7 @@ If you need interactivity, consider converting part of this to a Client Componen p.addEventListener('abort', d); } } - Bu(a); + Vu(a); }); }; En.registerClientReference = function (e, t, s) { @@ -3393,12 +3393,12 @@ If you need interactivity, consider converting part of this to a Client Componen $$typeof: {value: Ar}, $$id: {value: s === null ? t : t + '#' + s, configurable: !0}, $$bound: {value: null, configurable: !0}, - bind: {value: xu, configurable: !0}, + bind: {value: gu, configurable: !0}, toString: Qf, }); }; En.renderToReadableStream = function (e, t, s) { - var i = new Nu( + var i = new Ru( 20, e, t, @@ -3423,10 +3423,10 @@ If you need interactivity, consider converting part of this to a Client Componen { type: 'bytes', start: function () { - Bu(i); + Vu(i); }, pull: function (p) { - Vu(i, p); + ju(i, p); }, cancel: function (p) { (i.destination = null), si(i, p); @@ -3436,10 +3436,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); }; }); - var Zu = Z((Wn) => { + var e1 = Z((Wn) => { 'use strict'; var Hn; - Hn = Qu(); + Hn = Zu(); Wn.renderToReadableStream = Hn.renderToReadableStream; Wn.decodeReply = Hn.decodeReply; Wn.decodeAction = Hn.decodeAction; @@ -3452,7 +3452,7 @@ If you need interactivity, consider converting part of this to a Client Componen var It = Z((Ta) => { 'use strict'; Object.defineProperty(Ta, '__esModule', {value: !0}); - var e1; + var t1; (function (e) { e[(e.NONE = 0)] = 'NONE'; let s = 1; @@ -3535,7 +3535,7 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._unique = qt)] = '_unique'; let yn = qt + 1; e[(e._using = yn)] = '_using'; - })(e1 || (Ta.ContextualKeyword = e1 = {})); + })(t1 || (Ta.ContextualKeyword = t1 = {})); }); var be = Z((jr) => { 'use strict'; @@ -4381,7 +4381,7 @@ If you need interactivity, consider converting part of this to a Client Componen ft.getNextContextId = Ud; function Hd(e) { if ('pos' in e) { - let t = t1(e.pos); + let t = n1(e.pos); (e.message += ` (${t.line}:${t.column})`), (e.loc = t); } return e; @@ -4393,14 +4393,14 @@ If you need interactivity, consider converting part of this to a Client Componen } }; ft.Loc = Ur; - function t1(e) { + function n1(e) { let t = 1, s = 1; for (let i = 0; i < e; i++) ft.input.charCodeAt(i) === Kd.charCodes.lineFeed ? (t++, (s = 1)) : s++; return new Ur(t, s); } - ft.locationForIndex = t1; + ft.locationForIndex = n1; function Wd(e, t, s, i) { (ft.input = e), (ft.state = new qd.default()), @@ -4427,26 +4427,26 @@ If you need interactivity, consider converting part of this to a Client Componen return t.type === As.TokenType.name && t.contextualKeyword === e; } tn.isLookaheadContextual = zd; - function n1(e) { + function s1(e) { return ( en.state.contextualKeyword === e && ls.eat.call(void 0, As.TokenType.name) ); } - tn.eatContextual = n1; + tn.eatContextual = s1; function Xd(e) { - n1(e) || Wr(); + s1(e) || Wr(); } tn.expectContextual = Xd; - function s1() { + function i1() { return ( ls.match.call(void 0, As.TokenType.eof) || ls.match.call(void 0, As.TokenType.braceR) || - i1() + r1() ); } - tn.canInsertSemicolon = s1; - function i1() { + tn.canInsertSemicolon = i1; + function r1() { let e = en.state.tokens[en.state.tokens.length - 1], t = e ? e.end : 0; for (let s = t; s < en.state.start; s++) { @@ -4461,7 +4461,7 @@ If you need interactivity, consider converting part of this to a Client Componen } return !1; } - tn.hasPrecedingLineBreak = i1; + tn.hasPrecedingLineBreak = r1; function Yd() { let e = ls.nextTokenStart.call(void 0); for (let t = en.state.end; t < e; t++) { @@ -4477,12 +4477,12 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } tn.hasFollowingLineBreak = Yd; - function r1() { - return ls.eat.call(void 0, As.TokenType.semi) || s1(); + function o1() { + return ls.eat.call(void 0, As.TokenType.semi) || i1(); } - tn.isLineTerminator = r1; + tn.isLineTerminator = o1; function Jd() { - r1() || Wr('Unexpected token, expected ";"'); + o1() || Wr('Unexpected token, expected ";"'); } tn.semicolon = Jd; function Qd(e) { @@ -4539,7 +4539,7 @@ If you need interactivity, consider converting part of this to a Client Componen var li = Z((vn) => { 'use strict'; Object.defineProperty(vn, '__esModule', {value: !0}); - var o1 = Qt(), + var a1 = Qt(), nm = xa(); function sm(e) { if (e < 48) return e === 36; @@ -4560,10 +4560,10 @@ If you need interactivity, consider converting part of this to a Client Componen vn.IS_IDENTIFIER_CHAR[8233] = 0; var rm = vn.IS_IDENTIFIER_CHAR.slice(); vn.IS_IDENTIFIER_START = rm; - for (let e = o1.charCodes.digit0; e <= o1.charCodes.digit9; e++) + for (let e = a1.charCodes.digit0; e <= a1.charCodes.digit9; e++) vn.IS_IDENTIFIER_START[e] = 0; }); - var a1 = Z((ga) => { + var l1 = Z((ga) => { 'use strict'; Object.defineProperty(ga, '__esModule', {value: !0}); var ge = It(), @@ -13536,15 +13536,15 @@ If you need interactivity, consider converting part of this to a Client Componen ]); ga.READ_WORD_TREE = om; }); - var p1 = Z((ba) => { + var h1 = Z((ba) => { 'use strict'; Object.defineProperty(ba, '__esModule', {value: !0}); var xn = Zt(), us = Qt(), - l1 = li(), + c1 = li(), _a = xt(), - c1 = a1(), - u1 = be(); + u1 = l1(), + p1 = be(); function am() { let e = 0, t = 0, @@ -13556,21 +13556,21 @@ If you need interactivity, consider converting part of this to a Client Componen !(t < us.charCodes.lowercaseA || t > us.charCodes.lowercaseZ)); ) { - let r = c1.READ_WORD_TREE[e + (t - us.charCodes.lowercaseA) + 1]; + let r = u1.READ_WORD_TREE[e + (t - us.charCodes.lowercaseA) + 1]; if (r === -1) break; (e = r), s++; } - let i = c1.READ_WORD_TREE[e]; - if (i > -1 && !l1.IS_IDENTIFIER_CHAR[t]) { + let i = u1.READ_WORD_TREE[e]; + if (i > -1 && !c1.IS_IDENTIFIER_CHAR[t]) { (xn.state.pos = s), i & 1 ? _a.finishToken.call(void 0, i >>> 1) - : _a.finishToken.call(void 0, u1.TokenType.name, i >>> 1); + : _a.finishToken.call(void 0, p1.TokenType.name, i >>> 1); return; } for (; s < xn.input.length; ) { let r = xn.input.charCodeAt(s); - if (l1.IS_IDENTIFIER_CHAR[r]) s++; + if (c1.IS_IDENTIFIER_CHAR[r]) s++; else if (r === us.charCodes.backslash) { if ( ((s += 2), xn.input.charCodeAt(s) === us.charCodes.leftCurlyBrace) @@ -13591,7 +13591,7 @@ If you need interactivity, consider converting part of this to a Client Componen s += 2; else break; } - (xn.state.pos = s), _a.finishToken.call(void 0, u1.TokenType.name); + (xn.state.pos = s), _a.finishToken.call(void 0, p1.TokenType.name); } ba.default = am; }); @@ -13604,10 +13604,10 @@ If you need interactivity, consider converting part of this to a Client Componen var b = Zt(), ci = cs(), F = Qt(), - f1 = li(), + d1 = li(), wa = xa(), cm = It(), - um = p1(), + um = h1(), pm = lm(um), ne = be(), it; @@ -13639,7 +13639,7 @@ If you need interactivity, consider converting part of this to a Client Componen let f = u + 1; e[(e.ImportAccess = f)] = 'ImportAccess'; })(it || (Be.IdentifierRole = it = {})); - var h1; + var f1; (function (e) { e[(e.NoChildren = 0)] = 'NoChildren'; let s = 1; @@ -13648,7 +13648,7 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.StaticChildren = i)] = 'StaticChildren'; let r = i + 1; e[(e.KeyAfterPropSpread = r)] = 'KeyAfterPropSpread'; - })(h1 || (Be.JSXRole = h1 = {})); + })(f1 || (Be.JSXRole = f1 = {})); function hm(e) { let t = e.identifierRole; return ( @@ -13731,7 +13731,7 @@ If you need interactivity, consider converting part of this to a Client Componen }; Be.Token = Hi; function zr() { - b.state.tokens.push(new Hi()), y1(); + b.state.tokens.push(new Hi()), k1(); } Be.next = zr; function km() { @@ -13753,13 +13753,13 @@ If you need interactivity, consider converting part of this to a Client Componen b.state.isType = e; } Be.popTypeContext = gm; - function d1(e) { + function m1(e) { return Sa(e) ? (zr(), !0) : !1; } - Be.eat = d1; + Be.eat = m1; function _m(e) { let t = b.state.isType; - (b.state.isType = !0), d1(e), (b.state.isType = t); + (b.state.isType = !0), m1(e), (b.state.isType = t); } Be.eatTypeToken = _m; function Sa(e) { @@ -13787,23 +13787,23 @@ If you need interactivity, consider converting part of this to a Client Componen return b.state.restoreFromSnapshot(e), new Gr(t, s); } Be.lookaheadTypeAndKeyword = Cm; - function m1() { - return T1(b.state.pos); + function T1() { + return y1(b.state.pos); } - Be.nextTokenStart = m1; - function T1(e) { + Be.nextTokenStart = T1; + function y1(e) { wa.skipWhiteSpace.lastIndex = e; let t = wa.skipWhiteSpace.exec(b.input); return e + t[0].length; } - Be.nextTokenStartSince = T1; + Be.nextTokenStartSince = y1; function wm() { - return b.input.charCodeAt(m1()); + return b.input.charCodeAt(T1()); } Be.lookaheadCharCode = wm; - function y1() { + function k1() { if ( - (v1(), (b.state.start = b.state.pos), b.state.pos >= b.input.length) + (x1(), (b.state.start = b.state.pos), b.state.pos >= b.input.length) ) { let e = b.state.tokens; e.length >= 2 && @@ -13815,14 +13815,14 @@ If you need interactivity, consider converting part of this to a Client Componen } Sm(b.input.charCodeAt(b.state.pos)); } - Be.nextToken = y1; + Be.nextToken = k1; function Sm(e) { - f1.IS_IDENTIFIER_START[e] || + d1.IS_IDENTIFIER_START[e] || e === F.charCodes.backslash || (e === F.charCodes.atSign && b.input.charCodeAt(b.state.pos + 1) === F.charCodes.atSign) ? pm.default.call(void 0) - : g1(e); + : _1(e); } function Im() { for ( @@ -13837,7 +13837,7 @@ If you need interactivity, consider converting part of this to a Client Componen } b.state.pos += 2; } - function k1(e) { + function v1(e) { let t = b.input.charCodeAt((b.state.pos += e)); if (b.state.pos < b.input.length) for ( @@ -13851,8 +13851,8 @@ If you need interactivity, consider converting part of this to a Client Componen ) t = b.input.charCodeAt(b.state.pos); } - Be.skipLineComment = k1; - function v1() { + Be.skipLineComment = v1; + function x1() { for (; b.state.pos < b.input.length; ) { let e = b.input.charCodeAt(b.state.pos); switch (e) { @@ -13870,7 +13870,7 @@ If you need interactivity, consider converting part of this to a Client Componen (b.state.pos += 2), Im(); break; case F.charCodes.slash: - k1(2); + v1(2); break; default: return; @@ -13882,7 +13882,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } } - Be.skipSpace = v1; + Be.skipSpace = x1; function Ve(e, t = cm.ContextualKeyword.NONE) { (b.state.end = b.state.pos), (b.state.type = e), @@ -13892,7 +13892,7 @@ If you need interactivity, consider converting part of this to a Client Componen function Em() { let e = b.input.charCodeAt(b.state.pos + 1); if (e >= F.charCodes.digit0 && e <= F.charCodes.digit9) { - _1(!0); + b1(!0); return; } e === F.charCodes.dot && @@ -13986,7 +13986,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? Fe(ne.TokenType.relationalOrEqual, 2) : Fe(ne.TokenType.lessThan, 1); } - function x1() { + function g1() { if (b.state.isType) { Fe(ne.TokenType.greaterThan, 1); return; @@ -14009,7 +14009,7 @@ If you need interactivity, consider converting part of this to a Client Componen : Fe(ne.TokenType.greaterThan, 1); } function Dm() { - b.state.type === ne.TokenType.greaterThan && ((b.state.pos -= 1), x1()); + b.state.type === ne.TokenType.greaterThan && ((b.state.pos -= 1), g1()); } Be.rescan_gt = Dm; function Mm(e) { @@ -14039,7 +14039,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? ((b.state.pos += 2), Ve(ne.TokenType.questionDot)) : (++b.state.pos, Ve(ne.TokenType.question)); } - function g1(e) { + function _1(e) { switch (e) { case F.charCodes.numberSign: ++b.state.pos, Ve(ne.TokenType.hash); @@ -14111,7 +14111,7 @@ If you need interactivity, consider converting part of this to a Client Componen case F.charCodes.digit7: case F.charCodes.digit8: case F.charCodes.digit9: - _1(!1); + b1(!1); return; case F.charCodes.quotationMark: case F.charCodes.apostrophe: @@ -14139,7 +14139,7 @@ If you need interactivity, consider converting part of this to a Client Componen Om(); return; case F.charCodes.greaterThan: - x1(); + g1(); return; case F.charCodes.equalsTo: case F.charCodes.exclamationMark: @@ -14157,7 +14157,7 @@ If you need interactivity, consider converting part of this to a Client Componen b.state.pos ); } - Be.getTokenFromCode = g1; + Be.getTokenFromCode = _1; function Fe(e, t) { (b.state.pos += t), Ve(e); } @@ -14180,7 +14180,7 @@ If you need interactivity, consider converting part of this to a Client Componen } ++b.state.pos; } - ++b.state.pos, b1(), Ve(ne.TokenType.regexp); + ++b.state.pos, C1(), Ve(ne.TokenType.regexp); } function Ca() { for (;;) { @@ -14209,7 +14209,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? (++b.state.pos, Ve(ne.TokenType.bigint)) : Ve(ne.TokenType.num); } - function _1(e) { + function b1(e) { let t = !1, s = !1; e || Ca(); @@ -14276,10 +14276,10 @@ If you need interactivity, consider converting part of this to a Client Componen e === F.charCodes.backslash && b.state.pos++, b.state.pos++; } } - function b1() { + function C1() { for (; b.state.pos < b.input.length; ) { let e = b.input.charCodeAt(b.state.pos); - if (f1.IS_IDENTIFIER_CHAR[e]) b.state.pos++; + if (d1.IS_IDENTIFIER_CHAR[e]) b.state.pos++; else if (e === F.charCodes.backslash) { if ( ((b.state.pos += 2), @@ -14297,12 +14297,12 @@ If you need interactivity, consider converting part of this to a Client Componen } else break; } } - Be.skipWord = b1; + Be.skipWord = C1; }); var Wi = Z((Ia) => { 'use strict'; Object.defineProperty(Ia, '__esModule', {value: !0}); - var C1 = be(); + var w1 = be(); function qm(e, t = e.currentIndex()) { let s = t + 1; if (Xr(e, s)) { @@ -14325,10 +14325,10 @@ If you need interactivity, consider converting part of this to a Client Componen Ia.default = qm; function Xr(e, t) { let s = e.tokens[t]; - return s.type === C1.TokenType.braceR || s.type === C1.TokenType.comma; + return s.type === w1.TokenType.braceR || s.type === w1.TokenType.comma; } }); - var w1 = Z((Ea) => { + var S1 = Z((Ea) => { 'use strict'; Object.defineProperty(Ea, '__esModule', {value: !0}); Ea.default = new Map([ @@ -14591,12 +14591,12 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Aa, '__esModule', {value: !0}); function Km(e) { - let [t, s] = S1(e.jsxPragma || 'React.createElement'), - [i, r] = S1(e.jsxFragmentPragma || 'React.Fragment'); + let [t, s] = I1(e.jsxPragma || 'React.createElement'), + [i, r] = I1(e.jsxFragmentPragma || 'React.Fragment'); return {base: t, suffix: s, fragmentBase: i, fragmentSuffix: r}; } Aa.default = Km; - function S1(e) { + function I1(e) { let t = e.indexOf('.'); return t === -1 && (t = e.length), [e.slice(0, t), e.slice(t)]; } @@ -14623,7 +14623,7 @@ If you need interactivity, consider converting part of this to a Client Componen function Oa(e) { return e && e.__esModule ? e : {default: e}; } - var Um = w1(), + var Um = S1(), Hm = Oa(Um), Yr = xt(), Re = be(), @@ -14865,7 +14865,7 @@ If you need interactivity, consider converting part of this to a Client Componen t++; if (t === this.tokens.currentIndex() + 1) { let s = this.tokens.identifierName(); - E1(s) && this.tokens.replaceToken(`'${s}'`); + A1(s) && this.tokens.replaceToken(`'${s}'`); } for (; this.tokens.currentIndex() < t; ) this.rootTransformer.processToken(); @@ -14933,7 +14933,7 @@ If you need interactivity, consider converting part of this to a Client Componen processStringPropValue() { let t = this.tokens.currentToken(), s = this.tokens.code.slice(t.start + 1, t.end - 1), - i = I1(s), + i = E1(s), r = Jm(s); this.tokens.replaceToken(r + i); } @@ -14979,7 +14979,7 @@ If you need interactivity, consider converting part of this to a Client Componen processChildTextElement(t) { let s = this.tokens.currentToken(), i = this.tokens.code.slice(s.start, s.end), - r = I1(i), + r = E1(i), a = Ym(i); return a === '""' ? (this.tokens.replaceToken(r), !1) @@ -14998,11 +14998,11 @@ If you need interactivity, consider converting part of this to a Client Componen } }; Jr.default = La; - function E1(e) { + function A1(e) { let t = e.charCodeAt(0); return t >= An.charCodes.lowercaseA && t <= An.charCodes.lowercaseZ; } - Jr.startsWithLowerCase = E1; + Jr.startsWithLowerCase = A1; function Ym(e) { let t = '', s = '', @@ -15019,7 +15019,7 @@ If you need interactivity, consider converting part of this to a Client Componen (s = ''), (i = !0); else { if ((r && i && (t += ' '), (t += s), (s = ''), p === '&')) { - let {entity: d, newI: y} = A1(e, a + 1); + let {entity: d, newI: y} = P1(e, a + 1); (a = y - 1), (t += d); } else t += p; (r = !0), (i = !1); @@ -15027,7 +15027,7 @@ If you need interactivity, consider converting part of this to a Client Componen } return i || (t += s), JSON.stringify(t); } - function I1(e) { + function E1(e) { let t = 0, s = 0; for (let i of e) @@ -15056,13 +15056,13 @@ If you need interactivity, consider converting part of this to a Client Componen t += ` `; else if (i === '&') { - let {entity: r, newI: a} = A1(e, s + 1); + let {entity: r, newI: a} = P1(e, s + 1); (t += r), (s = a - 1); } else t += i; } return JSON.stringify(t); } - function A1(e, t) { + function P1(e, t) { let s = '', i = 0, r, @@ -15142,7 +15142,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Ma.getNonTypeIdentifiers = iT; }); - var P1 = Z((Va) => { + var N1 = Z((Va) => { 'use strict'; Object.defineProperty(Va, '__esModule', {value: !0}); function rT(e) { @@ -15547,9 +15547,9 @@ If you need interactivity, consider converting part of this to a Client Componen }; Va.default = Ba; }); - var R1 = Z((eo, N1) => { + var L1 = Z((eo, R1) => { (function (e, t) { - typeof eo == 'object' && typeof N1 < 'u' + typeof eo == 'object' && typeof R1 < 'u' ? t(eo) : typeof define == 'function' && define.amd ? define(['exports'], t) @@ -15580,9 +15580,9 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var ja = Z((to, L1) => { + var ja = Z((to, O1) => { (function (e, t) { - typeof to == 'object' && typeof L1 < 'u' + typeof to == 'object' && typeof O1 < 'u' ? t(to) : typeof define == 'function' && define.amd ? define(['exports'], t) @@ -15718,7 +15718,7 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var O1 = Z(($a, qa) => { + var D1 = Z(($a, qa) => { (function (e, t) { typeof $a == 'object' && typeof qa < 'u' ? (qa.exports = t()) @@ -15893,10 +15893,10 @@ If you need interactivity, consider converting part of this to a Client Componen return E; }); }); - var M1 = Z((no, D1) => { + var F1 = Z((no, M1) => { (function (e, t) { - typeof no == 'object' && typeof D1 < 'u' - ? t(no, ja(), O1()) + typeof no == 'object' && typeof M1 < 'u' + ? t(no, ja(), D1()) : typeof define == 'function' && define.amd ? define( [ @@ -16246,10 +16246,10 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var B1 = Z((so, F1) => { + var V1 = Z((so, B1) => { (function (e, t) { - typeof so == 'object' && typeof F1 < 'u' - ? t(so, R1(), ja(), M1()) + typeof so == 'object' && typeof B1 < 'u' + ? t(so, L1(), ja(), F1()) : typeof define == 'function' && define.amd ? define( [ @@ -16429,11 +16429,11 @@ If you need interactivity, consider converting part of this to a Client Componen (e.GenMapping = u), Object.defineProperty(e, '__esModule', {value: !0}); }); }); - var j1 = Z((Ka) => { + var $1 = Z((Ka) => { 'use strict'; Object.defineProperty(Ka, '__esModule', {value: !0}); - var Gi = B1(), - V1 = Qt(); + var Gi = V1(), + j1 = Qt(); function uT({code: e, mappings: t}, s, i, r, a) { let p = pT(r, a), d = new Gi.GenMapping({file: i.compiledFilename}), @@ -16454,7 +16454,7 @@ If you need interactivity, consider converting part of this to a Client Componen ) y++, (k = t[y]); } - e.charCodeAt(S) === V1.charCodes.lineFeed && + e.charCodeAt(S) === j1.charCodes.lineFeed && (A++, (u = S + 1), k !== u && Gi.maybeAddSegment.call(void 0, d, A, 0, s, A, 0)); @@ -16474,11 +16474,11 @@ If you need interactivity, consider converting part of this to a Client Componen a = 0; for (let p = 0; p < e.length; p++) p === r && ((s[i] = r - a), i++, (r = t[i].start)), - e.charCodeAt(p) === V1.charCodes.lineFeed && (a = p + 1); + e.charCodeAt(p) === j1.charCodes.lineFeed && (a = p + 1); return s; } }); - var $1 = Z((Ha) => { + var q1 = Z((Ha) => { 'use strict'; Object.defineProperty(Ha, '__esModule', {value: !0}); var hT = { @@ -16660,16 +16660,16 @@ If you need interactivity, consider converting part of this to a Client Componen }; Ha.HelperManager = Ua; }); - var U1 = Z((ro) => { + var H1 = Z((ro) => { 'use strict'; Object.defineProperty(ro, '__esModule', {value: !0}); var Wa = xt(), io = be(); function fT(e, t, s) { - K1(e, s) && dT(e, t, s); + U1(e, s) && dT(e, t, s); } ro.default = fT; - function K1(e, t) { + function U1(e, t) { for (let s of e.tokens) if ( s.type === io.TokenType.name && @@ -16679,7 +16679,7 @@ If you need interactivity, consider converting part of this to a Client Componen return !0; return !1; } - ro.hasShadowedGlobals = K1; + ro.hasShadowedGlobals = U1; function dT(e, t, s) { let i = [], r = t.length - 1; @@ -16692,19 +16692,19 @@ If you need interactivity, consider converting part of this to a Client Componen d = e.identifierNameForToken(p); if (i.length > 1 && p.type === io.TokenType.name && s.has(d)) { if (Wa.isBlockScopedDeclaration.call(void 0, p)) - q1(i[i.length - 1], e, d); + K1(i[i.length - 1], e, d); else if (Wa.isFunctionScopedDeclaration.call(void 0, p)) { let y = i.length - 1; for (; y > 0 && !i[y].isFunctionScope; ) y--; if (y < 0) throw new Error('Did not find parent function scope.'); - q1(i[y], e, d); + K1(i[y], e, d); } } } if (i.length > 0) throw new Error('Expected empty scope stack after processing file.'); } - function q1(e, t, s) { + function K1(e, t, s) { for (let i = e.startTokenIndex; i < e.endTokenIndex; i++) { let r = t.tokens[i]; (r.type === io.TokenType.name || r.type === io.TokenType.jsxName) && @@ -16713,7 +16713,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } }); - var H1 = Z((Ga) => { + var W1 = Z((Ga) => { 'use strict'; Object.defineProperty(Ga, '__esModule', {value: !0}); var mT = be(); @@ -16725,13 +16725,13 @@ If you need interactivity, consider converting part of this to a Client Componen } Ga.default = TT; }); - var W1 = Z((Xa) => { + var G1 = Z((Xa) => { 'use strict'; Object.defineProperty(Xa, '__esModule', {value: !0}); function yT(e) { return e && e.__esModule ? e : {default: e}; } - var kT = H1(), + var kT = W1(), vT = yT(kT), za = class e { __init() { @@ -16786,7 +16786,7 @@ If you need interactivity, consider converting part of this to a Client Componen })(); Object.defineProperty(Pn, '__esModule', {value: !0}); Pn.DetailContext = Pn.NoopContext = Pn.VError = void 0; - var G1 = (function (e) { + var z1 = (function (e) { xT(t, e); function t(s, i) { var r = e.call(this, i) || this; @@ -16794,7 +16794,7 @@ If you need interactivity, consider converting part of this to a Client Componen } return t; })(Error); - Pn.VError = G1; + Pn.VError = z1; var gT = (function () { function e() {} return ( @@ -16812,7 +16812,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(); Pn.NoopContext = gT; - var z1 = (function () { + var X1 = (function () { function e() { (this._propNames = ['']), (this._messages = [null]), (this._score = 0); } @@ -16849,7 +16849,7 @@ If you need interactivity, consider converting part of this to a Client Componen var a = this._messages[i]; a && s.push(t + ' ' + a); } - return new G1(t, s.join('; ')); + return new z1(t, s.join('; ')); }), (e.prototype.getErrorDetail = function (t) { for (var s = [], i = this._propNames.length - 1; i >= 0; i--) { @@ -16865,14 +16865,14 @@ If you need interactivity, consider converting part of this to a Client Componen e ); })(); - Pn.DetailContext = z1; + Pn.DetailContext = X1; var _T = (function () { function e() { this.contexts = []; } return ( (e.prototype.createContext = function () { - var t = new z1(); + var t = new X1(); return this.contexts.push(t), t; }), e @@ -16940,24 +16940,24 @@ If you need interactivity, consider converting part of this to a Client Componen ce.name = ce.TType = void 0; - var J1 = oo(), + var Q1 = oo(), Ht = (function () { function e() {} return e; })(); ce.TType = Ht; function ps(e) { - return typeof e == 'string' ? Q1(e) : e; + return typeof e == 'string' ? Z1(e) : e; } function Qa(e, t) { var s = e[t]; if (!s) throw new Error('Unknown type ' + t); return s; } - function Q1(e) { + function Z1(e) { return new Za(e); } - ce.name = Q1; + ce.name = Z1; var Za = (function (e) { nn(t, e); function t(s) { @@ -17006,10 +17006,10 @@ If you need interactivity, consider converting part of this to a Client Componen })(Ht); ce.TLiteral = el; function CT(e) { - return new Z1(ps(e)); + return new ep(ps(e)); } ce.array = CT; - var Z1 = (function (e) { + var ep = (function (e) { nn(t, e); function t(s) { var i = e.call(this) || this; @@ -17030,17 +17030,17 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TArray = Z1; + ce.TArray = ep; function wT() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - return new ep( + return new tp( e.map(function (s) { return ps(s); }) ); } ce.tuple = wT; - var ep = (function (e) { + var tp = (function (e) { nn(t, e); function t(s) { var i = e.call(this) || this; @@ -17072,17 +17072,17 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TTuple = ep; + ce.TTuple = tp; function ST() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - return new tp( + return new np( e.map(function (s) { return ps(s); }) ); } ce.union = ST; - var tp = (function (e) { + var np = (function (e) { nn(t, e); function t(s) { var i = e.call(this) || this; @@ -17120,17 +17120,17 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TUnion = tp; + ce.TUnion = np; function IT() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - return new np( + return new sp( e.map(function (s) { return ps(s); }) ); } ce.intersection = IT; - var np = (function (e) { + var sp = (function (e) { nn(t, e); function t(s) { var i = e.call(this) || this; @@ -17152,7 +17152,7 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TIntersection = np; + ce.TIntersection = sp; function ET(e) { return new tl(e); } @@ -17185,10 +17185,10 @@ If you need interactivity, consider converting part of this to a Client Componen })(Ht); ce.TEnumType = tl; function AT(e, t) { - return new sp(e, t); + return new ip(e, t); } ce.enumlit = AT; - var sp = (function (e) { + var ip = (function (e) { nn(t, e); function t(s, i) { var r = e.call(this) || this; @@ -17223,7 +17223,7 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TEnumLiteral = sp; + ce.TEnumLiteral = ip; function PT(e) { return Object.keys(e).map(function (t) { return NT(t, e[t]); @@ -17233,10 +17233,10 @@ If you need interactivity, consider converting part of this to a Client Componen return t instanceof nl ? new Ja(e, t.ttype, !0) : new Ja(e, ps(t), !1); } function RT(e, t) { - return new ip(e, PT(t)); + return new rp(e, PT(t)); } ce.iface = RT; - var ip = (function (e) { + var rp = (function (e) { nn(t, e); function t(s, i) { var r = e.call(this) || this; @@ -17260,7 +17260,7 @@ If you need interactivity, consider converting part of this to a Client Componen d = this.props.map(function (f) { return f.ttype.getChecker(s, i); }), - y = new J1.NoopContext(), + y = new Q1.NoopContext(), k = this.props.map(function (f, x) { return !f.isOpt && !d[x](void 0, y); }), @@ -17299,7 +17299,7 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TIface = ip; + ce.TIface = rp; function LT(e) { return new nl(ps(e)); } @@ -17331,10 +17331,10 @@ If you need interactivity, consider converting part of this to a Client Componen function OT(e) { for (var t = [], s = 1; s < arguments.length; s++) t[s - 1] = arguments[s]; - return new rp(new ap(t), ps(e)); + return new op(new lp(t), ps(e)); } ce.func = OT; - var rp = (function (e) { + var op = (function (e) { nn(t, e); function t(s, i) { var r = e.call(this) || this; @@ -17351,19 +17351,19 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TFunc = rp; + ce.TFunc = op; function DT(e, t, s) { - return new op(e, ps(t), !!s); + return new ap(e, ps(t), !!s); } ce.param = DT; - var op = (function () { + var ap = (function () { function e(t, s, i) { (this.name = t), (this.ttype = s), (this.isOpt = i); } return e; })(); - ce.TParam = op; - var ap = (function (e) { + ce.TParam = ap; + var lp = (function (e) { nn(t, e); function t(s) { var i = e.call(this) || this; @@ -17375,7 +17375,7 @@ If you need interactivity, consider converting part of this to a Client Componen a = this.params.map(function (k) { return k.ttype.getChecker(s, i); }), - p = new J1.NoopContext(), + p = new Q1.NoopContext(), d = this.params.map(function (k, A) { return !k.isOpt && !a[A](void 0, p); }), @@ -17405,7 +17405,7 @@ If you need interactivity, consider converting part of this to a Client Componen t ); })(Ht); - ce.TParamList = ap; + ce.TParamList = lp; var Dt = (function (e) { nn(t, e); function t(s, i) { @@ -17454,11 +17454,11 @@ If you need interactivity, consider converting part of this to a Client Componen never: new Dt(function (e) { return !1; }, 'is unexpected'), - Date: new Dt(X1('[object Date]'), 'is not a Date'), - RegExp: new Dt(X1('[object RegExp]'), 'is not a RegExp'), + Date: new Dt(Y1('[object Date]'), 'is not a Date'), + RegExp: new Dt(Y1('[object RegExp]'), 'is not a RegExp'), }; var MT = Object.prototype.toString; - function X1(e) { + function Y1(e) { return function (t) { return typeof t == 'object' && t && MT.call(t) === e; }; @@ -17489,8 +17489,8 @@ If you need interactivity, consider converting part of this to a Client Componen ao < Ya.length; ao++ ) - (Y1 = Ya[ao]), FT(Y1); - var Y1, ao, Ya; + (J1 = Ya[ao]), FT(J1); + var J1, ao, Ya; }); var il = Z((we) => { 'use strict'; @@ -17696,12 +17696,12 @@ If you need interactivity, consider converting part of this to a Client Componen ) for (var p = a[r], d = 0, y = Object.keys(p); d < y.length; d++) { var k = y[d]; - i[k] = new lp(s, p[k]); + i[k] = new cp(s, p[k]); } return i; } we.createCheckers = jT; - var lp = (function () { + var cp = (function () { function e(t, s, i) { if ( (i === void 0 && (i = 'value'), @@ -17789,9 +17789,9 @@ If you need interactivity, consider converting part of this to a Client Componen e ); })(); - we.Checker = lp; + we.Checker = cp; }); - var cp = Z((Gn) => { + var up = Z((Gn) => { 'use strict'; Object.defineProperty(Gn, '__esModule', {value: !0}); function $T(e) { @@ -17840,14 +17840,14 @@ If you need interactivity, consider converting part of this to a Client Componen }; Gn.default = WT; }); - var up = Z((rl) => { + var pp = Z((rl) => { 'use strict'; Object.defineProperty(rl, '__esModule', {value: !0}); function GT(e) { return e && e.__esModule ? e : {default: e}; } var zT = il(), - XT = cp(), + XT = up(), YT = GT(XT), {Options: JT} = zT.createCheckers.call(void 0, YT.default); function QT(e) { @@ -17859,7 +17859,7 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Nn, '__esModule', {value: !0}); var ZT = Ji(), - pp = hi(), + hp = hi(), Mt = xt(), Xi = It(), fn = be(), @@ -17870,21 +17870,21 @@ If you need interactivity, consider converting part of this to a Client Componen Mt.next.call(void 0), Yi.parseMaybeAssign.call(void 0, !1); } Nn.parseSpread = ey; - function hp(e) { + function fp(e) { Mt.next.call(void 0), ll(e); } - Nn.parseRest = hp; - function fp(e) { - Yi.parseIdentifier.call(void 0), dp(e); + Nn.parseRest = fp; + function dp(e) { + Yi.parseIdentifier.call(void 0), mp(e); } - Nn.parseBindingIdentifier = fp; + Nn.parseBindingIdentifier = dp; function ty() { Yi.parseIdentifier.call(void 0), (gt.state.tokens[gt.state.tokens.length - 1].identifierRole = Mt.IdentifierRole.ImportDeclaration); } Nn.parseImportedIdentifier = ty; - function dp(e) { + function mp(e) { let t; gt.state.scopeDepth === 0 ? (t = Mt.IdentifierRole.TopLevelDeclaration) @@ -17893,7 +17893,7 @@ If you need interactivity, consider converting part of this to a Client Componen : (t = Mt.IdentifierRole.FunctionScopedDeclaration), (gt.state.tokens[gt.state.tokens.length - 1].identifierRole = t); } - Nn.markPriorBindingIdentifier = dp; + Nn.markPriorBindingIdentifier = mp; function ll(e) { switch (gt.state.type) { case fn.TokenType._this: { @@ -17903,11 +17903,11 @@ If you need interactivity, consider converting part of this to a Client Componen } case fn.TokenType._yield: case fn.TokenType.name: { - (gt.state.type = fn.TokenType.name), fp(e); + (gt.state.type = fn.TokenType.name), dp(e); return; } case fn.TokenType.bracketL: { - Mt.next.call(void 0), mp(fn.TokenType.bracketR, e, !0); + Mt.next.call(void 0), Tp(fn.TokenType.bracketR, e, !0); return; } case fn.TokenType.braceL: @@ -17918,7 +17918,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } Nn.parseBindingAtom = ll; - function mp(e, t, s = !1, i = !1, r = 0) { + function Tp(e, t, s = !1, i = !1, r = 0) { let a = !0, p = !1, d = gt.state.tokens.length; @@ -17936,18 +17936,18 @@ If you need interactivity, consider converting part of this to a Client Componen ) { if (Mt.eat.call(void 0, e)) break; if (Mt.match.call(void 0, fn.TokenType.ellipsis)) { - hp(t), - Tp(), + fp(t), + yp(), Mt.eat.call(void 0, fn.TokenType.comma), ol.expect.call(void 0, e); break; } else ny(i, t); } } - Nn.parseBindingList = mp; + Nn.parseBindingList = Tp; function ny(e, t) { e && - pp.tsParseModifiers.call(void 0, [ + hp.tsParseModifiers.call(void 0, [ Xi.ContextualKeyword._public, Xi.ContextualKeyword._protected, Xi.ContextualKeyword._private, @@ -17955,14 +17955,14 @@ If you need interactivity, consider converting part of this to a Client Componen Xi.ContextualKeyword._override, ]), al(t), - Tp(), + yp(), al(t, !0); } - function Tp() { + function yp() { gt.isFlowEnabled ? ZT.flowParseAssignableListItemTypes.call(void 0) : gt.isTypeScriptEnabled && - pp.tsParseAssignableListItemTypes.call(void 0); + hp.tsParseAssignableListItemTypes.call(void 0); } function al(e, t = !1) { if ((t || ll(e), !Mt.eat.call(void 0, fn.TokenType.eq))) return; @@ -17997,7 +17997,7 @@ If you need interactivity, consider converting part of this to a Client Componen v.match.call(void 0, T.TokenType.decimal) ); } - function gp() { + function _p() { let e = w.state.snapshot(); return ( v.next.call(void 0), @@ -18012,14 +18012,14 @@ If you need interactivity, consider converting part of this to a Client Componen : (w.state.restoreFromSnapshot(e), !1) ); } - function _p(e) { + function bp(e) { for (; dl(e) !== null; ); } - Oe.tsParseModifiers = _p; + Oe.tsParseModifiers = bp; function dl(e) { if (!v.match.call(void 0, T.TokenType.name)) return null; let t = w.state.contextualKeyword; - if (e.indexOf(t) !== -1 && gp()) { + if (e.indexOf(t) !== -1 && _p()) { switch (t) { case oe.ContextualKeyword._readonly: w.state.tokens[w.state.tokens.length - 1].type = @@ -18083,12 +18083,12 @@ If you need interactivity, consider converting part of this to a Client Componen } function ly() { U.expect.call(void 0, T.TokenType._typeof), - v.match.call(void 0, T.TokenType._import) ? bp() : Zi(), + v.match.call(void 0, T.TokenType._import) ? Cp() : Zi(), !U.hasPrecedingLineBreak.call(void 0) && v.match.call(void 0, T.TokenType.lessThan) && Ti(); } - function bp() { + function Cp() { U.expect.call(void 0, T.TokenType._import), U.expect.call(void 0, T.TokenType.parenL), U.expect.call(void 0, T.TokenType.string), @@ -18139,7 +18139,7 @@ If you need interactivity, consider converting part of this to a Client Componen function co() { v.eat.call(void 0, T.TokenType.comma) || U.semicolon.call(void 0); } - function yp() { + function kp() { ml(T.TokenType.colon), co(); } function py() { @@ -18150,7 +18150,7 @@ If you need interactivity, consider converting part of this to a Client Componen v.match.call(void 0, T.TokenType.colon); return w.state.restoreFromSnapshot(e), t; } - function Cp() { + function wp() { if (!(v.match.call(void 0, T.TokenType.bracketL) && py())) return !1; let e = v.pushTypeContext.call(void 0, 0); return ( @@ -18164,7 +18164,7 @@ If you need interactivity, consider converting part of this to a Client Componen !0 ); } - function kp(e) { + function vp(e) { v.eat.call(void 0, T.TokenType.question), !e && (v.match.call(void 0, T.TokenType.parenL) || @@ -18177,29 +18177,29 @@ If you need interactivity, consider converting part of this to a Client Componen v.match.call(void 0, T.TokenType.parenL) || v.match.call(void 0, T.TokenType.lessThan) ) { - yp(); + kp(); return; } if (v.match.call(void 0, T.TokenType._new)) { v.next.call(void 0), v.match.call(void 0, T.TokenType.parenL) || v.match.call(void 0, T.TokenType.lessThan) - ? yp() - : kp(!1); + ? kp() + : vp(!1); return; } let e = !!dl([oe.ContextualKeyword._readonly]); - Cp() || + wp() || ((U.isContextual.call(void 0, oe.ContextualKeyword._get) || U.isContextual.call(void 0, oe.ContextualKeyword._set)) && - gp(), + _p(), _e.parsePropertyName.call(void 0, -1), - kp(e)); + vp(e)); } function fy() { - wp(); + Sp(); } - function wp() { + function Sp() { for ( U.expect.call(void 0, T.TokenType.braceL); !v.eat.call(void 0, T.TokenType.braceR) && !w.state.error; @@ -18330,7 +18330,7 @@ If you need interactivity, consider converting part of this to a Client Componen ly(); return; case T.TokenType._import: - bp(); + Cp(); return; case T.TokenType.braceL: dy() ? yy() : fy(); @@ -18398,7 +18398,7 @@ If you need interactivity, consider converting part of this to a Client Componen (w.state.inDisallowConditionalTypesContext = e); } } - function vp() { + function xp() { if ( (v.eat.call(void 0, T.TokenType.bitwiseAND), pl(), @@ -18409,10 +18409,10 @@ If you need interactivity, consider converting part of this to a Client Componen function wy() { if ( (v.eat.call(void 0, T.TokenType.bitwiseOR), - vp(), + xp(), v.match.call(void 0, T.TokenType.bitwiseOR)) ) - for (; v.eat.call(void 0, T.TokenType.bitwiseOR); ) vp(); + for (; v.eat.call(void 0, T.TokenType.bitwiseOR); ) xp(); } function Sy() { return v.match.call(void 0, T.TokenType.lessThan) @@ -18566,7 +18566,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } Oe.tsTryParseJSXTypeArgument = Dy; - function Sp() { + function Ip() { for (; !v.match.call(void 0, T.TokenType.braceL) && !w.state.error; ) My(), v.eat.call(void 0, T.TokenType.comma); } @@ -18576,8 +18576,8 @@ If you need interactivity, consider converting part of this to a Client Componen function Fy() { di.parseBindingIdentifier.call(void 0, !1), mi(), - v.eat.call(void 0, T.TokenType._extends) && Sp(), - wp(); + v.eat.call(void 0, T.TokenType._extends) && Ip(), + Sp(); } function By() { di.parseBindingIdentifier.call(void 0, !1), @@ -18615,7 +18615,7 @@ If you need interactivity, consider converting part of this to a Client Componen di.parseBindingIdentifier.call(void 0, !1), v.eat.call(void 0, T.TokenType.dot) ? fl() : yl(); } - function Ip() { + function Ep() { U.isContextual.call(void 0, oe.ContextualKeyword._global) ? _e.parseIdentifier.call(void 0) : v.match.call(void 0, T.TokenType.string) @@ -18625,13 +18625,13 @@ If you need interactivity, consider converting part of this to a Client Componen ? yl() : U.semicolon.call(void 0); } - function Ep() { + function Ap() { di.parseImportedIdentifier.call(void 0), U.expect.call(void 0, T.TokenType.eq), $y(), U.semicolon.call(void 0); } - Oe.tsParseImportEqualsDeclaration = Ep; + Oe.tsParseImportEqualsDeclaration = Ap; function jy() { return ( U.isContextual.call(void 0, oe.ContextualKeyword._require) && @@ -18703,7 +18703,7 @@ If you need interactivity, consider converting part of this to a Client Componen s = !1; return ( t === oe.ContextualKeyword._global - ? (Ip(), (s = !0)) + ? (Ep(), (s = !0)) : (s = po(t, !0)), v.popTypeContext.call(void 0, e), s @@ -18713,7 +18713,7 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } } - function xp() { + function gp() { return po(w.state.contextualKeyword, !0); } function Uy(e) { @@ -18761,7 +18761,7 @@ If you need interactivity, consider converting part of this to a Client Componen if (fi(t)) { if (v.match.call(void 0, T.TokenType.string)) { let s = v.pushTypeContext.call(void 0, t ? 2 : 1); - return Ip(), v.popTypeContext.call(void 0, s), !0; + return Ep(), v.popTypeContext.call(void 0, s), !0; } else if (v.match.call(void 0, T.TokenType.name)) { let s = v.pushTypeContext.call(void 0, t ? 2 : 1); return fl(), v.popTypeContext.call(void 0, s), !0; @@ -18904,7 +18904,7 @@ If you need interactivity, consider converting part of this to a Client Componen U.isContextual.call(void 0, oe.ContextualKeyword._type) && v.lookaheadType.call(void 0) !== T.TokenType.eq && U.expectContextual.call(void 0, oe.ContextualKeyword._type), - Ep(), + Ap(), !0 ); if (v.eat.call(void 0, T.TokenType.eq)) @@ -19049,7 +19049,7 @@ If you need interactivity, consider converting part of this to a Client Componen Oe.tsTryParseStatementContent = Zy; function ek(e) { let t = w.state.tokens.length; - _p([ + bp([ oe.ContextualKeyword._abstract, oe.ContextualKeyword._readonly, oe.ContextualKeyword._declare, @@ -19057,7 +19057,7 @@ If you need interactivity, consider converting part of this to a Client Componen oe.ContextualKeyword._override, ]); let s = w.state.tokens.length; - if (Cp()) { + if (wp()) { let r = e ? t - 1 : t; for (let a = r; a < s; a++) w.state.tokens[a].isType = !0; return !0; @@ -19077,8 +19077,8 @@ If you need interactivity, consider converting part of this to a Client Componen if (v.match.call(void 0, T.TokenType.name)) if (e) { let s = v.pushTypeContext.call(void 0, 2); - (t = xp()), v.popTypeContext.call(void 0, s); - } else t = xp(); + (t = gp()), v.popTypeContext.call(void 0, s); + } else t = gp(); if (!t) if (e) { let s = v.pushTypeContext.call(void 0, 2); @@ -19097,7 +19097,7 @@ If you need interactivity, consider converting part of this to a Client Componen w.state.tokens[w.state.tokens.length - 1].type = T.TokenType._implements; let t = v.pushTypeContext.call(void 0, 1); - Sp(), v.popTypeContext.call(void 0, t); + Ip(), v.popTypeContext.call(void 0, t); } } Oe.tsAfterParseClassSuper = sk; @@ -19122,10 +19122,10 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsStartParseAsyncArrowFromCallExpression = ak; function lk(e, t) { - return w.isJSXEnabled ? Ap(e, t) : Pp(e, t); + return w.isJSXEnabled ? Pp(e, t) : Np(e, t); } Oe.tsParseMaybeAssign = lk; - function Ap(e, t) { + function Pp(e, t) { if (!v.match.call(void 0, T.TokenType.lessThan)) return _e.baseParseMaybeAssign.call(void 0, e, t); let s = w.state.snapshot(), @@ -19140,8 +19140,8 @@ If you need interactivity, consider converting part of this to a Client Componen i ); } - Oe.tsParseMaybeAssignWithJSX = Ap; - function Pp(e, t) { + Oe.tsParseMaybeAssignWithJSX = Pp; + function Np(e, t) { if (!v.match.call(void 0, T.TokenType.lessThan)) return _e.baseParseMaybeAssign.call(void 0, e, t); let s = w.state.snapshot(); @@ -19152,7 +19152,7 @@ If you need interactivity, consider converting part of this to a Client Componen else return i; return _e.baseParseMaybeAssign.call(void 0, e, t); } - Oe.tsParseMaybeAssignWithoutJSX = Pp; + Oe.tsParseMaybeAssignWithoutJSX = Np; function ck() { if (v.match.call(void 0, T.TokenType.colon)) { let e = w.state.snapshot(); @@ -19188,7 +19188,7 @@ If you need interactivity, consider converting part of this to a Client Componen ho = Ns(), fs = cs(), at = Qt(), - Np = li(), + Rp = li(), hk = hi(); function fk() { let e = !1, @@ -19245,22 +19245,22 @@ If you need interactivity, consider converting part of this to a Client Componen return; } e = fe.input.charCodeAt(++fe.state.pos); - } while (Np.IS_IDENTIFIER_CHAR[e] || e === at.charCodes.dash); + } while (Rp.IS_IDENTIFIER_CHAR[e] || e === at.charCodes.dash); Se.finishToken.call(void 0, Me.TokenType.jsxName); } function xl() { dn(); } - function Rp(e) { + function Lp(e) { if ((xl(), !Se.eat.call(void 0, Me.TokenType.colon))) { fe.state.tokens[fe.state.tokens.length - 1].identifierRole = e; return; } xl(); } - function Lp() { + function Op() { let e = fe.state.tokens.length; - Rp(Se.IdentifierRole.Access); + Lp(Se.IdentifierRole.Access); let t = !1; for (; Se.match.call(void 0, Me.TokenType.dot); ) (t = !0), dn(), xl(); if (!t) { @@ -19277,7 +19277,7 @@ If you need interactivity, consider converting part of this to a Client Componen Se.next.call(void 0), ho.parseExpression.call(void 0), dn(); return; case Me.TokenType.jsxTagStart: - Dp(), dn(); + Mp(), dn(); return; case Me.TokenType.string: dn(); @@ -19295,7 +19295,7 @@ If you need interactivity, consider converting part of this to a Client Componen } function kk(e) { if (Se.match.call(void 0, Me.TokenType.jsxTagEnd)) return !1; - Lp(), fe.isTypeScriptEnabled && hk.tsTryParseJSXTypeArgument.call(void 0); + Op(), fe.isTypeScriptEnabled && hk.tsTryParseJSXTypeArgument.call(void 0); let t = !1; for ( ; @@ -19317,16 +19317,16 @@ If you need interactivity, consider converting part of this to a Client Componen fe.input.charCodeAt(fe.state.start + 1) === at.charCodes.lowercaseE && fe.input.charCodeAt(fe.state.start + 2) === at.charCodes.lowercaseY && (fe.state.tokens[e].jsxRole = Se.JSXRole.KeyAfterPropSpread), - Rp(Se.IdentifierRole.ObjectKey), + Lp(Se.IdentifierRole.ObjectKey), Se.match.call(void 0, Me.TokenType.eq) && (dn(), Tk()); } let s = Se.match.call(void 0, Me.TokenType.slash); return s && dn(), s; } function vk() { - Se.match.call(void 0, Me.TokenType.jsxTagEnd) || Lp(); + Se.match.call(void 0, Me.TokenType.jsxTagEnd) || Op(); } - function Op() { + function Dp() { let e = fe.state.tokens.length - 1; fe.state.tokens[e].jsxRole = Se.JSXRole.NoChildren; let t = 0; @@ -19346,7 +19346,7 @@ If you need interactivity, consider converting part of this to a Client Componen Se.JSXRole.StaticChildren)); return; } - t++, Op(), yi(); + t++, Dp(), yi(); break; case Me.TokenType.jsxText: t++, yi(); @@ -19367,16 +19367,16 @@ If you need interactivity, consider converting part of this to a Client Componen return; } } - function Dp() { - dn(), Op(); + function Mp() { + dn(), Dp(); } - fo.jsxParseElement = Dp; + fo.jsxParseElement = Mp; function dn() { fe.state.tokens.push(new Se.Token()), Se.skipSpace.call(void 0), (fe.state.start = fe.state.pos); let e = fe.input.charCodeAt(fe.state.pos); - if (Np.IS_IDENTIFIER_START[e]) mk(); + if (Rp.IS_IDENTIFIER_START[e]) mk(); else if ( e === at.charCodes.quotationMark || e === at.charCodes.apostrophe @@ -19416,12 +19416,12 @@ If you need interactivity, consider converting part of this to a Client Componen fk(); } }); - var Fp = Z((To) => { + var Bp = Z((To) => { 'use strict'; Object.defineProperty(To, '__esModule', {value: !0}); var mo = xt(), ki = be(), - Mp = Zt(), + Fp = Zt(), xk = Ns(), gk = Ji(), _k = hi(); @@ -19441,9 +19441,9 @@ If you need interactivity, consider converting part of this to a Client Componen function Ck() { mo.eatTypeToken.call(void 0, ki.TokenType.question), mo.match.call(void 0, ki.TokenType.colon) && - (Mp.isTypeScriptEnabled + (Fp.isTypeScriptEnabled ? _k.tsParseTypeAnnotation.call(void 0) - : Mp.isFlowEnabled && gk.flowParseTypeAnnotation.call(void 0)); + : Fp.isFlowEnabled && gk.flowParseTypeAnnotation.call(void 0)); } To.typedParseParenItem = Ck; }); @@ -19452,13 +19452,13 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(et, '__esModule', {value: !0}); var Yn = Ji(), wk = vl(), - Bp = Fp(), + Vp = Bp(), ms = hi(), K = xt(), zn = It(), - Vp = qr(), + jp = qr(), B = be(), - jp = Qt(), + $p = Qt(), Sk = li(), j = Zt(), ds = lo(), @@ -19480,10 +19480,10 @@ If you need interactivity, consider converting part of this to a Client Componen ? ms.tsParseMaybeAssign.call(void 0, e, t) : j.isFlowEnabled ? Yn.flowParseMaybeAssign.call(void 0, e, t) - : $p(e, t); + : qp(e, t); } et.parseMaybeAssign = mn; - function $p(e, t) { + function qp(e, t) { if (K.match.call(void 0, B.TokenType._yield)) return Kk(), !1; (K.match.call(void 0, B.TokenType.parenL) || K.match.call(void 0, B.TokenType.name) || @@ -19497,20 +19497,20 @@ If you need interactivity, consider converting part of this to a Client Componen : s ); } - et.baseParseMaybeAssign = $p; + et.baseParseMaybeAssign = qp; function Ik(e) { return Ak(e) ? !0 : (Ek(e), !1); } function Ek(e) { j.isTypeScriptEnabled || j.isFlowEnabled - ? Bp.typedParseConditional.call(void 0, e) - : qp(e); + ? Vp.typedParseConditional.call(void 0, e) + : Kp(e); } - function qp(e) { + function Kp(e) { K.eat.call(void 0, B.TokenType.question) && (mn(), Pe.expect.call(void 0, B.TokenType.colon), mn(e)); } - et.baseParseConditional = qp; + et.baseParseConditional = Kp; function Ak(e) { let t = j.state.tokens.length; return rr() ? !0 : (yo(t, -1, e), !1); @@ -19554,13 +19554,13 @@ If you need interactivity, consider converting part of this to a Client Componen return ms.tsParseTypeAssertion.call(void 0), !1; if ( Pe.isContextual.call(void 0, zn.ContextualKeyword._module) && - K.lookaheadCharCode.call(void 0) === jp.charCodes.leftCurlyBrace && + K.lookaheadCharCode.call(void 0) === $p.charCodes.leftCurlyBrace && !Pe.hasFollowingLineBreak.call(void 0) ) return Uk(), !1; if (j.state.type & B.TokenType.IS_PREFIX) return K.next.call(void 0), rr(), !1; - if (Kp()) return !0; + if (Up()) return !0; for ( ; j.state.type & B.TokenType.IS_POSTFIX && @@ -19573,7 +19573,7 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } et.parseMaybeUnary = rr; - function Kp() { + function Up() { let e = j.state.tokens.length; return _o() ? !0 @@ -19583,24 +19583,24 @@ If you need interactivity, consider converting part of this to a Client Componen (j.state.tokens[j.state.tokens.length - 1].isOptionalChainEnd = !0), !1); } - et.parseExprSubscripts = Kp; + et.parseExprSubscripts = Up; function bl(e, t = !1) { - j.isFlowEnabled ? Yn.flowParseSubscripts.call(void 0, e, t) : Up(e, t); + j.isFlowEnabled ? Yn.flowParseSubscripts.call(void 0, e, t) : Hp(e, t); } - function Up(e, t = !1) { + function Hp(e, t = !1) { let s = new vo(!1); do Pk(e, t, s); while (!s.stop && !j.state.error); } - et.baseParseSubscripts = Up; + et.baseParseSubscripts = Hp; function Pk(e, t, s) { j.isTypeScriptEnabled ? ms.tsParseSubscript.call(void 0, e, t, s) : j.isFlowEnabled ? Yn.flowParseSubscript.call(void 0, e, t, s) - : Hp(e, t, s); + : Wp(e, t, s); } - function Hp(e, t, s) { + function Wp(e, t, s) { if (!t && K.eat.call(void 0, B.TokenType.doubleColon)) Cl(), (s.stop = !0), bl(e, t); else if (K.match.call(void 0, B.TokenType.questionDot)) { @@ -19626,7 +19626,7 @@ If you need interactivity, consider converting part of this to a Client Componen sr(), Pe.expect.call(void 0, B.TokenType.bracketR); else if (!t && K.match.call(void 0, B.TokenType.parenL)) - if (Wp()) { + if (Gp()) { let i = j.state.snapshot(), r = j.state.tokens.length; K.next.call(void 0), @@ -19651,14 +19651,14 @@ If you need interactivity, consider converting part of this to a Client Componen } else K.match.call(void 0, B.TokenType.backQuote) ? Sl() : (s.stop = !0); } - et.baseParseSubscript = Hp; - function Wp() { + et.baseParseSubscript = Wp; + function Gp() { return ( j.state.tokens[j.state.tokens.length - 1].contextualKeyword === zn.ContextualKeyword._async && !Pe.canInsertSemicolon.call(void 0) ); } - et.atPossibleAsync = Wp; + et.atPossibleAsync = Gp; function ko() { let e = !0; for (; !K.eat.call(void 0, B.TokenType.parenR) && !j.state.error; ) { @@ -19668,7 +19668,7 @@ If you need interactivity, consider converting part of this to a Client Componen K.eat.call(void 0, B.TokenType.parenR)) ) break; - Qp(!1); + Zp(!1); } } et.parseCallExpressionArguments = ko; @@ -19696,7 +19696,7 @@ If you need interactivity, consider converting part of this to a Client Componen K.match.call(void 0, B.TokenType.jsxText) || K.match.call(void 0, B.TokenType.jsxEmptyText) ) - return Gp(), !1; + return zp(), !1; if (K.match.call(void 0, B.TokenType.lessThan) && j.isJSXEnabled) return ( (j.state.type = B.TokenType.jsxTagStart), @@ -19770,11 +19770,11 @@ If you need interactivity, consider converting part of this to a Client Componen case B.TokenType._do: return K.next.call(void 0), gn.parseBlock.call(void 0), !1; case B.TokenType.parenL: - return zp(e); + return Xp(e); case B.TokenType.bracketL: - return K.next.call(void 0), Jp(B.TokenType.bracketR, !0), !1; + return K.next.call(void 0), Qp(B.TokenType.bracketR, !0), !1; case B.TokenType.braceL: - return Xp(!1, !1), !1; + return Yp(!1, !1), !1; case B.TokenType._function: return Lk(), !1; case B.TokenType.at: @@ -19790,7 +19790,7 @@ If you need interactivity, consider converting part of this to a Client Componen case B.TokenType.hash: { let t = K.lookaheadCharCode.call(void 0); return ( - Sk.IS_IDENTIFIER_START[t] || t === jp.charCodes.backslash + Sk.IS_IDENTIFIER_START[t] || t === $p.charCodes.backslash ? xo() : K.next.call(void 0), !1 @@ -19810,17 +19810,17 @@ If you need interactivity, consider converting part of this to a Client Componen K.eat.call(void 0, B.TokenType.dot) && Xn(), gn.parseFunction.call(void 0, e, !1); } - function Gp() { + function zp() { K.next.call(void 0); } - et.parseLiteral = Gp; + et.parseLiteral = zp; function Ok() { Pe.expect.call(void 0, B.TokenType.parenL), sr(), Pe.expect.call(void 0, B.TokenType.parenR); } et.parseParenExpression = Ok; - function zp(e) { + function Xp(e) { let t = j.state.snapshot(), s = j.state.tokens.length; Pe.expect.call(void 0, B.TokenType.parenL); @@ -19845,7 +19845,7 @@ If you need interactivity, consider converting part of this to a Client Componen gn.parseFunctionParams.call(void 0), gl(), ir(s), - j.state.error ? (j.state.restoreFromSnapshot(t), zp(!1), !1) : !0) + j.state.error ? (j.state.restoreFromSnapshot(t), Xp(!1), !1) : !0) : !1 ); } @@ -19865,7 +19865,7 @@ If you need interactivity, consider converting part of this to a Client Componen et.parseArrow = gl; function wl() { (j.isTypeScriptEnabled || j.isFlowEnabled) && - Bp.typedParseParenItem.call(void 0); + Vp.typedParseParenItem.call(void 0); } function Mk() { if ( @@ -19877,7 +19877,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Fk(), j.isFlowEnabled && Yn.flowStartParseNewArguments.call(void 0), - K.eat.call(void 0, B.TokenType.parenL) && Jp(B.TokenType.parenR); + K.eat.call(void 0, B.TokenType.parenL) && Qp(B.TokenType.parenR); } function Fk() { Cl(), K.eat.call(void 0, B.TokenType.questionDot); @@ -19895,7 +19895,7 @@ If you need interactivity, consider converting part of this to a Client Componen K.next.call(void 0); } et.parseTemplate = Sl; - function Xp(e, t) { + function Yp(e, t) { let s = j.getNextContextId.call(void 0), i = !0; for ( @@ -19940,7 +19940,7 @@ If you need interactivity, consider converting part of this to a Client Componen } j.state.tokens[j.state.tokens.length - 1].contextId = s; } - et.parseObj = Xp; + et.parseObj = Yp; function Bk(e) { return ( !e && @@ -20004,32 +20004,32 @@ If you need interactivity, consider converting part of this to a Client Componen j.state.scopeDepth++; let i = j.state.tokens.length, r = t; - gn.parseFunctionParams.call(void 0, r, s), Yp(e, s); + gn.parseFunctionParams.call(void 0, r, s), Jp(e, s); let a = j.state.tokens.length; - j.state.scopes.push(new Vp.Scope(i, a, !0)), j.state.scopeDepth--; + j.state.scopes.push(new jp.Scope(i, a, !0)), j.state.scopeDepth--; } et.parseMethod = _l; function ir(e) { Il(!0); let t = j.state.tokens.length; - j.state.scopes.push(new Vp.Scope(e, t, !0)), j.state.scopeDepth--; + j.state.scopes.push(new jp.Scope(e, t, !0)), j.state.scopeDepth--; } et.parseArrowExpression = ir; - function Yp(e, t = 0) { + function Jp(e, t = 0) { j.isTypeScriptEnabled ? ms.tsParseFunctionBodyAndFinish.call(void 0, e, t) : j.isFlowEnabled ? Yn.flowParseFunctionBodyAndFinish.call(void 0, t) : Il(!1, t); } - et.parseFunctionBodyAndFinish = Yp; + et.parseFunctionBodyAndFinish = Jp; function Il(e, t = 0) { e && !K.match.call(void 0, B.TokenType.braceL) ? mn() : gn.parseBlock.call(void 0, !0, t); } et.parseFunctionBody = Il; - function Jp(e, t = !1) { + function Qp(e, t = !1) { let s = !0; for (; !K.eat.call(void 0, e) && !j.state.error; ) { if (s) s = !1; @@ -20037,10 +20037,10 @@ If you need interactivity, consider converting part of this to a Client Componen (Pe.expect.call(void 0, B.TokenType.comma), K.eat.call(void 0, e)) ) break; - Qp(t); + Zp(t); } } - function Qp(e) { + function Zp(e) { (e && K.match.call(void 0, B.TokenType.comma)) || (K.match.call(void 0, B.TokenType.ellipsis) ? (ds.parseSpread.call(void 0), wl()) @@ -20090,7 +20090,7 @@ If you need interactivity, consider converting part of this to a Client Componen Wt(), C.popTypeContext.call(void 0, t); } - function Zp() { + function eh() { G.expect.call(void 0, _.TokenType.modulo), G.expectContextual.call(void 0, Te.ContextualKeyword._checks), C.eat.call(void 0, _.TokenType.parenL) && @@ -20101,8 +20101,8 @@ If you need interactivity, consider converting part of this to a Client Componen let e = C.pushTypeContext.call(void 0, 0); G.expect.call(void 0, _.TokenType.colon), C.match.call(void 0, _.TokenType.modulo) - ? Zp() - : (Wt(), C.match.call(void 0, _.TokenType.modulo) && Zp()), + ? eh() + : (Wt(), C.match.call(void 0, _.TokenType.modulo) && eh()), C.popTypeContext.call(void 0, e); } function Wk() { @@ -20140,7 +20140,7 @@ If you need interactivity, consider converting part of this to a Client Componen : G.unexpected.call(void 0); } function zk() { - C.next.call(void 0), rh(), G.semicolon.call(void 0); + C.next.call(void 0), oh(), G.semicolon.call(void 0); } function Xk() { for ( @@ -20211,7 +20211,7 @@ If you need interactivity, consider converting part of this to a Client Componen Co(e, !1, e); } function bo() { - nh(!1), C.match.call(void 0, _.TokenType.lessThan) && Rs(); + sh(!1), C.match.call(void 0, _.TokenType.lessThan) && Rs(); } function Rl() { Nl(); @@ -20234,7 +20234,7 @@ If you need interactivity, consider converting part of this to a Client Componen G.semicolon.call(void 0); } function t0() { - Fl(), rh(), C.eat.call(void 0, _.TokenType.eq) && Wt(); + Fl(), oh(), C.eat.call(void 0, _.TokenType.eq) && Wt(); } function On() { let e = C.pushTypeContext.call(void 0, 0); @@ -20383,7 +20383,7 @@ If you need interactivity, consider converting part of this to a Client Componen !C.match.call(void 0, _.TokenType.braceBarR) && G.unexpected.call(void 0); } - function nh(e) { + function sh(e) { for ( e || je.parseIdentifier.call(void 0); C.eat.call(void 0, _.TokenType.dot); @@ -20392,10 +20392,10 @@ If you need interactivity, consider converting part of this to a Client Componen je.parseIdentifier.call(void 0); } function l0() { - nh(!0), C.match.call(void 0, _.TokenType.lessThan) && Rs(); + sh(!0), C.match.call(void 0, _.TokenType.lessThan) && Rs(); } function c0() { - G.expect.call(void 0, _.TokenType._typeof), sh(); + G.expect.call(void 0, _.TokenType._typeof), ih(); } function u0() { for ( @@ -20429,7 +20429,7 @@ If you need interactivity, consider converting part of this to a Client Componen G.expect.call(void 0, _.TokenType.comma); C.eat.call(void 0, _.TokenType.ellipsis) && wo(); } - function sh() { + function ih() { let e = !1, t = ue.state.noAnonFunctionType; switch (ue.state.type) { @@ -20516,7 +20516,7 @@ If you need interactivity, consider converting part of this to a Client Componen } function p0() { for ( - sh(); + ih(); !G.canInsertSemicolon.call(void 0) && (C.match.call(void 0, _.TokenType.bracketL) || C.match.call(void 0, _.TokenType.questionDot)); @@ -20527,30 +20527,30 @@ If you need interactivity, consider converting part of this to a Client Componen C.eat.call(void 0, _.TokenType.bracketR) || (Wt(), G.expect.call(void 0, _.TokenType.bracketR)); } - function ih() { - C.eat.call(void 0, _.TokenType.question) ? ih() : p0(); + function rh() { + C.eat.call(void 0, _.TokenType.question) ? rh() : p0(); } - function eh() { - ih(), + function th() { + rh(), !ue.state.noAnonFunctionType && C.eat.call(void 0, _.TokenType.arrow) && Wt(); } - function th() { + function nh() { for ( - C.eat.call(void 0, _.TokenType.bitwiseAND), eh(); + C.eat.call(void 0, _.TokenType.bitwiseAND), th(); C.eat.call(void 0, _.TokenType.bitwiseAND); ) - eh(); + th(); } function h0() { for ( - C.eat.call(void 0, _.TokenType.bitwiseOR), th(); + C.eat.call(void 0, _.TokenType.bitwiseOR), nh(); C.eat.call(void 0, _.TokenType.bitwiseOR); ) - th(); + nh(); } function Wt() { h0(); @@ -20559,7 +20559,7 @@ If you need interactivity, consider converting part of this to a Client Componen Ln(); } Je.flowParseTypeAnnotation = vi; - function rh() { + function oh() { je.parseIdentifier.call(void 0), C.match.call(void 0, _.TokenType.colon) && vi(); } @@ -20618,13 +20618,13 @@ If you need interactivity, consider converting part of this to a Client Componen let e = C.pushTypeContext.call(void 0, 0); return C.next.call(void 0), Rl(), C.popTypeContext.call(void 0, e), !0; } else if (G.isContextual.call(void 0, Te.ContextualKeyword._enum)) - return oh(), !0; + return ah(), !0; return !1; } Je.flowTryParseStatement = T0; function y0() { return G.isContextual.call(void 0, Te.ContextualKeyword._enum) - ? (oh(), !0) + ? (ah(), !0) : !1; } Je.flowTryParseExportDefaultExpression = y0; @@ -20848,7 +20848,7 @@ If you need interactivity, consider converting part of this to a Client Componen : !1 ); } - function oh() { + function ah() { G.expectContextual.call(void 0, Te.ContextualKeyword._enum), (ue.state.tokens[ue.state.tokens.length - 1].type = _.TokenType._enum), je.parseIdentifier.call(void 0), @@ -20888,7 +20888,7 @@ If you need interactivity, consider converting part of this to a Client Componen ke = It(), ys = qr(), O = be(), - ah = Qt(), + lh = Qt(), P = Zt(), De = Ns(), ks = lo(), @@ -20969,7 +20969,7 @@ If you need interactivity, consider converting part of this to a Client Componen case O.TokenType._import: { let r = $.lookaheadType.call(void 0); if (r === O.TokenType.parenL || r === O.TokenType.dot) break; - $.next.call(void 0), t === O.TokenType._import ? vh() : Th(); + $.next.call(void 0), t === O.TokenType._import ? xh() : yh(); return; } case O.TokenType.name: @@ -21009,10 +21009,10 @@ If you need interactivity, consider converting part of this to a Client Componen $.eat.call(void 0, O.TokenType.colon) ? iv() : rv(i); } function $l() { - for (; $.match.call(void 0, O.TokenType.at); ) uh(); + for (; $.match.call(void 0, O.TokenType.at); ) ph(); } yt.parseDecorators = $l; - function uh() { + function ph() { if (($.next.call(void 0), $.eat.call(void 0, O.TokenType.parenL))) De.parseExpression.call(void 0), ee.expect.call(void 0, O.TokenType.parenR); @@ -21029,13 +21029,13 @@ If you need interactivity, consider converting part of this to a Client Componen function q0() { P.isTypeScriptEnabled ? dt.tsParseMaybeDecoratorArguments.call(void 0) - : ph(); + : hh(); } - function ph() { + function hh() { $.eat.call(void 0, O.TokenType.parenL) && De.parseCallExpressionArguments.call(void 0); } - yt.baseParseMaybeDecoratorArguments = ph; + yt.baseParseMaybeDecoratorArguments = hh; function K0() { $.next.call(void 0), ee.isLineTerminator.call(void 0) || @@ -21084,11 +21084,11 @@ If you need interactivity, consider converting part of this to a Client Componen ) { if ( ($.next.call(void 0), - hh(!0, P.state.type !== O.TokenType._var), + fh(!0, P.state.type !== O.TokenType._var), $.match.call(void 0, O.TokenType._in) || ee.isContextual.call(void 0, ke.ContextualKeyword._of)) ) { - lh(e); + ch(e); return; } Bl(); @@ -21099,7 +21099,7 @@ If you need interactivity, consider converting part of this to a Client Componen $.match.call(void 0, O.TokenType._in) || ee.isContextual.call(void 0, ke.ContextualKeyword._of)) ) { - lh(e); + ch(e); return; } e && ee.unexpected.call(void 0), Bl(); @@ -21174,7 +21174,7 @@ If you need interactivity, consider converting part of this to a Client Componen $.eat.call(void 0, O.TokenType._finally) && gi(); } function Vl(e) { - $.next.call(void 0), hh(!1, e), ee.semicolon.call(void 0); + $.next.call(void 0), fh(!1, e), ee.semicolon.call(void 0); } yt.parseVarStatement = Vl; function nv() { @@ -21218,7 +21218,7 @@ If you need interactivity, consider converting part of this to a Client Componen ee.expect.call(void 0, O.TokenType.parenR), _n(!1); } - function lh(e) { + function ch(e) { e ? ee.eatContextual.call(void 0, ke.ContextualKeyword._of) : $.next.call(void 0), @@ -21226,7 +21226,7 @@ If you need interactivity, consider converting part of this to a Client Componen ee.expect.call(void 0, O.TokenType.parenR), _n(!1); } - function hh(e, t) { + function fh(e, t) { for (;;) { if ((ov(t), $.eat.call(void 0, O.TokenType.eq))) { let s = P.state.tokens.length - 1; @@ -21254,7 +21254,7 @@ If you need interactivity, consider converting part of this to a Client Componen (t || ((i = P.state.tokens.length), P.state.scopeDepth++), ks.parseBindingIdentifier.call(void 0, !1)); let r = P.state.tokens.length; - P.state.scopeDepth++, fh(), De.parseFunctionBodyAndFinish.call(void 0, e); + P.state.scopeDepth++, dh(), De.parseFunctionBodyAndFinish.call(void 0, e); let a = P.state.tokens.length; P.state.scopes.push(new ys.Scope(r, a, !0)), P.state.scopeDepth--, @@ -21262,7 +21262,7 @@ If you need interactivity, consider converting part of this to a Client Componen (P.state.scopes.push(new ys.Scope(i, a, !0)), P.state.scopeDepth--); } yt.parseFunction = lr; - function fh(e = !1, t = 0) { + function dh(e = !1, t = 0) { P.isTypeScriptEnabled ? dt.tsStartParseFunctionParams.call(void 0) : P.isFlowEnabled && Ft.flowStartParseFunctionParams.call(void 0), @@ -21271,7 +21271,7 @@ If you need interactivity, consider converting part of this to a Client Componen ks.parseBindingList.call(void 0, O.TokenType.parenR, !1, !1, e, t), t && (P.state.tokens[P.state.tokens.length - 1].contextId = t); } - yt.parseFunctionParams = fh; + yt.parseFunctionParams = dh; function Io(e, t = !1) { let s = P.getNextContextId.call(void 0); $.next.call(void 0), @@ -21292,7 +21292,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } yt.parseClass = Io; - function dh() { + function mh() { return ( $.match.call(void 0, O.TokenType.eq) || $.match.call(void 0, O.TokenType.semi) || @@ -21301,7 +21301,7 @@ If you need interactivity, consider converting part of this to a Client Componen $.match.call(void 0, O.TokenType.colon) ); } - function mh() { + function Th() { return ( $.match.call(void 0, O.TokenType.parenL) || $.match.call(void 0, O.TokenType.lessThan) @@ -21315,7 +21315,7 @@ If you need interactivity, consider converting part of this to a Client Componen ) { if ($.eat.call(void 0, O.TokenType.semi)) continue; if ($.match.call(void 0, O.TokenType.at)) { - uh(); + ph(); continue; } let t = P.state.start; @@ -21336,10 +21336,10 @@ If you need interactivity, consider converting part of this to a Client Componen $.match.call(void 0, O.TokenType.name) && P.state.contextualKeyword === ke.ContextualKeyword._static ) { - if ((De.parseIdentifier.call(void 0), mh())) { + if ((De.parseIdentifier.call(void 0), Th())) { or(e, !1); return; - } else if (dh()) { + } else if (mh()) { ar(); return; } @@ -21370,9 +21370,9 @@ If you need interactivity, consider converting part of this to a Client Componen r = P.state.tokens[P.state.tokens.length - 1]; r.contextualKeyword === ke.ContextualKeyword._constructor && (i = !0), jl(), - mh() + Th() ? or(e, i) - : dh() + : mh() ? ar() : r.contextualKeyword === ke.ContextualKeyword._async && !ee.isLineTerminator.call(void 0) @@ -21461,7 +21461,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? dt.tsAfterParseClassSuper.call(void 0, e) : P.isFlowEnabled && Ft.flowAfterParseClassSuper.call(void 0, e); } - function Th() { + function yh() { let e = P.state.tokens.length - 1; (P.isTypeScriptEnabled && dt.tsTryParseExport.call(void 0)) || (mv() @@ -21474,7 +21474,7 @@ If you need interactivity, consider converting part of this to a Client Componen ee.expect.call(void 0, O.TokenType.star), ee.expectContextual.call(void 0, ke.ContextualKeyword._as), De.parseIdentifier.call(void 0)) - : yh(), + : kh(), cr()) : $.eat.call(void 0, O.TokenType._default) ? hv() @@ -21483,7 +21483,7 @@ If you need interactivity, consider converting part of this to a Client Componen : (Kl(), cr()), (P.state.tokens[e].rhsEndIndex = P.state.tokens.length)); } - yt.parseExport = Th; + yt.parseExport = yh; function hv() { if ( (P.isTypeScriptEnabled && @@ -21532,17 +21532,17 @@ If you need interactivity, consider converting part of this to a Client Componen if (s) { let i = P.input.charCodeAt($.nextTokenStartSince.call(void 0, e + 4)); return ( - i === ah.charCodes.quotationMark || i === ah.charCodes.apostrophe + i === lh.charCodes.quotationMark || i === lh.charCodes.apostrophe ); } return !1; } - function yh() { + function kh() { $.eat.call(void 0, O.TokenType.comma) && Kl(); } function cr() { ee.eatContextual.call(void 0, ke.ContextualKeyword._from) && - (De.parseExprAtom.call(void 0), xh()), + (De.parseExprAtom.call(void 0), gh()), ee.semicolon.call(void 0); } yt.parseExportFrom = cr; @@ -21552,18 +21552,18 @@ If you need interactivity, consider converting part of this to a Client Componen : $.match.call(void 0, O.TokenType.star); } function Tv() { - P.isFlowEnabled ? Ft.flowParseExportStar.call(void 0) : kh(); + P.isFlowEnabled ? Ft.flowParseExportStar.call(void 0) : vh(); } - function kh() { + function vh() { ee.expect.call(void 0, O.TokenType.star), ee.isContextual.call(void 0, ke.ContextualKeyword._as) ? yv() : cr(); } - yt.baseParseExportStar = kh; + yt.baseParseExportStar = vh; function yv() { $.next.call(void 0), (P.state.tokens[P.state.tokens.length - 1].type = O.TokenType._as), De.parseIdentifier.call(void 0), - yh(), + kh(), cr(); } function kv() { @@ -21625,7 +21625,7 @@ If you need interactivity, consider converting part of this to a Client Componen xv() && $.next.call(void 0); } - function vh() { + function xh() { if ( P.isTypeScriptEnabled && $.match.call(void 0, O.TokenType.name) && @@ -21659,24 +21659,24 @@ If you need interactivity, consider converting part of this to a Client Componen bv(), ee.expectContextual.call(void 0, ke.ContextualKeyword._from)), De.parseExprAtom.call(void 0), - xh(), + gh(), ee.semicolon.call(void 0); } - yt.parseImport = vh; + yt.parseImport = xh; function _v() { return $.match.call(void 0, O.TokenType.name); } - function ch() { + function uh() { ks.parseImportedIdentifier.call(void 0); } function bv() { P.isFlowEnabled && Ft.flowStartParseImportSpecifiers.call(void 0); let e = !0; - if (!(_v() && (ch(), !$.eat.call(void 0, O.TokenType.comma)))) { + if (!(_v() && (uh(), !$.eat.call(void 0, O.TokenType.comma)))) { if ($.match.call(void 0, O.TokenType.star)) { $.next.call(void 0), ee.expectContextual.call(void 0, ke.ContextualKeyword._as), - ch(); + uh(); return; } for ( @@ -21715,26 +21715,26 @@ If you need interactivity, consider converting part of this to a Client Componen $.next.call(void 0), ks.parseImportedIdentifier.call(void 0)); } - function xh() { + function gh() { ee.isContextual.call(void 0, ke.ContextualKeyword._assert) && !ee.hasPrecedingLineBreak.call(void 0) && ($.next.call(void 0), De.parseObj.call(void 0, !1, !1)); } }); - var bh = Z((Wl) => { + var Ch = Z((Wl) => { 'use strict'; Object.defineProperty(Wl, '__esModule', {value: !0}); - var gh = xt(), - _h = Qt(), + var _h = xt(), + bh = Qt(), Hl = Zt(), wv = nr(); function Sv() { return ( Hl.state.pos === 0 && - Hl.input.charCodeAt(0) === _h.charCodes.numberSign && - Hl.input.charCodeAt(1) === _h.charCodes.exclamationMark && - gh.skipLineComment.call(void 0, 2), - gh.nextToken.call(void 0), + Hl.input.charCodeAt(0) === bh.charCodes.numberSign && + Hl.input.charCodeAt(1) === bh.charCodes.exclamationMark && + _h.skipLineComment.call(void 0, 2), + _h.nextToken.call(void 0), wv.parseTopLevel.call(void 0) ); } @@ -21744,7 +21744,7 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Ao, '__esModule', {value: !0}); var Eo = Zt(), - Iv = bh(), + Iv = Ch(), Gl = class { constructor(t, s) { (this.tokens = t), (this.scopes = s); @@ -21761,7 +21761,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Ao.parse = Ev; }); - var Ch = Z((zl) => { + var wh = Z((zl) => { 'use strict'; Object.defineProperty(zl, '__esModule', {value: !0}); var Av = It(); @@ -21787,14 +21787,14 @@ If you need interactivity, consider converting part of this to a Client Componen } zl.default = Pv; }); - var wh = Z((Yl) => { + var Sh = Z((Yl) => { 'use strict'; Object.defineProperty(Yl, '__esModule', {value: !0}); function Nv(e) { return e && e.__esModule ? e : {default: e}; } var Po = be(), - Rv = Ch(), + Rv = wh(), Lv = Nv(Rv), Xl = class e { __init() { @@ -22073,10 +22073,10 @@ If you need interactivity, consider converting part of this to a Client Componen }; Yl.default = Xl; }); - var Eh = Z((Ql) => { + var Ah = Z((Ql) => { 'use strict'; Object.defineProperty(Ql, '__esModule', {value: !0}); - var Sh = It(), + var Ih = It(), Ne = be(); function Ov(e, t, s, i) { let r = t.snapshot(), @@ -22094,11 +22094,11 @@ If you need interactivity, consider converting part of this to a Client Componen ); for (t.nextToken(); !t.matchesContextIdAndLabel(Ne.TokenType.braceR, f); ) if ( - t.matchesContextual(Sh.ContextualKeyword._constructor) && + t.matchesContextual(Ih.ContextualKeyword._constructor) && !t.currentToken().isType ) ({constructorInitializerStatements: p, constructorInsertPos: k} = - Ih(t)); + Eh(t)); else if (t.matches1(Ne.TokenType.semi)) i || u.push({start: t.currentIndex(), end: t.currentIndex() + 1}), t.nextToken(); @@ -22124,11 +22124,11 @@ If you need interactivity, consider converting part of this to a Client Componen continue; } if ( - t.matchesContextual(Sh.ContextualKeyword._constructor) && + t.matchesContextual(Ih.ContextualKeyword._constructor) && !t.currentToken().isType ) { ({constructorInitializerStatements: p, constructorInsertPos: k} = - Ih(t)); + Eh(t)); continue; } let L = t.currentIndex(); @@ -22209,7 +22209,7 @@ If you need interactivity, consider converting part of this to a Client Componen e.nextToken(); return {isExpression: i, className: r, hasSuperclass: a}; } - function Ih(e) { + function Eh(e) { let t = []; e.nextToken(); let s = e.currentToken().contextId; @@ -22285,18 +22285,18 @@ If you need interactivity, consider converting part of this to a Client Componen var ec = Z((Zl) => { 'use strict'; Object.defineProperty(Zl, '__esModule', {value: !0}); - var Ah = be(); + var Ph = be(); function Fv(e) { if ( (e.removeInitialToken(), e.removeToken(), e.removeToken(), e.removeToken(), - e.matches1(Ah.TokenType.parenL)) + e.matches1(Ph.TokenType.parenL)) ) e.removeToken(), e.removeToken(), e.removeToken(); else - for (; e.matches1(Ah.TokenType.dot); ) e.removeToken(), e.removeToken(); + for (; e.matches1(Ph.TokenType.dot); ) e.removeToken(), e.removeToken(); } Zl.default = Fv; }); @@ -22326,9 +22326,9 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(nc, '__esModule', {value: !0}); var qv = It(), - Ph = be(); + Nh = be(); function Kv(e) { - e.matches2(Ph.TokenType.name, Ph.TokenType.braceL) && + e.matches2(Nh.TokenType.name, Nh.TokenType.braceL) && e.matchesContextual(qv.ContextualKeyword._assert) && (e.removeToken(), e.removeToken(), @@ -22340,7 +22340,7 @@ If you need interactivity, consider converting part of this to a Client Componen var rc = Z((ic) => { 'use strict'; Object.defineProperty(ic, '__esModule', {value: !0}); - var Nh = be(); + var Rh = be(); function Uv(e, t, s) { if (!e) return !1; let i = t.currentToken(); @@ -22349,17 +22349,17 @@ If you need interactivity, consider converting part of this to a Client Componen let r = i.rhsEndIndex - t.currentIndex(); if ( r !== 3 && - !(r === 4 && t.matches1AtIndex(i.rhsEndIndex - 1, Nh.TokenType.semi)) + !(r === 4 && t.matches1AtIndex(i.rhsEndIndex - 1, Rh.TokenType.semi)) ) return !1; let a = t.tokenAtRelativeIndex(2); - if (a.type !== Nh.TokenType.name) return !1; + if (a.type !== Rh.TokenType.name) return !1; let p = t.identifierNameForToken(a); return s.typeDeclarations.has(p) && !s.valueDeclarations.has(p); } ic.default = Uv; }); - var Lh = Z((ac) => { + var Oh = Z((ac) => { 'use strict'; Object.defineProperty(ac, '__esModule', {value: !0}); function ur(e) { @@ -22370,8 +22370,8 @@ If you need interactivity, consider converting part of this to a Client Componen N = be(), Hv = ec(), Wv = ur(Hv), - Rh = tc(), - Gv = ur(Rh), + Lh = tc(), + Gv = ur(Lh), zv = Wi(), Xv = ur(zv), Oo = sc(), @@ -22406,7 +22406,7 @@ If you need interactivity, consider converting part of this to a Client Componen e.prototype.__init3.call(this), (this.declarationInfo = k ? Gv.default.call(void 0, s) - : Rh.EMPTY_DECLARATION_INFO); + : Lh.EMPTY_DECLARATION_INFO); } getPrefixCode() { let t = ''; @@ -23038,7 +23038,7 @@ module.exports = exports.default; }; ac.default = oc; }); - var Fh = Z((cc) => { + var Bh = Z((cc) => { 'use strict'; Object.defineProperty(cc, '__esModule', {value: !0}); function pr(e) { @@ -23048,12 +23048,12 @@ module.exports = exports.default; se = be(), ex = ec(), tx = pr(ex), - Mh = tc(), - nx = pr(Mh), + Fh = tc(), + nx = pr(Fh), sx = Wi(), - Oh = pr(sx), + Dh = pr(sx), ix = Fa(), - Dh = sc(), + Mh = sc(), rx = rc(), ox = pr(rx), ax = hn(), @@ -23071,7 +23071,7 @@ module.exports = exports.default; : new Set()), (this.declarationInfo = a ? nx.default.call(void 0, t) - : Mh.EMPTY_DECLARATION_INFO), + : Fh.EMPTY_DECLARATION_INFO), (this.injectCreateRequireForImportRequire = !!p.injectCreateRequireForImportRequire); } @@ -23152,7 +23152,7 @@ module.exports = exports.default; ) && (this.tokens.removeToken(), this.tokens.removeToken(), - Dh.removeMaybeImportAssertion.call(void 0, this.tokens)), + Mh.removeMaybeImportAssertion.call(void 0, this.tokens)), !0 ); } @@ -23188,7 +23188,7 @@ module.exports = exports.default; ) this.tokens.removeToken(); this.tokens.removeToken(), - Dh.removeMaybeImportAssertion.call(void 0, this.tokens), + Mh.removeMaybeImportAssertion.call(void 0, this.tokens), this.tokens.matches1(se.TokenType.semi) && this.tokens.removeToken(); } @@ -23245,7 +23245,7 @@ module.exports = exports.default; !this.tokens.matches1(se.TokenType.braceR); ) { - let i = Oh.default.call(void 0, this.tokens); + let i = Dh.default.call(void 0, this.tokens); if (i.isType || this.isTypeName(i.rightName)) { for (; this.tokens.currentIndex() < i.endIndex; ) this.tokens.removeToken(); @@ -23336,7 +23336,7 @@ module.exports = exports.default; !this.tokens.matches1(se.TokenType.braceR); ) { - let t = Oh.default.call(void 0, this.tokens); + let t = Dh.default.call(void 0, this.tokens); if (t.isType || this.shouldElideExportedName(t.leftName)) { for (; this.tokens.currentIndex() < t.endIndex; ) this.tokens.removeToken(); @@ -23361,13 +23361,13 @@ module.exports = exports.default; }; cc.default = lc; }); - var Vh = Z((pc) => { + var jh = Z((pc) => { 'use strict'; Object.defineProperty(pc, '__esModule', {value: !0}); function cx(e) { return e && e.__esModule ? e : {default: e}; } - var Bh = It(), + var Vh = It(), sn = be(), ux = hn(), px = cx(ux), @@ -23414,9 +23414,9 @@ module.exports = exports.default; this.tokens.replaceToken('const'), this.tokens.copyExpectedToken(sn.TokenType.name); let t = !1; - this.tokens.matchesContextual(Bh.ContextualKeyword._of) && + this.tokens.matchesContextual(Vh.ContextualKeyword._of) && (this.tokens.removeToken(), - (t = this.tokens.matchesContextual(Bh.ContextualKeyword._symbol)), + (t = this.tokens.matchesContextual(Vh.ContextualKeyword._symbol)), this.tokens.removeToken()); let s = this.tokens.matches3( sn.TokenType.braceL, @@ -23456,7 +23456,7 @@ module.exports = exports.default; }; pc.default = uc; }); - var jh = Z((fc) => { + var $h = Z((fc) => { 'use strict'; Object.defineProperty(fc, '__esModule', {value: !0}); function hx(e) { @@ -23567,7 +23567,7 @@ module.exports = exports.default; }; fc.default = hc; }); - var $h = Z((mc) => { + var qh = Z((mc) => { 'use strict'; Object.defineProperty(mc, '__esModule', {value: !0}); function yx(e) { @@ -23591,13 +23591,13 @@ module.exports = exports.default; }; mc.default = dc; }); - var Kh = Z((yc) => { + var Uh = Z((yc) => { 'use strict'; Object.defineProperty(yc, '__esModule', {value: !0}); function gx(e) { return e && e.__esModule ? e : {default: e}; } - var qh = be(), + var Kh = be(), _x = hn(), bx = gx(_x), Tc = class extends bx.default { @@ -23605,7 +23605,7 @@ module.exports = exports.default; super(), (this.tokens = t), (this.nameManager = s); } process() { - return this.tokens.matches2(qh.TokenType._catch, qh.TokenType.braceL) + return this.tokens.matches2(Kh.TokenType._catch, Kh.TokenType.braceL) ? (this.tokens.copyToken(), this.tokens.appendCode( ` (${this.nameManager.claimFreeName('e')})` @@ -23616,7 +23616,7 @@ module.exports = exports.default; }; yc.default = Tc; }); - var Uh = Z((vc) => { + var Hh = Z((vc) => { 'use strict'; Object.defineProperty(vc, '__esModule', {value: !0}); function Cx(e) { @@ -23749,13 +23749,13 @@ module.exports = exports.default; }; vc.default = kc; }); - var Wh = Z((gc) => { + var Gh = Z((gc) => { 'use strict'; Object.defineProperty(gc, '__esModule', {value: !0}); function Ix(e) { return e && e.__esModule ? e : {default: e}; } - var Hh = xt(), + var Wh = xt(), Et = be(), Ex = hn(), Ax = Ix(Ex), @@ -23832,7 +23832,7 @@ module.exports = exports.default; ? this.tokens.identifierNameAtIndex(t - 2) : t >= 2 && this.tokens.tokens[t - 2].identifierRole === - Hh.IdentifierRole.ObjectKey + Wh.IdentifierRole.ObjectKey ? this.tokens.identifierNameAtIndex(t - 2) : this.tokens.matches2AtIndex( t - 2, @@ -23868,7 +23868,7 @@ module.exports = exports.default; if ( this.tokens.identifierNameAtIndex(t) === 'displayName' && this.tokens.tokens[t].identifierRole === - Hh.IdentifierRole.ObjectKey && + Wh.IdentifierRole.ObjectKey && r.contextId === i ) return !1; @@ -23889,13 +23889,13 @@ module.exports = exports.default; }; gc.default = xc; }); - var zh = Z((bc) => { + var Xh = Z((bc) => { 'use strict'; Object.defineProperty(bc, '__esModule', {value: !0}); function Px(e) { return e && e.__esModule ? e : {default: e}; } - var Gh = xt(), + var zh = xt(), Nx = hn(), Rx = Px(Nx), _c = class e extends Rx.default { @@ -23924,8 +23924,8 @@ module.exports = exports.default; let t = new Set(); for (let i of this.tokens.tokens) !i.isType && - Gh.isTopLevelDeclaration.call(void 0, i) && - i.identifierRole !== Gh.IdentifierRole.ImportDeclaration && + zh.isTopLevelDeclaration.call(void 0, i) && + i.identifierRole !== zh.IdentifierRole.ImportDeclaration && t.add(this.tokens.identifierNameForToken(i)); let s = Array.from(t).map((i) => ({ variableName: i, @@ -23961,10 +23961,10 @@ ${s.map( }; bc.default = _c; }); - var Yh = Z((Cc) => { + var Jh = Z((Cc) => { 'use strict'; Object.defineProperty(Cc, '__esModule', {value: !0}); - var Xh = li(), + var Yh = li(), Lx = new Set([ 'break', 'case', @@ -24014,24 +24014,24 @@ ${s.map( 'true', ]); function Ox(e) { - if (e.length === 0 || !Xh.IS_IDENTIFIER_START[e.charCodeAt(0)]) return !1; + if (e.length === 0 || !Yh.IS_IDENTIFIER_START[e.charCodeAt(0)]) return !1; for (let t = 1; t < e.length; t++) - if (!Xh.IS_IDENTIFIER_CHAR[e.charCodeAt(t)]) return !1; + if (!Yh.IS_IDENTIFIER_CHAR[e.charCodeAt(t)]) return !1; return !Lx.has(e); } Cc.default = Ox; }); - var Zh = Z((Sc) => { + var ef = Z((Sc) => { 'use strict'; Object.defineProperty(Sc, '__esModule', {value: !0}); - function Qh(e) { + function Zh(e) { return e && e.__esModule ? e : {default: e}; } var $e = be(), - Dx = Yh(), - Jh = Qh(Dx), + Dx = Jh(), + Qh = Zh(Dx), Mx = hn(), - Fx = Qh(Mx), + Fx = Zh(Mx), wc = class extends Fx.default { constructor(t, s, i) { super(), @@ -24116,13 +24116,13 @@ ${s.map( let s = this.tokens.identifierNameForToken(t); return { nameStringCode: `"${s}"`, - variableName: Jh.default.call(void 0, s) ? s : null, + variableName: Qh.default.call(void 0, s) ? s : null, }; } else if (t.type === $e.TokenType.string) { let s = this.tokens.stringValueForToken(t); return { nameStringCode: this.tokens.code.slice(t.start, t.end), - variableName: Jh.default.call(void 0, s) ? s : null, + variableName: Qh.default.call(void 0, s) ? s : null, }; } else throw new Error( @@ -24171,7 +24171,7 @@ ${s.map( }; Sc.default = wc; }); - var ef = Z((Ec) => { + var tf = Z((Ec) => { 'use strict'; Object.defineProperty(Ec, '__esModule', {value: !0}); function Tn(e) { @@ -24179,29 +24179,29 @@ ${s.map( } var Bx = It(), lt = be(), - Vx = Eh(), + Vx = Ah(), jx = Tn(Vx), - $x = Lh(), + $x = Oh(), qx = Tn($x), - Kx = Fh(), + Kx = Bh(), Ux = Tn(Kx), - Hx = Vh(), + Hx = jh(), Wx = Tn(Hx), - Gx = jh(), + Gx = $h(), zx = Tn(Gx), Xx = Da(), Yx = Tn(Xx), - Jx = $h(), + Jx = qh(), Qx = Tn(Jx), - Zx = Kh(), + Zx = Uh(), eg = Tn(Zx), - tg = Uh(), + tg = Hh(), ng = Tn(tg), - sg = Wh(), + sg = Gh(), ig = Tn(sg), - rg = zh(), + rg = Xh(), og = Tn(rg), - ag = Zh(), + ag = ef(), lg = Tn(ag), Ic = class e { __init() { @@ -24539,14 +24539,14 @@ ${s.map( }; Ec.default = Ic; }); - var sf = Z((hr) => { + var rf = Z((hr) => { 'use strict'; hr.__esModule = !0; hr.LinesAndColumns = void 0; var Mo = ` `, - tf = '\r', - nf = (function () { + nf = '\r', + sf = (function () { function e(t) { this.string = t; for (var s = [0], i = 0; i < t.length; ) @@ -24554,8 +24554,8 @@ ${s.map( case Mo: (i += Mo.length), s.push(i); break; - case tf: - (i += tf.length), t[i] === Mo && (i += Mo.length), s.push(i); + case nf: + (i += nf.length), t[i] === Mo && (i += Mo.length), s.push(i); break; default: i++; @@ -24591,16 +24591,16 @@ ${s.map( e ); })(); - hr.LinesAndColumns = nf; - hr.default = nf; + hr.LinesAndColumns = sf; + hr.default = sf; }); - var rf = Z((Ac) => { + var of = Z((Ac) => { 'use strict'; Object.defineProperty(Ac, '__esModule', {value: !0}); function cg(e) { return e && e.__esModule ? e : {default: e}; } - var ug = sf(), + var ug = rf(), pg = cg(ug), hg = be(); function fg(e, t) { @@ -24650,7 +24650,7 @@ ${s.map( return e.length > t ? `${e.slice(0, t - 3)}...` : e; } }); - var of = Z((Pc) => { + var af = Z((Pc) => { 'use strict'; Object.defineProperty(Pc, '__esModule', {value: !0}); function mg(e) { @@ -24701,30 +24701,30 @@ ${s.map( } } }); - var cf = Z((fr) => { + var uf = Z((fr) => { 'use strict'; Object.defineProperty(fr, '__esModule', {value: !0}); function vs(e) { return e && e.__esModule ? e : {default: e}; } - var gg = P1(), + var gg = N1(), _g = vs(gg), - bg = j1(), + bg = $1(), Cg = vs(bg), - wg = $1(), - Sg = U1(), - af = vs(Sg), - Ig = W1(), + wg = q1(), + Sg = H1(), + lf = vs(Sg), + Ig = G1(), Eg = vs(Ig), - Ag = up(), + Ag = pp(), Pg = Ul(), - Ng = wh(), + Ng = Sh(), Rg = vs(Ng), - Lg = ef(), + Lg = tf(), Og = vs(Lg), - Dg = rf(), + Dg = of(), Mg = vs(Dg), - Fg = of(), + Fg = af(), Bg = vs(Fg); function Vg() { return '3.32.0'; @@ -24733,7 +24733,7 @@ ${s.map( function jg(e, t) { Ag.validateOptions.call(void 0, t); try { - let s = lf(e, t), + let s = cf(e, t), r = new Og.default( s, t.transforms, @@ -24769,11 +24769,11 @@ ${s.map( } fr.transform = jg; function $g(e, t) { - let s = lf(e, t).tokenProcessor.tokens; + let s = cf(e, t).tokenProcessor.tokens; return Mg.default.call(void 0, e, s); } fr.getFormattedTokens = $g; - function lf(e, t) { + function cf(e, t) { let s = t.transforms.includes('jsx'), i = t.transforms.includes('typescript'), r = t.transforms.includes('flow'), @@ -24797,10 +24797,10 @@ ${s.map( A )), x.preprocessTokens(), - af.default.call(void 0, u, y, x.getGlobalNames()), + lf.default.call(void 0, u, y, x.getGlobalNames()), t.transforms.includes('typescript') && x.pruneTypeOnlyImports()) : t.transforms.includes('typescript') && - af.default.call(void 0, u, y, Bg.default.call(void 0, u)), + lf.default.call(void 0, u, y, Bg.default.call(void 0, u)), { tokenProcessor: u, scopes: y, @@ -24811,9 +24811,9 @@ ${s.map( ); } }); - var pf = Z((Fo, uf) => { + var hf = Z((Fo, pf) => { (function (e, t) { - typeof Fo == 'object' && typeof uf < 'u' + typeof Fo == 'object' && typeof pf < 'u' ? t(Fo) : typeof define == 'function' && define.amd ? define(['exports'], t) @@ -28989,7 +28989,7 @@ Defaulting to 2020, but this will stop working in the future.`)), } return !1; }); - var Nc = 0, + var Rc = 0, Vn = 1, an = 2; le.regexp_eatCharacterClassEscape = function (n) { @@ -29011,7 +29011,7 @@ Defaulting to 2020, but this will stop working in the future.`)), return l && h === an && n.raise('Invalid property name'), h; n.raise('Invalid property name'); } - return Nc; + return Rc; }; function kf(n) { return ( @@ -29036,7 +29036,7 @@ Defaulting to 2020, but this will stop working in the future.`)), var m = n.lastStringValue; return this.regexp_validateUnicodePropertyNameOrValue(n, m); } - return Nc; + return Rc; }), (le.regexp_validateUnicodePropertyNameAndValue = function (n, o, l) { mt(n.unicodeProperties.nonBinary, o) || @@ -29052,11 +29052,11 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (le.regexp_eatUnicodePropertyName = function (n) { var o = 0; - for (n.lastStringValue = ''; Rc((o = n.current())); ) + for (n.lastStringValue = ''; Lc((o = n.current())); ) (n.lastStringValue += nt(o)), n.advance(); return n.lastStringValue !== ''; }); - function Rc(n) { + function Lc(n) { return kr(n) || n === 95; } le.regexp_eatUnicodePropertyValue = function (n) { @@ -29066,7 +29066,7 @@ Defaulting to 2020, but this will stop working in the future.`)), return n.lastStringValue !== ''; }; function vf(n) { - return Rc(n) || vr(n); + return Lc(n) || vr(n); } (le.regexp_eatLoneUnicodePropertyNameOrValue = function (n) { return this.regexp_eatUnicodePropertyValue(n); @@ -29113,7 +29113,7 @@ Defaulting to 2020, but this will stop working in the future.`)), if (this.regexp_eatClassEscape(n)) return !0; if (n.switchU) { var l = n.current(); - (l === 99 || Dc(l)) && n.raise('Invalid class escape'), + (l === 99 || Mc(l)) && n.raise('Invalid class escape'), n.raise('Invalid escape'); } n.pos = o; @@ -29308,16 +29308,16 @@ Defaulting to 2020, but this will stop working in the future.`)), le.regexp_eatHexDigits = function (n) { var o = n.pos, l = 0; - for (n.lastIntValue = 0; Lc((l = n.current())); ) - (n.lastIntValue = 16 * n.lastIntValue + Oc(l)), n.advance(); + for (n.lastIntValue = 0; Oc((l = n.current())); ) + (n.lastIntValue = 16 * n.lastIntValue + Dc(l)), n.advance(); return n.pos !== o; }; - function Lc(n) { + function Oc(n) { return ( (n >= 48 && n <= 57) || (n >= 65 && n <= 70) || (n >= 97 && n <= 102) ); } - function Oc(n) { + function Dc(n) { return n >= 65 && n <= 70 ? 10 + (n - 65) : n >= 97 && n <= 102 @@ -29339,11 +29339,11 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (le.regexp_eatOctalDigit = function (n) { var o = n.current(); - return Dc(o) + return Mc(o) ? ((n.lastIntValue = o - 48), n.advance(), !0) : ((n.lastIntValue = 0), !1); }); - function Dc(n) { + function Mc(n) { return n >= 48 && n <= 55; } le.regexp_eatFixedHexDigits = function (n, o) { @@ -29351,8 +29351,8 @@ Defaulting to 2020, but this will stop working in the future.`)), n.lastIntValue = 0; for (var h = 0; h < o; ++h) { var m = n.current(); - if (!Lc(m)) return (n.pos = l), !1; - (n.lastIntValue = 16 * n.lastIntValue + Oc(m)), n.advance(); + if (!Oc(m)) return (n.pos = l), !1; + (n.lastIntValue = 16 * n.lastIntValue + Dc(m)), n.advance(); } return !0; }; @@ -29792,7 +29792,7 @@ Defaulting to 2020, but this will stop working in the future.`)), function bf(n, o) { return o ? parseInt(n, 8) : parseFloat(n.replace(/_/g, '')); } - function Mc(n) { + function Fc(n) { return typeof BigInt != 'function' ? null : BigInt(n.replace(/_/g, '')); } (Ae.readRadixNumber = function (n) { @@ -29804,7 +29804,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.raise(this.start + 2, 'Expected number in radix ' + n), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 - ? ((l = Mc(this.input.slice(o, this.pos))), ++this.pos) + ? ((l = Fc(this.input.slice(o, this.pos))), ++this.pos) : f(this.fullCharCodeAtPos()) && this.raise(this.pos, 'Identifier directly after number'), this.finishToken(c.num, l) @@ -29819,7 +29819,7 @@ Defaulting to 2020, but this will stop working in the future.`)), l && this.strict && this.raise(o, 'Invalid number'); var h = this.input.charCodeAt(this.pos); if (!l && !n && this.options.ecmaVersion >= 11 && h === 110) { - var m = Mc(this.input.slice(o, this.pos)); + var m = Fc(this.input.slice(o, this.pos)); return ( ++this.pos, f(this.fullCharCodeAtPos()) && @@ -29882,19 +29882,19 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishToken(c.string, o) ); }); - var Fc = {}; + var Bc = {}; (Ae.tryReadTemplateToken = function () { this.inTemplateElement = !0; try { this.readTmplToken(); } catch (n) { - if (n === Fc) this.readInvalidTemplateToken(); + if (n === Bc) this.readInvalidTemplateToken(); else throw n; } this.inTemplateElement = !1; }), (Ae.invalidStringToken = function (n, o) { - if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Fc; + if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Bc; this.raise(n, o); }), (Ae.readTmplToken = function () { @@ -30073,10 +30073,10 @@ Defaulting to 2020, but this will stop working in the future.`)), o = c.name; return this.keywords.test(n) && (o = H[n]), this.finishToken(o, n); }); - var Bc = '8.15.0'; + var Vc = '8.15.0'; Ge.acorn = { Parser: Ge, - version: Bc, + version: Vc, defaultOptions: Pt, Position: ct, SourceLocation: wt, @@ -30125,13 +30125,13 @@ Defaulting to 2020, but this will stop working in the future.`)), (e.tokContexts = Ue), (e.tokTypes = c), (e.tokenizer = Sf), - (e.version = Bc); + (e.version = Vc); }); }); - var ff = Z((Bo, hf) => { + var df = Z((Bo, ff) => { (function (e, t) { - typeof Bo == 'object' && typeof hf < 'u' - ? t(Bo, pf()) + typeof Bo == 'object' && typeof ff < 'u' + ? t(Bo, hf()) : typeof define == 'function' && define.amd ? define(['exports', 'acorn'], t) : ((e = typeof globalThis < 'u' ? globalThis : e || self), @@ -31809,12 +31809,12 @@ Defaulting to 2020, but this will stop working in the future.`)), }); }); var Vo = Li(), - qg = Yc(), - dr = Zu(), - Kg = cf(), - Ug = ff(), + qg = Jc(), + dr = e1(), + Kg = uf(), + Ug = df(), Os = null; - function mf() { + function Tf() { return new Proxy( {}, { @@ -31829,11 +31829,11 @@ Defaulting to 2020, but this will stop working in the future.`)), } ); } - var Tf = {}; + var Nc = {}; function Hg(e, t, s) { var i = dr.registerServerReference(e, t, s), r = t + '#' + s; - return (Tf[r] = e), i; + return (Nc[r] = e), i; } function Wg(e) { if (e.indexOf('use client') === -1 && e.indexOf('use server') === -1) @@ -31866,6 +31866,7 @@ Defaulting to 2020, but this will stop working in the future.`)), return s.join('/'); } function zg(e) { + Nc = {}; var t = {react: Vo, 'react/jsx-runtime': qg}, s = {}, i = null; @@ -31944,11 +31945,11 @@ Defaulting to 2020, but this will stop working in the future.`)), if (!Os) throw new Error('No code deployed'); var e = Os.module.default || Os.module, t = Vo.createElement(e); - return dr.renderToReadableStream(t, mf(), {onError: console.error}); + return dr.renderToReadableStream(t, Tf(), {onError: console.error}); } function Yg(e, t) { if (!Os) throw new Error('No code deployed'); - var s = Tf[e]; + var s = Nc[e]; if (!s) throw new Error('Action "' + e + '" not found'); var i = t; if (typeof t != 'string' && t && t.__formData) { @@ -31962,12 +31963,12 @@ Defaulting to 2020, but this will stop working in the future.`)), var d = Os.module.default || Os.module; return dr.renderToReadableStream( {root: Vo.createElement(d), returnValue: p}, - mf() + Tf() ); }); }); } - function df(e, t) { + function mf(e, t) { var s = t.getReader(); function i() { return s.read().then(function (r) { @@ -32015,9 +32016,17 @@ Defaulting to 2020, but this will stop working in the future.`)), else if (t.type === 'render') try { var i = Xg(); - Promise.resolve(i).then(function (r) { - df(t.requestId, r); - }); + Promise.resolve(i) + .then(function (r) { + mf(t.requestId, r); + }) + .catch(function (r) { + self.postMessage({ + type: 'rsc-error', + requestId: t.requestId, + error: String(r), + }); + }); } catch (r) { self.postMessage({ type: 'rsc-error', @@ -32027,9 +32036,17 @@ Defaulting to 2020, but this will stop working in the future.`)), } else if (t.type === 'callAction') try { - Yg(t.actionId, t.encodedArgs).then(function (r) { - df(t.requestId, r); - }); + Yg(t.actionId, t.encodedArgs) + .then(function (r) { + mf(t.requestId, r); + }) + .catch(function (r) { + self.postMessage({ + type: 'rsc-error', + requestId: t.requestId, + error: String(r), + }); + }); } catch (r) { self.postMessage({ type: 'rsc-error', From b32947c70c48cc91988beb498a203e9156f1638e Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Wed, 11 Feb 2026 21:32:51 -0500 Subject: [PATCH 4/9] fast refresh --- .../src/__react_refresh_init__.js | 17 ++++++++ .../sandbox-code/src/rsc-client.js | 40 +++++++++++++++++++ src/components/MDX/Sandpack/templateRSC.ts | 23 +++++++++++ 3 files changed, 80 insertions(+) create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/__react_refresh_init__.js diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/__react_refresh_init__.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/__react_refresh_init__.js new file mode 100644 index 00000000000..8d0efa9d0b7 --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/__react_refresh_init__.js @@ -0,0 +1,17 @@ +// Must run before React loads. Creates __REACT_DEVTOOLS_GLOBAL_HOOK__ so +// React's renderer injects into it, enabling react-refresh to work. +if (typeof window !== 'undefined' && !window.__REACT_DEVTOOLS_GLOBAL_HOOK__) { + var nextID = 0; + window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = { + renderers: new Map(), + supportsFiber: true, + inject: function (injected) { + var id = nextID++; + this.renderers.set(id, injected); + return id; + }, + onScheduleFiberRoot: function () {}, + onCommitFiberRoot: function () {}, + onCommitFiberUnmount: function () {}, + }; +} diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js index 02e322ff1d8..98a25e2d432 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js @@ -24,6 +24,17 @@ import { encodeReply, } from 'react-server-dom-webpack/client.browser'; +import { + injectIntoGlobalHook, + register as refreshRegister, + performReactRefresh, + isLikelyComponentType, +} from 'react-refresh/runtime'; + +// Patch the DevTools hook to capture renderer helpers and track roots. +// Must run after react-dom evaluates (injects renderer) but before createRoot(). +injectIntoGlobalHook(window); + export function initClient() { // Create Worker from pre-bundled server runtime var blob = new Blob([rscServerForWorker], {type: 'application/javascript'}); @@ -234,6 +245,7 @@ export function initClient() { if (filePath === '/src/rsc-client.js') return; if (filePath === '/src/rsc-server.js') return; if (filePath === '/src/__webpack_shim__.js') return; + if (filePath === '/src/__react_refresh_init__.js') return; userFiles[filePath] = files[filePath]; }); worker.postMessage({ @@ -327,5 +339,33 @@ export function initClient() { Object.keys(clientEntries).forEach(function (moduleId) { evaluateModule(moduleId); }); + + // Register all evaluated components with react-refresh for Fast Refresh. + // This creates stable "component families" so React can preserve state + // across re-evaluations when component identity changes. + Object.keys(globalThis.__webpack_module_cache__).forEach(function ( + moduleId + ) { + var moduleExports = globalThis.__webpack_module_cache__[moduleId]; + var exports = + moduleExports.exports !== undefined + ? moduleExports.exports + : moduleExports; + if (exports && typeof exports === 'object') { + for (var key in exports) { + var exportValue = exports[key]; + if (isLikelyComponentType(exportValue)) { + refreshRegister(exportValue, moduleId + ' %exports% ' + key); + } + } + } + if (typeof exports === 'function' && isLikelyComponentType(exports)) { + refreshRegister(exports, moduleId + ' %exports% default'); + } + }); + + // Tell React about updated component families so it can + // preserve state for components whose implementation changed. + performReactRefresh(); } } diff --git a/src/components/MDX/Sandpack/templateRSC.ts b/src/components/MDX/Sandpack/templateRSC.ts index 5c92d671d97..31528ffbf09 100644 --- a/src/components/MDX/Sandpack/templateRSC.ts +++ b/src/components/MDX/Sandpack/templateRSC.ts @@ -22,6 +22,8 @@ const RSC_SOURCE_FILES = { require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/webpack-shim.js') as string, 'rsc-client': require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/rsc-client.js') as string, + 'react-refresh-init': + require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/__react_refresh_init__.js') as string, 'worker-bundle': `export default ${JSON.stringify( require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/worker-bundle.dist.js') as string )};`, @@ -29,9 +31,25 @@ const RSC_SOURCE_FILES = { require('!raw-loader?esModule=false!../../../../node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js') as string, }; +// Load react-refresh runtime and strip the process.env.NODE_ENV guard +// so it works in Sandpack's bundler which may not replace process.env. +const reactRefreshRaw = + require('!raw-loader?esModule=false!../../../../node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js') as string; + +// Wrap as a CJS module that Sandpack can require. +// Strip the `if (process.env.NODE_ENV !== "production")` guard so the +// runtime always executes inside the sandbox. +const reactRefreshModule = reactRefreshRaw.replace( + /if \(process\.env\.NODE_ENV !== "production"\) \{/, + '{' +); + // Entry point that bootstraps the RSC client pipeline. +// __react_refresh_init__ must be imported BEFORE rsc-client so the +// DevTools hook stub exists before React's renderer loads. const indexEntry = ` import './styles.css'; +import './__react_refresh_init__'; import { initClient } from './rsc-client.js'; initClient(); `.trim(); @@ -54,6 +72,7 @@ export const templateRSC: SandpackFiles = { ...hideFiles({ '/public/index.html': indexHTML, '/src/index.js': indexEntry, + '/src/__react_refresh_init__.js': RSC_SOURCE_FILES['react-refresh-init'], '/src/rsc-client.js': RSC_SOURCE_FILES['rsc-client'], '/src/rsc-server.js': RSC_SOURCE_FILES['worker-bundle'], '/src/__webpack_shim__.js': RSC_SOURCE_FILES['webpack-shim'], @@ -62,6 +81,10 @@ export const templateRSC: SandpackFiles = { '{"name":"react-server-dom-webpack","main":"index.js"}', '/node_modules/react-server-dom-webpack/client.browser.js': RSC_SOURCE_FILES['rsdw-client'], + // react-refresh runtime as a Sandpack local dependency + '/node_modules/react-refresh/package.json': + '{"name":"react-refresh","main":"runtime.js"}', + '/node_modules/react-refresh/runtime.js': reactRefreshModule, '/package.json': JSON.stringify( { name: 'react.dev', From 2bdc76e6500b590c0af307ae90b06322188deaf2 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Thu, 12 Feb 2026 10:55:44 -0500 Subject: [PATCH 5/9] hardening --- .../sandbox-code/src/rsc-client.js | 11 +- .../sandbox-code/src/rsc-server.js | 39 +- .../sandbox-code/src/worker-bundle.dist.js | 4658 +++++++++-------- 3 files changed, 2379 insertions(+), 2329 deletions(-) diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js index 98a25e2d432..5d999383c30 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js @@ -42,7 +42,7 @@ export function initClient() { var worker = new Worker(workerUrl); // Render tracking - var renderRequestId = 0; + var nextStreamId = 0; var chunkControllers = {}; var setCurrentPromise; var firstRender = true; @@ -126,8 +126,8 @@ export function initClient() { function callServer(id, args) { return encodeReply(args).then(function (body) { - renderRequestId++; - var reqId = renderRequestId; + nextStreamId++; + var reqId = nextStreamId; var stream = new ReadableStream({ start: function (controller) { @@ -184,8 +184,8 @@ export function initClient() { delete chunkControllers[id]; }); - renderRequestId++; - var reqId = renderRequestId; + nextStreamId++; + var reqId = nextStreamId; var stream = new ReadableStream({ start: function (controller) { @@ -250,7 +250,6 @@ export function initClient() { }); worker.postMessage({ type: 'deploy', - requestId: ++renderRequestId, files: userFiles, }); } diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js index 8f21c19eecf..4ba54d86ec7 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js @@ -212,9 +212,43 @@ function deploy(files) { module: mainModule.exports, }; + // Collect only client-reachable compiled code. + // Start from 'use client' entries and trace their require() calls. + var clientReachable = {}; + function traceClientDeps(filePath) { + if (clientReachable[filePath]) return; + clientReachable[filePath] = true; + var code = compiled[filePath]; + if (!code) return; + var requireRegex = /require\(["']([^"']+)["']\)/g; + var match; + while ((match = requireRegex.exec(code)) !== null) { + var dep = match[1]; + if ( + dep === 'react' || + dep === 'react/jsx-runtime' || + dep === 'react/jsx-dev-runtime' || + dep.endsWith('.css') + ) + continue; + var resolved = resolveModuleId(filePath, dep); + if (compiled[resolved]) { + traceClientDeps(resolved); + } + } + } + Object.keys(detectedClientFiles).forEach(function (filePath) { + traceClientDeps(filePath); + }); + + var clientCompiled = {}; + Object.keys(clientReachable).forEach(function (filePath) { + clientCompiled[filePath] = compiled[filePath]; + }); + return { type: 'deployed', - compiledClients: compiled, + compiledClients: clientCompiled, clientEntries: detectedClientFiles, }; } @@ -300,20 +334,17 @@ self.onmessage = function (e) { if (result && result.type === 'error') { self.postMessage({ type: 'rsc-error', - requestId: msg.requestId, error: result.error, }); } else if (result) { self.postMessage({ type: 'deploy-result', - requestId: msg.requestId, result: result, }); } } catch (err) { self.postMessage({ type: 'rsc-error', - requestId: msg.requestId, error: String(err), }); } diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js index 5428bbafb77..8f9a9e0949c 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js @@ -125,34 +125,34 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function Zs(e, t, s, i, r) { var a = typeof e; (a === 'undefined' || a === 'boolean') && (e = null); - var p = !1; - if (e === null) p = !0; + var u = !1; + if (e === null) u = !0; else switch (a) { case 'bigint': case 'string': case 'number': - p = !0; + u = !0; break; case 'object': switch (e.$$typeof) { case Jo: case If: - p = !0; + u = !0; break; case Uc: - return (p = e._init), Zs(p(e._payload), t, s, i, r); + return (u = e._init), Zs(u(e._payload), t, s, i, r); } } - if (p) + if (u) return ( (r = r(e)), - (p = i === '' ? '.' + zo(e, 0) : i), + (u = i === '' ? '.' + zo(e, 0) : i), jc(r) ? ((s = ''), - p != null && (s = p.replace(qc, '$&/') + '/'), - Zs(r, t, s, '', function (k) { - return k; + u != null && (s = u.replace(qc, '$&/') + '/'), + Zs(r, t, s, '', function (g) { + return g; })) : r != null && (Zo(r) && @@ -162,19 +162,19 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (r.key == null || (e && e.key === r.key) ? '' : ('' + r.key).replace(qc, '$&/') + '/') + - p + u )), t.push(r)), 1 ); - p = 0; + u = 0; var d = i === '' ? '.' : i + ':'; if (jc(e)) for (var y = 0; y < e.length; y++) - (i = e[y]), (a = d + zo(i, y)), (p += Zs(i, t, s, a, r)); + (i = e[y]), (a = d + zo(i, y)), (u += Zs(i, t, s, a, r)); else if (((y = Of(e)), typeof y == 'function')) for (e = y.call(e), y = 0; !(i = e.next()).done; ) - (i = i.value), (a = d + zo(i, y++)), (p += Zs(i, t, s, a, r)); + (i = i.value), (a = d + zo(i, y++)), (u += Zs(i, t, s, a, r)); else if (a === 'object') { if (typeof e.then == 'function') return Zs(Bf(e), t, s, i, r); throw ( @@ -189,7 +189,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { )) ); } - return p; + return u; } function _r(e, t, s) { if (e == null) return e; @@ -286,10 +286,10 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (t.s === 1) return t.v; if (t.s === 2) throw t.v; try { - var p = e.apply(null, arguments); - return (s = t), (s.s = 1), (s.v = p); + var u = e.apply(null, arguments); + return (s = t), (s.s = 1), (s.v = u); } catch (d) { - throw ((p = t), (p.s = 2), (p.v = d), d); + throw ((u = t), (u.s = 2), (u.v = d), d); } }; }; @@ -299,19 +299,19 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { r = e.key, a = void 0; if (t != null) - for (p in (t.ref !== void 0 && (a = void 0), + for (u in (t.ref !== void 0 && (a = void 0), t.key !== void 0 && (r = '' + t.key), t)) - !Hc.call(t, p) || - p === 'key' || - p === '__self' || - p === '__source' || - (p === 'ref' && t.ref === void 0) || - (i[p] = t[p]); - var p = arguments.length - 2; - if (p === 1) i.children = s; - else if (1 < p) { - for (var d = Array(p), y = 0; y < p; y++) d[y] = arguments[y + 2]; + !Hc.call(t, u) || + u === 'key' || + u === '__self' || + u === '__source' || + (u === 'ref' && t.ref === void 0) || + (i[u] = t[u]); + var u = arguments.length - 2; + if (u === 1) i.children = s; + else if (1 < u) { + for (var d = Array(u), y = 0; y < u; y++) d[y] = arguments[y + 2]; i.children = d; } return Qo(e.type, r, void 0, void 0, a, i); @@ -327,14 +327,14 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { i !== '__self' && i !== '__source' && (r[i] = t[i]); - var p = arguments.length - 2; - if (p === 1) r.children = s; - else if (1 < p) { - for (var d = Array(p), y = 0; y < p; y++) d[y] = arguments[y + 2]; + var u = arguments.length - 2; + if (u === 1) r.children = s; + else if (1 < u) { + for (var d = Array(u), y = 0; y < u; y++) d[y] = arguments[y + 2]; r.children = d; } if (e && e.defaultProps) - for (i in ((p = e.defaultProps), p)) r[i] === void 0 && (r[i] = p[i]); + for (i in ((u = e.defaultProps), u)) r[i] === void 0 && (r[i] = u[i]); return Qo(e, a, void 0, void 0, null, r); }; ht.createRef = function () { @@ -800,11 +800,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var r = i.hints, a = 'L'; if (t === 'image' && s) { - var p = s.imageSrcSet, + var u = s.imageSrcSet, d = s.imageSizes, y = ''; - typeof p == 'string' && p !== '' - ? ((y += '[' + p + ']'), + typeof u == 'string' && u !== '' + ? ((y += '[' + u + ']'), typeof d == 'string' && (y += '[' + d + ']')) : (y += '[][]' + e), (a += '[image]' + y); @@ -1247,22 +1247,22 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (kn(e)) { for (var r = '[', a = 0; a < e.length; a++) { 0 < a && (r += ', '); - var p = e[a]; - (p = typeof p == 'object' && p !== null ? _s(p) : ru(p)), + var u = e[a]; + (u = typeof u == 'object' && u !== null ? _s(u) : ru(u)), '' + a === t - ? ((s = r.length), (i = p.length), (r += p)) + ? ((s = r.length), (i = u.length), (r += u)) : (r = - 10 > p.length && 40 > r.length + p.length - ? r + p + 10 > u.length && 40 > r.length + u.length + ? r + u : r + '...'); } r += ']'; } else if (e.$$typeof === In) r = '<' + Er(e.type) + '/>'; else { if (e.$$typeof === sa) return 'client'; - for (r = '{', a = Object.keys(e), p = 0; p < a.length; p++) { - 0 < p && (r += ', '); - var d = a[p], + for (r = '{', a = Object.keys(e), u = 0; u < a.length; u++) { + 0 < u && (r += ', '); + var d = a[u], y = JSON.stringify(d); (r += ('"' + d + '"' === y ? d : y) + ': '), (y = e[d]), @@ -1295,15 +1295,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function kd(e) { console.error(e); } - function Ru(e, t, s, i, r, a, p, d, y) { + function Ru(e, t, s, i, r, a, u, d, y) { if (Is.A !== null && Is.A !== iu) throw Error( 'Currently React only supports one RSC renderer at a time.' ); Is.A = iu; - var k = new Set(), - A = [], - u = new Set(); + var g = new Set(), + L = [], + p = new Set(); (this.type = e), (this.status = 10), (this.flushScheduled = !1), @@ -1312,9 +1312,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (this.cache = new Map()), (this.cacheController = new AbortController()), (this.pendingChunks = this.nextChunkId = 0), - (this.hints = u), - (this.abortableTasks = k), - (this.pingedTasks = A), + (this.hints = p), + (this.abortableTasks = g), + (this.pingedTasks = L), (this.completedImportChunks = []), (this.completedHintChunks = []), (this.completedRegularChunks = []), @@ -1330,9 +1330,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (this.onError = i === void 0 ? kd : i), (this.onPostpone = r === void 0 ? Cs : r), (this.onAllReady = a), - (this.onFatalError = p), - (e = os(this, t, null, !1, 0, k)), - A.push(e); + (this.onFatalError = u), + (e = os(this, t, null, !1, 0, g)), + L.push(e); } var st = null; function ou(e, t, s) { @@ -1384,54 +1384,54 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); } function vd(e, t, s) { - function i(k) { + function i(g) { if (y.status === 0) - if (k.done) + if (g.done) (y.status = 1), - (k = + (g = y.id.toString(16) + `:C `), - e.completedRegularChunks.push(pn(k)), + e.completedRegularChunks.push(pn(g)), e.abortableTasks.delete(y), e.cacheController.signal.removeEventListener('abort', a), un(e), Or(e); else try { - (y.model = k.value), + (y.model = g.value), e.pendingChunks++, Bu(e, y), un(e), d.read().then(i, r); - } catch (A) { - r(A); + } catch (L) { + r(L); } } - function r(k) { + function r(g) { y.status === 0 && (e.cacheController.signal.removeEventListener('abort', a), - Un(e, y, k), + Un(e, y, g), un(e), - d.cancel(k).then(r, r)); + d.cancel(g).then(r, r)); } function a() { if (y.status === 0) { - var k = e.cacheController.signal; - k.removeEventListener('abort', a), - (k = k.reason), + var g = e.cacheController.signal; + g.removeEventListener('abort', a), + (g = g.reason), e.type === 21 ? (e.abortableTasks.delete(y), ri(y), oi(y, e)) - : (Un(e, y, k), un(e)), - d.cancel(k).then(r, r); + : (Un(e, y, g), un(e)), + d.cancel(g).then(r, r); } } - var p = s.supportsBYOB; - if (p === void 0) + var u = s.supportsBYOB; + if (u === void 0) try { - s.getReader({mode: 'byob'}).releaseLock(), (p = !0); + s.getReader({mode: 'byob'}).releaseLock(), (u = !0); } catch { - p = !1; + u = !1; } var d = s.getReader(), y = os( @@ -1447,7 +1447,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (t = y.id.toString(16) + ':' + - (p ? 'r' : 'R') + + (u ? 'r' : 'R') + ` `), e.completedRegularChunks.push(pn(t)), @@ -1461,26 +1461,26 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (d.status === 0) if (y.done) { if (((d.status = 1), y.value === void 0)) - var k = + var g = d.id.toString(16) + `:C `; else try { - var A = bs(e, y.value, 0); - k = + var L = bs(e, y.value, 0); + g = d.id.toString(16) + ':C' + - Es(Ct(A)) + + Es(Ct(L)) + ` `; - } catch (u) { - a(u); + } catch (p) { + a(p); return; } - e.completedRegularChunks.push(pn(k)), + e.completedRegularChunks.push(pn(g)), e.abortableTasks.delete(d), - e.cacheController.signal.removeEventListener('abort', p), + e.cacheController.signal.removeEventListener('abort', u), un(e), Or(e); } else @@ -1490,26 +1490,26 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { Bu(e, d), un(e), i.next().then(r, a); - } catch (u) { - a(u); + } catch (p) { + a(p); } } function a(y) { d.status === 0 && - (e.cacheController.signal.removeEventListener('abort', p), + (e.cacheController.signal.removeEventListener('abort', u), Un(e, d, y), un(e), typeof i.throw == 'function' && i.throw(y).then(a, a)); } - function p() { + function u() { if (d.status === 0) { var y = e.cacheController.signal; - y.removeEventListener('abort', p); - var k = y.reason; + y.removeEventListener('abort', u); + var g = y.reason; e.type === 21 ? (e.abortableTasks.delete(d), ri(d), oi(d, e)) : (Un(e, d, y.reason), un(e)), - typeof i.throw == 'function' && i.throw(k).then(a, a); + typeof i.throw == 'function' && i.throw(g).then(a, a); } } s = s === i; @@ -1530,7 +1530,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ` `), e.completedRegularChunks.push(pn(t)), - e.cacheController.signal.addEventListener('abort', p), + e.cacheController.signal.addEventListener('abort', u), i.next().then(r, a), Ct(d.id) ); @@ -1661,8 +1661,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (s != null && typeof s == 'object' && s.$$typeof !== rs) switch (s.$$typeof) { case $i: - var p = s._init; - if (((s = p(s._payload)), e.status === 12)) throw null; + var u = s._init; + if (((s = u(s._payload)), e.status === 12)) throw null; return ia(e, t, s, i, r, a); case wu: return lu(e, t, i, s.render, a); @@ -1672,8 +1672,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { else typeof s == 'string' && ((r = t.formatContext), - (p = od(r, s, a)), - r !== p && a.children != null && bs(e, a.children, p)); + (u = od(r, s, a)), + r !== u && a.children != null && bs(e, a.children, u)); return ( (e = i), (i = t.keyPath), @@ -1698,14 +1698,14 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } function os(e, t, s, i, r, a) { e.pendingChunks++; - var p = e.nextChunkId++; + var u = e.nextChunkId++; typeof t != 'object' || t === null || s !== null || i || - e.writtenObjects.set(t, Ct(p)); + e.writtenObjects.set(t, Ct(u)); var d = { - id: p, + id: u, status: 0, model: t, keyPath: s, @@ -1714,13 +1714,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ping: function () { return Vi(e, d); }, - toJSON: function (y, k) { + toJSON: function (y, g) { is += y.length; - var A = d.keyPath, - u = d.implicitSlot; + var L = d.keyPath, + p = d.implicitSlot; try { - var f = qi(e, d, this, y, k); - } catch (g) { + var f = qi(e, d, this, y, g); + } catch (x) { if ( ((y = d.model), (y = @@ -1731,11 +1731,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ) (d.status = 3), e.type === 21 - ? ((A = e.nextChunkId++), (A = y ? ws(A) : Ct(A)), (f = A)) - : ((A = e.fatalError), (f = y ? ws(A) : Ct(A))); + ? ((L = e.nextChunkId++), (L = y ? ws(L) : Ct(L)), (f = L)) + : ((L = e.fatalError), (f = y ? ws(L) : Ct(L))); else if ( - ((k = g === pa ? Eu() : g), - typeof k == 'object' && k !== null && typeof k.then == 'function') + ((g = x === pa ? Eu() : x), + typeof g == 'object' && g !== null && typeof g.then == 'function') ) { f = os( e, @@ -1745,20 +1745,20 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { d.formatContext, e.abortableTasks ); - var x = f.ping; - k.then(x, x), + var v = f.ping; + g.then(v, v), (f.thenableState = Au()), - (d.keyPath = A), - (d.implicitSlot = u), + (d.keyPath = L), + (d.implicitSlot = p), (f = y ? ws(f.id) : Ct(f.id)); } else - (d.keyPath = A), - (d.implicitSlot = u), + (d.keyPath = L), + (d.implicitSlot = p), e.pendingChunks++, - (A = e.nextChunkId++), - (u = Kn(e, k, d)), - Rr(e, A, u), - (f = y ? ws(A) : Ct(A)); + (L = e.nextChunkId++), + (p = Kn(e, g, d)), + Rr(e, L, p), + (f = y ? ws(L) : Ct(L)); } return f; }, @@ -1787,53 +1787,53 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function pu(e, t, s, i) { var r = i.$$async ? i.$$id + '#async' : i.$$id, a = e.writtenClientReferences, - p = a.get(r); - if (p !== void 0) return t[0] === In && s === '1' ? ws(p) : Ct(p); + u = a.get(r); + if (u !== void 0) return t[0] === In && s === '1' ? ws(u) : Ct(u); try { var d = e.bundlerConfig, y = i.$$id; - p = ''; - var k = d[y]; - if (k) p = k.name; + u = ''; + var g = d[y]; + if (g) u = g.name; else { - var A = y.lastIndexOf('#'); - if ((A !== -1 && ((p = y.slice(A + 1)), (k = d[y.slice(0, A)])), !k)) + var L = y.lastIndexOf('#'); + if ((L !== -1 && ((u = y.slice(L + 1)), (g = d[y.slice(0, L)])), !g)) throw Error( 'Could not find the module "' + y + '" in the React Client Manifest. This is probably a bug in the React Server Components bundler.' ); } - if (k.async === !0 && i.$$async === !0) + if (g.async === !0 && i.$$async === !0) throw Error( 'The module "' + y + '" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.' ); - var u = - k.async === !0 || i.$$async === !0 - ? [k.id, k.chunks, p, 1] - : [k.id, k.chunks, p]; + var p = + g.async === !0 || i.$$async === !0 + ? [g.id, g.chunks, u, 1] + : [g.id, g.chunks, u]; e.pendingChunks++; var f = e.nextChunkId++, - x = Es(u), - g = + v = Es(p), + x = f.toString(16) + ':I' + - x + + v + ` `, - S = pn(g); + w = pn(x); return ( - e.completedImportChunks.push(S), + e.completedImportChunks.push(w), a.set(r, f), t[0] === In && s === '1' ? ws(f) : Ct(f) ); - } catch (E) { + } catch (S) { return ( e.pendingChunks++, (t = e.nextChunkId++), - (s = Kn(e, E, null)), + (s = Kn(e, S, null)), Rr(e, t, s), Ct(t) ); @@ -1849,36 +1849,36 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } function Cd(e, t) { function s(y) { - if (p.status === 0) + if (u.status === 0) if (y.done) - e.cacheController.signal.removeEventListener('abort', r), Vi(e, p); + e.cacheController.signal.removeEventListener('abort', r), Vi(e, u); else return a.push(y.value), d.read().then(s).catch(i); } function i(y) { - p.status === 0 && + u.status === 0 && (e.cacheController.signal.removeEventListener('abort', r), - Un(e, p, y), + Un(e, u, y), un(e), d.cancel(y).then(i, i)); } function r() { - if (p.status === 0) { + if (u.status === 0) { var y = e.cacheController.signal; y.removeEventListener('abort', r), (y = y.reason), e.type === 21 - ? (e.abortableTasks.delete(p), ri(p), oi(p, e)) - : (Un(e, p, y), un(e)), + ? (e.abortableTasks.delete(u), ri(u), oi(u, e)) + : (Un(e, u, y), un(e)), d.cancel(y).then(i, i); } } var a = [t.type], - p = os(e, a, null, !1, 0, e.abortableTasks), + u = os(e, a, null, !1, 0, e.abortableTasks), d = t.stream().getReader(); return ( e.cacheController.signal.addEventListener('abort', r), d.read().then(s).catch(i), - '$B' + p.id.toString(16) + '$B' + u.id.toString(16) ); } var ss = !1; @@ -1889,16 +1889,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { switch (r.$$typeof) { case In: var a = null, - p = e.writtenObjects; + u = e.writtenObjects; if (t.keyPath === null && !t.implicitSlot) { - var d = p.get(r); + var d = u.get(r); if (d !== void 0) if (ss === r) ss = null; else return d; else i.indexOf(':') === -1 && - ((s = p.get(s)), - s !== void 0 && ((a = s + ':' + i), p.set(r, a))); + ((s = u.get(s)), + s !== void 0 && ((a = s + ':' + i), u.set(r, a))); } return 3200 < is ? uu(e, t) @@ -1908,7 +1908,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { typeof e == 'object' && e !== null && a !== null && - (p.has(e) || p.set(e, a)), + (u.has(e) || u.set(e, a)), e); case $i: if (3200 < is) return uu(e, t); @@ -1933,22 +1933,22 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ) return '$T' + a; if ( - ((a = e.writtenObjects), (p = a.get(r)), typeof r.then == 'function') + ((a = e.writtenObjects), (u = a.get(r)), typeof r.then == 'function') ) { - if (p !== void 0) { + if (u !== void 0) { if (t.keyPath !== null || t.implicitSlot) return '$@' + ou(e, t, r).toString(16); if (ss === r) ss = null; - else return p; + else return u; } return (e = '$@' + ou(e, t, r).toString(16)), a.set(r, e), e; } - if (p !== void 0) + if (u !== void 0) if (ss === r) { - if (p !== Ct(t.id)) return p; + if (u !== Ct(t.id)) return u; ss = null; - } else return p; - else if (i.indexOf(':') === -1 && ((p = a.get(s)), p !== void 0)) { + } else return u; + else if (i.indexOf(':') === -1 && ((u = a.get(s)), u !== void 0)) { if (((d = i), kn(s) && s[0] === In)) switch (i) { case '1': @@ -1963,7 +1963,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { case '4': d = '_owner'; } - a.set(r, p + ':' + d); + a.set(r, u + ':' + d); } if (kn(r)) return cu(e, t, r); if (r instanceof Map) @@ -2232,16 +2232,16 @@ If you need interactivity, consider converting part of this to a Client Componen ha(t), fa(t, e, a); } else { - var p = y === pa ? Eu() : y; + var u = y === pa ? Eu() : y; if ( - typeof p == 'object' && - p !== null && - typeof p.then == 'function' + typeof u == 'object' && + u !== null && + typeof u.then == 'function' ) { (t.status = 0), (t.thenableState = Au()); var d = t.ping; - p.then(d, d); - } else Un(e, t, p); + u.then(d, d); + } else Un(e, t, u); } } finally { is = s; @@ -2299,9 +2299,9 @@ If you need interactivity, consider converting part of this to a Client Componen var a = e.completedRegularChunks; for (i = 0; i < a.length; i++) e.pendingChunks--, Cr(t, a[i]); a.splice(0, i); - var p = e.completedErrorChunks; - for (i = 0; i < p.length; i++) e.pendingChunks--, Cr(t, p[i]); - p.splice(0, i); + var u = e.completedErrorChunks; + for (i = 0; i < u.length; i++) e.pendingChunks--, Cr(t, u[i]); + u.splice(0, i); } finally { (e.flushScheduled = !1), ln && @@ -2414,8 +2414,8 @@ If you need interactivity, consider converting part of this to a Client Componen }); } else { - var p = e.onAllReady; - p(), ai(e); + var u = e.onAllReady; + u(), ai(e); } } catch (d) { Kn(e, d, null), Ki(e, d); @@ -2456,15 +2456,15 @@ If you need interactivity, consider converting part of this to a Client Componen for (var t = e[1], s = [], i = 0; i < t.length; ) { var r = t[i++], a = t[i++], - p = wr.get(r); - p === void 0 + u = wr.get(r); + u === void 0 ? (Ku.set(r, a), (a = __webpack_chunk_load__(r)), s.push(a), - (p = wr.set.bind(wr, r, null)), - a.then(p, Id), + (u = wr.set.bind(wr, r, null)), + a.then(u, Id), wr.set(r, a)) - : p !== null && s.push(p); + : u !== null && s.push(u); } return e.length === 4 ? s.length === 0 @@ -2602,21 +2602,21 @@ If you need interactivity, consider converting part of this to a Client Componen ); } function Ad(e, t, s, i) { - function r(A) { - var u = d.reason, + function r(L) { + var p = d.reason, f = d; (f.status = 'rejected'), (f.value = null), - (f.reason = A), - u !== null && da(e, u, A), - Pr(e, k, A); + (f.reason = L), + p !== null && da(e, p, L), + Pr(e, g, L); } var a = t.id; if (typeof a != 'string' || i === 'then') return null; - var p = t.$$promise; - if (p !== void 0) - return p.status === 'fulfilled' - ? ((p = p.value), i === '__proto__' ? null : (s[i] = p)) + var u = t.$$promise; + if (u !== void 0) + return u.status === 'fulfilled' + ? ((u = u.value), i === '__proto__' ? null : (s[i] = u)) : (Ye ? ((a = Ye), a.deps++) : (a = Ye = @@ -2627,44 +2627,44 @@ If you need interactivity, consider converting part of this to a Client Componen deps: 1, errored: !1, }), - p.then(aa.bind(null, e, a, s, i), Pr.bind(null, e, a)), + u.then(aa.bind(null, e, a, s, i), Pr.bind(null, e, a)), null); var d = new Ot('blocked', null, null); t.$$promise = d; var y = $u(e._bundlerConfig, a); - if (((p = t.bound), (a = qu(y)))) - p instanceof Ot && (a = Promise.all([a, p])); - else if (p instanceof Ot) a = Promise.resolve(p); - else return (p = Fi(y)), (a = d), (a.status = 'fulfilled'), (a.value = p); + if (((u = t.bound), (a = qu(y)))) + u instanceof Ot && (a = Promise.all([a, u])); + else if (u instanceof Ot) a = Promise.resolve(u); + else return (u = Fi(y)), (a = d), (a.status = 'fulfilled'), (a.value = u); if (Ye) { - var k = Ye; - k.deps++; + var g = Ye; + g.deps++; } else - k = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + g = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; return ( a.then(function () { - var A = Fi(y); + var L = Fi(y); if (t.bound) { - var u = t.bound.value; - if (((u = kn(u) ? u.slice(0) : []), 1e3 < u.length)) { + var p = t.bound.value; + if (((p = kn(p) ? p.slice(0) : []), 1e3 < p.length)) { r( Error( 'Server Function has too many bound arguments. Received ' + - u.length + + p.length + ' but the limit is 1000.' ) ); return; } - u.unshift(null), (A = A.bind.apply(A, u)); + p.unshift(null), (L = L.bind.apply(L, p)); } - u = d.value; + p = d.value; var f = d; (f.status = 'fulfilled'), - (f.value = A), + (f.value = L), (f.reason = null), - u !== null && Mr(e, u, A, f), - aa(e, k, s, i, A); + p !== null && Mr(e, p, L, f), + aa(e, g, s, i, L); }, r), null ); @@ -2679,11 +2679,11 @@ If you need interactivity, consider converting part of this to a Client Componen kn(i)) ) { if (a === null) { - var p = {count: 0, fork: !1}; - e._rootArrayContexts.set(i, p); - } else p = a; + var u = {count: 0, fork: !1}; + e._rootArrayContexts.set(i, u); + } else u = a; for ( - 1 < i.length && (p.fork = !0), $n(p, i.length + 1, e), t = 0; + 1 < i.length && (u.fork = !0), $n(u, i.length + 1, e), t = 0; t < i.length; t++ ) @@ -2693,19 +2693,19 @@ If you need interactivity, consider converting part of this to a Client Componen '' + t, i[t], r !== void 0 ? r + ':' + t : void 0, - p + u ); } else - for (p in i) - Nr.call(i, p) && - (p === '__proto__' - ? delete i[p] + for (u in i) + Nr.call(i, u) && + (u === '__proto__' + ? delete i[u] : ((t = - r !== void 0 && p.indexOf(':') === -1 - ? r + ':' + p + r !== void 0 && u.indexOf(':') === -1 + ? r + ':' + u : void 0), - (t = oa(e, i, p, i[p], t, null)), - t !== void 0 ? (i[p] = t) : delete i[p])); + (t = oa(e, i, u, i[u], t, null)), + t !== void 0 ? (i[u] = t) : delete i[u])); return i; } function $n(e, t, s) { @@ -2726,23 +2726,23 @@ If you need interactivity, consider converting part of this to a Client Componen try { var a = JSON.parse(r); r = {count: 0, fork: !1}; - var p = oa(i, {'': a}, '', a, s, r), + var u = oa(i, {'': a}, '', a, s, r), d = e.value; if (d !== null) for (e.value = null, e.reason = null, a = 0; a < d.length; a++) { var y = d[a]; - typeof y == 'function' ? y(p) : zu(i, y, p, r); + typeof y == 'function' ? y(u) : zu(i, y, u, r); } if (Ye !== null) { if (Ye.errored) throw Ye.reason; if (0 < Ye.deps) { - (Ye.value = p), (Ye.reason = r), (Ye.chunk = e); + (Ye.value = u), (Ye.reason = r), (Ye.chunk = e); return; } } - (e.status = 'fulfilled'), (e.value = p), (e.reason = r); - } catch (k) { - (e.status = 'rejected'), (e.reason = k); + (e.status = 'fulfilled'), (e.value = u), (e.reason = r); + } catch (g) { + (e.status = 'rejected'), (e.reason = g); } finally { Ye = t; } @@ -2777,12 +2777,12 @@ If you need interactivity, consider converting part of this to a Client Componen function zu(e, t, s, i) { var r = t.handler, a = t.parentObject, - p = t.key, + u = t.key, d = t.map, y = t.path; try { - for (var k = 0, A = e._rootArrayContexts, u = 1; u < y.length; u++) { - var f = y[u]; + for (var g = 0, L = e._rootArrayContexts, p = 1; p < y.length; p++) { + var f = y[p]; if ( typeof s != 'object' || s === null || @@ -2790,24 +2790,24 @@ If you need interactivity, consider converting part of this to a Client Componen !Nr.call(s, f) ) throw Error('Invalid reference.'); - if (((s = s[f]), kn(s))) (k = 0), (i = A.get(s) || i); - else if (((i = null), typeof s == 'string')) k = s.length; + if (((s = s[f]), kn(s))) (g = 0), (i = L.get(s) || i); + else if (((i = null), typeof s == 'string')) g = s.length; else if (typeof s == 'bigint') { - var x = Math.abs(Number(s)); - k = x === 0 ? 1 : Math.floor(Math.log10(x)) + 1; - } else k = ArrayBuffer.isView(s) ? s.byteLength : 0; + var v = Math.abs(Number(s)); + g = v === 0 ? 1 : Math.floor(Math.log10(v)) + 1; + } else g = ArrayBuffer.isView(s) ? s.byteLength : 0; } - var g = d(e, s, a, p), - S = t.arrayRoot; - S !== null && + var x = d(e, s, a, u), + w = t.arrayRoot; + w !== null && (i !== null - ? (i.fork && (S.fork = !0), $n(S, i.count, e)) - : 0 < k && $n(S, k, e)); - } catch (E) { - Pr(e, r, E); + ? (i.fork && (w.fork = !0), $n(w, i.count, e)) + : 0 < g && $n(w, g, e)); + } catch (S) { + Pr(e, r, S); return; } - aa(e, r, a, p, g); + aa(e, r, a, u, x); } function aa(e, t, s, i, r) { i !== '__proto__' && (s[i] = r), @@ -2833,37 +2833,37 @@ If you need interactivity, consider converting part of this to a Client Componen } function Di(e, t, s, i, r, a) { t = t.split(':'); - var p = parseInt(t[0], 16), - d = Vr(e, p); + var u = parseInt(t[0], 16), + d = Vr(e, u); switch (d.status) { case 'resolved_model': Br(d); } switch (d.status) { case 'fulfilled': - (p = d.value), (d = d.reason); - for (var y = 0, k = e._rootArrayContexts, A = 1; A < t.length; A++) { + (u = d.value), (d = d.reason); + for (var y = 0, g = e._rootArrayContexts, L = 1; L < t.length; L++) { if ( - ((y = t[A]), - typeof p != 'object' || - p === null || - (ii(p) !== Uu && ii(p) !== Hu) || - !Nr.call(p, y)) + ((y = t[L]), + typeof u != 'object' || + u === null || + (ii(u) !== Uu && ii(u) !== Hu) || + !Nr.call(u, y)) ) throw Error('Invalid reference.'); - (p = p[y]), - kn(p) - ? ((y = 0), (d = k.get(p) || d)) + (u = u[y]), + kn(u) + ? ((y = 0), (d = g.get(u) || d)) : ((d = null), - typeof p == 'string' - ? (y = p.length) - : typeof p == 'bigint' - ? ((y = Math.abs(Number(p))), + typeof u == 'string' + ? (y = u.length) + : typeof u == 'bigint' + ? ((y = Math.abs(Number(u))), (y = y === 0 ? 1 : Math.floor(Math.log10(y)) + 1)) - : (y = ArrayBuffer.isView(p) ? p.byteLength : 0)); + : (y = ArrayBuffer.isView(u) ? u.byteLength : 0)); } return ( - (s = a(e, p, s, i)), + (s = a(e, u, s, i)), r !== null && (d !== null ? (d.fork && (r.fork = !0), $n(r, d.count, e)) @@ -2929,12 +2929,12 @@ If you need interactivity, consider converting part of this to a Client Componen function Od(e, t, s, i) { return i === 'then' && typeof t == 'function' ? null : t; } - function Jt(e, t, s, i, r, a, p) { - function d(A) { - if (!k.errored) { - (k.errored = !0), (k.value = null), (k.reason = A); - var u = k.chunk; - u !== null && u.status === 'blocked' && Fr(e, u, A); + function Jt(e, t, s, i, r, a, u) { + function d(L) { + if (!g.errored) { + (g.errored = !0), (g.value = null), (g.reason = L); + var p = g.chunk; + p !== null && p.status === 'blocked' && Fr(e, p, L); } } t = parseInt(t.slice(2), 16); @@ -2949,31 +2949,31 @@ If you need interactivity, consider converting part of this to a Client Componen (t = e._formData.get(y).arrayBuffer()), Ye) ) { - var k = Ye; - k.deps++; + var g = Ye; + g.deps++; } else - k = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + g = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; return ( - t.then(function (A) { + t.then(function (L) { try { - p !== null && $n(p, A.byteLength, e); - var u = s === ArrayBuffer ? A : new s(A); - y !== '__proto__' && (r[a] = u), - a === '' && k.value === null && (k.value = u); + u !== null && $n(u, L.byteLength, e); + var p = s === ArrayBuffer ? L : new s(L); + y !== '__proto__' && (r[a] = p), + a === '' && g.value === null && (g.value = p); } catch (f) { d(f); return; } - k.deps--, - k.deps === 0 && - ((A = k.chunk), - A !== null && - A.status === 'blocked' && - ((u = A.value), - (A.status = 'fulfilled'), - (A.value = k.value), - (A.reason = null), - u !== null && Mr(e, u, k.value, A))); + g.deps--, + g.deps === 0 && + ((L = g.chunk), + L !== null && + L.status === 'blocked' && + ((p = L.value), + (L.status = 'fulfilled'), + (L.value = g.value), + (L.reason = null), + p !== null && Mr(e, p, g.value, L))); }, d), null ); @@ -2995,37 +2995,37 @@ If you need interactivity, consider converting part of this to a Client Componen : i.enqueueModel(r)); } function du(e, t, s) { - function i(k) { - s !== 'bytes' || ArrayBuffer.isView(k) - ? r.enqueue(k) + function i(g) { + s !== 'bytes' || ArrayBuffer.isView(g) + ? r.enqueue(g) : y.error(Error('Invalid data for bytes stream.')); } if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) throw Error('Already initialized stream.'); var r = null, a = !1, - p = new ReadableStream({ + u = new ReadableStream({ type: s, - start: function (k) { - r = k; + start: function (g) { + r = g; }, }), d = null, y = { - enqueueModel: function (k) { + enqueueModel: function (g) { if (d === null) { - var A = Wu(e, k, -1); - Br(A), - A.status === 'fulfilled' - ? i(A.value) - : (A.then(i, y.error), (d = A)); + var L = Wu(e, g, -1); + Br(L), + L.status === 'fulfilled' + ? i(L.value) + : (L.then(i, y.error), (d = L)); } else { - A = d; - var u = new Ot('pending', null, null); - u.then(i, y.error), - (d = u), - A.then(function () { - d === u && (d = null), Gu(e, u, k, -1); + L = d; + var p = new Ot('pending', null, null); + p.then(i, y.error), + (d = p), + L.then(function () { + d === p && (d = null), Gu(e, p, g, -1); }); } }, @@ -3033,26 +3033,26 @@ If you need interactivity, consider converting part of this to a Client Componen if (!a) if (((a = !0), d === null)) r.close(); else { - var k = d; + var g = d; (d = null), - k.then(function () { + g.then(function () { return r.close(); }); } }, - error: function (k) { + error: function (g) { if (!a) - if (((a = !0), d === null)) r.error(k); + if (((a = !0), d === null)) r.error(g); else { - var A = d; + var L = d; (d = null), - A.then(function () { - return r.error(k); + L.then(function () { + return r.error(g); }); } }, }; - return Xu(e, t, p, y), p; + return Xu(e, t, u, y), u; } function ma(e) { this.next = e; @@ -3067,10 +3067,10 @@ If you need interactivity, consider converting part of this to a Client Componen var i = [], r = !1, a = 0, - p = {}; + u = {}; return ( - (p = - ((p[Ss] = function () { + (u = + ((u[Ss] = function () { var d = 0; return new ma(function (y) { if (y !== void 0) @@ -3085,8 +3085,8 @@ If you need interactivity, consider converting part of this to a Client Componen return i[d++]; }); }), - p)), - (s = s ? p[Ss]() : p), + u)), + (s = s ? u[Ss]() : u), Xu(e, t, s, { enqueueModel: function (d) { a === i.length ? (i[a] = fu(e, d, !1)) : ea(e, i[a], d, !1), a++; @@ -3148,11 +3148,11 @@ If you need interactivity, consider converting part of this to a Client Componen ) if (((r = a[i]), r.startsWith(t))) { for ( - var p = e.getAll(r), d = r.slice(t.length), y = 0; - y < p.length; + var u = e.getAll(r), d = r.slice(t.length), y = 0; + y < u.length; y++ ) - s.append(d, p[y]); + s.append(d, u[y]); e.delete(r); } return s; @@ -3290,18 +3290,18 @@ If you need interactivity, consider converting part of this to a Client Componen i = null, r = new Set(); return ( - e.forEach(function (a, p) { - p.startsWith('$ACTION_') - ? p.startsWith('$ACTION_REF_') - ? r.has(p) || - (r.add(p), - (a = '$ACTION_' + p.slice(12) + ':'), + e.forEach(function (a, u) { + u.startsWith('$ACTION_') + ? u.startsWith('$ACTION_REF_') + ? r.has(u) || + (r.add(u), + (a = '$ACTION_' + u.slice(12) + ':'), (a = Qu(e, t, a)), (i = Tu(t, a))) - : p.startsWith('$ACTION_ID_') && - !r.has(p) && - (r.add(p), (a = p.slice(11)), (i = Tu(t, {id: a, bound: null}))) - : s.append(p, a); + : u.startsWith('$ACTION_ID_') && + !r.has(u) && + (r.add(u), (a = u.slice(11)), (i = Tu(t, {id: a, bound: null}))) + : s.append(u, a); }), i === null ? null @@ -3315,16 +3315,16 @@ If you need interactivity, consider converting part of this to a Client Componen if (typeof i != 'string') return Promise.resolve(null); var r = null; if ( - (t.forEach(function (p, d) { + (t.forEach(function (u, d) { d.startsWith('$ACTION_REF_') && - ((p = '$ACTION_' + d.slice(12) + ':'), (r = Qu(t, s, p))); + ((u = '$ACTION_' + d.slice(12) + ':'), (r = Qu(t, s, u))); }), r === null) ) return Promise.resolve(null); var a = r.id; - return Promise.resolve(r.bound).then(function (p) { - return p === null ? null : [e, i, a, p.length - 1]; + return Promise.resolve(r.bound).then(function (u) { + return u === null ? null : [e, i, a, u.length - 1]; }); }; En.decodeReply = function (e, t, s) { @@ -3357,11 +3357,11 @@ If you need interactivity, consider converting part of this to a Client Componen var y = new ReadableStream( { type: 'bytes', - pull: function (k) { - ju(a, k); + pull: function (g) { + ju(a, g); }, - cancel: function (k) { - (a.destination = null), si(a, k); + cancel: function (g) { + (a.destination = null), si(a, g); }, }, {highWaterMark: 0} @@ -3373,13 +3373,13 @@ If you need interactivity, consider converting part of this to a Client Componen s ? s.temporaryReferences : void 0 ); if (s && s.signal) { - var p = s.signal; - if (p.aborted) si(a, p.reason); + var u = s.signal; + if (u.aborted) si(a, u.reason); else { var d = function () { - si(a, p.reason), p.removeEventListener('abort', d); + si(a, u.reason), u.removeEventListener('abort', d); }; - p.addEventListener('abort', d); + u.addEventListener('abort', d); } } Vu(a); @@ -3425,11 +3425,11 @@ If you need interactivity, consider converting part of this to a Client Componen start: function () { Vu(i); }, - pull: function (p) { - ju(i, p); + pull: function (u) { + ju(i, u); }, - cancel: function (p) { - (i.destination = null), si(i, p); + cancel: function (u) { + (i.destination = null), si(i, u); }, }, {highWaterMark: 0} @@ -3463,33 +3463,33 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._as = r)] = '_as'; let a = r + 1; e[(e._assert = a)] = '_assert'; - let p = a + 1; - e[(e._asserts = p)] = '_asserts'; - let d = p + 1; + let u = a + 1; + e[(e._asserts = u)] = '_asserts'; + let d = u + 1; e[(e._async = d)] = '_async'; let y = d + 1; e[(e._await = y)] = '_await'; - let k = y + 1; - e[(e._checks = k)] = '_checks'; - let A = k + 1; - e[(e._constructor = A)] = '_constructor'; - let u = A + 1; - e[(e._declare = u)] = '_declare'; - let f = u + 1; + let g = y + 1; + e[(e._checks = g)] = '_checks'; + let L = g + 1; + e[(e._constructor = L)] = '_constructor'; + let p = L + 1; + e[(e._declare = p)] = '_declare'; + let f = p + 1; e[(e._enum = f)] = '_enum'; - let x = f + 1; - e[(e._exports = x)] = '_exports'; - let g = x + 1; - e[(e._from = g)] = '_from'; - let S = g + 1; - e[(e._get = S)] = '_get'; - let E = S + 1; - e[(e._global = E)] = '_global'; - let L = E + 1; - e[(e._implements = L)] = '_implements'; - let H = L + 1; - e[(e._infer = H)] = '_infer'; - let D = H + 1; + let v = f + 1; + e[(e._exports = v)] = '_exports'; + let x = v + 1; + e[(e._from = x)] = '_from'; + let w = x + 1; + e[(e._get = w)] = '_get'; + let S = w + 1; + e[(e._global = S)] = '_global'; + let A = S + 1; + e[(e._implements = A)] = '_implements'; + let U = A + 1; + e[(e._infer = U)] = '_infer'; + let D = U + 1; e[(e._interface = D)] = '_interface'; let c = D + 1; e[(e._is = c)] = '_is'; @@ -3551,32 +3551,32 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.IS_RIGHT_ASSOCIATIVE = r)] = 'IS_RIGHT_ASSOCIATIVE'; let a = 128; e[(e.IS_PREFIX = a)] = 'IS_PREFIX'; - let p = 256; - e[(e.IS_POSTFIX = p)] = 'IS_POSTFIX'; + let u = 256; + e[(e.IS_POSTFIX = u)] = 'IS_POSTFIX'; let d = 512; e[(e.IS_EXPRESSION_START = d)] = 'IS_EXPRESSION_START'; let y = 512; e[(e.num = y)] = 'num'; - let k = 1536; - e[(e.bigint = k)] = 'bigint'; - let A = 2560; - e[(e.decimal = A)] = 'decimal'; - let u = 3584; - e[(e.regexp = u)] = 'regexp'; + let g = 1536; + e[(e.bigint = g)] = 'bigint'; + let L = 2560; + e[(e.decimal = L)] = 'decimal'; + let p = 3584; + e[(e.regexp = p)] = 'regexp'; let f = 4608; e[(e.string = f)] = 'string'; - let x = 5632; - e[(e.name = x)] = 'name'; - let g = 6144; - e[(e.eof = g)] = 'eof'; - let S = 7680; - e[(e.bracketL = S)] = 'bracketL'; - let E = 8192; - e[(e.bracketR = E)] = 'bracketR'; - let L = 9728; - e[(e.braceL = L)] = 'braceL'; - let H = 10752; - e[(e.braceBarL = H)] = 'braceBarL'; + let v = 5632; + e[(e.name = v)] = 'name'; + let x = 6144; + e[(e.eof = x)] = 'eof'; + let w = 7680; + e[(e.bracketL = w)] = 'bracketL'; + let S = 8192; + e[(e.bracketR = S)] = 'bracketR'; + let A = 9728; + e[(e.braceL = A)] = 'braceL'; + let U = 10752; + e[(e.braceBarL = U)] = 'braceBarL'; let D = 11264; e[(e.braceR = D)] = 'braceR'; let c = 12288; @@ -4030,20 +4030,20 @@ If you need interactivity, consider converting part of this to a Client Componen }; Ui.Scope = ya; var $r = class { - constructor(t, s, i, r, a, p, d, y, k, A, u, f, x) { + constructor(t, s, i, r, a, u, d, y, g, L, p, f, v) { (this.potentialArrowAt = t), (this.noAnonFunctionType = s), (this.inDisallowConditionalTypesContext = i), (this.tokensLength = r), (this.scopesLength = a), - (this.pos = p), + (this.pos = u), (this.type = d), (this.contextualKeyword = y), - (this.start = k), - (this.end = A), - (this.isType = u), + (this.start = g), + (this.end = L), + (this.isType = p), (this.scopeDepth = f), - (this.error = x); + (this.error = v); } }; Ui.StateSnapshot = $r; @@ -4152,32 +4152,32 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.carriageReturn = r)] = 'carriageReturn'; let a = 14; e[(e.shiftOut = a)] = 'shiftOut'; - let p = 32; - e[(e.space = p)] = 'space'; + let u = 32; + e[(e.space = u)] = 'space'; let d = 33; e[(e.exclamationMark = d)] = 'exclamationMark'; let y = 34; e[(e.quotationMark = y)] = 'quotationMark'; - let k = 35; - e[(e.numberSign = k)] = 'numberSign'; - let A = 36; - e[(e.dollarSign = A)] = 'dollarSign'; - let u = 37; - e[(e.percentSign = u)] = 'percentSign'; + let g = 35; + e[(e.numberSign = g)] = 'numberSign'; + let L = 36; + e[(e.dollarSign = L)] = 'dollarSign'; + let p = 37; + e[(e.percentSign = p)] = 'percentSign'; let f = 38; e[(e.ampersand = f)] = 'ampersand'; - let x = 39; - e[(e.apostrophe = x)] = 'apostrophe'; - let g = 40; - e[(e.leftParenthesis = g)] = 'leftParenthesis'; - let S = 41; - e[(e.rightParenthesis = S)] = 'rightParenthesis'; - let E = 42; - e[(e.asterisk = E)] = 'asterisk'; - let L = 43; - e[(e.plusSign = L)] = 'plusSign'; - let H = 44; - e[(e.comma = H)] = 'comma'; + let v = 39; + e[(e.apostrophe = v)] = 'apostrophe'; + let x = 40; + e[(e.leftParenthesis = x)] = 'leftParenthesis'; + let w = 41; + e[(e.rightParenthesis = w)] = 'rightParenthesis'; + let S = 42; + e[(e.asterisk = S)] = 'asterisk'; + let A = 43; + e[(e.plusSign = A)] = 'plusSign'; + let U = 44; + e[(e.comma = U)] = 'comma'; let D = 45; e[(e.dash = D)] = 'dash'; let c = 46; @@ -13621,22 +13621,22 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.FunctionScopedDeclaration = r)] = 'FunctionScopedDeclaration'; let a = r + 1; e[(e.BlockScopedDeclaration = a)] = 'BlockScopedDeclaration'; - let p = a + 1; - e[(e.ObjectShorthandTopLevelDeclaration = p)] = + let u = a + 1; + e[(e.ObjectShorthandTopLevelDeclaration = u)] = 'ObjectShorthandTopLevelDeclaration'; - let d = p + 1; + let d = u + 1; e[(e.ObjectShorthandFunctionScopedDeclaration = d)] = 'ObjectShorthandFunctionScopedDeclaration'; let y = d + 1; e[(e.ObjectShorthandBlockScopedDeclaration = y)] = 'ObjectShorthandBlockScopedDeclaration'; - let k = y + 1; - e[(e.ObjectShorthand = k)] = 'ObjectShorthand'; - let A = k + 1; - e[(e.ImportDeclaration = A)] = 'ImportDeclaration'; - let u = A + 1; - e[(e.ObjectKey = u)] = 'ObjectKey'; - let f = u + 1; + let g = y + 1; + e[(e.ObjectShorthand = g)] = 'ObjectShorthand'; + let L = g + 1; + e[(e.ImportDeclaration = L)] = 'ImportDeclaration'; + let p = L + 1; + e[(e.ObjectKey = p)] = 'ObjectKey'; + let f = p + 1; e[(e.ImportAccess = f)] = 'ImportAccess'; })(it || (Be.IdentifierRole = it = {})); var f1; @@ -14689,7 +14689,7 @@ If you need interactivity, consider converting part of this to a Client Componen s && (t += `import {createElement as ${s}} from "${this.jsxImportSource}";`); let r = Object.entries(i) - .map(([a, p]) => `${a} as ${p}`) + .map(([a, u]) => `${a} as ${u}`) .join(', '); if (r) { let a = @@ -15009,19 +15009,19 @@ If you need interactivity, consider converting part of this to a Client Componen i = !1, r = !1; for (let a = 0; a < e.length; a++) { - let p = e[a]; - if (p === ' ' || p === ' ' || p === '\r') i || (s += p); + let u = e[a]; + if (u === ' ' || u === ' ' || u === '\r') i || (s += u); else if ( - p === + u === ` ` ) (s = ''), (i = !0); else { - if ((r && i && (t += ' '), (t += s), (s = ''), p === '&')) { + if ((r && i && (t += ' '), (t += s), (s = ''), u === '&')) { let {entity: d, newI: y} = P1(e, a + 1); (a = y - 1), (t += d); - } else t += p; + } else t += u; (r = !0), (i = !1); } } @@ -15068,24 +15068,24 @@ If you need interactivity, consider converting part of this to a Client Componen r, a = t; if (e[a] === '#') { - let p = 10; + let u = 10; a++; let d; if (e[a] === 'x') - for (p = 16, a++, d = a; a < e.length && Zm(e.charCodeAt(a)); ) a++; + for (u = 16, a++, d = a; a < e.length && Zm(e.charCodeAt(a)); ) a++; else for (d = a; a < e.length && Qm(e.charCodeAt(a)); ) a++; if (e[a] === ';') { let y = e.slice(d, a); - y && (a++, (r = String.fromCodePoint(parseInt(y, p)))); + y && (a++, (r = String.fromCodePoint(parseInt(y, u)))); } } else for (; a < e.length && i++ < 10; ) { - let p = e[a]; - if ((a++, p === ';')) { + let u = e[a]; + if ((a++, u === ';')) { r = Hm.default.get(s); break; } - s += p; + s += u; } return r ? {entity: r, newI: a} : {entity: '&', newI: t}; } @@ -15132,8 +15132,8 @@ If you need interactivity, consider converting part of this to a Client Componen a.type === ui.TokenType.jsxName && a.identifierRole === Qr.IdentifierRole.Access) ) { - let p = e.identifierNameForToken(a); - (!tT.startsWithLowerCase.call(void 0, p) || + let u = e.identifierNameForToken(a); + (!tT.startsWithLowerCase.call(void 0, u) || e.tokens[r + 1].type === ui.TokenType.dot) && i.add(e.identifierNameForToken(a)); } @@ -15170,13 +15170,13 @@ If you need interactivity, consider converting part of this to a Client Componen __init5() { this.exportBindingsByLocalName = new Map(); } - constructor(t, s, i, r, a, p) { + constructor(t, s, i, r, a, u) { (this.nameManager = t), (this.tokens = s), (this.enableLegacyTypeScriptModuleInterop = i), (this.options = r), (this.isTypeScriptTransformEnabled = a), - (this.helperManager = p), + (this.helperManager = u), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), @@ -15235,7 +15235,7 @@ If you need interactivity, consider converting part of this to a Client Componen defaultNames: i, wildcardNames: r, namedImports: a, - namedExports: p, + namedExports: u, exportStarNames: d, hasStarExport: y, } = s; @@ -15243,51 +15243,51 @@ If you need interactivity, consider converting part of this to a Client Componen i.length === 0 && r.length === 0 && a.length === 0 && - p.length === 0 && + u.length === 0 && d.length === 0 && !y ) { this.importsToReplace.set(t, `require('${t}');`); continue; } - let k = this.getFreeIdentifierForPath(t), - A; + let g = this.getFreeIdentifierForPath(t), + L; this.enableLegacyTypeScriptModuleInterop - ? (A = k) - : (A = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); - let u = `var ${k} = require('${t}');`; + ? (L = g) + : (L = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); + let p = `var ${g} = require('${t}');`; if (r.length > 0) for (let f of r) { - let x = this.enableLegacyTypeScriptModuleInterop - ? k + let v = this.enableLegacyTypeScriptModuleInterop + ? g : `${this.helperManager.getHelperName( 'interopRequireWildcard' - )}(${k})`; - u += ` var ${f} = ${x};`; + )}(${g})`; + p += ` var ${f} = ${v};`; } else - d.length > 0 && A !== k - ? (u += ` var ${A} = ${this.helperManager.getHelperName( + d.length > 0 && L !== g + ? (p += ` var ${L} = ${this.helperManager.getHelperName( 'interopRequireWildcard' - )}(${k});`) + )}(${g});`) : i.length > 0 && - A !== k && - (u += ` var ${A} = ${this.helperManager.getHelperName( + L !== g && + (p += ` var ${L} = ${this.helperManager.getHelperName( 'interopRequireDefault' - )}(${k});`); - for (let {importedName: f, localName: x} of p) - u += ` ${this.helperManager.getHelperName( + )}(${g});`); + for (let {importedName: f, localName: v} of u) + p += ` ${this.helperManager.getHelperName( 'createNamedExportFrom' - )}(${k}, '${x}', '${f}');`; - for (let f of d) u += ` exports.${f} = ${A};`; + )}(${g}, '${v}', '${f}');`; + for (let f of d) p += ` exports.${f} = ${L};`; y && - (u += ` ${this.helperManager.getHelperName( + (p += ` ${this.helperManager.getHelperName( 'createStarExport' - )}(${k});`), - this.importsToReplace.set(t, u); - for (let f of i) this.identifierReplacements.set(f, `${A}.default`); - for (let {importedName: f, localName: x} of a) - this.identifierReplacements.set(x, `${k}.${f}`); + )}(${g});`), + this.importsToReplace.set(t, p); + for (let f of i) this.identifierReplacements.set(f, `${L}.default`); + for (let {importedName: f, localName: v} of a) + this.identifierReplacements.set(v, `${g}.${f}`); } } getFreeIdentifierForPath(t) { @@ -15339,14 +15339,14 @@ If you need interactivity, consider converting part of this to a Client Componen 'Expected string token at the end of import statement.' ); let a = this.tokens.stringValueAtIndex(t), - p = this.getImportInfo(a); - p.defaultNames.push(...s), - p.wildcardNames.push(...i), - p.namedImports.push(...r), + u = this.getImportInfo(a); + u.defaultNames.push(...s), + u.wildcardNames.push(...i), + u.namedImports.push(...r), s.length === 0 && i.length === 0 && r.length === 0 && - (p.hasBareImport = !0); + (u.hasBareImport = !0); } preprocessExportAtIndex(t) { if ( @@ -15444,8 +15444,8 @@ If you need interactivity, consider converting part of this to a Client Componen ) t++; else { - for (let {importedName: p, localName: d} of i) - this.addExportBinding(p, d); + for (let {importedName: u, localName: d} of i) + this.addExportBinding(u, d); return; } if (!this.tokens.matches1AtIndex(t, me.TokenType.string)) @@ -15567,8 +15567,8 @@ If you need interactivity, consider converting part of this to a Client Componen (e.put = (s, i) => { let r = e.get(s, i); if (r !== void 0) return r; - let {array: a, _indexes: p} = s; - return (p[i] = a.push(i) - 1); + let {array: a, _indexes: u} = s; + return (u[i] = a.push(i) - 1); }), (e.pop = (s) => { let {array: i, _indexes: r} = s; @@ -15594,127 +15594,127 @@ If you need interactivity, consider converting part of this to a Client Componen 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', r = new Uint8Array(64), a = new Uint8Array(128); - for (let S = 0; S < i.length; S++) { - let E = i.charCodeAt(S); - (r[S] = E), (a[E] = S); + for (let w = 0; w < i.length; w++) { + let S = i.charCodeAt(w); + (r[w] = S), (a[S] = w); } - let p = + let u = typeof TextDecoder < 'u' ? new TextDecoder() : typeof Buffer < 'u' ? { - decode(S) { + decode(w) { return Buffer.from( - S.buffer, - S.byteOffset, - S.byteLength + w.buffer, + w.byteOffset, + w.byteLength ).toString(); }, } : { - decode(S) { - let E = ''; - for (let L = 0; L < S.length; L++) - E += String.fromCharCode(S[L]); - return E; + decode(w) { + let S = ''; + for (let A = 0; A < w.length; A++) + S += String.fromCharCode(w[A]); + return S; }, }; - function d(S) { - let E = new Int32Array(5), - L = [], - H = 0; + function d(w) { + let S = new Int32Array(5), + A = [], + U = 0; do { - let D = y(S, H), + let D = y(w, U), c = [], M = !0, z = 0; - E[0] = 0; - for (let X = H; X < D; X++) { + S[0] = 0; + for (let X = U; X < D; X++) { let ie; - X = k(S, X, E, 0); - let pe = E[0]; + X = g(w, X, S, 0); + let pe = S[0]; pe < z && (M = !1), (z = pe), - A(S, X, D) - ? ((X = k(S, X, E, 1)), - (X = k(S, X, E, 2)), - (X = k(S, X, E, 3)), - A(S, X, D) - ? ((X = k(S, X, E, 4)), (ie = [pe, E[1], E[2], E[3], E[4]])) - : (ie = [pe, E[1], E[2], E[3]])) + L(w, X, D) + ? ((X = g(w, X, S, 1)), + (X = g(w, X, S, 2)), + (X = g(w, X, S, 3)), + L(w, X, D) + ? ((X = g(w, X, S, 4)), (ie = [pe, S[1], S[2], S[3], S[4]])) + : (ie = [pe, S[1], S[2], S[3]])) : (ie = [pe]), c.push(ie); } - M || u(c), L.push(c), (H = D + 1); - } while (H <= S.length); - return L; + M || p(c), A.push(c), (U = D + 1); + } while (U <= w.length); + return A; } - function y(S, E) { - let L = S.indexOf(';', E); - return L === -1 ? S.length : L; + function y(w, S) { + let A = w.indexOf(';', S); + return A === -1 ? w.length : A; } - function k(S, E, L, H) { + function g(w, S, A, U) { let D = 0, c = 0, M = 0; do { - let X = S.charCodeAt(E++); + let X = w.charCodeAt(S++); (M = a[X]), (D |= (M & 31) << c), (c += 5); } while (M & 32); let z = D & 1; - return (D >>>= 1), z && (D = -2147483648 | -D), (L[H] += D), E; + return (D >>>= 1), z && (D = -2147483648 | -D), (A[U] += D), S; } - function A(S, E, L) { - return E >= L ? !1 : S.charCodeAt(E) !== 44; + function L(w, S, A) { + return S >= A ? !1 : w.charCodeAt(S) !== 44; } - function u(S) { - S.sort(f); + function p(w) { + w.sort(f); } - function f(S, E) { - return S[0] - E[0]; + function f(w, S) { + return w[0] - S[0]; } - function x(S) { - let E = new Int32Array(5), - L = 1024 * 16, - H = L - 36, - D = new Uint8Array(L), - c = D.subarray(0, H), + function v(w) { + let S = new Int32Array(5), + A = 1024 * 16, + U = A - 36, + D = new Uint8Array(A), + c = D.subarray(0, U), M = 0, z = ''; - for (let X = 0; X < S.length; X++) { - let ie = S[X]; + for (let X = 0; X < w.length; X++) { + let ie = w[X]; if ( - (X > 0 && (M === L && ((z += p.decode(D)), (M = 0)), (D[M++] = 59)), + (X > 0 && (M === A && ((z += u.decode(D)), (M = 0)), (D[M++] = 59)), ie.length !== 0) ) { - E[0] = 0; + S[0] = 0; for (let pe = 0; pe < ie.length; pe++) { let ae = ie[pe]; - M > H && ((z += p.decode(c)), D.copyWithin(0, H, M), (M -= H)), + M > U && ((z += u.decode(c)), D.copyWithin(0, U, M), (M -= U)), pe > 0 && (D[M++] = 44), - (M = g(D, M, E, ae, 0)), + (M = x(D, M, S, ae, 0)), ae.length !== 1 && - ((M = g(D, M, E, ae, 1)), - (M = g(D, M, E, ae, 2)), - (M = g(D, M, E, ae, 3)), - ae.length !== 4 && (M = g(D, M, E, ae, 4))); + ((M = x(D, M, S, ae, 1)), + (M = x(D, M, S, ae, 2)), + (M = x(D, M, S, ae, 3)), + ae.length !== 4 && (M = x(D, M, S, ae, 4))); } } } - return z + p.decode(D.subarray(0, M)); + return z + u.decode(D.subarray(0, M)); } - function g(S, E, L, H, D) { - let c = H[D], - M = c - L[D]; - (L[D] = c), (M = M < 0 ? (-M << 1) | 1 : M << 1); + function x(w, S, A, U, D) { + let c = U[D], + M = c - A[D]; + (A[D] = c), (M = M < 0 ? (-M << 1) | 1 : M << 1); do { let z = M & 31; - (M >>>= 5), M > 0 && (z |= 32), (S[E++] = r[z]); + (M >>>= 5), M > 0 && (z |= 32), (w[S++] = r[z]); } while (M > 0); - return E; + return S; } (e.decode = d), - (e.encode = x), + (e.encode = v), Object.defineProperty(e, '__esModule', {value: !0}); }); }); @@ -15733,59 +15733,59 @@ If you need interactivity, consider converting part of this to a Client Componen /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, s = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; var i; - (function (L) { - (L[(L.Empty = 1)] = 'Empty'), - (L[(L.Hash = 2)] = 'Hash'), - (L[(L.Query = 3)] = 'Query'), - (L[(L.RelativePath = 4)] = 'RelativePath'), - (L[(L.AbsolutePath = 5)] = 'AbsolutePath'), - (L[(L.SchemeRelative = 6)] = 'SchemeRelative'), - (L[(L.Absolute = 7)] = 'Absolute'); + (function (A) { + (A[(A.Empty = 1)] = 'Empty'), + (A[(A.Hash = 2)] = 'Hash'), + (A[(A.Query = 3)] = 'Query'), + (A[(A.RelativePath = 4)] = 'RelativePath'), + (A[(A.AbsolutePath = 5)] = 'AbsolutePath'), + (A[(A.SchemeRelative = 6)] = 'SchemeRelative'), + (A[(A.Absolute = 7)] = 'Absolute'); })(i || (i = {})); - function r(L) { - return e.test(L); + function r(A) { + return e.test(A); } - function a(L) { - return L.startsWith('//'); + function a(A) { + return A.startsWith('//'); } - function p(L) { - return L.startsWith('/'); + function u(A) { + return A.startsWith('/'); } - function d(L) { - return L.startsWith('file:'); - } - function y(L) { - return /^[.?#]/.test(L); - } - function k(L) { - let H = t.exec(L); - return u( - H[1], - H[2] || '', - H[3], - H[4] || '', - H[5] || '/', - H[6] || '', - H[7] || '' + function d(A) { + return A.startsWith('file:'); + } + function y(A) { + return /^[.?#]/.test(A); + } + function g(A) { + let U = t.exec(A); + return p( + U[1], + U[2] || '', + U[3], + U[4] || '', + U[5] || '/', + U[6] || '', + U[7] || '' ); } - function A(L) { - let H = s.exec(L), - D = H[2]; - return u( + function L(A) { + let U = s.exec(A), + D = U[2]; + return p( 'file:', '', - H[1] || '', + U[1] || '', '', - p(D) ? D : '/' + D, - H[3] || '', - H[4] || '' + u(D) ? D : '/' + D, + U[3] || '', + U[4] || '' ); } - function u(L, H, D, c, M, z, X) { + function p(A, U, D, c, M, z, X) { return { - scheme: L, - user: H, + scheme: A, + user: U, host: D, port: c, path: M, @@ -15794,43 +15794,43 @@ If you need interactivity, consider converting part of this to a Client Componen type: i.Absolute, }; } - function f(L) { - if (a(L)) { - let D = k('http:' + L); + function f(A) { + if (a(A)) { + let D = g('http:' + A); return (D.scheme = ''), (D.type = i.SchemeRelative), D; } - if (p(L)) { - let D = k('http://foo.com' + L); + if (u(A)) { + let D = g('http://foo.com' + A); return (D.scheme = ''), (D.host = ''), (D.type = i.AbsolutePath), D; } - if (d(L)) return A(L); - if (r(L)) return k(L); - let H = k('http://foo.com/' + L); + if (d(A)) return L(A); + if (r(A)) return g(A); + let U = g('http://foo.com/' + A); return ( - (H.scheme = ''), - (H.host = ''), - (H.type = L - ? L.startsWith('?') + (U.scheme = ''), + (U.host = ''), + (U.type = A + ? A.startsWith('?') ? i.Query - : L.startsWith('#') + : A.startsWith('#') ? i.Hash : i.RelativePath : i.Empty), - H + U ); } - function x(L) { - if (L.endsWith('/..')) return L; - let H = L.lastIndexOf('/'); - return L.slice(0, H + 1); + function v(A) { + if (A.endsWith('/..')) return A; + let U = A.lastIndexOf('/'); + return A.slice(0, U + 1); } - function g(L, H) { - S(H, H.type), - L.path === '/' ? (L.path = H.path) : (L.path = x(H.path) + L.path); + function x(A, U) { + w(U, U.type), + A.path === '/' ? (A.path = U.path) : (A.path = v(U.path) + A.path); } - function S(L, H) { - let D = H <= i.RelativePath, - c = L.path.split('/'), + function w(A, U) { + let D = U <= i.RelativePath, + c = A.path.split('/'), M = 1, z = 0, X = !1; @@ -15850,14 +15850,14 @@ If you need interactivity, consider converting part of this to a Client Componen } let ie = ''; for (let pe = 1; pe < M; pe++) ie += '/' + c[pe]; - (!ie || (X && !ie.endsWith('/..'))) && (ie += '/'), (L.path = ie); + (!ie || (X && !ie.endsWith('/..'))) && (ie += '/'), (A.path = ie); } - function E(L, H) { - if (!L && !H) return ''; - let D = f(L), + function S(A, U) { + if (!A && !U) return ''; + let D = f(A), c = D.type; - if (H && c !== i.Absolute) { - let z = f(H), + if (U && c !== i.Absolute) { + let z = f(U), X = z.type; switch (c) { case i.Empty: @@ -15866,7 +15866,7 @@ If you need interactivity, consider converting part of this to a Client Componen D.query = z.query; case i.Query: case i.RelativePath: - g(D, z); + x(D, z); case i.AbsolutePath: (D.user = z.user), (D.host = z.host), (D.port = z.port); case i.SchemeRelative: @@ -15874,7 +15874,7 @@ If you need interactivity, consider converting part of this to a Client Componen } X > c && (c = X); } - S(D, c); + w(D, c); let M = D.query + D.hash; switch (c) { case i.Hash: @@ -15882,7 +15882,7 @@ If you need interactivity, consider converting part of this to a Client Componen return M; case i.RelativePath: { let z = D.path.slice(1); - return z ? (y(H || L) && !y(z) ? './' + z + M : z + M) : M || '.'; + return z ? (y(U || A) && !y(z) ? './' + z + M : z + M) : M || '.'; } case i.AbsolutePath: return D.path + M; @@ -15890,7 +15890,7 @@ If you need interactivity, consider converting part of this to a Client Componen return D.scheme + '//' + D.user + D.host + D.port + D.path + M; } } - return E; + return S; }); }); var F1 = Z((no, M1) => { @@ -15917,37 +15917,37 @@ If you need interactivity, consider converting part of this to a Client Componen function a(V, W) { return W && !W.endsWith('/') && (W += '/'), r.default(V, W); } - function p(V) { + function u(V) { if (!V) return ''; let W = V.lastIndexOf('/'); return V.slice(0, W + 1); } let d = 0, y = 1, - k = 2, - A = 3, - u = 4, + g = 2, + L = 3, + p = 4, f = 1, - x = 2; - function g(V, W) { - let J = S(V, 0); + v = 2; + function x(V, W) { + let J = w(V, 0); if (J === V.length) return V; W || (V = V.slice()); - for (let re = J; re < V.length; re = S(V, re + 1)) V[re] = L(V[re], W); + for (let re = J; re < V.length; re = w(V, re + 1)) V[re] = A(V[re], W); return V; } - function S(V, W) { - for (let J = W; J < V.length; J++) if (!E(V[J])) return J; + function w(V, W) { + for (let J = W; J < V.length; J++) if (!S(V[J])) return J; return V.length; } - function E(V) { + function S(V) { for (let W = 1; W < V.length; W++) if (V[W][d] < V[W - 1][d]) return !1; return !0; } - function L(V, W) { - return W || (V = V.slice()), V.sort(H); + function A(V, W) { + return W || (V = V.slice()), V.sort(U); } - function H(V, W) { + function U(V, W) { return V[d] - W[d]; } let D = !1; @@ -15991,8 +15991,8 @@ If you need interactivity, consider converting part of this to a Client Componen let Ie = ve[he]; if (Ie.length === 1) continue; let Ee = Ie[y], - Le = Ie[k], - Xe = Ie[A], + Le = Ie[g], + Xe = Ie[L], We = J[Ee], Ke = We[Le] || (We[Le] = []), ut = W[Ee], @@ -16067,10 +16067,10 @@ If you need interactivity, consider converting part of this to a Client Componen continue; } let te = Ke + zt[y], - Cn = zt[k], - Zn = zt[A]; + Cn = zt[g], + Zn = zt[L]; Dn.push( - zt.length === 4 ? [Xt, te, Cn, Zn] : [Xt, te, Cn, Zn, ut + zt[u]] + zt.length === 4 ? [Xt, te, Cn, Zn] : [Xt, te, Cn, Zn, ut + zt[p]] ); } } @@ -16116,12 +16116,12 @@ If you need interactivity, consider converting part of this to a Client Componen (this.sourceRoot = Le), (this.sources = Xe), (this.sourcesContent = We); - let Ke = a(Le || '', p(J)); + let Ke = a(Le || '', u(J)); this.resolvedSources = Xe.map((pt) => a(pt || '', Ke)); let {mappings: ut} = ve; typeof ut == 'string' ? ((this._encoded = ut), (this._decoded = void 0)) - : ((this._encoded = void 0), (this._decoded = g(ut, re))), + : ((this._encoded = void 0), (this._decoded = x(ut, re))), (this._decodedMemo = X()), (this._bySources = void 0), (this._bySourceMemos = void 0); @@ -16149,9 +16149,9 @@ If you need interactivity, consider converting part of this to a Client Componen let {names: Ie, resolvedSources: Ee} = V; return Pt( Ee[he[y]], - he[k] + 1, - he[A], - he.length === 5 ? Ie[he[u]] : null + he[g] + 1, + he[L], + he.length === 5 ? Ie[he[p]] : null ); }), (e.generatedPositionFor = ( @@ -16174,7 +16174,7 @@ If you need interactivity, consider converting part of this to a Client Componen We = Le[Ee][J]; if (We == null) return qt(null, null); let Ke = yn(We, Xe[Ee], J, re, ve || ct); - return Ke == null ? qt(null, null) : qt(Ke[f] + 1, Ke[x]); + return Ke == null ? qt(null, null) : qt(Ke[f] + 1, Ke[v]); }), (e.eachMapping = (V, W) => { let J = e.decodedMappings(V), @@ -16273,8 +16273,8 @@ If you need interactivity, consider converting part of this to a Client Componen (e.toEncodedMap = void 0), (e.fromMap = void 0), (e.allMappings = void 0); - let A; - class u { + let L; + class p { constructor({file: M, sourceRoot: z} = {}) { (this._names = new t.SetArray()), (this._sources = new t.SetArray()), @@ -16285,9 +16285,9 @@ If you need interactivity, consider converting part of this to a Client Componen } } (e.addSegment = (c, M, z, X, ie, pe, ae, He) => - A(!1, c, M, z, X, ie, pe, ae, He)), + L(!1, c, M, z, X, ie, pe, ae, He)), (e.maybeAddSegment = (c, M, z, X, ie, pe, ae, He) => - A(!0, c, M, z, X, ie, pe, ae, He)), + L(!0, c, M, z, X, ie, pe, ae, He)), (e.addMapping = (c, M) => D(!1, c, M)), (e.maybeAddMapping = (c, M) => D(!0, c, M)), (e.setSourceContent = (c, M, z) => { @@ -16304,7 +16304,7 @@ If you need interactivity, consider converting part of this to a Client Componen _names: ae, } = c; return ( - S(X), + w(X), { version: 3, file: M || void 0, @@ -16344,16 +16344,16 @@ If you need interactivity, consider converting part of this to a Client Componen }), (e.fromMap = (c) => { let M = new i.TraceMap(c), - z = new u({file: M.file, sourceRoot: M.sourceRoot}); + z = new p({file: M.file, sourceRoot: M.sourceRoot}); return ( - E(z._names, M.names), - E(z._sources, M.sources), + S(z._names, M.names), + S(z._sources, M.sources), (z._sourcesContent = M.sourcesContent || M.sources.map(() => null)), (z._mappings = i.decodedMappings(M)), z ); }), - (A = (c, M, z, X, ie, pe, ae, He, qe) => { + (L = (c, M, z, X, ie, pe, ae, He, qe) => { let { _mappings: Bt, _sources: mt, @@ -16361,21 +16361,21 @@ If you need interactivity, consider converting part of this to a Client Componen _names: At, } = M, tt = f(Bt, z), - nt = x(tt, X); - if (!ie) return c && L(tt, nt) ? void 0 : g(tt, nt, [X]); + nt = v(tt, X); + if (!ie) return c && A(tt, nt) ? void 0 : x(tt, nt, [X]); let _t = t.put(mt, ie), ct = He ? t.put(At, He) : -1; if ( (_t === kt.length && (kt[_t] = qe ?? null), - !(c && H(tt, nt, _t, pe, ae, ct))) + !(c && U(tt, nt, _t, pe, ae, ct))) ) - return g(tt, nt, He ? [X, _t, pe, ae, ct] : [X, _t, pe, ae]); + return x(tt, nt, He ? [X, _t, pe, ae, ct] : [X, _t, pe, ae]); }); function f(c, M) { for (let z = c.length; z <= M; z++) c[z] = []; return c[M]; } - function x(c, M) { + function v(c, M) { let z = c.length; for (let X = z - 1; X >= 0; z = X--) { let ie = c[X]; @@ -16383,23 +16383,23 @@ If you need interactivity, consider converting part of this to a Client Componen } return z; } - function g(c, M, z) { + function x(c, M, z) { for (let X = c.length; X > M; X--) c[X] = c[X - 1]; c[M] = z; } - function S(c) { + function w(c) { let {length: M} = c, z = M; for (let X = z - 1; X >= 0 && !(c[X].length > 0); z = X, X--); z < M && (c.length = z); } - function E(c, M) { + function S(c, M) { for (let z = 0; z < M.length; z++) t.put(c, M[z]); } - function L(c, M) { + function A(c, M) { return M === 0 ? !0 : c[M - 1].length === 1; } - function H(c, M, z, X, ie, pe) { + function U(c, M, z, X, ie, pe) { if (M === 0) return !1; let ae = c[M - 1]; return ae.length === 1 @@ -16412,9 +16412,9 @@ If you need interactivity, consider converting part of this to a Client Componen function D(c, M, z) { let {generated: X, source: ie, original: pe, name: ae, content: He} = z; if (!ie) - return A(c, M, X.line - 1, X.column, null, null, null, null, null); + return L(c, M, X.line - 1, X.column, null, null, null, null, null); let qe = ie; - return A( + return L( c, M, X.line - 1, @@ -16426,7 +16426,7 @@ If you need interactivity, consider converting part of this to a Client Componen He ); } - (e.GenMapping = u), Object.defineProperty(e, '__esModule', {value: !0}); + (e.GenMapping = p), Object.defineProperty(e, '__esModule', {value: !0}); }); }); var $1 = Z((Ka) => { @@ -16435,36 +16435,36 @@ If you need interactivity, consider converting part of this to a Client Componen var Gi = V1(), j1 = Qt(); function uT({code: e, mappings: t}, s, i, r, a) { - let p = pT(r, a), + let u = pT(r, a), d = new Gi.GenMapping({file: i.compiledFilename}), y = 0, - k = t[0]; - for (; k === void 0 && y < t.length - 1; ) y++, (k = t[y]); - let A = 0, - u = 0; - k !== u && Gi.maybeAddSegment.call(void 0, d, A, 0, s, A, 0); - for (let S = 0; S < e.length; S++) { - if (S === k) { - let E = k - u, - L = p[y]; + g = t[0]; + for (; g === void 0 && y < t.length - 1; ) y++, (g = t[y]); + let L = 0, + p = 0; + g !== p && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0); + for (let w = 0; w < e.length; w++) { + if (w === g) { + let S = g - p, + A = u[y]; for ( - Gi.maybeAddSegment.call(void 0, d, A, E, s, A, L); - (k === S || k === void 0) && y < t.length - 1; + Gi.maybeAddSegment.call(void 0, d, L, S, s, L, A); + (g === w || g === void 0) && y < t.length - 1; ) - y++, (k = t[y]); + y++, (g = t[y]); } - e.charCodeAt(S) === j1.charCodes.lineFeed && - (A++, - (u = S + 1), - k !== u && Gi.maybeAddSegment.call(void 0, d, A, 0, s, A, 0)); + e.charCodeAt(w) === j1.charCodes.lineFeed && + (L++, + (p = w + 1), + g !== p && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0)); } let { sourceRoot: f, - sourcesContent: x, - ...g + sourcesContent: v, + ...x } = Gi.toEncodedMap.call(void 0, d); - return g; + return x; } Ka.default = uT; function pT(e, t) { @@ -16472,9 +16472,9 @@ If you need interactivity, consider converting part of this to a Client Componen i = 0, r = t[i].start, a = 0; - for (let p = 0; p < e.length; p++) - p === r && ((s[i] = r - a), i++, (r = t[i].start)), - e.charCodeAt(p) === j1.charCodes.lineFeed && (a = p + 1); + for (let u = 0; u < e.length; u++) + u === r && ((s[i] = r - a), i++, (r = t[i].start)), + e.charCodeAt(u) === j1.charCodes.lineFeed && (a = u + 1); return s; } }); @@ -16688,12 +16688,12 @@ If you need interactivity, consider converting part of this to a Client Componen i.pop(); for (; r >= 0 && t[r].endTokenIndex === a + 1; ) i.push(t[r]), r--; if (a < 0) break; - let p = e.tokens[a], - d = e.identifierNameForToken(p); - if (i.length > 1 && p.type === io.TokenType.name && s.has(d)) { - if (Wa.isBlockScopedDeclaration.call(void 0, p)) + let u = e.tokens[a], + d = e.identifierNameForToken(u); + if (i.length > 1 && u.type === io.TokenType.name && s.has(d)) { + if (Wa.isBlockScopedDeclaration.call(void 0, u)) K1(i[i.length - 1], e, d); - else if (Wa.isFunctionScopedDeclaration.call(void 0, p)) { + else if (Wa.isFunctionScopedDeclaration.call(void 0, u)) { let y = i.length - 1; for (; y > 0 && !i[y].isFunctionScope; ) y--; if (y < 0) throw new Error('Did not find parent function scope.'); @@ -16830,11 +16830,11 @@ If you need interactivity, consider converting part of this to a Client Componen }), (e.prototype.resolveUnion = function (t) { for ( - var s, i, r = t, a = null, p = 0, d = r.contexts; - p < d.length; - p++ + var s, i, r = t, a = null, u = 0, d = r.contexts; + u < d.length; + u++ ) { - var y = d[p]; + var y = d[u]; (!a || y._score >= a._score) && (a = y); } a && @@ -16858,9 +16858,9 @@ If you need interactivity, consider converting part of this to a Client Componen var a = this._messages[i]; a && s.push({path: t, message: a}); } - for (var p = null, i = s.length - 1; i >= 0; i--) - p && (s[i].nested = [p]), (p = s[i]); - return p; + for (var u = null, i = s.length - 1; i >= 0; i--) + u && (s[i].nested = [u]), (u = s[i]); + return u; }), e ); @@ -16967,12 +16967,12 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i, r) { var a = this, - p = Qa(s, this.name), - d = p.getChecker(s, i, r); - return p instanceof Dt || p instanceof t + u = Qa(s, this.name), + d = u.getChecker(s, i, r); + return u instanceof Dt || u instanceof t ? d - : function (y, k) { - return d(y, k) ? !0 : k.fail(null, a._failMsg, 0); + : function (y, g) { + return d(y, g) ? !0 : g.fail(null, a._failMsg, 0); }; }), t @@ -16997,8 +16997,8 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this; - return function (a, p) { - return a === r.value ? !0 : p.fail(null, r._failMsg, -1); + return function (a, u) { + return a === r.value ? !0 : u.fail(null, r._failMsg, -1); }; }), t @@ -17018,11 +17018,11 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this.ttype.getChecker(s, i); - return function (a, p) { - if (!Array.isArray(a)) return p.fail(null, 'is not an array', 0); + return function (a, u) { + if (!Array.isArray(a)) return u.fail(null, 'is not an array', 0); for (var d = 0; d < a.length; d++) { - var y = r(a[d], p); - if (!y) return p.fail(d, null, 1); + var y = r(a[d], u); + if (!y) return u.fail(d, null, 1); } return !0; }; @@ -17048,21 +17048,21 @@ If you need interactivity, consider converting part of this to a Client Componen } return ( (t.prototype.getChecker = function (s, i) { - var r = this.ttypes.map(function (p) { - return p.getChecker(s, i); + var r = this.ttypes.map(function (u) { + return u.getChecker(s, i); }), - a = function (p, d) { - if (!Array.isArray(p)) return d.fail(null, 'is not an array', 0); + a = function (u, d) { + if (!Array.isArray(u)) return d.fail(null, 'is not an array', 0); for (var y = 0; y < r.length; y++) { - var k = r[y](p[y], d); - if (!k) return d.fail(y, null, 1); + var g = r[y](u[y], d); + if (!g) return d.fail(y, null, 1); } return !0; }; return i - ? function (p, d) { - return a(p, d) - ? p.length <= r.length + ? function (u, d) { + return a(u, d) + ? u.length <= r.length ? !0 : d.fail(r.length, 'is extraneous', 2) : !1; @@ -17088,11 +17088,11 @@ If you need interactivity, consider converting part of this to a Client Componen var i = e.call(this) || this; i.ttypes = s; var r = s - .map(function (p) { - return p instanceof Za || p instanceof el ? p.name : null; + .map(function (u) { + return u instanceof Za || u instanceof el ? u.name : null; }) - .filter(function (p) { - return p; + .filter(function (u) { + return u; }), a = s.length - r.length; return ( @@ -17106,13 +17106,13 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this, - a = this.ttypes.map(function (p) { - return p.getChecker(s, i); + a = this.ttypes.map(function (u) { + return u.getChecker(s, i); }); - return function (p, d) { - for (var y = d.unionResolver(), k = 0; k < a.length; k++) { - var A = a[k](p, y.createContext()); - if (A) return !0; + return function (u, d) { + for (var y = d.unionResolver(), g = 0; g < a.length; g++) { + var L = a[g](u, y.createContext()); + if (L) return !0; } return d.resolveUnion(y), d.fail(null, r._failMsg, 0); }; @@ -17139,12 +17139,12 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = new Set(), - a = this.ttypes.map(function (p) { - return p.getChecker(s, i, r); + a = this.ttypes.map(function (u) { + return u.getChecker(s, i, r); }); - return function (p, d) { - var y = a.every(function (k) { - return k(p, d); + return function (u, d) { + var y = a.every(function (g) { + return g(u, d); }); return y ? !0 : d.fail(null, null, 0); }; @@ -17176,8 +17176,8 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this; - return function (a, p) { - return r.validValues.has(a) ? !0 : p.fail(null, r._failMsg, 0); + return function (a, u) { + return r.validValues.has(a) ? !0 : u.fail(null, r._failMsg, 0); }; }), t @@ -17207,7 +17207,7 @@ If you need interactivity, consider converting part of this to a Client Componen throw new Error( 'Type ' + this.enumName + ' used in enumlit is not an enum type' ); - var p = a.members[this.prop]; + var u = a.members[this.prop]; if (!a.members.hasOwnProperty(this.prop)) throw new Error( 'Unknown value ' + @@ -17217,7 +17217,7 @@ If you need interactivity, consider converting part of this to a Client Componen ' used in enumlit' ); return function (d, y) { - return d === p ? !0 : y.fail(null, r._failMsg, -1); + return d === u ? !0 : y.fail(null, r._failMsg, -1); }; }), t @@ -17254,44 +17254,44 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i, r) { var a = this, - p = this.bases.map(function (f) { + u = this.bases.map(function (f) { return Qa(s, f).getChecker(s, i); }), d = this.props.map(function (f) { return f.ttype.getChecker(s, i); }), y = new Q1.NoopContext(), - k = this.props.map(function (f, x) { - return !f.isOpt && !d[x](void 0, y); + g = this.props.map(function (f, v) { + return !f.isOpt && !d[v](void 0, y); }), - A = function (f, x) { + L = function (f, v) { if (typeof f != 'object' || f === null) - return x.fail(null, 'is not an object', 0); - for (var g = 0; g < p.length; g++) if (!p[g](f, x)) return !1; - for (var g = 0; g < d.length; g++) { - var S = a.props[g].name, - E = f[S]; - if (E === void 0) { - if (k[g]) return x.fail(S, 'is missing', 1); + return v.fail(null, 'is not an object', 0); + for (var x = 0; x < u.length; x++) if (!u[x](f, v)) return !1; + for (var x = 0; x < d.length; x++) { + var w = a.props[x].name, + S = f[w]; + if (S === void 0) { + if (g[x]) return v.fail(w, 'is missing', 1); } else { - var L = d[g](E, x); - if (!L) return x.fail(S, null, 1); + var A = d[x](S, v); + if (!A) return v.fail(w, null, 1); } } return !0; }; - if (!i) return A; - var u = this.propSet; + if (!i) return L; + var p = this.propSet; return ( r && (this.propSet.forEach(function (f) { return r.add(f); }), - (u = r)), - function (f, x) { - if (!A(f, x)) return !1; - for (var g in f) - if (!u.has(g)) return x.fail(g, 'is extraneous', 2); + (p = r)), + function (f, v) { + if (!L(f, v)) return !1; + for (var x in f) + if (!p.has(x)) return v.fail(x, 'is extraneous', 2); return !0; } ); @@ -17313,8 +17313,8 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this.ttype.getChecker(s, i); - return function (a, p) { - return a === void 0 || r(a, p); + return function (a, u) { + return a === void 0 || r(a, u); }; }), t @@ -17372,32 +17372,32 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this, - a = this.params.map(function (k) { - return k.ttype.getChecker(s, i); + a = this.params.map(function (g) { + return g.ttype.getChecker(s, i); }), - p = new Q1.NoopContext(), - d = this.params.map(function (k, A) { - return !k.isOpt && !a[A](void 0, p); + u = new Q1.NoopContext(), + d = this.params.map(function (g, L) { + return !g.isOpt && !a[L](void 0, u); }), - y = function (k, A) { - if (!Array.isArray(k)) return A.fail(null, 'is not an array', 0); - for (var u = 0; u < a.length; u++) { - var f = r.params[u]; - if (k[u] === void 0) { - if (d[u]) return A.fail(f.name, 'is missing', 1); + y = function (g, L) { + if (!Array.isArray(g)) return L.fail(null, 'is not an array', 0); + for (var p = 0; p < a.length; p++) { + var f = r.params[p]; + if (g[p] === void 0) { + if (d[p]) return L.fail(f.name, 'is missing', 1); } else { - var x = a[u](k[u], A); - if (!x) return A.fail(f.name, null, 1); + var v = a[p](g[p], L); + if (!v) return L.fail(f.name, null, 1); } } return !0; }; return i - ? function (k, A) { - return y(k, A) - ? k.length <= a.length + ? function (g, L) { + return y(g, L) + ? g.length <= a.length ? !0 - : A.fail(a.length, 'is extraneous', 2) + : L.fail(a.length, 'is extraneous', 2) : !1; } : y; @@ -17415,8 +17415,8 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this; - return function (a, p) { - return r.validator(a) ? !0 : p.fail(null, r.message, 0); + return function (a, u) { + return r.validator(a) ? !0 : u.fail(null, r.message, 0); }; }), t @@ -17500,8 +17500,8 @@ If you need interactivity, consider converting part of this to a Client Componen for (var e = 0, t = 0, s = arguments.length; t < s; t++) e += arguments[t].length; for (var i = Array(e), r = 0, t = 0; t < s; t++) - for (var a = arguments[t], p = 0, d = a.length; p < d; p++, r++) - i[r] = a[p]; + for (var a = arguments[t], u = 0, d = a.length; u < d; u++, r++) + i[r] = a[u]; return i; }; Object.defineProperty(we, '__esModule', {value: !0}); @@ -17694,9 +17694,9 @@ If you need interactivity, consider converting part of this to a Client Componen r < a.length; r++ ) - for (var p = a[r], d = 0, y = Object.keys(p); d < y.length; d++) { - var k = y[d]; - i[k] = new cp(s, p[k]); + for (var u = a[r], d = 0, y = Object.keys(u); d < y.length; d++) { + var g = y[d]; + i[g] = new cp(s, u[g]); } return i; } @@ -17712,8 +17712,8 @@ If you need interactivity, consider converting part of this to a Client Componen s instanceof zi.TIface) ) for (var r = 0, a = s.props; r < a.length; r++) { - var p = a[r]; - this.props.set(p.name, p.ttype); + var u = a[r]; + this.props.set(u.name, u.ttype); } (this.checkerPlain = this.ttype.getChecker(t, !1)), (this.checkerStrict = this.ttype.getChecker(t, !0)); @@ -17920,7 +17920,7 @@ If you need interactivity, consider converting part of this to a Client Componen Nn.parseBindingAtom = ll; function Tp(e, t, s = !1, i = !1, r = 0) { let a = !0, - p = !1, + u = !1, d = gt.state.tokens.length; for (; !Mt.eat.call(void 0, e) && !gt.state.error; ) if ( @@ -17928,10 +17928,10 @@ If you need interactivity, consider converting part of this to a Client Componen ? (a = !1) : (ol.expect.call(void 0, fn.TokenType.comma), (gt.state.tokens[gt.state.tokens.length - 1].contextId = r), - !p && + !u && gt.state.tokens[d].isType && ((gt.state.tokens[gt.state.tokens.length - 1].isType = !0), - (p = !0))), + (u = !0))), !(s && Mt.match.call(void 0, fn.TokenType.comma))) ) { if (Mt.eat.call(void 0, e)) break; @@ -17975,41 +17975,41 @@ If you need interactivity, consider converting part of this to a Client Componen var hi = Z((Oe) => { 'use strict'; Object.defineProperty(Oe, '__esModule', {value: !0}); - var v = xt(), + var k = xt(), oe = It(), T = be(), - w = Zt(), + I = Zt(), _e = Ns(), di = lo(), Rn = nr(), - U = cs(), + H = cs(), sy = vl(); function ul() { - return v.match.call(void 0, T.TokenType.name); + return k.match.call(void 0, T.TokenType.name); } function iy() { return ( - v.match.call(void 0, T.TokenType.name) || - !!(w.state.type & T.TokenType.IS_KEYWORD) || - v.match.call(void 0, T.TokenType.string) || - v.match.call(void 0, T.TokenType.num) || - v.match.call(void 0, T.TokenType.bigint) || - v.match.call(void 0, T.TokenType.decimal) + k.match.call(void 0, T.TokenType.name) || + !!(I.state.type & T.TokenType.IS_KEYWORD) || + k.match.call(void 0, T.TokenType.string) || + k.match.call(void 0, T.TokenType.num) || + k.match.call(void 0, T.TokenType.bigint) || + k.match.call(void 0, T.TokenType.decimal) ); } function _p() { - let e = w.state.snapshot(); + let e = I.state.snapshot(); return ( - v.next.call(void 0), - (v.match.call(void 0, T.TokenType.bracketL) || - v.match.call(void 0, T.TokenType.braceL) || - v.match.call(void 0, T.TokenType.star) || - v.match.call(void 0, T.TokenType.ellipsis) || - v.match.call(void 0, T.TokenType.hash) || + k.next.call(void 0), + (k.match.call(void 0, T.TokenType.bracketL) || + k.match.call(void 0, T.TokenType.braceL) || + k.match.call(void 0, T.TokenType.star) || + k.match.call(void 0, T.TokenType.ellipsis) || + k.match.call(void 0, T.TokenType.hash) || iy()) && - !U.hasPrecedingLineBreak.call(void 0) + !H.hasPrecedingLineBreak.call(void 0) ? !0 - : (w.state.restoreFromSnapshot(e), !1) + : (I.state.restoreFromSnapshot(e), !1) ); } function bp(e) { @@ -18017,40 +18017,40 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsParseModifiers = bp; function dl(e) { - if (!v.match.call(void 0, T.TokenType.name)) return null; - let t = w.state.contextualKeyword; + if (!k.match.call(void 0, T.TokenType.name)) return null; + let t = I.state.contextualKeyword; if (e.indexOf(t) !== -1 && _p()) { switch (t) { case oe.ContextualKeyword._readonly: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._readonly; break; case oe.ContextualKeyword._abstract: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._abstract; break; case oe.ContextualKeyword._static: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._static; break; case oe.ContextualKeyword._public: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._public; break; case oe.ContextualKeyword._private: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._private; break; case oe.ContextualKeyword._protected: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._protected; break; case oe.ContextualKeyword._override: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._override; break; case oe.ContextualKeyword._declare: - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._declare; break; default: @@ -18064,134 +18064,134 @@ If you need interactivity, consider converting part of this to a Client Componen function Zi() { for ( _e.parseIdentifier.call(void 0); - v.eat.call(void 0, T.TokenType.dot); + k.eat.call(void 0, T.TokenType.dot); ) _e.parseIdentifier.call(void 0); } function ry() { Zi(), - !U.hasPrecedingLineBreak.call(void 0) && - v.match.call(void 0, T.TokenType.lessThan) && + !H.hasPrecedingLineBreak.call(void 0) && + k.match.call(void 0, T.TokenType.lessThan) && Ti(); } function oy() { - v.next.call(void 0), tr(); + k.next.call(void 0), tr(); } function ay() { - v.next.call(void 0); + k.next.call(void 0); } function ly() { - U.expect.call(void 0, T.TokenType._typeof), - v.match.call(void 0, T.TokenType._import) ? Cp() : Zi(), - !U.hasPrecedingLineBreak.call(void 0) && - v.match.call(void 0, T.TokenType.lessThan) && + H.expect.call(void 0, T.TokenType._typeof), + k.match.call(void 0, T.TokenType._import) ? Cp() : Zi(), + !H.hasPrecedingLineBreak.call(void 0) && + k.match.call(void 0, T.TokenType.lessThan) && Ti(); } function Cp() { - U.expect.call(void 0, T.TokenType._import), - U.expect.call(void 0, T.TokenType.parenL), - U.expect.call(void 0, T.TokenType.string), - U.expect.call(void 0, T.TokenType.parenR), - v.eat.call(void 0, T.TokenType.dot) && Zi(), - v.match.call(void 0, T.TokenType.lessThan) && Ti(); + H.expect.call(void 0, T.TokenType._import), + H.expect.call(void 0, T.TokenType.parenL), + H.expect.call(void 0, T.TokenType.string), + H.expect.call(void 0, T.TokenType.parenR), + k.eat.call(void 0, T.TokenType.dot) && Zi(), + k.match.call(void 0, T.TokenType.lessThan) && Ti(); } function cy() { - v.eat.call(void 0, T.TokenType._const); - let e = v.eat.call(void 0, T.TokenType._in), - t = U.eatContextual.call(void 0, oe.ContextualKeyword._out); - v.eat.call(void 0, T.TokenType._const), - (e || t) && !v.match.call(void 0, T.TokenType.name) - ? (w.state.tokens[w.state.tokens.length - 1].type = T.TokenType.name) + k.eat.call(void 0, T.TokenType._const); + let e = k.eat.call(void 0, T.TokenType._in), + t = H.eatContextual.call(void 0, oe.ContextualKeyword._out); + k.eat.call(void 0, T.TokenType._const), + (e || t) && !k.match.call(void 0, T.TokenType.name) + ? (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType.name) : _e.parseIdentifier.call(void 0), - v.eat.call(void 0, T.TokenType._extends) && rt(), - v.eat.call(void 0, T.TokenType.eq) && rt(); + k.eat.call(void 0, T.TokenType._extends) && rt(), + k.eat.call(void 0, T.TokenType.eq) && rt(); } function mi() { - v.match.call(void 0, T.TokenType.lessThan) && uo(); + k.match.call(void 0, T.TokenType.lessThan) && uo(); } Oe.tsTryParseTypeParameters = mi; function uo() { - let e = v.pushTypeContext.call(void 0, 0); + let e = k.pushTypeContext.call(void 0, 0); for ( - v.match.call(void 0, T.TokenType.lessThan) || - v.match.call(void 0, T.TokenType.typeParameterStart) - ? v.next.call(void 0) - : U.unexpected.call(void 0); - !v.eat.call(void 0, T.TokenType.greaterThan) && !w.state.error; + k.match.call(void 0, T.TokenType.lessThan) || + k.match.call(void 0, T.TokenType.typeParameterStart) + ? k.next.call(void 0) + : H.unexpected.call(void 0); + !k.eat.call(void 0, T.TokenType.greaterThan) && !I.state.error; ) - cy(), v.eat.call(void 0, T.TokenType.comma); - v.popTypeContext.call(void 0, e); + cy(), k.eat.call(void 0, T.TokenType.comma); + k.popTypeContext.call(void 0, e); } function ml(e) { let t = e === T.TokenType.arrow; mi(), - U.expect.call(void 0, T.TokenType.parenL), - w.state.scopeDepth++, + H.expect.call(void 0, T.TokenType.parenL), + I.state.scopeDepth++, uy(!1), - w.state.scopeDepth--, - (t || v.match.call(void 0, e)) && Qi(e); + I.state.scopeDepth--, + (t || k.match.call(void 0, e)) && Qi(e); } function uy(e) { di.parseBindingList.call(void 0, T.TokenType.parenR, e); } function co() { - v.eat.call(void 0, T.TokenType.comma) || U.semicolon.call(void 0); + k.eat.call(void 0, T.TokenType.comma) || H.semicolon.call(void 0); } function kp() { ml(T.TokenType.colon), co(); } function py() { - let e = w.state.snapshot(); - v.next.call(void 0); + let e = I.state.snapshot(); + k.next.call(void 0); let t = - v.eat.call(void 0, T.TokenType.name) && - v.match.call(void 0, T.TokenType.colon); - return w.state.restoreFromSnapshot(e), t; + k.eat.call(void 0, T.TokenType.name) && + k.match.call(void 0, T.TokenType.colon); + return I.state.restoreFromSnapshot(e), t; } function wp() { - if (!(v.match.call(void 0, T.TokenType.bracketL) && py())) return !1; - let e = v.pushTypeContext.call(void 0, 0); + if (!(k.match.call(void 0, T.TokenType.bracketL) && py())) return !1; + let e = k.pushTypeContext.call(void 0, 0); return ( - U.expect.call(void 0, T.TokenType.bracketL), + H.expect.call(void 0, T.TokenType.bracketL), _e.parseIdentifier.call(void 0), tr(), - U.expect.call(void 0, T.TokenType.bracketR), + H.expect.call(void 0, T.TokenType.bracketR), er(), co(), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), !0 ); } function vp(e) { - v.eat.call(void 0, T.TokenType.question), + k.eat.call(void 0, T.TokenType.question), !e && - (v.match.call(void 0, T.TokenType.parenL) || - v.match.call(void 0, T.TokenType.lessThan)) + (k.match.call(void 0, T.TokenType.parenL) || + k.match.call(void 0, T.TokenType.lessThan)) ? (ml(T.TokenType.colon), co()) : (er(), co()); } function hy() { if ( - v.match.call(void 0, T.TokenType.parenL) || - v.match.call(void 0, T.TokenType.lessThan) + k.match.call(void 0, T.TokenType.parenL) || + k.match.call(void 0, T.TokenType.lessThan) ) { kp(); return; } - if (v.match.call(void 0, T.TokenType._new)) { - v.next.call(void 0), - v.match.call(void 0, T.TokenType.parenL) || - v.match.call(void 0, T.TokenType.lessThan) + if (k.match.call(void 0, T.TokenType._new)) { + k.next.call(void 0), + k.match.call(void 0, T.TokenType.parenL) || + k.match.call(void 0, T.TokenType.lessThan) ? kp() : vp(!1); return; } let e = !!dl([oe.ContextualKeyword._readonly]); wp() || - ((U.isContextual.call(void 0, oe.ContextualKeyword._get) || - U.isContextual.call(void 0, oe.ContextualKeyword._set)) && + ((H.isContextual.call(void 0, oe.ContextualKeyword._get) || + H.isContextual.call(void 0, oe.ContextualKeyword._set)) && _p(), _e.parsePropertyName.call(void 0, -1), vp(e)); @@ -18201,85 +18201,85 @@ If you need interactivity, consider converting part of this to a Client Componen } function Sp() { for ( - U.expect.call(void 0, T.TokenType.braceL); - !v.eat.call(void 0, T.TokenType.braceR) && !w.state.error; + H.expect.call(void 0, T.TokenType.braceL); + !k.eat.call(void 0, T.TokenType.braceR) && !I.state.error; ) hy(); } function dy() { - let e = w.state.snapshot(), + let e = I.state.snapshot(), t = my(); - return w.state.restoreFromSnapshot(e), t; + return I.state.restoreFromSnapshot(e), t; } function my() { return ( - v.next.call(void 0), - v.eat.call(void 0, T.TokenType.plus) || - v.eat.call(void 0, T.TokenType.minus) - ? U.isContextual.call(void 0, oe.ContextualKeyword._readonly) - : (U.isContextual.call(void 0, oe.ContextualKeyword._readonly) && - v.next.call(void 0), - !v.match.call(void 0, T.TokenType.bracketL) || - (v.next.call(void 0), !ul()) + k.next.call(void 0), + k.eat.call(void 0, T.TokenType.plus) || + k.eat.call(void 0, T.TokenType.minus) + ? H.isContextual.call(void 0, oe.ContextualKeyword._readonly) + : (H.isContextual.call(void 0, oe.ContextualKeyword._readonly) && + k.next.call(void 0), + !k.match.call(void 0, T.TokenType.bracketL) || + (k.next.call(void 0), !ul()) ? !1 - : (v.next.call(void 0), v.match.call(void 0, T.TokenType._in))) + : (k.next.call(void 0), k.match.call(void 0, T.TokenType._in))) ); } function Ty() { _e.parseIdentifier.call(void 0), - U.expect.call(void 0, T.TokenType._in), + H.expect.call(void 0, T.TokenType._in), rt(); } function yy() { - U.expect.call(void 0, T.TokenType.braceL), - v.match.call(void 0, T.TokenType.plus) || - v.match.call(void 0, T.TokenType.minus) - ? (v.next.call(void 0), - U.expectContextual.call(void 0, oe.ContextualKeyword._readonly)) - : U.eatContextual.call(void 0, oe.ContextualKeyword._readonly), - U.expect.call(void 0, T.TokenType.bracketL), + H.expect.call(void 0, T.TokenType.braceL), + k.match.call(void 0, T.TokenType.plus) || + k.match.call(void 0, T.TokenType.minus) + ? (k.next.call(void 0), + H.expectContextual.call(void 0, oe.ContextualKeyword._readonly)) + : H.eatContextual.call(void 0, oe.ContextualKeyword._readonly), + H.expect.call(void 0, T.TokenType.bracketL), Ty(), - U.eatContextual.call(void 0, oe.ContextualKeyword._as) && rt(), - U.expect.call(void 0, T.TokenType.bracketR), - v.match.call(void 0, T.TokenType.plus) || - v.match.call(void 0, T.TokenType.minus) - ? (v.next.call(void 0), U.expect.call(void 0, T.TokenType.question)) - : v.eat.call(void 0, T.TokenType.question), + H.eatContextual.call(void 0, oe.ContextualKeyword._as) && rt(), + H.expect.call(void 0, T.TokenType.bracketR), + k.match.call(void 0, T.TokenType.plus) || + k.match.call(void 0, T.TokenType.minus) + ? (k.next.call(void 0), H.expect.call(void 0, T.TokenType.question)) + : k.eat.call(void 0, T.TokenType.question), Ny(), - U.semicolon.call(void 0), - U.expect.call(void 0, T.TokenType.braceR); + H.semicolon.call(void 0), + H.expect.call(void 0, T.TokenType.braceR); } function ky() { for ( - U.expect.call(void 0, T.TokenType.bracketL); - !v.eat.call(void 0, T.TokenType.bracketR) && !w.state.error; + H.expect.call(void 0, T.TokenType.bracketL); + !k.eat.call(void 0, T.TokenType.bracketR) && !I.state.error; ) - vy(), v.eat.call(void 0, T.TokenType.comma); + vy(), k.eat.call(void 0, T.TokenType.comma); } function vy() { - v.eat.call(void 0, T.TokenType.ellipsis) + k.eat.call(void 0, T.TokenType.ellipsis) ? rt() - : (rt(), v.eat.call(void 0, T.TokenType.question)), - v.eat.call(void 0, T.TokenType.colon) && rt(); + : (rt(), k.eat.call(void 0, T.TokenType.question)), + k.eat.call(void 0, T.TokenType.colon) && rt(); } function xy() { - U.expect.call(void 0, T.TokenType.parenL), + H.expect.call(void 0, T.TokenType.parenL), rt(), - U.expect.call(void 0, T.TokenType.parenR); + H.expect.call(void 0, T.TokenType.parenR); } function gy() { for ( - v.nextTemplateToken.call(void 0), v.nextTemplateToken.call(void 0); - !v.match.call(void 0, T.TokenType.backQuote) && !w.state.error; + k.nextTemplateToken.call(void 0), k.nextTemplateToken.call(void 0); + !k.match.call(void 0, T.TokenType.backQuote) && !I.state.error; ) - U.expect.call(void 0, T.TokenType.dollarBraceL), + H.expect.call(void 0, T.TokenType.dollarBraceL), rt(), - v.nextTemplateToken.call(void 0), - v.nextTemplateToken.call(void 0); - v.next.call(void 0); + k.nextTemplateToken.call(void 0), + k.nextTemplateToken.call(void 0); + k.next.call(void 0); } var hs; (function (e) { @@ -18291,22 +18291,22 @@ If you need interactivity, consider converting part of this to a Client Componen })(hs || (hs = {})); function cl(e) { e === hs.TSAbstractConstructorType && - U.expectContextual.call(void 0, oe.ContextualKeyword._abstract), + H.expectContextual.call(void 0, oe.ContextualKeyword._abstract), (e === hs.TSConstructorType || e === hs.TSAbstractConstructorType) && - U.expect.call(void 0, T.TokenType._new); - let t = w.state.inDisallowConditionalTypesContext; - (w.state.inDisallowConditionalTypesContext = !1), + H.expect.call(void 0, T.TokenType._new); + let t = I.state.inDisallowConditionalTypesContext; + (I.state.inDisallowConditionalTypesContext = !1), ml(T.TokenType.arrow), - (w.state.inDisallowConditionalTypesContext = t); + (I.state.inDisallowConditionalTypesContext = t); } function _y() { - switch (w.state.type) { + switch (I.state.type) { case T.TokenType.name: ry(); return; case T.TokenType._void: case T.TokenType._null: - v.next.call(void 0); + k.next.call(void 0); return; case T.TokenType.string: case T.TokenType.num: @@ -18317,12 +18317,12 @@ If you need interactivity, consider converting part of this to a Client Componen _e.parseLiteral.call(void 0); return; case T.TokenType.minus: - v.next.call(void 0), _e.parseLiteral.call(void 0); + k.next.call(void 0), _e.parseLiteral.call(void 0); return; case T.TokenType._this: { ay(), - U.isContextual.call(void 0, oe.ContextualKeyword._is) && - !U.hasPrecedingLineBreak.call(void 0) && + H.isContextual.call(void 0, oe.ContextualKeyword._is) && + !H.hasPrecedingLineBreak.call(void 0) && oy(); return; } @@ -18345,187 +18345,187 @@ If you need interactivity, consider converting part of this to a Client Componen gy(); return; default: - if (w.state.type & T.TokenType.IS_KEYWORD) { - v.next.call(void 0), - (w.state.tokens[w.state.tokens.length - 1].type = + if (I.state.type & T.TokenType.IS_KEYWORD) { + k.next.call(void 0), + (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType.name); return; } break; } - U.unexpected.call(void 0); + H.unexpected.call(void 0); } function by() { for ( _y(); - !U.hasPrecedingLineBreak.call(void 0) && - v.eat.call(void 0, T.TokenType.bracketL); + !H.hasPrecedingLineBreak.call(void 0) && + k.eat.call(void 0, T.TokenType.bracketL); ) - v.eat.call(void 0, T.TokenType.bracketR) || - (rt(), U.expect.call(void 0, T.TokenType.bracketR)); + k.eat.call(void 0, T.TokenType.bracketR) || + (rt(), H.expect.call(void 0, T.TokenType.bracketR)); } function Cy() { if ( - (U.expectContextual.call(void 0, oe.ContextualKeyword._infer), + (H.expectContextual.call(void 0, oe.ContextualKeyword._infer), _e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType._extends)) + k.match.call(void 0, T.TokenType._extends)) ) { - let e = w.state.snapshot(); - U.expect.call(void 0, T.TokenType._extends); - let t = w.state.inDisallowConditionalTypesContext; - (w.state.inDisallowConditionalTypesContext = !0), + let e = I.state.snapshot(); + H.expect.call(void 0, T.TokenType._extends); + let t = I.state.inDisallowConditionalTypesContext; + (I.state.inDisallowConditionalTypesContext = !0), rt(), - (w.state.inDisallowConditionalTypesContext = t), - (w.state.error || - (!w.state.inDisallowConditionalTypesContext && - v.match.call(void 0, T.TokenType.question))) && - w.state.restoreFromSnapshot(e); + (I.state.inDisallowConditionalTypesContext = t), + (I.state.error || + (!I.state.inDisallowConditionalTypesContext && + k.match.call(void 0, T.TokenType.question))) && + I.state.restoreFromSnapshot(e); } } function pl() { if ( - U.isContextual.call(void 0, oe.ContextualKeyword._keyof) || - U.isContextual.call(void 0, oe.ContextualKeyword._unique) || - U.isContextual.call(void 0, oe.ContextualKeyword._readonly) + H.isContextual.call(void 0, oe.ContextualKeyword._keyof) || + H.isContextual.call(void 0, oe.ContextualKeyword._unique) || + H.isContextual.call(void 0, oe.ContextualKeyword._readonly) ) - v.next.call(void 0), pl(); - else if (U.isContextual.call(void 0, oe.ContextualKeyword._infer)) Cy(); + k.next.call(void 0), pl(); + else if (H.isContextual.call(void 0, oe.ContextualKeyword._infer)) Cy(); else { - let e = w.state.inDisallowConditionalTypesContext; - (w.state.inDisallowConditionalTypesContext = !1), + let e = I.state.inDisallowConditionalTypesContext; + (I.state.inDisallowConditionalTypesContext = !1), by(), - (w.state.inDisallowConditionalTypesContext = e); + (I.state.inDisallowConditionalTypesContext = e); } } function xp() { if ( - (v.eat.call(void 0, T.TokenType.bitwiseAND), + (k.eat.call(void 0, T.TokenType.bitwiseAND), pl(), - v.match.call(void 0, T.TokenType.bitwiseAND)) + k.match.call(void 0, T.TokenType.bitwiseAND)) ) - for (; v.eat.call(void 0, T.TokenType.bitwiseAND); ) pl(); + for (; k.eat.call(void 0, T.TokenType.bitwiseAND); ) pl(); } function wy() { if ( - (v.eat.call(void 0, T.TokenType.bitwiseOR), + (k.eat.call(void 0, T.TokenType.bitwiseOR), xp(), - v.match.call(void 0, T.TokenType.bitwiseOR)) + k.match.call(void 0, T.TokenType.bitwiseOR)) ) - for (; v.eat.call(void 0, T.TokenType.bitwiseOR); ) xp(); + for (; k.eat.call(void 0, T.TokenType.bitwiseOR); ) xp(); } function Sy() { - return v.match.call(void 0, T.TokenType.lessThan) + return k.match.call(void 0, T.TokenType.lessThan) ? !0 - : v.match.call(void 0, T.TokenType.parenL) && Ey(); + : k.match.call(void 0, T.TokenType.parenL) && Ey(); } function Iy() { if ( - v.match.call(void 0, T.TokenType.name) || - v.match.call(void 0, T.TokenType._this) + k.match.call(void 0, T.TokenType.name) || + k.match.call(void 0, T.TokenType._this) ) - return v.next.call(void 0), !0; + return k.next.call(void 0), !0; if ( - v.match.call(void 0, T.TokenType.braceL) || - v.match.call(void 0, T.TokenType.bracketL) + k.match.call(void 0, T.TokenType.braceL) || + k.match.call(void 0, T.TokenType.bracketL) ) { let e = 1; - for (v.next.call(void 0); e > 0 && !w.state.error; ) - v.match.call(void 0, T.TokenType.braceL) || - v.match.call(void 0, T.TokenType.bracketL) + for (k.next.call(void 0); e > 0 && !I.state.error; ) + k.match.call(void 0, T.TokenType.braceL) || + k.match.call(void 0, T.TokenType.bracketL) ? e++ - : (v.match.call(void 0, T.TokenType.braceR) || - v.match.call(void 0, T.TokenType.bracketR)) && + : (k.match.call(void 0, T.TokenType.braceR) || + k.match.call(void 0, T.TokenType.bracketR)) && e--, - v.next.call(void 0); + k.next.call(void 0); return !0; } return !1; } function Ey() { - let e = w.state.snapshot(), + let e = I.state.snapshot(), t = Ay(); - return w.state.restoreFromSnapshot(e), t; + return I.state.restoreFromSnapshot(e), t; } function Ay() { return ( - v.next.call(void 0), + k.next.call(void 0), !!( - v.match.call(void 0, T.TokenType.parenR) || - v.match.call(void 0, T.TokenType.ellipsis) || + k.match.call(void 0, T.TokenType.parenR) || + k.match.call(void 0, T.TokenType.ellipsis) || (Iy() && - (v.match.call(void 0, T.TokenType.colon) || - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.question) || - v.match.call(void 0, T.TokenType.eq) || - (v.match.call(void 0, T.TokenType.parenR) && - (v.next.call(void 0), - v.match.call(void 0, T.TokenType.arrow))))) + (k.match.call(void 0, T.TokenType.colon) || + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.question) || + k.match.call(void 0, T.TokenType.eq) || + (k.match.call(void 0, T.TokenType.parenR) && + (k.next.call(void 0), + k.match.call(void 0, T.TokenType.arrow))))) ) ); } function Qi(e) { - let t = v.pushTypeContext.call(void 0, 0); - U.expect.call(void 0, e), Ry() || rt(), v.popTypeContext.call(void 0, t); + let t = k.pushTypeContext.call(void 0, 0); + H.expect.call(void 0, e), Ry() || rt(), k.popTypeContext.call(void 0, t); } function Py() { - v.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon); + k.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon); } function er() { - v.match.call(void 0, T.TokenType.colon) && tr(); + k.match.call(void 0, T.TokenType.colon) && tr(); } Oe.tsTryParseTypeAnnotation = er; function Ny() { - v.eat.call(void 0, T.TokenType.colon) && rt(); + k.eat.call(void 0, T.TokenType.colon) && rt(); } function Ry() { - let e = w.state.snapshot(); - return U.isContextual.call(void 0, oe.ContextualKeyword._asserts) - ? (v.next.call(void 0), - U.eatContextual.call(void 0, oe.ContextualKeyword._is) + let e = I.state.snapshot(); + return H.isContextual.call(void 0, oe.ContextualKeyword._asserts) + ? (k.next.call(void 0), + H.eatContextual.call(void 0, oe.ContextualKeyword._is) ? (rt(), !0) - : ul() || v.match.call(void 0, T.TokenType._this) - ? (v.next.call(void 0), - U.eatContextual.call(void 0, oe.ContextualKeyword._is) && rt(), + : ul() || k.match.call(void 0, T.TokenType._this) + ? (k.next.call(void 0), + H.eatContextual.call(void 0, oe.ContextualKeyword._is) && rt(), !0) - : (w.state.restoreFromSnapshot(e), !1)) - : ul() || v.match.call(void 0, T.TokenType._this) - ? (v.next.call(void 0), - U.isContextual.call(void 0, oe.ContextualKeyword._is) && - !U.hasPrecedingLineBreak.call(void 0) - ? (v.next.call(void 0), rt(), !0) - : (w.state.restoreFromSnapshot(e), !1)) + : (I.state.restoreFromSnapshot(e), !1)) + : ul() || k.match.call(void 0, T.TokenType._this) + ? (k.next.call(void 0), + H.isContextual.call(void 0, oe.ContextualKeyword._is) && + !H.hasPrecedingLineBreak.call(void 0) + ? (k.next.call(void 0), rt(), !0) + : (I.state.restoreFromSnapshot(e), !1)) : !1; } function tr() { - let e = v.pushTypeContext.call(void 0, 0); - U.expect.call(void 0, T.TokenType.colon), + let e = k.pushTypeContext.call(void 0, 0); + H.expect.call(void 0, T.TokenType.colon), rt(), - v.popTypeContext.call(void 0, e); + k.popTypeContext.call(void 0, e); } Oe.tsParseTypeAnnotation = tr; function rt() { if ( (hl(), - w.state.inDisallowConditionalTypesContext || - U.hasPrecedingLineBreak.call(void 0) || - !v.eat.call(void 0, T.TokenType._extends)) + I.state.inDisallowConditionalTypesContext || + H.hasPrecedingLineBreak.call(void 0) || + !k.eat.call(void 0, T.TokenType._extends)) ) return; - let e = w.state.inDisallowConditionalTypesContext; - (w.state.inDisallowConditionalTypesContext = !0), + let e = I.state.inDisallowConditionalTypesContext; + (I.state.inDisallowConditionalTypesContext = !0), hl(), - (w.state.inDisallowConditionalTypesContext = e), - U.expect.call(void 0, T.TokenType.question), + (I.state.inDisallowConditionalTypesContext = e), + H.expect.call(void 0, T.TokenType.question), rt(), - U.expect.call(void 0, T.TokenType.colon), + H.expect.call(void 0, T.TokenType.colon), rt(); } Oe.tsParseType = rt; function Ly() { return ( - U.isContextual.call(void 0, oe.ContextualKeyword._abstract) && - v.lookaheadType.call(void 0) === T.TokenType._new + H.isContextual.call(void 0, oe.ContextualKeyword._abstract) && + k.lookaheadType.call(void 0) === T.TokenType._new ); } function hl() { @@ -18533,7 +18533,7 @@ If you need interactivity, consider converting part of this to a Client Componen cl(hs.TSFunctionType); return; } - if (v.match.call(void 0, T.TokenType._new)) { + if (k.match.call(void 0, T.TokenType._new)) { cl(hs.TSConstructorType); return; } else if (Ly()) { @@ -18544,168 +18544,168 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsParseNonConditionalType = hl; function Oy() { - let e = v.pushTypeContext.call(void 0, 1); + let e = k.pushTypeContext.call(void 0, 1); rt(), - U.expect.call(void 0, T.TokenType.greaterThan), - v.popTypeContext.call(void 0, e), + H.expect.call(void 0, T.TokenType.greaterThan), + k.popTypeContext.call(void 0, e), _e.parseMaybeUnary.call(void 0); } Oe.tsParseTypeAssertion = Oy; function Dy() { - if (v.eat.call(void 0, T.TokenType.jsxTagStart)) { - w.state.tokens[w.state.tokens.length - 1].type = + if (k.eat.call(void 0, T.TokenType.jsxTagStart)) { + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType.typeParameterStart; - let e = v.pushTypeContext.call(void 0, 1); + let e = k.pushTypeContext.call(void 0, 1); for ( ; - !v.match.call(void 0, T.TokenType.greaterThan) && !w.state.error; + !k.match.call(void 0, T.TokenType.greaterThan) && !I.state.error; ) - rt(), v.eat.call(void 0, T.TokenType.comma); - sy.nextJSXTagToken.call(void 0), v.popTypeContext.call(void 0, e); + rt(), k.eat.call(void 0, T.TokenType.comma); + sy.nextJSXTagToken.call(void 0), k.popTypeContext.call(void 0, e); } } Oe.tsTryParseJSXTypeArgument = Dy; function Ip() { - for (; !v.match.call(void 0, T.TokenType.braceL) && !w.state.error; ) - My(), v.eat.call(void 0, T.TokenType.comma); + for (; !k.match.call(void 0, T.TokenType.braceL) && !I.state.error; ) + My(), k.eat.call(void 0, T.TokenType.comma); } function My() { - Zi(), v.match.call(void 0, T.TokenType.lessThan) && Ti(); + Zi(), k.match.call(void 0, T.TokenType.lessThan) && Ti(); } function Fy() { di.parseBindingIdentifier.call(void 0, !1), mi(), - v.eat.call(void 0, T.TokenType._extends) && Ip(), + k.eat.call(void 0, T.TokenType._extends) && Ip(), Sp(); } function By() { di.parseBindingIdentifier.call(void 0, !1), mi(), - U.expect.call(void 0, T.TokenType.eq), + H.expect.call(void 0, T.TokenType.eq), rt(), - U.semicolon.call(void 0); + H.semicolon.call(void 0); } function Vy() { if ( - (v.match.call(void 0, T.TokenType.string) + (k.match.call(void 0, T.TokenType.string) ? _e.parseLiteral.call(void 0) : _e.parseIdentifier.call(void 0), - v.eat.call(void 0, T.TokenType.eq)) + k.eat.call(void 0, T.TokenType.eq)) ) { - let e = w.state.tokens.length - 1; + let e = I.state.tokens.length - 1; _e.parseMaybeAssign.call(void 0), - (w.state.tokens[e].rhsEndIndex = w.state.tokens.length); + (I.state.tokens[e].rhsEndIndex = I.state.tokens.length); } } function Tl() { for ( di.parseBindingIdentifier.call(void 0, !1), - U.expect.call(void 0, T.TokenType.braceL); - !v.eat.call(void 0, T.TokenType.braceR) && !w.state.error; + H.expect.call(void 0, T.TokenType.braceL); + !k.eat.call(void 0, T.TokenType.braceR) && !I.state.error; ) - Vy(), v.eat.call(void 0, T.TokenType.comma); + Vy(), k.eat.call(void 0, T.TokenType.comma); } function yl() { - U.expect.call(void 0, T.TokenType.braceL), + H.expect.call(void 0, T.TokenType.braceL), Rn.parseBlockBody.call(void 0, T.TokenType.braceR); } function fl() { di.parseBindingIdentifier.call(void 0, !1), - v.eat.call(void 0, T.TokenType.dot) ? fl() : yl(); + k.eat.call(void 0, T.TokenType.dot) ? fl() : yl(); } function Ep() { - U.isContextual.call(void 0, oe.ContextualKeyword._global) + H.isContextual.call(void 0, oe.ContextualKeyword._global) ? _e.parseIdentifier.call(void 0) - : v.match.call(void 0, T.TokenType.string) + : k.match.call(void 0, T.TokenType.string) ? _e.parseExprAtom.call(void 0) - : U.unexpected.call(void 0), - v.match.call(void 0, T.TokenType.braceL) + : H.unexpected.call(void 0), + k.match.call(void 0, T.TokenType.braceL) ? yl() - : U.semicolon.call(void 0); + : H.semicolon.call(void 0); } function Ap() { di.parseImportedIdentifier.call(void 0), - U.expect.call(void 0, T.TokenType.eq), + H.expect.call(void 0, T.TokenType.eq), $y(), - U.semicolon.call(void 0); + H.semicolon.call(void 0); } Oe.tsParseImportEqualsDeclaration = Ap; function jy() { return ( - U.isContextual.call(void 0, oe.ContextualKeyword._require) && - v.lookaheadType.call(void 0) === T.TokenType.parenL + H.isContextual.call(void 0, oe.ContextualKeyword._require) && + k.lookaheadType.call(void 0) === T.TokenType.parenL ); } function $y() { jy() ? qy() : Zi(); } function qy() { - U.expectContextual.call(void 0, oe.ContextualKeyword._require), - U.expect.call(void 0, T.TokenType.parenL), - v.match.call(void 0, T.TokenType.string) || U.unexpected.call(void 0), + H.expectContextual.call(void 0, oe.ContextualKeyword._require), + H.expect.call(void 0, T.TokenType.parenL), + k.match.call(void 0, T.TokenType.string) || H.unexpected.call(void 0), _e.parseLiteral.call(void 0), - U.expect.call(void 0, T.TokenType.parenR); + H.expect.call(void 0, T.TokenType.parenR); } function Ky() { - if (U.isLineTerminator.call(void 0)) return !1; - switch (w.state.type) { + if (H.isLineTerminator.call(void 0)) return !1; + switch (I.state.type) { case T.TokenType._function: { - let e = v.pushTypeContext.call(void 0, 1); - v.next.call(void 0); - let t = w.state.start; + let e = k.pushTypeContext.call(void 0, 1); + k.next.call(void 0); + let t = I.state.start; return ( Rn.parseFunction.call(void 0, t, !0), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), !0 ); } case T.TokenType._class: { - let e = v.pushTypeContext.call(void 0, 1); + let e = k.pushTypeContext.call(void 0, 1); return ( Rn.parseClass.call(void 0, !0, !1), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), !0 ); } case T.TokenType._const: if ( - v.match.call(void 0, T.TokenType._const) && - U.isLookaheadContextual.call(void 0, oe.ContextualKeyword._enum) + k.match.call(void 0, T.TokenType._const) && + H.isLookaheadContextual.call(void 0, oe.ContextualKeyword._enum) ) { - let e = v.pushTypeContext.call(void 0, 1); + let e = k.pushTypeContext.call(void 0, 1); return ( - U.expect.call(void 0, T.TokenType._const), - U.expectContextual.call(void 0, oe.ContextualKeyword._enum), - (w.state.tokens[w.state.tokens.length - 1].type = + H.expect.call(void 0, T.TokenType._const), + H.expectContextual.call(void 0, oe.ContextualKeyword._enum), + (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._enum), Tl(), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), !0 ); } case T.TokenType._var: case T.TokenType._let: { - let e = v.pushTypeContext.call(void 0, 1); + let e = k.pushTypeContext.call(void 0, 1); return ( Rn.parseVarStatement.call( void 0, - w.state.type !== T.TokenType._var + I.state.type !== T.TokenType._var ), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), !0 ); } case T.TokenType.name: { - let e = v.pushTypeContext.call(void 0, 1), - t = w.state.contextualKeyword, + let e = k.pushTypeContext.call(void 0, 1), + t = I.state.contextualKeyword, s = !1; return ( t === oe.ContextualKeyword._global ? (Ep(), (s = !0)) : (s = po(t, !0)), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), s ); } @@ -18714,17 +18714,17 @@ If you need interactivity, consider converting part of this to a Client Componen } } function gp() { - return po(w.state.contextualKeyword, !0); + return po(I.state.contextualKeyword, !0); } function Uy(e) { switch (e) { case oe.ContextualKeyword._declare: { - let t = w.state.tokens.length - 1; - if (Ky()) return (w.state.tokens[t].type = T.TokenType._declare), !0; + let t = I.state.tokens.length - 1; + if (Ky()) return (I.state.tokens[t].type = T.TokenType._declare), !0; break; } case oe.ContextualKeyword._global: - if (v.match.call(void 0, T.TokenType.braceL)) return yl(), !0; + if (k.match.call(void 0, T.TokenType.braceL)) return yl(), !0; break; default: return po(e, !1); @@ -18734,50 +18734,50 @@ If you need interactivity, consider converting part of this to a Client Componen function po(e, t) { switch (e) { case oe.ContextualKeyword._abstract: - if (fi(t) && v.match.call(void 0, T.TokenType._class)) + if (fi(t) && k.match.call(void 0, T.TokenType._class)) return ( - (w.state.tokens[w.state.tokens.length - 1].type = + (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._abstract), Rn.parseClass.call(void 0, !0, !1), !0 ); break; case oe.ContextualKeyword._enum: - if (fi(t) && v.match.call(void 0, T.TokenType.name)) + if (fi(t) && k.match.call(void 0, T.TokenType.name)) return ( - (w.state.tokens[w.state.tokens.length - 1].type = + (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._enum), Tl(), !0 ); break; case oe.ContextualKeyword._interface: - if (fi(t) && v.match.call(void 0, T.TokenType.name)) { - let s = v.pushTypeContext.call(void 0, t ? 2 : 1); - return Fy(), v.popTypeContext.call(void 0, s), !0; + if (fi(t) && k.match.call(void 0, T.TokenType.name)) { + let s = k.pushTypeContext.call(void 0, t ? 2 : 1); + return Fy(), k.popTypeContext.call(void 0, s), !0; } break; case oe.ContextualKeyword._module: if (fi(t)) { - if (v.match.call(void 0, T.TokenType.string)) { - let s = v.pushTypeContext.call(void 0, t ? 2 : 1); - return Ep(), v.popTypeContext.call(void 0, s), !0; - } else if (v.match.call(void 0, T.TokenType.name)) { - let s = v.pushTypeContext.call(void 0, t ? 2 : 1); - return fl(), v.popTypeContext.call(void 0, s), !0; + if (k.match.call(void 0, T.TokenType.string)) { + let s = k.pushTypeContext.call(void 0, t ? 2 : 1); + return Ep(), k.popTypeContext.call(void 0, s), !0; + } else if (k.match.call(void 0, T.TokenType.name)) { + let s = k.pushTypeContext.call(void 0, t ? 2 : 1); + return fl(), k.popTypeContext.call(void 0, s), !0; } } break; case oe.ContextualKeyword._namespace: - if (fi(t) && v.match.call(void 0, T.TokenType.name)) { - let s = v.pushTypeContext.call(void 0, t ? 2 : 1); - return fl(), v.popTypeContext.call(void 0, s), !0; + if (fi(t) && k.match.call(void 0, T.TokenType.name)) { + let s = k.pushTypeContext.call(void 0, t ? 2 : 1); + return fl(), k.popTypeContext.call(void 0, s), !0; } break; case oe.ContextualKeyword._type: - if (fi(t) && v.match.call(void 0, T.TokenType.name)) { - let s = v.pushTypeContext.call(void 0, t ? 2 : 1); - return By(), v.popTypeContext.call(void 0, s), !0; + if (fi(t) && k.match.call(void 0, T.TokenType.name)) { + let s = k.pushTypeContext.call(void 0, t ? 2 : 1); + return By(), k.popTypeContext.call(void 0, s), !0; } break; default: @@ -18786,38 +18786,38 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } function fi(e) { - return e ? (v.next.call(void 0), !0) : !U.isLineTerminator.call(void 0); + return e ? (k.next.call(void 0), !0) : !H.isLineTerminator.call(void 0); } function Hy() { - let e = w.state.snapshot(); + let e = I.state.snapshot(); return ( uo(), Rn.parseFunctionParams.call(void 0), Py(), - U.expect.call(void 0, T.TokenType.arrow), - w.state.error - ? (w.state.restoreFromSnapshot(e), !1) + H.expect.call(void 0, T.TokenType.arrow), + I.state.error + ? (I.state.restoreFromSnapshot(e), !1) : (_e.parseFunctionBody.call(void 0, !0), !0) ); } function kl() { - w.state.type === T.TokenType.bitShiftL && - ((w.state.pos -= 1), v.finishToken.call(void 0, T.TokenType.lessThan)), + I.state.type === T.TokenType.bitShiftL && + ((I.state.pos -= 1), k.finishToken.call(void 0, T.TokenType.lessThan)), Ti(); } function Ti() { - let e = v.pushTypeContext.call(void 0, 0); + let e = k.pushTypeContext.call(void 0, 0); for ( - U.expect.call(void 0, T.TokenType.lessThan); - !v.eat.call(void 0, T.TokenType.greaterThan) && !w.state.error; + H.expect.call(void 0, T.TokenType.lessThan); + !k.eat.call(void 0, T.TokenType.greaterThan) && !I.state.error; ) - rt(), v.eat.call(void 0, T.TokenType.comma); - v.popTypeContext.call(void 0, e); + rt(), k.eat.call(void 0, T.TokenType.comma); + k.popTypeContext.call(void 0, e); } function Wy() { - if (v.match.call(void 0, T.TokenType.name)) - switch (w.state.contextualKeyword) { + if (k.match.call(void 0, T.TokenType.name)) + switch (I.state.contextualKeyword) { case oe.ContextualKeyword._abstract: case oe.ContextualKeyword._declare: case oe.ContextualKeyword._enum: @@ -18834,20 +18834,20 @@ If you need interactivity, consider converting part of this to a Client Componen Oe.tsIsDeclarationStart = Wy; function Gy(e, t) { if ( - (v.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon), - !v.match.call(void 0, T.TokenType.braceL) && - U.isLineTerminator.call(void 0)) + (k.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon), + !k.match.call(void 0, T.TokenType.braceL) && + H.isLineTerminator.call(void 0)) ) { - let s = w.state.tokens.length - 1; + let s = I.state.tokens.length - 1; for ( ; s >= 0 && - (w.state.tokens[s].start >= e || - w.state.tokens[s].type === T.TokenType._default || - w.state.tokens[s].type === T.TokenType._export); + (I.state.tokens[s].start >= e || + I.state.tokens[s].type === T.TokenType._default || + I.state.tokens[s].type === T.TokenType._export); ) - (w.state.tokens[s].isType = !0), s--; + (I.state.tokens[s].isType = !0), s--; return; } _e.parseFunctionBody.call(void 0, !1, t); @@ -18855,71 +18855,71 @@ If you need interactivity, consider converting part of this to a Client Componen Oe.tsParseFunctionBodyAndFinish = Gy; function zy(e, t, s) { if ( - !U.hasPrecedingLineBreak.call(void 0) && - v.eat.call(void 0, T.TokenType.bang) + !H.hasPrecedingLineBreak.call(void 0) && + k.eat.call(void 0, T.TokenType.bang) ) { - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType.nonNullAssertion; return; } if ( - v.match.call(void 0, T.TokenType.lessThan) || - v.match.call(void 0, T.TokenType.bitShiftL) + k.match.call(void 0, T.TokenType.lessThan) || + k.match.call(void 0, T.TokenType.bitShiftL) ) { - let i = w.state.snapshot(); + let i = I.state.snapshot(); if (!t && _e.atPossibleAsync.call(void 0) && Hy()) return; if ( (kl(), - !t && v.eat.call(void 0, T.TokenType.parenL) - ? ((w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = + !t && k.eat.call(void 0, T.TokenType.parenL) + ? ((I.state.tokens[I.state.tokens.length - 1].subscriptStartIndex = e), _e.parseCallExpressionArguments.call(void 0)) - : v.match.call(void 0, T.TokenType.backQuote) + : k.match.call(void 0, T.TokenType.backQuote) ? _e.parseTemplate.call(void 0) - : (w.state.type === T.TokenType.greaterThan || - (w.state.type !== T.TokenType.parenL && - w.state.type & T.TokenType.IS_EXPRESSION_START && - !U.hasPrecedingLineBreak.call(void 0))) && - U.unexpected.call(void 0), - w.state.error) + : (I.state.type === T.TokenType.greaterThan || + (I.state.type !== T.TokenType.parenL && + I.state.type & T.TokenType.IS_EXPRESSION_START && + !H.hasPrecedingLineBreak.call(void 0))) && + H.unexpected.call(void 0), + I.state.error) ) - w.state.restoreFromSnapshot(i); + I.state.restoreFromSnapshot(i); else return; } else !t && - v.match.call(void 0, T.TokenType.questionDot) && - v.lookaheadType.call(void 0) === T.TokenType.lessThan && - (v.next.call(void 0), - (w.state.tokens[e].isOptionalChainStart = !0), - (w.state.tokens[w.state.tokens.length - 1].subscriptStartIndex = e), + k.match.call(void 0, T.TokenType.questionDot) && + k.lookaheadType.call(void 0) === T.TokenType.lessThan && + (k.next.call(void 0), + (I.state.tokens[e].isOptionalChainStart = !0), + (I.state.tokens[I.state.tokens.length - 1].subscriptStartIndex = e), Ti(), - U.expect.call(void 0, T.TokenType.parenL), + H.expect.call(void 0, T.TokenType.parenL), _e.parseCallExpressionArguments.call(void 0)); _e.baseParseSubscript.call(void 0, e, t, s); } Oe.tsParseSubscript = zy; function Xy() { - if (v.eat.call(void 0, T.TokenType._import)) + if (k.eat.call(void 0, T.TokenType._import)) return ( - U.isContextual.call(void 0, oe.ContextualKeyword._type) && - v.lookaheadType.call(void 0) !== T.TokenType.eq && - U.expectContextual.call(void 0, oe.ContextualKeyword._type), + H.isContextual.call(void 0, oe.ContextualKeyword._type) && + k.lookaheadType.call(void 0) !== T.TokenType.eq && + H.expectContextual.call(void 0, oe.ContextualKeyword._type), Ap(), !0 ); - if (v.eat.call(void 0, T.TokenType.eq)) - return _e.parseExpression.call(void 0), U.semicolon.call(void 0), !0; - if (U.eatContextual.call(void 0, oe.ContextualKeyword._as)) + if (k.eat.call(void 0, T.TokenType.eq)) + return _e.parseExpression.call(void 0), H.semicolon.call(void 0), !0; + if (H.eatContextual.call(void 0, oe.ContextualKeyword._as)) return ( - U.expectContextual.call(void 0, oe.ContextualKeyword._namespace), + H.expectContextual.call(void 0, oe.ContextualKeyword._namespace), _e.parseIdentifier.call(void 0), - U.semicolon.call(void 0), + H.semicolon.call(void 0), !0 ); - if (U.isContextual.call(void 0, oe.ContextualKeyword._type)) { - let e = v.lookaheadType.call(void 0); + if (H.isContextual.call(void 0, oe.ContextualKeyword._type)) { + let e = k.lookaheadType.call(void 0); (e === T.TokenType.braceL || e === T.TokenType.star) && - v.next.call(void 0); + k.next.call(void 0); } return !1; } @@ -18927,101 +18927,101 @@ If you need interactivity, consider converting part of this to a Client Componen function Yy() { if ( (_e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.braceR)) + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.braceR)) ) { - w.state.tokens[w.state.tokens.length - 1].identifierRole = - v.IdentifierRole.ImportDeclaration; + I.state.tokens[I.state.tokens.length - 1].identifierRole = + k.IdentifierRole.ImportDeclaration; return; } if ( (_e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.braceR)) + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.braceR)) ) { - (w.state.tokens[w.state.tokens.length - 1].identifierRole = - v.IdentifierRole.ImportDeclaration), - (w.state.tokens[w.state.tokens.length - 2].isType = !0), - (w.state.tokens[w.state.tokens.length - 1].isType = !0); + (I.state.tokens[I.state.tokens.length - 1].identifierRole = + k.IdentifierRole.ImportDeclaration), + (I.state.tokens[I.state.tokens.length - 2].isType = !0), + (I.state.tokens[I.state.tokens.length - 1].isType = !0); return; } if ( (_e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.braceR)) + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.braceR)) ) { - (w.state.tokens[w.state.tokens.length - 3].identifierRole = - v.IdentifierRole.ImportAccess), - (w.state.tokens[w.state.tokens.length - 1].identifierRole = - v.IdentifierRole.ImportDeclaration); + (I.state.tokens[I.state.tokens.length - 3].identifierRole = + k.IdentifierRole.ImportAccess), + (I.state.tokens[I.state.tokens.length - 1].identifierRole = + k.IdentifierRole.ImportDeclaration); return; } _e.parseIdentifier.call(void 0), - (w.state.tokens[w.state.tokens.length - 3].identifierRole = - v.IdentifierRole.ImportAccess), - (w.state.tokens[w.state.tokens.length - 1].identifierRole = - v.IdentifierRole.ImportDeclaration), - (w.state.tokens[w.state.tokens.length - 4].isType = !0), - (w.state.tokens[w.state.tokens.length - 3].isType = !0), - (w.state.tokens[w.state.tokens.length - 2].isType = !0), - (w.state.tokens[w.state.tokens.length - 1].isType = !0); + (I.state.tokens[I.state.tokens.length - 3].identifierRole = + k.IdentifierRole.ImportAccess), + (I.state.tokens[I.state.tokens.length - 1].identifierRole = + k.IdentifierRole.ImportDeclaration), + (I.state.tokens[I.state.tokens.length - 4].isType = !0), + (I.state.tokens[I.state.tokens.length - 3].isType = !0), + (I.state.tokens[I.state.tokens.length - 2].isType = !0), + (I.state.tokens[I.state.tokens.length - 1].isType = !0); } Oe.tsParseImportSpecifier = Yy; function Jy() { if ( (_e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.braceR)) + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.braceR)) ) { - w.state.tokens[w.state.tokens.length - 1].identifierRole = - v.IdentifierRole.ExportAccess; + I.state.tokens[I.state.tokens.length - 1].identifierRole = + k.IdentifierRole.ExportAccess; return; } if ( (_e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.braceR)) + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.braceR)) ) { - (w.state.tokens[w.state.tokens.length - 1].identifierRole = - v.IdentifierRole.ExportAccess), - (w.state.tokens[w.state.tokens.length - 2].isType = !0), - (w.state.tokens[w.state.tokens.length - 1].isType = !0); + (I.state.tokens[I.state.tokens.length - 1].identifierRole = + k.IdentifierRole.ExportAccess), + (I.state.tokens[I.state.tokens.length - 2].isType = !0), + (I.state.tokens[I.state.tokens.length - 1].isType = !0); return; } if ( (_e.parseIdentifier.call(void 0), - v.match.call(void 0, T.TokenType.comma) || - v.match.call(void 0, T.TokenType.braceR)) + k.match.call(void 0, T.TokenType.comma) || + k.match.call(void 0, T.TokenType.braceR)) ) { - w.state.tokens[w.state.tokens.length - 3].identifierRole = - v.IdentifierRole.ExportAccess; + I.state.tokens[I.state.tokens.length - 3].identifierRole = + k.IdentifierRole.ExportAccess; return; } _e.parseIdentifier.call(void 0), - (w.state.tokens[w.state.tokens.length - 3].identifierRole = - v.IdentifierRole.ExportAccess), - (w.state.tokens[w.state.tokens.length - 4].isType = !0), - (w.state.tokens[w.state.tokens.length - 3].isType = !0), - (w.state.tokens[w.state.tokens.length - 2].isType = !0), - (w.state.tokens[w.state.tokens.length - 1].isType = !0); + (I.state.tokens[I.state.tokens.length - 3].identifierRole = + k.IdentifierRole.ExportAccess), + (I.state.tokens[I.state.tokens.length - 4].isType = !0), + (I.state.tokens[I.state.tokens.length - 3].isType = !0), + (I.state.tokens[I.state.tokens.length - 2].isType = !0), + (I.state.tokens[I.state.tokens.length - 1].isType = !0); } Oe.tsParseExportSpecifier = Jy; function Qy() { if ( - U.isContextual.call(void 0, oe.ContextualKeyword._abstract) && - v.lookaheadType.call(void 0) === T.TokenType._class + H.isContextual.call(void 0, oe.ContextualKeyword._abstract) && + k.lookaheadType.call(void 0) === T.TokenType._class ) return ( - (w.state.type = T.TokenType._abstract), - v.next.call(void 0), + (I.state.type = T.TokenType._abstract), + k.next.call(void 0), Rn.parseClass.call(void 0, !0, !0), !0 ); - if (U.isContextual.call(void 0, oe.ContextualKeyword._interface)) { - let e = v.pushTypeContext.call(void 0, 2); + if (H.isContextual.call(void 0, oe.ContextualKeyword._interface)) { + let e = k.pushTypeContext.call(void 0, 2); return ( po(oe.ContextualKeyword._interface, !0), - v.popTypeContext.call(void 0, e), + k.popTypeContext.call(void 0, e), !0 ); } @@ -19029,16 +19029,16 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsTryParseExportDefaultExpression = Qy; function Zy() { - if (w.state.type === T.TokenType._const) { - let e = v.lookaheadTypeAndKeyword.call(void 0); + if (I.state.type === T.TokenType._const) { + let e = k.lookaheadTypeAndKeyword.call(void 0); if ( e.type === T.TokenType.name && e.contextualKeyword === oe.ContextualKeyword._enum ) return ( - U.expect.call(void 0, T.TokenType._const), - U.expectContextual.call(void 0, oe.ContextualKeyword._enum), - (w.state.tokens[w.state.tokens.length - 1].type = + H.expect.call(void 0, T.TokenType._const), + H.expectContextual.call(void 0, oe.ContextualKeyword._enum), + (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._enum), Tl(), !0 @@ -19048,7 +19048,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsTryParseStatementContent = Zy; function ek(e) { - let t = w.state.tokens.length; + let t = I.state.tokens.length; bp([ oe.ContextualKeyword._abstract, oe.ContextualKeyword._readonly, @@ -19056,48 +19056,48 @@ If you need interactivity, consider converting part of this to a Client Componen oe.ContextualKeyword._static, oe.ContextualKeyword._override, ]); - let s = w.state.tokens.length; + let s = I.state.tokens.length; if (wp()) { let r = e ? t - 1 : t; - for (let a = r; a < s; a++) w.state.tokens[a].isType = !0; + for (let a = r; a < s; a++) I.state.tokens[a].isType = !0; return !0; } return !1; } Oe.tsTryParseClassMemberWithIsStatic = ek; function tk(e) { - Uy(e) || U.semicolon.call(void 0); + Uy(e) || H.semicolon.call(void 0); } Oe.tsParseIdentifierStatement = tk; function nk() { - let e = U.eatContextual.call(void 0, oe.ContextualKeyword._declare); + let e = H.eatContextual.call(void 0, oe.ContextualKeyword._declare); e && - (w.state.tokens[w.state.tokens.length - 1].type = T.TokenType._declare); + (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._declare); let t = !1; - if (v.match.call(void 0, T.TokenType.name)) + if (k.match.call(void 0, T.TokenType.name)) if (e) { - let s = v.pushTypeContext.call(void 0, 2); - (t = gp()), v.popTypeContext.call(void 0, s); + let s = k.pushTypeContext.call(void 0, 2); + (t = gp()), k.popTypeContext.call(void 0, s); } else t = gp(); if (!t) if (e) { - let s = v.pushTypeContext.call(void 0, 2); - Rn.parseStatement.call(void 0, !0), v.popTypeContext.call(void 0, s); + let s = k.pushTypeContext.call(void 0, 2); + Rn.parseStatement.call(void 0, !0), k.popTypeContext.call(void 0, s); } else Rn.parseStatement.call(void 0, !0); } Oe.tsParseExportDeclaration = nk; function sk(e) { if ( (e && - (v.match.call(void 0, T.TokenType.lessThan) || - v.match.call(void 0, T.TokenType.bitShiftL)) && + (k.match.call(void 0, T.TokenType.lessThan) || + k.match.call(void 0, T.TokenType.bitShiftL)) && kl(), - U.eatContextual.call(void 0, oe.ContextualKeyword._implements)) + H.eatContextual.call(void 0, oe.ContextualKeyword._implements)) ) { - w.state.tokens[w.state.tokens.length - 1].type = + I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._implements; - let t = v.pushTypeContext.call(void 0, 1); - Ip(), v.popTypeContext.call(void 0, t); + let t = k.pushTypeContext.call(void 0, 1); + Ip(), k.popTypeContext.call(void 0, t); } } Oe.tsAfterParseClassSuper = sk; @@ -19110,70 +19110,70 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsStartParseFunctionParams = rk; function ok() { - let e = v.pushTypeContext.call(void 0, 0); - U.hasPrecedingLineBreak.call(void 0) || - v.eat.call(void 0, T.TokenType.bang), + let e = k.pushTypeContext.call(void 0, 0); + H.hasPrecedingLineBreak.call(void 0) || + k.eat.call(void 0, T.TokenType.bang), er(), - v.popTypeContext.call(void 0, e); + k.popTypeContext.call(void 0, e); } Oe.tsAfterParseVarHead = ok; function ak() { - v.match.call(void 0, T.TokenType.colon) && tr(); + k.match.call(void 0, T.TokenType.colon) && tr(); } Oe.tsStartParseAsyncArrowFromCallExpression = ak; function lk(e, t) { - return w.isJSXEnabled ? Pp(e, t) : Np(e, t); + return I.isJSXEnabled ? Pp(e, t) : Np(e, t); } Oe.tsParseMaybeAssign = lk; function Pp(e, t) { - if (!v.match.call(void 0, T.TokenType.lessThan)) + if (!k.match.call(void 0, T.TokenType.lessThan)) return _e.baseParseMaybeAssign.call(void 0, e, t); - let s = w.state.snapshot(), + let s = I.state.snapshot(), i = _e.baseParseMaybeAssign.call(void 0, e, t); - if (w.state.error) w.state.restoreFromSnapshot(s); + if (I.state.error) I.state.restoreFromSnapshot(s); else return i; return ( - (w.state.type = T.TokenType.typeParameterStart), + (I.state.type = T.TokenType.typeParameterStart), uo(), (i = _e.baseParseMaybeAssign.call(void 0, e, t)), - i || U.unexpected.call(void 0), + i || H.unexpected.call(void 0), i ); } Oe.tsParseMaybeAssignWithJSX = Pp; function Np(e, t) { - if (!v.match.call(void 0, T.TokenType.lessThan)) + if (!k.match.call(void 0, T.TokenType.lessThan)) return _e.baseParseMaybeAssign.call(void 0, e, t); - let s = w.state.snapshot(); + let s = I.state.snapshot(); uo(); let i = _e.baseParseMaybeAssign.call(void 0, e, t); - if ((i || U.unexpected.call(void 0), w.state.error)) - w.state.restoreFromSnapshot(s); + if ((i || H.unexpected.call(void 0), I.state.error)) + I.state.restoreFromSnapshot(s); else return i; return _e.baseParseMaybeAssign.call(void 0, e, t); } Oe.tsParseMaybeAssignWithoutJSX = Np; function ck() { - if (v.match.call(void 0, T.TokenType.colon)) { - let e = w.state.snapshot(); + if (k.match.call(void 0, T.TokenType.colon)) { + let e = I.state.snapshot(); Qi(T.TokenType.colon), - U.canInsertSemicolon.call(void 0) && U.unexpected.call(void 0), - v.match.call(void 0, T.TokenType.arrow) || U.unexpected.call(void 0), - w.state.error && w.state.restoreFromSnapshot(e); + H.canInsertSemicolon.call(void 0) && H.unexpected.call(void 0), + k.match.call(void 0, T.TokenType.arrow) || H.unexpected.call(void 0), + I.state.error && I.state.restoreFromSnapshot(e); } - return v.eat.call(void 0, T.TokenType.arrow); + return k.eat.call(void 0, T.TokenType.arrow); } Oe.tsParseArrow = ck; function uk() { - let e = v.pushTypeContext.call(void 0, 0); - v.eat.call(void 0, T.TokenType.question), + let e = k.pushTypeContext.call(void 0, 0); + k.eat.call(void 0, T.TokenType.question), er(), - v.popTypeContext.call(void 0, e); + k.popTypeContext.call(void 0, e); } Oe.tsParseAssignableListItemTypes = uk; function pk() { - (v.match.call(void 0, T.TokenType.lessThan) || - v.match.call(void 0, T.TokenType.bitShiftL)) && + (k.match.call(void 0, T.TokenType.lessThan) || + k.match.call(void 0, T.TokenType.bitShiftL)) && kl(), Rn.baseParseMaybeDecoratorArguments.call(void 0); } @@ -22081,12 +22081,12 @@ If you need interactivity, consider converting part of this to a Client Componen function Ov(e, t, s, i) { let r = t.snapshot(), a = Dv(t), - p = [], + u = [], d = [], y = [], - k = null, - A = [], - u = [], + g = null, + L = [], + p = [], f = t.currentToken().contextId; if (f == null) throw new Error( @@ -22097,29 +22097,29 @@ If you need interactivity, consider converting part of this to a Client Componen t.matchesContextual(Ih.ContextualKeyword._constructor) && !t.currentToken().isType ) - ({constructorInitializerStatements: p, constructorInsertPos: k} = + ({constructorInitializerStatements: u, constructorInsertPos: g} = Eh(t)); else if (t.matches1(Ne.TokenType.semi)) - i || u.push({start: t.currentIndex(), end: t.currentIndex() + 1}), + i || p.push({start: t.currentIndex(), end: t.currentIndex() + 1}), t.nextToken(); else if (t.currentToken().isType) t.nextToken(); else { - let x = t.currentIndex(), - g = !1, - S = !1, - E = !1; + let v = t.currentIndex(), + x = !1, + w = !1, + S = !1; for (; No(t.currentToken()); ) - t.matches1(Ne.TokenType._static) && (g = !0), - t.matches1(Ne.TokenType.hash) && (S = !0), + t.matches1(Ne.TokenType._static) && (x = !0), + t.matches1(Ne.TokenType.hash) && (w = !0), (t.matches1(Ne.TokenType._declare) || t.matches1(Ne.TokenType._abstract)) && - (E = !0), + (S = !0), t.nextToken(); - if (g && t.matches1(Ne.TokenType.braceL)) { + if (x && t.matches1(Ne.TokenType.braceL)) { Jl(t, f); continue; } - if (S) { + if (w) { Jl(t, f); continue; } @@ -22127,11 +22127,11 @@ If you need interactivity, consider converting part of this to a Client Componen t.matchesContextual(Ih.ContextualKeyword._constructor) && !t.currentToken().isType ) { - ({constructorInitializerStatements: p, constructorInsertPos: k} = + ({constructorInitializerStatements: u, constructorInsertPos: g} = Eh(t)); continue; } - let L = t.currentIndex(); + let A = t.currentIndex(); if ( (Mv(t), t.matches1(Ne.TokenType.lessThan) || @@ -22142,7 +22142,7 @@ If you need interactivity, consider converting part of this to a Client Componen } for (; t.currentToken().isType; ) t.nextToken(); if (t.matches1(Ne.TokenType.eq)) { - let H = t.currentIndex(), + let U = t.currentIndex(), D = t.currentToken().rhsEndIndex; if (D == null) throw new Error( @@ -22150,37 +22150,37 @@ If you need interactivity, consider converting part of this to a Client Componen ); for (t.nextToken(); t.currentIndex() < D; ) e.processToken(); let c; - g + x ? ((c = s.claimFreeName('__initStatic')), y.push(c)) : ((c = s.claimFreeName('__init')), d.push(c)), - A.push({ + L.push({ initializerName: c, - equalsIndex: H, - start: L, + equalsIndex: U, + start: A, end: t.currentIndex(), }); - } else (!i || E) && u.push({start: x, end: t.currentIndex()}); + } else (!i || S) && p.push({start: v, end: t.currentIndex()}); } return ( t.restoreToSnapshot(r), i ? { headerInfo: a, - constructorInitializerStatements: p, + constructorInitializerStatements: u, instanceInitializerNames: [], staticInitializerNames: [], - constructorInsertPos: k, + constructorInsertPos: g, fields: [], - rangesToRemove: u, + rangesToRemove: p, } : { headerInfo: a, - constructorInitializerStatements: p, + constructorInitializerStatements: u, instanceInitializerNames: d, staticInitializerNames: y, - constructorInsertPos: k, - fields: A, - rangesToRemove: u, + constructorInsertPos: g, + fields: L, + rangesToRemove: p, } ); } @@ -22226,8 +22226,8 @@ If you need interactivity, consider converting part of this to a Client Componen throw new Error( 'Expected identifier after access modifiers in constructor arg.' ); - let p = e.identifierNameForToken(a); - t.push(`this.${p} = ${p}`); + let u = e.identifierNameForToken(a); + t.push(`this.${u} = ${u}`); } } else e.nextToken(); e.nextToken(); @@ -22354,8 +22354,8 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; let a = t.tokenAtRelativeIndex(2); if (a.type !== Rh.TokenType.name) return !1; - let p = t.identifierNameForToken(a); - return s.typeDeclarations.has(p) && !s.valueDeclarations.has(p); + let u = t.identifierNameForToken(a); + return s.typeDeclarations.has(u) && !s.valueDeclarations.has(u); } ic.default = Uv; }); @@ -22389,22 +22389,22 @@ If you need interactivity, consider converting part of this to a Client Componen __init3() { this.hadDefaultExport = !1; } - constructor(t, s, i, r, a, p, d, y, k, A) { + constructor(t, s, i, r, a, u, d, y, g, L) { super(), (this.rootTransformer = t), (this.tokens = s), (this.importProcessor = i), (this.nameManager = r), (this.helperManager = a), - (this.reactHotLoaderTransformer = p), + (this.reactHotLoaderTransformer = u), (this.enableLegacyBabel5ModuleInterop = d), (this.enableLegacyTypeScriptModuleInterop = y), - (this.isTypeScriptTransformEnabled = k), - (this.preserveDynamicImport = A), + (this.isTypeScriptTransformEnabled = g), + (this.preserveDynamicImport = L), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), - (this.declarationInfo = k + (this.declarationInfo = g ? Gv.default.call(void 0, s) : Lh.EMPTY_DECLARATION_INFO); } @@ -22739,13 +22739,13 @@ module.exports = exports.default; let r = this.tokens.identifierNameForToken(s), a = this.importProcessor.resolveExportBinding(r); if (!a) return !1; - let p = this.tokens.rawCodeForToken(i), + let u = this.tokens.rawCodeForToken(i), d = this.importProcessor.getIdentifierReplacement(r) || r; - if (p === '++') + if (u === '++') this.tokens.replaceToken(`(${d} = ${a} = ${d} + 1, ${d} - 1)`); - else if (p === '--') + else if (u === '--') this.tokens.replaceToken(`(${d} = ${a} = ${d} - 1, ${d} + 1)`); - else throw new Error(`Unexpected operator: ${p}`); + else throw new Error(`Unexpected operator: ${u}`); return this.tokens.removeToken(), !0; } processExportDefault() { @@ -23059,7 +23059,7 @@ module.exports = exports.default; ax = hn(), lx = pr(ax), lc = class extends lx.default { - constructor(t, s, i, r, a, p) { + constructor(t, s, i, r, a, u) { super(), (this.tokens = t), (this.nameManager = s), @@ -23067,13 +23067,13 @@ module.exports = exports.default; (this.reactHotLoaderTransformer = r), (this.isTypeScriptTransformEnabled = a), (this.nonTypeIdentifiers = a - ? ix.getNonTypeIdentifiers.call(void 0, t, p) + ? ix.getNonTypeIdentifiers.call(void 0, t, u) : new Set()), (this.declarationInfo = a ? nx.default.call(void 0, t) : Fh.EMPTY_DECLARATION_INFO), (this.injectCreateRequireForImportRequire = - !!p.injectCreateRequireForImportRequire); + !!u.injectCreateRequireForImportRequire); } process() { if ( @@ -23477,7 +23477,7 @@ module.exports = exports.default; r === 'access' || r === 'optionalAccess' ? ((t = s), (s = a(s))) : (r === 'call' || r === 'optionalCall') && - ((s = a((...p) => s.call(t, ...p))), (t = void 0)); + ((s = a((...u) => s.call(t, ...u))), (t = void 0)); } return s; } @@ -24215,7 +24215,7 @@ ${s.map( e.prototype.__init2.call(this), (this.nameManager = t.nameManager), (this.helperManager = t.helperManager); - let {tokenProcessor: a, importProcessor: p} = t; + let {tokenProcessor: a, importProcessor: u} = t; (this.tokens = a), (this.isImportsTransformEnabled = s.includes('imports')), (this.isReactHotLoaderTransformEnabled = @@ -24228,9 +24228,9 @@ ${s.map( s.includes('jsx') && (r.jsxRuntime !== 'preserve' && this.transformers.push( - new Yx.default(this, a, p, this.nameManager, r) + new Yx.default(this, a, u, this.nameManager, r) ), - this.transformers.push(new ig.default(this, a, p, r))); + this.transformers.push(new ig.default(this, a, u, r))); let d = null; if (s.includes('react-hot-loader')) { if (!r.filePath) @@ -24240,7 +24240,7 @@ ${s.map( (d = new og.default(a, r.filePath)), this.transformers.push(d); } if (s.includes('imports')) { - if (p === null) + if (u === null) throw new Error( 'Expected non-null importProcessor with imports transform enabled.' ); @@ -24248,7 +24248,7 @@ ${s.map( new qx.default( this, a, - p, + u, this.nameManager, this.helperManager, d, @@ -24279,30 +24279,30 @@ ${s.map( ), s.includes('jest') && this.transformers.push( - new zx.default(this, a, this.nameManager, p) + new zx.default(this, a, this.nameManager, u) ); } transform() { this.tokens.reset(), this.processBalancedCode(); let s = this.isImportsTransformEnabled ? '"use strict";' : ''; - for (let p of this.transformers) s += p.getPrefixCode(); + for (let u of this.transformers) s += u.getPrefixCode(); (s += this.helperManager.emitHelpers()), - (s += this.generatedVariables.map((p) => ` var ${p};`).join('')); - for (let p of this.transformers) s += p.getHoistedCode(); + (s += this.generatedVariables.map((u) => ` var ${u};`).join('')); + for (let u of this.transformers) s += u.getHoistedCode(); let i = ''; - for (let p of this.transformers) i += p.getSuffixCode(); + for (let u of this.transformers) i += u.getSuffixCode(); let r = this.tokens.finish(), {code: a} = r; if (a.startsWith('#!')) { - let p = a.indexOf(` + let u = a.indexOf(` `); return ( - p === -1 && - ((p = a.length), + u === -1 && + ((u = a.length), (a += ` `)), { - code: a.slice(0, p + 1) + s + a.slice(p + 1) + i, + code: a.slice(0, u + 1) + s + a.slice(u + 1) + i, mappings: this.shiftMappings(r.mappings, s.length), } ); @@ -24377,27 +24377,27 @@ ${s.map( ) this.processToken(); this.processClassBody(t, i); - let p = t.staticInitializerNames.map((d) => `${i}.${d}()`); + let u = t.staticInitializerNames.map((d) => `${i}.${d}()`); s ? this.tokens.appendCode( - `, ${p.map((d) => `${d}, `).join('')}${i})` + `, ${u.map((d) => `${d}, `).join('')}${i})` ) : t.staticInitializerNames.length > 0 && - this.tokens.appendCode(` ${p.map((d) => `${d};`).join(' ')}`); + this.tokens.appendCode(` ${u.map((d) => `${d};`).join(' ')}`); } processClassBody(t, s) { let { headerInfo: i, constructorInsertPos: r, constructorInitializerStatements: a, - fields: p, + fields: u, instanceInitializerNames: d, rangesToRemove: y, } = t, - k = 0, - A = 0, - u = this.tokens.currentToken().contextId; - if (u == null) + g = 0, + L = 0, + p = this.tokens.currentToken().contextId; + if (p == null) throw new Error('Expected non-null context ID on class.'); this.tokens.copyExpectedToken(lt.TokenType.braceL), this.isReactHotLoaderTransformEnabled && @@ -24406,55 +24406,55 @@ ${s.map( ); let f = a.length + d.length > 0; if (r === null && f) { - let x = this.makeConstructorInitCode(a, d, s); + let v = this.makeConstructorInitCode(a, d, s); if (i.hasSuperclass) { - let g = this.nameManager.claimFreeName('args'); + let x = this.nameManager.claimFreeName('args'); this.tokens.appendCode( - `constructor(...${g}) { super(...${g}); ${x}; }` + `constructor(...${x}) { super(...${x}); ${v}; }` ); - } else this.tokens.appendCode(`constructor() { ${x}; }`); + } else this.tokens.appendCode(`constructor() { ${v}; }`); } for ( ; - !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceR, u); + !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceR, p); ) - if (k < p.length && this.tokens.currentIndex() === p[k].start) { - let x = !1; + if (g < u.length && this.tokens.currentIndex() === u[g].start) { + let v = !1; for ( this.tokens.matches1(lt.TokenType.bracketL) ? this.tokens.copyTokenWithPrefix( - `${p[k].initializerName}() {this` + `${u[g].initializerName}() {this` ) : this.tokens.matches1(lt.TokenType.string) || this.tokens.matches1(lt.TokenType.num) ? (this.tokens.copyTokenWithPrefix( - `${p[k].initializerName}() {this[` + `${u[g].initializerName}() {this[` ), - (x = !0)) + (v = !0)) : this.tokens.copyTokenWithPrefix( - `${p[k].initializerName}() {this.` + `${u[g].initializerName}() {this.` ); - this.tokens.currentIndex() < p[k].end; + this.tokens.currentIndex() < u[g].end; ) - x && - this.tokens.currentIndex() === p[k].equalsIndex && + v && + this.tokens.currentIndex() === u[g].equalsIndex && this.tokens.appendCode(']'), this.processToken(); - this.tokens.appendCode('}'), k++; + this.tokens.appendCode('}'), g++; } else if ( - A < y.length && - this.tokens.currentIndex() >= y[A].start + L < y.length && + this.tokens.currentIndex() >= y[L].start ) { for ( - this.tokens.currentIndex() < y[A].end && + this.tokens.currentIndex() < y[L].end && this.tokens.removeInitialToken(); - this.tokens.currentIndex() < y[A].end; + this.tokens.currentIndex() < y[L].end; ) this.tokens.removeToken(); - A++; + L++; } else this.tokens.currentIndex() === r ? (this.tokens.copyToken(), @@ -24618,31 +24618,31 @@ ${s.map( ), r = ['Location', 'Label', 'Raw', ...s, ...i], a = new pg.default(e), - p = [r, ...t.map(y)], + u = [r, ...t.map(y)], d = r.map(() => 0); - for (let f of p) - for (let x = 0; x < f.length; x++) d[x] = Math.max(d[x], f[x].length); - return p.map((f) => f.map((x, g) => x.padEnd(d[g])).join(' ')).join(` + for (let f of u) + for (let v = 0; v < f.length; v++) d[v] = Math.max(d[v], f[v].length); + return u.map((f) => f.map((v, x) => v.padEnd(d[x])).join(' ')).join(` `); function y(f) { - let x = e.slice(f.start, f.end); + let v = e.slice(f.start, f.end); return [ - A(f.start, f.end), + L(f.start, f.end), hg.formatTokenType.call(void 0, f.type), - dg(String(x), 14), - ...s.map((g) => k(f[g], g)), - ...i.map((g) => k(f.type[g], g)), + dg(String(v), 14), + ...s.map((x) => g(f[x], x)), + ...i.map((x) => g(f.type[x], x)), ]; } - function k(f, x) { - return f === !0 ? x : f === !1 || f === null ? '' : String(f); + function g(f, v) { + return f === !0 ? v : f === !1 || f === null ? '' : String(f); } - function A(f, x) { - return `${u(f)}-${u(x)}`; + function L(f, v) { + return `${p(f)}-${p(v)}`; } - function u(f) { - let x = a.locationForIndex(f); - return x ? `${x.line + 1}:${x.column + 1}` : 'Unknown'; + function p(f) { + let v = a.locationForIndex(f); + return v ? `${v.line + 1}:${v.column + 1}` : 'Unknown'; } } Ac.default = fg; @@ -24778,35 +24778,35 @@ ${s.map( i = t.transforms.includes('typescript'), r = t.transforms.includes('flow'), a = t.disableESTransforms === !0, - p = Pg.parse.call(void 0, e, s, i, r), - d = p.tokens, - y = p.scopes, - k = new Eg.default(e, d), - A = new wg.HelperManager(k), - u = new Rg.default(e, d, r, a, A), + u = Pg.parse.call(void 0, e, s, i, r), + d = u.tokens, + y = u.scopes, + g = new Eg.default(e, d), + L = new wg.HelperManager(g), + p = new Rg.default(e, d, r, a, L), f = !!t.enableLegacyTypeScriptModuleInterop, - x = null; + v = null; return ( t.transforms.includes('imports') - ? ((x = new _g.default( - k, - u, + ? ((v = new _g.default( + g, + p, f, t, t.transforms.includes('typescript'), - A + L )), - x.preprocessTokens(), - lf.default.call(void 0, u, y, x.getGlobalNames()), - t.transforms.includes('typescript') && x.pruneTypeOnlyImports()) + v.preprocessTokens(), + lf.default.call(void 0, p, y, v.getGlobalNames()), + t.transforms.includes('typescript') && v.pruneTypeOnlyImports()) : t.transforms.includes('typescript') && - lf.default.call(void 0, u, y, Bg.default.call(void 0, u)), + lf.default.call(void 0, p, y, Bg.default.call(void 0, p)), { - tokenProcessor: u, + tokenProcessor: p, scopes: y, - nameManager: k, - importProcessor: x, - helperManager: A, + nameManager: g, + importProcessor: v, + helperManager: L, } ); } @@ -24885,17 +24885,17 @@ ${s.map( 'implements interface let package private protected public static yield', strictBind: 'eval arguments', }, - p = + u = 'break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this', d = { - 5: p, - '5module': p + ' export import', - 6: p + ' const class extends export import super', + 5: u, + '5module': u + ' export import', + 6: u + ' const class extends export import super', }, y = /^in(stanceof)?$/, - k = new RegExp('[' + r + ']'), - A = new RegExp('[' + r + i + ']'); - function u(n, o) { + g = new RegExp('[' + r + ']'), + L = new RegExp('[' + r + i + ']'); + function p(n, o) { for (var l = 65536, h = 0; h < o.length; h += 2) { if (((l += o[h]), l > n)) return !1; if (((l += o[h + 1]), l >= n)) return !0; @@ -24912,12 +24912,12 @@ ${s.map( : n < 123 ? !0 : n <= 65535 - ? n >= 170 && k.test(String.fromCharCode(n)) + ? n >= 170 && g.test(String.fromCharCode(n)) : o === !1 ? !1 - : u(n, s); + : p(n, s); } - function x(n, o) { + function v(n, o) { return n < 48 ? n === 36 : n < 58 @@ -24931,12 +24931,12 @@ ${s.map( : n < 123 ? !0 : n <= 65535 - ? n >= 170 && A.test(String.fromCharCode(n)) + ? n >= 170 && L.test(String.fromCharCode(n)) : o === !1 ? !1 - : u(n, s) || u(n, t); + : p(n, s) || p(n, t); } - var g = function (o, l) { + var x = function (o, l) { l === void 0 && (l = {}), (this.label = o), (this.keyword = l.keyword), @@ -24949,93 +24949,93 @@ ${s.map( (this.binop = l.binop || null), (this.updateContext = null); }; - function S(n, o) { - return new g(n, {beforeExpr: !0, binop: o}); + function w(n, o) { + return new x(n, {beforeExpr: !0, binop: o}); } - var E = {beforeExpr: !0}, - L = {startsExpr: !0}, - H = {}; + var S = {beforeExpr: !0}, + A = {startsExpr: !0}, + U = {}; function D(n, o) { - return o === void 0 && (o = {}), (o.keyword = n), (H[n] = new g(n, o)); + return o === void 0 && (o = {}), (o.keyword = n), (U[n] = new x(n, o)); } var c = { - num: new g('num', L), - regexp: new g('regexp', L), - string: new g('string', L), - name: new g('name', L), - privateId: new g('privateId', L), - eof: new g('eof'), - bracketL: new g('[', {beforeExpr: !0, startsExpr: !0}), - bracketR: new g(']'), - braceL: new g('{', {beforeExpr: !0, startsExpr: !0}), - braceR: new g('}'), - parenL: new g('(', {beforeExpr: !0, startsExpr: !0}), - parenR: new g(')'), - comma: new g(',', E), - semi: new g(';', E), - colon: new g(':', E), - dot: new g('.'), - question: new g('?', E), - questionDot: new g('?.'), - arrow: new g('=>', E), - template: new g('template'), - invalidTemplate: new g('invalidTemplate'), - ellipsis: new g('...', E), - backQuote: new g('`', L), - dollarBraceL: new g('${', {beforeExpr: !0, startsExpr: !0}), - eq: new g('=', {beforeExpr: !0, isAssign: !0}), - assign: new g('_=', {beforeExpr: !0, isAssign: !0}), - incDec: new g('++/--', {prefix: !0, postfix: !0, startsExpr: !0}), - prefix: new g('!/~', {beforeExpr: !0, prefix: !0, startsExpr: !0}), - logicalOR: S('||', 1), - logicalAND: S('&&', 2), - bitwiseOR: S('|', 3), - bitwiseXOR: S('^', 4), - bitwiseAND: S('&', 5), - equality: S('==/!=/===/!==', 6), - relational: S('/<=/>=', 7), - bitShift: S('<>/>>>', 8), - plusMin: new g('+/-', { + num: new x('num', A), + regexp: new x('regexp', A), + string: new x('string', A), + name: new x('name', A), + privateId: new x('privateId', A), + eof: new x('eof'), + bracketL: new x('[', {beforeExpr: !0, startsExpr: !0}), + bracketR: new x(']'), + braceL: new x('{', {beforeExpr: !0, startsExpr: !0}), + braceR: new x('}'), + parenL: new x('(', {beforeExpr: !0, startsExpr: !0}), + parenR: new x(')'), + comma: new x(',', S), + semi: new x(';', S), + colon: new x(':', S), + dot: new x('.'), + question: new x('?', S), + questionDot: new x('?.'), + arrow: new x('=>', S), + template: new x('template'), + invalidTemplate: new x('invalidTemplate'), + ellipsis: new x('...', S), + backQuote: new x('`', A), + dollarBraceL: new x('${', {beforeExpr: !0, startsExpr: !0}), + eq: new x('=', {beforeExpr: !0, isAssign: !0}), + assign: new x('_=', {beforeExpr: !0, isAssign: !0}), + incDec: new x('++/--', {prefix: !0, postfix: !0, startsExpr: !0}), + prefix: new x('!/~', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + logicalOR: w('||', 1), + logicalAND: w('&&', 2), + bitwiseOR: w('|', 3), + bitwiseXOR: w('^', 4), + bitwiseAND: w('&', 5), + equality: w('==/!=/===/!==', 6), + relational: w('/<=/>=', 7), + bitShift: w('<>/>>>', 8), + plusMin: new x('+/-', { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0, }), - modulo: S('%', 10), - star: S('*', 10), - slash: S('/', 10), - starstar: new g('**', {beforeExpr: !0}), - coalesce: S('??', 1), + modulo: w('%', 10), + star: w('*', 10), + slash: w('/', 10), + starstar: new x('**', {beforeExpr: !0}), + coalesce: w('??', 1), _break: D('break'), - _case: D('case', E), + _case: D('case', S), _catch: D('catch'), _continue: D('continue'), _debugger: D('debugger'), - _default: D('default', E), + _default: D('default', S), _do: D('do', {isLoop: !0, beforeExpr: !0}), - _else: D('else', E), + _else: D('else', S), _finally: D('finally'), _for: D('for', {isLoop: !0}), - _function: D('function', L), + _function: D('function', A), _if: D('if'), - _return: D('return', E), + _return: D('return', S), _switch: D('switch'), - _throw: D('throw', E), + _throw: D('throw', S), _try: D('try'), _var: D('var'), _const: D('const'), _while: D('while', {isLoop: !0}), _with: D('with'), _new: D('new', {beforeExpr: !0, startsExpr: !0}), - _this: D('this', L), - _super: D('super', L), - _class: D('class', L), - _extends: D('extends', E), + _this: D('this', A), + _super: D('super', A), + _class: D('class', A), + _extends: D('extends', S), _export: D('export'), - _import: D('import', L), - _null: D('null', L), - _true: D('true', L), - _false: D('false', L), + _import: D('import', A), + _null: D('null', A), + _true: D('true', A), + _false: D('false', A), _in: D('in', {beforeExpr: !0, binop: 7}), _instanceof: D('instanceof', {beforeExpr: !0, binop: 7}), _typeof: D('typeof', {beforeExpr: !0, prefix: !0, startsExpr: !0}), @@ -25155,10 +25155,10 @@ Defaulting to 2020, but this will stop working in the future.`)), return kt(o.onComment) && (o.onComment = V(o, o.onComment)), o; } function V(n, o) { - return function (l, h, m, I, R, Y) { - var Q = {type: l ? 'Block' : 'Line', value: h, start: m, end: I}; + return function (l, h, m, E, R, Y) { + var Q = {type: l ? 'Block' : 'Line', value: h, start: m, end: E}; n.locations && (Q.loc = new wt(this, R, Y)), - n.ranges && (Q.range = [m, I]), + n.ranges && (Q.range = [m, E]), o.push(Q); }; } @@ -25199,9 +25199,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ((m = a[o.ecmaVersion >= 6 ? 6 : o.ecmaVersion === 5 ? 5 : 3]), o.sourceType === 'module' && (m += ' await')), (this.reservedWords = tt(m)); - var I = (m ? m + ' ' : '') + a.strict; - (this.reservedWordsStrict = tt(I)), - (this.reservedWordsStrictBind = tt(I + ' ' + a.strictBind)), + var E = (m ? m + ' ' : '') + a.strict; + (this.reservedWordsStrict = tt(E)), + (this.reservedWordsStrictBind = tt(E + ' ' + a.strictBind)), (this.input = String(l)), (this.containsEsc = !1), h @@ -25461,10 +25461,10 @@ Defaulting to 2020, but this will stop working in the future.`)), h < m.length; h += 1 ) { - var I = m[h]; + var E = m[h]; this.raiseRecoverable( - this.undefinedExports[I].start, - "Export '" + I + "' is not defined" + this.undefinedExports[E].start, + "Export '" + E + "' is not defined" ); } return ( @@ -25487,10 +25487,10 @@ Defaulting to 2020, but this will stop working in the future.`)), if (n) return !1; if (h === 123 || (h > 55295 && h < 56320)) return !0; if (f(h, !0)) { - for (var m = l + 1; x((h = this.input.charCodeAt(m)), !0); ) ++m; + for (var m = l + 1; v((h = this.input.charCodeAt(m)), !0); ) ++m; if (h === 92 || (h > 55295 && h < 56320)) return !0; - var I = this.input.slice(l, m); - if (!y.test(I)) return !0; + var E = this.input.slice(l, m); + if (!y.test(E)) return !0; } return !1; }), @@ -25506,7 +25506,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.input.slice(o, o + 8) === 'function' && (o + 8 === this.input.length || !( - x((l = this.input.charCodeAt(o + 8))) || + v((l = this.input.charCodeAt(o + 8))) || (l > 55295 && l < 56320) )) ); @@ -25523,12 +25523,12 @@ Defaulting to 2020, but this will stop working in the future.`)), if (M.test(this.input.slice(this.pos, h))) return !1; if (n) { var m = h + 5, - I; + E; if ( this.input.slice(h, m) !== 'using' || m === this.input.length || - x((I = this.input.charCodeAt(m))) || - (I > 55295 && I < 56320) + v((E = this.input.charCodeAt(m))) || + (E > 55295 && E < 56320) ) return !1; ae.lastIndex = m; @@ -25541,7 +25541,7 @@ Defaulting to 2020, but this will stop working in the future.`)), if ( this.input.slice(h, Y) === 'of' && (Y === this.input.length || - (!x((Q = this.input.charCodeAt(Y))) && + (!v((Q = this.input.charCodeAt(Y))) && !(Q > 55295 && Q < 56320))) ) return !1; @@ -25558,8 +25558,8 @@ Defaulting to 2020, but this will stop working in the future.`)), (te.parseStatement = function (n, o, l) { var h = this.type, m = this.startNode(), - I; - switch ((this.isLet(n) && ((h = c._var), (I = 'let')), h)) { + E; + switch ((this.isLet(n) && ((h = c._var), (E = 'let')), h)) { case c._break: case c._continue: return this.parseBreakContinueStatement(m, h.keyword); @@ -25592,9 +25592,9 @@ Defaulting to 2020, but this will stop working in the future.`)), case c._const: case c._var: return ( - (I = I || this.value), - n && I !== 'var' && this.unexpected(), - this.parseVarStatement(m, I) + (E = E || this.value), + n && E !== 'var' && this.unexpected(), + this.parseVarStatement(m, E) ); case c._while: return this.parseWhileStatement(m); @@ -25738,7 +25738,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.parseForAfterInit(n, h, o) ); } - var I = this.isContextual('let'), + var E = this.isContextual('let'), R = !1, Y = this.isUsing(!0) ? 'using' @@ -25774,7 +25774,7 @@ Defaulting to 2020, but this will stop working in the future.`)), Lt.name === 'async' ? this.unexpected() : this.options.ecmaVersion >= 9 && (n.await = !1)), - I && + E && R && this.raise( Lt.start, @@ -25937,8 +25937,8 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.next(), this.finishNode(n, 'EmptyStatement'); }), (te.parseLabeledStatement = function (n, o, l, h) { - for (var m = 0, I = this.labels; m < I.length; m += 1) { - var R = I[m]; + for (var m = 0, E = this.labels; m < E.length; m += 1) { + var R = E[m]; R.name === o && this.raise(l.start, "Label '" + o + "' is already declared"); } @@ -26100,7 +26100,7 @@ Defaulting to 2020, but this will stop working in the future.`)), : Tt : vt )); - var I = this.yieldPos, + var E = this.yieldPos, R = this.awaitPos, Y = this.awaitIdentPos; return ( @@ -26111,7 +26111,7 @@ Defaulting to 2020, but this will stop working in the future.`)), o & Mn || (n.id = this.type === c.name ? this.parseIdent() : null), this.parseFunctionParams(n), this.parseFunctionBody(n, l, !1, m), - (this.yieldPos = I), + (this.yieldPos = E), (this.awaitPos = R), (this.awaitIdentPos = Y), this.finishNode( @@ -26135,18 +26135,18 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.strict = !0), this.parseClassId(n, o), this.parseClassSuper(n); var h = this.enterClassBody(), m = this.startNode(), - I = !1; + E = !1; for (m.body = [], this.expect(c.braceL); this.type !== c.braceR; ) { var R = this.parseClassElement(n.superClass !== null); R && (m.body.push(R), R.type === 'MethodDefinition' && R.kind === 'constructor' - ? (I && + ? (E && this.raiseRecoverable( R.start, 'Duplicate constructor in the same class' ), - (I = !0)) + (E = !0)) : R.key && R.key.type === 'PrivateIdentifier' && bi(h, R) && @@ -26169,7 +26169,7 @@ Defaulting to 2020, but this will stop working in the future.`)), l = this.startNode(), h = '', m = !1, - I = !1, + E = !1, R = 'method', Y = !1; if (this.eatContextual('static')) { @@ -26186,10 +26186,10 @@ Defaulting to 2020, but this will stop working in the future.`)), this.eatContextual('async') && ((this.isClassElementNameStart() || this.type === c.star) && !this.canInsertSemicolon() - ? (I = !0) + ? (E = !0) : (h = 'async')), - !h && (o >= 9 || !I) && this.eat(c.star) && (m = !0), - !h && !I && !m) + !h && (o >= 9 || !E) && this.eat(c.star) && (m = !0), + !h && !E && !m) ) { var Q = this.value; (this.eatContextual('get') || this.eatContextual('set')) && @@ -26205,7 +26205,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (l.key.name = h), this.finishNode(l.key, 'Identifier')) : this.parseClassElementName(l), - o < 13 || this.type === c.parenL || R !== 'method' || m || I) + o < 13 || this.type === c.parenL || R !== 'method' || m || E) ) { var ye = !l.static && es(l, 'constructor'), xe = ye && n; @@ -26216,7 +26216,7 @@ Defaulting to 2020, but this will stop working in the future.`)), "Constructor can't have get/set modifier" ), (l.kind = ye ? 'constructor' : R), - this.parseClassMethod(l, m, I, xe); + this.parseClassMethod(l, m, E, xe); } else this.parseClassField(l); return l; }), @@ -26252,21 +26252,21 @@ Defaulting to 2020, but this will stop working in the future.`)), m.start, 'Classes may not have a static property named prototype' ); - var I = (n.value = this.parseMethod(o, l, h)); + var E = (n.value = this.parseMethod(o, l, h)); return ( n.kind === 'get' && - I.params.length !== 0 && - this.raiseRecoverable(I.start, 'getter should have no params'), + E.params.length !== 0 && + this.raiseRecoverable(E.start, 'getter should have no params'), n.kind === 'set' && - I.params.length !== 1 && + E.params.length !== 1 && this.raiseRecoverable( - I.start, + E.start, 'setter should have exactly one param' ), n.kind === 'set' && - I.params[0].type === 'RestElement' && + E.params[0].type === 'RestElement' && this.raiseRecoverable( - I.params[0].start, + E.params[0].start, 'Setter cannot use rest params' ), this.finishNode(n, 'MethodDefinition') @@ -26335,11 +26335,11 @@ Defaulting to 2020, but this will stop working in the future.`)), for ( var h = this.privateNameStack.length, m = h === 0 ? null : this.privateNameStack[h - 1], - I = 0; - I < l.length; - ++I + E = 0; + E < l.length; + ++E ) { - var R = l[I]; + var R = l[E]; mt(o, R.name) || (m ? m.used.push(R) @@ -26472,8 +26472,8 @@ Defaulting to 2020, but this will stop working in the future.`)), if (l === 'Identifier') this.checkExport(n, o, o.start); else if (l === 'ObjectPattern') for (var h = 0, m = o.properties; h < m.length; h += 1) { - var I = m[h]; - this.checkPatternExport(n, I); + var E = m[h]; + this.checkPatternExport(n, E); } else if (l === 'ArrayPattern') for (var R = 0, Y = o.elements; R < Y.length; R += 1) { @@ -26670,12 +26670,12 @@ Defaulting to 2020, but this will stop working in the future.`)), case 'ObjectExpression': (n.type = 'ObjectPattern'), l && this.checkPatternErrors(l, !0); for (var h = 0, m = n.properties; h < m.length; h += 1) { - var I = m[h]; - this.toAssignable(I, o), - I.type === 'RestElement' && - (I.argument.type === 'ArrayPattern' || - I.argument.type === 'ObjectPattern') && - this.raise(I.argument.start, 'Unexpected token'); + var E = m[h]; + this.toAssignable(E, o), + E.type === 'RestElement' && + (E.argument.type === 'ArrayPattern' || + E.argument.type === 'ObjectPattern') && + this.raise(E.argument.start, 'Unexpected token'); } break; case 'Property': @@ -26733,13 +26733,13 @@ Defaulting to 2020, but this will stop working in the future.`)), m && this.toAssignable(m, o); } if (l) { - var I = n[l - 1]; + var E = n[l - 1]; this.options.ecmaVersion === 6 && o && - I && - I.type === 'RestElement' && - I.argument.type !== 'Identifier' && - this.unexpected(I.argument.start); + E && + E.type === 'RestElement' && + E.argument.type !== 'Identifier' && + this.unexpected(E.argument.start); } return n; }), @@ -26778,9 +26778,9 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.parseIdent(); }), (Nt.parseBindingList = function (n, o, l, h) { - for (var m = [], I = !0; !this.eat(n); ) + for (var m = [], E = !0; !this.eat(n); ) if ( - (I ? (I = !1) : this.expect(c.comma), o && this.type === c.comma) + (E ? (E = !1) : this.expect(c.comma), o && this.type === c.comma) ) m.push(null); else { @@ -26872,8 +26872,8 @@ Defaulting to 2020, but this will stop working in the future.`)), switch ((o === void 0 && (o = pt), n.type)) { case 'ObjectPattern': for (var h = 0, m = n.properties; h < m.length; h += 1) { - var I = m[h]; - this.checkLValInnerPattern(I, o, l); + var E = m[h]; + this.checkLValInnerPattern(E, o, l); } break; case 'ArrayPattern': @@ -26901,12 +26901,12 @@ Defaulting to 2020, but this will stop working in the future.`)), this.checkLValPattern(n, o, l); } }); - var Rt = function (o, l, h, m, I) { + var Rt = function (o, l, h, m, E) { (this.token = o), (this.isExpr = !!l), (this.preserveSpace = !!h), (this.override = m), - (this.generator = !!I); + (this.generator = !!E); }, Ue = { b_stat: new Rt('{', !1), @@ -27060,10 +27060,10 @@ Defaulting to 2020, but this will stop working in the future.`)), default: return; } - var I = n.kind; + var E = n.kind; if (this.options.ecmaVersion >= 6) { m === '__proto__' && - I === 'init' && + E === 'init' && (o.proto && (l ? l.doubleProto < 0 && (l.doubleProto = h.start) @@ -27078,12 +27078,12 @@ Defaulting to 2020, but this will stop working in the future.`)), var R = o[m]; if (R) { var Y; - I === 'init' + E === 'init' ? (Y = (this.strict && R.init) || R.get || R.set) - : (Y = R.init || R[I]), + : (Y = R.init || R[E]), Y && this.raiseRecoverable(h.start, 'Redefinition of property'); } else R = o[m] = {init: !1, get: !1, set: !1}; - R[I] = !0; + R[E] = !0; } }), (de.parseExpression = function (n, o) { @@ -27091,10 +27091,10 @@ Defaulting to 2020, but this will stop working in the future.`)), h = this.startLoc, m = this.parseMaybeAssign(n, o); if (this.type === c.comma) { - var I = this.startNodeAt(l, h); - for (I.expressions = [m]; this.eat(c.comma); ) - I.expressions.push(this.parseMaybeAssign(n, o)); - return this.finishNode(I, 'SequenceExpression'); + var E = this.startNodeAt(l, h); + for (E.expressions = [m]; this.eat(c.comma); ) + E.expressions.push(this.parseMaybeAssign(n, o)); + return this.finishNode(E, 'SequenceExpression'); } return m; }), @@ -27105,11 +27105,11 @@ Defaulting to 2020, but this will stop working in the future.`)), } var h = !1, m = -1, - I = -1, + E = -1, R = -1; o ? ((m = o.parenthesizedAssign), - (I = o.trailingComma), + (E = o.trailingComma), (R = o.doubleProto), (o.parenthesizedAssign = o.trailingComma = -1)) : ((o = new Xt()), (h = !0)); @@ -27139,7 +27139,7 @@ Defaulting to 2020, but this will stop working in the future.`)), } else h && this.checkExpressionErrors(o, !0); return ( m > -1 && (o.parenthesizedAssign = m), - I > -1 && (o.trailingComma = I), + E > -1 && (o.trailingComma = E), ye ); }), @@ -27149,13 +27149,13 @@ Defaulting to 2020, but this will stop working in the future.`)), m = this.parseExprOps(n, o); if (this.checkExpressionErrors(o)) return m; if (this.eat(c.question)) { - var I = this.startNodeAt(l, h); + var E = this.startNodeAt(l, h); return ( - (I.test = m), - (I.consequent = this.parseMaybeAssign()), + (E.test = m), + (E.consequent = this.parseMaybeAssign()), this.expect(c.colon), - (I.alternate = this.parseMaybeAssign(n)), - this.finishNode(I, 'ConditionalExpression') + (E.alternate = this.parseMaybeAssign(n)), + this.finishNode(E, 'ConditionalExpression') ); } return m; @@ -27170,11 +27170,11 @@ Defaulting to 2020, but this will stop working in the future.`)), : this.parseExprOp(m, l, h, -1, n); }), (de.parseExprOp = function (n, o, l, h, m) { - var I = this.type.binop; - if (I != null && (!m || this.type !== c._in) && I > h) { + var E = this.type.binop; + if (E != null && (!m || this.type !== c._in) && E > h) { var R = this.type === c.logicalOR || this.type === c.logicalAND, Y = this.type === c.coalesce; - Y && (I = c.logicalAND.binop); + Y && (E = c.logicalAND.binop); var Q = this.value; this.next(); var ye = this.start, @@ -27183,7 +27183,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.parseMaybeUnary(null, !1, !1, m), ye, xe, - I, + E, m ), Lt = this.buildBinary(o, l, n, Ze, Q, R || Y); @@ -27200,7 +27200,7 @@ Defaulting to 2020, but this will stop working in the future.`)), } return n; }), - (de.buildBinary = function (n, o, l, h, m, I) { + (de.buildBinary = function (n, o, l, h, m, E) { h.type === 'PrivateIdentifier' && this.raise( h.start, @@ -27211,12 +27211,12 @@ Defaulting to 2020, but this will stop working in the future.`)), (R.left = l), (R.operator = m), (R.right = h), - this.finishNode(R, I ? 'LogicalExpression' : 'BinaryExpression') + this.finishNode(R, E ? 'LogicalExpression' : 'BinaryExpression') ); }), (de.parseMaybeUnary = function (n, o, l, h) { var m = this.start, - I = this.startLoc, + E = this.startLoc, R; if (this.isContextual('await') && this.canAwait) (R = this.parseAwait(h)), (o = !0); @@ -27258,7 +27258,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ) return R; for (; this.type.postfix && !this.canInsertSemicolon(); ) { - var ye = this.startNodeAt(m, I); + var ye = this.startNodeAt(m, E); (ye.operator = this.value), (ye.prefix = !1), (ye.argument = R), @@ -27272,7 +27272,7 @@ Defaulting to 2020, but this will stop working in the future.`)), else return this.buildBinary( m, - I, + E, R, this.parseMaybeUnary(null, !1, !1, h), '**', @@ -27303,19 +27303,19 @@ Defaulting to 2020, but this will stop working in the future.`)), this.input.slice(this.lastTokStart, this.lastTokEnd) !== ')' ) return m; - var I = this.parseSubscripts(m, l, h, !1, o); + var E = this.parseSubscripts(m, l, h, !1, o); return ( n && - I.type === 'MemberExpression' && - (n.parenthesizedAssign >= I.start && (n.parenthesizedAssign = -1), - n.parenthesizedBind >= I.start && (n.parenthesizedBind = -1), - n.trailingComma >= I.start && (n.trailingComma = -1)), - I + E.type === 'MemberExpression' && + (n.parenthesizedAssign >= E.start && (n.parenthesizedAssign = -1), + n.parenthesizedBind >= E.start && (n.parenthesizedBind = -1), + n.trailingComma >= E.start && (n.trailingComma = -1)), + E ); }), (de.parseSubscripts = function (n, o, l, h, m) { for ( - var I = + var E = this.options.ecmaVersion >= 8 && n.type === 'Identifier' && n.name === 'async' && @@ -27327,7 +27327,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ; ) { - var Y = this.parseSubscript(n, o, l, h, I, R, m); + var Y = this.parseSubscript(n, o, l, h, E, R, m); if ( (Y.optional && (R = !0), Y === n || Y.type === 'ArrowFunctionExpression') @@ -27347,7 +27347,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (de.parseSubscriptAsyncArrow = function (n, o, l, h) { return this.parseArrowExpression(this.startNodeAt(n, o), l, !0, h); }), - (de.parseSubscript = function (n, o, l, h, m, I, R) { + (de.parseSubscript = function (n, o, l, h, m, E, R) { var Y = this.options.ecmaVersion >= 11, Q = Y && this.eat(c.questionDot); h && @@ -27411,7 +27411,7 @@ Defaulting to 2020, but this will stop working in the future.`)), Y && (Js.optional = Q), (n = this.finishNode(Js, 'CallExpression')); } else if (this.type === c.backQuote) { - (Q || I) && + (Q || E) && this.raise( this.start, 'Optional chaining cannot appear in the tag of tagged template expressions' @@ -27453,7 +27453,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(h, 'ThisExpression') ); case c.name: - var I = this.start, + var E = this.start, R = this.startLoc, Y = this.containsEsc, Q = this.parseIdent(!1); @@ -27466,12 +27466,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ) return ( this.overrideContext(Ue.f_expr), - this.parseFunction(this.startNodeAt(I, R), 0, !1, !0, o) + this.parseFunction(this.startNodeAt(E, R), 0, !1, !0, o) ); if (m && !this.canInsertSemicolon()) { if (this.eat(c.arrow)) return this.parseArrowExpression( - this.startNodeAt(I, R), + this.startNodeAt(E, R), [Q], !1, o @@ -27490,7 +27490,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.canInsertSemicolon() || !this.eat(c.arrow)) && this.unexpected(), this.parseArrowExpression( - this.startNodeAt(I, R), + this.startNodeAt(E, R), [Q], !0, o @@ -27657,7 +27657,7 @@ Defaulting to 2020, but this will stop working in the future.`)), var l = this.start, h = this.startLoc, m, - I = this.options.ecmaVersion >= 8; + E = this.options.ecmaVersion >= 8; if (this.options.ecmaVersion >= 6) { this.next(); var R = this.start, @@ -27672,7 +27672,7 @@ Defaulting to 2020, but this will stop working in the future.`)), for (this.yieldPos = 0, this.awaitPos = 0; this.type !== c.parenR; ) if ( (ye ? (ye = !1) : this.expect(c.comma), - I && this.afterTrailingComma(c.parenR, !0)) + E && this.afterTrailingComma(c.parenR, !0)) ) { xe = !0; break; @@ -27850,8 +27850,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.afterTrailingComma(c.braceR)) ) break; - var I = this.parseProperty(n, o); - n || this.checkPropClash(I, m, o), l.properties.push(I); + var E = this.parseProperty(n, o); + n || this.checkPropClash(E, m, o), l.properties.push(E); } return this.finishNode(l, n ? 'ObjectPattern' : 'ObjectExpression'); }), @@ -27859,7 +27859,7 @@ Defaulting to 2020, but this will stop working in the future.`)), var l = this.startNode(), h, m, - I, + E, R; if (this.options.ecmaVersion >= 9 && this.eat(c.ellipsis)) return n @@ -27879,7 +27879,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 6 && ((l.method = !1), (l.shorthand = !1), - (n || o) && ((I = this.start), (R = this.startLoc)), + (n || o) && ((E = this.start), (R = this.startLoc)), n || (h = this.eat(c.star))); var Y = this.containsEsc; return ( @@ -27893,7 +27893,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (h = this.options.ecmaVersion >= 9 && this.eat(c.star)), this.parsePropertyName(l)) : (m = !1), - this.parsePropertyValue(l, n, h, m, I, R, o, Y), + this.parsePropertyValue(l, n, h, m, E, R, o, Y), this.finishNode(l, 'Property') ); }), @@ -27919,7 +27919,7 @@ Defaulting to 2020, but this will stop working in the future.`)), 'Setter cannot use rest params' ); }), - (de.parsePropertyValue = function (n, o, l, h, m, I, R, Y) { + (de.parsePropertyValue = function (n, o, l, h, m, E, R, Y) { (l || h) && this.type === c.colon && this.unexpected(), this.eat(c.colon) ? ((n.value = o @@ -27952,14 +27952,14 @@ Defaulting to 2020, but this will stop working in the future.`)), o ? (n.value = this.parseMaybeDefault( m, - I, + E, this.copyNode(n.key) )) : this.type === c.eq && R ? (R.shorthandAssign < 0 && (R.shorthandAssign = this.start), (n.value = this.parseMaybeDefault( m, - I, + E, this.copyNode(n.key) ))) : (n.value = this.copyNode(n.key)), @@ -27991,7 +27991,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (de.parseMethod = function (n, o, l) { var h = this.startNode(), m = this.yieldPos, - I = this.awaitPos, + E = this.awaitPos, R = this.awaitIdentPos; return ( this.initFunction(h), @@ -28010,14 +28010,14 @@ Defaulting to 2020, but this will stop working in the future.`)), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(h, !1, !0, !1), (this.yieldPos = m), - (this.awaitPos = I), + (this.awaitPos = E), (this.awaitIdentPos = R), this.finishNode(h, 'FunctionExpression') ); }), (de.parseArrowExpression = function (n, o, l, h) { var m = this.yieldPos, - I = this.awaitPos, + E = this.awaitPos, R = this.awaitIdentPos; return ( this.enterScope(ut(l, !1) | he), @@ -28029,14 +28029,14 @@ Defaulting to 2020, but this will stop working in the future.`)), (n.params = this.toAssignableList(o, !0)), this.parseFunctionBody(n, !0, !1, h), (this.yieldPos = m), - (this.awaitPos = I), + (this.awaitPos = E), (this.awaitIdentPos = R), this.finishNode(n, 'ArrowFunctionExpression') ); }), (de.parseFunctionBody = function (n, o, l, h) { var m = o && this.type !== c.braceL, - I = this.strict, + E = this.strict, R = !1; if (m) (n.body = this.parseMaybeAssign(h)), @@ -28046,7 +28046,7 @@ Defaulting to 2020, but this will stop working in the future.`)), var Y = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(n.params); - (!I || Y) && + (!E || Y) && ((R = this.strictDirective(this.end)), R && Y && @@ -28059,10 +28059,10 @@ Defaulting to 2020, but this will stop working in the future.`)), R && (this.strict = !0), this.checkParams( n, - !I && !R && !o && !l && this.isSimpleParamList(n.params) + !E && !R && !o && !l && this.isSimpleParamList(n.params) ), this.strict && n.id && this.checkLValSimple(n.id, Dn), - (n.body = this.parseBlock(!1, void 0, R && !I)), + (n.body = this.parseBlock(!1, void 0, R && !E)), (n.expression = !1), this.adaptDirectivePrologue(n.body.body), (this.labels = Q); @@ -28082,13 +28082,13 @@ Defaulting to 2020, but this will stop working in the future.`)), h < m.length; h += 1 ) { - var I = m[h]; - this.checkLValInnerPattern(I, bt, o ? null : l); + var E = m[h]; + this.checkLValInnerPattern(E, bt, o ? null : l); } }), (de.parseExprList = function (n, o, l, h) { - for (var m = [], I = !0; !this.eat(n); ) { - if (I) I = !1; + for (var m = [], E = !0; !this.eat(n); ) { + if (E) E = !1; else if ((this.expect(c.comma), o && this.afterTrailingComma(n))) break; var R = void 0; @@ -28266,8 +28266,8 @@ Defaulting to 2020, but this will stop working in the future.`)), m.lexical.push(n), this.inModule && m.flags & W && delete this.undefinedExports[n]; } else if (o === bn) { - var I = this.currentScope(); - I.lexical.push(n); + var E = this.currentScope(); + E.lexical.push(n); } else if (o === vt) { var R = this.currentScope(); this.treatFunctionsAsVar @@ -28443,15 +28443,15 @@ Defaulting to 2020, but this will stop working in the future.`)), }; (on.prototype.reset = function (o, l, h) { var m = h.indexOf('v') !== -1, - I = h.indexOf('u') !== -1; + E = h.indexOf('u') !== -1; (this.start = o | 0), (this.source = l + ''), (this.flags = h), m && this.parser.options.ecmaVersion >= 15 ? ((this.switchU = !0), (this.switchV = !0), (this.switchN = !0)) - : ((this.switchU = I && this.parser.options.ecmaVersion >= 6), + : ((this.switchU = E && this.parser.options.ecmaVersion >= 6), (this.switchV = !1), - (this.switchN = I && this.parser.options.ecmaVersion >= 9)); + (this.switchN = E && this.parser.options.ecmaVersion >= 9)); }), (on.prototype.raise = function (o) { this.parser.raiseRecoverable( @@ -28464,22 +28464,22 @@ Defaulting to 2020, but this will stop working in the future.`)), var h = this.source, m = h.length; if (o >= m) return -1; - var I = h.charCodeAt(o); - if (!(l || this.switchU) || I <= 55295 || I >= 57344 || o + 1 >= m) - return I; + var E = h.charCodeAt(o); + if (!(l || this.switchU) || E <= 55295 || E >= 57344 || o + 1 >= m) + return E; var R = h.charCodeAt(o + 1); - return R >= 56320 && R <= 57343 ? (I << 10) + R - 56613888 : I; + return R >= 56320 && R <= 57343 ? (E << 10) + R - 56613888 : E; }), (on.prototype.nextIndex = function (o, l) { l === void 0 && (l = !1); var h = this.source, m = h.length; if (o >= m) return m; - var I = h.charCodeAt(o), + var E = h.charCodeAt(o), R; return !(l || this.switchU) || - I <= 55295 || - I >= 57344 || + E <= 55295 || + E >= 57344 || o + 1 >= m || (R = h.charCodeAt(o + 1)) < 56320 || R > 57343 @@ -28505,8 +28505,8 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (on.prototype.eatChars = function (o, l) { l === void 0 && (l = !1); - for (var h = this.pos, m = 0, I = o; m < I.length; m += 1) { - var R = I[m], + for (var h = this.pos, m = 0, E = o; m < E.length; m += 1) { + var R = E[m], Y = this.at(h, l); if (Y === -1 || Y !== R) return !1; h = this.nextIndex(h, l); @@ -28515,14 +28515,14 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (le.validateRegExpFlags = function (n) { for ( - var o = n.validFlags, l = n.flags, h = !1, m = !1, I = 0; - I < l.length; - I++ + var o = n.validFlags, l = n.flags, h = !1, m = !1, E = 0; + E < l.length; + E++ ) { - var R = l.charAt(I); + var R = l.charAt(E); o.indexOf(R) === -1 && this.raise(n.start, 'Invalid regular expression flag'), - l.indexOf(R, I + 1) > -1 && + l.indexOf(R, E + 1) > -1 && this.raise(n.start, 'Duplicate regular expression flag'), R === 'u' && (h = !0), R === 'v' && (m = !0); @@ -28684,8 +28684,8 @@ Defaulting to 2020, but this will stop working in the future.`)), h = n.eat(45); if (l || h) { for (var m = 0; m < l.length; m++) { - var I = l.charAt(m); - l.indexOf(I, m + 1) > -1 && + var E = l.charAt(m); + l.indexOf(E, m + 1) > -1 && n.raise('Duplicate regular expression modifiers'); } if (h) { @@ -28791,8 +28791,8 @@ Defaulting to 2020, but this will stop working in the future.`)), if (l) if (o) for (var h = 0, m = l; h < m.length; h += 1) { - var I = m[h]; - I.separatedFrom(n.branchID) || + var E = m[h]; + E.separatedFrom(n.branchID) || n.raise('Duplicate capture group name'); } else n.raise('Duplicate capture group name'); @@ -28850,7 +28850,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ); }; function Go(n) { - return x(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205; + return v(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205; } (le.regexp_eatAtomEscape = function (n) { return this.regexp_eatBackReference(n) || @@ -28935,7 +28935,7 @@ Defaulting to 2020, but this will stop working in the future.`)), if (this.regexp_eatFixedHexDigits(n, 4)) { var m = n.lastIntValue; if (h && m >= 55296 && m <= 56319) { - var I = n.pos; + var E = n.pos; if ( n.eat(92) && n.eat(117) && @@ -28948,7 +28948,7 @@ Defaulting to 2020, but this will stop working in the future.`)), !0 ); } - (n.pos = I), (n.lastIntValue = m); + (n.pos = E), (n.lastIntValue = m); } return !0; } @@ -29720,9 +29720,9 @@ Defaulting to 2020, but this will stop working in the future.`)), } var m = this.input.slice(l, this.pos); ++this.pos; - var I = this.pos, + var E = this.pos, R = this.readWord1(); - this.containsEsc && this.unexpected(I); + this.containsEsc && this.unexpected(E); var Y = this.regexpState || (this.regexpState = new on(this)); Y.reset(l, m, R), this.validateRegExpFlags(Y), @@ -29737,7 +29737,7 @@ Defaulting to 2020, but this will stop working in the future.`)), for ( var h = this.options.ecmaVersion >= 12 && o === void 0, m = l && this.input.charCodeAt(this.pos) === 48, - I = this.pos, + E = this.pos, R = 0, Y = 0, Q = 0, @@ -29786,7 +29786,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.pos - 1, 'Numeric separator is not allowed at the last of digits' ), - this.pos === I || (o != null && this.pos - I !== o) ? null : R + this.pos === E || (o != null && this.pos - E !== o) ? null : R ); }); function bf(n, o) { @@ -29840,8 +29840,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.readInt(10) === null && this.raise(o, 'Invalid number')), f(this.fullCharCodeAtPos()) && this.raise(this.pos, 'Identifier directly after number'); - var I = bf(this.input.slice(o, this.pos), l); - return this.finishToken(c.num, I); + var E = bf(this.input.slice(o, this.pos), l); + return this.finishToken(c.num, E); }), (Ae.readCodePoint = function () { var n = this.input.charCodeAt(this.pos), @@ -30048,10 +30048,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ) { var m = this.fullCharCodeAtPos(); - if (x(m, h)) this.pos += m <= 65535 ? 1 : 2; + if (v(m, h)) this.pos += m <= 65535 ? 1 : 2; else if (m === 92) { (this.containsEsc = !0), (n += this.input.slice(l, this.pos)); - var I = this.pos; + var E = this.pos; this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken( this.pos, @@ -30059,8 +30059,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ), ++this.pos; var R = this.readCodePoint(); - (o ? f : x)(R, h) || - this.invalidStringToken(I, 'Invalid Unicode escape'), + (o ? f : v)(R, h) || + this.invalidStringToken(E, 'Invalid Unicode escape'), (n += nt(R)), (l = this.pos); } else break; @@ -30071,7 +30071,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (Ae.readWord = function () { var n = this.readWord1(), o = c.name; - return this.keywords.test(n) && (o = H[n]), this.finishToken(o, n); + return this.keywords.test(n) && (o = U[n]), this.finishToken(o, n); }); var Vc = '8.15.0'; Ge.acorn = { @@ -30082,12 +30082,12 @@ Defaulting to 2020, but this will stop working in the future.`)), SourceLocation: wt, getLineInfo: $t, Node: Fn, - TokenType: g, + TokenType: x, tokTypes: c, - keywordTypes: H, + keywordTypes: U, TokContext: Rt, tokContexts: Ue, - isIdentifierChar: x, + isIdentifierChar: v, isIdentifierStart: f, Token: xr, isNewLine: X, @@ -30110,13 +30110,13 @@ Defaulting to 2020, but this will stop working in the future.`)), (e.SourceLocation = wt), (e.TokContext = Rt), (e.Token = xr), - (e.TokenType = g), + (e.TokenType = x), (e.defaultOptions = Pt), (e.getLineInfo = $t), - (e.isIdentifierChar = x), + (e.isIdentifierChar = v), (e.isIdentifierStart = f), (e.isNewLine = X), - (e.keywordTypes = H), + (e.keywordTypes = U), (e.lineBreak = M), (e.lineBreakG = z), (e.nonASCIIwhitespace = pe), @@ -30139,14 +30139,14 @@ Defaulting to 2020, but this will stop working in the future.`)), })(Bo, function (e, t) { 'use strict'; var s = '\u2716'; - function i(u) { - return u.name === s; + function i(p) { + return p.name === s; } function r() {} - var a = function (f, x) { + var a = function (f, v) { if ( - (x === void 0 && (x = {}), - (this.toks = this.constructor.BaseParser.tokenizer(f, x)), + (v === void 0 && (v = {}), + (this.toks = this.constructor.BaseParser.tokenizer(f, v)), (this.options = this.toks.options), (this.input = this.toks.input), (this.tok = this.last = {type: t.tokTypes.eof, start: 0, end: 0}), @@ -30154,8 +30154,8 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.tok.validateRegExpPattern = r), this.options.locations) ) { - var g = this.toks.curPosition(); - this.tok.loc = new t.SourceLocation(this.toks, g, g); + var x = this.toks.curPosition(); + this.tok.loc = new t.SourceLocation(this.toks, x, x); } (this.ahead = []), (this.context = []), @@ -30183,9 +30183,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ? new t.Node(this.toks, f[0], f[1]) : new t.Node(this.toks, f); }), - (a.prototype.finishNode = function (f, x) { + (a.prototype.finishNode = function (f, v) { return ( - (f.type = x), + (f.type = v), (f.end = this.last.end), this.options.locations && (f.loc.end = this.last.loc.end), this.options.ranges && (f.range[1] = this.last.end), @@ -30193,19 +30193,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ); }), (a.prototype.dummyNode = function (f) { - var x = this.startNode(); + var v = this.startNode(); return ( - (x.type = f), - (x.end = x.start), - this.options.locations && (x.loc.end = x.loc.start), - this.options.ranges && (x.range[1] = x.start), + (v.type = f), + (v.end = v.start), + this.options.locations && (v.loc.end = v.loc.start), + this.options.ranges && (v.range[1] = v.start), (this.last = { type: t.tokTypes.name, - start: x.start, - end: x.start, - loc: x.loc, + start: v.start, + end: v.start, + loc: v.loc, }), - x + v ); }), (a.prototype.dummyIdent = function () { @@ -30237,9 +30237,9 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (a.prototype.expect = function (f) { if (this.eat(f)) return !0; - for (var x = 1; x <= 2; x++) - if (this.lookAhead(x).type === f) { - for (var g = 0; g < x; g++) this.next(); + for (var v = 1; v <= 2; v++) + if (this.lookAhead(v).type === f) { + for (var x = 0; x < v; x++) this.next(); return !0; } }), @@ -30259,50 +30259,50 @@ Defaulting to 2020, but this will stop working in the future.`)), return f; }), (a.prototype.indentationAfter = function (f) { - for (var x = 0; ; ++f) { - var g = this.input.charCodeAt(f); - if (g === 32) ++x; - else if (g === 9) x += this.options.tabSize; - else return x; + for (var v = 0; ; ++f) { + var x = this.input.charCodeAt(f); + if (x === 32) ++v; + else if (x === 9) v += this.options.tabSize; + else return v; } }), - (a.prototype.closes = function (f, x, g, S) { + (a.prototype.closes = function (f, v, x, w) { return this.tok.type === f || this.tok.type === t.tokTypes.eof ? !0 - : g !== this.curLineStart && - this.curIndent < x && + : x !== this.curLineStart && + this.curIndent < v && this.tokenStartsLine() && - (!S || + (!w || this.nextLineStart >= this.input.length || - this.indentationAfter(this.nextLineStart) < x); + this.indentationAfter(this.nextLineStart) < v); }), (a.prototype.tokenStartsLine = function () { for (var f = this.tok.start - 1; f >= this.curLineStart; --f) { - var x = this.input.charCodeAt(f); - if (x !== 9 && x !== 32) return !1; + var v = this.input.charCodeAt(f); + if (v !== 9 && v !== 32) return !1; } return !0; }), - (a.prototype.extend = function (f, x) { - this[f] = x(this[f]); + (a.prototype.extend = function (f, v) { + this[f] = v(this[f]); }), (a.prototype.parse = function () { return this.next(), this.parseTopLevel(); }), (a.extend = function () { - for (var f = [], x = arguments.length; x--; ) f[x] = arguments[x]; - for (var g = this, S = 0; S < f.length; S++) g = f[S](g); - return g; + for (var f = [], v = arguments.length; v--; ) f[v] = arguments[v]; + for (var x = this, w = 0; w < f.length; w++) x = f[w](x); + return x; }), - (a.parse = function (f, x) { - return new this(f, x).parse(); + (a.parse = function (f, v) { + return new this(f, v).parse(); }), (a.BaseParser = t.Parser); - var p = a.prototype; - function d(u) { - return (u < 14 && u > 8) || u === 32 || u === 160 || t.isNewLine(u); + var u = a.prototype; + function d(p) { + return (p < 14 && p > 8) || p === 32 || p === 160 || t.isNewLine(p); } - (p.next = function () { + (u.next = function () { if ( ((this.last = this.tok), this.ahead.length @@ -30316,7 +30316,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.curIndent = this.indentationAfter(this.curLineStart); } }), - (p.readToken = function () { + (u.readToken = function () { for (;;) try { return ( @@ -30327,118 +30327,118 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.toks.end++, (this.toks.type = t.tokTypes.ellipsis)), new t.Token(this.toks) ); - } catch (E) { - if (!(E instanceof SyntaxError)) throw E; - var u = E.message, - f = E.raisedAt, - x = !0; - if (/unterminated/i.test(u)) - if (((f = this.lineEnd(E.pos + 1)), /string/.test(u))) - x = { - start: E.pos, + } catch (S) { + if (!(S instanceof SyntaxError)) throw S; + var p = S.message, + f = S.raisedAt, + v = !0; + if (/unterminated/i.test(p)) + if (((f = this.lineEnd(S.pos + 1)), /string/.test(p))) + v = { + start: S.pos, end: f, type: t.tokTypes.string, - value: this.input.slice(E.pos + 1, f), + value: this.input.slice(S.pos + 1, f), }; - else if (/regular expr/i.test(u)) { - var g = this.input.slice(E.pos, f); + else if (/regular expr/i.test(p)) { + var x = this.input.slice(S.pos, f); try { - g = new RegExp(g); + x = new RegExp(x); } catch {} - x = {start: E.pos, end: f, type: t.tokTypes.regexp, value: g}; + v = {start: S.pos, end: f, type: t.tokTypes.regexp, value: x}; } else - /template/.test(u) - ? (x = { - start: E.pos, + /template/.test(p) + ? (v = { + start: S.pos, end: f, type: t.tokTypes.template, - value: this.input.slice(E.pos, f), + value: this.input.slice(S.pos, f), }) - : (x = !1); + : (v = !1); else if ( /invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test( - u + p ) ) for (; f < this.input.length && !d(this.input.charCodeAt(f)); ) ++f; - else if (/character escape|expected hexadecimal/i.test(u)) + else if (/character escape|expected hexadecimal/i.test(p)) for (; f < this.input.length; ) { - var S = this.input.charCodeAt(f++); - if (S === 34 || S === 39 || t.isNewLine(S)) break; + var w = this.input.charCodeAt(f++); + if (w === 34 || w === 39 || t.isNewLine(w)) break; } - else if (/unexpected character/i.test(u)) f++, (x = !1); - else if (/regular expression/i.test(u)) x = !0; - else throw E; + else if (/unexpected character/i.test(p)) f++, (v = !1); + else if (/regular expression/i.test(p)) v = !0; + else throw S; if ( (this.resetTo(f), - x === !0 && - (x = {start: f, end: f, type: t.tokTypes.name, value: s}), - x) + v === !0 && + (v = {start: f, end: f, type: t.tokTypes.name, value: s}), + v) ) return ( this.options.locations && - (x.loc = new t.SourceLocation( + (v.loc = new t.SourceLocation( this.toks, - t.getLineInfo(this.input, x.start), - t.getLineInfo(this.input, x.end) + t.getLineInfo(this.input, v.start), + t.getLineInfo(this.input, v.end) )), - x + v ); } }), - (p.resetTo = function (u) { - (this.toks.pos = u), (this.toks.containsEsc = !1); - var f = this.input.charAt(u - 1); + (u.resetTo = function (p) { + (this.toks.pos = p), (this.toks.containsEsc = !1); + var f = this.input.charAt(p - 1); if ( ((this.toks.exprAllowed = !f || /[[{(,;:?/*=+\-~!|&%^<>]/.test(f) || (/[enwfd]/.test(f) && /\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test( - this.input.slice(u - 10, u) + this.input.slice(p - 10, p) ))), this.options.locations) ) { (this.toks.curLine = 1), (this.toks.lineStart = t.lineBreakG.lastIndex = 0); - for (var x; (x = t.lineBreakG.exec(this.input)) && x.index < u; ) + for (var v; (v = t.lineBreakG.exec(this.input)) && v.index < p; ) ++this.toks.curLine, - (this.toks.lineStart = x.index + x[0].length); + (this.toks.lineStart = v.index + v[0].length); } }), - (p.lookAhead = function (u) { - for (; u > this.ahead.length; ) this.ahead.push(this.readToken()); - return this.ahead[u - 1]; + (u.lookAhead = function (p) { + for (; p > this.ahead.length; ) this.ahead.push(this.readToken()); + return this.ahead[p - 1]; }); var y = a.prototype; (y.parseTopLevel = function () { - var u = this.startNodeAt( + var p = this.startNodeAt( this.options.locations ? [0, t.getLineInfo(this.input, 0)] : 0 ); - for (u.body = []; this.tok.type !== t.tokTypes.eof; ) - u.body.push(this.parseStatement()); + for (p.body = []; this.tok.type !== t.tokTypes.eof; ) + p.body.push(this.parseStatement()); return ( - this.toks.adaptDirectivePrologue(u.body), + this.toks.adaptDirectivePrologue(p.body), (this.last = this.tok), - (u.sourceType = + (p.sourceType = this.options.sourceType === 'commonjs' ? 'script' : this.options.sourceType), - this.finishNode(u, 'Program') + this.finishNode(p, 'Program') ); }), (y.parseStatement = function () { - var u = this.tok.type, + var p = this.tok.type, f = this.startNode(), - x; + v; switch ( - (this.toks.isLet() && ((u = t.tokTypes._var), (x = 'let')), u) + (this.toks.isLet() && ((p = t.tokTypes._var), (v = 'let')), p) ) { case t.tokTypes._break: case t.tokTypes._continue: this.next(); - var g = u === t.tokTypes._break; + var x = p === t.tokTypes._break; return ( this.semicolon() || this.canInsertSemicolon() ? (f.label = null) @@ -30447,7 +30447,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ? this.parseIdent() : null), this.semicolon()), - this.finishNode(f, g ? 'BreakStatement' : 'ContinueStatement') + this.finishNode(f, x ? 'BreakStatement' : 'ContinueStatement') ); case t.tokTypes._debugger: return ( @@ -30467,7 +30467,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ); case t.tokTypes._for: this.next(); - var S = + var w = this.options.ecmaVersion >= 9 && this.eatContextual('await'); if ( (this.pushCx(), @@ -30475,33 +30475,33 @@ Defaulting to 2020, but this will stop working in the future.`)), this.tok.type === t.tokTypes.semi) ) return this.parseFor(f, null); - var E = this.toks.isLet(), - L = this.toks.isAwaitUsing(!0), - H = !L && this.toks.isUsing(!0); + var S = this.toks.isLet(), + A = this.toks.isAwaitUsing(!0), + U = !A && this.toks.isUsing(!0); if ( - E || + S || this.tok.type === t.tokTypes._var || this.tok.type === t.tokTypes._const || - H || - L + U || + A ) { - var D = E + var D = S ? 'let' - : H + : U ? 'using' - : L + : A ? 'await using' : this.tok.value, c = this.startNode(); return ( - H || L - ? (L && this.next(), this.parseVar(c, !0, D)) + U || A + ? (A && this.next(), this.parseVar(c, !0, D)) : (c = this.parseVar(c, !0, D)), c.declarations.length === 1 && (this.tok.type === t.tokTypes._in || this.isContextual('of')) ? (this.options.ecmaVersion >= 9 && this.tok.type !== t.tokTypes._in && - (f.await = S), + (f.await = w), this.parseForIn(f, c)) : this.parseFor(f, c) ); @@ -30510,7 +30510,7 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.tok.type === t.tokTypes._in || this.isContextual('of') ? (this.options.ecmaVersion >= 9 && this.tok.type !== t.tokTypes._in && - (f.await = S), + (f.await = w), this.parseForIn(f, this.toAssignable(M))) : this.parseFor(f, M); case t.tokTypes._function: @@ -30598,7 +30598,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ); case t.tokTypes._var: case t.tokTypes._const: - return this.parseVar(f, !1, x || this.tok.value); + return this.parseVar(f, !1, v || this.tok.value); case t.tokTypes._while: return ( this.next(), @@ -30644,7 +30644,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.tok.type === t.tokTypes.eof ? this.finishNode(f, 'EmptyStatement') : this.parseStatement()) - : u === t.tokTypes.name && + : p === t.tokTypes.name && qe.type === 'Identifier' && this.eat(t.tokTypes.colon) ? ((f.body = this.parseStatement()), @@ -30656,77 +30656,77 @@ Defaulting to 2020, but this will stop working in the future.`)), } }), (y.parseBlock = function () { - var u = this.startNode(); + var p = this.startNode(); this.pushCx(), this.expect(t.tokTypes.braceL); var f = this.curIndent, - x = this.curLineStart; - for (u.body = []; !this.closes(t.tokTypes.braceR, f, x, !0); ) - u.body.push(this.parseStatement()); + v = this.curLineStart; + for (p.body = []; !this.closes(t.tokTypes.braceR, f, v, !0); ) + p.body.push(this.parseStatement()); return ( this.popCx(), this.eat(t.tokTypes.braceR), - this.finishNode(u, 'BlockStatement') + this.finishNode(p, 'BlockStatement') ); }), - (y.parseFor = function (u, f) { + (y.parseFor = function (p, f) { return ( - (u.init = f), - (u.test = u.update = null), + (p.init = f), + (p.test = p.update = null), this.eat(t.tokTypes.semi) && this.tok.type !== t.tokTypes.semi && - (u.test = this.parseExpression()), + (p.test = this.parseExpression()), this.eat(t.tokTypes.semi) && this.tok.type !== t.tokTypes.parenR && - (u.update = this.parseExpression()), + (p.update = this.parseExpression()), this.popCx(), this.expect(t.tokTypes.parenR), - (u.body = this.parseStatement()), - this.finishNode(u, 'ForStatement') + (p.body = this.parseStatement()), + this.finishNode(p, 'ForStatement') ); }), - (y.parseForIn = function (u, f) { - var x = + (y.parseForIn = function (p, f) { + var v = this.tok.type === t.tokTypes._in ? 'ForInStatement' : 'ForOfStatement'; return ( this.next(), - (u.left = f), - (u.right = this.parseExpression()), + (p.left = f), + (p.right = this.parseExpression()), this.popCx(), this.expect(t.tokTypes.parenR), - (u.body = this.parseStatement()), - this.finishNode(u, x) + (p.body = this.parseStatement()), + this.finishNode(p, v) ); }), - (y.parseVar = function (u, f, x) { - (u.kind = x), this.next(), (u.declarations = []); + (y.parseVar = function (p, f, v) { + (p.kind = v), this.next(), (p.declarations = []); do { - var g = this.startNode(); - (g.id = + var x = this.startNode(); + (x.id = this.options.ecmaVersion >= 6 ? this.toAssignable(this.parseExprAtom(), !0) : this.parseIdent()), - (g.init = this.eat(t.tokTypes.eq) + (x.init = this.eat(t.tokTypes.eq) ? this.parseMaybeAssign(f) : null), - u.declarations.push(this.finishNode(g, 'VariableDeclarator')); + p.declarations.push(this.finishNode(x, 'VariableDeclarator')); } while (this.eat(t.tokTypes.comma)); - if (!u.declarations.length) { - var S = this.startNode(); - (S.id = this.dummyIdent()), - u.declarations.push(this.finishNode(S, 'VariableDeclarator')); + if (!p.declarations.length) { + var w = this.startNode(); + (w.id = this.dummyIdent()), + p.declarations.push(this.finishNode(w, 'VariableDeclarator')); } return ( - f || this.semicolon(), this.finishNode(u, 'VariableDeclaration') + f || this.semicolon(), this.finishNode(p, 'VariableDeclaration') ); }), - (y.parseClass = function (u) { + (y.parseClass = function (p) { var f = this.startNode(); this.next(), this.tok.type === t.tokTypes.name ? (f.id = this.parseIdent()) - : u === !0 + : p === !0 ? (f.id = this.dummyIdent()) : (f.id = null), (f.superClass = this.eat(t.tokTypes._extends) @@ -30735,17 +30735,17 @@ Defaulting to 2020, but this will stop working in the future.`)), (f.body = this.startNode()), (f.body.body = []), this.pushCx(); - var x = this.curIndent + 1, - g = this.curLineStart; + var v = this.curIndent + 1, + x = this.curLineStart; for ( this.eat(t.tokTypes.braceL), - this.curIndent + 1 < x && - ((x = this.curIndent), (g = this.curLineStart)); - !this.closes(t.tokTypes.braceR, x, g); + this.curIndent + 1 < v && + ((v = this.curIndent), (x = this.curLineStart)); + !this.closes(t.tokTypes.braceR, v, x); ) { - var S = this.parseClassElement(); - S && f.body.body.push(S); + var w = this.parseClassElement(); + w && f.body.body.push(w); } return ( this.popCx(), @@ -30755,56 +30755,56 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.last.loc.end = this.tok.loc.start)), this.semicolon(), this.finishNode(f.body, 'ClassBody'), - this.finishNode(f, u ? 'ClassDeclaration' : 'ClassExpression') + this.finishNode(f, p ? 'ClassDeclaration' : 'ClassExpression') ); }), (y.parseClassElement = function () { if (this.eat(t.tokTypes.semi)) return null; - var u = this.options, - f = u.ecmaVersion, - x = u.locations, - g = this.curIndent, - S = this.curLineStart, - E = this.startNode(), - L = '', - H = !1, + var p = this.options, + f = p.ecmaVersion, + v = p.locations, + x = this.curIndent, + w = this.curLineStart, + S = this.startNode(), + A = '', + U = !1, D = !1, c = 'method', M = !1; if (this.eatContextual('static')) { if (f >= 13 && this.eat(t.tokTypes.braceL)) - return this.parseClassStaticBlock(E), E; + return this.parseClassStaticBlock(S), S; this.isClassElementNameStart() || this.toks.type === t.tokTypes.star ? (M = !0) - : (L = 'static'); + : (A = 'static'); } if ( - ((E.static = M), - !L && + ((S.static = M), + !A && f >= 8 && this.eatContextual('async') && ((this.isClassElementNameStart() || this.toks.type === t.tokTypes.star) && !this.canInsertSemicolon() ? (D = !0) - : (L = 'async')), - !L) + : (A = 'async')), + !A) ) { - H = this.eat(t.tokTypes.star); + U = this.eat(t.tokTypes.star); var z = this.toks.value; (this.eatContextual('get') || this.eatContextual('set')) && - (this.isClassElementNameStart() ? (c = z) : (L = z)); + (this.isClassElementNameStart() ? (c = z) : (A = z)); } - if (L) - (E.computed = !1), - (E.key = this.startNodeAt( - x + if (A) + (S.computed = !1), + (S.key = this.startNodeAt( + v ? [this.toks.lastTokStart, this.toks.lastTokStartLoc] : this.toks.lastTokStart )), - (E.key.name = L), - this.finishNode(E.key, 'Identifier'); - else if ((this.parseClassElementName(E), i(E.key))) + (S.key.name = A), + this.finishNode(S.key, 'Identifier'); + else if ((this.parseClassElementName(S), i(S.key))) return ( i(this.parseMaybeAssign()) && this.next(), this.eat(t.tokTypes.comma), @@ -30814,104 +30814,104 @@ Defaulting to 2020, but this will stop working in the future.`)), f < 13 || this.toks.type === t.tokTypes.parenL || c !== 'method' || - H || + U || D ) { var X = - !E.computed && - !E.static && - !H && + !S.computed && + !S.static && + !U && !D && c === 'method' && - ((E.key.type === 'Identifier' && E.key.name === 'constructor') || - (E.key.type === 'Literal' && E.key.value === 'constructor')); - (E.kind = X ? 'constructor' : c), - (E.value = this.parseMethod(H, D)), - this.finishNode(E, 'MethodDefinition'); + ((S.key.type === 'Identifier' && S.key.name === 'constructor') || + (S.key.type === 'Literal' && S.key.value === 'constructor')); + (S.kind = X ? 'constructor' : c), + (S.value = this.parseMethod(U, D)), + this.finishNode(S, 'MethodDefinition'); } else { if (this.eat(t.tokTypes.eq)) if ( - this.curLineStart !== S && - this.curIndent <= g && + this.curLineStart !== w && + this.curIndent <= x && this.tokenStartsLine() ) - E.value = null; + S.value = null; else { var ie = this.inAsync, pe = this.inGenerator; (this.inAsync = !1), (this.inGenerator = !1), - (E.value = this.parseMaybeAssign()), + (S.value = this.parseMaybeAssign()), (this.inAsync = ie), (this.inGenerator = pe); } - else E.value = null; - this.semicolon(), this.finishNode(E, 'PropertyDefinition'); + else S.value = null; + this.semicolon(), this.finishNode(S, 'PropertyDefinition'); } - return E; + return S; }), - (y.parseClassStaticBlock = function (u) { + (y.parseClassStaticBlock = function (p) { var f = this.curIndent, - x = this.curLineStart; + v = this.curLineStart; for ( - u.body = [], this.pushCx(); - !this.closes(t.tokTypes.braceR, f, x, !0); + p.body = [], this.pushCx(); + !this.closes(t.tokTypes.braceR, f, v, !0); ) - u.body.push(this.parseStatement()); + p.body.push(this.parseStatement()); return ( this.popCx(), this.eat(t.tokTypes.braceR), - this.finishNode(u, 'StaticBlock') + this.finishNode(p, 'StaticBlock') ); }), (y.isClassElementNameStart = function () { return this.toks.isClassElementNameStart(); }), - (y.parseClassElementName = function (u) { + (y.parseClassElementName = function (p) { this.toks.type === t.tokTypes.privateId - ? ((u.computed = !1), (u.key = this.parsePrivateIdent())) - : this.parsePropertyName(u); + ? ((p.computed = !1), (p.key = this.parsePrivateIdent())) + : this.parsePropertyName(p); }), - (y.parseFunction = function (u, f, x) { - var g = this.inAsync, - S = this.inGenerator, - E = this.inFunction; + (y.parseFunction = function (p, f, v) { + var x = this.inAsync, + w = this.inGenerator, + S = this.inFunction; return ( - this.initFunction(u), + this.initFunction(p), this.options.ecmaVersion >= 6 && - (u.generator = this.eat(t.tokTypes.star)), - this.options.ecmaVersion >= 8 && (u.async = !!x), + (p.generator = this.eat(t.tokTypes.star)), + this.options.ecmaVersion >= 8 && (p.async = !!v), this.tok.type === t.tokTypes.name - ? (u.id = this.parseIdent()) - : f === !0 && (u.id = this.dummyIdent()), - (this.inAsync = u.async), - (this.inGenerator = u.generator), + ? (p.id = this.parseIdent()) + : f === !0 && (p.id = this.dummyIdent()), + (this.inAsync = p.async), + (this.inGenerator = p.generator), (this.inFunction = !0), - (u.params = this.parseFunctionParams()), - (u.body = this.parseBlock()), - this.toks.adaptDirectivePrologue(u.body.body), - (this.inAsync = g), - (this.inGenerator = S), - (this.inFunction = E), - this.finishNode(u, f ? 'FunctionDeclaration' : 'FunctionExpression') + (p.params = this.parseFunctionParams()), + (p.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(p.body.body), + (this.inAsync = x), + (this.inGenerator = w), + (this.inFunction = S), + this.finishNode(p, f ? 'FunctionDeclaration' : 'FunctionExpression') ); }), (y.parseExport = function () { - var u = this.startNode(); + var p = this.startNode(); if ((this.next(), this.eat(t.tokTypes.star))) return ( this.options.ecmaVersion >= 11 && (this.eatContextual('as') - ? (u.exported = this.parseExprAtom()) - : (u.exported = null)), - (u.source = this.eatContextual('from') + ? (p.exported = this.parseExprAtom()) + : (p.exported = null)), + (p.source = this.eatContextual('from') ? this.parseExprAtom() : this.dummyString()), this.options.ecmaVersion >= 16 && - (u.attributes = this.parseWithClause()), + (p.attributes = this.parseWithClause()), this.semicolon(), - this.finishNode(u, 'ExportAllDeclaration') + this.finishNode(p, 'ExportAllDeclaration') ); if (this.eat(t.tokTypes._default)) { var f; @@ -30919,38 +30919,38 @@ Defaulting to 2020, but this will stop working in the future.`)), this.tok.type === t.tokTypes._function || (f = this.toks.isAsyncFunction()) ) { - var x = this.startNode(); + var v = this.startNode(); this.next(), f && this.next(), - (u.declaration = this.parseFunction(x, 'nullableID', f)); + (p.declaration = this.parseFunction(v, 'nullableID', f)); } else this.tok.type === t.tokTypes._class - ? (u.declaration = this.parseClass('nullableID')) - : ((u.declaration = this.parseMaybeAssign()), this.semicolon()); - return this.finishNode(u, 'ExportDefaultDeclaration'); + ? (p.declaration = this.parseClass('nullableID')) + : ((p.declaration = this.parseMaybeAssign()), this.semicolon()); + return this.finishNode(p, 'ExportDefaultDeclaration'); } return ( this.tok.type.keyword || this.toks.isLet() || this.toks.isAsyncFunction() - ? ((u.declaration = this.parseStatement()), - (u.specifiers = []), - (u.source = null)) - : ((u.declaration = null), - (u.specifiers = this.parseExportSpecifierList()), - (u.source = this.eatContextual('from') + ? ((p.declaration = this.parseStatement()), + (p.specifiers = []), + (p.source = null)) + : ((p.declaration = null), + (p.specifiers = this.parseExportSpecifierList()), + (p.source = this.eatContextual('from') ? this.parseExprAtom() : null), this.options.ecmaVersion >= 16 && - (u.attributes = this.parseWithClause()), + (p.attributes = this.parseWithClause()), this.semicolon()), - this.finishNode(u, 'ExportNamedDeclaration') + this.finishNode(p, 'ExportNamedDeclaration') ); }), (y.parseImport = function () { - var u = this.startNode(); + var p = this.startNode(); if ((this.next(), this.tok.type === t.tokTypes.string)) - (u.specifiers = []), (u.source = this.parseExprAtom()); + (p.specifiers = []), (p.source = this.parseExprAtom()); else { var f; this.tok.type === t.tokTypes.name && @@ -30959,133 +30959,133 @@ Defaulting to 2020, but this will stop working in the future.`)), (f.local = this.parseIdent()), this.finishNode(f, 'ImportDefaultSpecifier'), this.eat(t.tokTypes.comma)), - (u.specifiers = this.parseImportSpecifiers()), - (u.source = + (p.specifiers = this.parseImportSpecifiers()), + (p.source = this.eatContextual('from') && this.tok.type === t.tokTypes.string ? this.parseExprAtom() : this.dummyString()), - f && u.specifiers.unshift(f); + f && p.specifiers.unshift(f); } return ( this.options.ecmaVersion >= 16 && - (u.attributes = this.parseWithClause()), + (p.attributes = this.parseWithClause()), this.semicolon(), - this.finishNode(u, 'ImportDeclaration') + this.finishNode(p, 'ImportDeclaration') ); }), (y.parseImportSpecifiers = function () { - var u = []; + var p = []; if (this.tok.type === t.tokTypes.star) { var f = this.startNode(); this.next(), (f.local = this.eatContextual('as') ? this.parseIdent() : this.dummyIdent()), - u.push(this.finishNode(f, 'ImportNamespaceSpecifier')); + p.push(this.finishNode(f, 'ImportNamespaceSpecifier')); } else { - var x = this.curIndent, - g = this.curLineStart, - S = this.nextLineStart; + var v = this.curIndent, + x = this.curLineStart, + w = this.nextLineStart; for ( this.pushCx(), this.eat(t.tokTypes.braceL), - this.curLineStart > S && (S = this.curLineStart); + this.curLineStart > w && (w = this.curLineStart); !this.closes( t.tokTypes.braceR, - x + (this.curLineStart <= S ? 1 : 0), - g + v + (this.curLineStart <= w ? 1 : 0), + x ); ) { - var E = this.startNode(); + var S = this.startNode(); if (this.eat(t.tokTypes.star)) - (E.local = this.eatContextual('as') + (S.local = this.eatContextual('as') ? this.parseModuleExportName() : this.dummyIdent()), - this.finishNode(E, 'ImportNamespaceSpecifier'); + this.finishNode(S, 'ImportNamespaceSpecifier'); else { if ( this.isContextual('from') || - ((E.imported = this.parseModuleExportName()), i(E.imported)) + ((S.imported = this.parseModuleExportName()), i(S.imported)) ) break; - (E.local = this.eatContextual('as') + (S.local = this.eatContextual('as') ? this.parseModuleExportName() - : E.imported), - this.finishNode(E, 'ImportSpecifier'); + : S.imported), + this.finishNode(S, 'ImportSpecifier'); } - u.push(E), this.eat(t.tokTypes.comma); + p.push(S), this.eat(t.tokTypes.comma); } this.eat(t.tokTypes.braceR), this.popCx(); } - return u; + return p; }), (y.parseWithClause = function () { - var u = []; - if (!this.eat(t.tokTypes._with)) return u; + var p = []; + if (!this.eat(t.tokTypes._with)) return p; var f = this.curIndent, - x = this.curLineStart, - g = this.nextLineStart; + v = this.curLineStart, + x = this.nextLineStart; for ( this.pushCx(), this.eat(t.tokTypes.braceL), - this.curLineStart > g && (g = this.curLineStart); + this.curLineStart > x && (x = this.curLineStart); !this.closes( t.tokTypes.braceR, - f + (this.curLineStart <= g ? 1 : 0), - x + f + (this.curLineStart <= x ? 1 : 0), + v ); ) { - var S = this.startNode(); + var w = this.startNode(); if ( - ((S.key = + ((w.key = this.tok.type === t.tokTypes.string ? this.parseExprAtom() : this.parseIdent()), this.eat(t.tokTypes.colon)) ) this.tok.type === t.tokTypes.string - ? (S.value = this.parseExprAtom()) - : (S.value = this.dummyString()); + ? (w.value = this.parseExprAtom()) + : (w.value = this.dummyString()); else { - if (i(S.key)) break; + if (i(w.key)) break; if (this.tok.type === t.tokTypes.string) - S.value = this.parseExprAtom(); + w.value = this.parseExprAtom(); else break; } - u.push(this.finishNode(S, 'ImportAttribute')), + p.push(this.finishNode(w, 'ImportAttribute')), this.eat(t.tokTypes.comma); } - return this.eat(t.tokTypes.braceR), this.popCx(), u; + return this.eat(t.tokTypes.braceR), this.popCx(), p; }), (y.parseExportSpecifierList = function () { - var u = [], + var p = [], f = this.curIndent, - x = this.curLineStart, - g = this.nextLineStart; + v = this.curLineStart, + x = this.nextLineStart; for ( this.pushCx(), this.eat(t.tokTypes.braceL), - this.curLineStart > g && (g = this.curLineStart); + this.curLineStart > x && (x = this.curLineStart); !this.closes( t.tokTypes.braceR, - f + (this.curLineStart <= g ? 1 : 0), - x + f + (this.curLineStart <= x ? 1 : 0), + v ) && !this.isContextual('from'); ) { - var S = this.startNode(); - if (((S.local = this.parseModuleExportName()), i(S.local))) break; - (S.exported = this.eatContextual('as') + var w = this.startNode(); + if (((w.local = this.parseModuleExportName()), i(w.local))) break; + (w.exported = this.eatContextual('as') ? this.parseModuleExportName() - : S.local), - this.finishNode(S, 'ExportSpecifier'), - u.push(S), + : w.local), + this.finishNode(w, 'ExportSpecifier'), + p.push(w), this.eat(t.tokTypes.comma); } - return this.eat(t.tokTypes.braceR), this.popCx(), u; + return this.eat(t.tokTypes.braceR), this.popCx(), p; }), (y.parseModuleExportName = function () { return this.options.ecmaVersion >= 13 && @@ -31093,36 +31093,36 @@ Defaulting to 2020, but this will stop working in the future.`)), ? this.parseExprAtom() : this.parseIdent(); }); - var k = a.prototype; - (k.checkLVal = function (u) { - if (!u) return u; - switch (u.type) { + var g = a.prototype; + (g.checkLVal = function (p) { + if (!p) return p; + switch (p.type) { case 'Identifier': case 'MemberExpression': - return u; + return p; case 'ParenthesizedExpression': - return (u.expression = this.checkLVal(u.expression)), u; + return (p.expression = this.checkLVal(p.expression)), p; default: return this.dummyIdent(); } }), - (k.parseExpression = function (u) { + (g.parseExpression = function (p) { var f = this.storeCurrentPos(), - x = this.parseMaybeAssign(u); + v = this.parseMaybeAssign(p); if (this.tok.type === t.tokTypes.comma) { - var g = this.startNodeAt(f); - for (g.expressions = [x]; this.eat(t.tokTypes.comma); ) - g.expressions.push(this.parseMaybeAssign(u)); - return this.finishNode(g, 'SequenceExpression'); + var x = this.startNodeAt(f); + for (x.expressions = [v]; this.eat(t.tokTypes.comma); ) + x.expressions.push(this.parseMaybeAssign(p)); + return this.finishNode(x, 'SequenceExpression'); } - return x; + return v; }), - (k.parseParenExpression = function () { + (g.parseParenExpression = function () { this.pushCx(), this.expect(t.tokTypes.parenL); - var u = this.parseExpression(); - return this.popCx(), this.expect(t.tokTypes.parenR), u; + var p = this.parseExpression(); + return this.popCx(), this.expect(t.tokTypes.parenR), p; }), - (k.parseMaybeAssign = function (u) { + (g.parseMaybeAssign = function (p) { if (this.inGenerator && this.toks.isContextual('yield')) { var f = this.startNode(); return ( @@ -31136,90 +31136,90 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(f, 'YieldExpression') ); } - var x = this.storeCurrentPos(), - g = this.parseMaybeConditional(u); + var v = this.storeCurrentPos(), + x = this.parseMaybeConditional(p); if (this.tok.type.isAssign) { - var S = this.startNodeAt(x); + var w = this.startNodeAt(v); return ( - (S.operator = this.tok.value), - (S.left = + (w.operator = this.tok.value), + (w.left = this.tok.type === t.tokTypes.eq - ? this.toAssignable(g) - : this.checkLVal(g)), + ? this.toAssignable(x) + : this.checkLVal(x)), this.next(), - (S.right = this.parseMaybeAssign(u)), - this.finishNode(S, 'AssignmentExpression') + (w.right = this.parseMaybeAssign(p)), + this.finishNode(w, 'AssignmentExpression') ); } - return g; + return x; }), - (k.parseMaybeConditional = function (u) { + (g.parseMaybeConditional = function (p) { var f = this.storeCurrentPos(), - x = this.parseExprOps(u); + v = this.parseExprOps(p); if (this.eat(t.tokTypes.question)) { - var g = this.startNodeAt(f); + var x = this.startNodeAt(f); return ( - (g.test = x), - (g.consequent = this.parseMaybeAssign()), - (g.alternate = this.expect(t.tokTypes.colon) - ? this.parseMaybeAssign(u) + (x.test = v), + (x.consequent = this.parseMaybeAssign()), + (x.alternate = this.expect(t.tokTypes.colon) + ? this.parseMaybeAssign(p) : this.dummyIdent()), - this.finishNode(g, 'ConditionalExpression') + this.finishNode(x, 'ConditionalExpression') ); } - return x; + return v; }), - (k.parseExprOps = function (u) { + (g.parseExprOps = function (p) { var f = this.storeCurrentPos(), - x = this.curIndent, - g = this.curLineStart; - return this.parseExprOp(this.parseMaybeUnary(!1), f, -1, u, x, g); + v = this.curIndent, + x = this.curLineStart; + return this.parseExprOp(this.parseMaybeUnary(!1), f, -1, p, v, x); }), - (k.parseExprOp = function (u, f, x, g, S, E) { + (g.parseExprOp = function (p, f, v, x, w, S) { if ( - this.curLineStart !== E && - this.curIndent < S && + this.curLineStart !== S && + this.curIndent < w && this.tokenStartsLine() ) - return u; - var L = this.tok.type.binop; - if (L != null && (!g || this.tok.type !== t.tokTypes._in) && L > x) { - var H = this.startNodeAt(f); + return p; + var A = this.tok.type.binop; + if (A != null && (!x || this.tok.type !== t.tokTypes._in) && A > v) { + var U = this.startNodeAt(f); if ( - ((H.left = u), - (H.operator = this.tok.value), + ((U.left = p), + (U.operator = this.tok.value), this.next(), - this.curLineStart !== E && - this.curIndent < S && + this.curLineStart !== S && + this.curIndent < w && this.tokenStartsLine()) ) - H.right = this.dummyIdent(); + U.right = this.dummyIdent(); else { var D = this.storeCurrentPos(); - H.right = this.parseExprOp( + U.right = this.parseExprOp( this.parseMaybeUnary(!1), D, - L, - g, - S, - E + A, + x, + w, + S ); } return ( this.finishNode( - H, - /&&|\|\||\?\?/.test(H.operator) + U, + /&&|\|\||\?\?/.test(U.operator) ? 'LogicalExpression' : 'BinaryExpression' ), - this.parseExprOp(H, f, x, g, S, E) + this.parseExprOp(U, f, v, x, w, S) ); } - return u; + return p; }), - (k.parseMaybeUnary = function (u) { + (g.parseMaybeUnary = function (p) { var f = this.storeCurrentPos(), - x; + v; if ( this.options.ecmaVersion >= 8 && this.toks.isContextual('await') && @@ -31227,77 +31227,77 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.toks.inModule && this.options.ecmaVersion >= 13) || (!this.inFunction && this.options.allowAwaitOutsideFunction)) ) - (x = this.parseAwait()), (u = !0); + (v = this.parseAwait()), (p = !0); else if (this.tok.type.prefix) { - var g = this.startNode(), - S = this.tok.type === t.tokTypes.incDec; - S || (u = !0), - (g.operator = this.tok.value), - (g.prefix = !0), + var x = this.startNode(), + w = this.tok.type === t.tokTypes.incDec; + w || (p = !0), + (x.operator = this.tok.value), + (x.prefix = !0), this.next(), - (g.argument = this.parseMaybeUnary(!0)), - S && (g.argument = this.checkLVal(g.argument)), - (x = this.finishNode( - g, - S ? 'UpdateExpression' : 'UnaryExpression' + (x.argument = this.parseMaybeUnary(!0)), + w && (x.argument = this.checkLVal(x.argument)), + (v = this.finishNode( + x, + w ? 'UpdateExpression' : 'UnaryExpression' )); } else if (this.tok.type === t.tokTypes.ellipsis) { - var E = this.startNode(); + var S = this.startNode(); this.next(), - (E.argument = this.parseMaybeUnary(u)), - (x = this.finishNode(E, 'SpreadElement')); - } else if (!u && this.tok.type === t.tokTypes.privateId) - x = this.parsePrivateIdent(); + (S.argument = this.parseMaybeUnary(p)), + (v = this.finishNode(S, 'SpreadElement')); + } else if (!p && this.tok.type === t.tokTypes.privateId) + v = this.parsePrivateIdent(); else for ( - x = this.parseExprSubscripts(); + v = this.parseExprSubscripts(); this.tok.type.postfix && !this.canInsertSemicolon(); ) { - var L = this.startNodeAt(f); - (L.operator = this.tok.value), - (L.prefix = !1), - (L.argument = this.checkLVal(x)), + var A = this.startNodeAt(f); + (A.operator = this.tok.value), + (A.prefix = !1), + (A.argument = this.checkLVal(v)), this.next(), - (x = this.finishNode(L, 'UpdateExpression')); + (v = this.finishNode(A, 'UpdateExpression')); } - if (!u && this.eat(t.tokTypes.starstar)) { - var H = this.startNodeAt(f); + if (!p && this.eat(t.tokTypes.starstar)) { + var U = this.startNodeAt(f); return ( - (H.operator = '**'), - (H.left = x), - (H.right = this.parseMaybeUnary(!1)), - this.finishNode(H, 'BinaryExpression') + (U.operator = '**'), + (U.left = v), + (U.right = this.parseMaybeUnary(!1)), + this.finishNode(U, 'BinaryExpression') ); } - return x; + return v; }), - (k.parseExprSubscripts = function () { - var u = this.storeCurrentPos(); + (g.parseExprSubscripts = function () { + var p = this.storeCurrentPos(); return this.parseSubscripts( this.parseExprAtom(), - u, + p, !1, this.curIndent, this.curLineStart ); }), - (k.parseSubscripts = function (u, f, x, g, S) { - for (var E = this.options.ecmaVersion >= 11, L = !1; ; ) { + (g.parseSubscripts = function (p, f, v, x, w) { + for (var S = this.options.ecmaVersion >= 11, A = !1; ; ) { if ( - this.curLineStart !== S && - this.curIndent <= g && + this.curLineStart !== w && + this.curIndent <= x && this.tokenStartsLine() ) - if (this.tok.type === t.tokTypes.dot && this.curIndent === g) --g; + if (this.tok.type === t.tokTypes.dot && this.curIndent === x) --x; else break; - var H = - u.type === 'Identifier' && - u.name === 'async' && + var U = + p.type === 'Identifier' && + p.name === 'async' && !this.canInsertSemicolon(), - D = E && this.eat(t.tokTypes.questionDot); + D = S && this.eat(t.tokTypes.questionDot); if ( - (D && (L = !0), + (D && (A = !0), (D && this.tok.type !== t.tokTypes.parenL && this.tok.type !== t.tokTypes.bracketL && @@ -31305,134 +31305,134 @@ Defaulting to 2020, but this will stop working in the future.`)), this.eat(t.tokTypes.dot)) ) { var c = this.startNodeAt(f); - (c.object = u), - this.curLineStart !== S && - this.curIndent <= g && + (c.object = p), + this.curLineStart !== w && + this.curIndent <= x && this.tokenStartsLine() ? (c.property = this.dummyIdent()) : (c.property = this.parsePropertyAccessor() || this.dummyIdent()), (c.computed = !1), - E && (c.optional = D), - (u = this.finishNode(c, 'MemberExpression')); + S && (c.optional = D), + (p = this.finishNode(c, 'MemberExpression')); } else if (this.tok.type === t.tokTypes.bracketL) { this.pushCx(), this.next(); var M = this.startNodeAt(f); - (M.object = u), + (M.object = p), (M.property = this.parseExpression()), (M.computed = !0), - E && (M.optional = D), + S && (M.optional = D), this.popCx(), this.expect(t.tokTypes.bracketR), - (u = this.finishNode(M, 'MemberExpression')); - } else if (!x && this.tok.type === t.tokTypes.parenL) { + (p = this.finishNode(M, 'MemberExpression')); + } else if (!v && this.tok.type === t.tokTypes.parenL) { var z = this.parseExprList(t.tokTypes.parenR); - if (H && this.eat(t.tokTypes.arrow)) + if (U && this.eat(t.tokTypes.arrow)) return this.parseArrowExpression(this.startNodeAt(f), z, !0); var X = this.startNodeAt(f); - (X.callee = u), + (X.callee = p), (X.arguments = z), - E && (X.optional = D), - (u = this.finishNode(X, 'CallExpression')); + S && (X.optional = D), + (p = this.finishNode(X, 'CallExpression')); } else if (this.tok.type === t.tokTypes.backQuote) { var ie = this.startNodeAt(f); - (ie.tag = u), + (ie.tag = p), (ie.quasi = this.parseTemplate()), - (u = this.finishNode(ie, 'TaggedTemplateExpression')); + (p = this.finishNode(ie, 'TaggedTemplateExpression')); } else break; } - if (L) { + if (A) { var pe = this.startNodeAt(f); - (pe.expression = u), (u = this.finishNode(pe, 'ChainExpression')); + (pe.expression = p), (p = this.finishNode(pe, 'ChainExpression')); } - return u; + return p; }), - (k.parseExprAtom = function () { - var u; + (g.parseExprAtom = function () { + var p; switch (this.tok.type) { case t.tokTypes._this: case t.tokTypes._super: var f = this.tok.type === t.tokTypes._this ? 'ThisExpression' : 'Super'; - return (u = this.startNode()), this.next(), this.finishNode(u, f); + return (p = this.startNode()), this.next(), this.finishNode(p, f); case t.tokTypes.name: - var x = this.storeCurrentPos(), - g = this.parseIdent(), - S = !1; - if (g.name === 'async' && !this.canInsertSemicolon()) { + var v = this.storeCurrentPos(), + x = this.parseIdent(), + w = !1; + if (x.name === 'async' && !this.canInsertSemicolon()) { if (this.eat(t.tokTypes._function)) return ( this.toks.overrideContext(t.tokContexts.f_expr), - this.parseFunction(this.startNodeAt(x), !1, !0) + this.parseFunction(this.startNodeAt(v), !1, !0) ); this.tok.type === t.tokTypes.name && - ((g = this.parseIdent()), (S = !0)); + ((x = this.parseIdent()), (w = !0)); } return this.eat(t.tokTypes.arrow) - ? this.parseArrowExpression(this.startNodeAt(x), [g], S) - : g; + ? this.parseArrowExpression(this.startNodeAt(v), [x], w) + : x; case t.tokTypes.regexp: - u = this.startNode(); - var E = this.tok.value; + p = this.startNode(); + var S = this.tok.value; return ( - (u.regex = {pattern: E.pattern, flags: E.flags}), - (u.value = E.value), - (u.raw = this.input.slice(this.tok.start, this.tok.end)), + (p.regex = {pattern: S.pattern, flags: S.flags}), + (p.value = S.value), + (p.raw = this.input.slice(this.tok.start, this.tok.end)), this.next(), - this.finishNode(u, 'Literal') + this.finishNode(p, 'Literal') ); case t.tokTypes.num: case t.tokTypes.string: return ( - (u = this.startNode()), - (u.value = this.tok.value), - (u.raw = this.input.slice(this.tok.start, this.tok.end)), + (p = this.startNode()), + (p.value = this.tok.value), + (p.raw = this.input.slice(this.tok.start, this.tok.end)), this.tok.type === t.tokTypes.num && - u.raw.charCodeAt(u.raw.length - 1) === 110 && - (u.bigint = - u.value != null - ? u.value.toString() - : u.raw.slice(0, -1).replace(/_/g, '')), + p.raw.charCodeAt(p.raw.length - 1) === 110 && + (p.bigint = + p.value != null + ? p.value.toString() + : p.raw.slice(0, -1).replace(/_/g, '')), this.next(), - this.finishNode(u, 'Literal') + this.finishNode(p, 'Literal') ); case t.tokTypes._null: case t.tokTypes._true: case t.tokTypes._false: return ( - (u = this.startNode()), - (u.value = + (p = this.startNode()), + (p.value = this.tok.type === t.tokTypes._null ? null : this.tok.type === t.tokTypes._true), - (u.raw = this.tok.type.keyword), + (p.raw = this.tok.type.keyword), this.next(), - this.finishNode(u, 'Literal') + this.finishNode(p, 'Literal') ); case t.tokTypes.parenL: - var L = this.storeCurrentPos(); + var A = this.storeCurrentPos(); this.next(); - var H = this.parseExpression(); + var U = this.parseExpression(); if ( (this.expect(t.tokTypes.parenR), this.eat(t.tokTypes.arrow)) ) { - var D = H.expressions || [H]; + var D = U.expressions || [U]; return ( D.length && i(D[D.length - 1]) && D.pop(), - this.parseArrowExpression(this.startNodeAt(L), D) + this.parseArrowExpression(this.startNodeAt(A), D) ); } if (this.options.preserveParens) { - var c = this.startNodeAt(L); - (c.expression = H), - (H = this.finishNode(c, 'ParenthesizedExpression')); + var c = this.startNodeAt(A); + (c.expression = U), + (U = this.finishNode(c, 'ParenthesizedExpression')); } - return H; + return U; case t.tokTypes.bracketL: return ( - (u = this.startNode()), - (u.elements = this.parseExprList(t.tokTypes.bracketR, !0)), - this.finishNode(u, 'ArrayExpression') + (p = this.startNode()), + (p.elements = this.parseExprList(t.tokTypes.bracketR, !0)), + this.finishNode(p, 'ArrayExpression') ); case t.tokTypes.braceL: return ( @@ -31442,7 +31442,7 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.parseClass(!1); case t.tokTypes._function: return ( - (u = this.startNode()), this.next(), this.parseFunction(u, !1) + (p = this.startNode()), this.next(), this.parseFunction(p, !1) ); case t.tokTypes._new: return this.parseNew(); @@ -31456,65 +31456,65 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.dummyIdent(); } }), - (k.parseExprImport = function () { - var u = this.startNode(), + (g.parseExprImport = function () { + var p = this.startNode(), f = this.parseIdent(!0); switch (this.tok.type) { case t.tokTypes.parenL: - return this.parseDynamicImport(u); + return this.parseDynamicImport(p); case t.tokTypes.dot: - return (u.meta = f), this.parseImportMeta(u); + return (p.meta = f), this.parseImportMeta(p); default: - return (u.name = 'import'), this.finishNode(u, 'Identifier'); + return (p.name = 'import'), this.finishNode(p, 'Identifier'); } }), - (k.parseDynamicImport = function (u) { + (g.parseDynamicImport = function (p) { var f = this.parseExprList(t.tokTypes.parenR); return ( - (u.source = f[0] || this.dummyString()), - (u.options = f[1] || null), - this.finishNode(u, 'ImportExpression') + (p.source = f[0] || this.dummyString()), + (p.options = f[1] || null), + this.finishNode(p, 'ImportExpression') ); }), - (k.parseImportMeta = function (u) { + (g.parseImportMeta = function (p) { return ( this.next(), - (u.property = this.parseIdent(!0)), - this.finishNode(u, 'MetaProperty') + (p.property = this.parseIdent(!0)), + this.finishNode(p, 'MetaProperty') ); }), - (k.parseNew = function () { - var u = this.startNode(), + (g.parseNew = function () { + var p = this.startNode(), f = this.curIndent, - x = this.curLineStart, - g = this.parseIdent(!0); + v = this.curLineStart, + x = this.parseIdent(!0); if (this.options.ecmaVersion >= 6 && this.eat(t.tokTypes.dot)) return ( - (u.meta = g), - (u.property = this.parseIdent(!0)), - this.finishNode(u, 'MetaProperty') + (p.meta = x), + (p.property = this.parseIdent(!0)), + this.finishNode(p, 'MetaProperty') ); - var S = this.storeCurrentPos(); + var w = this.storeCurrentPos(); return ( - (u.callee = this.parseSubscripts( + (p.callee = this.parseSubscripts( this.parseExprAtom(), - S, + w, !0, f, - x + v )), this.tok.type === t.tokTypes.parenL - ? (u.arguments = this.parseExprList(t.tokTypes.parenR)) - : (u.arguments = []), - this.finishNode(u, 'NewExpression') + ? (p.arguments = this.parseExprList(t.tokTypes.parenR)) + : (p.arguments = []), + this.finishNode(p, 'NewExpression') ); }), - (k.parseTemplateElement = function () { - var u = this.startNode(); + (g.parseTemplateElement = function () { + var p = this.startNode(); return ( this.tok.type === t.tokTypes.invalidTemplate - ? (u.value = {raw: this.tok.value, cooked: null}) - : (u.value = { + ? (p.value = {raw: this.tok.value, cooked: null}) + : (p.value = { raw: this.input.slice(this.tok.start, this.tok.end).replace( /\r\n?/g, ` @@ -31523,108 +31523,108 @@ Defaulting to 2020, but this will stop working in the future.`)), cooked: this.tok.value, }), this.next(), - (u.tail = this.tok.type === t.tokTypes.backQuote), - this.finishNode(u, 'TemplateElement') + (p.tail = this.tok.type === t.tokTypes.backQuote), + this.finishNode(p, 'TemplateElement') ); }), - (k.parseTemplate = function () { - var u = this.startNode(); - this.next(), (u.expressions = []); + (g.parseTemplate = function () { + var p = this.startNode(); + this.next(), (p.expressions = []); var f = this.parseTemplateElement(); - for (u.quasis = [f]; !f.tail; ) + for (p.quasis = [f]; !f.tail; ) this.next(), - u.expressions.push(this.parseExpression()), + p.expressions.push(this.parseExpression()), this.expect(t.tokTypes.braceR) ? (f = this.parseTemplateElement()) : ((f = this.startNode()), (f.value = {cooked: '', raw: ''}), (f.tail = !0), this.finishNode(f, 'TemplateElement')), - u.quasis.push(f); + p.quasis.push(f); return ( this.expect(t.tokTypes.backQuote), - this.finishNode(u, 'TemplateLiteral') + this.finishNode(p, 'TemplateLiteral') ); }), - (k.parseObj = function () { - var u = this.startNode(); - (u.properties = []), this.pushCx(); + (g.parseObj = function () { + var p = this.startNode(); + (p.properties = []), this.pushCx(); var f = this.curIndent + 1, - x = this.curLineStart; + v = this.curLineStart; for ( this.eat(t.tokTypes.braceL), this.curIndent + 1 < f && - ((f = this.curIndent), (x = this.curLineStart)); - !this.closes(t.tokTypes.braceR, f, x); + ((f = this.curIndent), (v = this.curLineStart)); + !this.closes(t.tokTypes.braceR, f, v); ) { - var g = this.startNode(), + var x = this.startNode(), + w = void 0, S = void 0, - E = void 0, - L = void 0; + A = void 0; if ( this.options.ecmaVersion >= 9 && this.eat(t.tokTypes.ellipsis) ) { - (g.argument = this.parseMaybeAssign()), - u.properties.push(this.finishNode(g, 'SpreadElement')), + (x.argument = this.parseMaybeAssign()), + p.properties.push(this.finishNode(x, 'SpreadElement')), this.eat(t.tokTypes.comma); continue; } if ( (this.options.ecmaVersion >= 6 && - ((L = this.storeCurrentPos()), - (g.method = !1), - (g.shorthand = !1), - (S = this.eat(t.tokTypes.star))), - this.parsePropertyName(g), - this.toks.isAsyncProp(g) - ? ((E = !0), - (S = + ((A = this.storeCurrentPos()), + (x.method = !1), + (x.shorthand = !1), + (w = this.eat(t.tokTypes.star))), + this.parsePropertyName(x), + this.toks.isAsyncProp(x) + ? ((S = !0), + (w = this.options.ecmaVersion >= 9 && this.eat(t.tokTypes.star)), - this.parsePropertyName(g)) - : (E = !1), - i(g.key)) + this.parsePropertyName(x)) + : (S = !1), + i(x.key)) ) { i(this.parseMaybeAssign()) && this.next(), this.eat(t.tokTypes.comma); continue; } if (this.eat(t.tokTypes.colon)) - (g.kind = 'init'), (g.value = this.parseMaybeAssign()); + (x.kind = 'init'), (x.value = this.parseMaybeAssign()); else if ( this.options.ecmaVersion >= 6 && (this.tok.type === t.tokTypes.parenL || this.tok.type === t.tokTypes.braceL) ) - (g.kind = 'init'), - (g.method = !0), - (g.value = this.parseMethod(S, E)); + (x.kind = 'init'), + (x.method = !0), + (x.value = this.parseMethod(w, S)); else if ( this.options.ecmaVersion >= 5 && - g.key.type === 'Identifier' && - !g.computed && - (g.key.name === 'get' || g.key.name === 'set') && + x.key.type === 'Identifier' && + !x.computed && + (x.key.name === 'get' || x.key.name === 'set') && this.tok.type !== t.tokTypes.comma && this.tok.type !== t.tokTypes.braceR && this.tok.type !== t.tokTypes.eq ) - (g.kind = g.key.name), - this.parsePropertyName(g), - (g.value = this.parseMethod(!1)); + (x.kind = x.key.name), + this.parsePropertyName(x), + (x.value = this.parseMethod(!1)); else { - if (((g.kind = 'init'), this.options.ecmaVersion >= 6)) + if (((x.kind = 'init'), this.options.ecmaVersion >= 6)) if (this.eat(t.tokTypes.eq)) { - var H = this.startNodeAt(L); - (H.operator = '='), - (H.left = g.key), - (H.right = this.parseMaybeAssign()), - (g.value = this.finishNode(H, 'AssignmentExpression')); - } else g.value = g.key; - else g.value = this.dummyIdent(); - g.shorthand = !0; + var U = this.startNodeAt(A); + (U.operator = '='), + (U.left = x.key), + (U.right = this.parseMaybeAssign()), + (x.value = this.finishNode(U, 'AssignmentExpression')); + } else x.value = x.key; + else x.value = this.dummyIdent(); + x.shorthand = !0; } - u.properties.push(this.finishNode(g, 'Property')), + p.properties.push(this.finishNode(x, 'Property')), this.eat(t.tokTypes.comma); } return ( @@ -31633,179 +31633,179 @@ Defaulting to 2020, but this will stop working in the future.`)), ((this.last.end = this.tok.start), this.options.locations && (this.last.loc.end = this.tok.loc.start)), - this.finishNode(u, 'ObjectExpression') + this.finishNode(p, 'ObjectExpression') ); }), - (k.parsePropertyName = function (u) { + (g.parsePropertyName = function (p) { if (this.options.ecmaVersion >= 6) if (this.eat(t.tokTypes.bracketL)) { - (u.computed = !0), - (u.key = this.parseExpression()), + (p.computed = !0), + (p.key = this.parseExpression()), this.expect(t.tokTypes.bracketR); return; - } else u.computed = !1; + } else p.computed = !1; var f = this.tok.type === t.tokTypes.num || this.tok.type === t.tokTypes.string ? this.parseExprAtom() : this.parseIdent(); - u.key = f || this.dummyIdent(); + p.key = f || this.dummyIdent(); }), - (k.parsePropertyAccessor = function () { + (g.parsePropertyAccessor = function () { if (this.tok.type === t.tokTypes.name || this.tok.type.keyword) return this.parseIdent(); if (this.tok.type === t.tokTypes.privateId) return this.parsePrivateIdent(); }), - (k.parseIdent = function () { - var u = + (g.parseIdent = function () { + var p = this.tok.type === t.tokTypes.name ? this.tok.value : this.tok.type.keyword; - if (!u) return this.dummyIdent(); + if (!p) return this.dummyIdent(); this.tok.type.keyword && (this.toks.type = t.tokTypes.name); var f = this.startNode(); - return this.next(), (f.name = u), this.finishNode(f, 'Identifier'); + return this.next(), (f.name = p), this.finishNode(f, 'Identifier'); }), - (k.parsePrivateIdent = function () { - var u = this.startNode(); + (g.parsePrivateIdent = function () { + var p = this.startNode(); return ( - (u.name = this.tok.value), + (p.name = this.tok.value), this.next(), - this.finishNode(u, 'PrivateIdentifier') + this.finishNode(p, 'PrivateIdentifier') ); }), - (k.initFunction = function (u) { - (u.id = null), - (u.params = []), + (g.initFunction = function (p) { + (p.id = null), + (p.params = []), this.options.ecmaVersion >= 6 && - ((u.generator = !1), (u.expression = !1)), - this.options.ecmaVersion >= 8 && (u.async = !1); + ((p.generator = !1), (p.expression = !1)), + this.options.ecmaVersion >= 8 && (p.async = !1); }), - (k.toAssignable = function (u, f) { + (g.toAssignable = function (p, f) { if ( !( - !u || - u.type === 'Identifier' || - (u.type === 'MemberExpression' && !f) + !p || + p.type === 'Identifier' || + (p.type === 'MemberExpression' && !f) ) ) - if (u.type === 'ParenthesizedExpression') - this.toAssignable(u.expression, f); + if (p.type === 'ParenthesizedExpression') + this.toAssignable(p.expression, f); else { if (this.options.ecmaVersion < 6) return this.dummyIdent(); - if (u.type === 'ObjectExpression') { - u.type = 'ObjectPattern'; - for (var x = 0, g = u.properties; x < g.length; x += 1) { - var S = g[x]; - this.toAssignable(S, f); + if (p.type === 'ObjectExpression') { + p.type = 'ObjectPattern'; + for (var v = 0, x = p.properties; v < x.length; v += 1) { + var w = x[v]; + this.toAssignable(w, f); } - } else if (u.type === 'ArrayExpression') - (u.type = 'ArrayPattern'), this.toAssignableList(u.elements, f); - else if (u.type === 'Property') this.toAssignable(u.value, f); - else if (u.type === 'SpreadElement') - (u.type = 'RestElement'), this.toAssignable(u.argument, f); - else if (u.type === 'AssignmentExpression') - (u.type = 'AssignmentPattern'), delete u.operator; + } else if (p.type === 'ArrayExpression') + (p.type = 'ArrayPattern'), this.toAssignableList(p.elements, f); + else if (p.type === 'Property') this.toAssignable(p.value, f); + else if (p.type === 'SpreadElement') + (p.type = 'RestElement'), this.toAssignable(p.argument, f); + else if (p.type === 'AssignmentExpression') + (p.type = 'AssignmentPattern'), delete p.operator; else return this.dummyIdent(); } - return u; + return p; }), - (k.toAssignableList = function (u, f) { - for (var x = 0, g = u; x < g.length; x += 1) { - var S = g[x]; - this.toAssignable(S, f); + (g.toAssignableList = function (p, f) { + for (var v = 0, x = p; v < x.length; v += 1) { + var w = x[v]; + this.toAssignable(w, f); } - return u; + return p; }), - (k.parseFunctionParams = function (u) { + (g.parseFunctionParams = function (p) { return ( - (u = this.parseExprList(t.tokTypes.parenR)), - this.toAssignableList(u, !0) + (p = this.parseExprList(t.tokTypes.parenR)), + this.toAssignableList(p, !0) ); }), - (k.parseMethod = function (u, f) { - var x = this.startNode(), - g = this.inAsync, - S = this.inGenerator, - E = this.inFunction; + (g.parseMethod = function (p, f) { + var v = this.startNode(), + x = this.inAsync, + w = this.inGenerator, + S = this.inFunction; return ( - this.initFunction(x), - this.options.ecmaVersion >= 6 && (x.generator = !!u), - this.options.ecmaVersion >= 8 && (x.async = !!f), - (this.inAsync = x.async), - (this.inGenerator = x.generator), + this.initFunction(v), + this.options.ecmaVersion >= 6 && (v.generator = !!p), + this.options.ecmaVersion >= 8 && (v.async = !!f), + (this.inAsync = v.async), + (this.inGenerator = v.generator), (this.inFunction = !0), - (x.params = this.parseFunctionParams()), - (x.body = this.parseBlock()), - this.toks.adaptDirectivePrologue(x.body.body), - (this.inAsync = g), - (this.inGenerator = S), - (this.inFunction = E), - this.finishNode(x, 'FunctionExpression') + (v.params = this.parseFunctionParams()), + (v.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(v.body.body), + (this.inAsync = x), + (this.inGenerator = w), + (this.inFunction = S), + this.finishNode(v, 'FunctionExpression') ); }), - (k.parseArrowExpression = function (u, f, x) { - var g = this.inAsync, - S = this.inGenerator, - E = this.inFunction; + (g.parseArrowExpression = function (p, f, v) { + var x = this.inAsync, + w = this.inGenerator, + S = this.inFunction; return ( - this.initFunction(u), - this.options.ecmaVersion >= 8 && (u.async = !!x), - (this.inAsync = u.async), + this.initFunction(p), + this.options.ecmaVersion >= 8 && (p.async = !!v), + (this.inAsync = p.async), (this.inGenerator = !1), (this.inFunction = !0), - (u.params = this.toAssignableList(f, !0)), - (u.expression = this.tok.type !== t.tokTypes.braceL), - u.expression - ? (u.body = this.parseMaybeAssign()) - : ((u.body = this.parseBlock()), - this.toks.adaptDirectivePrologue(u.body.body)), - (this.inAsync = g), - (this.inGenerator = S), - (this.inFunction = E), - this.finishNode(u, 'ArrowFunctionExpression') + (p.params = this.toAssignableList(f, !0)), + (p.expression = this.tok.type !== t.tokTypes.braceL), + p.expression + ? (p.body = this.parseMaybeAssign()) + : ((p.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(p.body.body)), + (this.inAsync = x), + (this.inGenerator = w), + (this.inFunction = S), + this.finishNode(p, 'ArrowFunctionExpression') ); }), - (k.parseExprList = function (u, f) { + (g.parseExprList = function (p, f) { this.pushCx(); - var x = this.curIndent, - g = this.curLineStart, - S = []; - for (this.next(); !this.closes(u, x + 1, g); ) { + var v = this.curIndent, + x = this.curLineStart, + w = []; + for (this.next(); !this.closes(p, v + 1, x); ) { if (this.eat(t.tokTypes.comma)) { - S.push(f ? null : this.dummyIdent()); + w.push(f ? null : this.dummyIdent()); continue; } - var E = this.parseMaybeAssign(); - if (i(E)) { - if (this.closes(u, x, g)) break; + var S = this.parseMaybeAssign(); + if (i(S)) { + if (this.closes(p, v, x)) break; this.next(); - } else S.push(E); + } else w.push(S); this.eat(t.tokTypes.comma); } return ( this.popCx(), - this.eat(u) || + this.eat(p) || ((this.last.end = this.tok.start), this.options.locations && (this.last.loc.end = this.tok.loc.start)), - S + w ); }), - (k.parseAwait = function () { - var u = this.startNode(); + (g.parseAwait = function () { + var p = this.startNode(); return ( this.next(), - (u.argument = this.parseMaybeUnary()), - this.finishNode(u, 'AwaitExpression') + (p.argument = this.parseMaybeUnary()), + this.finishNode(p, 'AwaitExpression') ); }), (t.defaultOptions.tabSize = 4); - function A(u, f) { - return a.parse(u, f); + function L(p, f) { + return a.parse(p, f); } - (e.LooseParser = a), (e.isDummy = i), (e.parse = A); + (e.LooseParser = a), (e.isDummy = i), (e.parse = L); }); }); var Vo = Li(), @@ -31871,74 +31871,107 @@ Defaulting to 2020, but this will stop working in the future.`)), s = {}, i = null; if ( - (Object.keys(e).forEach(function (k) { + (Object.keys(e).forEach(function (f) { if (!i) try { - s[k] = Kg.transform(e[k], { + s[f] = Kg.transform(e[f], { transforms: ['jsx', 'imports'], jsxRuntime: 'automatic', production: !0, }).code; - } catch (A) { - i = k + ': ' + (A.message || String(A)); + } catch (v) { + i = f + ': ' + (v.message || String(v)); } }), i) ) return {type: 'error', error: i}; - function r(k, A) { - if (t[A]) return A; - if (A.startsWith('.')) { - var u = Gg(k, A); - if (t[u] || s[u]) return u; - for (var f = ['.js', '.jsx', '.ts', '.tsx'], x = 0; x < f.length; x++) { - var g = u + f[x]; - if (t[g] || s[g]) return g; + function r(f, v) { + if (t[v]) return v; + if (v.startsWith('.')) { + var x = Gg(f, v); + if (t[x] || s[x]) return x; + for (var w = ['.js', '.jsx', '.ts', '.tsx'], S = 0; S < w.length; S++) { + var A = x + w[S]; + if (t[A] || s[A]) return A; } } - return A; + return v; } var a = {}, - p = {}; - function d(k) { - if (t[k]) return t[k]; - if (!s[k]) throw new Error('Module "' + k + '" not found'); - if (a[k]) return a[k].exports; - var A = Wg(e[k]); - if (A === 'use client') - return (t[k] = dr.createClientModuleProxy(k)), (p[k] = !0), t[k]; - var u = {exports: {}}; - a[k] = u; - var f = function (E) { - if (E.endsWith('.css')) return {}; - var L = r(k, E); - return t[L] ? t[L] : d(L); + u = {}; + function d(f) { + if (t[f]) return t[f]; + if (!s[f]) throw new Error('Module "' + f + '" not found'); + if (a[f]) return a[f].exports; + var v = Wg(e[f]); + if (v === 'use client') + return (t[f] = dr.createClientModuleProxy(f)), (u[f] = !0), t[f]; + var x = {exports: {}}; + a[f] = x; + var w = function (D) { + if (D.endsWith('.css')) return {}; + var c = r(f, D); + return t[c] ? t[c] : d(c); }; if ( - (new Function('module', 'exports', 'require', 'React', s[k])( - u, - u.exports, - f, + (new Function('module', 'exports', 'require', 'React', s[f])( + x, + x.exports, + w, Vo ), - (t[k] = u.exports), - A === 'use server') + (t[f] = x.exports), + v === 'use server') ) - for (var x = Object.keys(u.exports), g = 0; g < x.length; g++) { - var S = x[g]; - typeof u.exports[S] == 'function' && Hg(u.exports[S], k, S); + for (var S = Object.keys(x.exports), A = 0; A < S.length; A++) { + var U = S[A]; + typeof x.exports[U] == 'function' && Hg(x.exports[U], f, U); } - return delete a[k], u.exports; + return delete a[f], x.exports; } var y = {exports: {}}; + Object.keys(s).forEach(function (f) { + d(f), + (f === '/src/App.js' || f === './App.js' || f === './src/App.js') && + (y.exports = t[f]); + }), + (Os = {module: y.exports}); + var g = {}; + function L(f) { + if (!g[f]) { + g[f] = !0; + var v = s[f]; + if (v) + for ( + var x = /require\(["']([^"']+)["']\)/g, w; + (w = x.exec(v)) !== null; + + ) { + var S = w[1]; + if ( + !( + S === 'react' || + S === 'react/jsx-runtime' || + S === 'react/jsx-dev-runtime' || + S.endsWith('.css') + ) + ) { + var A = r(f, S); + s[A] && L(A); + } + } + } + } + Object.keys(u).forEach(function (f) { + L(f); + }); + var p = {}; return ( - Object.keys(s).forEach(function (k) { - d(k), - (k === '/src/App.js' || k === './App.js' || k === './src/App.js') && - (y.exports = t[k]); + Object.keys(g).forEach(function (f) { + p[f] = s[f]; }), - (Os = {module: y.exports}), - {type: 'deployed', compiledClients: s, clientEntries: p} + {type: 'deployed', compiledClients: p, clientEntries: u} ); } function Xg() { @@ -31958,11 +31991,11 @@ Defaulting to 2020, but this will stop working in the future.`)), i.append(t.__formData[r][0], t.__formData[r][1]); } return Promise.resolve(dr.decodeReply(i)).then(function (a) { - var p = Promise.resolve(s.apply(null, a)); - return p.then(function () { + var u = Promise.resolve(s.apply(null, a)); + return u.then(function () { var d = Os.module.default || Os.module; return dr.renderToReadableStream( - {root: Vo.createElement(d), returnValue: p}, + {root: Vo.createElement(d), returnValue: u}, Tf() ); }); @@ -31995,23 +32028,10 @@ Defaulting to 2020, but this will stop working in the future.`)), try { var s = zg(t.files); s && s.type === 'error' - ? self.postMessage({ - type: 'rsc-error', - requestId: t.requestId, - error: s.error, - }) - : s && - self.postMessage({ - type: 'deploy-result', - requestId: t.requestId, - result: s, - }); + ? self.postMessage({type: 'rsc-error', error: s.error}) + : s && self.postMessage({type: 'deploy-result', result: s}); } catch (r) { - self.postMessage({ - type: 'rsc-error', - requestId: t.requestId, - error: String(r), - }); + self.postMessage({type: 'rsc-error', error: String(r)}); } else if (t.type === 'render') try { From 00b5aa6e70242e6e9ecce673d17e315e604d6515 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Sun, 15 Feb 2026 11:16:38 -0500 Subject: [PATCH 6/9] make rsc-sandbox-test dev-only --- src/pages/[[...markdownPath]].js | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/pages/[[...markdownPath]].js b/src/pages/[[...markdownPath]].js index cb2e23a3861..1c6f2c7ae3f 100644 --- a/src/pages/[[...markdownPath]].js +++ b/src/pages/[[...markdownPath]].js @@ -139,6 +139,9 @@ export async function getStaticPaths() { const stat = promisify(fs.stat); const rootDir = process.cwd() + '/src/content'; + // Pages that should only be available in development. + const devOnlyPages = new Set(['learn/rsc-sandbox-test']); + // Find all MD files recursively. async function getFiles(dir) { const subdirs = await readdir(dir); @@ -170,14 +173,20 @@ export async function getStaticPaths() { const files = await getFiles(rootDir); - const paths = files.map((file) => ({ - params: { - markdownPath: getSegments(file), - // ^^^ CAREFUL HERE. - // If you rename markdownPath, update patches/next-remote-watch.patch too. - // Otherwise you'll break Fast Refresh for all MD files. - }, - })); + const paths = files + .map((file) => ({ + params: { + markdownPath: getSegments(file), + // ^^^ CAREFUL HERE. + // If you rename markdownPath, update patches/next-remote-watch.patch too. + // Otherwise you'll break Fast Refresh for all MD files. + }, + })) + .filter((entry) => { + if (process.env.NODE_ENV !== 'production') return true; + const pagePath = entry.params.markdownPath.join('/'); + return !devOnlyPages.has(pagePath); + }); return { paths: paths, From 03ddb84ffe755aab296f27fdd56af3f1924d4da0 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Sun, 15 Feb 2026 11:16:57 -0500 Subject: [PATCH 7/9] add more examples to rsc-sandbox-test --- src/content/learn/rsc-sandbox-test.md | 431 ++++++++++++++++++++++++++ 1 file changed, 431 insertions(+) diff --git a/src/content/learn/rsc-sandbox-test.md b/src/content/learn/rsc-sandbox-test.md index 98dafe44c1b..2a3553c9a9d 100644 --- a/src/content/learn/rsc-sandbox-test.md +++ b/src/content/learn/rsc-sandbox-test.md @@ -88,6 +88,437 @@ export default async function Albums() {
+## Streaming Proof {/*streaming-proof*/} + +This demo proves streaming is incremental. The shell renders instantly with a `` fallback. After 2 seconds the async component streams in and replaces it — without re-rendering the outer content. The timestamps show the gap. + + + +```js src/App.js +import { Suspense } from 'react'; +import SlowData from './SlowData'; +import Timestamp from './Timestamp'; + +export default function App() { + return ( +
+

Streaming Proof

+

Shell rendered at:

+ ⏳ Waiting for data to stream in...

}> + +
+
+ ); +} +``` + +```js src/SlowData.js +import Timestamp from './Timestamp'; + +async function fetchData() { + await new Promise(resolve => setTimeout(resolve, 2000)); + return ['Chunk A', 'Chunk B', 'Chunk C']; +} + +export default async function SlowData() { + const items = await fetchData(); + return ( +
+

Data streamed in at:

+
    + {items.map(item => ( +
  • {item}
  • + ))} +
+
+ ); +} +``` + +```js src/Timestamp.js +'use client'; + +export default function Timestamp() { + return {new Date().toLocaleTimeString()}; +} +``` + +
+ +## Flight Data Types {/*flight-data-types*/} + +This demo passes Map, Set, Date, and BigInt from a server component through the Flight stream to a client component, proving the full Flight protocol type system works end-to-end. + + + +```js src/App.js +import DataViewer from './DataViewer'; + +export default function App() { + const map = new Map([ + ['alice', 100], + ['bob', 200], + ]); + const set = new Set(['react', 'next', 'remix']); + const date = new Date('2025-06-15T12:00:00Z'); + const big = 9007199254740993n; + + return ( +
+

Flight Data Types

+ +
+ ); +} +``` + +```js src/DataViewer.js +'use client'; + +export default function DataViewer({ map, set, date, big }) { + const checks = [ + ['Map', map instanceof Map, () => ( +
    {[...map.entries()].map(([k, v]) =>
  • {k}: {v}
  • )}
+ )], + ['Set', set instanceof Set, () => ( +
    {[...set].map(v =>
  • {v}
  • )}
+ )], + ['Date', date instanceof Date, () => ( +

{date.toISOString()}

+ )], + ['BigInt', typeof big === 'bigint', () => ( +

{big.toString()}

+ )], + ]; + + return ( +
+ {checks.map(([label, passed, render]) => ( +
+ {label}: {passed ? 'pass' : 'FAIL'} + {render()} +
+ ))} +
+ ); +} +``` + +
+ +## Promise Streaming with use() {/*promise-streaming-use*/} + +The server creates a promise (resolves in 2s) and passes it as a prop through a parent async component that suspends for 3s. When the parent reveals at ~3s, the promise is already resolved — so `use()` returns instantly with no inner fallback. The elapsed time should be ~3000ms (the parent's delay), not ~5000ms (which would mean the promise restarted on the client). + + + +```js src/App.js +import { Suspense } from 'react'; +import SlowParent from './SlowParent'; +import UserCard from './UserCard'; + +async function fetchUser() { + await new Promise(resolve => setTimeout(resolve, 2000)); + return { name: 'Alice', role: 'Engineer' }; +} + +export default function App() { + const serverTime = Date.now(); + const userPromise = fetchUser(); + return ( +
+

Promise Streaming

+

Promise resolves in 2s. Parent suspends for 3s.

+ Outer: waiting for parent (3s)...

}> + + Inner: waiting for data (should not appear!)

}> + +
+
+
+
+ ); +} +``` + +```js src/SlowParent.js +export default async function SlowParent({ children }) { + await new Promise(resolve => setTimeout(resolve, 3000)); + return
{children}
; +} +``` + +```js src/UserCard.js +'use client'; +import { use } from 'react'; + +export default function UserCard({ userPromise, serverTime }) { + const user = use(userPromise); + const elapsed = Date.now() - serverTime; + return ( +
+ {user.name} +

{user.role}

+

+ Rendered {elapsed}ms after server created the promise. +

+

+ ~3000ms = promise already resolved, waited only for parent. + ~5000ms would mean the promise restarted on the client. +

+
+ ); +} +``` + +
+ +## Flight Data Types in Server Actions {/*flight-data-types-actions*/} + +This demo sends Map, Set, Date, and BigInt from a client component *to* a server action via `encodeReply`/`decodeReply`, then verifies the types survived the round trip. + + + +```js src/App.js +import { testTypes, getResults } from './actions'; +import TestButton from './TestButton'; + +export default async function App() { + const results = await getResults(); + return ( +
+

Flight Types in Server Actions

+ + {results ? ( +
+ {results.map(r => ( +
+ {r.label}: {r.ok ? 'pass' : 'FAIL'} +

{r.detail}

+
+ ))} +
+ ) : ( +

Click the button to send typed data to the server action.

+ )} +
+ ); +} +``` + +```js src/actions.js +'use server'; + +let results = null; + +export async function testTypes(map, set, date, big) { + results = [ + { + label: 'Map', + ok: map instanceof Map, + detail: map instanceof Map + ? 'entries: ' + JSON.stringify([...map.entries()]) + : 'received: ' + typeof map, + }, + { + label: 'Set', + ok: set instanceof Set, + detail: set instanceof Set + ? 'values: ' + JSON.stringify([...set]) + : 'received: ' + typeof set, + }, + { + label: 'Date', + ok: date instanceof Date, + detail: date instanceof Date + ? date.toISOString() + : 'received: ' + typeof date, + }, + { + label: 'BigInt', + ok: typeof big === 'bigint', + detail: typeof big === 'bigint' + ? big.toString() + : 'received: ' + typeof big, + }, + ]; +} + +export async function getResults() { + return results; +} +``` + +```js src/TestButton.js +'use client'; +import { useTransition } from 'react'; + +export default function TestButton({ testTypes }) { + const [pending, startTransition] = useTransition(); + + function handleClick() { + startTransition(async () => { + await testTypes( + new Map([['alice', 100], ['bob', 200]]), + new Set(['react', 'next', 'remix']), + new Date('2025-06-15T12:00:00Z'), + 9007199254740993n + ); + }); + } + + return ( + + ); +} +``` + +
+ +## Server Action Mutation + Re-render {/*action-mutation-rerender*/} + +The server action mutates server-side data and returns a confirmation string. The updated list is only visible because the framework automatically re-renders the entire server component tree after the action completes — the server component re-reads the data and streams the new UI to the client. + + + +```js src/App.js +import { getTodos } from './db'; +import { createTodo } from './actions'; +import AddTodo from './AddTodo'; + +export default function App() { + const todos = getTodos(); + return ( +
+

Todo List

+

+ This list is rendered by a server component + reading server-side data. It only updates because + the server re-renders after each action. +

+
    + {todos.map((todo, i) => ( +
  • {todo}
  • + ))} +
+ +
+ ); +} +``` + +```js src/db.js +let todos = ['Buy groceries']; + +export function getTodos() { + return [...todos]; +} + +export function addTodo(text) { + todos.push(text); +} +``` + +```js src/actions.js +'use server'; +import { addTodo } from './db'; + +export async function createTodo(text) { + if (!text) return 'Please enter a todo.'; + addTodo(text); + return 'Added: ' + text; +} +``` + +```js src/AddTodo.js +'use client'; +import { useState, useTransition } from 'react'; + +export default function AddTodo({ createTodo }) { + const [text, setText] = useState(''); + const [message, setMessage] = useState(''); + const [pending, startTransition] = useTransition(); + + function handleSubmit(e) { + e.preventDefault(); + startTransition(async () => { + const result = await createTodo(text); + setMessage(result); + setText(''); + }); + } + + return ( +
+
+ setText(e.target.value)} + placeholder="New todo" + /> + +
+ {message && ( +

+ Action returned: "{message}" +

+ )} +
+ ); +} +``` + +
+ +## Inline Server Actions {/*inline-server-actions*/} + +Server actions defined inline inside a server component with `'use server'` on the function body. The action closes over module-level state and is passed as a prop — no separate `actions.js` file needed. + + + +```js src/App.js +import LikeButton from './LikeButton'; + +let count = 0; + +export default function App() { + async function addLike() { + 'use server'; + count++; + } + + return ( +
+

Inline Server Actions

+

Likes: {count}

+ +
+ ); +} +``` + +```js src/LikeButton.js +'use client'; + +export default function LikeButton({ addLike }) { + return ( +
+ +
+ ); +} +``` + +
+ ## Server Functions {/*server-functions*/} From 66d98bad89445cd20f05d75d6ee3b5d48ac7d03e Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Sun, 15 Feb 2026 11:19:33 -0500 Subject: [PATCH 8/9] remove rsc-sandbox-text from sidebar --- src/sidebarLearn.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sidebarLearn.json b/src/sidebarLearn.json index f3d99d75c07..bd14a83eacd 100644 --- a/src/sidebarLearn.json +++ b/src/sidebarLearn.json @@ -234,11 +234,6 @@ "path": "/learn/reusing-logic-with-custom-hooks" } ] - }, - { - "title": "RSC Sandbox Test", - "path": "/learn/rsc-sandbox-test", - "canary": true } ] } From c3409aacf0ba37b8137ad7b070ddfcc8bbec01ed Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Sun, 15 Feb 2026 12:11:56 -0500 Subject: [PATCH 9/9] Add inline server actions --- .../sandbox-code/src/rsc-client.js | 13 +- .../sandbox-code/src/rsc-server.js | 162 +- .../sandbox-code/src/worker-bundle.dist.js | 7020 +++++++++-------- 3 files changed, 3732 insertions(+), 3463 deletions(-) diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js index 5d999383c30..e21fbbdc963 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js @@ -63,7 +63,18 @@ export function initClient() { var rootEl = document.getElementById('root'); if (!rootEl) throw new Error('#root element not found'); - var root = createRoot(rootEl); + var root = createRoot(rootEl, { + onUncaughtError: function (error) { + var msg = + error && error.digest + ? error.digest + : error && error.message + ? error.message + : String(error); + console.error('[RSC Client Error] digest:', error && error.digest); + showError(msg); + }, + }); startTransition(function () { root.render(jsx(Root, {initialPromise: initialPromise})); }); diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js index 4ba54d86ec7..b38bcc689a5 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js @@ -72,6 +72,129 @@ function parseDirective(code) { return null; } +// Transform inline 'use server' functions (inside function bodies) into +// registered server references. Module-level 'use server' is handled +// separately by executeModule. +function transformInlineServerActions(code) { + if (code.indexOf('use server') === -1) return code; + var ast; + try { + ast = acorn.parse(code, {ecmaVersion: '2024', sourceType: 'source'}); + } catch (x) { + return code; + } + + var edits = []; + var counter = 0; + + function visit(node, fnDepth) { + if (!node || typeof node !== 'object') return; + var isFn = + node.type === 'FunctionDeclaration' || + node.type === 'FunctionExpression' || + node.type === 'ArrowFunctionExpression'; + + // Only look for 'use server' inside nested functions (fnDepth > 0) + if ( + isFn && + fnDepth > 0 && + node.body && + node.body.type === 'BlockStatement' + ) { + var body = node.body.body; + for (var s = 0; s < body.length; s++) { + var stmt = body[s]; + if (stmt.type !== 'ExpressionStatement') break; + if (stmt.directive === 'use server') { + edits.push({ + funcStart: node.start, + funcEnd: node.end, + dStart: stmt.start, + dEnd: stmt.end, + name: node.id ? node.id.name : 'action' + counter, + isDecl: node.type === 'FunctionDeclaration', + }); + counter++; + return; // don't recurse into this function + } + if (!stmt.directive) break; + } + } + + var nextDepth = isFn ? fnDepth + 1 : fnDepth; + for (var key in node) { + if (key === 'start' || key === 'end' || key === 'type') continue; + var child = node[key]; + if (Array.isArray(child)) { + for (var i = 0; i < child.length; i++) { + if (child[i] && typeof child[i].type === 'string') { + visit(child[i], nextDepth); + } + } + } else if (child && typeof child.type === 'string') { + visit(child, nextDepth); + } + } + } + + ast.body.forEach(function (stmt) { + visit(stmt, 0); + }); + if (edits.length === 0) return code; + + // Apply in reverse order to preserve positions + edits.sort(function (a, b) { + return b.funcStart - a.funcStart; + }); + + var result = code; + for (var i = 0; i < edits.length; i++) { + var e = edits[i]; + // Remove the 'use server' directive + trailing whitespace + var dEnd = e.dEnd; + var ch = result.charAt(dEnd); + while ( + dEnd < result.length && + (ch === ' ' || ch === '\n' || ch === '\r' || ch === '\t') + ) { + dEnd++; + ch = result.charAt(dEnd); + } + result = result.slice(0, e.dStart) + result.slice(dEnd); + var removed = dEnd - e.dStart; + var adjEnd = e.funcEnd - removed; + + // Wrap function with __rsa (register server action) + var funcCode = result.slice(e.funcStart, adjEnd); + if (e.isDecl) { + // async function foo() { ... } → + // var foo = __rsa(async function foo() { ... }, 'foo'); + result = + result.slice(0, e.funcStart) + + 'var ' + + e.name + + ' = __rsa(' + + funcCode + + ", '" + + e.name + + "');" + + result.slice(adjEnd); + } else { + // expression/arrow: just wrap in __rsa(...) + result = + result.slice(0, e.funcStart) + + '__rsa(' + + funcCode + + ", '" + + e.name + + "')" + + result.slice(adjEnd); + } + } + + return result; +} + // Resolve relative paths (e.g., './Counter.js' from '/src/App.js' → '/src/Counter.js') function resolvePath(from, to) { if (!to.startsWith('.')) return to; @@ -171,12 +294,22 @@ function deploy(files) { return executeModule(resolved); }; - new Function('module', 'exports', 'require', 'React', compiled[filePath])( - mod, - mod.exports, - localRequire, - React - ); + // Transform inline 'use server' functions before execution + var codeToExecute = compiled[filePath]; + if (directive !== 'use server') { + codeToExecute = transformInlineServerActions(codeToExecute); + } + + new Function( + 'module', + 'exports', + 'require', + 'React', + '__rsa', + codeToExecute + )(mod, mod.exports, localRequire, React, function (fn, name) { + return registerServerReference(fn, filePath, name); + }); modules[filePath] = mod.exports; @@ -259,7 +392,12 @@ function render() { var App = deployed.module.default || deployed.module; var element = React.createElement(App); return RSDWServer.renderToReadableStream(element, createModuleMap(), { - onError: console.error, + onError: function (err) { + var msg = err && err.message ? err.message : String(err); + var stack = err && err.stack ? err.stack : ''; + console.error('[RSC Server Error]', msg, stack); + return msg; + }, }); } @@ -289,7 +427,15 @@ function callAction(actionId, encodedArgs) { var App = deployed.module.default || deployed.module; return RSDWServer.renderToReadableStream( {root: React.createElement(App), returnValue: resultPromise}, - createModuleMap() + createModuleMap(), + { + onError: function (err) { + var msg = err && err.message ? err.message : String(err); + var stack = err && err.stack ? err.stack : ''; + console.error('[RSC Server Error]', msg, stack); + return msg; + }, + } ); }); }); diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js index 8f9a9e0949c..96a517cc7f9 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js +++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js @@ -46,36 +46,36 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } var jc = Array.isArray, Jo = Symbol.for('react.transitional.element'), - If = Symbol.for('react.portal'), - Ef = Symbol.for('react.fragment'), - Af = Symbol.for('react.strict_mode'), - Pf = Symbol.for('react.profiler'), - Nf = Symbol.for('react.forward_ref'), - Rf = Symbol.for('react.suspense'), - Lf = Symbol.for('react.memo'), + Af = Symbol.for('react.portal'), + Pf = Symbol.for('react.fragment'), + Nf = Symbol.for('react.strict_mode'), + Rf = Symbol.for('react.profiler'), + Lf = Symbol.for('react.forward_ref'), + Of = Symbol.for('react.suspense'), + Df = Symbol.for('react.memo'), Uc = Symbol.for('react.lazy'), $c = Symbol.iterator; - function Of(e) { + function Mf(e) { return e === null || typeof e != 'object' ? null : ((e = ($c && e[$c]) || e['@@iterator']), typeof e == 'function' ? e : null); } var Hc = Object.prototype.hasOwnProperty, - Df = Object.assign; + Ff = Object.assign; function Qo(e, t, s, i, r, a) { return ( (s = a.ref), {$$typeof: Jo, type: e, key: t, ref: s !== void 0 ? s : null, props: a} ); } - function Mf(e, t) { + function Bf(e, t) { return Qo(e.type, t, void 0, void 0, void 0, e.props); } function Zo(e) { return typeof e == 'object' && e !== null && e.$$typeof === Jo; } - function Ff(e) { + function Vf(e) { var t = {'=': '=0', ':': '=2'}; return ( '$' + @@ -87,11 +87,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var qc = /\/+/g; function zo(e, t) { return typeof e == 'object' && e !== null && e.key != null - ? Ff('' + e.key) + ? Vf('' + e.key) : t.toString(36); } function Kc() {} - function Bf(e) { + function jf(e) { switch (e.status) { case 'fulfilled': return e.value; @@ -137,7 +137,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { case 'object': switch (e.$$typeof) { case Jo: - case If: + case Af: u = !0; break; case Uc: @@ -151,12 +151,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { jc(r) ? ((s = ''), u != null && (s = u.replace(qc, '$&/') + '/'), - Zs(r, t, s, '', function (g) { - return g; + Zs(r, t, s, '', function (x) { + return x; })) : r != null && (Zo(r) && - (r = Mf( + (r = Bf( r, s + (r.key == null || (e && e.key === r.key) @@ -172,11 +172,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (jc(e)) for (var y = 0; y < e.length; y++) (i = e[y]), (a = d + zo(i, y)), (u += Zs(i, t, s, a, r)); - else if (((y = Of(e)), typeof y == 'function')) + else if (((y = Mf(e)), typeof y == 'function')) for (e = y.call(e), y = 0; !(i = e.next()).done; ) (i = i.value), (a = d + zo(i, y++)), (u += Zs(i, t, s, a, r)); else if (a === 'object') { - if (typeof e.then == 'function') return Zs(Bf(e), t, s, i, r); + if (typeof e.then == 'function') return Zs(jf(e), t, s, i, r); throw ( ((t = String(e)), Error( @@ -202,7 +202,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { i ); } - function Vf(e) { + function $f(e) { if (e._status === -1) { var t = e._result; (t = t()), @@ -221,7 +221,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (e._status === 1) return e._result.default; throw e._result; } - function jf() { + function qf() { return new WeakMap(); } function Xo() { @@ -259,16 +259,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return e; }, }; - ht.Fragment = Ef; - ht.Profiler = Pf; - ht.StrictMode = Af; - ht.Suspense = Rf; + ht.Fragment = Pf; + ht.Profiler = Rf; + ht.StrictMode = Nf; + ht.Suspense = Of; ht.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ei; ht.cache = function (e) { return function () { var t = ei.A; if (!t) return e.apply(null, arguments); - var s = t.getCacheForType(jf); + var s = t.getCacheForType(qf); (t = s.get(e)), t === void 0 && ((t = Xo()), s.set(e, t)), (s = 0); for (var i = arguments.length; s < i; s++) { var r = arguments[s]; @@ -295,7 +295,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }; ht.cloneElement = function (e, t, s) { if (e == null) throw Error(Yo(267, e)); - var i = Df({}, e.props), + var i = Ff({}, e.props), r = e.key, a = void 0; if (t != null) @@ -341,14 +341,14 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return {current: null}; }; ht.forwardRef = function (e) { - return {$$typeof: Nf, render: e}; + return {$$typeof: Lf, render: e}; }; ht.isValidElement = Zo; ht.lazy = function (e) { - return {$$typeof: Uc, _payload: {_status: -1, _result: e}, _init: Vf}; + return {$$typeof: Uc, _payload: {_status: -1, _result: e}, _init: $f}; }; ht.memo = function (e, t) { - return {$$typeof: Lf, type: e, compare: t === void 0 ? null : t}; + return {$$typeof: Df, type: e, compare: t === void 0 ? null : t}; }; ht.use = function (e) { return ei.H.use(e); @@ -365,16 +365,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }; ht.version = '19.0.0'; }); - var Li = Z((Zg, Gc) => { + var Li = Z((e_, Gc) => { 'use strict'; Gc.exports = Wc(); }); var Xc = Z((Oi) => { 'use strict'; - var $f = Li(), - qf = Symbol.for('react.transitional.element'), - Kf = Symbol.for('react.fragment'); - if (!$f.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) + var Kf = Li(), + Uf = Symbol.for('react.transitional.element'), + Hf = Symbol.for('react.fragment'); + if (!Kf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' ); @@ -390,21 +390,21 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } else s = t; return ( (t = s.ref), - {$$typeof: qf, type: e, key: i, ref: t !== void 0 ? t : null, props: s} + {$$typeof: Uf, type: e, key: i, ref: t !== void 0 ? t : null, props: s} ); } - Oi.Fragment = Kf; + Oi.Fragment = Hf; Oi.jsx = zc; Oi.jsxDEV = void 0; Oi.jsxs = zc; }); - var Jc = Z((t_, Yc) => { + var Jc = Z((n_, Yc) => { 'use strict'; Yc.exports = Xc(); }); var Qc = Z((jn) => { 'use strict'; - var Uf = Li(); + var Wf = Li(); function ns() {} var Sn = { d: { @@ -425,7 +425,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { p: 0, findDOMNode: null, }; - if (!Uf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) + if (!Wf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' ); @@ -522,34 +522,34 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }; jn.version = '19.0.0'; }); - var eu = Z((s_, Zc) => { + var eu = Z((i_, Zc) => { 'use strict'; Zc.exports = Qc(); }); var Zu = Z((En) => { 'use strict'; - var Hf = eu(), - Wf = Li(), - yu = new MessageChannel(), + var Gf = eu(), + zf = Li(), + Tu = new MessageChannel(), ku = []; - yu.port1.onmessage = function () { + Tu.port1.onmessage = function () { var e = ku.shift(); e && e(); }; function Bi(e) { - ku.push(e), yu.port2.postMessage(null); + ku.push(e), Tu.port2.postMessage(null); } - function Gf(e) { + function Xf(e) { setTimeout(function () { throw e; }); } - var zf = Promise, + var Yf = Promise, vu = typeof queueMicrotask == 'function' ? queueMicrotask : function (e) { - zf.resolve(null).then(e).catch(Gf); + Yf.resolve(null).then(e).catch(Xf); }, ln = null, cn = 0; @@ -576,9 +576,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } return !0; } - var Xf = new TextEncoder(); + var Jf = new TextEncoder(); function pn(e) { - return Xf.encode(e); + return Jf.encode(e); } function la(e) { return e.byteLength; @@ -595,12 +595,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { $$async: {value: s}, }); } - var Yf = Function.prototype.bind, - Jf = Array.prototype.slice; + var Qf = Function.prototype.bind, + Zf = Array.prototype.slice; function gu() { - var e = Yf.apply(this, arguments); + var e = Qf.apply(this, arguments); if (this.$$typeof === Ar) { - var t = Jf.call(arguments, 1), + var t = Zf.call(arguments, 1), s = {value: Ar}, i = {value: this.$$id}; return ( @@ -615,15 +615,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } return e; } - var Qf = { + var ed = { value: function () { return 'function () { [omitted code] }'; }, configurable: !0, writable: !0, }, - Zf = Promise.prototype, - ed = { + td = Promise.prototype, + nd = { get: function (e, t) { switch (t) { case '$$typeof': @@ -739,7 +739,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { e.$$async )), Object.defineProperty(i, 'name', {value: t}), - (i = e[t] = new Proxy(i, ed))), + (i = e[t] = new Proxy(i, nd))), i ); } @@ -762,16 +762,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); }, getPrototypeOf: function () { - return Zf; + return td; }, set: function () { throw Error('Cannot assign to a client module from a server module.'); }, }, - bu = Hf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, + bu = Gf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, qn = bu.d; - bu.d = {f: qn.f, r: qn.r, D: td, C: nd, L: Sr, m: Cu, X: id, S: sd, M: rd}; - function td(e) { + bu.d = {f: qn.f, r: qn.r, D: sd, C: id, L: Sr, m: Cu, X: od, S: rd, M: ad}; + function sd(e) { if (typeof e == 'string' && e) { var t = st || null; if (t) { @@ -781,7 +781,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } else qn.D(e); } } - function nd(e, t) { + function id(e, t) { if (typeof e == 'string') { var s = st || null; if (s) { @@ -828,7 +828,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { qn.m(e, t); } } - function sd(e, t, s) { + function rd(e, t, s) { if (typeof e == 'string') { var i = st || null; if (i) { @@ -846,7 +846,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { qn.S(e, t, s); } } - function id(e, t) { + function od(e, t) { if (typeof e == 'string') { var s = st || null; if (s) { @@ -859,7 +859,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { qn.X(e, t); } } - function rd(e, t) { + function ad(e, t) { if (typeof e == 'string') { var s = st || null; if (s) { @@ -880,7 +880,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { for (i in e) e[i] != null && ((t = !0), (s[i] = e[i])); return t ? s : null; } - function od(e, t, s) { + function ld(e, t, s) { switch (t) { case 'img': t = s.src; @@ -980,7 +980,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } } var ca = Symbol.for('react.temporary.reference'), - ad = { + cd = { get: function (e, t) { switch (t) { case '$$typeof': @@ -1018,7 +1018,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ); }, }; - function ld(e, t) { + function ud(e, t) { var s = Object.defineProperties( function () { throw Error( @@ -1027,18 +1027,18 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { }, {$$typeof: {value: ca}} ); - return (s = new Proxy(s, ad)), e.set(s, t), s; + return (s = new Proxy(s, cd)), e.set(s, t), s; } - var cd = Symbol.for('react.element'), + var pd = Symbol.for('react.element'), In = Symbol.for('react.transitional.element'), ua = Symbol.for('react.fragment'), nu = Symbol.for('react.context'), wu = Symbol.for('react.forward_ref'), - ud = Symbol.for('react.suspense'), - pd = Symbol.for('react.suspense_list'), + hd = Symbol.for('react.suspense'), + fd = Symbol.for('react.suspense_list'), Su = Symbol.for('react.memo'), $i = Symbol.for('react.lazy'), - hd = Symbol.for('react.memo_cache_sentinel'); + dd = Symbol.for('react.memo_cache_sentinel'); Symbol.for('react.postpone'); var su = Symbol.iterator; function Iu(e) { @@ -1052,7 +1052,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var pa = Error( "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`." ); - function fd(e, t, s) { + function md(e, t, s) { switch ( ((s = e[s]), s === void 0 ? e.push(t) : s !== t && (t.then(Cs, Cs), (t = s)), @@ -1110,7 +1110,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } var Pu = { readContext: na, - use: Td, + use: kd, useCallback: function (e) { return e; }, @@ -1129,24 +1129,24 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { useDeferredValue: Vt, useTransition: Vt, useSyncExternalStore: Vt, - useId: md, + useId: Td, useHostTransitionStatus: Vt, useFormState: Vt, useActionState: Vt, useOptimistic: Vt, useMemoCache: function (e) { - for (var t = Array(e), s = 0; s < e; s++) t[s] = hd; + for (var t = Array(e), s = 0; s < e; s++) t[s] = dd; return t; }, useCacheRefresh: function () { - return dd; + return yd; }, }; Pu.useEffectEvent = Vt; function Vt() { throw Error('This Hook is not supported in Server Components.'); } - function dd() { + function yd() { throw Error( 'Refreshing the cache is not supported in Server Components.' ); @@ -1154,17 +1154,17 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function na() { throw Error('Cannot read a Client Context from a Server Component.'); } - function md() { + function Td() { if (Mi === null) throw Error('useId can only be used while React is rendering'); var e = Mi.identifierCount++; return '_' + Mi.identifierPrefix + 'S_' + e.toString(32) + '_'; } - function Td(e) { + function kd(e) { if ((e !== null && typeof e == 'object') || typeof e == 'function') { if (typeof e.then == 'function') { var t = ta; - return (ta += 1), ni === null && (ni = []), fd(ni, e, t); + return (ta += 1), ni === null && (ni = []), md(ni, e, t); } e.$$typeof === nu && na(); } @@ -1185,7 +1185,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { return e ? e.cacheController.signal : null; }, }, - Is = Wf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + Is = zf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; if (!Is) throw Error( 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.' @@ -1218,9 +1218,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { function Er(e) { if (typeof e == 'string') return e; switch (e) { - case ud: + case hd: return 'Suspense'; - case pd: + case fd: return 'SuspenseList'; } if (typeof e == 'object') @@ -1290,9 +1290,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ` + r; } var Nr = Object.prototype.hasOwnProperty, - yd = Object.prototype, + vd = Object.prototype, Es = JSON.stringify; - function kd(e) { + function xd(e) { console.error(e); } function Ru(e, t, s, i, r, a, u, d, y) { @@ -1301,8 +1301,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { 'Currently React only supports one RSC renderer at a time.' ); Is.A = iu; - var g = new Set(), - L = [], + var x = new Set(), + R = [], p = new Set(); (this.type = e), (this.status = 10), @@ -1313,8 +1313,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (this.cacheController = new AbortController()), (this.pendingChunks = this.nextChunkId = 0), (this.hints = p), - (this.abortableTasks = g), - (this.pingedTasks = L), + (this.abortableTasks = x), + (this.pingedTasks = R), (this.completedImportChunks = []), (this.completedHintChunks = []), (this.completedRegularChunks = []), @@ -1327,12 +1327,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { (this.identifierPrefix = d || ''), (this.identifierCount = 1), (this.taintCleanupQueue = []), - (this.onError = i === void 0 ? kd : i), + (this.onError = i === void 0 ? xd : i), (this.onPostpone = r === void 0 ? Cs : r), (this.onAllReady = a), (this.onFatalError = u), - (e = os(this, t, null, !1, 0, g)), - L.push(e); + (e = os(this, t, null, !1, 0, x)), + R.push(e); } var st = null; function ou(e, t, s) { @@ -1383,47 +1383,47 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { i.id ); } - function vd(e, t, s) { - function i(g) { + function gd(e, t, s) { + function i(x) { if (y.status === 0) - if (g.done) + if (x.done) (y.status = 1), - (g = + (x = y.id.toString(16) + `:C `), - e.completedRegularChunks.push(pn(g)), + e.completedRegularChunks.push(pn(x)), e.abortableTasks.delete(y), e.cacheController.signal.removeEventListener('abort', a), un(e), Or(e); else try { - (y.model = g.value), + (y.model = x.value), e.pendingChunks++, Bu(e, y), un(e), d.read().then(i, r); - } catch (L) { - r(L); + } catch (R) { + r(R); } } - function r(g) { + function r(x) { y.status === 0 && (e.cacheController.signal.removeEventListener('abort', a), - Un(e, y, g), + Un(e, y, x), un(e), - d.cancel(g).then(r, r)); + d.cancel(x).then(r, r)); } function a() { if (y.status === 0) { - var g = e.cacheController.signal; - g.removeEventListener('abort', a), - (g = g.reason), + var x = e.cacheController.signal; + x.removeEventListener('abort', a), + (x = x.reason), e.type === 21 ? (e.abortableTasks.delete(y), ri(y), oi(y, e)) - : (Un(e, y, g), un(e)), - d.cancel(g).then(r, r); + : (Un(e, y, x), un(e)), + d.cancel(x).then(r, r); } } var u = s.supportsBYOB; @@ -1456,29 +1456,29 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { Ct(y.id) ); } - function xd(e, t, s, i) { + function _d(e, t, s, i) { function r(y) { if (d.status === 0) if (y.done) { if (((d.status = 1), y.value === void 0)) - var g = + var x = d.id.toString(16) + `:C `; else try { - var L = bs(e, y.value, 0); - g = + var R = bs(e, y.value, 0); + x = d.id.toString(16) + ':C' + - Es(Ct(L)) + + Es(Ct(R)) + ` `; } catch (p) { a(p); return; } - e.completedRegularChunks.push(pn(g)), + e.completedRegularChunks.push(pn(x)), e.abortableTasks.delete(d), e.cacheController.signal.removeEventListener('abort', u), un(e), @@ -1505,11 +1505,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (d.status === 0) { var y = e.cacheController.signal; y.removeEventListener('abort', u); - var g = y.reason; + var x = y.reason; e.type === 21 ? (e.abortableTasks.delete(d), ri(d), oi(d, e)) : (Un(e, d, y.reason), un(e)), - typeof i.throw == 'function' && i.throw(g).then(a, a); + typeof i.throw == 'function' && i.throw(x).then(a, a); } } s = s === i; @@ -1547,11 +1547,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { e.completedHintChunks.push(t), un(e); } - function gd(e) { + function bd(e) { if (e.status === 'fulfilled') return e.value; throw e.status === 'rejected' ? e.reason : e; } - function _d(e, t, s) { + function Cd(e, t, s) { switch (s.status) { case 'fulfilled': return s.value; @@ -1571,12 +1571,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { } )); } - return {$$typeof: $i, _payload: s, _init: gd}; + return {$$typeof: $i, _payload: s, _init: bd}; } function au() {} - function bd(e, t, s, i) { + function wd(e, t, s, i) { if (typeof i != 'object' || i === null || i.$$typeof === rs) return i; - if (typeof i.then == 'function') return _d(e, t, i); + if (typeof i.then == 'function') return Cd(e, t, i); var r = Iu(i); return r ? ((e = {}), @@ -1611,7 +1611,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { null) ); return ( - (r = bd(e, t, i, r)), + (r = wd(e, t, i, r)), (i = t.keyPath), (a = t.implicitSlot), s !== null @@ -1672,7 +1672,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { else typeof s == 'string' && ((r = t.formatContext), - (u = od(r, s, a)), + (u = ld(r, s, a)), r !== u && a.children != null && bs(e, a.children, u)); return ( (e = i), @@ -1714,13 +1714,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ping: function () { return Vi(e, d); }, - toJSON: function (y, g) { + toJSON: function (y, x) { is += y.length; - var L = d.keyPath, + var R = d.keyPath, p = d.implicitSlot; try { - var f = qi(e, d, this, y, g); - } catch (x) { + var h = qi(e, d, this, y, x); + } catch (g) { if ( ((y = d.model), (y = @@ -1731,13 +1731,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ) (d.status = 3), e.type === 21 - ? ((L = e.nextChunkId++), (L = y ? ws(L) : Ct(L)), (f = L)) - : ((L = e.fatalError), (f = y ? ws(L) : Ct(L))); + ? ((R = e.nextChunkId++), (R = y ? ws(R) : Ct(R)), (h = R)) + : ((R = e.fatalError), (h = y ? ws(R) : Ct(R))); else if ( - ((g = x === pa ? Eu() : x), - typeof g == 'object' && g !== null && typeof g.then == 'function') + ((x = g === pa ? Eu() : g), + typeof x == 'object' && x !== null && typeof x.then == 'function') ) { - f = os( + h = os( e, d.model, d.keyPath, @@ -1745,22 +1745,22 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { d.formatContext, e.abortableTasks ); - var v = f.ping; - g.then(v, v), - (f.thenableState = Au()), - (d.keyPath = L), + var T = h.ping; + x.then(T, T), + (h.thenableState = Au()), + (d.keyPath = R), (d.implicitSlot = p), - (f = y ? ws(f.id) : Ct(f.id)); + (h = y ? ws(h.id) : Ct(h.id)); } else - (d.keyPath = L), + (d.keyPath = R), (d.implicitSlot = p), e.pendingChunks++, - (L = e.nextChunkId++), - (p = Kn(e, g, d)), - Rr(e, L, p), - (f = y ? ws(L) : Ct(L)); + (R = e.nextChunkId++), + (p = Kn(e, x, d)), + Rr(e, R, p), + (h = y ? ws(R) : Ct(R)); } - return f; + return h; }, thenableState: null, }; @@ -1793,41 +1793,41 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var d = e.bundlerConfig, y = i.$$id; u = ''; - var g = d[y]; - if (g) u = g.name; + var x = d[y]; + if (x) u = x.name; else { - var L = y.lastIndexOf('#'); - if ((L !== -1 && ((u = y.slice(L + 1)), (g = d[y.slice(0, L)])), !g)) + var R = y.lastIndexOf('#'); + if ((R !== -1 && ((u = y.slice(R + 1)), (x = d[y.slice(0, R)])), !x)) throw Error( 'Could not find the module "' + y + '" in the React Client Manifest. This is probably a bug in the React Server Components bundler.' ); } - if (g.async === !0 && i.$$async === !0) + if (x.async === !0 && i.$$async === !0) throw Error( 'The module "' + y + '" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.' ); var p = - g.async === !0 || i.$$async === !0 - ? [g.id, g.chunks, u, 1] - : [g.id, g.chunks, u]; + x.async === !0 || i.$$async === !0 + ? [x.id, x.chunks, u, 1] + : [x.id, x.chunks, u]; e.pendingChunks++; - var f = e.nextChunkId++, - v = Es(p), - x = - f.toString(16) + + var h = e.nextChunkId++, + T = Es(p), + g = + h.toString(16) + ':I' + - v + + T + ` `, - w = pn(x); + w = pn(g); return ( e.completedImportChunks.push(w), - a.set(r, f), - t[0] === In && s === '1' ? ws(f) : Ct(f) + a.set(r, h), + t[0] === In && s === '1' ? ws(h) : Ct(h) ); } catch (S) { return ( @@ -1847,7 +1847,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { var i = e.nextChunkId++; return Kt(e, i, t, s, !1), Ct(i); } - function Cd(e, t) { + function Sd(e, t) { function s(y) { if (u.status === 0) if (y.done) @@ -1920,7 +1920,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { ) throw null; return qi(e, t, Lr, '', r); - case cd: + case pd: throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if: - Multiple copies of the "react" package is used. - A library pre-bundled an old copy of "react" or "react/jsx-runtime". @@ -1986,7 +1986,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { if (r instanceof BigInt64Array) return Yt(e, 'M', r); if (r instanceof BigUint64Array) return Yt(e, 'm', r); if (r instanceof DataView) return Yt(e, 'V', r); - if (typeof Blob == 'function' && r instanceof Blob) return Cd(e, r); + if (typeof Blob == 'function' && r instanceof Blob) return Sd(e, r); if ((a = Iu(r))) return ( (i = a.call(r)), @@ -1995,17 +1995,17 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) { : cu(e, t, Array.from(i)) ); if (typeof ReadableStream == 'function' && r instanceof ReadableStream) - return vd(e, t, r); + return gd(e, t, r); if (((a = r[Ss]), typeof a == 'function')) return ( t.keyPath !== null ? ((e = [In, ua, t.keyPath, {children: r}]), (e = t.implicitSlot ? [e] : e)) - : ((i = a.call(r)), (e = xd(e, t, r, i))), + : ((i = a.call(r)), (e = _d(e, t, r, i))), e ); if (r instanceof Date) return '$D' + r.toJSON(); - if (((e = ii(r)), e !== yd && (e === null || ii(e) !== null))) + if (((e = ii(r)), e !== vd && (e === null || ii(e) !== null))) throw Error( 'Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.' + _s(s, i) @@ -2353,7 +2353,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } } - function wd(e, t) { + function Id(e, t) { try { t.forEach(function (i) { return oi(i, e); @@ -2364,7 +2364,7 @@ If you need interactivity, consider converting part of this to a Client Componen Kn(e, i, null), Ki(e, i); } } - function Sd(e, t, s) { + function Ed(e, t, s) { try { t.forEach(function (r) { return fa(r, e, s); @@ -2386,7 +2386,7 @@ If you need interactivity, consider converting part of this to a Client Componen return ri(d, e); }), Bi(function () { - return wd(e, s); + return Id(e, s); }); else { var i = @@ -2410,7 +2410,7 @@ If you need interactivity, consider converting part of this to a Client Componen return ha(d, e, a); }), Bi(function () { - return Sd(e, s, a); + return Ed(e, s, a); }); } else { @@ -2451,7 +2451,7 @@ If you need interactivity, consider converting part of this to a Client Componen ), t); } - function Id() {} + function Ad() {} function qu(e) { for (var t = e[1], s = [], i = 0; i < t.length; ) { var r = t[i++], @@ -2462,7 +2462,7 @@ If you need interactivity, consider converting part of this to a Client Componen (a = __webpack_chunk_load__(r)), s.push(a), (u = wr.set.bind(wr, r, null)), - a.then(u, Id), + a.then(u, Ad), wr.set(r, a)) : u !== null && s.push(u); } @@ -2486,10 +2486,10 @@ If you need interactivity, consider converting part of this to a Client Componen if (Nr.call(t, e[2])) return t[e[2]]; } var Ku = new Map(), - Ed = __webpack_require__.u; + Pd = __webpack_require__.u; __webpack_require__.u = function (e) { var t = Ku.get(e); - return t !== void 0 ? t : Ed(e); + return t !== void 0 ? t : Pd(e); }; var Dr = Symbol(); function Ot(e, t, s) { @@ -2601,15 +2601,15 @@ If you need interactivity, consider converting part of this to a Client Componen -1 ); } - function Ad(e, t, s, i) { - function r(L) { + function Nd(e, t, s, i) { + function r(R) { var p = d.reason, - f = d; - (f.status = 'rejected'), - (f.value = null), - (f.reason = L), - p !== null && da(e, p, L), - Pr(e, g, L); + h = d; + (h.status = 'rejected'), + (h.value = null), + (h.reason = R), + p !== null && da(e, p, R), + Pr(e, x, R); } var a = t.id; if (typeof a != 'string' || i === 'then') return null; @@ -2637,13 +2637,13 @@ If you need interactivity, consider converting part of this to a Client Componen else if (u instanceof Ot) a = Promise.resolve(u); else return (u = Fi(y)), (a = d), (a.status = 'fulfilled'), (a.value = u); if (Ye) { - var g = Ye; - g.deps++; + var x = Ye; + x.deps++; } else - g = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + x = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; return ( a.then(function () { - var L = Fi(y); + var R = Fi(y); if (t.bound) { var p = t.bound.value; if (((p = kn(p) ? p.slice(0) : []), 1e3 < p.length)) { @@ -2656,21 +2656,21 @@ If you need interactivity, consider converting part of this to a Client Componen ); return; } - p.unshift(null), (L = L.bind.apply(L, p)); + p.unshift(null), (R = R.bind.apply(R, p)); } p = d.value; - var f = d; - (f.status = 'fulfilled'), - (f.value = L), - (f.reason = null), - p !== null && Mr(e, p, L, f), - aa(e, g, s, i, L); + var h = d; + (h.status = 'fulfilled'), + (h.value = R), + (h.reason = null), + p !== null && Mr(e, p, R, h), + aa(e, x, s, i, R); }, r), null ); } function oa(e, t, s, i, r, a) { - if (typeof i == 'string') return Dd(e, t, s, i, r, a); + if (typeof i == 'string') return Fd(e, t, s, i, r, a); if (typeof i == 'object' && i !== null) if ( (r !== void 0 && @@ -2741,13 +2741,13 @@ If you need interactivity, consider converting part of this to a Client Componen } } (e.status = 'fulfilled'), (e.value = u), (e.reason = r); - } catch (g) { - (e.status = 'rejected'), (e.reason = g); + } catch (x) { + (e.status = 'rejected'), (e.reason = x); } finally { Ye = t; } } - function Pd(e, t) { + function Rd(e, t) { (e._closed = !0), (e._closedReason = t), e._chunks.forEach(function (s) { @@ -2781,33 +2781,33 @@ If you need interactivity, consider converting part of this to a Client Componen d = t.map, y = t.path; try { - for (var g = 0, L = e._rootArrayContexts, p = 1; p < y.length; p++) { - var f = y[p]; + for (var x = 0, R = e._rootArrayContexts, p = 1; p < y.length; p++) { + var h = y[p]; if ( typeof s != 'object' || s === null || (ii(s) !== Uu && ii(s) !== Hu) || - !Nr.call(s, f) + !Nr.call(s, h) ) throw Error('Invalid reference.'); - if (((s = s[f]), kn(s))) (g = 0), (i = L.get(s) || i); - else if (((i = null), typeof s == 'string')) g = s.length; + if (((s = s[h]), kn(s))) (x = 0), (i = R.get(s) || i); + else if (((i = null), typeof s == 'string')) x = s.length; else if (typeof s == 'bigint') { - var v = Math.abs(Number(s)); - g = v === 0 ? 1 : Math.floor(Math.log10(v)) + 1; - } else g = ArrayBuffer.isView(s) ? s.byteLength : 0; + var T = Math.abs(Number(s)); + x = T === 0 ? 1 : Math.floor(Math.log10(T)) + 1; + } else x = ArrayBuffer.isView(s) ? s.byteLength : 0; } - var x = d(e, s, a, u), + var g = d(e, s, a, u), w = t.arrayRoot; w !== null && (i !== null ? (i.fork && (w.fork = !0), $n(w, i.count, e)) - : 0 < g && $n(w, g, e)); + : 0 < x && $n(w, x, e)); } catch (S) { Pr(e, r, S); return; } - aa(e, r, a, u, x); + aa(e, r, a, u, g); } function aa(e, t, s, i, r) { i !== '__proto__' && (s[i] = r), @@ -2842,9 +2842,9 @@ If you need interactivity, consider converting part of this to a Client Componen switch (d.status) { case 'fulfilled': (u = d.value), (d = d.reason); - for (var y = 0, g = e._rootArrayContexts, L = 1; L < t.length; L++) { + for (var y = 0, x = e._rootArrayContexts, R = 1; R < t.length; R++) { if ( - ((y = t[L]), + ((y = t[R]), typeof u != 'object' || u === null || (ii(u) !== Uu && ii(u) !== Hu) || @@ -2853,7 +2853,7 @@ If you need interactivity, consider converting part of this to a Client Componen throw Error('Invalid reference.'); (u = u[y]), kn(u) - ? ((y = 0), (d = g.get(u) || d)) + ? ((y = 0), (d = x.get(u) || d)) : ((d = null), typeof u == 'string' ? (y = u.length) @@ -2911,30 +2911,30 @@ If you need interactivity, consider converting part of this to a Client Componen ); } } - function Nd(e, t) { + function Ld(e, t) { if (!kn(t)) throw Error('Invalid Map initializer.'); if (t.$$consumed === !0) throw Error('Already initialized Map.'); return (e = new Map(t)), (t.$$consumed = !0), e; } - function Rd(e, t) { + function Od(e, t) { if (!kn(t)) throw Error('Invalid Set initializer.'); if (t.$$consumed === !0) throw Error('Already initialized Set.'); return (e = new Set(t)), (t.$$consumed = !0), e; } - function Ld(e, t) { + function Dd(e, t) { if (!kn(t)) throw Error('Invalid Iterator initializer.'); if (t.$$consumed === !0) throw Error('Already initialized Iterator.'); return (e = t[Symbol.iterator]()), (t.$$consumed = !0), e; } - function Od(e, t, s, i) { + function Md(e, t, s, i) { return i === 'then' && typeof t == 'function' ? null : t; } function Jt(e, t, s, i, r, a, u) { - function d(L) { - if (!g.errored) { - (g.errored = !0), (g.value = null), (g.reason = L); - var p = g.chunk; - p !== null && p.status === 'blocked' && Fr(e, p, L); + function d(R) { + if (!x.errored) { + (x.errored = !0), (x.value = null), (x.reason = R); + var p = x.chunk; + p !== null && p.status === 'blocked' && Fr(e, p, R); } } t = parseInt(t.slice(2), 16); @@ -2949,31 +2949,31 @@ If you need interactivity, consider converting part of this to a Client Componen (t = e._formData.get(y).arrayBuffer()), Ye) ) { - var g = Ye; - g.deps++; + var x = Ye; + x.deps++; } else - g = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; + x = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1}; return ( - t.then(function (L) { + t.then(function (R) { try { - u !== null && $n(u, L.byteLength, e); - var p = s === ArrayBuffer ? L : new s(L); + u !== null && $n(u, R.byteLength, e); + var p = s === ArrayBuffer ? R : new s(R); y !== '__proto__' && (r[a] = p), - a === '' && g.value === null && (g.value = p); - } catch (f) { - d(f); + a === '' && x.value === null && (x.value = p); + } catch (h) { + d(h); return; } - g.deps--, - g.deps === 0 && - ((L = g.chunk), - L !== null && - L.status === 'blocked' && - ((p = L.value), - (L.status = 'fulfilled'), - (L.value = g.value), - (L.reason = null), - p !== null && Mr(e, p, g.value, L))); + x.deps--, + x.deps === 0 && + ((R = x.chunk), + R !== null && + R.status === 'blocked' && + ((p = R.value), + (R.status = 'fulfilled'), + (R.value = x.value), + (R.reason = null), + p !== null && Mr(e, p, x.value, R))); }, d), null ); @@ -2995,9 +2995,9 @@ If you need interactivity, consider converting part of this to a Client Componen : i.enqueueModel(r)); } function du(e, t, s) { - function i(g) { - s !== 'bytes' || ArrayBuffer.isView(g) - ? r.enqueue(g) + function i(x) { + s !== 'bytes' || ArrayBuffer.isView(x) + ? r.enqueue(x) : y.error(Error('Invalid data for bytes stream.')); } if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t))) @@ -3006,26 +3006,26 @@ If you need interactivity, consider converting part of this to a Client Componen a = !1, u = new ReadableStream({ type: s, - start: function (g) { - r = g; + start: function (x) { + r = x; }, }), d = null, y = { - enqueueModel: function (g) { + enqueueModel: function (x) { if (d === null) { - var L = Wu(e, g, -1); - Br(L), - L.status === 'fulfilled' - ? i(L.value) - : (L.then(i, y.error), (d = L)); + var R = Wu(e, x, -1); + Br(R), + R.status === 'fulfilled' + ? i(R.value) + : (R.then(i, y.error), (d = R)); } else { - L = d; + R = d; var p = new Ot('pending', null, null); p.then(i, y.error), (d = p), - L.then(function () { - d === p && (d = null), Gu(e, p, g, -1); + R.then(function () { + d === p && (d = null), Gu(e, p, x, -1); }); } }, @@ -3033,21 +3033,21 @@ If you need interactivity, consider converting part of this to a Client Componen if (!a) if (((a = !0), d === null)) r.close(); else { - var g = d; + var x = d; (d = null), - g.then(function () { + x.then(function () { return r.close(); }); } }, - error: function (g) { + error: function (x) { if (!a) - if (((a = !0), d === null)) r.error(g); + if (((a = !0), d === null)) r.error(x); else { - var L = d; + var R = d; (d = null), - L.then(function () { - return r.error(g); + R.then(function () { + return r.error(x); }); } }, @@ -3116,7 +3116,7 @@ If you need interactivity, consider converting part of this to a Client Componen s ); } - function Dd(e, t, s, i, r, a) { + function Fd(e, t, s, i, r, a) { if (i[0] === '$') { switch (i[1]) { case '$': @@ -3124,17 +3124,17 @@ If you need interactivity, consider converting part of this to a Client Componen case '@': return (t = parseInt(i.slice(2), 16)), Vr(e, t); case 'h': - return (a = i.slice(2)), Di(e, a, t, s, null, Ad); + return (a = i.slice(2)), Di(e, a, t, s, null, Nd); case 'T': if (r === void 0 || e._temporaryReferences === void 0) throw Error( 'Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.' ); - return ld(e._temporaryReferences, r); + return ud(e._temporaryReferences, r); case 'Q': - return (a = i.slice(2)), Di(e, a, t, s, null, Nd); + return (a = i.slice(2)), Di(e, a, t, s, null, Ld); case 'W': - return (a = i.slice(2)), Di(e, a, t, s, null, Rd); + return (a = i.slice(2)), Di(e, a, t, s, null, Od); case 'K': for ( t = i.slice(2), @@ -3157,7 +3157,7 @@ If you need interactivity, consider converting part of this to a Client Componen } return s; case 'i': - return (a = i.slice(2)), Di(e, a, t, s, null, Ld); + return (a = i.slice(2)), Di(e, a, t, s, null, Dd); case 'I': return 1 / 0; case '-': @@ -3215,7 +3215,7 @@ If you need interactivity, consider converting part of this to a Client Componen case 'x': return mu(e, i, !0); } - return (i = i.slice(1)), Di(e, i, t, s, a, Od); + return (i = i.slice(1)), Di(e, i, t, s, a, Md); } return a !== null && $n(a, i.length, e), i; } @@ -3240,9 +3240,9 @@ If you need interactivity, consider converting part of this to a Client Componen }; } function Ju(e) { - Pd(e, Error('Connection closed.')); + Rd(e, Error('Connection closed.')); } - function Tu(e, t) { + function yu(e, t) { var s = t.id; if (typeof s != 'string') return null; var i = $u(e, s); @@ -3297,10 +3297,10 @@ If you need interactivity, consider converting part of this to a Client Componen (r.add(u), (a = '$ACTION_' + u.slice(12) + ':'), (a = Qu(e, t, a)), - (i = Tu(t, a))) + (i = yu(t, a))) : u.startsWith('$ACTION_ID_') && !r.has(u) && - (r.add(u), (a = u.slice(11)), (i = Tu(t, {id: a, bound: null}))) + (r.add(u), (a = u.slice(11)), (i = yu(t, {id: a, bound: null}))) : s.append(u, a); }), i === null @@ -3357,11 +3357,11 @@ If you need interactivity, consider converting part of this to a Client Componen var y = new ReadableStream( { type: 'bytes', - pull: function (g) { - ju(a, g); + pull: function (x) { + ju(a, x); }, - cancel: function (g) { - (a.destination = null), si(a, g); + cancel: function (x) { + (a.destination = null), si(a, x); }, }, {highWaterMark: 0} @@ -3394,7 +3394,7 @@ If you need interactivity, consider converting part of this to a Client Componen $$id: {value: s === null ? t : t + '#' + s, configurable: !0}, $$bound: {value: null, configurable: !0}, bind: {value: gu, configurable: !0}, - toString: Qf, + toString: ed, }); }; En.renderToReadableStream = function (e, t, s) { @@ -3449,9 +3449,9 @@ If you need interactivity, consider converting part of this to a Client Componen Wn.createClientModuleProxy = Hn.createClientModuleProxy; Wn.createTemporaryReferenceSet = Hn.createTemporaryReferenceSet; }); - var It = Z((Ta) => { + var It = Z((ya) => { 'use strict'; - Object.defineProperty(Ta, '__esModule', {value: !0}); + Object.defineProperty(ya, '__esModule', {value: !0}); var t1; (function (e) { e[(e.NONE = 0)] = 'NONE'; @@ -3469,19 +3469,19 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._async = d)] = '_async'; let y = d + 1; e[(e._await = y)] = '_await'; - let g = y + 1; - e[(e._checks = g)] = '_checks'; - let L = g + 1; - e[(e._constructor = L)] = '_constructor'; - let p = L + 1; + let x = y + 1; + e[(e._checks = x)] = '_checks'; + let R = x + 1; + e[(e._constructor = R)] = '_constructor'; + let p = R + 1; e[(e._declare = p)] = '_declare'; - let f = p + 1; - e[(e._enum = f)] = '_enum'; - let v = f + 1; - e[(e._exports = v)] = '_exports'; - let x = v + 1; - e[(e._from = x)] = '_from'; - let w = x + 1; + let h = p + 1; + e[(e._enum = h)] = '_enum'; + let T = h + 1; + e[(e._exports = T)] = '_exports'; + let g = T + 1; + e[(e._from = g)] = '_from'; + let w = g + 1; e[(e._get = w)] = '_get'; let S = w + 1; e[(e._global = S)] = '_global'; @@ -3489,15 +3489,15 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._implements = A)] = '_implements'; let U = A + 1; e[(e._infer = U)] = '_infer'; - let D = U + 1; - e[(e._interface = D)] = '_interface'; - let c = D + 1; + let M = U + 1; + e[(e._interface = M)] = '_interface'; + let c = M + 1; e[(e._is = c)] = '_is'; - let M = c + 1; - e[(e._keyof = M)] = '_keyof'; - let z = M + 1; - e[(e._mixins = z)] = '_mixins'; - let X = z + 1; + let L = c + 1; + e[(e._keyof = L)] = '_keyof'; + let W = L + 1; + e[(e._mixins = W)] = '_mixins'; + let X = W + 1; e[(e._module = X)] = '_module'; let ie = X + 1; e[(e._namespace = ie)] = '_namespace'; @@ -3533,9 +3533,9 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._type = Pt)] = '_type'; let qt = Pt + 1; e[(e._unique = qt)] = '_unique'; - let yn = qt + 1; - e[(e._using = yn)] = '_using'; - })(t1 || (Ta.ContextualKeyword = t1 = {})); + let Tn = qt + 1; + e[(e._using = Tn)] = '_using'; + })(t1 || (ya.ContextualKeyword = t1 = {})); }); var be = Z((jr) => { 'use strict'; @@ -3557,18 +3557,18 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.IS_EXPRESSION_START = d)] = 'IS_EXPRESSION_START'; let y = 512; e[(e.num = y)] = 'num'; - let g = 1536; - e[(e.bigint = g)] = 'bigint'; - let L = 2560; - e[(e.decimal = L)] = 'decimal'; + let x = 1536; + e[(e.bigint = x)] = 'bigint'; + let R = 2560; + e[(e.decimal = R)] = 'decimal'; let p = 3584; e[(e.regexp = p)] = 'regexp'; - let f = 4608; - e[(e.string = f)] = 'string'; - let v = 5632; - e[(e.name = v)] = 'name'; - let x = 6144; - e[(e.eof = x)] = 'eof'; + let h = 4608; + e[(e.string = h)] = 'string'; + let T = 5632; + e[(e.name = T)] = 'name'; + let g = 6144; + e[(e.eof = g)] = 'eof'; let w = 7680; e[(e.bracketL = w)] = 'bracketL'; let S = 8192; @@ -3577,14 +3577,14 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.braceL = A)] = 'braceL'; let U = 10752; e[(e.braceBarL = U)] = 'braceBarL'; - let D = 11264; - e[(e.braceR = D)] = 'braceR'; + let M = 11264; + e[(e.braceR = M)] = 'braceR'; let c = 12288; e[(e.braceBarR = c)] = 'braceBarR'; - let M = 13824; - e[(e.parenL = M)] = 'parenL'; - let z = 14336; - e[(e.parenR = z)] = 'parenR'; + let L = 13824; + e[(e.parenL = L)] = 'parenL'; + let W = 14336; + e[(e.parenR = W)] = 'parenR'; let X = 15360; e[(e.comma = X)] = 'comma'; let ie = 16384; @@ -3621,12 +3621,12 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.preIncDec = Pt)] = 'preIncDec'; let qt = 33664; e[(e.postIncDec = qt)] = 'postIncDec'; - let yn = 34432; - e[(e.bang = yn)] = 'bang'; + let Tn = 34432; + e[(e.bang = Tn)] = 'bang'; let V = 35456; e[(e.tilde = V)] = 'tilde'; - let W = 35841; - e[(e.pipeline = W)] = 'pipeline'; + let G = 35841; + e[(e.pipeline = G)] = 'pipeline'; let J = 36866; e[(e.nullishCoalescing = J)] = 'nullishCoalescing'; let re = 37890; @@ -3653,8 +3653,8 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.bitShiftR = pt)] = 'bitShiftR'; let bt = 49802; e[(e.plus = bt)] = 'plus'; - let Tt = 50826; - e[(e.minus = Tt)] = 'minus'; + let yt = 50826; + e[(e.minus = yt)] = 'minus'; let vt = 51723; e[(e.modulo = vt)] = 'modulo'; let bn = 52235; @@ -3759,8 +3759,8 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._set = qo)] = '_set'; let Ni = 103952; e[(e._declare = Ni)] = '_declare'; - let Tr = 104976; - e[(e._readonly = Tr)] = '_readonly'; + let yr = 104976; + e[(e._readonly = yr)] = '_readonly'; let Ko = 106e3; e[(e._abstract = Ko)] = '_abstract'; let le = 107024; @@ -3773,8 +3773,8 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e._protected = Uo)] = '_protected'; let Ho = 110608; e[(e._override = Ho)] = '_override'; - let yr = 112144; - e[(e._as = yr)] = '_as'; + let Tr = 112144; + e[(e._as = Tr)] = '_as'; let Wo = 113168; e[(e._enum = Wo)] = '_enum'; let Go = 114192; @@ -3782,7 +3782,7 @@ If you need interactivity, consider converting part of this to a Client Componen let kr = 115216; e[(e._implements = kr)] = '_implements'; })(q || (jr.TokenType = q = {})); - function Md(e) { + function Bd(e) { switch (e) { case q.num: return 'num'; @@ -4014,23 +4014,23 @@ If you need interactivity, consider converting part of this to a Client Componen return ''; } } - jr.formatTokenType = Md; + jr.formatTokenType = Bd; }); var qr = Z((Ui) => { 'use strict'; Object.defineProperty(Ui, '__esModule', {value: !0}); - var Fd = It(), - Bd = be(), - ya = class { + var Vd = It(), + jd = be(), + Ta = class { constructor(t, s, i) { (this.startTokenIndex = t), (this.endTokenIndex = s), (this.isFunctionScope = i); } }; - Ui.Scope = ya; + Ui.Scope = Ta; var $r = class { - constructor(t, s, i, r, a, u, d, y, g, L, p, f, v) { + constructor(t, s, i, r, a, u, d, y, x, R, p, h, T) { (this.potentialArrowAt = t), (this.noAnonFunctionType = s), (this.inDisallowConditionalTypesContext = i), @@ -4039,11 +4039,11 @@ If you need interactivity, consider converting part of this to a Client Componen (this.pos = u), (this.type = d), (this.contextualKeyword = y), - (this.start = g), - (this.end = L), + (this.start = x), + (this.end = R), (this.isType = p), - (this.scopeDepth = f), - (this.error = v); + (this.scopeDepth = h), + (this.error = T); } }; Ui.StateSnapshot = $r; @@ -4082,10 +4082,10 @@ If you need interactivity, consider converting part of this to a Client Componen this.pos = 0; } __init7() { - this.type = Bd.TokenType.eof; + this.type = jd.TokenType.eof; } __init8() { - this.contextualKeyword = Fd.ContextualKeyword.NONE; + this.contextualKeyword = Vd.ContextualKeyword.NONE; } __init9() { this.start = 0; @@ -4158,18 +4158,18 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.exclamationMark = d)] = 'exclamationMark'; let y = 34; e[(e.quotationMark = y)] = 'quotationMark'; - let g = 35; - e[(e.numberSign = g)] = 'numberSign'; - let L = 36; - e[(e.dollarSign = L)] = 'dollarSign'; + let x = 35; + e[(e.numberSign = x)] = 'numberSign'; + let R = 36; + e[(e.dollarSign = R)] = 'dollarSign'; let p = 37; e[(e.percentSign = p)] = 'percentSign'; - let f = 38; - e[(e.ampersand = f)] = 'ampersand'; - let v = 39; - e[(e.apostrophe = v)] = 'apostrophe'; - let x = 40; - e[(e.leftParenthesis = x)] = 'leftParenthesis'; + let h = 38; + e[(e.ampersand = h)] = 'ampersand'; + let T = 39; + e[(e.apostrophe = T)] = 'apostrophe'; + let g = 40; + e[(e.leftParenthesis = g)] = 'leftParenthesis'; let w = 41; e[(e.rightParenthesis = w)] = 'rightParenthesis'; let S = 42; @@ -4178,14 +4178,14 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.plusSign = A)] = 'plusSign'; let U = 44; e[(e.comma = U)] = 'comma'; - let D = 45; - e[(e.dash = D)] = 'dash'; + let M = 45; + e[(e.dash = M)] = 'dash'; let c = 46; e[(e.dot = c)] = 'dot'; - let M = 47; - e[(e.slash = M)] = 'slash'; - let z = 48; - e[(e.digit0 = z)] = 'digit0'; + let L = 47; + e[(e.slash = L)] = 'slash'; + let W = 48; + e[(e.digit0 = W)] = 'digit0'; let X = 49; e[(e.digit1 = X)] = 'digit1'; let ie = 50; @@ -4222,12 +4222,12 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.uppercaseA = Pt)] = 'uppercaseA'; let qt = 66; e[(e.uppercaseB = qt)] = 'uppercaseB'; - let yn = 67; - e[(e.uppercaseC = yn)] = 'uppercaseC'; + let Tn = 67; + e[(e.uppercaseC = Tn)] = 'uppercaseC'; let V = 68; e[(e.uppercaseD = V)] = 'uppercaseD'; - let W = 69; - e[(e.uppercaseE = W)] = 'uppercaseE'; + let G = 69; + e[(e.uppercaseE = G)] = 'uppercaseE'; let J = 70; e[(e.uppercaseF = J)] = 'uppercaseF'; let re = 71; @@ -4254,8 +4254,8 @@ If you need interactivity, consider converting part of this to a Client Componen e[(e.uppercaseQ = pt)] = 'uppercaseQ'; let bt = 82; e[(e.uppercaseR = bt)] = 'uppercaseR'; - let Tt = 83; - e[(e.uppercaseS = Tt)] = 'uppercaseS'; + let yt = 83; + e[(e.uppercaseS = yt)] = 'uppercaseS'; let vt = 84; e[(e.uppercaseT = vt)] = 'uppercaseT'; let bn = 85; @@ -4351,42 +4351,42 @@ If you need interactivity, consider converting part of this to a Client Componen let zs = 8233; e[(e.paragraphSeparator = zs)] = 'paragraphSeparator'; })(as || (Kr.charCodes = as = {})); - function Vd(e) { + function $d(e) { return ( (e >= as.digit0 && e <= as.digit9) || (e >= as.lowercaseA && e <= as.lowercaseF) || (e >= as.uppercaseA && e <= as.uppercaseF) ); } - Kr.isDigit = Vd; + Kr.isDigit = $d; }); var Zt = Z((ft) => { 'use strict'; Object.defineProperty(ft, '__esModule', {value: !0}); - function jd(e) { + function qd(e) { return e && e.__esModule ? e : {default: e}; } - var $d = qr(), - qd = jd($d), - Kd = Qt(); + var Kd = qr(), + Ud = qd(Kd), + Hd = Qt(); ft.isJSXEnabled; ft.isTypeScriptEnabled; ft.isFlowEnabled; ft.state; ft.input; ft.nextContextId; - function Ud() { + function Wd() { return ft.nextContextId++; } - ft.getNextContextId = Ud; - function Hd(e) { + ft.getNextContextId = Wd; + function Gd(e) { if ('pos' in e) { let t = n1(e.pos); (e.message += ` (${t.line}:${t.column})`), (e.loc = t); } return e; } - ft.augmentError = Hd; + ft.augmentError = Gd; var Ur = class { constructor(t, s) { (this.line = t), (this.column = s); @@ -4397,19 +4397,19 @@ If you need interactivity, consider converting part of this to a Client Componen let t = 1, s = 1; for (let i = 0; i < e; i++) - ft.input.charCodeAt(i) === Kd.charCodes.lineFeed ? (t++, (s = 1)) : s++; + ft.input.charCodeAt(i) === Hd.charCodes.lineFeed ? (t++, (s = 1)) : s++; return new Ur(t, s); } ft.locationForIndex = n1; - function Wd(e, t, s, i) { + function zd(e, t, s, i) { (ft.input = e), - (ft.state = new qd.default()), + (ft.state = new Ud.default()), (ft.nextContextId = 1), (ft.isJSXEnabled = t), (ft.isTypeScriptEnabled = s), (ft.isFlowEnabled = i); } - ft.initParser = Wd; + ft.initParser = zd; }); var cs = Z((tn) => { 'use strict'; @@ -4418,15 +4418,15 @@ If you need interactivity, consider converting part of this to a Client Componen As = be(), Hr = Qt(), en = Zt(); - function Gd(e) { + function Xd(e) { return en.state.contextualKeyword === e; } - tn.isContextual = Gd; - function zd(e) { + tn.isContextual = Xd; + function Yd(e) { let t = ls.lookaheadTypeAndKeyword.call(void 0); return t.type === As.TokenType.name && t.contextualKeyword === e; } - tn.isLookaheadContextual = zd; + tn.isLookaheadContextual = Yd; function s1(e) { return ( en.state.contextualKeyword === e && @@ -4434,10 +4434,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); } tn.eatContextual = s1; - function Xd(e) { + function Jd(e) { s1(e) || Wr(); } - tn.expectContextual = Xd; + tn.expectContextual = Jd; function i1() { return ( ls.match.call(void 0, As.TokenType.eof) || @@ -4462,7 +4462,7 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } tn.hasPrecedingLineBreak = r1; - function Yd() { + function Qd() { let e = ls.nextTokenStart.call(void 0); for (let t = en.state.end; t < e; t++) { let s = en.input.charCodeAt(t); @@ -4476,22 +4476,22 @@ If you need interactivity, consider converting part of this to a Client Componen } return !1; } - tn.hasFollowingLineBreak = Yd; + tn.hasFollowingLineBreak = Qd; function o1() { return ls.eat.call(void 0, As.TokenType.semi) || i1(); } tn.isLineTerminator = o1; - function Jd() { + function Zd() { o1() || Wr('Unexpected token, expected ";"'); } - tn.semicolon = Jd; - function Qd(e) { + tn.semicolon = Zd; + function em(e) { ls.eat.call(void 0, e) || Wr( `Unexpected token, expected "${As.formatTokenType.call(void 0, e)}"` ); } - tn.expect = Qd; + tn.expect = em; function Wr(e = 'Unexpected token', t = en.state.start) { if (en.state.error) return; let s = new SyntaxError(e); @@ -4506,7 +4506,7 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Ps, '__esModule', {value: !0}); var va = Qt(), - Zd = [ + tm = [ 9, 11, 12, @@ -4529,19 +4529,19 @@ If you need interactivity, consider converting part of this to a Client Componen 12288, 65279, ]; - Ps.WHITESPACE_CHARS = Zd; - var em = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; - Ps.skipWhiteSpace = em; - var tm = new Uint8Array(65536); - Ps.IS_WHITESPACE = tm; + Ps.WHITESPACE_CHARS = tm; + var nm = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; + Ps.skipWhiteSpace = nm; + var sm = new Uint8Array(65536); + Ps.IS_WHITESPACE = sm; for (let e of Ps.WHITESPACE_CHARS) Ps.IS_WHITESPACE[e] = 1; }); var li = Z((vn) => { 'use strict'; Object.defineProperty(vn, '__esModule', {value: !0}); var a1 = Qt(), - nm = xa(); - function sm(e) { + im = xa(); + function rm(e) { if (e < 48) return e === 36; if (e < 58) return !0; if (e < 65) return !1; @@ -4551,15 +4551,15 @@ If you need interactivity, consider converting part of this to a Client Componen if (e < 128) return !1; throw new Error('Should not be called with non-ASCII char code.'); } - var im = new Uint8Array(65536); - vn.IS_IDENTIFIER_CHAR = im; - for (let e = 0; e < 128; e++) vn.IS_IDENTIFIER_CHAR[e] = sm(e) ? 1 : 0; + var om = new Uint8Array(65536); + vn.IS_IDENTIFIER_CHAR = om; + for (let e = 0; e < 128; e++) vn.IS_IDENTIFIER_CHAR[e] = rm(e) ? 1 : 0; for (let e = 128; e < 65536; e++) vn.IS_IDENTIFIER_CHAR[e] = 1; - for (let e of nm.WHITESPACE_CHARS) vn.IS_IDENTIFIER_CHAR[e] = 0; + for (let e of im.WHITESPACE_CHARS) vn.IS_IDENTIFIER_CHAR[e] = 0; vn.IS_IDENTIFIER_CHAR[8232] = 0; vn.IS_IDENTIFIER_CHAR[8233] = 0; - var rm = vn.IS_IDENTIFIER_CHAR.slice(); - vn.IS_IDENTIFIER_START = rm; + var am = vn.IS_IDENTIFIER_CHAR.slice(); + vn.IS_IDENTIFIER_START = am; for (let e = a1.charCodes.digit0; e <= a1.charCodes.digit9; e++) vn.IS_IDENTIFIER_START[e] = 0; }); @@ -4568,7 +4568,7 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(ga, '__esModule', {value: !0}); var ge = It(), Ce = be(), - om = new Int32Array([ + lm = new Int32Array([ -1, 27, 783, @@ -13534,7 +13534,7 @@ If you need interactivity, consider converting part of this to a Client Componen -1, -1, ]); - ga.READ_WORD_TREE = om; + ga.READ_WORD_TREE = lm; }); var h1 = Z((ba) => { 'use strict'; @@ -13545,7 +13545,7 @@ If you need interactivity, consider converting part of this to a Client Componen _a = xt(), u1 = l1(), p1 = be(); - function am() { + function cm() { let e = 0, t = 0, s = xn.state.pos; @@ -13593,12 +13593,12 @@ If you need interactivity, consider converting part of this to a Client Componen } (xn.state.pos = s), _a.finishToken.call(void 0, p1.TokenType.name); } - ba.default = am; + ba.default = cm; }); var xt = Z((Be) => { 'use strict'; Object.defineProperty(Be, '__esModule', {value: !0}); - function lm(e) { + function um(e) { return e && e.__esModule ? e : {default: e}; } var b = Zt(), @@ -13606,9 +13606,9 @@ If you need interactivity, consider converting part of this to a Client Componen F = Qt(), d1 = li(), wa = xa(), - cm = It(), - um = h1(), - pm = lm(um), + pm = It(), + hm = h1(), + fm = um(hm), ne = be(), it; (function (e) { @@ -13630,14 +13630,14 @@ If you need interactivity, consider converting part of this to a Client Componen let y = d + 1; e[(e.ObjectShorthandBlockScopedDeclaration = y)] = 'ObjectShorthandBlockScopedDeclaration'; - let g = y + 1; - e[(e.ObjectShorthand = g)] = 'ObjectShorthand'; - let L = g + 1; - e[(e.ImportDeclaration = L)] = 'ImportDeclaration'; - let p = L + 1; + let x = y + 1; + e[(e.ObjectShorthand = x)] = 'ObjectShorthand'; + let R = x + 1; + e[(e.ImportDeclaration = R)] = 'ImportDeclaration'; + let p = R + 1; e[(e.ObjectKey = p)] = 'ObjectKey'; - let f = p + 1; - e[(e.ImportAccess = f)] = 'ImportAccess'; + let h = p + 1; + e[(e.ImportAccess = h)] = 'ImportAccess'; })(it || (Be.IdentifierRole = it = {})); var f1; (function (e) { @@ -13649,7 +13649,7 @@ If you need interactivity, consider converting part of this to a Client Componen let r = i + 1; e[(e.KeyAfterPropSpread = r)] = 'KeyAfterPropSpread'; })(f1 || (Be.JSXRole = f1 = {})); - function hm(e) { + function dm(e) { let t = e.identifierRole; return ( t === it.TopLevelDeclaration || @@ -13660,8 +13660,8 @@ If you need interactivity, consider converting part of this to a Client Componen t === it.ObjectShorthandBlockScopedDeclaration ); } - Be.isDeclaration = hm; - function fm(e) { + Be.isDeclaration = dm; + function mm(e) { let t = e.identifierRole; return ( t === it.FunctionScopedDeclaration || @@ -13670,8 +13670,8 @@ If you need interactivity, consider converting part of this to a Client Componen t === it.ObjectShorthandBlockScopedDeclaration ); } - Be.isNonTopLevelDeclaration = fm; - function dm(e) { + Be.isNonTopLevelDeclaration = mm; + function ym(e) { let t = e.identifierRole; return ( t === it.TopLevelDeclaration || @@ -13679,8 +13679,8 @@ If you need interactivity, consider converting part of this to a Client Componen t === it.ImportDeclaration ); } - Be.isTopLevelDeclaration = dm; - function mm(e) { + Be.isTopLevelDeclaration = ym; + function Tm(e) { let t = e.identifierRole; return ( t === it.TopLevelDeclaration || @@ -13689,23 +13689,23 @@ If you need interactivity, consider converting part of this to a Client Componen t === it.ObjectShorthandBlockScopedDeclaration ); } - Be.isBlockScopedDeclaration = mm; - function Tm(e) { + Be.isBlockScopedDeclaration = Tm; + function km(e) { let t = e.identifierRole; return ( t === it.FunctionScopedDeclaration || t === it.ObjectShorthandFunctionScopedDeclaration ); } - Be.isFunctionScopedDeclaration = Tm; - function ym(e) { + Be.isFunctionScopedDeclaration = km; + function vm(e) { return ( e.identifierRole === it.ObjectShorthandTopLevelDeclaration || e.identifierRole === it.ObjectShorthandBlockScopedDeclaration || e.identifierRole === it.ObjectShorthandFunctionScopedDeclaration ); } - Be.isObjectShorthandDeclaration = ym; + Be.isObjectShorthandDeclaration = vm; var Hi = class { constructor() { (this.type = b.state.type), @@ -13734,73 +13734,73 @@ If you need interactivity, consider converting part of this to a Client Componen b.state.tokens.push(new Hi()), k1(); } Be.next = zr; - function km() { - b.state.tokens.push(new Hi()), (b.state.start = b.state.pos), $m(); + function xm() { + b.state.tokens.push(new Hi()), (b.state.start = b.state.pos), Km(); } - Be.nextTemplateToken = km; - function vm() { - b.state.type === ne.TokenType.assign && --b.state.pos, Bm(); + Be.nextTemplateToken = xm; + function gm() { + b.state.type === ne.TokenType.assign && --b.state.pos, jm(); } - Be.retokenizeSlashAsRegex = vm; - function xm(e) { + Be.retokenizeSlashAsRegex = gm; + function _m(e) { for (let s = b.state.tokens.length - e; s < b.state.tokens.length; s++) b.state.tokens[s].isType = !0; let t = b.state.isType; return (b.state.isType = !0), t; } - Be.pushTypeContext = xm; - function gm(e) { + Be.pushTypeContext = _m; + function bm(e) { b.state.isType = e; } - Be.popTypeContext = gm; + Be.popTypeContext = bm; function m1(e) { return Sa(e) ? (zr(), !0) : !1; } Be.eat = m1; - function _m(e) { + function Cm(e) { let t = b.state.isType; (b.state.isType = !0), m1(e), (b.state.isType = t); } - Be.eatTypeToken = _m; + Be.eatTypeToken = Cm; function Sa(e) { return b.state.type === e; } Be.match = Sa; - function bm() { + function wm() { let e = b.state.snapshot(); zr(); let t = b.state.type; return b.state.restoreFromSnapshot(e), t; } - Be.lookaheadType = bm; + Be.lookaheadType = wm; var Gr = class { constructor(t, s) { (this.type = t), (this.contextualKeyword = s); } }; Be.TypeAndKeyword = Gr; - function Cm() { + function Sm() { let e = b.state.snapshot(); zr(); let t = b.state.type, s = b.state.contextualKeyword; return b.state.restoreFromSnapshot(e), new Gr(t, s); } - Be.lookaheadTypeAndKeyword = Cm; - function T1() { - return y1(b.state.pos); + Be.lookaheadTypeAndKeyword = Sm; + function y1() { + return T1(b.state.pos); } - Be.nextTokenStart = T1; - function y1(e) { + Be.nextTokenStart = y1; + function T1(e) { wa.skipWhiteSpace.lastIndex = e; let t = wa.skipWhiteSpace.exec(b.input); return e + t[0].length; } - Be.nextTokenStartSince = y1; - function wm() { - return b.input.charCodeAt(T1()); + Be.nextTokenStartSince = T1; + function Im() { + return b.input.charCodeAt(y1()); } - Be.lookaheadCharCode = wm; + Be.lookaheadCharCode = Im; function k1() { if ( (x1(), (b.state.start = b.state.pos), b.state.pos >= b.input.length) @@ -13813,18 +13813,18 @@ If you need interactivity, consider converting part of this to a Client Componen Ve(ne.TokenType.eof); return; } - Sm(b.input.charCodeAt(b.state.pos)); + Em(b.input.charCodeAt(b.state.pos)); } Be.nextToken = k1; - function Sm(e) { + function Em(e) { d1.IS_IDENTIFIER_START[e] || e === F.charCodes.backslash || (e === F.charCodes.atSign && b.input.charCodeAt(b.state.pos + 1) === F.charCodes.atSign) - ? pm.default.call(void 0) + ? fm.default.call(void 0) : _1(e); } - function Im() { + function Am() { for ( ; b.input.charCodeAt(b.state.pos) !== F.charCodes.asterisk || @@ -13867,7 +13867,7 @@ If you need interactivity, consider converting part of this to a Client Componen case F.charCodes.slash: switch (b.input.charCodeAt(b.state.pos + 1)) { case F.charCodes.asterisk: - (b.state.pos += 2), Im(); + (b.state.pos += 2), Am(); break; case F.charCodes.slash: v1(2); @@ -13883,13 +13883,13 @@ If you need interactivity, consider converting part of this to a Client Componen } } Be.skipSpace = x1; - function Ve(e, t = cm.ContextualKeyword.NONE) { + function Ve(e, t = pm.ContextualKeyword.NONE) { (b.state.end = b.state.pos), (b.state.type = e), (b.state.contextualKeyword = t); } Be.finishToken = Ve; - function Em() { + function Pm() { let e = b.input.charCodeAt(b.state.pos + 1); if (e >= F.charCodes.digit0 && e <= F.charCodes.digit9) { b1(!0); @@ -13900,12 +13900,12 @@ If you need interactivity, consider converting part of this to a Client Componen ? ((b.state.pos += 3), Ve(ne.TokenType.ellipsis)) : (++b.state.pos, Ve(ne.TokenType.dot)); } - function Am() { + function Nm() { b.input.charCodeAt(b.state.pos + 1) === F.charCodes.equalsTo ? Fe(ne.TokenType.assign, 2) : Fe(ne.TokenType.slash, 1); } - function Pm(e) { + function Rm(e) { let t = e === F.charCodes.asterisk ? ne.TokenType.star : ne.TokenType.modulo, s = 1, @@ -13920,7 +13920,7 @@ If you need interactivity, consider converting part of this to a Client Componen (s++, (t = ne.TokenType.assign)), Fe(t, s); } - function Nm(e) { + function Lm(e) { let t = b.input.charCodeAt(b.state.pos + 1); if (t === e) { b.input.charCodeAt(b.state.pos + 2) === F.charCodes.equalsTo @@ -13953,12 +13953,12 @@ If you need interactivity, consider converting part of this to a Client Componen 1 ); } - function Rm() { + function Om() { b.input.charCodeAt(b.state.pos + 1) === F.charCodes.equalsTo ? Fe(ne.TokenType.assign, 2) : Fe(ne.TokenType.bitwiseXOR, 1); } - function Lm(e) { + function Dm(e) { let t = b.input.charCodeAt(b.state.pos + 1); if (t === e) { Fe(ne.TokenType.preIncDec, 2); @@ -13970,7 +13970,7 @@ If you need interactivity, consider converting part of this to a Client Componen ? Fe(ne.TokenType.plus, 1) : Fe(ne.TokenType.minus, 1); } - function Om() { + function Mm() { let e = b.input.charCodeAt(b.state.pos + 1); if (e === F.charCodes.lessThan) { if (b.input.charCodeAt(b.state.pos + 2) === F.charCodes.equalsTo) { @@ -14008,11 +14008,11 @@ If you need interactivity, consider converting part of this to a Client Componen ? Fe(ne.TokenType.relationalOrEqual, 2) : Fe(ne.TokenType.greaterThan, 1); } - function Dm() { + function Fm() { b.state.type === ne.TokenType.greaterThan && ((b.state.pos -= 1), g1()); } - Be.rescan_gt = Dm; - function Mm(e) { + Be.rescan_gt = Fm; + function Bm(e) { let t = b.input.charCodeAt(b.state.pos + 1); if (t === F.charCodes.equalsTo) { Fe( @@ -14027,7 +14027,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Fe(e === F.charCodes.equalsTo ? ne.TokenType.eq : ne.TokenType.bang, 1); } - function Fm() { + function Vm() { let e = b.input.charCodeAt(b.state.pos + 1), t = b.input.charCodeAt(b.state.pos + 2); e === F.charCodes.questionMark && !(b.isFlowEnabled && b.state.isType) @@ -14045,7 +14045,7 @@ If you need interactivity, consider converting part of this to a Client Componen ++b.state.pos, Ve(ne.TokenType.hash); return; case F.charCodes.dot: - Em(); + Pm(); return; case F.charCodes.leftParenthesis: ++b.state.pos, Ve(ne.TokenType.parenL); @@ -14080,7 +14080,7 @@ If you need interactivity, consider converting part of this to a Client Componen : (++b.state.pos, Ve(ne.TokenType.colon)); return; case F.charCodes.questionMark: - Fm(); + Vm(); return; case F.charCodes.atSign: ++b.state.pos, Ve(ne.TokenType.at); @@ -14098,7 +14098,7 @@ If you need interactivity, consider converting part of this to a Client Componen t === F.charCodes.lowercaseB || t === F.charCodes.uppercaseB ) { - Vm(); + $m(); return; } } @@ -14115,35 +14115,35 @@ If you need interactivity, consider converting part of this to a Client Componen return; case F.charCodes.quotationMark: case F.charCodes.apostrophe: - jm(e); + qm(e); return; case F.charCodes.slash: - Am(); + Nm(); return; case F.charCodes.percentSign: case F.charCodes.asterisk: - Pm(e); + Rm(e); return; case F.charCodes.verticalBar: case F.charCodes.ampersand: - Nm(e); + Lm(e); return; case F.charCodes.caret: - Rm(); + Om(); return; case F.charCodes.plusSign: case F.charCodes.dash: - Lm(e); + Dm(e); return; case F.charCodes.lessThan: - Om(); + Mm(); return; case F.charCodes.greaterThan: g1(); return; case F.charCodes.equalsTo: case F.charCodes.exclamationMark: - Mm(e); + Bm(e); return; case F.charCodes.tilde: Fe(ne.TokenType.tilde, 1); @@ -14161,7 +14161,7 @@ If you need interactivity, consider converting part of this to a Client Componen function Fe(e, t) { (b.state.pos += t), Ve(e); } - function Bm() { + function jm() { let e = b.state.pos, t = !1, s = !1; @@ -14193,7 +14193,7 @@ If you need interactivity, consider converting part of this to a Client Componen else break; } } - function Vm() { + function $m() { for (b.state.pos += 2; ; ) { let t = b.input.charCodeAt(b.state.pos); if ( @@ -14237,7 +14237,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Ve(ne.TokenType.num); } - function jm(e) { + function qm(e) { for (b.state.pos++; ; ) { if (b.state.pos >= b.input.length) { ci.unexpected.call(void 0, 'Unterminated string constant'); @@ -14250,7 +14250,7 @@ If you need interactivity, consider converting part of this to a Client Componen } b.state.pos++, Ve(ne.TokenType.string); } - function $m() { + function Km() { for (;;) { if (b.state.pos >= b.input.length) { ci.unexpected.call(void 0, 'Unterminated template'); @@ -14303,7 +14303,7 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Ia, '__esModule', {value: !0}); var w1 = be(); - function qm(e, t = e.currentIndex()) { + function Um(e, t = e.currentIndex()) { let s = t + 1; if (Xr(e, s)) { let i = e.identifierNameAtIndex(t); @@ -14322,7 +14322,7 @@ If you need interactivity, consider converting part of this to a Client Componen return {isType: !0, leftName: null, rightName: null, endIndex: s}; throw new Error(`Unexpected import/export specifier at ${t}`); } - Ia.default = qm; + Ia.default = Um; function Xr(e, t) { let s = e.tokens[t]; return s.type === w1.TokenType.braceR || s.type === w1.TokenType.comma; @@ -14590,12 +14590,12 @@ If you need interactivity, consider converting part of this to a Client Componen var Pa = Z((Aa) => { 'use strict'; Object.defineProperty(Aa, '__esModule', {value: !0}); - function Km(e) { + function Hm(e) { let [t, s] = I1(e.jsxPragma || 'React.createElement'), [i, r] = I1(e.jsxFragmentPragma || 'React.Fragment'); return {base: t, suffix: s, fragmentBase: i, fragmentSuffix: r}; } - Aa.default = Km; + Aa.default = Hm; function I1(e) { let t = e.indexOf('.'); return t === -1 && (t = e.length), [e.slice(0, t), e.slice(t)]; @@ -14623,16 +14623,16 @@ If you need interactivity, consider converting part of this to a Client Componen function Oa(e) { return e && e.__esModule ? e : {default: e}; } - var Um = S1(), - Hm = Oa(Um), + var Wm = S1(), + Gm = Oa(Wm), Yr = xt(), Re = be(), An = Qt(), - Wm = Pa(), - Gm = Oa(Wm), - zm = hn(), + zm = Pa(), Xm = Oa(zm), - La = class e extends Xm.default { + Ym = hn(), + Jm = Oa(Ym), + La = class e extends Jm.default { __init() { this.lastLineNumber = 1; } @@ -14660,7 +14660,7 @@ If you need interactivity, consider converting part of this to a Client Componen e.prototype.__init3.call(this), e.prototype.__init4.call(this), e.prototype.__init5.call(this), - (this.jsxPragmaInfo = Gm.default.call(void 0, a)), + (this.jsxPragmaInfo = Xm.default.call(void 0, a)), (this.isAutomaticRuntime = a.jsxRuntime === 'automatic'), (this.jsxImportSource = a.jsxImportSource || 'react'); } @@ -14934,7 +14934,7 @@ If you need interactivity, consider converting part of this to a Client Componen let t = this.tokens.currentToken(), s = this.tokens.code.slice(t.start + 1, t.end - 1), i = E1(s), - r = Jm(s); + r = Zm(s); this.tokens.replaceToken(r + i); } processAutomaticChildrenAndEndProps(t) { @@ -14980,7 +14980,7 @@ If you need interactivity, consider converting part of this to a Client Componen let s = this.tokens.currentToken(), i = this.tokens.code.slice(s.start, s.end), r = E1(i), - a = Ym(i); + a = Qm(i); return a === '""' ? (this.tokens.replaceToken(r), !1) : (this.tokens.replaceToken(`${t ? ', ' : ''}${a}${r}`), !0); @@ -15003,7 +15003,7 @@ If you need interactivity, consider converting part of this to a Client Componen return t >= An.charCodes.lowercaseA && t <= An.charCodes.lowercaseZ; } Jr.startsWithLowerCase = A1; - function Ym(e) { + function Qm(e) { let t = '', s = '', i = !1, @@ -15041,7 +15041,7 @@ If you need interactivity, consider converting part of this to a Client Componen `.repeat(t) + ' '.repeat(s) ); } - function Jm(e) { + function Zm(e) { let t = ''; for (let s = 0; s < e.length; s++) { let i = e[s]; @@ -15072,8 +15072,8 @@ If you need interactivity, consider converting part of this to a Client Componen a++; let d; if (e[a] === 'x') - for (u = 16, a++, d = a; a < e.length && Zm(e.charCodeAt(a)); ) a++; - else for (d = a; a < e.length && Qm(e.charCodeAt(a)); ) a++; + for (u = 16, a++, d = a; a < e.length && ty(e.charCodeAt(a)); ) a++; + else for (d = a; a < e.length && ey(e.charCodeAt(a)); ) a++; if (e[a] === ';') { let y = e.slice(d, a); y && (a++, (r = String.fromCodePoint(parseInt(y, u)))); @@ -15082,17 +15082,17 @@ If you need interactivity, consider converting part of this to a Client Componen for (; a < e.length && i++ < 10; ) { let u = e[a]; if ((a++, u === ';')) { - r = Hm.default.get(s); + r = Gm.default.get(s); break; } s += u; } return r ? {entity: r, newI: a} : {entity: '&', newI: t}; } - function Qm(e) { + function ey(e) { return e >= An.charCodes.digit0 && e <= An.charCodes.digit9; } - function Zm(e) { + function ty(e) { return ( (e >= An.charCodes.digit0 && e <= An.charCodes.digit9) || (e >= An.charCodes.lowercaseA && e <= An.charCodes.lowercaseF) || @@ -15103,16 +15103,16 @@ If you need interactivity, consider converting part of this to a Client Componen var Fa = Z((Ma) => { 'use strict'; Object.defineProperty(Ma, '__esModule', {value: !0}); - function eT(e) { + function ny(e) { return e && e.__esModule ? e : {default: e}; } var Qr = xt(), ui = be(), - tT = Da(), - nT = Pa(), - sT = eT(nT); - function iT(e, t) { - let s = sT.default.call(void 0, t), + sy = Da(), + iy = Pa(), + ry = ny(iy); + function oy(e, t) { + let s = ry.default.call(void 0, t), i = new Set(); for (let r = 0; r < e.tokens.length; r++) { let a = e.tokens[r]; @@ -15133,27 +15133,27 @@ If you need interactivity, consider converting part of this to a Client Componen a.identifierRole === Qr.IdentifierRole.Access) ) { let u = e.identifierNameForToken(a); - (!tT.startsWithLowerCase.call(void 0, u) || + (!sy.startsWithLowerCase.call(void 0, u) || e.tokens[r + 1].type === ui.TokenType.dot) && i.add(e.identifierNameForToken(a)); } } return i; } - Ma.getNonTypeIdentifiers = iT; + Ma.getNonTypeIdentifiers = oy; }); var N1 = Z((Va) => { 'use strict'; Object.defineProperty(Va, '__esModule', {value: !0}); - function rT(e) { + function ay(e) { return e && e.__esModule ? e : {default: e}; } - var oT = xt(), + var ly = xt(), Zr = It(), me = be(), - aT = Wi(), - lT = rT(aT), - cT = Fa(), + cy = Wi(), + uy = ay(cy), + py = Fa(), Ba = class e { __init() { this.nonTypeIdentifiers = new Set(); @@ -15203,7 +15203,7 @@ If you need interactivity, consider converting part of this to a Client Componen this.generateImportReplacements(); } pruneTypeOnlyImports() { - this.nonTypeIdentifiers = cT.getNonTypeIdentifiers.call( + this.nonTypeIdentifiers = py.getNonTypeIdentifiers.call( void 0, this.tokens, this.options @@ -15250,44 +15250,44 @@ If you need interactivity, consider converting part of this to a Client Componen this.importsToReplace.set(t, `require('${t}');`); continue; } - let g = this.getFreeIdentifierForPath(t), - L; + let x = this.getFreeIdentifierForPath(t), + R; this.enableLegacyTypeScriptModuleInterop - ? (L = g) - : (L = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); - let p = `var ${g} = require('${t}');`; + ? (R = x) + : (R = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t)); + let p = `var ${x} = require('${t}');`; if (r.length > 0) - for (let f of r) { - let v = this.enableLegacyTypeScriptModuleInterop - ? g + for (let h of r) { + let T = this.enableLegacyTypeScriptModuleInterop + ? x : `${this.helperManager.getHelperName( 'interopRequireWildcard' - )}(${g})`; - p += ` var ${f} = ${v};`; + )}(${x})`; + p += ` var ${h} = ${T};`; } else - d.length > 0 && L !== g - ? (p += ` var ${L} = ${this.helperManager.getHelperName( + d.length > 0 && R !== x + ? (p += ` var ${R} = ${this.helperManager.getHelperName( 'interopRequireWildcard' - )}(${g});`) + )}(${x});`) : i.length > 0 && - L !== g && - (p += ` var ${L} = ${this.helperManager.getHelperName( + R !== x && + (p += ` var ${R} = ${this.helperManager.getHelperName( 'interopRequireDefault' - )}(${g});`); - for (let {importedName: f, localName: v} of u) + )}(${x});`); + for (let {importedName: h, localName: T} of u) p += ` ${this.helperManager.getHelperName( 'createNamedExportFrom' - )}(${g}, '${v}', '${f}');`; - for (let f of d) p += ` exports.${f} = ${L};`; + )}(${x}, '${T}', '${h}');`; + for (let h of d) p += ` exports.${h} = ${R};`; y && (p += ` ${this.helperManager.getHelperName( 'createStarExport' - )}(${g});`), + )}(${x});`), this.importsToReplace.set(t, p); - for (let f of i) this.identifierReplacements.set(f, `${L}.default`); - for (let {importedName: f, localName: v} of a) - this.identifierReplacements.set(v, `${g}.${f}`); + for (let h of i) this.identifierReplacements.set(h, `${R}.default`); + for (let {importedName: h, localName: T} of a) + this.identifierReplacements.set(T, `${x}.${h}`); } } getFreeIdentifierForPath(t) { @@ -15428,7 +15428,7 @@ If you need interactivity, consider converting part of this to a Client Componen i = r - 1; } else { let r = this.tokens.tokens[i]; - if (oT.isDeclaration.call(void 0, r)) { + if (ly.isDeclaration.call(void 0, r)) { let a = this.tokens.identifierNameAtIndex(i); this.identifierReplacements.set(a, `exports.${a}`); } @@ -15482,7 +15482,7 @@ If you need interactivity, consider converting part of this to a Client Componen t++; break; } - let i = lT.default.call(void 0, this.tokens, t); + let i = uy.default.call(void 0, this.tokens, t); if ( ((t = i.endIndex), i.isType || @@ -15624,28 +15624,28 @@ If you need interactivity, consider converting part of this to a Client Componen A = [], U = 0; do { - let D = y(w, U), + let M = y(w, U), c = [], - M = !0, - z = 0; + L = !0, + W = 0; S[0] = 0; - for (let X = U; X < D; X++) { + for (let X = U; X < M; X++) { let ie; - X = g(w, X, S, 0); + X = x(w, X, S, 0); let pe = S[0]; - pe < z && (M = !1), - (z = pe), - L(w, X, D) - ? ((X = g(w, X, S, 1)), - (X = g(w, X, S, 2)), - (X = g(w, X, S, 3)), - L(w, X, D) - ? ((X = g(w, X, S, 4)), (ie = [pe, S[1], S[2], S[3], S[4]])) + pe < W && (L = !1), + (W = pe), + R(w, X, M) + ? ((X = x(w, X, S, 1)), + (X = x(w, X, S, 2)), + (X = x(w, X, S, 3)), + R(w, X, M) + ? ((X = x(w, X, S, 4)), (ie = [pe, S[1], S[2], S[3], S[4]])) : (ie = [pe, S[1], S[2], S[3]])) : (ie = [pe]), c.push(ie); } - M || p(c), A.push(c), (U = D + 1); + L || p(c), A.push(c), (U = M + 1); } while (U <= w.length); return A; } @@ -15653,68 +15653,68 @@ If you need interactivity, consider converting part of this to a Client Componen let A = w.indexOf(';', S); return A === -1 ? w.length : A; } - function g(w, S, A, U) { - let D = 0, + function x(w, S, A, U) { + let M = 0, c = 0, - M = 0; + L = 0; do { let X = w.charCodeAt(S++); - (M = a[X]), (D |= (M & 31) << c), (c += 5); - } while (M & 32); - let z = D & 1; - return (D >>>= 1), z && (D = -2147483648 | -D), (A[U] += D), S; + (L = a[X]), (M |= (L & 31) << c), (c += 5); + } while (L & 32); + let W = M & 1; + return (M >>>= 1), W && (M = -2147483648 | -M), (A[U] += M), S; } - function L(w, S, A) { + function R(w, S, A) { return S >= A ? !1 : w.charCodeAt(S) !== 44; } function p(w) { - w.sort(f); + w.sort(h); } - function f(w, S) { + function h(w, S) { return w[0] - S[0]; } - function v(w) { + function T(w) { let S = new Int32Array(5), A = 1024 * 16, U = A - 36, - D = new Uint8Array(A), - c = D.subarray(0, U), - M = 0, - z = ''; + M = new Uint8Array(A), + c = M.subarray(0, U), + L = 0, + W = ''; for (let X = 0; X < w.length; X++) { let ie = w[X]; if ( - (X > 0 && (M === A && ((z += u.decode(D)), (M = 0)), (D[M++] = 59)), + (X > 0 && (L === A && ((W += u.decode(M)), (L = 0)), (M[L++] = 59)), ie.length !== 0) ) { S[0] = 0; for (let pe = 0; pe < ie.length; pe++) { let ae = ie[pe]; - M > U && ((z += u.decode(c)), D.copyWithin(0, U, M), (M -= U)), - pe > 0 && (D[M++] = 44), - (M = x(D, M, S, ae, 0)), + L > U && ((W += u.decode(c)), M.copyWithin(0, U, L), (L -= U)), + pe > 0 && (M[L++] = 44), + (L = g(M, L, S, ae, 0)), ae.length !== 1 && - ((M = x(D, M, S, ae, 1)), - (M = x(D, M, S, ae, 2)), - (M = x(D, M, S, ae, 3)), - ae.length !== 4 && (M = x(D, M, S, ae, 4))); + ((L = g(M, L, S, ae, 1)), + (L = g(M, L, S, ae, 2)), + (L = g(M, L, S, ae, 3)), + ae.length !== 4 && (L = g(M, L, S, ae, 4))); } } } - return z + u.decode(D.subarray(0, M)); + return W + u.decode(M.subarray(0, L)); } - function x(w, S, A, U, D) { - let c = U[D], - M = c - A[D]; - (A[D] = c), (M = M < 0 ? (-M << 1) | 1 : M << 1); + function g(w, S, A, U, M) { + let c = U[M], + L = c - A[M]; + (A[M] = c), (L = L < 0 ? (-L << 1) | 1 : L << 1); do { - let z = M & 31; - (M >>>= 5), M > 0 && (z |= 32), (w[S++] = r[z]); - } while (M > 0); + let W = L & 31; + (L >>>= 5), L > 0 && (W |= 32), (w[S++] = r[W]); + } while (L > 0); return S; } (e.decode = d), - (e.encode = v), + (e.encode = T), Object.defineProperty(e, '__esModule', {value: !0}); }); }); @@ -15757,7 +15757,7 @@ If you need interactivity, consider converting part of this to a Client Componen function y(A) { return /^[.?#]/.test(A); } - function g(A) { + function x(A) { let U = t.exec(A); return p( U[1], @@ -15769,43 +15769,43 @@ If you need interactivity, consider converting part of this to a Client Componen U[7] || '' ); } - function L(A) { + function R(A) { let U = s.exec(A), - D = U[2]; + M = U[2]; return p( 'file:', '', U[1] || '', '', - u(D) ? D : '/' + D, + u(M) ? M : '/' + M, U[3] || '', U[4] || '' ); } - function p(A, U, D, c, M, z, X) { + function p(A, U, M, c, L, W, X) { return { scheme: A, user: U, - host: D, + host: M, port: c, - path: M, - query: z, + path: L, + query: W, hash: X, type: i.Absolute, }; } - function f(A) { + function h(A) { if (a(A)) { - let D = g('http:' + A); - return (D.scheme = ''), (D.type = i.SchemeRelative), D; + let M = x('http:' + A); + return (M.scheme = ''), (M.type = i.SchemeRelative), M; } if (u(A)) { - let D = g('http://foo.com' + A); - return (D.scheme = ''), (D.host = ''), (D.type = i.AbsolutePath), D; + let M = x('http://foo.com' + A); + return (M.scheme = ''), (M.host = ''), (M.type = i.AbsolutePath), M; } - if (d(A)) return L(A); - if (r(A)) return g(A); - let U = g('http://foo.com/' + A); + if (d(A)) return R(A); + if (r(A)) return x(A); + let U = x('http://foo.com/' + A); return ( (U.scheme = ''), (U.host = ''), @@ -15819,20 +15819,20 @@ If you need interactivity, consider converting part of this to a Client Componen U ); } - function v(A) { + function T(A) { if (A.endsWith('/..')) return A; let U = A.lastIndexOf('/'); return A.slice(0, U + 1); } - function x(A, U) { + function g(A, U) { w(U, U.type), - A.path === '/' ? (A.path = U.path) : (A.path = v(U.path) + A.path); + A.path === '/' ? (A.path = U.path) : (A.path = T(U.path) + A.path); } function w(A, U) { - let D = U <= i.RelativePath, + let M = U <= i.RelativePath, c = A.path.split('/'), - M = 1, - z = 0, + L = 1, + W = 0, X = !1; for (let pe = 1; pe < c.length; pe++) { let ae = c[pe]; @@ -15842,52 +15842,52 @@ If you need interactivity, consider converting part of this to a Client Componen } if (((X = !1), ae !== '.')) { if (ae === '..') { - z ? ((X = !0), z--, M--) : D && (c[M++] = ae); + W ? ((X = !0), W--, L--) : M && (c[L++] = ae); continue; } - (c[M++] = ae), z++; + (c[L++] = ae), W++; } } let ie = ''; - for (let pe = 1; pe < M; pe++) ie += '/' + c[pe]; + for (let pe = 1; pe < L; pe++) ie += '/' + c[pe]; (!ie || (X && !ie.endsWith('/..'))) && (ie += '/'), (A.path = ie); } function S(A, U) { if (!A && !U) return ''; - let D = f(A), - c = D.type; + let M = h(A), + c = M.type; if (U && c !== i.Absolute) { - let z = f(U), - X = z.type; + let W = h(U), + X = W.type; switch (c) { case i.Empty: - D.hash = z.hash; + M.hash = W.hash; case i.Hash: - D.query = z.query; + M.query = W.query; case i.Query: case i.RelativePath: - x(D, z); + g(M, W); case i.AbsolutePath: - (D.user = z.user), (D.host = z.host), (D.port = z.port); + (M.user = W.user), (M.host = W.host), (M.port = W.port); case i.SchemeRelative: - D.scheme = z.scheme; + M.scheme = W.scheme; } X > c && (c = X); } - w(D, c); - let M = D.query + D.hash; + w(M, c); + let L = M.query + M.hash; switch (c) { case i.Hash: case i.Query: - return M; + return L; case i.RelativePath: { - let z = D.path.slice(1); - return z ? (y(U || A) && !y(z) ? './' + z + M : z + M) : M || '.'; + let W = M.path.slice(1); + return W ? (y(U || A) && !y(W) ? './' + W + L : W + L) : L || '.'; } case i.AbsolutePath: - return D.path + M; + return M.path + L; default: - return D.scheme + '//' + D.user + D.host + D.port + D.path + M; + return M.scheme + '//' + M.user + M.host + M.port + M.path + L; } } return S; @@ -15914,109 +15914,109 @@ If you need interactivity, consider converting part of this to a Client Componen return V && typeof V == 'object' && 'default' in V ? V : {default: V}; } var r = i(s); - function a(V, W) { - return W && !W.endsWith('/') && (W += '/'), r.default(V, W); + function a(V, G) { + return G && !G.endsWith('/') && (G += '/'), r.default(V, G); } function u(V) { if (!V) return ''; - let W = V.lastIndexOf('/'); - return V.slice(0, W + 1); + let G = V.lastIndexOf('/'); + return V.slice(0, G + 1); } let d = 0, y = 1, - g = 2, - L = 3, + x = 2, + R = 3, p = 4, - f = 1, - v = 2; - function x(V, W) { + h = 1, + T = 2; + function g(V, G) { let J = w(V, 0); if (J === V.length) return V; - W || (V = V.slice()); - for (let re = J; re < V.length; re = w(V, re + 1)) V[re] = A(V[re], W); + G || (V = V.slice()); + for (let re = J; re < V.length; re = w(V, re + 1)) V[re] = A(V[re], G); return V; } - function w(V, W) { - for (let J = W; J < V.length; J++) if (!S(V[J])) return J; + function w(V, G) { + for (let J = G; J < V.length; J++) if (!S(V[J])) return J; return V.length; } function S(V) { - for (let W = 1; W < V.length; W++) if (V[W][d] < V[W - 1][d]) return !1; + for (let G = 1; G < V.length; G++) if (V[G][d] < V[G - 1][d]) return !1; return !0; } - function A(V, W) { - return W || (V = V.slice()), V.sort(U); + function A(V, G) { + return G || (V = V.slice()), V.sort(U); } - function U(V, W) { - return V[d] - W[d]; + function U(V, G) { + return V[d] - G[d]; } - let D = !1; - function c(V, W, J, re) { + let M = !1; + function c(V, G, J, re) { for (; J <= re; ) { let ve = J + ((re - J) >> 1), - he = V[ve][d] - W; - if (he === 0) return (D = !0), ve; + he = V[ve][d] - G; + if (he === 0) return (M = !0), ve; he < 0 ? (J = ve + 1) : (re = ve - 1); } - return (D = !1), J - 1; + return (M = !1), J - 1; } - function M(V, W, J) { - for (let re = J + 1; re < V.length && V[re][d] === W; J = re++); + function L(V, G, J) { + for (let re = J + 1; re < V.length && V[re][d] === G; J = re++); return J; } - function z(V, W, J) { - for (let re = J - 1; re >= 0 && V[re][d] === W; J = re--); + function W(V, G, J) { + for (let re = J - 1; re >= 0 && V[re][d] === G; J = re--); return J; } function X() { return {lastKey: -1, lastNeedle: -1, lastIndex: -1}; } - function ie(V, W, J, re) { + function ie(V, G, J, re) { let {lastKey: ve, lastNeedle: he, lastIndex: Ie} = J, Ee = 0, Le = V.length - 1; if (re === ve) { - if (W === he) return (D = Ie !== -1 && V[Ie][d] === W), Ie; - W >= he ? (Ee = Ie === -1 ? 0 : Ie) : (Le = Ie); + if (G === he) return (M = Ie !== -1 && V[Ie][d] === G), Ie; + G >= he ? (Ee = Ie === -1 ? 0 : Ie) : (Le = Ie); } return ( - (J.lastKey = re), (J.lastNeedle = W), (J.lastIndex = c(V, W, Ee, Le)) + (J.lastKey = re), (J.lastNeedle = G), (J.lastIndex = c(V, G, Ee, Le)) ); } - function pe(V, W) { - let J = W.map(He); + function pe(V, G) { + let J = G.map(He); for (let re = 0; re < V.length; re++) { let ve = V[re]; for (let he = 0; he < ve.length; he++) { let Ie = ve[he]; if (Ie.length === 1) continue; let Ee = Ie[y], - Le = Ie[g], - Xe = Ie[L], + Le = Ie[x], + Xe = Ie[R], We = J[Ee], Ke = We[Le] || (We[Le] = []), - ut = W[Ee], - pt = M(Ke, Xe, ie(Ke, Xe, ut, Le)); + ut = G[Ee], + pt = L(Ke, Xe, ie(Ke, Xe, ut, Le)); ae(Ke, (ut.lastIndex = pt + 1), [Xe, re, Ie[d]]); } } return J; } - function ae(V, W, J) { - for (let re = V.length; re > W; re--) V[re] = V[re - 1]; - V[W] = J; + function ae(V, G, J) { + for (let re = V.length; re > G; re--) V[re] = V[re - 1]; + V[G] = J; } function He() { return {__proto__: null}; } - let qe = function (V, W) { + let qe = function (V, G) { let J = typeof V == 'string' ? JSON.parse(V) : V; - if (!('sections' in J)) return new wt(J, W); + if (!('sections' in J)) return new wt(J, G); let re = [], ve = [], he = [], Ie = []; - Bt(J, W, re, ve, he, Ie, 0, 0, 1 / 0, 1 / 0); + Bt(J, G, re, ve, he, Ie, 0, 0, 1 / 0, 1 / 0); let Ee = { version: 3, file: J.file, @@ -16027,30 +16027,30 @@ If you need interactivity, consider converting part of this to a Client Componen }; return e.presortedDecodedMap(Ee); }; - function Bt(V, W, J, re, ve, he, Ie, Ee, Le, Xe) { + function Bt(V, G, J, re, ve, he, Ie, Ee, Le, Xe) { let {sections: We} = V; for (let Ke = 0; Ke < We.length; Ke++) { let {map: ut, offset: pt} = We[Ke], bt = Le, - Tt = Xe; + yt = Xe; if (Ke + 1 < We.length) { let vt = We[Ke + 1].offset; (bt = Math.min(Le, Ie + vt.line)), bt === Le - ? (Tt = Math.min(Xe, Ee + vt.column)) - : bt < Le && (Tt = Ee + vt.column); + ? (yt = Math.min(Xe, Ee + vt.column)) + : bt < Le && (yt = Ee + vt.column); } - mt(ut, W, J, re, ve, he, Ie + pt.line, Ee + pt.column, bt, Tt); + mt(ut, G, J, re, ve, he, Ie + pt.line, Ee + pt.column, bt, yt); } } - function mt(V, W, J, re, ve, he, Ie, Ee, Le, Xe) { + function mt(V, G, J, re, ve, he, Ie, Ee, Le, Xe) { if ('sections' in V) return Bt(...arguments); - let We = new wt(V, W), + let We = new wt(V, G), Ke = re.length, ut = he.length, pt = e.decodedMappings(We), - {resolvedSources: bt, sourcesContent: Tt} = We; - if ((kt(re, bt), kt(he, We.names), Tt)) kt(ve, Tt); + {resolvedSources: bt, sourcesContent: yt} = We; + if ((kt(re, bt), kt(he, We.names), yt)) kt(ve, yt); else for (let vt = 0; vt < bt.length; vt++) ve.push(null); for (let vt = 0; vt < pt.length; vt++) { let bn = Ie + vt; @@ -16067,20 +16067,20 @@ If you need interactivity, consider converting part of this to a Client Componen continue; } let te = Ke + zt[y], - Cn = zt[g], - Zn = zt[L]; + Cn = zt[x], + Zn = zt[R]; Dn.push( zt.length === 4 ? [Xt, te, Cn, Zn] : [Xt, te, Cn, Zn, ut + zt[p]] ); } } } - function kt(V, W) { - for (let J = 0; J < W.length; J++) V.push(W[J]); + function kt(V, G) { + for (let J = 0; J < G.length; J++) V.push(G[J]); } - function At(V, W) { - for (let J = V.length; J <= W; J++) V[J] = []; - return V[W]; + function At(V, G) { + for (let J = V.length; J <= G; J++) V[J] = []; + return V[G]; } let tt = '`line` must be greater than 0 (lines start at line 1)', nt = @@ -16098,10 +16098,10 @@ If you need interactivity, consider converting part of this to a Client Componen (e.decodedMap = void 0), (e.encodedMap = void 0); class wt { - constructor(W, J) { - let re = typeof W == 'string'; - if (!re && W._decodedMemo) return W; - let ve = re ? JSON.parse(W) : W, + constructor(G, J) { + let re = typeof G == 'string'; + if (!re && G._decodedMemo) return G; + let ve = re ? JSON.parse(G) : G, { version: he, file: Ie, @@ -16121,48 +16121,48 @@ If you need interactivity, consider converting part of this to a Client Componen let {mappings: ut} = ve; typeof ut == 'string' ? ((this._encoded = ut), (this._decoded = void 0)) - : ((this._encoded = void 0), (this._decoded = x(ut, re))), + : ((this._encoded = void 0), (this._decoded = g(ut, re))), (this._decodedMemo = X()), (this._bySources = void 0), (this._bySourceMemos = void 0); } } (e.encodedMappings = (V) => { - var W; - return (W = V._encoded) !== null && W !== void 0 - ? W + var G; + return (G = V._encoded) !== null && G !== void 0 + ? G : (V._encoded = t.encode(V._decoded)); }), (e.decodedMappings = (V) => V._decoded || (V._decoded = t.decode(V._encoded))), - (e.traceSegment = (V, W, J) => { + (e.traceSegment = (V, G, J) => { let re = e.decodedMappings(V); - return W >= re.length ? null : yn(re[W], V._decodedMemo, W, J, ct); + return G >= re.length ? null : Tn(re[G], V._decodedMemo, G, J, ct); }), - (e.originalPositionFor = (V, {line: W, column: J, bias: re}) => { - if ((W--, W < 0)) throw new Error(tt); + (e.originalPositionFor = (V, {line: G, column: J, bias: re}) => { + if ((G--, G < 0)) throw new Error(tt); if (J < 0) throw new Error(nt); let ve = e.decodedMappings(V); - if (W >= ve.length) return Pt(null, null, null, null); - let he = yn(ve[W], V._decodedMemo, W, J, re || ct); + if (G >= ve.length) return Pt(null, null, null, null); + let he = Tn(ve[G], V._decodedMemo, G, J, re || ct); if (he == null || he.length == 1) return Pt(null, null, null, null); let {names: Ie, resolvedSources: Ee} = V; return Pt( Ee[he[y]], - he[g] + 1, - he[L], + he[x] + 1, + he[R], he.length === 5 ? Ie[he[p]] : null ); }), (e.generatedPositionFor = ( V, - {source: W, line: J, column: re, bias: ve} + {source: G, line: J, column: re, bias: ve} ) => { if ((J--, J < 0)) throw new Error(tt); if (re < 0) throw new Error(nt); let {sources: he, resolvedSources: Ie} = V, - Ee = he.indexOf(W); - if ((Ee === -1 && (Ee = Ie.indexOf(W)), Ee === -1)) + Ee = he.indexOf(G); + if ((Ee === -1 && (Ee = Ie.indexOf(G)), Ee === -1)) return qt(null, null); let Le = V._bySources || @@ -16173,10 +16173,10 @@ If you need interactivity, consider converting part of this to a Client Componen Xe = V._bySourceMemos, We = Le[Ee][J]; if (We == null) return qt(null, null); - let Ke = yn(We, Xe[Ee], J, re, ve || ct); - return Ke == null ? qt(null, null) : qt(Ke[f] + 1, Ke[v]); + let Ke = Tn(We, Xe[Ee], J, re, ve || ct); + return Ke == null ? qt(null, null) : qt(Ke[h] + 1, Ke[T]); }), - (e.eachMapping = (V, W) => { + (e.eachMapping = (V, G) => { let J = e.decodedMappings(V), {names: re, resolvedSources: ve} = V; for (let he = 0; he < J.length; he++) { @@ -16192,7 +16192,7 @@ If you need interactivity, consider converting part of this to a Client Componen Le.length !== 1 && ((Ke = ve[Le[1]]), (ut = Le[2] + 1), (pt = Le[3])), Le.length === 5 && (bt = re[Le[4]]), - W({ + G({ generatedLine: Xe, generatedColumn: We, source: Ke, @@ -16203,19 +16203,19 @@ If you need interactivity, consider converting part of this to a Client Componen } } }), - (e.sourceContentFor = (V, W) => { + (e.sourceContentFor = (V, G) => { let {sources: J, resolvedSources: re, sourcesContent: ve} = V; if (ve == null) return null; - let he = J.indexOf(W); - return he === -1 && (he = re.indexOf(W)), he === -1 ? null : ve[he]; + let he = J.indexOf(G); + return he === -1 && (he = re.indexOf(G)), he === -1 ? null : ve[he]; }), - (e.presortedDecodedMap = (V, W) => { - let J = new wt($t(V, []), W); + (e.presortedDecodedMap = (V, G) => { + let J = new wt($t(V, []), G); return (J._decoded = V.mappings), J; }), (e.decodedMap = (V) => $t(V, e.decodedMappings(V))), (e.encodedMap = (V) => $t(V, e.encodedMappings(V))); - function $t(V, W) { + function $t(V, G) { return { version: V.version, file: V.file, @@ -16223,19 +16223,19 @@ If you need interactivity, consider converting part of this to a Client Componen sourceRoot: V.sourceRoot, sources: V.sources, sourcesContent: V.sourcesContent, - mappings: W, + mappings: G, }; } - function Pt(V, W, J, re) { - return {source: V, line: W, column: J, name: re}; + function Pt(V, G, J, re) { + return {source: V, line: G, column: J, name: re}; } - function qt(V, W) { - return {line: V, column: W}; + function qt(V, G) { + return {line: V, column: G}; } - function yn(V, W, J, re, ve) { - let he = ie(V, re, W, J); + function Tn(V, G, J, re, ve) { + let he = ie(V, re, G, J); return ( - D ? (he = (ve === _t ? M : z)(V, re, he)) : ve === _t && he++, + M ? (he = (ve === _t ? L : W)(V, re, he)) : ve === _t && he++, he === -1 || he === V.length ? null : V[he] ); } @@ -16273,31 +16273,31 @@ If you need interactivity, consider converting part of this to a Client Componen (e.toEncodedMap = void 0), (e.fromMap = void 0), (e.allMappings = void 0); - let L; + let R; class p { - constructor({file: M, sourceRoot: z} = {}) { + constructor({file: L, sourceRoot: W} = {}) { (this._names = new t.SetArray()), (this._sources = new t.SetArray()), (this._sourcesContent = []), (this._mappings = []), - (this.file = M), - (this.sourceRoot = z); + (this.file = L), + (this.sourceRoot = W); } } - (e.addSegment = (c, M, z, X, ie, pe, ae, He) => - L(!1, c, M, z, X, ie, pe, ae, He)), - (e.maybeAddSegment = (c, M, z, X, ie, pe, ae, He) => - L(!0, c, M, z, X, ie, pe, ae, He)), - (e.addMapping = (c, M) => D(!1, c, M)), - (e.maybeAddMapping = (c, M) => D(!0, c, M)), - (e.setSourceContent = (c, M, z) => { + (e.addSegment = (c, L, W, X, ie, pe, ae, He) => + R(!1, c, L, W, X, ie, pe, ae, He)), + (e.maybeAddSegment = (c, L, W, X, ie, pe, ae, He) => + R(!0, c, L, W, X, ie, pe, ae, He)), + (e.addMapping = (c, L) => M(!1, c, L)), + (e.maybeAddMapping = (c, L) => M(!0, c, L)), + (e.setSourceContent = (c, L, W) => { let {_sources: X, _sourcesContent: ie} = c; - ie[t.put(X, M)] = z; + ie[t.put(X, L)] = W; }), (e.toDecodedMap = (c) => { let { - file: M, - sourceRoot: z, + file: L, + sourceRoot: W, _mappings: X, _sources: ie, _sourcesContent: pe, @@ -16307,9 +16307,9 @@ If you need interactivity, consider converting part of this to a Client Componen w(X), { version: 3, - file: M || void 0, + file: L || void 0, names: ae.array, - sourceRoot: z || void 0, + sourceRoot: W || void 0, sources: ie.array, sourcesContent: pe, mappings: X, @@ -16317,16 +16317,16 @@ If you need interactivity, consider converting part of this to a Client Componen ); }), (e.toEncodedMap = (c) => { - let M = e.toDecodedMap(c); - return Object.assign(Object.assign({}, M), { - mappings: s.encode(M.mappings), + let L = e.toDecodedMap(c); + return Object.assign(Object.assign({}, L), { + mappings: s.encode(L.mappings), }); }), (e.allMappings = (c) => { - let M = [], - {_mappings: z, _sources: X, _names: ie} = c; - for (let pe = 0; pe < z.length; pe++) { - let ae = z[pe]; + let L = [], + {_mappings: W, _sources: X, _names: ie} = c; + for (let pe = 0; pe < W.length; pe++) { + let ae = W[pe]; for (let He = 0; He < ae.length; He++) { let qe = ae[He], Bt = {line: pe + 1, column: qe[0]}, @@ -16337,86 +16337,86 @@ If you need interactivity, consider converting part of this to a Client Componen ((mt = X.array[qe[1]]), (kt = {line: qe[2] + 1, column: qe[3]}), qe.length === 5 && (At = ie.array[qe[4]])), - M.push({generated: Bt, source: mt, original: kt, name: At}); + L.push({generated: Bt, source: mt, original: kt, name: At}); } } - return M; + return L; }), (e.fromMap = (c) => { - let M = new i.TraceMap(c), - z = new p({file: M.file, sourceRoot: M.sourceRoot}); + let L = new i.TraceMap(c), + W = new p({file: L.file, sourceRoot: L.sourceRoot}); return ( - S(z._names, M.names), - S(z._sources, M.sources), - (z._sourcesContent = M.sourcesContent || M.sources.map(() => null)), - (z._mappings = i.decodedMappings(M)), - z + S(W._names, L.names), + S(W._sources, L.sources), + (W._sourcesContent = L.sourcesContent || L.sources.map(() => null)), + (W._mappings = i.decodedMappings(L)), + W ); }), - (L = (c, M, z, X, ie, pe, ae, He, qe) => { + (R = (c, L, W, X, ie, pe, ae, He, qe) => { let { _mappings: Bt, _sources: mt, _sourcesContent: kt, _names: At, - } = M, - tt = f(Bt, z), - nt = v(tt, X); - if (!ie) return c && A(tt, nt) ? void 0 : x(tt, nt, [X]); + } = L, + tt = h(Bt, W), + nt = T(tt, X); + if (!ie) return c && A(tt, nt) ? void 0 : g(tt, nt, [X]); let _t = t.put(mt, ie), ct = He ? t.put(At, He) : -1; if ( (_t === kt.length && (kt[_t] = qe ?? null), !(c && U(tt, nt, _t, pe, ae, ct))) ) - return x(tt, nt, He ? [X, _t, pe, ae, ct] : [X, _t, pe, ae]); + return g(tt, nt, He ? [X, _t, pe, ae, ct] : [X, _t, pe, ae]); }); - function f(c, M) { - for (let z = c.length; z <= M; z++) c[z] = []; - return c[M]; + function h(c, L) { + for (let W = c.length; W <= L; W++) c[W] = []; + return c[L]; } - function v(c, M) { - let z = c.length; - for (let X = z - 1; X >= 0; z = X--) { + function T(c, L) { + let W = c.length; + for (let X = W - 1; X >= 0; W = X--) { let ie = c[X]; - if (M >= ie[0]) break; + if (L >= ie[0]) break; } - return z; + return W; } - function x(c, M, z) { - for (let X = c.length; X > M; X--) c[X] = c[X - 1]; - c[M] = z; + function g(c, L, W) { + for (let X = c.length; X > L; X--) c[X] = c[X - 1]; + c[L] = W; } function w(c) { - let {length: M} = c, - z = M; - for (let X = z - 1; X >= 0 && !(c[X].length > 0); z = X, X--); - z < M && (c.length = z); + let {length: L} = c, + W = L; + for (let X = W - 1; X >= 0 && !(c[X].length > 0); W = X, X--); + W < L && (c.length = W); } - function S(c, M) { - for (let z = 0; z < M.length; z++) t.put(c, M[z]); + function S(c, L) { + for (let W = 0; W < L.length; W++) t.put(c, L[W]); } - function A(c, M) { - return M === 0 ? !0 : c[M - 1].length === 1; + function A(c, L) { + return L === 0 ? !0 : c[L - 1].length === 1; } - function U(c, M, z, X, ie, pe) { - if (M === 0) return !1; - let ae = c[M - 1]; + function U(c, L, W, X, ie, pe) { + if (L === 0) return !1; + let ae = c[L - 1]; return ae.length === 1 ? !1 - : z === ae[1] && + : W === ae[1] && X === ae[2] && ie === ae[3] && pe === (ae.length === 5 ? ae[4] : -1); } - function D(c, M, z) { - let {generated: X, source: ie, original: pe, name: ae, content: He} = z; + function M(c, L, W) { + let {generated: X, source: ie, original: pe, name: ae, content: He} = W; if (!ie) - return L(c, M, X.line - 1, X.column, null, null, null, null, null); + return R(c, L, X.line - 1, X.column, null, null, null, null, null); let qe = ie; - return L( + return R( c, - M, + L, X.line - 1, X.column, qe, @@ -16434,40 +16434,40 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(Ka, '__esModule', {value: !0}); var Gi = V1(), j1 = Qt(); - function uT({code: e, mappings: t}, s, i, r, a) { - let u = pT(r, a), + function hy({code: e, mappings: t}, s, i, r, a) { + let u = fy(r, a), d = new Gi.GenMapping({file: i.compiledFilename}), y = 0, - g = t[0]; - for (; g === void 0 && y < t.length - 1; ) y++, (g = t[y]); - let L = 0, + x = t[0]; + for (; x === void 0 && y < t.length - 1; ) y++, (x = t[y]); + let R = 0, p = 0; - g !== p && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0); + x !== p && Gi.maybeAddSegment.call(void 0, d, R, 0, s, R, 0); for (let w = 0; w < e.length; w++) { - if (w === g) { - let S = g - p, + if (w === x) { + let S = x - p, A = u[y]; for ( - Gi.maybeAddSegment.call(void 0, d, L, S, s, L, A); - (g === w || g === void 0) && y < t.length - 1; + Gi.maybeAddSegment.call(void 0, d, R, S, s, R, A); + (x === w || x === void 0) && y < t.length - 1; ) - y++, (g = t[y]); + y++, (x = t[y]); } e.charCodeAt(w) === j1.charCodes.lineFeed && - (L++, + (R++, (p = w + 1), - g !== p && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0)); + x !== p && Gi.maybeAddSegment.call(void 0, d, R, 0, s, R, 0)); } let { - sourceRoot: f, - sourcesContent: v, - ...x + sourceRoot: h, + sourcesContent: T, + ...g } = Gi.toEncodedMap.call(void 0, d); - return x; + return g; } - Ka.default = uT; - function pT(e, t) { + Ka.default = hy; + function fy(e, t) { let s = new Array(t.length), i = 0, r = t[i].start, @@ -16481,7 +16481,7 @@ If you need interactivity, consider converting part of this to a Client Componen var q1 = Z((Ha) => { 'use strict'; Object.defineProperty(Ha, '__esModule', {value: !0}); - var hT = { + var dy = { require: ` import {createRequire as CREATE_REQUIRE_NAME} from "module"; const require = CREATE_REQUIRE_NAME(import.meta.url); @@ -16630,7 +16630,7 @@ If you need interactivity, consider converting part of this to a Client Componen this.getHelperName('optionalChain'), this.helperNames.asyncOptionalChainDelete && this.getHelperName('asyncOptionalChain'); - for (let [s, i] of Object.entries(hT)) { + for (let [s, i] of Object.entries(dy)) { let r = this.helperNames[s], a = i; s === 'optionalChainDelete' @@ -16665,10 +16665,10 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(ro, '__esModule', {value: !0}); var Wa = xt(), io = be(); - function fT(e, t, s) { - U1(e, s) && dT(e, t, s); + function my(e, t, s) { + U1(e, s) && yy(e, t, s); } - ro.default = fT; + ro.default = my; function U1(e, t) { for (let s of e.tokens) if ( @@ -16680,7 +16680,7 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } ro.hasShadowedGlobals = U1; - function dT(e, t, s) { + function yy(e, t, s) { let i = [], r = t.length - 1; for (let a = e.tokens.length - 1; ; a--) { @@ -16716,30 +16716,30 @@ If you need interactivity, consider converting part of this to a Client Componen var W1 = Z((Ga) => { 'use strict'; Object.defineProperty(Ga, '__esModule', {value: !0}); - var mT = be(); - function TT(e, t) { + var Ty = be(); + function ky(e, t) { let s = []; for (let i of t) - i.type === mT.TokenType.name && s.push(e.slice(i.start, i.end)); + i.type === Ty.TokenType.name && s.push(e.slice(i.start, i.end)); return s; } - Ga.default = TT; + Ga.default = ky; }); var G1 = Z((Xa) => { 'use strict'; Object.defineProperty(Xa, '__esModule', {value: !0}); - function yT(e) { + function vy(e) { return e && e.__esModule ? e : {default: e}; } - var kT = W1(), - vT = yT(kT), + var xy = W1(), + gy = vy(xy), za = class e { __init() { this.usedNames = new Set(); } constructor(t, s) { e.prototype.__init.call(this), - (this.usedNames = new Set(vT.default.call(void 0, t, s))); + (this.usedNames = new Set(gy.default.call(void 0, t, s))); } claimFreeName(t) { let s = this.findFreeName(t); @@ -16756,7 +16756,7 @@ If you need interactivity, consider converting part of this to a Client Componen }); var oo = Z((Pn) => { 'use strict'; - var xT = + var _y = (Pn && Pn.__extends) || (function () { var e = function (t, s) { @@ -16787,7 +16787,7 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(Pn, '__esModule', {value: !0}); Pn.DetailContext = Pn.NoopContext = Pn.VError = void 0; var z1 = (function (e) { - xT(t, e); + _y(t, e); function t(s, i) { var r = e.call(this, i) || this; return (r.path = s), Object.setPrototypeOf(r, t.prototype), r; @@ -16795,7 +16795,7 @@ If you need interactivity, consider converting part of this to a Client Componen return t; })(Error); Pn.VError = z1; - var gT = (function () { + var by = (function () { function e() {} return ( (e.prototype.fail = function (t, s, i) { @@ -16811,7 +16811,7 @@ If you need interactivity, consider converting part of this to a Client Componen e ); })(); - Pn.NoopContext = gT; + Pn.NoopContext = by; var X1 = (function () { function e() { (this._propNames = ['']), (this._messages = [null]), (this._score = 0); @@ -16826,7 +16826,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); }), (e.prototype.unionResolver = function () { - return new _T(); + return new Cy(); }), (e.prototype.resolveUnion = function (t) { for ( @@ -16866,7 +16866,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(); Pn.DetailContext = X1; - var _T = (function () { + var Cy = (function () { function e() { this.contexts = []; } @@ -16971,18 +16971,18 @@ If you need interactivity, consider converting part of this to a Client Componen d = u.getChecker(s, i, r); return u instanceof Dt || u instanceof t ? d - : function (y, g) { - return d(y, g) ? !0 : g.fail(null, a._failMsg, 0); + : function (y, x) { + return d(y, x) ? !0 : x.fail(null, a._failMsg, 0); }; }), t ); })(Ht); ce.TName = Za; - function bT(e) { + function wy(e) { return new el(e); } - ce.lit = bT; + ce.lit = wy; var el = (function (e) { nn(t, e); function t(s) { @@ -17005,10 +17005,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TLiteral = el; - function CT(e) { + function Sy(e) { return new ep(ps(e)); } - ce.array = CT; + ce.array = Sy; var ep = (function (e) { nn(t, e); function t(s) { @@ -17031,7 +17031,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TArray = ep; - function wT() { + function Iy() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; return new tp( e.map(function (s) { @@ -17039,7 +17039,7 @@ If you need interactivity, consider converting part of this to a Client Componen }) ); } - ce.tuple = wT; + ce.tuple = Iy; var tp = (function (e) { nn(t, e); function t(s) { @@ -17054,8 +17054,8 @@ If you need interactivity, consider converting part of this to a Client Componen a = function (u, d) { if (!Array.isArray(u)) return d.fail(null, 'is not an array', 0); for (var y = 0; y < r.length; y++) { - var g = r[y](u[y], d); - if (!g) return d.fail(y, null, 1); + var x = r[y](u[y], d); + if (!x) return d.fail(y, null, 1); } return !0; }; @@ -17073,7 +17073,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TTuple = tp; - function ST() { + function Ey() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; return new np( e.map(function (s) { @@ -17081,7 +17081,7 @@ If you need interactivity, consider converting part of this to a Client Componen }) ); } - ce.union = ST; + ce.union = Ey; var np = (function (e) { nn(t, e); function t(s) { @@ -17110,9 +17110,9 @@ If you need interactivity, consider converting part of this to a Client Componen return u.getChecker(s, i); }); return function (u, d) { - for (var y = d.unionResolver(), g = 0; g < a.length; g++) { - var L = a[g](u, y.createContext()); - if (L) return !0; + for (var y = d.unionResolver(), x = 0; x < a.length; x++) { + var R = a[x](u, y.createContext()); + if (R) return !0; } return d.resolveUnion(y), d.fail(null, r._failMsg, 0); }; @@ -17121,7 +17121,7 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TUnion = np; - function IT() { + function Ay() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; return new sp( e.map(function (s) { @@ -17129,7 +17129,7 @@ If you need interactivity, consider converting part of this to a Client Componen }) ); } - ce.intersection = IT; + ce.intersection = Ay; var sp = (function (e) { nn(t, e); function t(s) { @@ -17143,8 +17143,8 @@ If you need interactivity, consider converting part of this to a Client Componen return u.getChecker(s, i, r); }); return function (u, d) { - var y = a.every(function (g) { - return g(u, d); + var y = a.every(function (x) { + return x(u, d); }); return y ? !0 : d.fail(null, null, 0); }; @@ -17153,10 +17153,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TIntersection = sp; - function ET(e) { + function Py(e) { return new tl(e); } - ce.enumtype = ET; + ce.enumtype = Py; var tl = (function (e) { nn(t, e); function t(s) { @@ -17184,10 +17184,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TEnumType = tl; - function AT(e, t) { + function Ny(e, t) { return new ip(e, t); } - ce.enumlit = AT; + ce.enumlit = Ny; var ip = (function (e) { nn(t, e); function t(s, i) { @@ -17224,18 +17224,18 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TEnumLiteral = ip; - function PT(e) { + function Ry(e) { return Object.keys(e).map(function (t) { - return NT(t, e[t]); + return Ly(t, e[t]); }); } - function NT(e, t) { + function Ly(e, t) { return t instanceof nl ? new Ja(e, t.ttype, !0) : new Ja(e, ps(t), !1); } - function RT(e, t) { - return new rp(e, PT(t)); + function Oy(e, t) { + return new rp(e, Ry(t)); } - ce.iface = RT; + ce.iface = Oy; var rp = (function (e) { nn(t, e); function t(s, i) { @@ -17254,44 +17254,44 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i, r) { var a = this, - u = this.bases.map(function (f) { - return Qa(s, f).getChecker(s, i); + u = this.bases.map(function (h) { + return Qa(s, h).getChecker(s, i); }), - d = this.props.map(function (f) { - return f.ttype.getChecker(s, i); + d = this.props.map(function (h) { + return h.ttype.getChecker(s, i); }), y = new Q1.NoopContext(), - g = this.props.map(function (f, v) { - return !f.isOpt && !d[v](void 0, y); + x = this.props.map(function (h, T) { + return !h.isOpt && !d[T](void 0, y); }), - L = function (f, v) { - if (typeof f != 'object' || f === null) - return v.fail(null, 'is not an object', 0); - for (var x = 0; x < u.length; x++) if (!u[x](f, v)) return !1; - for (var x = 0; x < d.length; x++) { - var w = a.props[x].name, - S = f[w]; + R = function (h, T) { + if (typeof h != 'object' || h === null) + return T.fail(null, 'is not an object', 0); + for (var g = 0; g < u.length; g++) if (!u[g](h, T)) return !1; + for (var g = 0; g < d.length; g++) { + var w = a.props[g].name, + S = h[w]; if (S === void 0) { - if (g[x]) return v.fail(w, 'is missing', 1); + if (x[g]) return T.fail(w, 'is missing', 1); } else { - var A = d[x](S, v); - if (!A) return v.fail(w, null, 1); + var A = d[g](S, T); + if (!A) return T.fail(w, null, 1); } } return !0; }; - if (!i) return L; + if (!i) return R; var p = this.propSet; return ( r && - (this.propSet.forEach(function (f) { - return r.add(f); + (this.propSet.forEach(function (h) { + return r.add(h); }), (p = r)), - function (f, v) { - if (!L(f, v)) return !1; - for (var x in f) - if (!p.has(x)) return v.fail(x, 'is extraneous', 2); + function (h, T) { + if (!R(h, T)) return !1; + for (var g in h) + if (!p.has(g)) return T.fail(g, 'is extraneous', 2); return !0; } ); @@ -17300,10 +17300,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TIface = rp; - function LT(e) { + function Dy(e) { return new nl(ps(e)); } - ce.opt = LT; + ce.opt = Dy; var nl = (function (e) { nn(t, e); function t(s) { @@ -17328,12 +17328,12 @@ If you need interactivity, consider converting part of this to a Client Componen return e; })(); ce.TProp = Ja; - function OT(e) { + function My(e) { for (var t = [], s = 1; s < arguments.length; s++) t[s - 1] = arguments[s]; return new op(new lp(t), ps(e)); } - ce.func = OT; + ce.func = My; var op = (function (e) { nn(t, e); function t(s, i) { @@ -17352,10 +17352,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); })(Ht); ce.TFunc = op; - function DT(e, t, s) { + function Fy(e, t, s) { return new ap(e, ps(t), !!s); } - ce.param = DT; + ce.param = Fy; var ap = (function () { function e(t, s, i) { (this.name = t), (this.ttype = s), (this.isOpt = i); @@ -17372,32 +17372,32 @@ If you need interactivity, consider converting part of this to a Client Componen return ( (t.prototype.getChecker = function (s, i) { var r = this, - a = this.params.map(function (g) { - return g.ttype.getChecker(s, i); + a = this.params.map(function (x) { + return x.ttype.getChecker(s, i); }), u = new Q1.NoopContext(), - d = this.params.map(function (g, L) { - return !g.isOpt && !a[L](void 0, u); + d = this.params.map(function (x, R) { + return !x.isOpt && !a[R](void 0, u); }), - y = function (g, L) { - if (!Array.isArray(g)) return L.fail(null, 'is not an array', 0); + y = function (x, R) { + if (!Array.isArray(x)) return R.fail(null, 'is not an array', 0); for (var p = 0; p < a.length; p++) { - var f = r.params[p]; - if (g[p] === void 0) { - if (d[p]) return L.fail(f.name, 'is missing', 1); + var h = r.params[p]; + if (x[p] === void 0) { + if (d[p]) return R.fail(h.name, 'is missing', 1); } else { - var v = a[p](g[p], L); - if (!v) return L.fail(f.name, null, 1); + var T = a[p](x[p], R); + if (!T) return R.fail(h.name, null, 1); } } return !0; }; return i - ? function (g, L) { - return y(g, L) - ? g.length <= a.length + ? function (x, R) { + return y(x, R) + ? x.length <= a.length ? !0 - : L.fail(a.length, 'is extraneous', 2) + : R.fail(a.length, 'is extraneous', 2) : !1; } : y; @@ -17457,17 +17457,17 @@ If you need interactivity, consider converting part of this to a Client Componen Date: new Dt(Y1('[object Date]'), 'is not a Date'), RegExp: new Dt(Y1('[object RegExp]'), 'is not a RegExp'), }; - var MT = Object.prototype.toString; + var By = Object.prototype.toString; function Y1(e) { return function (t) { - return typeof t == 'object' && t && MT.call(t) === e; + return typeof t == 'object' && t && By.call(t) === e; }; } typeof Buffer < 'u' && (ce.basicTypes.Buffer = new Dt(function (e) { return Buffer.isBuffer(e); }, 'is not a Buffer')); - var FT = function (e) { + var Vy = function (e) { ce.basicTypes[e.name] = new Dt(function (t) { return t instanceof e; }, 'is not a ' + e.name); @@ -17489,12 +17489,12 @@ If you need interactivity, consider converting part of this to a Client Componen ao < Ya.length; ao++ ) - (J1 = Ya[ao]), FT(J1); + (J1 = Ya[ao]), Vy(J1); var J1, ao, Ya; }); var il = Z((we) => { 'use strict'; - var BT = + var jy = (we && we.__spreadArrays) || function () { for (var e = 0, t = 0, s = arguments.length; t < s; t++) @@ -17677,17 +17677,17 @@ If you need interactivity, consider converting part of this to a Client Componen return ze.BasicType; }, }); - var VT = oo(); + var $y = oo(); Object.defineProperty(we, 'VError', { enumerable: !0, get: function () { - return VT.VError; + return $y.VError; }, }); - function jT() { + function qy() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; for ( - var s = Object.assign.apply(Object, BT([{}, zi.basicTypes], e)), + var s = Object.assign.apply(Object, jy([{}, zi.basicTypes], e)), i = {}, r = 0, a = e; @@ -17695,12 +17695,12 @@ If you need interactivity, consider converting part of this to a Client Componen r++ ) for (var u = a[r], d = 0, y = Object.keys(u); d < y.length; d++) { - var g = y[d]; - i[g] = new cp(s, u[g]); + var x = y[d]; + i[x] = new cp(s, u[x]); } return i; } - we.createCheckers = jT; + we.createCheckers = qy; var cp = (function () { function e(t, s, i) { if ( @@ -17794,7 +17794,7 @@ If you need interactivity, consider converting part of this to a Client Componen var up = Z((Gn) => { 'use strict'; Object.defineProperty(Gn, '__esModule', {value: !0}); - function $T(e) { + function Ky(e) { if (e && e.__esModule) return e; var t = {}; if (e != null) @@ -17802,9 +17802,9 @@ If you need interactivity, consider converting part of this to a Client Componen Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]); return (t.default = e), t; } - var qT = il(), - Qe = $T(qT), - KT = Qe.union( + var Uy = il(), + Qe = Ky(Uy), + Hy = Qe.union( Qe.lit('jsx'), Qe.lit('typescript'), Qe.lit('flow'), @@ -17812,10 +17812,10 @@ If you need interactivity, consider converting part of this to a Client Componen Qe.lit('react-hot-loader'), Qe.lit('jest') ); - Gn.Transform = KT; - var UT = Qe.iface([], {compiledFilename: 'string'}); - Gn.SourceMapOptions = UT; - var HT = Qe.iface([], { + Gn.Transform = Hy; + var Wy = Qe.iface([], {compiledFilename: 'string'}); + Gn.SourceMapOptions = Wy; + var Gy = Qe.iface([], { transforms: Qe.array('Transform'), disableESTransforms: Qe.opt('boolean'), jsxRuntime: Qe.opt( @@ -17832,33 +17832,33 @@ If you need interactivity, consider converting part of this to a Client Componen sourceMapOptions: Qe.opt('SourceMapOptions'), filePath: Qe.opt('string'), }); - Gn.Options = HT; - var WT = { + Gn.Options = Gy; + var zy = { Transform: Gn.Transform, SourceMapOptions: Gn.SourceMapOptions, Options: Gn.Options, }; - Gn.default = WT; + Gn.default = zy; }); var pp = Z((rl) => { 'use strict'; Object.defineProperty(rl, '__esModule', {value: !0}); - function GT(e) { + function Xy(e) { return e && e.__esModule ? e : {default: e}; } - var zT = il(), - XT = up(), - YT = GT(XT), - {Options: JT} = zT.createCheckers.call(void 0, YT.default); - function QT(e) { - JT.strictCheck(e); + var Yy = il(), + Jy = up(), + Qy = Xy(Jy), + {Options: Zy} = Yy.createCheckers.call(void 0, Qy.default); + function eT(e) { + Zy.strictCheck(e); } - rl.validateOptions = QT; + rl.validateOptions = eT; }); var lo = Z((Nn) => { 'use strict'; Object.defineProperty(Nn, '__esModule', {value: !0}); - var ZT = Ji(), + var tT = Ji(), hp = hi(), Mt = xt(), Xi = It(), @@ -17866,10 +17866,10 @@ If you need interactivity, consider converting part of this to a Client Componen gt = Zt(), Yi = Ns(), ol = cs(); - function ey() { + function nT() { Mt.next.call(void 0), Yi.parseMaybeAssign.call(void 0, !1); } - Nn.parseSpread = ey; + Nn.parseSpread = nT; function fp(e) { Mt.next.call(void 0), ll(e); } @@ -17878,12 +17878,12 @@ If you need interactivity, consider converting part of this to a Client Componen Yi.parseIdentifier.call(void 0), mp(e); } Nn.parseBindingIdentifier = dp; - function ty() { + function sT() { Yi.parseIdentifier.call(void 0), (gt.state.tokens[gt.state.tokens.length - 1].identifierRole = Mt.IdentifierRole.ImportDeclaration); } - Nn.parseImportedIdentifier = ty; + Nn.parseImportedIdentifier = sT; function mp(e) { let t; gt.state.scopeDepth === 0 @@ -17907,7 +17907,7 @@ If you need interactivity, consider converting part of this to a Client Componen return; } case fn.TokenType.bracketL: { - Mt.next.call(void 0), Tp(fn.TokenType.bracketR, e, !0); + Mt.next.call(void 0), yp(fn.TokenType.bracketR, e, !0); return; } case fn.TokenType.braceL: @@ -17918,7 +17918,7 @@ If you need interactivity, consider converting part of this to a Client Componen } } Nn.parseBindingAtom = ll; - function Tp(e, t, s = !1, i = !1, r = 0) { + function yp(e, t, s = !1, i = !1, r = 0) { let a = !0, u = !1, d = gt.state.tokens.length; @@ -17937,15 +17937,15 @@ If you need interactivity, consider converting part of this to a Client Componen if (Mt.eat.call(void 0, e)) break; if (Mt.match.call(void 0, fn.TokenType.ellipsis)) { fp(t), - yp(), + Tp(), Mt.eat.call(void 0, fn.TokenType.comma), ol.expect.call(void 0, e); break; - } else ny(i, t); + } else iT(i, t); } } - Nn.parseBindingList = Tp; - function ny(e, t) { + Nn.parseBindingList = yp; + function iT(e, t) { e && hp.tsParseModifiers.call(void 0, [ Xi.ContextualKeyword._public, @@ -17955,12 +17955,12 @@ If you need interactivity, consider converting part of this to a Client Componen Xi.ContextualKeyword._override, ]), al(t), - yp(), + Tp(), al(t, !0); } - function yp() { + function Tp() { gt.isFlowEnabled - ? ZT.flowParseAssignableListItemTypes.call(void 0) + ? tT.flowParseAssignableListItemTypes.call(void 0) : gt.isTypeScriptEnabled && hp.tsParseAssignableListItemTypes.call(void 0); } @@ -17975,38 +17975,38 @@ If you need interactivity, consider converting part of this to a Client Componen var hi = Z((Oe) => { 'use strict'; Object.defineProperty(Oe, '__esModule', {value: !0}); - var k = xt(), + var v = xt(), oe = It(), - T = be(), + k = be(), I = Zt(), _e = Ns(), di = lo(), Rn = nr(), H = cs(), - sy = vl(); + rT = vl(); function ul() { - return k.match.call(void 0, T.TokenType.name); + return v.match.call(void 0, k.TokenType.name); } - function iy() { + function oT() { return ( - k.match.call(void 0, T.TokenType.name) || - !!(I.state.type & T.TokenType.IS_KEYWORD) || - k.match.call(void 0, T.TokenType.string) || - k.match.call(void 0, T.TokenType.num) || - k.match.call(void 0, T.TokenType.bigint) || - k.match.call(void 0, T.TokenType.decimal) + v.match.call(void 0, k.TokenType.name) || + !!(I.state.type & k.TokenType.IS_KEYWORD) || + v.match.call(void 0, k.TokenType.string) || + v.match.call(void 0, k.TokenType.num) || + v.match.call(void 0, k.TokenType.bigint) || + v.match.call(void 0, k.TokenType.decimal) ); } function _p() { let e = I.state.snapshot(); return ( - k.next.call(void 0), - (k.match.call(void 0, T.TokenType.bracketL) || - k.match.call(void 0, T.TokenType.braceL) || - k.match.call(void 0, T.TokenType.star) || - k.match.call(void 0, T.TokenType.ellipsis) || - k.match.call(void 0, T.TokenType.hash) || - iy()) && + v.next.call(void 0), + (v.match.call(void 0, k.TokenType.bracketL) || + v.match.call(void 0, k.TokenType.braceL) || + v.match.call(void 0, k.TokenType.star) || + v.match.call(void 0, k.TokenType.ellipsis) || + v.match.call(void 0, k.TokenType.hash) || + oT()) && !H.hasPrecedingLineBreak.call(void 0) ? !0 : (I.state.restoreFromSnapshot(e), !1) @@ -18017,41 +18017,41 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsParseModifiers = bp; function dl(e) { - if (!k.match.call(void 0, T.TokenType.name)) return null; + if (!v.match.call(void 0, k.TokenType.name)) return null; let t = I.state.contextualKeyword; if (e.indexOf(t) !== -1 && _p()) { switch (t) { case oe.ContextualKeyword._readonly: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._readonly; + k.TokenType._readonly; break; case oe.ContextualKeyword._abstract: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._abstract; + k.TokenType._abstract; break; case oe.ContextualKeyword._static: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._static; + k.TokenType._static; break; case oe.ContextualKeyword._public: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._public; + k.TokenType._public; break; case oe.ContextualKeyword._private: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._private; + k.TokenType._private; break; case oe.ContextualKeyword._protected: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._protected; + k.TokenType._protected; break; case oe.ContextualKeyword._override: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._override; + k.TokenType._override; break; case oe.ContextualKeyword._declare: I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._declare; + k.TokenType._declare; break; default: break; @@ -18064,126 +18064,126 @@ If you need interactivity, consider converting part of this to a Client Componen function Zi() { for ( _e.parseIdentifier.call(void 0); - k.eat.call(void 0, T.TokenType.dot); + v.eat.call(void 0, k.TokenType.dot); ) _e.parseIdentifier.call(void 0); } - function ry() { + function aT() { Zi(), !H.hasPrecedingLineBreak.call(void 0) && - k.match.call(void 0, T.TokenType.lessThan) && - Ti(); + v.match.call(void 0, k.TokenType.lessThan) && + yi(); } - function oy() { - k.next.call(void 0), tr(); + function lT() { + v.next.call(void 0), tr(); } - function ay() { - k.next.call(void 0); + function cT() { + v.next.call(void 0); } - function ly() { - H.expect.call(void 0, T.TokenType._typeof), - k.match.call(void 0, T.TokenType._import) ? Cp() : Zi(), + function uT() { + H.expect.call(void 0, k.TokenType._typeof), + v.match.call(void 0, k.TokenType._import) ? Cp() : Zi(), !H.hasPrecedingLineBreak.call(void 0) && - k.match.call(void 0, T.TokenType.lessThan) && - Ti(); + v.match.call(void 0, k.TokenType.lessThan) && + yi(); } function Cp() { - H.expect.call(void 0, T.TokenType._import), - H.expect.call(void 0, T.TokenType.parenL), - H.expect.call(void 0, T.TokenType.string), - H.expect.call(void 0, T.TokenType.parenR), - k.eat.call(void 0, T.TokenType.dot) && Zi(), - k.match.call(void 0, T.TokenType.lessThan) && Ti(); - } - function cy() { - k.eat.call(void 0, T.TokenType._const); - let e = k.eat.call(void 0, T.TokenType._in), + H.expect.call(void 0, k.TokenType._import), + H.expect.call(void 0, k.TokenType.parenL), + H.expect.call(void 0, k.TokenType.string), + H.expect.call(void 0, k.TokenType.parenR), + v.eat.call(void 0, k.TokenType.dot) && Zi(), + v.match.call(void 0, k.TokenType.lessThan) && yi(); + } + function pT() { + v.eat.call(void 0, k.TokenType._const); + let e = v.eat.call(void 0, k.TokenType._in), t = H.eatContextual.call(void 0, oe.ContextualKeyword._out); - k.eat.call(void 0, T.TokenType._const), - (e || t) && !k.match.call(void 0, T.TokenType.name) - ? (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType.name) + v.eat.call(void 0, k.TokenType._const), + (e || t) && !v.match.call(void 0, k.TokenType.name) + ? (I.state.tokens[I.state.tokens.length - 1].type = k.TokenType.name) : _e.parseIdentifier.call(void 0), - k.eat.call(void 0, T.TokenType._extends) && rt(), - k.eat.call(void 0, T.TokenType.eq) && rt(); + v.eat.call(void 0, k.TokenType._extends) && rt(), + v.eat.call(void 0, k.TokenType.eq) && rt(); } function mi() { - k.match.call(void 0, T.TokenType.lessThan) && uo(); + v.match.call(void 0, k.TokenType.lessThan) && uo(); } Oe.tsTryParseTypeParameters = mi; function uo() { - let e = k.pushTypeContext.call(void 0, 0); + let e = v.pushTypeContext.call(void 0, 0); for ( - k.match.call(void 0, T.TokenType.lessThan) || - k.match.call(void 0, T.TokenType.typeParameterStart) - ? k.next.call(void 0) + v.match.call(void 0, k.TokenType.lessThan) || + v.match.call(void 0, k.TokenType.typeParameterStart) + ? v.next.call(void 0) : H.unexpected.call(void 0); - !k.eat.call(void 0, T.TokenType.greaterThan) && !I.state.error; + !v.eat.call(void 0, k.TokenType.greaterThan) && !I.state.error; ) - cy(), k.eat.call(void 0, T.TokenType.comma); - k.popTypeContext.call(void 0, e); + pT(), v.eat.call(void 0, k.TokenType.comma); + v.popTypeContext.call(void 0, e); } function ml(e) { - let t = e === T.TokenType.arrow; + let t = e === k.TokenType.arrow; mi(), - H.expect.call(void 0, T.TokenType.parenL), + H.expect.call(void 0, k.TokenType.parenL), I.state.scopeDepth++, - uy(!1), + hT(!1), I.state.scopeDepth--, - (t || k.match.call(void 0, e)) && Qi(e); + (t || v.match.call(void 0, e)) && Qi(e); } - function uy(e) { - di.parseBindingList.call(void 0, T.TokenType.parenR, e); + function hT(e) { + di.parseBindingList.call(void 0, k.TokenType.parenR, e); } function co() { - k.eat.call(void 0, T.TokenType.comma) || H.semicolon.call(void 0); + v.eat.call(void 0, k.TokenType.comma) || H.semicolon.call(void 0); } function kp() { - ml(T.TokenType.colon), co(); + ml(k.TokenType.colon), co(); } - function py() { + function fT() { let e = I.state.snapshot(); - k.next.call(void 0); + v.next.call(void 0); let t = - k.eat.call(void 0, T.TokenType.name) && - k.match.call(void 0, T.TokenType.colon); + v.eat.call(void 0, k.TokenType.name) && + v.match.call(void 0, k.TokenType.colon); return I.state.restoreFromSnapshot(e), t; } function wp() { - if (!(k.match.call(void 0, T.TokenType.bracketL) && py())) return !1; - let e = k.pushTypeContext.call(void 0, 0); + if (!(v.match.call(void 0, k.TokenType.bracketL) && fT())) return !1; + let e = v.pushTypeContext.call(void 0, 0); return ( - H.expect.call(void 0, T.TokenType.bracketL), + H.expect.call(void 0, k.TokenType.bracketL), _e.parseIdentifier.call(void 0), tr(), - H.expect.call(void 0, T.TokenType.bracketR), + H.expect.call(void 0, k.TokenType.bracketR), er(), co(), - k.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), !0 ); } function vp(e) { - k.eat.call(void 0, T.TokenType.question), + v.eat.call(void 0, k.TokenType.question), !e && - (k.match.call(void 0, T.TokenType.parenL) || - k.match.call(void 0, T.TokenType.lessThan)) - ? (ml(T.TokenType.colon), co()) + (v.match.call(void 0, k.TokenType.parenL) || + v.match.call(void 0, k.TokenType.lessThan)) + ? (ml(k.TokenType.colon), co()) : (er(), co()); } - function hy() { + function dT() { if ( - k.match.call(void 0, T.TokenType.parenL) || - k.match.call(void 0, T.TokenType.lessThan) + v.match.call(void 0, k.TokenType.parenL) || + v.match.call(void 0, k.TokenType.lessThan) ) { kp(); return; } - if (k.match.call(void 0, T.TokenType._new)) { - k.next.call(void 0), - k.match.call(void 0, T.TokenType.parenL) || - k.match.call(void 0, T.TokenType.lessThan) + if (v.match.call(void 0, k.TokenType._new)) { + v.next.call(void 0), + v.match.call(void 0, k.TokenType.parenL) || + v.match.call(void 0, k.TokenType.lessThan) ? kp() : vp(!1); return; @@ -18196,90 +18196,90 @@ If you need interactivity, consider converting part of this to a Client Componen _e.parsePropertyName.call(void 0, -1), vp(e)); } - function fy() { + function mT() { Sp(); } function Sp() { for ( - H.expect.call(void 0, T.TokenType.braceL); - !k.eat.call(void 0, T.TokenType.braceR) && !I.state.error; + H.expect.call(void 0, k.TokenType.braceL); + !v.eat.call(void 0, k.TokenType.braceR) && !I.state.error; ) - hy(); + dT(); } - function dy() { + function yT() { let e = I.state.snapshot(), - t = my(); + t = TT(); return I.state.restoreFromSnapshot(e), t; } - function my() { + function TT() { return ( - k.next.call(void 0), - k.eat.call(void 0, T.TokenType.plus) || - k.eat.call(void 0, T.TokenType.minus) + v.next.call(void 0), + v.eat.call(void 0, k.TokenType.plus) || + v.eat.call(void 0, k.TokenType.minus) ? H.isContextual.call(void 0, oe.ContextualKeyword._readonly) : (H.isContextual.call(void 0, oe.ContextualKeyword._readonly) && - k.next.call(void 0), - !k.match.call(void 0, T.TokenType.bracketL) || - (k.next.call(void 0), !ul()) + v.next.call(void 0), + !v.match.call(void 0, k.TokenType.bracketL) || + (v.next.call(void 0), !ul()) ? !1 - : (k.next.call(void 0), k.match.call(void 0, T.TokenType._in))) + : (v.next.call(void 0), v.match.call(void 0, k.TokenType._in))) ); } - function Ty() { + function kT() { _e.parseIdentifier.call(void 0), - H.expect.call(void 0, T.TokenType._in), + H.expect.call(void 0, k.TokenType._in), rt(); } - function yy() { - H.expect.call(void 0, T.TokenType.braceL), - k.match.call(void 0, T.TokenType.plus) || - k.match.call(void 0, T.TokenType.minus) - ? (k.next.call(void 0), + function vT() { + H.expect.call(void 0, k.TokenType.braceL), + v.match.call(void 0, k.TokenType.plus) || + v.match.call(void 0, k.TokenType.minus) + ? (v.next.call(void 0), H.expectContextual.call(void 0, oe.ContextualKeyword._readonly)) : H.eatContextual.call(void 0, oe.ContextualKeyword._readonly), - H.expect.call(void 0, T.TokenType.bracketL), - Ty(), + H.expect.call(void 0, k.TokenType.bracketL), + kT(), H.eatContextual.call(void 0, oe.ContextualKeyword._as) && rt(), - H.expect.call(void 0, T.TokenType.bracketR), - k.match.call(void 0, T.TokenType.plus) || - k.match.call(void 0, T.TokenType.minus) - ? (k.next.call(void 0), H.expect.call(void 0, T.TokenType.question)) - : k.eat.call(void 0, T.TokenType.question), - Ny(), + H.expect.call(void 0, k.TokenType.bracketR), + v.match.call(void 0, k.TokenType.plus) || + v.match.call(void 0, k.TokenType.minus) + ? (v.next.call(void 0), H.expect.call(void 0, k.TokenType.question)) + : v.eat.call(void 0, k.TokenType.question), + LT(), H.semicolon.call(void 0), - H.expect.call(void 0, T.TokenType.braceR); + H.expect.call(void 0, k.TokenType.braceR); } - function ky() { + function xT() { for ( - H.expect.call(void 0, T.TokenType.bracketL); - !k.eat.call(void 0, T.TokenType.bracketR) && !I.state.error; + H.expect.call(void 0, k.TokenType.bracketL); + !v.eat.call(void 0, k.TokenType.bracketR) && !I.state.error; ) - vy(), k.eat.call(void 0, T.TokenType.comma); + gT(), v.eat.call(void 0, k.TokenType.comma); } - function vy() { - k.eat.call(void 0, T.TokenType.ellipsis) + function gT() { + v.eat.call(void 0, k.TokenType.ellipsis) ? rt() - : (rt(), k.eat.call(void 0, T.TokenType.question)), - k.eat.call(void 0, T.TokenType.colon) && rt(); + : (rt(), v.eat.call(void 0, k.TokenType.question)), + v.eat.call(void 0, k.TokenType.colon) && rt(); } - function xy() { - H.expect.call(void 0, T.TokenType.parenL), + function _T() { + H.expect.call(void 0, k.TokenType.parenL), rt(), - H.expect.call(void 0, T.TokenType.parenR); + H.expect.call(void 0, k.TokenType.parenR); } - function gy() { + function bT() { for ( - k.nextTemplateToken.call(void 0), k.nextTemplateToken.call(void 0); - !k.match.call(void 0, T.TokenType.backQuote) && !I.state.error; + v.nextTemplateToken.call(void 0), v.nextTemplateToken.call(void 0); + !v.match.call(void 0, k.TokenType.backQuote) && !I.state.error; ) - H.expect.call(void 0, T.TokenType.dollarBraceL), + H.expect.call(void 0, k.TokenType.dollarBraceL), rt(), - k.nextTemplateToken.call(void 0), - k.nextTemplateToken.call(void 0); - k.next.call(void 0); + v.nextTemplateToken.call(void 0), + v.nextTemplateToken.call(void 0); + v.next.call(void 0); } var hs; (function (e) { @@ -18293,93 +18293,93 @@ If you need interactivity, consider converting part of this to a Client Componen e === hs.TSAbstractConstructorType && H.expectContextual.call(void 0, oe.ContextualKeyword._abstract), (e === hs.TSConstructorType || e === hs.TSAbstractConstructorType) && - H.expect.call(void 0, T.TokenType._new); + H.expect.call(void 0, k.TokenType._new); let t = I.state.inDisallowConditionalTypesContext; (I.state.inDisallowConditionalTypesContext = !1), - ml(T.TokenType.arrow), + ml(k.TokenType.arrow), (I.state.inDisallowConditionalTypesContext = t); } - function _y() { + function CT() { switch (I.state.type) { - case T.TokenType.name: - ry(); + case k.TokenType.name: + aT(); return; - case T.TokenType._void: - case T.TokenType._null: - k.next.call(void 0); + case k.TokenType._void: + case k.TokenType._null: + v.next.call(void 0); return; - case T.TokenType.string: - case T.TokenType.num: - case T.TokenType.bigint: - case T.TokenType.decimal: - case T.TokenType._true: - case T.TokenType._false: + case k.TokenType.string: + case k.TokenType.num: + case k.TokenType.bigint: + case k.TokenType.decimal: + case k.TokenType._true: + case k.TokenType._false: _e.parseLiteral.call(void 0); return; - case T.TokenType.minus: - k.next.call(void 0), _e.parseLiteral.call(void 0); + case k.TokenType.minus: + v.next.call(void 0), _e.parseLiteral.call(void 0); return; - case T.TokenType._this: { - ay(), + case k.TokenType._this: { + cT(), H.isContextual.call(void 0, oe.ContextualKeyword._is) && !H.hasPrecedingLineBreak.call(void 0) && - oy(); + lT(); return; } - case T.TokenType._typeof: - ly(); + case k.TokenType._typeof: + uT(); return; - case T.TokenType._import: + case k.TokenType._import: Cp(); return; - case T.TokenType.braceL: - dy() ? yy() : fy(); + case k.TokenType.braceL: + yT() ? vT() : mT(); return; - case T.TokenType.bracketL: - ky(); + case k.TokenType.bracketL: + xT(); return; - case T.TokenType.parenL: - xy(); + case k.TokenType.parenL: + _T(); return; - case T.TokenType.backQuote: - gy(); + case k.TokenType.backQuote: + bT(); return; default: - if (I.state.type & T.TokenType.IS_KEYWORD) { - k.next.call(void 0), + if (I.state.type & k.TokenType.IS_KEYWORD) { + v.next.call(void 0), (I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType.name); + k.TokenType.name); return; } break; } H.unexpected.call(void 0); } - function by() { + function wT() { for ( - _y(); + CT(); !H.hasPrecedingLineBreak.call(void 0) && - k.eat.call(void 0, T.TokenType.bracketL); + v.eat.call(void 0, k.TokenType.bracketL); ) - k.eat.call(void 0, T.TokenType.bracketR) || - (rt(), H.expect.call(void 0, T.TokenType.bracketR)); + v.eat.call(void 0, k.TokenType.bracketR) || + (rt(), H.expect.call(void 0, k.TokenType.bracketR)); } - function Cy() { + function ST() { if ( (H.expectContextual.call(void 0, oe.ContextualKeyword._infer), _e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType._extends)) + v.match.call(void 0, k.TokenType._extends)) ) { let e = I.state.snapshot(); - H.expect.call(void 0, T.TokenType._extends); + H.expect.call(void 0, k.TokenType._extends); let t = I.state.inDisallowConditionalTypesContext; (I.state.inDisallowConditionalTypesContext = !0), rt(), (I.state.inDisallowConditionalTypesContext = t), (I.state.error || (!I.state.inDisallowConditionalTypesContext && - k.match.call(void 0, T.TokenType.question))) && + v.match.call(void 0, k.TokenType.question))) && I.state.restoreFromSnapshot(e); } } @@ -18389,119 +18389,119 @@ If you need interactivity, consider converting part of this to a Client Componen H.isContextual.call(void 0, oe.ContextualKeyword._unique) || H.isContextual.call(void 0, oe.ContextualKeyword._readonly) ) - k.next.call(void 0), pl(); - else if (H.isContextual.call(void 0, oe.ContextualKeyword._infer)) Cy(); + v.next.call(void 0), pl(); + else if (H.isContextual.call(void 0, oe.ContextualKeyword._infer)) ST(); else { let e = I.state.inDisallowConditionalTypesContext; (I.state.inDisallowConditionalTypesContext = !1), - by(), + wT(), (I.state.inDisallowConditionalTypesContext = e); } } function xp() { if ( - (k.eat.call(void 0, T.TokenType.bitwiseAND), + (v.eat.call(void 0, k.TokenType.bitwiseAND), pl(), - k.match.call(void 0, T.TokenType.bitwiseAND)) + v.match.call(void 0, k.TokenType.bitwiseAND)) ) - for (; k.eat.call(void 0, T.TokenType.bitwiseAND); ) pl(); + for (; v.eat.call(void 0, k.TokenType.bitwiseAND); ) pl(); } - function wy() { + function IT() { if ( - (k.eat.call(void 0, T.TokenType.bitwiseOR), + (v.eat.call(void 0, k.TokenType.bitwiseOR), xp(), - k.match.call(void 0, T.TokenType.bitwiseOR)) + v.match.call(void 0, k.TokenType.bitwiseOR)) ) - for (; k.eat.call(void 0, T.TokenType.bitwiseOR); ) xp(); + for (; v.eat.call(void 0, k.TokenType.bitwiseOR); ) xp(); } - function Sy() { - return k.match.call(void 0, T.TokenType.lessThan) + function ET() { + return v.match.call(void 0, k.TokenType.lessThan) ? !0 - : k.match.call(void 0, T.TokenType.parenL) && Ey(); + : v.match.call(void 0, k.TokenType.parenL) && PT(); } - function Iy() { + function AT() { if ( - k.match.call(void 0, T.TokenType.name) || - k.match.call(void 0, T.TokenType._this) + v.match.call(void 0, k.TokenType.name) || + v.match.call(void 0, k.TokenType._this) ) - return k.next.call(void 0), !0; + return v.next.call(void 0), !0; if ( - k.match.call(void 0, T.TokenType.braceL) || - k.match.call(void 0, T.TokenType.bracketL) + v.match.call(void 0, k.TokenType.braceL) || + v.match.call(void 0, k.TokenType.bracketL) ) { let e = 1; - for (k.next.call(void 0); e > 0 && !I.state.error; ) - k.match.call(void 0, T.TokenType.braceL) || - k.match.call(void 0, T.TokenType.bracketL) + for (v.next.call(void 0); e > 0 && !I.state.error; ) + v.match.call(void 0, k.TokenType.braceL) || + v.match.call(void 0, k.TokenType.bracketL) ? e++ - : (k.match.call(void 0, T.TokenType.braceR) || - k.match.call(void 0, T.TokenType.bracketR)) && + : (v.match.call(void 0, k.TokenType.braceR) || + v.match.call(void 0, k.TokenType.bracketR)) && e--, - k.next.call(void 0); + v.next.call(void 0); return !0; } return !1; } - function Ey() { + function PT() { let e = I.state.snapshot(), - t = Ay(); + t = NT(); return I.state.restoreFromSnapshot(e), t; } - function Ay() { + function NT() { return ( - k.next.call(void 0), + v.next.call(void 0), !!( - k.match.call(void 0, T.TokenType.parenR) || - k.match.call(void 0, T.TokenType.ellipsis) || - (Iy() && - (k.match.call(void 0, T.TokenType.colon) || - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.question) || - k.match.call(void 0, T.TokenType.eq) || - (k.match.call(void 0, T.TokenType.parenR) && - (k.next.call(void 0), - k.match.call(void 0, T.TokenType.arrow))))) + v.match.call(void 0, k.TokenType.parenR) || + v.match.call(void 0, k.TokenType.ellipsis) || + (AT() && + (v.match.call(void 0, k.TokenType.colon) || + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.question) || + v.match.call(void 0, k.TokenType.eq) || + (v.match.call(void 0, k.TokenType.parenR) && + (v.next.call(void 0), + v.match.call(void 0, k.TokenType.arrow))))) ) ); } function Qi(e) { - let t = k.pushTypeContext.call(void 0, 0); - H.expect.call(void 0, e), Ry() || rt(), k.popTypeContext.call(void 0, t); + let t = v.pushTypeContext.call(void 0, 0); + H.expect.call(void 0, e), OT() || rt(), v.popTypeContext.call(void 0, t); } - function Py() { - k.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon); + function RT() { + v.match.call(void 0, k.TokenType.colon) && Qi(k.TokenType.colon); } function er() { - k.match.call(void 0, T.TokenType.colon) && tr(); + v.match.call(void 0, k.TokenType.colon) && tr(); } Oe.tsTryParseTypeAnnotation = er; - function Ny() { - k.eat.call(void 0, T.TokenType.colon) && rt(); + function LT() { + v.eat.call(void 0, k.TokenType.colon) && rt(); } - function Ry() { + function OT() { let e = I.state.snapshot(); return H.isContextual.call(void 0, oe.ContextualKeyword._asserts) - ? (k.next.call(void 0), + ? (v.next.call(void 0), H.eatContextual.call(void 0, oe.ContextualKeyword._is) ? (rt(), !0) - : ul() || k.match.call(void 0, T.TokenType._this) - ? (k.next.call(void 0), + : ul() || v.match.call(void 0, k.TokenType._this) + ? (v.next.call(void 0), H.eatContextual.call(void 0, oe.ContextualKeyword._is) && rt(), !0) : (I.state.restoreFromSnapshot(e), !1)) - : ul() || k.match.call(void 0, T.TokenType._this) - ? (k.next.call(void 0), + : ul() || v.match.call(void 0, k.TokenType._this) + ? (v.next.call(void 0), H.isContextual.call(void 0, oe.ContextualKeyword._is) && !H.hasPrecedingLineBreak.call(void 0) - ? (k.next.call(void 0), rt(), !0) + ? (v.next.call(void 0), rt(), !0) : (I.state.restoreFromSnapshot(e), !1)) : !1; } function tr() { - let e = k.pushTypeContext.call(void 0, 0); - H.expect.call(void 0, T.TokenType.colon), + let e = v.pushTypeContext.call(void 0, 0); + H.expect.call(void 0, k.TokenType.colon), rt(), - k.popTypeContext.call(void 0, e); + v.popTypeContext.call(void 0, e); } Oe.tsParseTypeAnnotation = tr; function rt() { @@ -18509,203 +18509,203 @@ If you need interactivity, consider converting part of this to a Client Componen (hl(), I.state.inDisallowConditionalTypesContext || H.hasPrecedingLineBreak.call(void 0) || - !k.eat.call(void 0, T.TokenType._extends)) + !v.eat.call(void 0, k.TokenType._extends)) ) return; let e = I.state.inDisallowConditionalTypesContext; (I.state.inDisallowConditionalTypesContext = !0), hl(), (I.state.inDisallowConditionalTypesContext = e), - H.expect.call(void 0, T.TokenType.question), + H.expect.call(void 0, k.TokenType.question), rt(), - H.expect.call(void 0, T.TokenType.colon), + H.expect.call(void 0, k.TokenType.colon), rt(); } Oe.tsParseType = rt; - function Ly() { + function DT() { return ( H.isContextual.call(void 0, oe.ContextualKeyword._abstract) && - k.lookaheadType.call(void 0) === T.TokenType._new + v.lookaheadType.call(void 0) === k.TokenType._new ); } function hl() { - if (Sy()) { + if (ET()) { cl(hs.TSFunctionType); return; } - if (k.match.call(void 0, T.TokenType._new)) { + if (v.match.call(void 0, k.TokenType._new)) { cl(hs.TSConstructorType); return; - } else if (Ly()) { + } else if (DT()) { cl(hs.TSAbstractConstructorType); return; } - wy(); + IT(); } Oe.tsParseNonConditionalType = hl; - function Oy() { - let e = k.pushTypeContext.call(void 0, 1); + function MT() { + let e = v.pushTypeContext.call(void 0, 1); rt(), - H.expect.call(void 0, T.TokenType.greaterThan), - k.popTypeContext.call(void 0, e), + H.expect.call(void 0, k.TokenType.greaterThan), + v.popTypeContext.call(void 0, e), _e.parseMaybeUnary.call(void 0); } - Oe.tsParseTypeAssertion = Oy; - function Dy() { - if (k.eat.call(void 0, T.TokenType.jsxTagStart)) { + Oe.tsParseTypeAssertion = MT; + function FT() { + if (v.eat.call(void 0, k.TokenType.jsxTagStart)) { I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType.typeParameterStart; - let e = k.pushTypeContext.call(void 0, 1); + k.TokenType.typeParameterStart; + let e = v.pushTypeContext.call(void 0, 1); for ( ; - !k.match.call(void 0, T.TokenType.greaterThan) && !I.state.error; + !v.match.call(void 0, k.TokenType.greaterThan) && !I.state.error; ) - rt(), k.eat.call(void 0, T.TokenType.comma); - sy.nextJSXTagToken.call(void 0), k.popTypeContext.call(void 0, e); + rt(), v.eat.call(void 0, k.TokenType.comma); + rT.nextJSXTagToken.call(void 0), v.popTypeContext.call(void 0, e); } } - Oe.tsTryParseJSXTypeArgument = Dy; + Oe.tsTryParseJSXTypeArgument = FT; function Ip() { - for (; !k.match.call(void 0, T.TokenType.braceL) && !I.state.error; ) - My(), k.eat.call(void 0, T.TokenType.comma); + for (; !v.match.call(void 0, k.TokenType.braceL) && !I.state.error; ) + BT(), v.eat.call(void 0, k.TokenType.comma); } - function My() { - Zi(), k.match.call(void 0, T.TokenType.lessThan) && Ti(); + function BT() { + Zi(), v.match.call(void 0, k.TokenType.lessThan) && yi(); } - function Fy() { + function VT() { di.parseBindingIdentifier.call(void 0, !1), mi(), - k.eat.call(void 0, T.TokenType._extends) && Ip(), + v.eat.call(void 0, k.TokenType._extends) && Ip(), Sp(); } - function By() { + function jT() { di.parseBindingIdentifier.call(void 0, !1), mi(), - H.expect.call(void 0, T.TokenType.eq), + H.expect.call(void 0, k.TokenType.eq), rt(), H.semicolon.call(void 0); } - function Vy() { + function $T() { if ( - (k.match.call(void 0, T.TokenType.string) + (v.match.call(void 0, k.TokenType.string) ? _e.parseLiteral.call(void 0) : _e.parseIdentifier.call(void 0), - k.eat.call(void 0, T.TokenType.eq)) + v.eat.call(void 0, k.TokenType.eq)) ) { let e = I.state.tokens.length - 1; _e.parseMaybeAssign.call(void 0), (I.state.tokens[e].rhsEndIndex = I.state.tokens.length); } } - function Tl() { + function yl() { for ( di.parseBindingIdentifier.call(void 0, !1), - H.expect.call(void 0, T.TokenType.braceL); - !k.eat.call(void 0, T.TokenType.braceR) && !I.state.error; + H.expect.call(void 0, k.TokenType.braceL); + !v.eat.call(void 0, k.TokenType.braceR) && !I.state.error; ) - Vy(), k.eat.call(void 0, T.TokenType.comma); + $T(), v.eat.call(void 0, k.TokenType.comma); } - function yl() { - H.expect.call(void 0, T.TokenType.braceL), - Rn.parseBlockBody.call(void 0, T.TokenType.braceR); + function Tl() { + H.expect.call(void 0, k.TokenType.braceL), + Rn.parseBlockBody.call(void 0, k.TokenType.braceR); } function fl() { di.parseBindingIdentifier.call(void 0, !1), - k.eat.call(void 0, T.TokenType.dot) ? fl() : yl(); + v.eat.call(void 0, k.TokenType.dot) ? fl() : Tl(); } function Ep() { H.isContextual.call(void 0, oe.ContextualKeyword._global) ? _e.parseIdentifier.call(void 0) - : k.match.call(void 0, T.TokenType.string) + : v.match.call(void 0, k.TokenType.string) ? _e.parseExprAtom.call(void 0) : H.unexpected.call(void 0), - k.match.call(void 0, T.TokenType.braceL) - ? yl() + v.match.call(void 0, k.TokenType.braceL) + ? Tl() : H.semicolon.call(void 0); } function Ap() { di.parseImportedIdentifier.call(void 0), - H.expect.call(void 0, T.TokenType.eq), - $y(), + H.expect.call(void 0, k.TokenType.eq), + KT(), H.semicolon.call(void 0); } Oe.tsParseImportEqualsDeclaration = Ap; - function jy() { + function qT() { return ( H.isContextual.call(void 0, oe.ContextualKeyword._require) && - k.lookaheadType.call(void 0) === T.TokenType.parenL + v.lookaheadType.call(void 0) === k.TokenType.parenL ); } - function $y() { - jy() ? qy() : Zi(); + function KT() { + qT() ? UT() : Zi(); } - function qy() { + function UT() { H.expectContextual.call(void 0, oe.ContextualKeyword._require), - H.expect.call(void 0, T.TokenType.parenL), - k.match.call(void 0, T.TokenType.string) || H.unexpected.call(void 0), + H.expect.call(void 0, k.TokenType.parenL), + v.match.call(void 0, k.TokenType.string) || H.unexpected.call(void 0), _e.parseLiteral.call(void 0), - H.expect.call(void 0, T.TokenType.parenR); + H.expect.call(void 0, k.TokenType.parenR); } - function Ky() { + function HT() { if (H.isLineTerminator.call(void 0)) return !1; switch (I.state.type) { - case T.TokenType._function: { - let e = k.pushTypeContext.call(void 0, 1); - k.next.call(void 0); + case k.TokenType._function: { + let e = v.pushTypeContext.call(void 0, 1); + v.next.call(void 0); let t = I.state.start; return ( Rn.parseFunction.call(void 0, t, !0), - k.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), !0 ); } - case T.TokenType._class: { - let e = k.pushTypeContext.call(void 0, 1); + case k.TokenType._class: { + let e = v.pushTypeContext.call(void 0, 1); return ( Rn.parseClass.call(void 0, !0, !1), - k.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), !0 ); } - case T.TokenType._const: + case k.TokenType._const: if ( - k.match.call(void 0, T.TokenType._const) && + v.match.call(void 0, k.TokenType._const) && H.isLookaheadContextual.call(void 0, oe.ContextualKeyword._enum) ) { - let e = k.pushTypeContext.call(void 0, 1); + let e = v.pushTypeContext.call(void 0, 1); return ( - H.expect.call(void 0, T.TokenType._const), + H.expect.call(void 0, k.TokenType._const), H.expectContextual.call(void 0, oe.ContextualKeyword._enum), (I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._enum), - Tl(), - k.popTypeContext.call(void 0, e), + k.TokenType._enum), + yl(), + v.popTypeContext.call(void 0, e), !0 ); } - case T.TokenType._var: - case T.TokenType._let: { - let e = k.pushTypeContext.call(void 0, 1); + case k.TokenType._var: + case k.TokenType._let: { + let e = v.pushTypeContext.call(void 0, 1); return ( Rn.parseVarStatement.call( void 0, - I.state.type !== T.TokenType._var + I.state.type !== k.TokenType._var ), - k.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), !0 ); } - case T.TokenType.name: { - let e = k.pushTypeContext.call(void 0, 1), + case k.TokenType.name: { + let e = v.pushTypeContext.call(void 0, 1), t = I.state.contextualKeyword, s = !1; return ( t === oe.ContextualKeyword._global ? (Ep(), (s = !0)) : (s = po(t, !0)), - k.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), s ); } @@ -18716,15 +18716,15 @@ If you need interactivity, consider converting part of this to a Client Componen function gp() { return po(I.state.contextualKeyword, !0); } - function Uy(e) { + function WT(e) { switch (e) { case oe.ContextualKeyword._declare: { let t = I.state.tokens.length - 1; - if (Ky()) return (I.state.tokens[t].type = T.TokenType._declare), !0; + if (HT()) return (I.state.tokens[t].type = k.TokenType._declare), !0; break; } case oe.ContextualKeyword._global: - if (k.match.call(void 0, T.TokenType.braceL)) return yl(), !0; + if (v.match.call(void 0, k.TokenType.braceL)) return Tl(), !0; break; default: return po(e, !1); @@ -18734,50 +18734,50 @@ If you need interactivity, consider converting part of this to a Client Componen function po(e, t) { switch (e) { case oe.ContextualKeyword._abstract: - if (fi(t) && k.match.call(void 0, T.TokenType._class)) + if (fi(t) && v.match.call(void 0, k.TokenType._class)) return ( (I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._abstract), + k.TokenType._abstract), Rn.parseClass.call(void 0, !0, !1), !0 ); break; case oe.ContextualKeyword._enum: - if (fi(t) && k.match.call(void 0, T.TokenType.name)) + if (fi(t) && v.match.call(void 0, k.TokenType.name)) return ( (I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._enum), - Tl(), + k.TokenType._enum), + yl(), !0 ); break; case oe.ContextualKeyword._interface: - if (fi(t) && k.match.call(void 0, T.TokenType.name)) { - let s = k.pushTypeContext.call(void 0, t ? 2 : 1); - return Fy(), k.popTypeContext.call(void 0, s), !0; + if (fi(t) && v.match.call(void 0, k.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return VT(), v.popTypeContext.call(void 0, s), !0; } break; case oe.ContextualKeyword._module: if (fi(t)) { - if (k.match.call(void 0, T.TokenType.string)) { - let s = k.pushTypeContext.call(void 0, t ? 2 : 1); - return Ep(), k.popTypeContext.call(void 0, s), !0; - } else if (k.match.call(void 0, T.TokenType.name)) { - let s = k.pushTypeContext.call(void 0, t ? 2 : 1); - return fl(), k.popTypeContext.call(void 0, s), !0; + if (v.match.call(void 0, k.TokenType.string)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return Ep(), v.popTypeContext.call(void 0, s), !0; + } else if (v.match.call(void 0, k.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return fl(), v.popTypeContext.call(void 0, s), !0; } } break; case oe.ContextualKeyword._namespace: - if (fi(t) && k.match.call(void 0, T.TokenType.name)) { - let s = k.pushTypeContext.call(void 0, t ? 2 : 1); - return fl(), k.popTypeContext.call(void 0, s), !0; + if (fi(t) && v.match.call(void 0, k.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return fl(), v.popTypeContext.call(void 0, s), !0; } break; case oe.ContextualKeyword._type: - if (fi(t) && k.match.call(void 0, T.TokenType.name)) { - let s = k.pushTypeContext.call(void 0, t ? 2 : 1); - return By(), k.popTypeContext.call(void 0, s), !0; + if (fi(t) && v.match.call(void 0, k.TokenType.name)) { + let s = v.pushTypeContext.call(void 0, t ? 2 : 1); + return jT(), v.popTypeContext.call(void 0, s), !0; } break; default: @@ -18786,37 +18786,37 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } function fi(e) { - return e ? (k.next.call(void 0), !0) : !H.isLineTerminator.call(void 0); + return e ? (v.next.call(void 0), !0) : !H.isLineTerminator.call(void 0); } - function Hy() { + function GT() { let e = I.state.snapshot(); return ( uo(), Rn.parseFunctionParams.call(void 0), - Py(), - H.expect.call(void 0, T.TokenType.arrow), + RT(), + H.expect.call(void 0, k.TokenType.arrow), I.state.error ? (I.state.restoreFromSnapshot(e), !1) : (_e.parseFunctionBody.call(void 0, !0), !0) ); } function kl() { - I.state.type === T.TokenType.bitShiftL && - ((I.state.pos -= 1), k.finishToken.call(void 0, T.TokenType.lessThan)), - Ti(); + I.state.type === k.TokenType.bitShiftL && + ((I.state.pos -= 1), v.finishToken.call(void 0, k.TokenType.lessThan)), + yi(); } - function Ti() { - let e = k.pushTypeContext.call(void 0, 0); + function yi() { + let e = v.pushTypeContext.call(void 0, 0); for ( - H.expect.call(void 0, T.TokenType.lessThan); - !k.eat.call(void 0, T.TokenType.greaterThan) && !I.state.error; + H.expect.call(void 0, k.TokenType.lessThan); + !v.eat.call(void 0, k.TokenType.greaterThan) && !I.state.error; ) - rt(), k.eat.call(void 0, T.TokenType.comma); - k.popTypeContext.call(void 0, e); + rt(), v.eat.call(void 0, k.TokenType.comma); + v.popTypeContext.call(void 0, e); } - function Wy() { - if (k.match.call(void 0, T.TokenType.name)) + function zT() { + if (v.match.call(void 0, k.TokenType.name)) switch (I.state.contextualKeyword) { case oe.ContextualKeyword._abstract: case oe.ContextualKeyword._declare: @@ -18831,11 +18831,11 @@ If you need interactivity, consider converting part of this to a Client Componen } return !1; } - Oe.tsIsDeclarationStart = Wy; - function Gy(e, t) { + Oe.tsIsDeclarationStart = zT; + function XT(e, t) { if ( - (k.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon), - !k.match.call(void 0, T.TokenType.braceL) && + (v.match.call(void 0, k.TokenType.colon) && Qi(k.TokenType.colon), + !v.match.call(void 0, k.TokenType.braceL) && H.isLineTerminator.call(void 0)) ) { let s = I.state.tokens.length - 1; @@ -18843,8 +18843,8 @@ If you need interactivity, consider converting part of this to a Client Componen ; s >= 0 && (I.state.tokens[s].start >= e || - I.state.tokens[s].type === T.TokenType._default || - I.state.tokens[s].type === T.TokenType._export); + I.state.tokens[s].type === k.TokenType._default || + I.state.tokens[s].type === k.TokenType._export); ) (I.state.tokens[s].isType = !0), s--; @@ -18852,33 +18852,33 @@ If you need interactivity, consider converting part of this to a Client Componen } _e.parseFunctionBody.call(void 0, !1, t); } - Oe.tsParseFunctionBodyAndFinish = Gy; - function zy(e, t, s) { + Oe.tsParseFunctionBodyAndFinish = XT; + function YT(e, t, s) { if ( !H.hasPrecedingLineBreak.call(void 0) && - k.eat.call(void 0, T.TokenType.bang) + v.eat.call(void 0, k.TokenType.bang) ) { I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType.nonNullAssertion; + k.TokenType.nonNullAssertion; return; } if ( - k.match.call(void 0, T.TokenType.lessThan) || - k.match.call(void 0, T.TokenType.bitShiftL) + v.match.call(void 0, k.TokenType.lessThan) || + v.match.call(void 0, k.TokenType.bitShiftL) ) { let i = I.state.snapshot(); - if (!t && _e.atPossibleAsync.call(void 0) && Hy()) return; + if (!t && _e.atPossibleAsync.call(void 0) && GT()) return; if ( (kl(), - !t && k.eat.call(void 0, T.TokenType.parenL) + !t && v.eat.call(void 0, k.TokenType.parenL) ? ((I.state.tokens[I.state.tokens.length - 1].subscriptStartIndex = e), _e.parseCallExpressionArguments.call(void 0)) - : k.match.call(void 0, T.TokenType.backQuote) + : v.match.call(void 0, k.TokenType.backQuote) ? _e.parseTemplate.call(void 0) - : (I.state.type === T.TokenType.greaterThan || - (I.state.type !== T.TokenType.parenL && - I.state.type & T.TokenType.IS_EXPRESSION_START && + : (I.state.type === k.TokenType.greaterThan || + (I.state.type !== k.TokenType.parenL && + I.state.type & k.TokenType.IS_EXPRESSION_START && !H.hasPrecedingLineBreak.call(void 0))) && H.unexpected.call(void 0), I.state.error) @@ -18887,27 +18887,27 @@ If you need interactivity, consider converting part of this to a Client Componen else return; } else !t && - k.match.call(void 0, T.TokenType.questionDot) && - k.lookaheadType.call(void 0) === T.TokenType.lessThan && - (k.next.call(void 0), + v.match.call(void 0, k.TokenType.questionDot) && + v.lookaheadType.call(void 0) === k.TokenType.lessThan && + (v.next.call(void 0), (I.state.tokens[e].isOptionalChainStart = !0), (I.state.tokens[I.state.tokens.length - 1].subscriptStartIndex = e), - Ti(), - H.expect.call(void 0, T.TokenType.parenL), + yi(), + H.expect.call(void 0, k.TokenType.parenL), _e.parseCallExpressionArguments.call(void 0)); _e.baseParseSubscript.call(void 0, e, t, s); } - Oe.tsParseSubscript = zy; - function Xy() { - if (k.eat.call(void 0, T.TokenType._import)) + Oe.tsParseSubscript = YT; + function JT() { + if (v.eat.call(void 0, k.TokenType._import)) return ( H.isContextual.call(void 0, oe.ContextualKeyword._type) && - k.lookaheadType.call(void 0) !== T.TokenType.eq && + v.lookaheadType.call(void 0) !== k.TokenType.eq && H.expectContextual.call(void 0, oe.ContextualKeyword._type), Ap(), !0 ); - if (k.eat.call(void 0, T.TokenType.eq)) + if (v.eat.call(void 0, k.TokenType.eq)) return _e.parseExpression.call(void 0), H.semicolon.call(void 0), !0; if (H.eatContextual.call(void 0, oe.ContextualKeyword._as)) return ( @@ -18917,137 +18917,137 @@ If you need interactivity, consider converting part of this to a Client Componen !0 ); if (H.isContextual.call(void 0, oe.ContextualKeyword._type)) { - let e = k.lookaheadType.call(void 0); - (e === T.TokenType.braceL || e === T.TokenType.star) && - k.next.call(void 0); + let e = v.lookaheadType.call(void 0); + (e === k.TokenType.braceL || e === k.TokenType.star) && + v.next.call(void 0); } return !1; } - Oe.tsTryParseExport = Xy; - function Yy() { + Oe.tsTryParseExport = JT; + function QT() { if ( (_e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.braceR)) + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.braceR)) ) { I.state.tokens[I.state.tokens.length - 1].identifierRole = - k.IdentifierRole.ImportDeclaration; + v.IdentifierRole.ImportDeclaration; return; } if ( (_e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.braceR)) + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.braceR)) ) { (I.state.tokens[I.state.tokens.length - 1].identifierRole = - k.IdentifierRole.ImportDeclaration), + v.IdentifierRole.ImportDeclaration), (I.state.tokens[I.state.tokens.length - 2].isType = !0), (I.state.tokens[I.state.tokens.length - 1].isType = !0); return; } if ( (_e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.braceR)) + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.braceR)) ) { (I.state.tokens[I.state.tokens.length - 3].identifierRole = - k.IdentifierRole.ImportAccess), + v.IdentifierRole.ImportAccess), (I.state.tokens[I.state.tokens.length - 1].identifierRole = - k.IdentifierRole.ImportDeclaration); + v.IdentifierRole.ImportDeclaration); return; } _e.parseIdentifier.call(void 0), (I.state.tokens[I.state.tokens.length - 3].identifierRole = - k.IdentifierRole.ImportAccess), + v.IdentifierRole.ImportAccess), (I.state.tokens[I.state.tokens.length - 1].identifierRole = - k.IdentifierRole.ImportDeclaration), + v.IdentifierRole.ImportDeclaration), (I.state.tokens[I.state.tokens.length - 4].isType = !0), (I.state.tokens[I.state.tokens.length - 3].isType = !0), (I.state.tokens[I.state.tokens.length - 2].isType = !0), (I.state.tokens[I.state.tokens.length - 1].isType = !0); } - Oe.tsParseImportSpecifier = Yy; - function Jy() { + Oe.tsParseImportSpecifier = QT; + function ZT() { if ( (_e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.braceR)) + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.braceR)) ) { I.state.tokens[I.state.tokens.length - 1].identifierRole = - k.IdentifierRole.ExportAccess; + v.IdentifierRole.ExportAccess; return; } if ( (_e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.braceR)) + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.braceR)) ) { (I.state.tokens[I.state.tokens.length - 1].identifierRole = - k.IdentifierRole.ExportAccess), + v.IdentifierRole.ExportAccess), (I.state.tokens[I.state.tokens.length - 2].isType = !0), (I.state.tokens[I.state.tokens.length - 1].isType = !0); return; } if ( (_e.parseIdentifier.call(void 0), - k.match.call(void 0, T.TokenType.comma) || - k.match.call(void 0, T.TokenType.braceR)) + v.match.call(void 0, k.TokenType.comma) || + v.match.call(void 0, k.TokenType.braceR)) ) { I.state.tokens[I.state.tokens.length - 3].identifierRole = - k.IdentifierRole.ExportAccess; + v.IdentifierRole.ExportAccess; return; } _e.parseIdentifier.call(void 0), (I.state.tokens[I.state.tokens.length - 3].identifierRole = - k.IdentifierRole.ExportAccess), + v.IdentifierRole.ExportAccess), (I.state.tokens[I.state.tokens.length - 4].isType = !0), (I.state.tokens[I.state.tokens.length - 3].isType = !0), (I.state.tokens[I.state.tokens.length - 2].isType = !0), (I.state.tokens[I.state.tokens.length - 1].isType = !0); } - Oe.tsParseExportSpecifier = Jy; - function Qy() { + Oe.tsParseExportSpecifier = ZT; + function ek() { if ( H.isContextual.call(void 0, oe.ContextualKeyword._abstract) && - k.lookaheadType.call(void 0) === T.TokenType._class + v.lookaheadType.call(void 0) === k.TokenType._class ) return ( - (I.state.type = T.TokenType._abstract), - k.next.call(void 0), + (I.state.type = k.TokenType._abstract), + v.next.call(void 0), Rn.parseClass.call(void 0, !0, !0), !0 ); if (H.isContextual.call(void 0, oe.ContextualKeyword._interface)) { - let e = k.pushTypeContext.call(void 0, 2); + let e = v.pushTypeContext.call(void 0, 2); return ( po(oe.ContextualKeyword._interface, !0), - k.popTypeContext.call(void 0, e), + v.popTypeContext.call(void 0, e), !0 ); } return !1; } - Oe.tsTryParseExportDefaultExpression = Qy; - function Zy() { - if (I.state.type === T.TokenType._const) { - let e = k.lookaheadTypeAndKeyword.call(void 0); + Oe.tsTryParseExportDefaultExpression = ek; + function tk() { + if (I.state.type === k.TokenType._const) { + let e = v.lookaheadTypeAndKeyword.call(void 0); if ( - e.type === T.TokenType.name && + e.type === k.TokenType.name && e.contextualKeyword === oe.ContextualKeyword._enum ) return ( - H.expect.call(void 0, T.TokenType._const), + H.expect.call(void 0, k.TokenType._const), H.expectContextual.call(void 0, oe.ContextualKeyword._enum), (I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._enum), - Tl(), + k.TokenType._enum), + yl(), !0 ); } return !1; } - Oe.tsTryParseStatementContent = Zy; - function ek(e) { + Oe.tsTryParseStatementContent = tk; + function nk(e) { let t = I.state.tokens.length; bp([ oe.ContextualKeyword._abstract, @@ -19064,76 +19064,76 @@ If you need interactivity, consider converting part of this to a Client Componen } return !1; } - Oe.tsTryParseClassMemberWithIsStatic = ek; - function tk(e) { - Uy(e) || H.semicolon.call(void 0); + Oe.tsTryParseClassMemberWithIsStatic = nk; + function sk(e) { + WT(e) || H.semicolon.call(void 0); } - Oe.tsParseIdentifierStatement = tk; - function nk() { + Oe.tsParseIdentifierStatement = sk; + function ik() { let e = H.eatContextual.call(void 0, oe.ContextualKeyword._declare); e && - (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._declare); + (I.state.tokens[I.state.tokens.length - 1].type = k.TokenType._declare); let t = !1; - if (k.match.call(void 0, T.TokenType.name)) + if (v.match.call(void 0, k.TokenType.name)) if (e) { - let s = k.pushTypeContext.call(void 0, 2); - (t = gp()), k.popTypeContext.call(void 0, s); + let s = v.pushTypeContext.call(void 0, 2); + (t = gp()), v.popTypeContext.call(void 0, s); } else t = gp(); if (!t) if (e) { - let s = k.pushTypeContext.call(void 0, 2); - Rn.parseStatement.call(void 0, !0), k.popTypeContext.call(void 0, s); + let s = v.pushTypeContext.call(void 0, 2); + Rn.parseStatement.call(void 0, !0), v.popTypeContext.call(void 0, s); } else Rn.parseStatement.call(void 0, !0); } - Oe.tsParseExportDeclaration = nk; - function sk(e) { + Oe.tsParseExportDeclaration = ik; + function rk(e) { if ( (e && - (k.match.call(void 0, T.TokenType.lessThan) || - k.match.call(void 0, T.TokenType.bitShiftL)) && + (v.match.call(void 0, k.TokenType.lessThan) || + v.match.call(void 0, k.TokenType.bitShiftL)) && kl(), H.eatContextual.call(void 0, oe.ContextualKeyword._implements)) ) { I.state.tokens[I.state.tokens.length - 1].type = - T.TokenType._implements; - let t = k.pushTypeContext.call(void 0, 1); - Ip(), k.popTypeContext.call(void 0, t); + k.TokenType._implements; + let t = v.pushTypeContext.call(void 0, 1); + Ip(), v.popTypeContext.call(void 0, t); } } - Oe.tsAfterParseClassSuper = sk; - function ik() { + Oe.tsAfterParseClassSuper = rk; + function ok() { mi(); } - Oe.tsStartParseObjPropValue = ik; - function rk() { + Oe.tsStartParseObjPropValue = ok; + function ak() { mi(); } - Oe.tsStartParseFunctionParams = rk; - function ok() { - let e = k.pushTypeContext.call(void 0, 0); + Oe.tsStartParseFunctionParams = ak; + function lk() { + let e = v.pushTypeContext.call(void 0, 0); H.hasPrecedingLineBreak.call(void 0) || - k.eat.call(void 0, T.TokenType.bang), + v.eat.call(void 0, k.TokenType.bang), er(), - k.popTypeContext.call(void 0, e); + v.popTypeContext.call(void 0, e); } - Oe.tsAfterParseVarHead = ok; - function ak() { - k.match.call(void 0, T.TokenType.colon) && tr(); + Oe.tsAfterParseVarHead = lk; + function ck() { + v.match.call(void 0, k.TokenType.colon) && tr(); } - Oe.tsStartParseAsyncArrowFromCallExpression = ak; - function lk(e, t) { + Oe.tsStartParseAsyncArrowFromCallExpression = ck; + function uk(e, t) { return I.isJSXEnabled ? Pp(e, t) : Np(e, t); } - Oe.tsParseMaybeAssign = lk; + Oe.tsParseMaybeAssign = uk; function Pp(e, t) { - if (!k.match.call(void 0, T.TokenType.lessThan)) + if (!v.match.call(void 0, k.TokenType.lessThan)) return _e.baseParseMaybeAssign.call(void 0, e, t); let s = I.state.snapshot(), i = _e.baseParseMaybeAssign.call(void 0, e, t); if (I.state.error) I.state.restoreFromSnapshot(s); else return i; return ( - (I.state.type = T.TokenType.typeParameterStart), + (I.state.type = k.TokenType.typeParameterStart), uo(), (i = _e.baseParseMaybeAssign.call(void 0, e, t)), i || H.unexpected.call(void 0), @@ -19142,7 +19142,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Oe.tsParseMaybeAssignWithJSX = Pp; function Np(e, t) { - if (!k.match.call(void 0, T.TokenType.lessThan)) + if (!v.match.call(void 0, k.TokenType.lessThan)) return _e.baseParseMaybeAssign.call(void 0, e, t); let s = I.state.snapshot(); uo(); @@ -19153,31 +19153,31 @@ If you need interactivity, consider converting part of this to a Client Componen return _e.baseParseMaybeAssign.call(void 0, e, t); } Oe.tsParseMaybeAssignWithoutJSX = Np; - function ck() { - if (k.match.call(void 0, T.TokenType.colon)) { + function pk() { + if (v.match.call(void 0, k.TokenType.colon)) { let e = I.state.snapshot(); - Qi(T.TokenType.colon), + Qi(k.TokenType.colon), H.canInsertSemicolon.call(void 0) && H.unexpected.call(void 0), - k.match.call(void 0, T.TokenType.arrow) || H.unexpected.call(void 0), + v.match.call(void 0, k.TokenType.arrow) || H.unexpected.call(void 0), I.state.error && I.state.restoreFromSnapshot(e); } - return k.eat.call(void 0, T.TokenType.arrow); + return v.eat.call(void 0, k.TokenType.arrow); } - Oe.tsParseArrow = ck; - function uk() { - let e = k.pushTypeContext.call(void 0, 0); - k.eat.call(void 0, T.TokenType.question), + Oe.tsParseArrow = pk; + function hk() { + let e = v.pushTypeContext.call(void 0, 0); + v.eat.call(void 0, k.TokenType.question), er(), - k.popTypeContext.call(void 0, e); + v.popTypeContext.call(void 0, e); } - Oe.tsParseAssignableListItemTypes = uk; - function pk() { - (k.match.call(void 0, T.TokenType.lessThan) || - k.match.call(void 0, T.TokenType.bitShiftL)) && + Oe.tsParseAssignableListItemTypes = hk; + function fk() { + (v.match.call(void 0, k.TokenType.lessThan) || + v.match.call(void 0, k.TokenType.bitShiftL)) && kl(), Rn.baseParseMaybeDecoratorArguments.call(void 0); } - Oe.tsParseMaybeDecoratorArguments = pk; + Oe.tsParseMaybeDecoratorArguments = fk; }); var vl = Z((fo) => { 'use strict'; @@ -19189,8 +19189,8 @@ If you need interactivity, consider converting part of this to a Client Componen fs = cs(), at = Qt(), Rp = li(), - hk = hi(); - function fk() { + dk = hi(); + function mk() { let e = !1, t = !1; for (;;) { @@ -19223,7 +19223,7 @@ If you need interactivity, consider converting part of this to a Client Componen fe.state.pos++; } } - function dk(e) { + function yk(e) { for (fe.state.pos++; ; ) { if (fe.state.pos >= fe.input.length) { fs.unexpected.call(void 0, 'Unterminated string constant'); @@ -19237,7 +19237,7 @@ If you need interactivity, consider converting part of this to a Client Componen } Se.finishToken.call(void 0, Me.TokenType.string); } - function mk() { + function Tk() { let e; do { if (fe.state.pos > fe.input.length) { @@ -19271,7 +19271,7 @@ If you need interactivity, consider converting part of this to a Client Componen (s.identifierRole = null); } } - function Tk() { + function kk() { switch (fe.state.type) { case Me.TokenType.braceL: Se.next.call(void 0), ho.parseExpression.call(void 0), dn(); @@ -19289,13 +19289,13 @@ If you need interactivity, consider converting part of this to a Client Componen ); } } - function yk() { + function vk() { fs.expect.call(void 0, Me.TokenType.ellipsis), ho.parseExpression.call(void 0); } - function kk(e) { + function xk(e) { if (Se.match.call(void 0, Me.TokenType.jsxTagEnd)) return !1; - Op(), fe.isTypeScriptEnabled && hk.tsTryParseJSXTypeArgument.call(void 0); + Op(), fe.isTypeScriptEnabled && dk.tsTryParseJSXTypeArgument.call(void 0); let t = !1; for ( ; @@ -19318,25 +19318,25 @@ If you need interactivity, consider converting part of this to a Client Componen fe.input.charCodeAt(fe.state.start + 2) === at.charCodes.lowercaseY && (fe.state.tokens[e].jsxRole = Se.JSXRole.KeyAfterPropSpread), Lp(Se.IdentifierRole.ObjectKey), - Se.match.call(void 0, Me.TokenType.eq) && (dn(), Tk()); + Se.match.call(void 0, Me.TokenType.eq) && (dn(), kk()); } let s = Se.match.call(void 0, Me.TokenType.slash); return s && dn(), s; } - function vk() { + function gk() { Se.match.call(void 0, Me.TokenType.jsxTagEnd) || Op(); } function Dp() { let e = fe.state.tokens.length - 1; fe.state.tokens[e].jsxRole = Se.JSXRole.NoChildren; let t = 0; - if (!kk(e)) - for (yi(); ; ) + if (!xk(e)) + for (Ti(); ; ) switch (fe.state.type) { case Me.TokenType.jsxTagStart: if ((dn(), Se.match.call(void 0, Me.TokenType.slash))) { dn(), - vk(), + gk(), fe.state.tokens[e].jsxRole !== Se.JSXRole.KeyAfterPropSpread && (t === 1 @@ -19346,21 +19346,21 @@ If you need interactivity, consider converting part of this to a Client Componen Se.JSXRole.StaticChildren)); return; } - t++, Dp(), yi(); + t++, Dp(), Ti(); break; case Me.TokenType.jsxText: - t++, yi(); + t++, Ti(); break; case Me.TokenType.jsxEmptyText: - yi(); + Ti(); break; case Me.TokenType.braceL: Se.next.call(void 0), Se.match.call(void 0, Me.TokenType.ellipsis) - ? (yk(), yi(), (t += 2)) + ? (vk(), Ti(), (t += 2)) : (Se.match.call(void 0, Me.TokenType.braceR) || (t++, ho.parseExpression.call(void 0)), - yi()); + Ti()); break; default: fs.unexpected.call(void 0); @@ -19376,12 +19376,12 @@ If you need interactivity, consider converting part of this to a Client Componen Se.skipSpace.call(void 0), (fe.state.start = fe.state.pos); let e = fe.input.charCodeAt(fe.state.pos); - if (Rp.IS_IDENTIFIER_START[e]) mk(); + if (Rp.IS_IDENTIFIER_START[e]) Tk(); else if ( e === at.charCodes.quotationMark || e === at.charCodes.apostrophe ) - dk(e); + yk(e); else switch ((++fe.state.pos, e)) { case at.charCodes.greaterThan: @@ -19410,22 +19410,22 @@ If you need interactivity, consider converting part of this to a Client Componen } } fo.nextJSXTagToken = dn; - function yi() { + function Ti() { fe.state.tokens.push(new Se.Token()), (fe.state.start = fe.state.pos), - fk(); + mk(); } }); - var Bp = Z((To) => { + var Bp = Z((yo) => { 'use strict'; - Object.defineProperty(To, '__esModule', {value: !0}); + Object.defineProperty(yo, '__esModule', {value: !0}); var mo = xt(), ki = be(), Fp = Zt(), - xk = Ns(), - gk = Ji(), - _k = hi(); - function bk(e) { + _k = Ns(), + bk = Ji(), + Ck = hi(); + function wk(e) { if (mo.match.call(void 0, ki.TokenType.question)) { let t = mo.lookaheadType.call(void 0); if ( @@ -19435,23 +19435,23 @@ If you need interactivity, consider converting part of this to a Client Componen ) return; } - xk.baseParseConditional.call(void 0, e); + _k.baseParseConditional.call(void 0, e); } - To.typedParseConditional = bk; - function Ck() { + yo.typedParseConditional = wk; + function Sk() { mo.eatTypeToken.call(void 0, ki.TokenType.question), mo.match.call(void 0, ki.TokenType.colon) && (Fp.isTypeScriptEnabled - ? _k.tsParseTypeAnnotation.call(void 0) - : Fp.isFlowEnabled && gk.flowParseTypeAnnotation.call(void 0)); + ? Ck.tsParseTypeAnnotation.call(void 0) + : Fp.isFlowEnabled && bk.flowParseTypeAnnotation.call(void 0)); } - To.typedParseParenItem = Ck; + yo.typedParseParenItem = Sk; }); var Ns = Z((et) => { 'use strict'; Object.defineProperty(et, '__esModule', {value: !0}); var Yn = Ji(), - wk = vl(), + Ik = vl(), Vp = Bp(), ms = hi(), K = xt(), @@ -19459,7 +19459,7 @@ If you need interactivity, consider converting part of this to a Client Componen jp = qr(), B = be(), $p = Qt(), - Sk = li(), + Ek = li(), j = Zt(), ds = lo(), gn = nr(), @@ -19484,12 +19484,12 @@ If you need interactivity, consider converting part of this to a Client Componen } et.parseMaybeAssign = mn; function qp(e, t) { - if (K.match.call(void 0, B.TokenType._yield)) return Kk(), !1; + if (K.match.call(void 0, B.TokenType._yield)) return Hk(), !1; (K.match.call(void 0, B.TokenType.parenL) || K.match.call(void 0, B.TokenType.name) || K.match.call(void 0, B.TokenType._yield)) && (j.state.potentialArrowAt = j.state.start); - let s = Ik(e); + let s = Ak(e); return ( t && wl(), j.state.type & B.TokenType.IS_ASSIGN @@ -19498,10 +19498,10 @@ If you need interactivity, consider converting part of this to a Client Componen ); } et.baseParseMaybeAssign = qp; - function Ik(e) { - return Ak(e) ? !0 : (Ek(e), !1); + function Ak(e) { + return Nk(e) ? !0 : (Pk(e), !1); } - function Ek(e) { + function Pk(e) { j.isTypeScriptEnabled || j.isFlowEnabled ? Vp.typedParseConditional.call(void 0, e) : Kp(e); @@ -19511,11 +19511,11 @@ If you need interactivity, consider converting part of this to a Client Componen (mn(), Pe.expect.call(void 0, B.TokenType.colon), mn(e)); } et.baseParseConditional = Kp; - function Ak(e) { + function Nk(e) { let t = j.state.tokens.length; - return rr() ? !0 : (yo(t, -1, e), !1); + return rr() ? !0 : (To(t, -1, e), !1); } - function yo(e, t, s) { + function To(e, t, s) { if ( j.isTypeScriptEnabled && (B.TokenType._in & B.TokenType.PRECEDENCE_MASK) > t && @@ -19527,7 +19527,7 @@ If you need interactivity, consider converting part of this to a Client Componen ms.tsParseType.call(void 0), K.popTypeContext.call(void 0, r), K.rescan_gt.call(void 0), - yo(e, t, s); + To(e, t, s); return; } let i = j.state.type & B.TokenType.PRECEDENCE_MASK; @@ -19538,11 +19538,11 @@ If you need interactivity, consider converting part of this to a Client Componen (j.state.tokens[j.state.tokens.length - 1].nullishStartIndex = e); let a = j.state.tokens.length; rr(), - yo(a, r & B.TokenType.IS_RIGHT_ASSOCIATIVE ? i - 1 : i, s), + To(a, r & B.TokenType.IS_RIGHT_ASSOCIATIVE ? i - 1 : i, s), r === B.TokenType.nullishCoalescing && (j.state.tokens[e].numNullishCoalesceStarts++, j.state.tokens[j.state.tokens.length - 1].numNullishCoalesceEnds++), - yo(e, t, s); + To(e, t, s); } } function rr() { @@ -19557,7 +19557,7 @@ If you need interactivity, consider converting part of this to a Client Componen K.lookaheadCharCode.call(void 0) === $p.charCodes.leftCurlyBrace && !Pe.hasFollowingLineBreak.call(void 0) ) - return Uk(), !1; + return Wk(), !1; if (j.state.type & B.TokenType.IS_PREFIX) return K.next.call(void 0), rr(), !1; if (Up()) return !0; @@ -19589,11 +19589,11 @@ If you need interactivity, consider converting part of this to a Client Componen } function Hp(e, t = !1) { let s = new vo(!1); - do Pk(e, t, s); + do Rk(e, t, s); while (!s.stop && !j.state.error); } et.baseParseSubscripts = Hp; - function Pk(e, t, s) { + function Rk(e, t, s) { j.isTypeScriptEnabled ? ms.tsParseSubscript.call(void 0, e, t, s) : j.isFlowEnabled @@ -19635,12 +19635,12 @@ If you need interactivity, consider converting part of this to a Client Componen (j.state.tokens[j.state.tokens.length - 1].contextId = a), ko(), (j.state.tokens[j.state.tokens.length - 1].contextId = a), - Nk() && + Lk() && (j.state.restoreFromSnapshot(i), (s.stop = !0), j.state.scopeDepth++, gn.parseFunctionParams.call(void 0), - Rk(r)); + Ok(r)); } else { K.next.call(void 0), (j.state.tokens[j.state.tokens.length - 1].subscriptStartIndex = e); @@ -19672,13 +19672,13 @@ If you need interactivity, consider converting part of this to a Client Componen } } et.parseCallExpressionArguments = ko; - function Nk() { + function Lk() { return ( K.match.call(void 0, B.TokenType.colon) || K.match.call(void 0, B.TokenType.arrow) ); } - function Rk(e) { + function Ok(e) { j.isTypeScriptEnabled ? ms.tsStartParseAsyncArrowFromCallExpression.call(void 0) : j.isFlowEnabled && @@ -19700,7 +19700,7 @@ If you need interactivity, consider converting part of this to a Client Componen if (K.match.call(void 0, B.TokenType.lessThan) && j.isJSXEnabled) return ( (j.state.type = B.TokenType.jsxTagStart), - wk.jsxParseElement.call(void 0), + Ik.jsxParseElement.call(void 0), K.next.call(void 0), !1 ); @@ -19737,7 +19737,7 @@ If you need interactivity, consider converting part of this to a Client Componen return ( Xn(), i === zn.ContextualKeyword._await - ? (qk(), !1) + ? (Uk(), !1) : i === zn.ContextualKeyword._async && K.match.call(void 0, B.TokenType._function) && !Pe.canInsertSemicolon.call(void 0) @@ -19776,13 +19776,13 @@ If you need interactivity, consider converting part of this to a Client Componen case B.TokenType.braceL: return Yp(!1, !1), !1; case B.TokenType._function: - return Lk(), !1; + return Dk(), !1; case B.TokenType.at: gn.parseDecorators.call(void 0); case B.TokenType._class: return gn.parseClass.call(void 0, !1), !1; case B.TokenType._new: - return Mk(), !1; + return Bk(), !1; case B.TokenType.backQuote: return Sl(), !1; case B.TokenType.doubleColon: @@ -19790,7 +19790,7 @@ If you need interactivity, consider converting part of this to a Client Componen case B.TokenType.hash: { let t = K.lookaheadCharCode.call(void 0); return ( - Sk.IS_IDENTIFIER_START[t] || t === $p.charCodes.backslash + Ek.IS_IDENTIFIER_START[t] || t === $p.charCodes.backslash ? xo() : K.next.call(void 0), !1 @@ -19804,7 +19804,7 @@ If you need interactivity, consider converting part of this to a Client Componen function xo() { K.eat.call(void 0, B.TokenType.hash), Xn(); } - function Lk() { + function Dk() { let e = j.state.start; Xn(), K.eat.call(void 0, B.TokenType.dot) && Xn(), @@ -19814,12 +19814,12 @@ If you need interactivity, consider converting part of this to a Client Componen K.next.call(void 0); } et.parseLiteral = zp; - function Ok() { + function Mk() { Pe.expect.call(void 0, B.TokenType.parenL), sr(), Pe.expect.call(void 0, B.TokenType.parenR); } - et.parseParenExpression = Ok; + et.parseParenExpression = Mk; function Xp(e) { let t = j.state.snapshot(), s = j.state.tokens.length; @@ -19839,7 +19839,7 @@ If you need interactivity, consider converting part of this to a Client Componen } return ( Pe.expect.call(void 0, B.TokenType.parenR), - e && Dk() && gl() + e && Fk() && gl() ? (j.state.restoreFromSnapshot(t), j.state.scopeDepth++, gn.parseFunctionParams.call(void 0), @@ -19849,7 +19849,7 @@ If you need interactivity, consider converting part of this to a Client Componen : !1 ); } - function Dk() { + function Fk() { return ( K.match.call(void 0, B.TokenType.colon) || !Pe.canInsertSemicolon.call(void 0) @@ -19867,7 +19867,7 @@ If you need interactivity, consider converting part of this to a Client Componen (j.isTypeScriptEnabled || j.isFlowEnabled) && Vp.typedParseParenItem.call(void 0); } - function Mk() { + function Bk() { if ( (Pe.expect.call(void 0, B.TokenType._new), K.eat.call(void 0, B.TokenType.dot)) @@ -19875,11 +19875,11 @@ If you need interactivity, consider converting part of this to a Client Componen Xn(); return; } - Fk(), + Vk(), j.isFlowEnabled && Yn.flowStartParseNewArguments.call(void 0), K.eat.call(void 0, B.TokenType.parenL) && Qp(B.TokenType.parenR); } - function Fk() { + function Vk() { Cl(), K.eat.call(void 0, B.TokenType.questionDot); } function Sl() { @@ -19936,12 +19936,12 @@ If you need interactivity, consider converting part of this to a Client Componen (K.next.call(void 0), (r = !0)), go(s))) : go(s), - $k(e, t, s); + Kk(e, t, s); } j.state.tokens[j.state.tokens.length - 1].contextId = s; } et.parseObj = Yp; - function Bk(e) { + function jk(e) { return ( !e && (K.match.call(void 0, B.TokenType.string) || @@ -19951,15 +19951,15 @@ If you need interactivity, consider converting part of this to a Client Componen !!(j.state.type & B.TokenType.IS_KEYWORD)) ); } - function Vk(e, t) { + function $k(e, t) { let s = j.state.start; return K.match.call(void 0, B.TokenType.parenL) ? (e && Pe.unexpected.call(void 0), _l(s, !1), !0) - : Bk(e) + : jk(e) ? (go(t), _l(s, !1), !0) : !1; } - function jk(e, t) { + function qk(e, t) { if (K.eat.call(void 0, B.TokenType.colon)) { e ? ds.parseMaybeDefault.call(void 0, t) : mn(!1); return; @@ -19975,11 +19975,11 @@ If you need interactivity, consider converting part of this to a Client Componen (j.state.tokens[j.state.tokens.length - 1].identifierRole = s), ds.parseMaybeDefault.call(void 0, t, !0); } - function $k(e, t, s) { + function Kk(e, t, s) { j.isTypeScriptEnabled ? ms.tsStartParseObjPropValue.call(void 0) : j.isFlowEnabled && Yn.flowStartParseObjPropValue.call(void 0), - Vk(e, s) || jk(e, t); + $k(e, s) || qk(e, t); } function go(e) { j.isFlowEnabled && Yn.flowParseVariance.call(void 0), @@ -20053,16 +20053,16 @@ If you need interactivity, consider converting part of this to a Client Componen (j.state.tokens[j.state.tokens.length - 1].type = B.TokenType.name); } et.parseIdentifier = Xn; - function qk() { + function Uk() { rr(); } - function Kk() { + function Hk() { K.next.call(void 0), !K.match.call(void 0, B.TokenType.semi) && !Pe.canInsertSemicolon.call(void 0) && (K.eat.call(void 0, B.TokenType.star), mn()); } - function Uk() { + function Wk() { Pe.expectContextual.call(void 0, zn.ContextualKeyword._module), Pe.expect.call(void 0, B.TokenType.braceL), gn.parseBlockBody.call(void 0, B.TokenType.braceR); @@ -20072,122 +20072,122 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Je, '__esModule', {value: !0}); var C = xt(), - Te = It(), + ye = It(), _ = be(), ue = Zt(), je = Ns(), - Ts = nr(), - G = cs(); - function Hk(e) { + ys = nr(), + z = cs(); + function Gk(e) { return ( (e.type === _.TokenType.name || !!(e.type & _.TokenType.IS_KEYWORD)) && - e.contextualKeyword !== Te.ContextualKeyword._from + e.contextualKeyword !== ye.ContextualKeyword._from ); } function Ln(e) { let t = C.pushTypeContext.call(void 0, 0); - G.expect.call(void 0, e || _.TokenType.colon), + z.expect.call(void 0, e || _.TokenType.colon), Wt(), C.popTypeContext.call(void 0, t); } function eh() { - G.expect.call(void 0, _.TokenType.modulo), - G.expectContextual.call(void 0, Te.ContextualKeyword._checks), + z.expect.call(void 0, _.TokenType.modulo), + z.expectContextual.call(void 0, ye.ContextualKeyword._checks), C.eat.call(void 0, _.TokenType.parenL) && (je.parseExpression.call(void 0), - G.expect.call(void 0, _.TokenType.parenR)); + z.expect.call(void 0, _.TokenType.parenR)); } function Pl() { let e = C.pushTypeContext.call(void 0, 0); - G.expect.call(void 0, _.TokenType.colon), + z.expect.call(void 0, _.TokenType.colon), C.match.call(void 0, _.TokenType.modulo) ? eh() : (Wt(), C.match.call(void 0, _.TokenType.modulo) && eh()), C.popTypeContext.call(void 0, e); } - function Wk() { + function zk() { C.next.call(void 0), Nl(!0); } - function Gk() { + function Xk() { C.next.call(void 0), je.parseIdentifier.call(void 0), C.match.call(void 0, _.TokenType.lessThan) && On(), - G.expect.call(void 0, _.TokenType.parenL), + z.expect.call(void 0, _.TokenType.parenL), Al(), - G.expect.call(void 0, _.TokenType.parenR), + z.expect.call(void 0, _.TokenType.parenR), Pl(), - G.semicolon.call(void 0); + z.semicolon.call(void 0); } function El() { C.match.call(void 0, _.TokenType._class) - ? Wk() + ? zk() : C.match.call(void 0, _.TokenType._function) - ? Gk() + ? Xk() : C.match.call(void 0, _.TokenType._var) - ? zk() - : G.eatContextual.call(void 0, Te.ContextualKeyword._module) + ? Yk() + : z.eatContextual.call(void 0, ye.ContextualKeyword._module) ? C.eat.call(void 0, _.TokenType.dot) - ? Jk() - : Xk() - : G.isContextual.call(void 0, Te.ContextualKeyword._type) - ? Qk() - : G.isContextual.call(void 0, Te.ContextualKeyword._opaque) - ? Zk() - : G.isContextual.call(void 0, Te.ContextualKeyword._interface) + ? Zk() + : Jk() + : z.isContextual.call(void 0, ye.ContextualKeyword._type) ? e0() + : z.isContextual.call(void 0, ye.ContextualKeyword._opaque) + ? t0() + : z.isContextual.call(void 0, ye.ContextualKeyword._interface) + ? n0() : C.match.call(void 0, _.TokenType._export) - ? Yk() - : G.unexpected.call(void 0); + ? Qk() + : z.unexpected.call(void 0); } - function zk() { - C.next.call(void 0), oh(), G.semicolon.call(void 0); + function Yk() { + C.next.call(void 0), oh(), z.semicolon.call(void 0); } - function Xk() { + function Jk() { for ( C.match.call(void 0, _.TokenType.string) ? je.parseExprAtom.call(void 0) : je.parseIdentifier.call(void 0), - G.expect.call(void 0, _.TokenType.braceL); + z.expect.call(void 0, _.TokenType.braceL); !C.match.call(void 0, _.TokenType.braceR) && !ue.state.error; ) C.match.call(void 0, _.TokenType._import) - ? (C.next.call(void 0), Ts.parseImport.call(void 0)) - : G.unexpected.call(void 0); - G.expect.call(void 0, _.TokenType.braceR); + ? (C.next.call(void 0), ys.parseImport.call(void 0)) + : z.unexpected.call(void 0); + z.expect.call(void 0, _.TokenType.braceR); } - function Yk() { - G.expect.call(void 0, _.TokenType._export), + function Qk() { + z.expect.call(void 0, _.TokenType._export), C.eat.call(void 0, _.TokenType._default) ? C.match.call(void 0, _.TokenType._function) || C.match.call(void 0, _.TokenType._class) ? El() - : (Wt(), G.semicolon.call(void 0)) + : (Wt(), z.semicolon.call(void 0)) : C.match.call(void 0, _.TokenType._var) || C.match.call(void 0, _.TokenType._function) || C.match.call(void 0, _.TokenType._class) || - G.isContextual.call(void 0, Te.ContextualKeyword._opaque) + z.isContextual.call(void 0, ye.ContextualKeyword._opaque) ? El() : C.match.call(void 0, _.TokenType.star) || C.match.call(void 0, _.TokenType.braceL) || - G.isContextual.call(void 0, Te.ContextualKeyword._interface) || - G.isContextual.call(void 0, Te.ContextualKeyword._type) || - G.isContextual.call(void 0, Te.ContextualKeyword._opaque) - ? Ts.parseExport.call(void 0) - : G.unexpected.call(void 0); + z.isContextual.call(void 0, ye.ContextualKeyword._interface) || + z.isContextual.call(void 0, ye.ContextualKeyword._type) || + z.isContextual.call(void 0, ye.ContextualKeyword._opaque) + ? ys.parseExport.call(void 0) + : z.unexpected.call(void 0); } - function Jk() { - G.expectContextual.call(void 0, Te.ContextualKeyword._exports), + function Zk() { + z.expectContextual.call(void 0, ye.ContextualKeyword._exports), vi(), - G.semicolon.call(void 0); + z.semicolon.call(void 0); } - function Qk() { + function e0() { C.next.call(void 0), Ll(); } - function Zk() { + function t0() { C.next.call(void 0), Ol(!0); } - function e0() { + function n0() { C.next.call(void 0), Nl(); } function Nl(e = !1) { @@ -20198,12 +20198,12 @@ If you need interactivity, consider converting part of this to a Client Componen ) do bo(); while (!e && C.eat.call(void 0, _.TokenType.comma)); - if (G.isContextual.call(void 0, Te.ContextualKeyword._mixins)) { + if (z.isContextual.call(void 0, ye.ContextualKeyword._mixins)) { C.next.call(void 0); do bo(); while (C.eat.call(void 0, _.TokenType.comma)); } - if (G.isContextual.call(void 0, Te.ContextualKeyword._implements)) { + if (z.isContextual.call(void 0, ye.ContextualKeyword._implements)) { C.next.call(void 0); do bo(); while (C.eat.call(void 0, _.TokenType.comma)); @@ -20223,17 +20223,17 @@ If you need interactivity, consider converting part of this to a Client Componen So(), C.match.call(void 0, _.TokenType.lessThan) && On(), Ln(_.TokenType.eq), - G.semicolon.call(void 0); + z.semicolon.call(void 0); } function Ol(e) { - G.expectContextual.call(void 0, Te.ContextualKeyword._type), + z.expectContextual.call(void 0, ye.ContextualKeyword._type), So(), C.match.call(void 0, _.TokenType.lessThan) && On(), C.match.call(void 0, _.TokenType.colon) && Ln(_.TokenType.colon), e || Ln(_.TokenType.eq), - G.semicolon.call(void 0); + z.semicolon.call(void 0); } - function t0() { + function s0() { Fl(), oh(), C.eat.call(void 0, _.TokenType.eq) && Wt(); } function On() { @@ -20241,32 +20241,32 @@ If you need interactivity, consider converting part of this to a Client Componen C.match.call(void 0, _.TokenType.lessThan) || C.match.call(void 0, _.TokenType.typeParameterStart) ? C.next.call(void 0) - : G.unexpected.call(void 0); + : z.unexpected.call(void 0); do - t0(), + s0(), C.match.call(void 0, _.TokenType.greaterThan) || - G.expect.call(void 0, _.TokenType.comma); + z.expect.call(void 0, _.TokenType.comma); while (!C.match.call(void 0, _.TokenType.greaterThan) && !ue.state.error); - G.expect.call(void 0, _.TokenType.greaterThan), + z.expect.call(void 0, _.TokenType.greaterThan), C.popTypeContext.call(void 0, e); } Je.flowParseTypeParameterDeclaration = On; function Rs() { let e = C.pushTypeContext.call(void 0, 0); for ( - G.expect.call(void 0, _.TokenType.lessThan); + z.expect.call(void 0, _.TokenType.lessThan); !C.match.call(void 0, _.TokenType.greaterThan) && !ue.state.error; ) Wt(), C.match.call(void 0, _.TokenType.greaterThan) || - G.expect.call(void 0, _.TokenType.comma); - G.expect.call(void 0, _.TokenType.greaterThan), + z.expect.call(void 0, _.TokenType.comma); + z.expect.call(void 0, _.TokenType.greaterThan), C.popTypeContext.call(void 0, e); } - function n0() { + function i0() { if ( - (G.expectContextual.call(void 0, Te.ContextualKeyword._interface), + (z.expectContextual.call(void 0, ye.ContextualKeyword._interface), C.eat.call(void 0, _.TokenType._extends)) ) do bo(); @@ -20279,15 +20279,15 @@ If you need interactivity, consider converting part of this to a Client Componen ? je.parseExprAtom.call(void 0) : je.parseIdentifier.call(void 0); } - function s0() { + function r0() { C.lookaheadType.call(void 0) === _.TokenType.colon ? (Dl(), Ln()) : Wt(), - G.expect.call(void 0, _.TokenType.bracketR), + z.expect.call(void 0, _.TokenType.bracketR), Ln(); } - function i0() { + function o0() { Dl(), - G.expect.call(void 0, _.TokenType.bracketR), - G.expect.call(void 0, _.TokenType.bracketR), + z.expect.call(void 0, _.TokenType.bracketR), + z.expect.call(void 0, _.TokenType.bracketR), C.match.call(void 0, _.TokenType.lessThan) || C.match.call(void 0, _.TokenType.parenL) ? Ml() @@ -20296,7 +20296,7 @@ If you need interactivity, consider converting part of this to a Client Componen function Ml() { for ( C.match.call(void 0, _.TokenType.lessThan) && On(), - G.expect.call(void 0, _.TokenType.parenL); + z.expect.call(void 0, _.TokenType.parenL); !C.match.call(void 0, _.TokenType.parenR) && !C.match.call(void 0, _.TokenType.ellipsis) && !ue.state.error; @@ -20304,48 +20304,48 @@ If you need interactivity, consider converting part of this to a Client Componen ) wo(), C.match.call(void 0, _.TokenType.parenR) || - G.expect.call(void 0, _.TokenType.comma); + z.expect.call(void 0, _.TokenType.comma); C.eat.call(void 0, _.TokenType.ellipsis) && wo(), - G.expect.call(void 0, _.TokenType.parenR), + z.expect.call(void 0, _.TokenType.parenR), Ln(); } - function r0() { + function a0() { Ml(); } function Co(e, t, s) { let i; for ( t && C.match.call(void 0, _.TokenType.braceBarL) - ? (G.expect.call(void 0, _.TokenType.braceBarL), + ? (z.expect.call(void 0, _.TokenType.braceBarL), (i = _.TokenType.braceBarR)) - : (G.expect.call(void 0, _.TokenType.braceL), + : (z.expect.call(void 0, _.TokenType.braceL), (i = _.TokenType.braceR)); !C.match.call(void 0, i) && !ue.state.error; ) { - if (s && G.isContextual.call(void 0, Te.ContextualKeyword._proto)) { + if (s && z.isContextual.call(void 0, ye.ContextualKeyword._proto)) { let r = C.lookaheadType.call(void 0); r !== _.TokenType.colon && r !== _.TokenType.question && (C.next.call(void 0), (e = !1)); } - if (e && G.isContextual.call(void 0, Te.ContextualKeyword._static)) { + if (e && z.isContextual.call(void 0, ye.ContextualKeyword._static)) { let r = C.lookaheadType.call(void 0); r !== _.TokenType.colon && r !== _.TokenType.question && C.next.call(void 0); } if ((Fl(), C.eat.call(void 0, _.TokenType.bracketL))) - C.eat.call(void 0, _.TokenType.bracketL) ? i0() : s0(); + C.eat.call(void 0, _.TokenType.bracketL) ? o0() : r0(); else if ( C.match.call(void 0, _.TokenType.parenL) || C.match.call(void 0, _.TokenType.lessThan) ) - r0(); + a0(); else { if ( - G.isContextual.call(void 0, Te.ContextualKeyword._get) || - G.isContextual.call(void 0, Te.ContextualKeyword._set) + z.isContextual.call(void 0, ye.ContextualKeyword._get) || + z.isContextual.call(void 0, ye.ContextualKeyword._set) ) { let r = C.lookaheadType.call(void 0); (r === _.TokenType.name || @@ -20353,16 +20353,16 @@ If you need interactivity, consider converting part of this to a Client Componen r === _.TokenType.num) && C.next.call(void 0); } - o0(); + l0(); } - a0(); + c0(); } - G.expect.call(void 0, i); + z.expect.call(void 0, i); } - function o0() { + function l0() { if (C.match.call(void 0, _.TokenType.ellipsis)) { if ( - (G.expect.call(void 0, _.TokenType.ellipsis), + (z.expect.call(void 0, _.TokenType.ellipsis), C.eat.call(void 0, _.TokenType.comma) || C.eat.call(void 0, _.TokenType.semi), C.match.call(void 0, _.TokenType.braceR)) @@ -20376,12 +20376,12 @@ If you need interactivity, consider converting part of this to a Client Componen ? Ml() : (C.eat.call(void 0, _.TokenType.question), Ln()); } - function a0() { + function c0() { !C.eat.call(void 0, _.TokenType.semi) && !C.eat.call(void 0, _.TokenType.comma) && !C.match.call(void 0, _.TokenType.braceR) && !C.match.call(void 0, _.TokenType.braceBarR) && - G.unexpected.call(void 0); + z.unexpected.call(void 0); } function sh(e) { for ( @@ -20391,22 +20391,22 @@ If you need interactivity, consider converting part of this to a Client Componen ) je.parseIdentifier.call(void 0); } - function l0() { + function u0() { sh(!0), C.match.call(void 0, _.TokenType.lessThan) && Rs(); } - function c0() { - G.expect.call(void 0, _.TokenType._typeof), ih(); + function p0() { + z.expect.call(void 0, _.TokenType._typeof), ih(); } - function u0() { + function h0() { for ( - G.expect.call(void 0, _.TokenType.bracketL); + z.expect.call(void 0, _.TokenType.bracketL); ue.state.pos < ue.input.length && !C.match.call(void 0, _.TokenType.bracketR) && (Wt(), !C.match.call(void 0, _.TokenType.bracketR)); ) - G.expect.call(void 0, _.TokenType.comma); - G.expect.call(void 0, _.TokenType.bracketR); + z.expect.call(void 0, _.TokenType.comma); + z.expect.call(void 0, _.TokenType.bracketR); } function wo() { let e = C.lookaheadType.call(void 0); @@ -20426,7 +20426,7 @@ If you need interactivity, consider converting part of this to a Client Componen ) wo(), C.match.call(void 0, _.TokenType.parenR) || - G.expect.call(void 0, _.TokenType.comma); + z.expect.call(void 0, _.TokenType.comma); C.eat.call(void 0, _.TokenType.ellipsis) && wo(); } function ih() { @@ -20434,11 +20434,11 @@ If you need interactivity, consider converting part of this to a Client Componen t = ue.state.noAnonFunctionType; switch (ue.state.type) { case _.TokenType.name: { - if (G.isContextual.call(void 0, Te.ContextualKeyword._interface)) { - n0(); + if (z.isContextual.call(void 0, ye.ContextualKeyword._interface)) { + i0(); return; } - je.parseIdentifier.call(void 0), l0(); + je.parseIdentifier.call(void 0), u0(); return; } case _.TokenType.braceL: @@ -20448,14 +20448,14 @@ If you need interactivity, consider converting part of this to a Client Componen Co(!1, !0, !1); return; case _.TokenType.bracketL: - u0(); + h0(); return; case _.TokenType.lessThan: On(), - G.expect.call(void 0, _.TokenType.parenL), + z.expect.call(void 0, _.TokenType.parenL), Al(), - G.expect.call(void 0, _.TokenType.parenR), - G.expect.call(void 0, _.TokenType.arrow), + z.expect.call(void 0, _.TokenType.parenR), + z.expect.call(void 0, _.TokenType.arrow), Wt(); return; case _.TokenType.parenL: @@ -20480,12 +20480,12 @@ If you need interactivity, consider converting part of this to a Client Componen C.lookaheadType.call(void 0) === _.TokenType.arrow) )) ) { - G.expect.call(void 0, _.TokenType.parenR); + z.expect.call(void 0, _.TokenType.parenR); return; } else C.eat.call(void 0, _.TokenType.comma); Al(), - G.expect.call(void 0, _.TokenType.parenR), - G.expect.call(void 0, _.TokenType.arrow), + z.expect.call(void 0, _.TokenType.parenR), + z.expect.call(void 0, _.TokenType.arrow), Wt(); return; case _.TokenType.minus: @@ -20503,7 +20503,7 @@ If you need interactivity, consider converting part of this to a Client Componen return; default: if (ue.state.type === _.TokenType._typeof) { - c0(); + p0(); return; } else if (ue.state.type & _.TokenType.IS_KEYWORD) { C.next.call(void 0), @@ -20512,23 +20512,23 @@ If you need interactivity, consider converting part of this to a Client Componen return; } } - G.unexpected.call(void 0); + z.unexpected.call(void 0); } - function p0() { + function f0() { for ( ih(); - !G.canInsertSemicolon.call(void 0) && + !z.canInsertSemicolon.call(void 0) && (C.match.call(void 0, _.TokenType.bracketL) || C.match.call(void 0, _.TokenType.questionDot)); ) C.eat.call(void 0, _.TokenType.questionDot), - G.expect.call(void 0, _.TokenType.bracketL), + z.expect.call(void 0, _.TokenType.bracketL), C.eat.call(void 0, _.TokenType.bracketR) || - (Wt(), G.expect.call(void 0, _.TokenType.bracketR)); + (Wt(), z.expect.call(void 0, _.TokenType.bracketR)); } function rh() { - C.eat.call(void 0, _.TokenType.question) ? rh() : p0(); + C.eat.call(void 0, _.TokenType.question) ? rh() : f0(); } function th() { rh(), @@ -20544,7 +20544,7 @@ If you need interactivity, consider converting part of this to a Client Componen ) th(); } - function h0() { + function d0() { for ( C.eat.call(void 0, _.TokenType.bitwiseOR), nh(); C.eat.call(void 0, _.TokenType.bitwiseOR); @@ -20553,7 +20553,7 @@ If you need interactivity, consider converting part of this to a Client Componen nh(); } function Wt() { - h0(); + d0(); } function vi() { Ln(); @@ -20570,12 +20570,12 @@ If you need interactivity, consider converting part of this to a Client Componen (ue.state.tokens[ue.state.tokens.length - 1].isType = !0)); } Je.flowParseVariance = Fl; - function f0(e) { + function m0(e) { C.match.call(void 0, _.TokenType.colon) && Pl(), je.parseFunctionBody.call(void 0, !1, e); } - Je.flowParseFunctionBodyAndFinish = f0; - function d0(e, t, s) { + Je.flowParseFunctionBodyAndFinish = m0; + function y0(e, t, s) { if ( C.match.call(void 0, _.TokenType.questionDot) && C.lookaheadType.call(void 0) === _.TokenType.lessThan @@ -20586,14 +20586,14 @@ If you need interactivity, consider converting part of this to a Client Componen } C.next.call(void 0), Rs(), - G.expect.call(void 0, _.TokenType.parenL), + z.expect.call(void 0, _.TokenType.parenL), je.parseCallExpressionArguments.call(void 0); return; } else if (!t && C.match.call(void 0, _.TokenType.lessThan)) { let i = ue.state.snapshot(); if ( (Rs(), - G.expect.call(void 0, _.TokenType.parenL), + z.expect.call(void 0, _.TokenType.parenL), je.parseCallExpressionArguments.call(void 0), ue.state.error) ) @@ -20602,34 +20602,34 @@ If you need interactivity, consider converting part of this to a Client Componen } je.baseParseSubscript.call(void 0, e, t, s); } - Je.flowParseSubscript = d0; - function m0() { + Je.flowParseSubscript = y0; + function T0() { if (C.match.call(void 0, _.TokenType.lessThan)) { let e = ue.state.snapshot(); Rs(), ue.state.error && ue.state.restoreFromSnapshot(e); } } - Je.flowStartParseNewArguments = m0; - function T0() { + Je.flowStartParseNewArguments = T0; + function k0() { if ( C.match.call(void 0, _.TokenType.name) && - ue.state.contextualKeyword === Te.ContextualKeyword._interface + ue.state.contextualKeyword === ye.ContextualKeyword._interface ) { let e = C.pushTypeContext.call(void 0, 0); return C.next.call(void 0), Rl(), C.popTypeContext.call(void 0, e), !0; - } else if (G.isContextual.call(void 0, Te.ContextualKeyword._enum)) + } else if (z.isContextual.call(void 0, ye.ContextualKeyword._enum)) return ah(), !0; return !1; } - Je.flowTryParseStatement = T0; - function y0() { - return G.isContextual.call(void 0, Te.ContextualKeyword._enum) + Je.flowTryParseStatement = k0; + function v0() { + return z.isContextual.call(void 0, ye.ContextualKeyword._enum) ? (ah(), !0) : !1; } - Je.flowTryParseExportDefaultExpression = y0; - function k0(e) { - if (e === Te.ContextualKeyword._declare) { + Je.flowTryParseExportDefaultExpression = v0; + function x0(e) { + if (e === ye.ContextualKeyword._declare) { if ( C.match.call(void 0, _.TokenType._class) || C.match.call(void 0, _.TokenType.name) || @@ -20641,76 +20641,76 @@ If you need interactivity, consider converting part of this to a Client Componen El(), C.popTypeContext.call(void 0, t); } } else if (C.match.call(void 0, _.TokenType.name)) { - if (e === Te.ContextualKeyword._interface) { + if (e === ye.ContextualKeyword._interface) { let t = C.pushTypeContext.call(void 0, 1); Rl(), C.popTypeContext.call(void 0, t); - } else if (e === Te.ContextualKeyword._type) { + } else if (e === ye.ContextualKeyword._type) { let t = C.pushTypeContext.call(void 0, 1); Ll(), C.popTypeContext.call(void 0, t); - } else if (e === Te.ContextualKeyword._opaque) { + } else if (e === ye.ContextualKeyword._opaque) { let t = C.pushTypeContext.call(void 0, 1); Ol(!1), C.popTypeContext.call(void 0, t); } } - G.semicolon.call(void 0); + z.semicolon.call(void 0); } - Je.flowParseIdentifierStatement = k0; - function v0() { + Je.flowParseIdentifierStatement = x0; + function g0() { return ( - G.isContextual.call(void 0, Te.ContextualKeyword._type) || - G.isContextual.call(void 0, Te.ContextualKeyword._interface) || - G.isContextual.call(void 0, Te.ContextualKeyword._opaque) || - G.isContextual.call(void 0, Te.ContextualKeyword._enum) + z.isContextual.call(void 0, ye.ContextualKeyword._type) || + z.isContextual.call(void 0, ye.ContextualKeyword._interface) || + z.isContextual.call(void 0, ye.ContextualKeyword._opaque) || + z.isContextual.call(void 0, ye.ContextualKeyword._enum) ); } - Je.flowShouldParseExportDeclaration = v0; - function x0() { + Je.flowShouldParseExportDeclaration = g0; + function _0() { return ( C.match.call(void 0, _.TokenType.name) && - (ue.state.contextualKeyword === Te.ContextualKeyword._type || - ue.state.contextualKeyword === Te.ContextualKeyword._interface || - ue.state.contextualKeyword === Te.ContextualKeyword._opaque || - ue.state.contextualKeyword === Te.ContextualKeyword._enum) + (ue.state.contextualKeyword === ye.ContextualKeyword._type || + ue.state.contextualKeyword === ye.ContextualKeyword._interface || + ue.state.contextualKeyword === ye.ContextualKeyword._opaque || + ue.state.contextualKeyword === ye.ContextualKeyword._enum) ); } - Je.flowShouldDisallowExportDefaultSpecifier = x0; - function g0() { - if (G.isContextual.call(void 0, Te.ContextualKeyword._type)) { + Je.flowShouldDisallowExportDefaultSpecifier = _0; + function b0() { + if (z.isContextual.call(void 0, ye.ContextualKeyword._type)) { let e = C.pushTypeContext.call(void 0, 1); C.next.call(void 0), C.match.call(void 0, _.TokenType.braceL) - ? (Ts.parseExportSpecifiers.call(void 0), - Ts.parseExportFrom.call(void 0)) + ? (ys.parseExportSpecifiers.call(void 0), + ys.parseExportFrom.call(void 0)) : Ll(), C.popTypeContext.call(void 0, e); - } else if (G.isContextual.call(void 0, Te.ContextualKeyword._opaque)) { + } else if (z.isContextual.call(void 0, ye.ContextualKeyword._opaque)) { let e = C.pushTypeContext.call(void 0, 1); C.next.call(void 0), Ol(!1), C.popTypeContext.call(void 0, e); - } else if (G.isContextual.call(void 0, Te.ContextualKeyword._interface)) { + } else if (z.isContextual.call(void 0, ye.ContextualKeyword._interface)) { let e = C.pushTypeContext.call(void 0, 1); C.next.call(void 0), Rl(), C.popTypeContext.call(void 0, e); - } else Ts.parseStatement.call(void 0, !0); + } else ys.parseStatement.call(void 0, !0); } - Je.flowParseExportDeclaration = g0; - function _0() { + Je.flowParseExportDeclaration = b0; + function C0() { return ( C.match.call(void 0, _.TokenType.star) || - (G.isContextual.call(void 0, Te.ContextualKeyword._type) && + (z.isContextual.call(void 0, ye.ContextualKeyword._type) && C.lookaheadType.call(void 0) === _.TokenType.star) ); } - Je.flowShouldParseExportStar = _0; - function b0() { - if (G.eatContextual.call(void 0, Te.ContextualKeyword._type)) { + Je.flowShouldParseExportStar = C0; + function w0() { + if (z.eatContextual.call(void 0, ye.ContextualKeyword._type)) { let e = C.pushTypeContext.call(void 0, 2); - Ts.baseParseExportStar.call(void 0), C.popTypeContext.call(void 0, e); - } else Ts.baseParseExportStar.call(void 0); + ys.baseParseExportStar.call(void 0), C.popTypeContext.call(void 0, e); + } else ys.baseParseExportStar.call(void 0); } - Je.flowParseExportStar = b0; - function C0(e) { + Je.flowParseExportStar = w0; + function S0(e) { if ( (e && C.match.call(void 0, _.TokenType.lessThan) && Rs(), - G.isContextual.call(void 0, Te.ContextualKeyword._implements)) + z.isContextual.call(void 0, ye.ContextualKeyword._implements)) ) { let t = C.pushTypeContext.call(void 0, 0); C.next.call(void 0), @@ -20721,40 +20721,40 @@ If you need interactivity, consider converting part of this to a Client Componen C.popTypeContext.call(void 0, t); } } - Je.flowAfterParseClassSuper = C0; - function w0() { + Je.flowAfterParseClassSuper = S0; + function I0() { C.match.call(void 0, _.TokenType.lessThan) && (On(), - C.match.call(void 0, _.TokenType.parenL) || G.unexpected.call(void 0)); + C.match.call(void 0, _.TokenType.parenL) || z.unexpected.call(void 0)); } - Je.flowStartParseObjPropValue = w0; - function S0() { + Je.flowStartParseObjPropValue = I0; + function E0() { let e = C.pushTypeContext.call(void 0, 0); C.eat.call(void 0, _.TokenType.question), C.match.call(void 0, _.TokenType.colon) && vi(), C.popTypeContext.call(void 0, e); } - Je.flowParseAssignableListItemTypes = S0; - function I0() { + Je.flowParseAssignableListItemTypes = E0; + function A0() { if ( C.match.call(void 0, _.TokenType._typeof) || - G.isContextual.call(void 0, Te.ContextualKeyword._type) + z.isContextual.call(void 0, ye.ContextualKeyword._type) ) { let e = C.lookaheadTypeAndKeyword.call(void 0); - (Hk(e) || + (Gk(e) || e.type === _.TokenType.braceL || e.type === _.TokenType.star) && C.next.call(void 0); } } - Je.flowStartParseImportSpecifiers = I0; - function E0() { + Je.flowStartParseImportSpecifiers = A0; + function P0() { let e = - ue.state.contextualKeyword === Te.ContextualKeyword._type || + ue.state.contextualKeyword === ye.ContextualKeyword._type || ue.state.type === _.TokenType._typeof; e ? C.next.call(void 0) : je.parseIdentifier.call(void 0), - G.isContextual.call(void 0, Te.ContextualKeyword._as) && - !G.isLookaheadContextual.call(void 0, Te.ContextualKeyword._as) + z.isContextual.call(void 0, ye.ContextualKeyword._as) && + !z.isLookaheadContextual.call(void 0, ye.ContextualKeyword._as) ? (je.parseIdentifier.call(void 0), (e && !C.match.call(void 0, _.TokenType.name) && @@ -20764,22 +20764,22 @@ If you need interactivity, consider converting part of this to a Client Componen (C.match.call(void 0, _.TokenType.name) || ue.state.type & _.TokenType.IS_KEYWORD) && je.parseIdentifier.call(void 0), - G.eatContextual.call(void 0, Te.ContextualKeyword._as) && + z.eatContextual.call(void 0, ye.ContextualKeyword._as) && je.parseIdentifier.call(void 0)); } - Je.flowParseImportSpecifier = E0; - function A0() { + Je.flowParseImportSpecifier = P0; + function N0() { if (C.match.call(void 0, _.TokenType.lessThan)) { let e = C.pushTypeContext.call(void 0, 0); On(), C.popTypeContext.call(void 0, e); } } - Je.flowStartParseFunctionParams = A0; - function P0() { + Je.flowStartParseFunctionParams = N0; + function R0() { C.match.call(void 0, _.TokenType.colon) && vi(); } - Je.flowAfterParseVarHead = P0; - function N0() { + Je.flowAfterParseVarHead = R0; + function L0() { if (C.match.call(void 0, _.TokenType.colon)) { let e = ue.state.noAnonFunctionType; (ue.state.noAnonFunctionType = !0), @@ -20787,8 +20787,8 @@ If you need interactivity, consider converting part of this to a Client Componen (ue.state.noAnonFunctionType = e); } } - Je.flowStartParseAsyncArrowFromCallExpression = N0; - function R0(e, t) { + Je.flowStartParseAsyncArrowFromCallExpression = L0; + function O0(e, t) { if (C.match.call(void 0, _.TokenType.lessThan)) { let s = ue.state.snapshot(), i = je.baseParseMaybeAssign.call(void 0, e, t); @@ -20804,12 +20804,12 @@ If you need interactivity, consider converting part of this to a Client Componen i) ) return !0; - G.unexpected.call(void 0); + z.unexpected.call(void 0); } return je.baseParseMaybeAssign.call(void 0, e, t); } - Je.flowParseMaybeAssign = R0; - function L0() { + Je.flowParseMaybeAssign = O0; + function D0() { if (C.match.call(void 0, _.TokenType.colon)) { let e = C.pushTypeContext.call(void 0, 0), t = ue.state.snapshot(), @@ -20817,51 +20817,51 @@ If you need interactivity, consider converting part of this to a Client Componen (ue.state.noAnonFunctionType = !0), Pl(), (ue.state.noAnonFunctionType = s), - G.canInsertSemicolon.call(void 0) && G.unexpected.call(void 0), - C.match.call(void 0, _.TokenType.arrow) || G.unexpected.call(void 0), + z.canInsertSemicolon.call(void 0) && z.unexpected.call(void 0), + C.match.call(void 0, _.TokenType.arrow) || z.unexpected.call(void 0), ue.state.error && ue.state.restoreFromSnapshot(t), C.popTypeContext.call(void 0, e); } return C.eat.call(void 0, _.TokenType.arrow); } - Je.flowParseArrow = L0; - function O0(e, t = !1) { + Je.flowParseArrow = D0; + function M0(e, t = !1) { if ( ue.state.tokens[ue.state.tokens.length - 1].contextualKeyword === - Te.ContextualKeyword._async && + ye.ContextualKeyword._async && C.match.call(void 0, _.TokenType.lessThan) ) { let s = ue.state.snapshot(); - if (D0() && !ue.state.error) return; + if (F0() && !ue.state.error) return; ue.state.restoreFromSnapshot(s); } je.baseParseSubscripts.call(void 0, e, t); } - Je.flowParseSubscripts = O0; - function D0() { + Je.flowParseSubscripts = M0; + function F0() { ue.state.scopeDepth++; let e = ue.state.tokens.length; return ( - Ts.parseFunctionParams.call(void 0), + ys.parseFunctionParams.call(void 0), je.parseArrow.call(void 0) ? (je.parseArrowExpression.call(void 0, e), !0) : !1 ); } function ah() { - G.expectContextual.call(void 0, Te.ContextualKeyword._enum), + z.expectContextual.call(void 0, ye.ContextualKeyword._enum), (ue.state.tokens[ue.state.tokens.length - 1].type = _.TokenType._enum), je.parseIdentifier.call(void 0), - M0(); + B0(); } - function M0() { - G.eatContextual.call(void 0, Te.ContextualKeyword._of) && + function B0() { + z.eatContextual.call(void 0, ye.ContextualKeyword._of) && C.next.call(void 0), - G.expect.call(void 0, _.TokenType.braceL), - F0(), - G.expect.call(void 0, _.TokenType.braceR); + z.expect.call(void 0, _.TokenType.braceL), + V0(), + z.expect.call(void 0, _.TokenType.braceR); } - function F0() { + function V0() { for ( ; !C.match.call(void 0, _.TokenType.braceR) && @@ -20869,125 +20869,125 @@ If you need interactivity, consider converting part of this to a Client Componen !C.eat.call(void 0, _.TokenType.ellipsis); ) - B0(), + j0(), C.match.call(void 0, _.TokenType.braceR) || - G.expect.call(void 0, _.TokenType.comma); + z.expect.call(void 0, _.TokenType.comma); } - function B0() { + function j0() { je.parseIdentifier.call(void 0), C.eat.call(void 0, _.TokenType.eq) && C.next.call(void 0); } }); - var nr = Z((yt) => { + var nr = Z((Tt) => { 'use strict'; - Object.defineProperty(yt, '__esModule', {value: !0}); - var V0 = Ul(), + Object.defineProperty(Tt, '__esModule', {value: !0}); + var $0 = Ul(), Ft = Ji(), dt = hi(), $ = xt(), ke = It(), - ys = qr(), - O = be(), + Ts = qr(), + D = be(), lh = Qt(), P = Zt(), De = Ns(), ks = lo(), ee = cs(); - function j0() { + function q0() { if ( - (ql(O.TokenType.eof), - P.state.scopes.push(new ys.Scope(0, P.state.tokens.length, !0)), + (ql(D.TokenType.eof), + P.state.scopes.push(new Ts.Scope(0, P.state.tokens.length, !0)), P.state.scopeDepth !== 0) ) throw new Error( `Invalid scope depth at end of file: ${P.state.scopeDepth}` ); - return new V0.File(P.state.tokens, P.state.scopes); + return new $0.File(P.state.tokens, P.state.scopes); } - yt.parseTopLevel = j0; + Tt.parseTopLevel = q0; function _n(e) { (P.isFlowEnabled && Ft.flowTryParseStatement.call(void 0)) || - ($.match.call(void 0, O.TokenType.at) && $l(), $0(e)); + ($.match.call(void 0, D.TokenType.at) && $l(), K0(e)); } - yt.parseStatement = _n; - function $0(e) { + Tt.parseStatement = _n; + function K0(e) { if (P.isTypeScriptEnabled && dt.tsTryParseStatementContent.call(void 0)) return; let t = P.state.type; switch (t) { - case O.TokenType._break: - case O.TokenType._continue: - K0(); - return; - case O.TokenType._debugger: - U0(); - return; - case O.TokenType._do: + case D.TokenType._break: + case D.TokenType._continue: H0(); return; - case O.TokenType._for: + case D.TokenType._debugger: W0(); return; - case O.TokenType._function: - if ($.lookaheadType.call(void 0) === O.TokenType.dot) break; - e || ee.unexpected.call(void 0), X0(); + case D.TokenType._do: + G0(); return; - case O.TokenType._class: - e || ee.unexpected.call(void 0), Io(!0); + case D.TokenType._for: + z0(); return; - case O.TokenType._if: - Y0(); + case D.TokenType._function: + if ($.lookaheadType.call(void 0) === D.TokenType.dot) break; + e || ee.unexpected.call(void 0), J0(); return; - case O.TokenType._return: - J0(); + case D.TokenType._class: + e || ee.unexpected.call(void 0), Io(!0); return; - case O.TokenType._switch: + case D.TokenType._if: Q0(); return; - case O.TokenType._throw: + case D.TokenType._return: Z0(); return; - case O.TokenType._try: + case D.TokenType._switch: + ev(); + return; + case D.TokenType._throw: tv(); return; - case O.TokenType._let: - case O.TokenType._const: + case D.TokenType._try: + sv(); + return; + case D.TokenType._let: + case D.TokenType._const: e || ee.unexpected.call(void 0); - case O.TokenType._var: - Vl(t !== O.TokenType._var); + case D.TokenType._var: + Vl(t !== D.TokenType._var); return; - case O.TokenType._while: - nv(); + case D.TokenType._while: + iv(); return; - case O.TokenType.braceL: + case D.TokenType.braceL: gi(); return; - case O.TokenType.semi: - sv(); + case D.TokenType.semi: + rv(); return; - case O.TokenType._export: - case O.TokenType._import: { + case D.TokenType._export: + case D.TokenType._import: { let r = $.lookaheadType.call(void 0); - if (r === O.TokenType.parenL || r === O.TokenType.dot) break; - $.next.call(void 0), t === O.TokenType._import ? xh() : yh(); + if (r === D.TokenType.parenL || r === D.TokenType.dot) break; + $.next.call(void 0), t === D.TokenType._import ? xh() : Th(); return; } - case O.TokenType.name: + case D.TokenType.name: if (P.state.contextualKeyword === ke.ContextualKeyword._async) { let r = P.state.start, a = P.state.snapshot(); if ( ($.next.call(void 0), - $.match.call(void 0, O.TokenType._function) && + $.match.call(void 0, D.TokenType._function) && !ee.canInsertSemicolon.call(void 0)) ) { - ee.expect.call(void 0, O.TokenType._function), lr(r, !0); + ee.expect.call(void 0, D.TokenType._function), lr(r, !0); return; } else P.state.restoreFromSnapshot(a); } else if ( P.state.contextualKeyword === ke.ContextualKeyword._using && !ee.hasFollowingLineBreak.call(void 0) && - $.lookaheadType.call(void 0) === O.TokenType.name + $.lookaheadType.call(void 0) === D.TokenType.name ) { Vl(!0); return; @@ -21000,92 +21000,92 @@ If you need interactivity, consider converting part of this to a Client Componen let i = null; if (P.state.tokens.length === s + 1) { let r = P.state.tokens[P.state.tokens.length - 1]; - r.type === O.TokenType.name && (i = r.contextualKeyword); + r.type === D.TokenType.name && (i = r.contextualKeyword); } if (i == null) { ee.semicolon.call(void 0); return; } - $.eat.call(void 0, O.TokenType.colon) ? iv() : rv(i); + $.eat.call(void 0, D.TokenType.colon) ? ov() : av(i); } function $l() { - for (; $.match.call(void 0, O.TokenType.at); ) ph(); + for (; $.match.call(void 0, D.TokenType.at); ) ph(); } - yt.parseDecorators = $l; + Tt.parseDecorators = $l; function ph() { - if (($.next.call(void 0), $.eat.call(void 0, O.TokenType.parenL))) + if (($.next.call(void 0), $.eat.call(void 0, D.TokenType.parenL))) De.parseExpression.call(void 0), - ee.expect.call(void 0, O.TokenType.parenR); + ee.expect.call(void 0, D.TokenType.parenR); else { for ( De.parseIdentifier.call(void 0); - $.eat.call(void 0, O.TokenType.dot); + $.eat.call(void 0, D.TokenType.dot); ) De.parseIdentifier.call(void 0); - q0(); + U0(); } } - function q0() { + function U0() { P.isTypeScriptEnabled ? dt.tsParseMaybeDecoratorArguments.call(void 0) : hh(); } function hh() { - $.eat.call(void 0, O.TokenType.parenL) && + $.eat.call(void 0, D.TokenType.parenL) && De.parseCallExpressionArguments.call(void 0); } - yt.baseParseMaybeDecoratorArguments = hh; - function K0() { + Tt.baseParseMaybeDecoratorArguments = hh; + function H0() { $.next.call(void 0), ee.isLineTerminator.call(void 0) || (De.parseIdentifier.call(void 0), ee.semicolon.call(void 0)); } - function U0() { + function W0() { $.next.call(void 0), ee.semicolon.call(void 0); } - function H0() { + function G0() { $.next.call(void 0), _n(!1), - ee.expect.call(void 0, O.TokenType._while), + ee.expect.call(void 0, D.TokenType._while), De.parseParenExpression.call(void 0), - $.eat.call(void 0, O.TokenType.semi); + $.eat.call(void 0, D.TokenType.semi); } - function W0() { + function z0() { P.state.scopeDepth++; let e = P.state.tokens.length; - z0(); + Y0(); let t = P.state.tokens.length; - P.state.scopes.push(new ys.Scope(e, t, !1)), P.state.scopeDepth--; + P.state.scopes.push(new Ts.Scope(e, t, !1)), P.state.scopeDepth--; } - function G0() { + function X0() { return !( !ee.isContextual.call(void 0, ke.ContextualKeyword._using) || ee.isLookaheadContextual.call(void 0, ke.ContextualKeyword._of) ); } - function z0() { + function Y0() { $.next.call(void 0); let e = !1; if ( (ee.isContextual.call(void 0, ke.ContextualKeyword._await) && ((e = !0), $.next.call(void 0)), - ee.expect.call(void 0, O.TokenType.parenL), - $.match.call(void 0, O.TokenType.semi)) + ee.expect.call(void 0, D.TokenType.parenL), + $.match.call(void 0, D.TokenType.semi)) ) { e && ee.unexpected.call(void 0), Bl(); return; } if ( - $.match.call(void 0, O.TokenType._var) || - $.match.call(void 0, O.TokenType._let) || - $.match.call(void 0, O.TokenType._const) || - G0() + $.match.call(void 0, D.TokenType._var) || + $.match.call(void 0, D.TokenType._let) || + $.match.call(void 0, D.TokenType._const) || + X0() ) { if ( ($.next.call(void 0), - fh(!0, P.state.type !== O.TokenType._var), - $.match.call(void 0, O.TokenType._in) || + fh(!0, P.state.type !== D.TokenType._var), + $.match.call(void 0, D.TokenType._in) || ee.isContextual.call(void 0, ke.ContextualKeyword._of)) ) { ch(e); @@ -21096,7 +21096,7 @@ If you need interactivity, consider converting part of this to a Client Componen } if ( (De.parseExpression.call(void 0, !0), - $.match.call(void 0, O.TokenType._in) || + $.match.call(void 0, D.TokenType._in) || ee.isContextual.call(void 0, ke.ContextualKeyword._of)) ) { ch(e); @@ -21104,89 +21104,89 @@ If you need interactivity, consider converting part of this to a Client Componen } e && ee.unexpected.call(void 0), Bl(); } - function X0() { + function J0() { let e = P.state.start; $.next.call(void 0), lr(e, !0); } - function Y0() { + function Q0() { $.next.call(void 0), De.parseParenExpression.call(void 0), _n(!1), - $.eat.call(void 0, O.TokenType._else) && _n(!1); + $.eat.call(void 0, D.TokenType._else) && _n(!1); } - function J0() { + function Z0() { $.next.call(void 0), ee.isLineTerminator.call(void 0) || (De.parseExpression.call(void 0), ee.semicolon.call(void 0)); } - function Q0() { + function ev() { $.next.call(void 0), De.parseParenExpression.call(void 0), P.state.scopeDepth++; let e = P.state.tokens.length; for ( - ee.expect.call(void 0, O.TokenType.braceL); - !$.match.call(void 0, O.TokenType.braceR) && !P.state.error; + ee.expect.call(void 0, D.TokenType.braceL); + !$.match.call(void 0, D.TokenType.braceR) && !P.state.error; ) if ( - $.match.call(void 0, O.TokenType._case) || - $.match.call(void 0, O.TokenType._default) + $.match.call(void 0, D.TokenType._case) || + $.match.call(void 0, D.TokenType._default) ) { - let s = $.match.call(void 0, O.TokenType._case); + let s = $.match.call(void 0, D.TokenType._case); $.next.call(void 0), s && De.parseExpression.call(void 0), - ee.expect.call(void 0, O.TokenType.colon); + ee.expect.call(void 0, D.TokenType.colon); } else _n(!0); $.next.call(void 0); let t = P.state.tokens.length; - P.state.scopes.push(new ys.Scope(e, t, !1)), P.state.scopeDepth--; + P.state.scopes.push(new Ts.Scope(e, t, !1)), P.state.scopeDepth--; } - function Z0() { + function tv() { $.next.call(void 0), De.parseExpression.call(void 0), ee.semicolon.call(void 0); } - function ev() { + function nv() { ks.parseBindingAtom.call(void 0, !0), P.isTypeScriptEnabled && dt.tsTryParseTypeAnnotation.call(void 0); } - function tv() { + function sv() { if ( - ($.next.call(void 0), gi(), $.match.call(void 0, O.TokenType._catch)) + ($.next.call(void 0), gi(), $.match.call(void 0, D.TokenType._catch)) ) { $.next.call(void 0); let e = null; if ( - ($.match.call(void 0, O.TokenType.parenL) && + ($.match.call(void 0, D.TokenType.parenL) && (P.state.scopeDepth++, (e = P.state.tokens.length), - ee.expect.call(void 0, O.TokenType.parenL), - ev(), - ee.expect.call(void 0, O.TokenType.parenR)), + ee.expect.call(void 0, D.TokenType.parenL), + nv(), + ee.expect.call(void 0, D.TokenType.parenR)), gi(), e != null) ) { let t = P.state.tokens.length; - P.state.scopes.push(new ys.Scope(e, t, !1)), P.state.scopeDepth--; + P.state.scopes.push(new Ts.Scope(e, t, !1)), P.state.scopeDepth--; } } - $.eat.call(void 0, O.TokenType._finally) && gi(); + $.eat.call(void 0, D.TokenType._finally) && gi(); } function Vl(e) { $.next.call(void 0), fh(!1, e), ee.semicolon.call(void 0); } - yt.parseVarStatement = Vl; - function nv() { + Tt.parseVarStatement = Vl; + function iv() { $.next.call(void 0), De.parseParenExpression.call(void 0), _n(!1); } - function sv() { + function rv() { $.next.call(void 0); } - function iv() { + function ov() { _n(!0); } - function rv(e) { + function av(e) { P.isTypeScriptEnabled ? dt.tsParseIdentifierStatement.call(void 0, e) : P.isFlowEnabled @@ -21196,26 +21196,26 @@ If you need interactivity, consider converting part of this to a Client Componen function gi(e = !1, t = 0) { let s = P.state.tokens.length; P.state.scopeDepth++, - ee.expect.call(void 0, O.TokenType.braceL), + ee.expect.call(void 0, D.TokenType.braceL), t && (P.state.tokens[P.state.tokens.length - 1].contextId = t), - ql(O.TokenType.braceR), + ql(D.TokenType.braceR), t && (P.state.tokens[P.state.tokens.length - 1].contextId = t); let i = P.state.tokens.length; - P.state.scopes.push(new ys.Scope(s, i, e)), P.state.scopeDepth--; + P.state.scopes.push(new Ts.Scope(s, i, e)), P.state.scopeDepth--; } - yt.parseBlock = gi; + Tt.parseBlock = gi; function ql(e) { for (; !$.eat.call(void 0, e) && !P.state.error; ) _n(!0); } - yt.parseBlockBody = ql; + Tt.parseBlockBody = ql; function Bl() { - ee.expect.call(void 0, O.TokenType.semi), - $.match.call(void 0, O.TokenType.semi) || + ee.expect.call(void 0, D.TokenType.semi), + $.match.call(void 0, D.TokenType.semi) || De.parseExpression.call(void 0), - ee.expect.call(void 0, O.TokenType.semi), - $.match.call(void 0, O.TokenType.parenR) || + ee.expect.call(void 0, D.TokenType.semi), + $.match.call(void 0, D.TokenType.parenR) || De.parseExpression.call(void 0), - ee.expect.call(void 0, O.TokenType.parenR), + ee.expect.call(void 0, D.TokenType.parenR), _n(!1); } function ch(e) { @@ -21223,106 +21223,106 @@ If you need interactivity, consider converting part of this to a Client Componen ? ee.eatContextual.call(void 0, ke.ContextualKeyword._of) : $.next.call(void 0), De.parseExpression.call(void 0), - ee.expect.call(void 0, O.TokenType.parenR), + ee.expect.call(void 0, D.TokenType.parenR), _n(!1); } function fh(e, t) { for (;;) { - if ((ov(t), $.eat.call(void 0, O.TokenType.eq))) { + if ((lv(t), $.eat.call(void 0, D.TokenType.eq))) { let s = P.state.tokens.length - 1; De.parseMaybeAssign.call(void 0, e), (P.state.tokens[s].rhsEndIndex = P.state.tokens.length); } - if (!$.eat.call(void 0, O.TokenType.comma)) break; + if (!$.eat.call(void 0, D.TokenType.comma)) break; } } - function ov(e) { + function lv(e) { ks.parseBindingAtom.call(void 0, e), P.isTypeScriptEnabled ? dt.tsAfterParseVarHead.call(void 0) : P.isFlowEnabled && Ft.flowAfterParseVarHead.call(void 0); } function lr(e, t, s = !1) { - $.match.call(void 0, O.TokenType.star) && $.next.call(void 0), + $.match.call(void 0, D.TokenType.star) && $.next.call(void 0), t && !s && - !$.match.call(void 0, O.TokenType.name) && - !$.match.call(void 0, O.TokenType._yield) && + !$.match.call(void 0, D.TokenType.name) && + !$.match.call(void 0, D.TokenType._yield) && ee.unexpected.call(void 0); let i = null; - $.match.call(void 0, O.TokenType.name) && + $.match.call(void 0, D.TokenType.name) && (t || ((i = P.state.tokens.length), P.state.scopeDepth++), ks.parseBindingIdentifier.call(void 0, !1)); let r = P.state.tokens.length; P.state.scopeDepth++, dh(), De.parseFunctionBodyAndFinish.call(void 0, e); let a = P.state.tokens.length; - P.state.scopes.push(new ys.Scope(r, a, !0)), + P.state.scopes.push(new Ts.Scope(r, a, !0)), P.state.scopeDepth--, i !== null && - (P.state.scopes.push(new ys.Scope(i, a, !0)), P.state.scopeDepth--); + (P.state.scopes.push(new Ts.Scope(i, a, !0)), P.state.scopeDepth--); } - yt.parseFunction = lr; + Tt.parseFunction = lr; function dh(e = !1, t = 0) { P.isTypeScriptEnabled ? dt.tsStartParseFunctionParams.call(void 0) : P.isFlowEnabled && Ft.flowStartParseFunctionParams.call(void 0), - ee.expect.call(void 0, O.TokenType.parenL), + ee.expect.call(void 0, D.TokenType.parenL), t && (P.state.tokens[P.state.tokens.length - 1].contextId = t), - ks.parseBindingList.call(void 0, O.TokenType.parenR, !1, !1, e, t), + ks.parseBindingList.call(void 0, D.TokenType.parenR, !1, !1, e, t), t && (P.state.tokens[P.state.tokens.length - 1].contextId = t); } - yt.parseFunctionParams = dh; + Tt.parseFunctionParams = dh; function Io(e, t = !1) { let s = P.getNextContextId.call(void 0); $.next.call(void 0), (P.state.tokens[P.state.tokens.length - 1].contextId = s), (P.state.tokens[P.state.tokens.length - 1].isExpression = !e); let i = null; - e || ((i = P.state.tokens.length), P.state.scopeDepth++), uv(e, t), pv(); + e || ((i = P.state.tokens.length), P.state.scopeDepth++), hv(e, t), fv(); let r = P.state.tokens.length; if ( - (av(s), + (cv(s), !P.state.error && ((P.state.tokens[r].contextId = s), (P.state.tokens[P.state.tokens.length - 1].contextId = s), i !== null)) ) { let a = P.state.tokens.length; - P.state.scopes.push(new ys.Scope(i, a, !1)), P.state.scopeDepth--; + P.state.scopes.push(new Ts.Scope(i, a, !1)), P.state.scopeDepth--; } } - yt.parseClass = Io; + Tt.parseClass = Io; function mh() { return ( - $.match.call(void 0, O.TokenType.eq) || - $.match.call(void 0, O.TokenType.semi) || - $.match.call(void 0, O.TokenType.braceR) || - $.match.call(void 0, O.TokenType.bang) || - $.match.call(void 0, O.TokenType.colon) + $.match.call(void 0, D.TokenType.eq) || + $.match.call(void 0, D.TokenType.semi) || + $.match.call(void 0, D.TokenType.braceR) || + $.match.call(void 0, D.TokenType.bang) || + $.match.call(void 0, D.TokenType.colon) ); } - function Th() { + function yh() { return ( - $.match.call(void 0, O.TokenType.parenL) || - $.match.call(void 0, O.TokenType.lessThan) + $.match.call(void 0, D.TokenType.parenL) || + $.match.call(void 0, D.TokenType.lessThan) ); } - function av(e) { + function cv(e) { for ( - ee.expect.call(void 0, O.TokenType.braceL); - !$.eat.call(void 0, O.TokenType.braceR) && !P.state.error; + ee.expect.call(void 0, D.TokenType.braceL); + !$.eat.call(void 0, D.TokenType.braceR) && !P.state.error; ) { - if ($.eat.call(void 0, O.TokenType.semi)) continue; - if ($.match.call(void 0, O.TokenType.at)) { + if ($.eat.call(void 0, D.TokenType.semi)) continue; + if ($.match.call(void 0, D.TokenType.at)) { ph(); continue; } let t = P.state.start; - lv(t, e); + uv(t, e); } } - function lv(e, t) { + function uv(e, t) { P.isTypeScriptEnabled && dt.tsParseModifiers.call(void 0, [ ke.ContextualKeyword._declare, @@ -21333,10 +21333,10 @@ If you need interactivity, consider converting part of this to a Client Componen ]); let s = !1; if ( - $.match.call(void 0, O.TokenType.name) && + $.match.call(void 0, D.TokenType.name) && P.state.contextualKeyword === ke.ContextualKeyword._static ) { - if ((De.parseIdentifier.call(void 0), Th())) { + if ((De.parseIdentifier.call(void 0), yh())) { or(e, !1); return; } else if (mh()) { @@ -21345,23 +21345,23 @@ If you need interactivity, consider converting part of this to a Client Componen } if ( ((P.state.tokens[P.state.tokens.length - 1].type = - O.TokenType._static), + D.TokenType._static), (s = !0), - $.match.call(void 0, O.TokenType.braceL)) + $.match.call(void 0, D.TokenType.braceL)) ) { (P.state.tokens[P.state.tokens.length - 1].contextId = t), gi(); return; } } - cv(e, s, t); + pv(e, s, t); } - function cv(e, t, s) { + function pv(e, t, s) { if ( P.isTypeScriptEnabled && dt.tsTryParseClassMemberWithIsStatic.call(void 0, t) ) return; - if ($.eat.call(void 0, O.TokenType.star)) { + if ($.eat.call(void 0, D.TokenType.star)) { xi(s), or(e, !1); return; } @@ -21370,15 +21370,15 @@ If you need interactivity, consider converting part of this to a Client Componen r = P.state.tokens[P.state.tokens.length - 1]; r.contextualKeyword === ke.ContextualKeyword._constructor && (i = !0), jl(), - Th() + yh() ? or(e, i) : mh() ? ar() : r.contextualKeyword === ke.ContextualKeyword._async && !ee.isLineTerminator.call(void 0) ? ((P.state.tokens[P.state.tokens.length - 1].type = - O.TokenType._async), - $.match.call(void 0, O.TokenType.star) && $.next.call(void 0), + D.TokenType._async), + $.match.call(void 0, D.TokenType.star) && $.next.call(void 0), xi(s), jl(), or(e, !1)) @@ -21386,13 +21386,13 @@ If you need interactivity, consider converting part of this to a Client Componen r.contextualKeyword === ke.ContextualKeyword._set) && !( ee.isLineTerminator.call(void 0) && - $.match.call(void 0, O.TokenType.star) + $.match.call(void 0, D.TokenType.star) ) ? (r.contextualKeyword === ke.ContextualKeyword._get ? (P.state.tokens[P.state.tokens.length - 1].type = - O.TokenType._get) + D.TokenType._get) : (P.state.tokens[P.state.tokens.length - 1].type = - O.TokenType._set), + D.TokenType._set), xi(s), or(e, !1)) : r.contextualKeyword === ke.ContextualKeyword._accessor && @@ -21406,31 +21406,31 @@ If you need interactivity, consider converting part of this to a Client Componen P.isTypeScriptEnabled ? dt.tsTryParseTypeParameters.call(void 0) : P.isFlowEnabled && - $.match.call(void 0, O.TokenType.lessThan) && + $.match.call(void 0, D.TokenType.lessThan) && Ft.flowParseTypeParameterDeclaration.call(void 0), De.parseMethod.call(void 0, e, t); } function xi(e) { De.parsePropertyName.call(void 0, e); } - yt.parseClassPropertyName = xi; + Tt.parseClassPropertyName = xi; function jl() { if (P.isTypeScriptEnabled) { let e = $.pushTypeContext.call(void 0, 0); - $.eat.call(void 0, O.TokenType.question), + $.eat.call(void 0, D.TokenType.question), $.popTypeContext.call(void 0, e); } } - yt.parsePostMemberNameModifiers = jl; + Tt.parsePostMemberNameModifiers = jl; function ar() { if ( (P.isTypeScriptEnabled - ? ($.eatTypeToken.call(void 0, O.TokenType.bang), + ? ($.eatTypeToken.call(void 0, D.TokenType.bang), dt.tsTryParseTypeAnnotation.call(void 0)) : P.isFlowEnabled && - $.match.call(void 0, O.TokenType.colon) && + $.match.call(void 0, D.TokenType.colon) && Ft.flowParseTypeAnnotation.call(void 0), - $.match.call(void 0, O.TokenType.eq)) + $.match.call(void 0, D.TokenType.eq)) ) { let e = P.state.tokens.length; $.next.call(void 0), @@ -21439,52 +21439,52 @@ If you need interactivity, consider converting part of this to a Client Componen } ee.semicolon.call(void 0); } - yt.parseClassProperty = ar; - function uv(e, t = !1) { + Tt.parseClassProperty = ar; + function hv(e, t = !1) { (P.isTypeScriptEnabled && (!e || t) && ee.isContextual.call(void 0, ke.ContextualKeyword._implements)) || - ($.match.call(void 0, O.TokenType.name) && + ($.match.call(void 0, D.TokenType.name) && ks.parseBindingIdentifier.call(void 0, !0), P.isTypeScriptEnabled ? dt.tsTryParseTypeParameters.call(void 0) : P.isFlowEnabled && - $.match.call(void 0, O.TokenType.lessThan) && + $.match.call(void 0, D.TokenType.lessThan) && Ft.flowParseTypeParameterDeclaration.call(void 0)); } - function pv() { + function fv() { let e = !1; - $.eat.call(void 0, O.TokenType._extends) + $.eat.call(void 0, D.TokenType._extends) ? (De.parseExprSubscripts.call(void 0), (e = !0)) : (e = !1), P.isTypeScriptEnabled ? dt.tsAfterParseClassSuper.call(void 0, e) : P.isFlowEnabled && Ft.flowAfterParseClassSuper.call(void 0, e); } - function yh() { + function Th() { let e = P.state.tokens.length - 1; (P.isTypeScriptEnabled && dt.tsTryParseExport.call(void 0)) || - (mv() - ? Tv() - : dv() + (Tv() + ? kv() + : yv() ? (De.parseIdentifier.call(void 0), - $.match.call(void 0, O.TokenType.comma) && - $.lookaheadType.call(void 0) === O.TokenType.star - ? (ee.expect.call(void 0, O.TokenType.comma), - ee.expect.call(void 0, O.TokenType.star), + $.match.call(void 0, D.TokenType.comma) && + $.lookaheadType.call(void 0) === D.TokenType.star + ? (ee.expect.call(void 0, D.TokenType.comma), + ee.expect.call(void 0, D.TokenType.star), ee.expectContextual.call(void 0, ke.ContextualKeyword._as), De.parseIdentifier.call(void 0)) : kh(), cr()) - : $.eat.call(void 0, O.TokenType._default) - ? hv() - : kv() - ? fv() + : $.eat.call(void 0, D.TokenType._default) + ? dv() + : xv() + ? mv() : (Kl(), cr()), (P.state.tokens[e].rhsEndIndex = P.state.tokens.length)); } - yt.parseExport = yh; - function hv() { + Tt.parseExport = Th; + function dv() { if ( (P.isTypeScriptEnabled && dt.tsTryParseExportDefaultExpression.call(void 0)) || @@ -21492,27 +21492,27 @@ If you need interactivity, consider converting part of this to a Client Componen ) return; let e = P.state.start; - $.eat.call(void 0, O.TokenType._function) + $.eat.call(void 0, D.TokenType._function) ? lr(e, !0, !0) : ee.isContextual.call(void 0, ke.ContextualKeyword._async) && - $.lookaheadType.call(void 0) === O.TokenType._function + $.lookaheadType.call(void 0) === D.TokenType._function ? (ee.eatContextual.call(void 0, ke.ContextualKeyword._async), - $.eat.call(void 0, O.TokenType._function), + $.eat.call(void 0, D.TokenType._function), lr(e, !0, !0)) - : $.match.call(void 0, O.TokenType._class) + : $.match.call(void 0, D.TokenType._class) ? Io(!0, !0) - : $.match.call(void 0, O.TokenType.at) + : $.match.call(void 0, D.TokenType.at) ? ($l(), Io(!0, !0)) : (De.parseMaybeAssign.call(void 0), ee.semicolon.call(void 0)); } - function fv() { + function mv() { P.isTypeScriptEnabled ? dt.tsParseExportDeclaration.call(void 0) : P.isFlowEnabled ? Ft.flowParseExportDeclaration.call(void 0) : _n(!0); } - function dv() { + function yv() { if (P.isTypeScriptEnabled && dt.tsIsDeclarationStart.call(void 0)) return !1; if ( @@ -21520,15 +21520,15 @@ If you need interactivity, consider converting part of this to a Client Componen Ft.flowShouldDisallowExportDefaultSpecifier.call(void 0) ) return !1; - if ($.match.call(void 0, O.TokenType.name)) + if ($.match.call(void 0, D.TokenType.name)) return P.state.contextualKeyword !== ke.ContextualKeyword._async; - if (!$.match.call(void 0, O.TokenType._default)) return !1; + if (!$.match.call(void 0, D.TokenType._default)) return !1; let e = $.nextTokenStart.call(void 0), t = $.lookaheadTypeAndKeyword.call(void 0), s = - t.type === O.TokenType.name && + t.type === D.TokenType.name && t.contextualKeyword === ke.ContextualKeyword._from; - if (t.type === O.TokenType.comma) return !0; + if (t.type === D.TokenType.comma) return !0; if (s) { let i = P.input.charCodeAt($.nextTokenStartSince.call(void 0, e + 4)); return ( @@ -21538,65 +21538,65 @@ If you need interactivity, consider converting part of this to a Client Componen return !1; } function kh() { - $.eat.call(void 0, O.TokenType.comma) && Kl(); + $.eat.call(void 0, D.TokenType.comma) && Kl(); } function cr() { ee.eatContextual.call(void 0, ke.ContextualKeyword._from) && (De.parseExprAtom.call(void 0), gh()), ee.semicolon.call(void 0); } - yt.parseExportFrom = cr; - function mv() { + Tt.parseExportFrom = cr; + function Tv() { return P.isFlowEnabled ? Ft.flowShouldParseExportStar.call(void 0) - : $.match.call(void 0, O.TokenType.star); + : $.match.call(void 0, D.TokenType.star); } - function Tv() { + function kv() { P.isFlowEnabled ? Ft.flowParseExportStar.call(void 0) : vh(); } function vh() { - ee.expect.call(void 0, O.TokenType.star), - ee.isContextual.call(void 0, ke.ContextualKeyword._as) ? yv() : cr(); + ee.expect.call(void 0, D.TokenType.star), + ee.isContextual.call(void 0, ke.ContextualKeyword._as) ? vv() : cr(); } - yt.baseParseExportStar = vh; - function yv() { + Tt.baseParseExportStar = vh; + function vv() { $.next.call(void 0), - (P.state.tokens[P.state.tokens.length - 1].type = O.TokenType._as), + (P.state.tokens[P.state.tokens.length - 1].type = D.TokenType._as), De.parseIdentifier.call(void 0), kh(), cr(); } - function kv() { + function xv() { return ( (P.isTypeScriptEnabled && dt.tsIsDeclarationStart.call(void 0)) || (P.isFlowEnabled && Ft.flowShouldParseExportDeclaration.call(void 0)) || - P.state.type === O.TokenType._var || - P.state.type === O.TokenType._const || - P.state.type === O.TokenType._let || - P.state.type === O.TokenType._function || - P.state.type === O.TokenType._class || + P.state.type === D.TokenType._var || + P.state.type === D.TokenType._const || + P.state.type === D.TokenType._let || + P.state.type === D.TokenType._function || + P.state.type === D.TokenType._class || ee.isContextual.call(void 0, ke.ContextualKeyword._async) || - $.match.call(void 0, O.TokenType.at) + $.match.call(void 0, D.TokenType.at) ); } function Kl() { let e = !0; for ( - ee.expect.call(void 0, O.TokenType.braceL); - !$.eat.call(void 0, O.TokenType.braceR) && !P.state.error; + ee.expect.call(void 0, D.TokenType.braceL); + !$.eat.call(void 0, D.TokenType.braceR) && !P.state.error; ) { if (e) e = !1; else if ( - (ee.expect.call(void 0, O.TokenType.comma), - $.eat.call(void 0, O.TokenType.braceR)) + (ee.expect.call(void 0, D.TokenType.comma), + $.eat.call(void 0, D.TokenType.braceR)) ) break; - vv(); + gv(); } } - yt.parseExportSpecifiers = Kl; - function vv() { + Tt.parseExportSpecifiers = Kl; + function gv() { if (P.isTypeScriptEnabled) { dt.tsParseExportSpecifier.call(void 0); return; @@ -21607,7 +21607,7 @@ If you need interactivity, consider converting part of this to a Client Componen ee.eatContextual.call(void 0, ke.ContextualKeyword._as) && De.parseIdentifier.call(void 0); } - function xv() { + function _v() { let e = P.state.snapshot(); return ( ee.expectContextual.call(void 0, ke.ContextualKeyword._module), @@ -21615,21 +21615,21 @@ If you need interactivity, consider converting part of this to a Client Componen ? ee.isContextual.call(void 0, ke.ContextualKeyword._from) ? (P.state.restoreFromSnapshot(e), !0) : (P.state.restoreFromSnapshot(e), !1) - : $.match.call(void 0, O.TokenType.comma) + : $.match.call(void 0, D.TokenType.comma) ? (P.state.restoreFromSnapshot(e), !1) : (P.state.restoreFromSnapshot(e), !0) ); } - function gv() { + function bv() { ee.isContextual.call(void 0, ke.ContextualKeyword._module) && - xv() && + _v() && $.next.call(void 0); } function xh() { if ( P.isTypeScriptEnabled && - $.match.call(void 0, O.TokenType.name) && - $.lookaheadType.call(void 0) === O.TokenType.eq + $.match.call(void 0, D.TokenType.name) && + $.lookaheadType.call(void 0) === D.TokenType.eq ) { dt.tsParseImportEqualsDeclaration.call(void 0); return; @@ -21640,66 +21640,66 @@ If you need interactivity, consider converting part of this to a Client Componen ) { let e = $.lookaheadTypeAndKeyword.call(void 0); if ( - e.type === O.TokenType.name && + e.type === D.TokenType.name && e.contextualKeyword !== ke.ContextualKeyword._from ) { if ( (ee.expectContextual.call(void 0, ke.ContextualKeyword._type), - $.lookaheadType.call(void 0) === O.TokenType.eq) + $.lookaheadType.call(void 0) === D.TokenType.eq) ) { dt.tsParseImportEqualsDeclaration.call(void 0); return; } } else - (e.type === O.TokenType.star || e.type === O.TokenType.braceL) && + (e.type === D.TokenType.star || e.type === D.TokenType.braceL) && ee.expectContextual.call(void 0, ke.ContextualKeyword._type); } - $.match.call(void 0, O.TokenType.string) || - (gv(), - bv(), + $.match.call(void 0, D.TokenType.string) || + (bv(), + wv(), ee.expectContextual.call(void 0, ke.ContextualKeyword._from)), De.parseExprAtom.call(void 0), gh(), ee.semicolon.call(void 0); } - yt.parseImport = xh; - function _v() { - return $.match.call(void 0, O.TokenType.name); + Tt.parseImport = xh; + function Cv() { + return $.match.call(void 0, D.TokenType.name); } function uh() { ks.parseImportedIdentifier.call(void 0); } - function bv() { + function wv() { P.isFlowEnabled && Ft.flowStartParseImportSpecifiers.call(void 0); let e = !0; - if (!(_v() && (uh(), !$.eat.call(void 0, O.TokenType.comma)))) { - if ($.match.call(void 0, O.TokenType.star)) { + if (!(Cv() && (uh(), !$.eat.call(void 0, D.TokenType.comma)))) { + if ($.match.call(void 0, D.TokenType.star)) { $.next.call(void 0), ee.expectContextual.call(void 0, ke.ContextualKeyword._as), uh(); return; } for ( - ee.expect.call(void 0, O.TokenType.braceL); - !$.eat.call(void 0, O.TokenType.braceR) && !P.state.error; + ee.expect.call(void 0, D.TokenType.braceL); + !$.eat.call(void 0, D.TokenType.braceR) && !P.state.error; ) { if (e) e = !1; else if ( - ($.eat.call(void 0, O.TokenType.colon) && + ($.eat.call(void 0, D.TokenType.colon) && ee.unexpected.call( void 0, 'ES2015 named imports do not destructure. Use another statement for destructuring after the import.' ), - ee.expect.call(void 0, O.TokenType.comma), - $.eat.call(void 0, O.TokenType.braceR)) + ee.expect.call(void 0, D.TokenType.comma), + $.eat.call(void 0, D.TokenType.braceR)) ) break; - Cv(); + Sv(); } } } - function Cv() { + function Sv() { if (P.isTypeScriptEnabled) { dt.tsParseImportSpecifier.call(void 0); return; @@ -21727,45 +21727,45 @@ If you need interactivity, consider converting part of this to a Client Componen var _h = xt(), bh = Qt(), Hl = Zt(), - wv = nr(); - function Sv() { + Iv = nr(); + function Ev() { return ( Hl.state.pos === 0 && Hl.input.charCodeAt(0) === bh.charCodes.numberSign && Hl.input.charCodeAt(1) === bh.charCodes.exclamationMark && _h.skipLineComment.call(void 0, 2), _h.nextToken.call(void 0), - wv.parseTopLevel.call(void 0) + Iv.parseTopLevel.call(void 0) ); } - Wl.parseFile = Sv; + Wl.parseFile = Ev; }); var Ul = Z((Ao) => { 'use strict'; Object.defineProperty(Ao, '__esModule', {value: !0}); var Eo = Zt(), - Iv = Ch(), + Av = Ch(), Gl = class { constructor(t, s) { (this.tokens = t), (this.scopes = s); } }; Ao.File = Gl; - function Ev(e, t, s, i) { + function Pv(e, t, s, i) { if (i && s) throw new Error('Cannot combine flow and typescript plugins.'); Eo.initParser.call(void 0, e, t, s, i); - let r = Iv.parseFile.call(void 0); + let r = Av.parseFile.call(void 0); if (Eo.state.error) throw Eo.augmentError.call(void 0, Eo.state.error); return r; } - Ao.parse = Ev; + Ao.parse = Pv; }); var wh = Z((zl) => { 'use strict'; Object.defineProperty(zl, '__esModule', {value: !0}); - var Av = It(); - function Pv(e) { + var Nv = It(); + function Rv(e) { let t = e.currentIndex(), s = 0, i = e.currentToken(); @@ -21776,7 +21776,7 @@ If you need interactivity, consider converting part of this to a Client Componen r.isOptionalChainEnd && s--, (s += r.numNullishCoalesceStarts), (s -= r.numNullishCoalesceEnds), - r.contextualKeyword === Av.ContextualKeyword._await && + r.contextualKeyword === Nv.ContextualKeyword._await && r.identifierRole == null && r.scopeDepth === i.scopeDepth) ) @@ -21785,17 +21785,17 @@ If you need interactivity, consider converting part of this to a Client Componen } while (s > 0 && t < e.tokens.length); return !1; } - zl.default = Pv; + zl.default = Rv; }); var Sh = Z((Yl) => { 'use strict'; Object.defineProperty(Yl, '__esModule', {value: !0}); - function Nv(e) { + function Lv(e) { return e && e.__esModule ? e : {default: e}; } var Po = be(), - Rv = wh(), - Lv = Nv(Rv), + Ov = wh(), + Dv = Lv(Ov), Xl = class e { __init() { this.resultCode = ''; @@ -21990,7 +21990,7 @@ If you need interactivity, consider converting part of this to a Client Componen let t = this.currentToken(); if ( ((t.numNullishCoalesceStarts || t.isOptionalChainStart) && - (t.isAsyncOperation = Lv.default.call(void 0, this)), + (t.isAsyncOperation = Dv.default.call(void 0, this)), !this.disableESTransforms) ) { if (t.numNullishCoalesceStarts) @@ -22078,88 +22078,88 @@ If you need interactivity, consider converting part of this to a Client Componen Object.defineProperty(Ql, '__esModule', {value: !0}); var Ih = It(), Ne = be(); - function Ov(e, t, s, i) { + function Mv(e, t, s, i) { let r = t.snapshot(), - a = Dv(t), + a = Fv(t), u = [], d = [], y = [], - g = null, - L = [], + x = null, + R = [], p = [], - f = t.currentToken().contextId; - if (f == null) + h = t.currentToken().contextId; + if (h == null) throw new Error( 'Expected non-null class context ID on class open-brace.' ); - for (t.nextToken(); !t.matchesContextIdAndLabel(Ne.TokenType.braceR, f); ) + for (t.nextToken(); !t.matchesContextIdAndLabel(Ne.TokenType.braceR, h); ) if ( t.matchesContextual(Ih.ContextualKeyword._constructor) && !t.currentToken().isType ) - ({constructorInitializerStatements: u, constructorInsertPos: g} = + ({constructorInitializerStatements: u, constructorInsertPos: x} = Eh(t)); else if (t.matches1(Ne.TokenType.semi)) i || p.push({start: t.currentIndex(), end: t.currentIndex() + 1}), t.nextToken(); else if (t.currentToken().isType) t.nextToken(); else { - let v = t.currentIndex(), - x = !1, + let T = t.currentIndex(), + g = !1, w = !1, S = !1; for (; No(t.currentToken()); ) - t.matches1(Ne.TokenType._static) && (x = !0), + t.matches1(Ne.TokenType._static) && (g = !0), t.matches1(Ne.TokenType.hash) && (w = !0), (t.matches1(Ne.TokenType._declare) || t.matches1(Ne.TokenType._abstract)) && (S = !0), t.nextToken(); - if (x && t.matches1(Ne.TokenType.braceL)) { - Jl(t, f); + if (g && t.matches1(Ne.TokenType.braceL)) { + Jl(t, h); continue; } if (w) { - Jl(t, f); + Jl(t, h); continue; } if ( t.matchesContextual(Ih.ContextualKeyword._constructor) && !t.currentToken().isType ) { - ({constructorInitializerStatements: u, constructorInsertPos: g} = + ({constructorInitializerStatements: u, constructorInsertPos: x} = Eh(t)); continue; } let A = t.currentIndex(); if ( - (Mv(t), + (Bv(t), t.matches1(Ne.TokenType.lessThan) || t.matches1(Ne.TokenType.parenL)) ) { - Jl(t, f); + Jl(t, h); continue; } for (; t.currentToken().isType; ) t.nextToken(); if (t.matches1(Ne.TokenType.eq)) { let U = t.currentIndex(), - D = t.currentToken().rhsEndIndex; - if (D == null) + M = t.currentToken().rhsEndIndex; + if (M == null) throw new Error( 'Expected rhsEndIndex on class field assignment.' ); - for (t.nextToken(); t.currentIndex() < D; ) e.processToken(); + for (t.nextToken(); t.currentIndex() < M; ) e.processToken(); let c; - x + g ? ((c = s.claimFreeName('__initStatic')), y.push(c)) : ((c = s.claimFreeName('__init')), d.push(c)), - L.push({ + R.push({ initializerName: c, equalsIndex: U, start: A, end: t.currentIndex(), }); - } else (!i || S) && p.push({start: v, end: t.currentIndex()}); + } else (!i || S) && p.push({start: T, end: t.currentIndex()}); } return ( t.restoreToSnapshot(r), @@ -22169,7 +22169,7 @@ If you need interactivity, consider converting part of this to a Client Componen constructorInitializerStatements: u, instanceInitializerNames: [], staticInitializerNames: [], - constructorInsertPos: g, + constructorInsertPos: x, fields: [], rangesToRemove: p, } @@ -22178,18 +22178,18 @@ If you need interactivity, consider converting part of this to a Client Componen constructorInitializerStatements: u, instanceInitializerNames: d, staticInitializerNames: y, - constructorInsertPos: g, - fields: L, + constructorInsertPos: x, + fields: R, rangesToRemove: p, } ); } - Ql.default = Ov; + Ql.default = Mv; function Jl(e, t) { for (e.nextToken(); e.currentToken().contextId !== t; ) e.nextToken(); for (; No(e.tokenAtRelativeIndex(-1)); ) e.previousToken(); } - function Dv(e) { + function Fv(e) { let t = e.currentToken(), s = t.contextId; if (s == null) throw new Error('Expected context ID on class token.'); @@ -22269,7 +22269,7 @@ If you need interactivity, consider converting part of this to a Client Componen Ne.TokenType.hash, ].includes(e.type); } - function Mv(e) { + function Bv(e) { if (e.matches1(Ne.TokenType.bracketL)) { let s = e.currentToken().contextId; if (s == null) @@ -22286,7 +22286,7 @@ If you need interactivity, consider converting part of this to a Client Componen 'use strict'; Object.defineProperty(Zl, '__esModule', {value: !0}); var Ph = be(); - function Fv(e) { + function Vv(e) { if ( (e.removeInitialToken(), e.removeToken(), @@ -22298,50 +22298,50 @@ If you need interactivity, consider converting part of this to a Client Componen else for (; e.matches1(Ph.TokenType.dot); ) e.removeToken(), e.removeToken(); } - Zl.default = Fv; + Zl.default = Vv; }); var tc = Z((Ro) => { 'use strict'; Object.defineProperty(Ro, '__esModule', {value: !0}); - var Bv = xt(), - Vv = be(), - jv = {typeDeclarations: new Set(), valueDeclarations: new Set()}; - Ro.EMPTY_DECLARATION_INFO = jv; - function $v(e) { + var jv = xt(), + $v = be(), + qv = {typeDeclarations: new Set(), valueDeclarations: new Set()}; + Ro.EMPTY_DECLARATION_INFO = qv; + function Kv(e) { let t = new Set(), s = new Set(); for (let i = 0; i < e.tokens.length; i++) { let r = e.tokens[i]; - r.type === Vv.TokenType.name && - Bv.isTopLevelDeclaration.call(void 0, r) && + r.type === $v.TokenType.name && + jv.isTopLevelDeclaration.call(void 0, r) && (r.isType ? t.add(e.identifierNameForToken(r)) : s.add(e.identifierNameForToken(r))); } return {typeDeclarations: t, valueDeclarations: s}; } - Ro.default = $v; + Ro.default = Kv; }); var sc = Z((nc) => { 'use strict'; Object.defineProperty(nc, '__esModule', {value: !0}); - var qv = It(), + var Uv = It(), Nh = be(); - function Kv(e) { + function Hv(e) { e.matches2(Nh.TokenType.name, Nh.TokenType.braceL) && - e.matchesContextual(qv.ContextualKeyword._assert) && + e.matchesContextual(Uv.ContextualKeyword._assert) && (e.removeToken(), e.removeToken(), e.removeBalancedCode(), e.removeToken()); } - nc.removeMaybeImportAssertion = Kv; + nc.removeMaybeImportAssertion = Hv; }); var rc = Z((ic) => { 'use strict'; Object.defineProperty(ic, '__esModule', {value: !0}); var Rh = be(); - function Uv(e, t, s) { + function Wv(e, t, s) { if (!e) return !1; let i = t.currentToken(); if (i.rhsEndIndex == null) @@ -22357,7 +22357,7 @@ If you need interactivity, consider converting part of this to a Client Componen let u = t.identifierNameForToken(a); return s.typeDeclarations.has(u) && !s.valueDeclarations.has(u); } - ic.default = Uv; + ic.default = Wv; }); var Oh = Z((ac) => { 'use strict'; @@ -22368,18 +22368,18 @@ If you need interactivity, consider converting part of this to a Client Componen var Lo = xt(), Ls = It(), N = be(), - Hv = ec(), - Wv = ur(Hv), + Gv = ec(), + zv = ur(Gv), Lh = tc(), - Gv = ur(Lh), - zv = Wi(), - Xv = ur(zv), - Oo = sc(), - Yv = rc(), + Xv = ur(Lh), + Yv = Wi(), Jv = ur(Yv), - Qv = hn(), + Oo = sc(), + Qv = rc(), Zv = ur(Qv), - oc = class e extends Zv.default { + ex = hn(), + tx = ur(ex), + oc = class e extends tx.default { __init() { this.hadExport = !1; } @@ -22389,7 +22389,7 @@ If you need interactivity, consider converting part of this to a Client Componen __init3() { this.hadDefaultExport = !1; } - constructor(t, s, i, r, a, u, d, y, g, L) { + constructor(t, s, i, r, a, u, d, y, x, R) { super(), (this.rootTransformer = t), (this.tokens = s), @@ -22399,13 +22399,13 @@ If you need interactivity, consider converting part of this to a Client Componen (this.reactHotLoaderTransformer = u), (this.enableLegacyBabel5ModuleInterop = d), (this.enableLegacyTypeScriptModuleInterop = y), - (this.isTypeScriptTransformEnabled = g), - (this.preserveDynamicImport = L), + (this.isTypeScriptTransformEnabled = x), + (this.preserveDynamicImport = R), e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), - (this.declarationInfo = g - ? Gv.default.call(void 0, s) + (this.declarationInfo = x + ? Xv.default.call(void 0, s) : Lh.EMPTY_DECLARATION_INFO); } getPrefixCode() { @@ -22460,7 +22460,7 @@ module.exports = exports.default; ); return ( this.importProcessor.isTypeName(t) - ? Wv.default.call(void 0, this.tokens) + ? zv.default.call(void 0, this.tokens) : this.tokens.replaceToken('const'), !0 ); @@ -22799,7 +22799,7 @@ module.exports = exports.default; let t = this.rootTransformer.processNamedClass(); this.tokens.appendCode(` exports.default = ${t};`); } else if ( - Jv.default.call( + Zv.default.call( void 0, this.isTypeScriptTransformEnabled, this.tokens, @@ -22980,7 +22980,7 @@ module.exports = exports.default; this.tokens.removeToken(); break; } - let s = Xv.default.call(void 0, this.tokens); + let s = Jv.default.call(void 0, this.tokens); for (; this.tokens.currentIndex() < s.endIndex; ) this.tokens.removeToken(); if (!s.isType && !this.shouldElideExportedIdentifier(s.leftName)) { @@ -23046,19 +23046,19 @@ module.exports = exports.default; } var Jn = It(), se = be(), - ex = ec(), - tx = pr(ex), + nx = ec(), + sx = pr(nx), Fh = tc(), - nx = pr(Fh), - sx = Wi(), - Dh = pr(sx), - ix = Fa(), + ix = pr(Fh), + rx = Wi(), + Dh = pr(rx), + ox = Fa(), Mh = sc(), - rx = rc(), - ox = pr(rx), - ax = hn(), + ax = rc(), lx = pr(ax), - lc = class extends lx.default { + cx = hn(), + ux = pr(cx), + lc = class extends ux.default { constructor(t, s, i, r, a, u) { super(), (this.tokens = t), @@ -23067,10 +23067,10 @@ module.exports = exports.default; (this.reactHotLoaderTransformer = r), (this.isTypeScriptTransformEnabled = a), (this.nonTypeIdentifiers = a - ? ix.getNonTypeIdentifiers.call(void 0, t, u) + ? ox.getNonTypeIdentifiers.call(void 0, t, u) : new Set()), (this.declarationInfo = a - ? nx.default.call(void 0, t) + ? ix.default.call(void 0, t) : Fh.EMPTY_DECLARATION_INFO), (this.injectCreateRequireForImportRequire = !!u.injectCreateRequireForImportRequire); @@ -23164,7 +23164,7 @@ module.exports = exports.default; ); return ( this.isTypeName(t) - ? tx.default.call(void 0, this.tokens) + ? sx.default.call(void 0, this.tokens) : this.injectCreateRequireForImportRequire ? (this.tokens.replaceToken('const'), this.tokens.copyToken(), @@ -23269,7 +23269,7 @@ module.exports = exports.default; } processExportDefault() { if ( - ox.default.call( + lx.default.call( void 0, this.isTypeScriptTransformEnabled, this.tokens, @@ -23364,14 +23364,14 @@ module.exports = exports.default; var jh = Z((pc) => { 'use strict'; Object.defineProperty(pc, '__esModule', {value: !0}); - function cx(e) { + function px(e) { return e && e.__esModule ? e : {default: e}; } var Vh = It(), sn = be(), - ux = hn(), - px = cx(ux), - uc = class extends px.default { + hx = hn(), + fx = px(hx), + uc = class extends fx.default { constructor(t, s, i) { super(), (this.rootTransformer = t), @@ -23459,10 +23459,10 @@ module.exports = exports.default; var $h = Z((fc) => { 'use strict'; Object.defineProperty(fc, '__esModule', {value: !0}); - function hx(e) { + function dx(e) { return e && e.__esModule ? e : {default: e}; } - function fx(e) { + function mx(e) { let t, s = e[0], i = 1; @@ -23482,11 +23482,11 @@ module.exports = exports.default; return s; } var Qn = be(), - dx = hn(), - mx = hx(dx), + yx = hn(), + Tx = dx(yx), Do = 'jest', - Tx = ['mock', 'unmock', 'enableAutomock', 'disableAutomock'], - hc = class e extends mx.default { + kx = ['mock', 'unmock', 'enableAutomock', 'disableAutomock'], + hc = class e extends Tx.default { __init() { this.hoistedFunctionNames = []; } @@ -23507,7 +23507,7 @@ module.exports = exports.default; Qn.TokenType.parenL ) && this.tokens.identifierName() === Do - ? fx([ + ? mx([ this, 'access', (t) => t.importProcessor, @@ -23544,7 +23544,7 @@ module.exports = exports.default; let s = this.tokens.identifierNameAtIndex( this.tokens.currentIndex() + 1 ); - if (Tx.includes(s)) { + if (kx.includes(s)) { let r = this.nameManager.claimFreeName('__jestHoist'); this.hoistedFunctionNames.push(r), this.tokens.replaceToken(`function ${r}(){${Do}.`), @@ -23570,18 +23570,18 @@ module.exports = exports.default; var qh = Z((mc) => { 'use strict'; Object.defineProperty(mc, '__esModule', {value: !0}); - function yx(e) { + function vx(e) { return e && e.__esModule ? e : {default: e}; } - var kx = be(), - vx = hn(), - xx = yx(vx), - dc = class extends xx.default { + var xx = be(), + gx = hn(), + _x = vx(gx), + dc = class extends _x.default { constructor(t) { super(), (this.tokens = t); } process() { - if (this.tokens.matches1(kx.TokenType.num)) { + if (this.tokens.matches1(xx.TokenType.num)) { let t = this.tokens.currentTokenCode(); if (t.includes('_')) return this.tokens.replaceToken(t.replace(/_/g, '')), !0; @@ -23591,16 +23591,16 @@ module.exports = exports.default; }; mc.default = dc; }); - var Uh = Z((yc) => { + var Uh = Z((Tc) => { 'use strict'; - Object.defineProperty(yc, '__esModule', {value: !0}); - function gx(e) { + Object.defineProperty(Tc, '__esModule', {value: !0}); + function bx(e) { return e && e.__esModule ? e : {default: e}; } var Kh = be(), - _x = hn(), - bx = gx(_x), - Tc = class extends bx.default { + Cx = hn(), + wx = bx(Cx), + yc = class extends wx.default { constructor(t, s) { super(), (this.tokens = t), (this.nameManager = s); } @@ -23614,18 +23614,18 @@ module.exports = exports.default; : !1; } }; - yc.default = Tc; + Tc.default = yc; }); var Hh = Z((vc) => { 'use strict'; Object.defineProperty(vc, '__esModule', {value: !0}); - function Cx(e) { + function Sx(e) { return e && e.__esModule ? e : {default: e}; } var jt = be(), - wx = hn(), - Sx = Cx(wx), - kc = class extends Sx.default { + Ix = hn(), + Ex = Sx(Ix), + kc = class extends Ex.default { constructor(t, s) { super(), (this.tokens = t), (this.nameManager = s); } @@ -23752,14 +23752,14 @@ module.exports = exports.default; var Gh = Z((gc) => { 'use strict'; Object.defineProperty(gc, '__esModule', {value: !0}); - function Ix(e) { + function Ax(e) { return e && e.__esModule ? e : {default: e}; } var Wh = xt(), Et = be(), - Ex = hn(), - Ax = Ix(Ex), - xc = class extends Ax.default { + Px = hn(), + Nx = Ax(Px), + xc = class extends Nx.default { constructor(t, s, i, r) { super(), (this.rootTransformer = t), @@ -23892,13 +23892,13 @@ module.exports = exports.default; var Xh = Z((bc) => { 'use strict'; Object.defineProperty(bc, '__esModule', {value: !0}); - function Px(e) { + function Rx(e) { return e && e.__esModule ? e : {default: e}; } var zh = xt(), - Nx = hn(), - Rx = Px(Nx), - _c = class e extends Rx.default { + Lx = hn(), + Ox = Rx(Lx), + _c = class e extends Ox.default { __init() { this.extractedDefaultExportName = null; } @@ -23965,7 +23965,7 @@ ${s.map( 'use strict'; Object.defineProperty(Cc, '__esModule', {value: !0}); var Yh = li(), - Lx = new Set([ + Dx = new Set([ 'break', 'case', 'catch', @@ -24013,13 +24013,13 @@ ${s.map( 'null', 'true', ]); - function Ox(e) { + function Mx(e) { if (e.length === 0 || !Yh.IS_IDENTIFIER_START[e.charCodeAt(0)]) return !1; for (let t = 1; t < e.length; t++) if (!Yh.IS_IDENTIFIER_CHAR[e.charCodeAt(t)]) return !1; - return !Lx.has(e); + return !Dx.has(e); } - Cc.default = Ox; + Cc.default = Mx; }); var ef = Z((Sc) => { 'use strict'; @@ -24028,11 +24028,11 @@ ${s.map( return e && e.__esModule ? e : {default: e}; } var $e = be(), - Dx = Jh(), - Qh = Zh(Dx), - Mx = hn(), - Fx = Zh(Mx), - wc = class extends Fx.default { + Fx = Jh(), + Qh = Zh(Fx), + Bx = hn(), + Vx = Zh(Bx), + wc = class extends Vx.default { constructor(t, s, i) { super(), (this.rootTransformer = t), @@ -24174,35 +24174,35 @@ ${s.map( var tf = Z((Ec) => { 'use strict'; Object.defineProperty(Ec, '__esModule', {value: !0}); - function Tn(e) { + function yn(e) { return e && e.__esModule ? e : {default: e}; } - var Bx = It(), + var jx = It(), lt = be(), - Vx = Ah(), - jx = Tn(Vx), - $x = Oh(), - qx = Tn($x), - Kx = Bh(), - Ux = Tn(Kx), - Hx = jh(), - Wx = Tn(Hx), - Gx = $h(), - zx = Tn(Gx), - Xx = Da(), - Yx = Tn(Xx), - Jx = qh(), - Qx = Tn(Jx), - Zx = Uh(), - eg = Tn(Zx), - tg = Hh(), - ng = Tn(tg), - sg = Gh(), - ig = Tn(sg), - rg = Xh(), - og = Tn(rg), - ag = ef(), - lg = Tn(ag), + $x = Ah(), + qx = yn($x), + Kx = Oh(), + Ux = yn(Kx), + Hx = Bh(), + Wx = yn(Hx), + Gx = jh(), + zx = yn(Gx), + Xx = $h(), + Yx = yn(Xx), + Jx = Da(), + Qx = yn(Jx), + Zx = qh(), + eg = yn(Zx), + tg = Uh(), + ng = yn(tg), + sg = Hh(), + ig = yn(sg), + rg = Gh(), + og = yn(rg), + ag = Xh(), + lg = yn(ag), + cg = ef(), + ug = yn(cg), Ic = class e { __init() { this.transformers = []; @@ -24222,22 +24222,22 @@ ${s.map( s.includes('react-hot-loader')), (this.disableESTransforms = !!r.disableESTransforms), r.disableESTransforms || - (this.transformers.push(new ng.default(a, this.nameManager)), - this.transformers.push(new Qx.default(a)), - this.transformers.push(new eg.default(a, this.nameManager))), + (this.transformers.push(new ig.default(a, this.nameManager)), + this.transformers.push(new eg.default(a)), + this.transformers.push(new ng.default(a, this.nameManager))), s.includes('jsx') && (r.jsxRuntime !== 'preserve' && this.transformers.push( - new Yx.default(this, a, u, this.nameManager, r) + new Qx.default(this, a, u, this.nameManager, r) ), - this.transformers.push(new ig.default(this, a, u, r))); + this.transformers.push(new og.default(this, a, u, r))); let d = null; if (s.includes('react-hot-loader')) { if (!r.filePath) throw new Error( 'filePath is required when using the react-hot-loader transform.' ); - (d = new og.default(a, r.filePath)), this.transformers.push(d); + (d = new lg.default(a, r.filePath)), this.transformers.push(d); } if (s.includes('imports')) { if (u === null) @@ -24245,7 +24245,7 @@ ${s.map( 'Expected non-null importProcessor with imports transform enabled.' ); this.transformers.push( - new qx.default( + new Ux.default( this, a, u, @@ -24260,7 +24260,7 @@ ${s.map( ); } else this.transformers.push( - new Ux.default( + new Wx.default( a, this.nameManager, this.helperManager, @@ -24271,15 +24271,15 @@ ${s.map( ); s.includes('flow') && this.transformers.push( - new Wx.default(this, a, s.includes('imports')) + new zx.default(this, a, s.includes('imports')) ), s.includes('typescript') && this.transformers.push( - new lg.default(this, a, s.includes('imports')) + new ug.default(this, a, s.includes('imports')) ), s.includes('jest') && this.transformers.push( - new zx.default(this, a, this.nameManager, u) + new Yx.default(this, a, this.nameManager, u) ); } transform() { @@ -24350,7 +24350,7 @@ ${s.map( return this.processClass(), t; } processClass() { - let t = jx.default.call( + let t = qx.default.call( void 0, this, this.tokens, @@ -24394,8 +24394,8 @@ ${s.map( instanceInitializerNames: d, rangesToRemove: y, } = t, - g = 0, - L = 0, + x = 0, + R = 0, p = this.tokens.currentToken().contextId; if (p == null) throw new Error('Expected non-null context ID on class.'); @@ -24404,61 +24404,61 @@ ${s.map( this.tokens.appendCode( '__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}' ); - let f = a.length + d.length > 0; - if (r === null && f) { - let v = this.makeConstructorInitCode(a, d, s); + let h = a.length + d.length > 0; + if (r === null && h) { + let T = this.makeConstructorInitCode(a, d, s); if (i.hasSuperclass) { - let x = this.nameManager.claimFreeName('args'); + let g = this.nameManager.claimFreeName('args'); this.tokens.appendCode( - `constructor(...${x}) { super(...${x}); ${v}; }` + `constructor(...${g}) { super(...${g}); ${T}; }` ); - } else this.tokens.appendCode(`constructor() { ${v}; }`); + } else this.tokens.appendCode(`constructor() { ${T}; }`); } for ( ; !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceR, p); ) - if (g < u.length && this.tokens.currentIndex() === u[g].start) { - let v = !1; + if (x < u.length && this.tokens.currentIndex() === u[x].start) { + let T = !1; for ( this.tokens.matches1(lt.TokenType.bracketL) ? this.tokens.copyTokenWithPrefix( - `${u[g].initializerName}() {this` + `${u[x].initializerName}() {this` ) : this.tokens.matches1(lt.TokenType.string) || this.tokens.matches1(lt.TokenType.num) ? (this.tokens.copyTokenWithPrefix( - `${u[g].initializerName}() {this[` + `${u[x].initializerName}() {this[` ), - (v = !0)) + (T = !0)) : this.tokens.copyTokenWithPrefix( - `${u[g].initializerName}() {this.` + `${u[x].initializerName}() {this.` ); - this.tokens.currentIndex() < u[g].end; + this.tokens.currentIndex() < u[x].end; ) - v && - this.tokens.currentIndex() === u[g].equalsIndex && + T && + this.tokens.currentIndex() === u[x].equalsIndex && this.tokens.appendCode(']'), this.processToken(); - this.tokens.appendCode('}'), g++; + this.tokens.appendCode('}'), x++; } else if ( - L < y.length && - this.tokens.currentIndex() >= y[L].start + R < y.length && + this.tokens.currentIndex() >= y[R].start ) { for ( - this.tokens.currentIndex() < y[L].end && + this.tokens.currentIndex() < y[R].end && this.tokens.removeInitialToken(); - this.tokens.currentIndex() < y[L].end; + this.tokens.currentIndex() < y[R].end; ) this.tokens.removeToken(); - L++; + R++; } else this.tokens.currentIndex() === r ? (this.tokens.copyToken(), - f && + h && this.tokens.appendCode( `;${this.makeConstructorInitCode(a, d, s)};` ), @@ -24492,7 +24492,7 @@ ${s.map( } processPossibleAsyncArrowWithTypeParams() { if ( - !this.tokens.matchesContextual(Bx.ContextualKeyword._async) && + !this.tokens.matchesContextual(jx.ContextualKeyword._async) && !this.tokens.matches1(lt.TokenType._async) ) return !1; @@ -24597,69 +24597,69 @@ ${s.map( var of = Z((Ac) => { 'use strict'; Object.defineProperty(Ac, '__esModule', {value: !0}); - function cg(e) { + function pg(e) { return e && e.__esModule ? e : {default: e}; } - var ug = rf(), - pg = cg(ug), - hg = be(); - function fg(e, t) { + var hg = rf(), + fg = pg(hg), + dg = be(); + function mg(e, t) { if (t.length === 0) return ''; let s = Object.keys(t[0]).filter( - (f) => - f !== 'type' && - f !== 'value' && - f !== 'start' && - f !== 'end' && - f !== 'loc' + (h) => + h !== 'type' && + h !== 'value' && + h !== 'start' && + h !== 'end' && + h !== 'loc' ), i = Object.keys(t[0].type).filter( - (f) => f !== 'label' && f !== 'keyword' + (h) => h !== 'label' && h !== 'keyword' ), r = ['Location', 'Label', 'Raw', ...s, ...i], - a = new pg.default(e), + a = new fg.default(e), u = [r, ...t.map(y)], d = r.map(() => 0); - for (let f of u) - for (let v = 0; v < f.length; v++) d[v] = Math.max(d[v], f[v].length); - return u.map((f) => f.map((v, x) => v.padEnd(d[x])).join(' ')).join(` + for (let h of u) + for (let T = 0; T < h.length; T++) d[T] = Math.max(d[T], h[T].length); + return u.map((h) => h.map((T, g) => T.padEnd(d[g])).join(' ')).join(` `); - function y(f) { - let v = e.slice(f.start, f.end); + function y(h) { + let T = e.slice(h.start, h.end); return [ - L(f.start, f.end), - hg.formatTokenType.call(void 0, f.type), - dg(String(v), 14), - ...s.map((x) => g(f[x], x)), - ...i.map((x) => g(f.type[x], x)), + R(h.start, h.end), + dg.formatTokenType.call(void 0, h.type), + yg(String(T), 14), + ...s.map((g) => x(h[g], g)), + ...i.map((g) => x(h.type[g], g)), ]; } - function g(f, v) { - return f === !0 ? v : f === !1 || f === null ? '' : String(f); + function x(h, T) { + return h === !0 ? T : h === !1 || h === null ? '' : String(h); } - function L(f, v) { - return `${p(f)}-${p(v)}`; + function R(h, T) { + return `${p(h)}-${p(T)}`; } - function p(f) { - let v = a.locationForIndex(f); - return v ? `${v.line + 1}:${v.column + 1}` : 'Unknown'; + function p(h) { + let T = a.locationForIndex(h); + return T ? `${T.line + 1}:${T.column + 1}` : 'Unknown'; } } - Ac.default = fg; - function dg(e, t) { + Ac.default = mg; + function yg(e, t) { return e.length > t ? `${e.slice(0, t - 3)}...` : e; } }); var af = Z((Pc) => { 'use strict'; Object.defineProperty(Pc, '__esModule', {value: !0}); - function mg(e) { + function Tg(e) { return e && e.__esModule ? e : {default: e}; } var Gt = be(), - Tg = Wi(), - yg = mg(Tg); - function kg(e) { + kg = Wi(), + vg = Tg(kg); + function xg(e) { let t = new Set(); for (let s = 0; s < e.tokens.length; s++) e.matches1AtIndex(s, Gt.TokenType._import) && @@ -24669,11 +24669,11 @@ ${s.map( Gt.TokenType.name, Gt.TokenType.eq ) && - vg(e, s, t); + gg(e, s, t); return t; } - Pc.default = kg; - function vg(e, t, s) { + Pc.default = xg; + function gg(e, t, s) { t++, !e.matches1AtIndex(t, Gt.TokenType.parenL) && (e.matches1AtIndex(t, Gt.TokenType.name) && @@ -24682,12 +24682,12 @@ ${s.map( e.matches1AtIndex(t, Gt.TokenType.comma) && t++), e.matches1AtIndex(t, Gt.TokenType.star) && ((t += 2), s.add(e.identifierNameAtIndex(t)), t++), - e.matches1AtIndex(t, Gt.TokenType.braceL) && (t++, xg(e, t, s))); + e.matches1AtIndex(t, Gt.TokenType.braceL) && (t++, _g(e, t, s))); } - function xg(e, t, s) { + function _g(e, t, s) { for (;;) { if (e.matches1AtIndex(t, Gt.TokenType.braceR)) return; - let i = yg.default.call(void 0, e, t); + let i = vg.default.call(void 0, e, t); if ( ((t = i.endIndex), i.isType || s.add(i.rightName), @@ -24707,34 +24707,34 @@ ${s.map( function vs(e) { return e && e.__esModule ? e : {default: e}; } - var gg = N1(), - _g = vs(gg), - bg = $1(), + var bg = N1(), Cg = vs(bg), - wg = q1(), - Sg = H1(), - lf = vs(Sg), - Ig = G1(), - Eg = vs(Ig), - Ag = pp(), - Pg = Ul(), - Ng = Sh(), - Rg = vs(Ng), - Lg = tf(), + wg = $1(), + Sg = vs(wg), + Ig = q1(), + Eg = H1(), + lf = vs(Eg), + Ag = G1(), + Pg = vs(Ag), + Ng = pp(), + Rg = Ul(), + Lg = Sh(), Og = vs(Lg), - Dg = of(), + Dg = tf(), Mg = vs(Dg), - Fg = af(), - Bg = vs(Fg); - function Vg() { + Fg = of(), + Bg = vs(Fg), + Vg = af(), + jg = vs(Vg); + function $g() { return '3.32.0'; } - fr.getVersion = Vg; - function jg(e, t) { - Ag.validateOptions.call(void 0, t); + fr.getVersion = $g; + function qg(e, t) { + Ng.validateOptions.call(void 0, t); try { let s = cf(e, t), - r = new Og.default( + r = new Mg.default( s, t.transforms, !!t.enableLegacyBabel5ModuleInterop, @@ -24748,7 +24748,7 @@ ${s.map( ); a = { ...a, - sourceMap: Cg.default.call( + sourceMap: Sg.default.call( void 0, r, t.filePath, @@ -24767,46 +24767,46 @@ ${s.map( ); } } - fr.transform = jg; - function $g(e, t) { + fr.transform = qg; + function Kg(e, t) { let s = cf(e, t).tokenProcessor.tokens; - return Mg.default.call(void 0, e, s); + return Bg.default.call(void 0, e, s); } - fr.getFormattedTokens = $g; + fr.getFormattedTokens = Kg; function cf(e, t) { let s = t.transforms.includes('jsx'), i = t.transforms.includes('typescript'), r = t.transforms.includes('flow'), a = t.disableESTransforms === !0, - u = Pg.parse.call(void 0, e, s, i, r), + u = Rg.parse.call(void 0, e, s, i, r), d = u.tokens, y = u.scopes, - g = new Eg.default(e, d), - L = new wg.HelperManager(g), - p = new Rg.default(e, d, r, a, L), - f = !!t.enableLegacyTypeScriptModuleInterop, - v = null; + x = new Pg.default(e, d), + R = new Ig.HelperManager(x), + p = new Og.default(e, d, r, a, R), + h = !!t.enableLegacyTypeScriptModuleInterop, + T = null; return ( t.transforms.includes('imports') - ? ((v = new _g.default( - g, + ? ((T = new Cg.default( + x, p, - f, + h, t, t.transforms.includes('typescript'), - L + R )), - v.preprocessTokens(), - lf.default.call(void 0, p, y, v.getGlobalNames()), - t.transforms.includes('typescript') && v.pruneTypeOnlyImports()) + T.preprocessTokens(), + lf.default.call(void 0, p, y, T.getGlobalNames()), + t.transforms.includes('typescript') && T.pruneTypeOnlyImports()) : t.transforms.includes('typescript') && - lf.default.call(void 0, p, y, Bg.default.call(void 0, p)), + lf.default.call(void 0, p, y, jg.default.call(void 0, p)), { tokenProcessor: p, scopes: y, - nameManager: g, - importProcessor: v, - helperManager: L, + nameManager: x, + importProcessor: T, + helperManager: R, } ); } @@ -24893,16 +24893,16 @@ ${s.map( 6: u + ' const class extends export import super', }, y = /^in(stanceof)?$/, - g = new RegExp('[' + r + ']'), - L = new RegExp('[' + r + i + ']'); + x = new RegExp('[' + r + ']'), + R = new RegExp('[' + r + i + ']'); function p(n, o) { - for (var l = 65536, h = 0; h < o.length; h += 2) { - if (((l += o[h]), l > n)) return !1; - if (((l += o[h + 1]), l >= n)) return !0; + for (var l = 65536, f = 0; f < o.length; f += 2) { + if (((l += o[f]), l > n)) return !1; + if (((l += o[f + 1]), l >= n)) return !0; } return !1; } - function f(n, o) { + function h(n, o) { return n < 65 ? n === 36 : n < 91 @@ -24912,12 +24912,12 @@ ${s.map( : n < 123 ? !0 : n <= 65535 - ? n >= 170 && g.test(String.fromCharCode(n)) + ? n >= 170 && x.test(String.fromCharCode(n)) : o === !1 ? !1 : p(n, s); } - function v(n, o) { + function T(n, o) { return n < 48 ? n === 36 : n < 58 @@ -24931,12 +24931,12 @@ ${s.map( : n < 123 ? !0 : n <= 65535 - ? n >= 170 && L.test(String.fromCharCode(n)) + ? n >= 170 && R.test(String.fromCharCode(n)) : o === !1 ? !1 : p(n, s) || p(n, t); } - var x = function (o, l) { + var g = function (o, l) { l === void 0 && (l = {}), (this.label = o), (this.keyword = l.keyword), @@ -24950,43 +24950,43 @@ ${s.map( (this.updateContext = null); }; function w(n, o) { - return new x(n, {beforeExpr: !0, binop: o}); + return new g(n, {beforeExpr: !0, binop: o}); } var S = {beforeExpr: !0}, A = {startsExpr: !0}, U = {}; - function D(n, o) { - return o === void 0 && (o = {}), (o.keyword = n), (U[n] = new x(n, o)); + function M(n, o) { + return o === void 0 && (o = {}), (o.keyword = n), (U[n] = new g(n, o)); } var c = { - num: new x('num', A), - regexp: new x('regexp', A), - string: new x('string', A), - name: new x('name', A), - privateId: new x('privateId', A), - eof: new x('eof'), - bracketL: new x('[', {beforeExpr: !0, startsExpr: !0}), - bracketR: new x(']'), - braceL: new x('{', {beforeExpr: !0, startsExpr: !0}), - braceR: new x('}'), - parenL: new x('(', {beforeExpr: !0, startsExpr: !0}), - parenR: new x(')'), - comma: new x(',', S), - semi: new x(';', S), - colon: new x(':', S), - dot: new x('.'), - question: new x('?', S), - questionDot: new x('?.'), - arrow: new x('=>', S), - template: new x('template'), - invalidTemplate: new x('invalidTemplate'), - ellipsis: new x('...', S), - backQuote: new x('`', A), - dollarBraceL: new x('${', {beforeExpr: !0, startsExpr: !0}), - eq: new x('=', {beforeExpr: !0, isAssign: !0}), - assign: new x('_=', {beforeExpr: !0, isAssign: !0}), - incDec: new x('++/--', {prefix: !0, postfix: !0, startsExpr: !0}), - prefix: new x('!/~', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + num: new g('num', A), + regexp: new g('regexp', A), + string: new g('string', A), + name: new g('name', A), + privateId: new g('privateId', A), + eof: new g('eof'), + bracketL: new g('[', {beforeExpr: !0, startsExpr: !0}), + bracketR: new g(']'), + braceL: new g('{', {beforeExpr: !0, startsExpr: !0}), + braceR: new g('}'), + parenL: new g('(', {beforeExpr: !0, startsExpr: !0}), + parenR: new g(')'), + comma: new g(',', S), + semi: new g(';', S), + colon: new g(':', S), + dot: new g('.'), + question: new g('?', S), + questionDot: new g('?.'), + arrow: new g('=>', S), + template: new g('template'), + invalidTemplate: new g('invalidTemplate'), + ellipsis: new g('...', S), + backQuote: new g('`', A), + dollarBraceL: new g('${', {beforeExpr: !0, startsExpr: !0}), + eq: new g('=', {beforeExpr: !0, isAssign: !0}), + assign: new g('_=', {beforeExpr: !0, isAssign: !0}), + incDec: new g('++/--', {prefix: !0, postfix: !0, startsExpr: !0}), + prefix: new g('!/~', {beforeExpr: !0, prefix: !0, startsExpr: !0}), logicalOR: w('||', 1), logicalAND: w('&&', 2), bitwiseOR: w('|', 3), @@ -24995,7 +24995,7 @@ ${s.map( equality: w('==/!=/===/!==', 6), relational: w('/<=/>=', 7), bitShift: w('<>/>>>', 8), - plusMin: new x('+/-', { + plusMin: new g('+/-', { beforeExpr: !0, binop: 9, prefix: !0, @@ -25004,57 +25004,57 @@ ${s.map( modulo: w('%', 10), star: w('*', 10), slash: w('/', 10), - starstar: new x('**', {beforeExpr: !0}), + starstar: new g('**', {beforeExpr: !0}), coalesce: w('??', 1), - _break: D('break'), - _case: D('case', S), - _catch: D('catch'), - _continue: D('continue'), - _debugger: D('debugger'), - _default: D('default', S), - _do: D('do', {isLoop: !0, beforeExpr: !0}), - _else: D('else', S), - _finally: D('finally'), - _for: D('for', {isLoop: !0}), - _function: D('function', A), - _if: D('if'), - _return: D('return', S), - _switch: D('switch'), - _throw: D('throw', S), - _try: D('try'), - _var: D('var'), - _const: D('const'), - _while: D('while', {isLoop: !0}), - _with: D('with'), - _new: D('new', {beforeExpr: !0, startsExpr: !0}), - _this: D('this', A), - _super: D('super', A), - _class: D('class', A), - _extends: D('extends', S), - _export: D('export'), - _import: D('import', A), - _null: D('null', A), - _true: D('true', A), - _false: D('false', A), - _in: D('in', {beforeExpr: !0, binop: 7}), - _instanceof: D('instanceof', {beforeExpr: !0, binop: 7}), - _typeof: D('typeof', {beforeExpr: !0, prefix: !0, startsExpr: !0}), - _void: D('void', {beforeExpr: !0, prefix: !0, startsExpr: !0}), - _delete: D('delete', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + _break: M('break'), + _case: M('case', S), + _catch: M('catch'), + _continue: M('continue'), + _debugger: M('debugger'), + _default: M('default', S), + _do: M('do', {isLoop: !0, beforeExpr: !0}), + _else: M('else', S), + _finally: M('finally'), + _for: M('for', {isLoop: !0}), + _function: M('function', A), + _if: M('if'), + _return: M('return', S), + _switch: M('switch'), + _throw: M('throw', S), + _try: M('try'), + _var: M('var'), + _const: M('const'), + _while: M('while', {isLoop: !0}), + _with: M('with'), + _new: M('new', {beforeExpr: !0, startsExpr: !0}), + _this: M('this', A), + _super: M('super', A), + _class: M('class', A), + _extends: M('extends', S), + _export: M('export'), + _import: M('import', A), + _null: M('null', A), + _true: M('true', A), + _false: M('false', A), + _in: M('in', {beforeExpr: !0, binop: 7}), + _instanceof: M('instanceof', {beforeExpr: !0, binop: 7}), + _typeof: M('typeof', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + _void: M('void', {beforeExpr: !0, prefix: !0, startsExpr: !0}), + _delete: M('delete', {beforeExpr: !0, prefix: !0, startsExpr: !0}), }, - M = /\r\n?|\n|\u2028|\u2029/, - z = new RegExp(M.source, 'g'); + L = /\r\n?|\n|\u2028|\u2029/, + W = new RegExp(L.source, 'g'); function X(n) { return n === 10 || n === 13 || n === 8232 || n === 8233; } function ie(n, o, l) { l === void 0 && (l = n.length); - for (var h = o; h < l; h++) { - var m = n.charCodeAt(h); + for (var f = o; f < l; f++) { + var m = n.charCodeAt(f); if (X(m)) - return h < l - 1 && m === 13 && n.charCodeAt(h + 1) === 10 - ? h + 2 - : h + 1; + return f < l - 1 && m === 13 && n.charCodeAt(f + 1) === 10 + ? f + 2 + : f + 1; } return -1; } @@ -25093,16 +25093,16 @@ ${s.map( ct.prototype.offset = function (o) { return new ct(this.line, this.column + o); }; - var wt = function (o, l, h) { + var wt = function (o, l, f) { (this.start = l), - (this.end = h), + (this.end = f), o.sourceFile !== null && (this.source = o.sourceFile); }; function $t(n, o) { - for (var l = 1, h = 0; ; ) { - var m = ie(n, h, o); - if (m < 0) return new ct(l, o - h); - ++l, (h = m); + for (var l = 1, f = 0; ; ) { + var m = ie(n, f, o); + if (m < 0) return new ct(l, o - f); + ++l, (f = m); } } var Pt = { @@ -25127,7 +25127,7 @@ ${s.map( preserveParens: !1, }, qt = !1; - function yn(n) { + function Tn(n) { var o = {}; for (var l in Pt) o[l] = n && mt(n, l) ? n[l] : Pt[l]; if ( @@ -25147,22 +25147,22 @@ Defaulting to 2020, but this will stop working in the future.`)), (o.allowHashBang = o.ecmaVersion >= 14), kt(o.onToken)) ) { - var h = o.onToken; + var f = o.onToken; o.onToken = function (m) { - return h.push(m); + return f.push(m); }; } return kt(o.onComment) && (o.onComment = V(o, o.onComment)), o; } function V(n, o) { - return function (l, h, m, E, R, Y) { - var Q = {type: l ? 'Block' : 'Line', value: h, start: m, end: E}; - n.locations && (Q.loc = new wt(this, R, Y)), + return function (l, f, m, E, O, Y) { + var Q = {type: l ? 'Block' : 'Line', value: f, start: m, end: E}; + n.locations && (Q.loc = new wt(this, O, Y)), n.ranges && (Q.range = [m, E]), o.push(Q); }; } - var W = 1, + var G = 1, J = 2, re = 4, ve = 8, @@ -25172,18 +25172,18 @@ Defaulting to 2020, but this will stop working in the future.`)), Le = 128, Xe = 256, We = 512, - Ke = W | J | Xe; + Ke = G | J | Xe; function ut(n, o) { return J | (n ? re : 0) | (o ? ve : 0); } var pt = 0, bt = 1, - Tt = 2, + yt = 2, vt = 3, bn = 4, Dn = 5, - Ge = function (o, l, h) { - (this.options = o = yn(o)), + Ge = function (o, l, f) { + (this.options = o = Tn(o)), (this.sourceFile = o.sourceFile), (this.keywords = tt( d[ @@ -25204,17 +25204,17 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.reservedWordsStrictBind = tt(E + ' ' + a.strictBind)), (this.input = String(l)), (this.containsEsc = !1), - h - ? ((this.pos = h), + f + ? ((this.pos = f), (this.lineStart = this.input.lastIndexOf( ` `, - h - 1 + f - 1 ) + 1), (this.curLine = this.input .slice(0, this.lineStart) - .split(M).length)) + .split(L).length)) : ((this.pos = this.lineStart = 0), (this.curLine = 1)), (this.type = c.eof), (this.value = null), @@ -25236,7 +25236,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.input.slice(0, 2) === '#!' && this.skipLineComment(2), (this.scopeStack = []), - this.enterScope(W), + this.enterScope(G), (this.regexpState = null), (this.privateNameStack = []); }, @@ -25300,14 +25300,14 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (Ge.extend = function () { for (var o = [], l = arguments.length; l--; ) o[l] = arguments[l]; - for (var h = this, m = 0; m < o.length; m++) h = o[m](h); - return h; + for (var f = this, m = 0; m < o.length; m++) f = o[m](f); + return f; }), (Ge.parse = function (o, l) { return new this(l, o).parse(); }), - (Ge.parseExpressionAt = function (o, l, h) { - var m = new this(h, o, l); + (Ge.parseExpressionAt = function (o, l, f) { + var m = new this(f, o, l); return m.nextToken(), m.parseExpression(); }), (Ge.tokenizer = function (o, l) { @@ -25325,15 +25325,15 @@ Defaulting to 2020, but this will stop working in the future.`)), if ((o[1] || o[2]) === 'use strict') { ae.lastIndex = n + o[0].length; var l = ae.exec(this.input), - h = l.index + l[0].length, - m = this.input.charAt(h); + f = l.index + l[0].length, + m = this.input.charAt(f); return ( m === ';' || m === '}' || - (M.test(l[0]) && + (L.test(l[0]) && !( /[(`.[+\-/*%<>=,?^&]/.test(m) || - (m === '!' && this.input.charAt(h + 1) === '=') + (m === '!' && this.input.charAt(f + 1) === '=') )) ); } @@ -25359,7 +25359,7 @@ Defaulting to 2020, but this will stop working in the future.`)), return ( this.type === c.eof || this.type === c.braceR || - M.test(this.input.slice(this.lastTokEnd, this.start)) + L.test(this.input.slice(this.lastTokEnd, this.start)) ); }), (ot.insertSemicolon = function () { @@ -25420,15 +25420,15 @@ Defaulting to 2020, but this will stop working in the future.`)), (ot.checkExpressionErrors = function (n, o) { if (!n) return !1; var l = n.shorthandAssign, - h = n.doubleProto; - if (!o) return l >= 0 || h >= 0; + f = n.doubleProto; + if (!o) return l >= 0 || f >= 0; l >= 0 && this.raise( l, 'Shorthand property assignments are valid only in destructuring patterns' ), - h >= 0 && - this.raiseRecoverable(h, 'Redefinition of __proto__ property'); + f >= 0 && + this.raiseRecoverable(f, 'Redefinition of __proto__ property'); }), (ot.checkYieldAwaitInDefaultParams = function () { this.yieldPos && @@ -25457,11 +25457,11 @@ Defaulting to 2020, but this will stop working in the future.`)), } if (this.inModule) for ( - var h = 0, m = Object.keys(this.undefinedExports); - h < m.length; - h += 1 + var f = 0, m = Object.keys(this.undefinedExports); + f < m.length; + f += 1 ) { - var E = m[h]; + var E = m[f]; this.raiseRecoverable( this.undefinedExports[E].start, "Export '" + E + "' is not defined" @@ -25482,13 +25482,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.lastIndex = this.pos; var o = ae.exec(this.input), l = this.pos + o[0].length, - h = this.input.charCodeAt(l); - if (h === 91 || h === 92) return !0; + f = this.input.charCodeAt(l); + if (f === 91 || f === 92) return !0; if (n) return !1; - if (h === 123 || (h > 55295 && h < 56320)) return !0; - if (f(h, !0)) { - for (var m = l + 1; v((h = this.input.charCodeAt(m)), !0); ) ++m; - if (h === 92 || (h > 55295 && h < 56320)) return !0; + if (f === 123 || (f > 55295 && f < 56320)) return !0; + if (h(f, !0)) { + for (var m = l + 1; T((f = this.input.charCodeAt(m)), !0); ) ++m; + if (f === 92 || (f > 55295 && f < 56320)) return !0; var E = this.input.slice(l, m); if (!y.test(E)) return !0; } @@ -25502,11 +25502,11 @@ Defaulting to 2020, but this will stop working in the future.`)), o = this.pos + n[0].length, l; return ( - !M.test(this.input.slice(this.pos, o)) && + !L.test(this.input.slice(this.pos, o)) && this.input.slice(o, o + 8) === 'function' && (o + 8 === this.input.length || !( - v((l = this.input.charCodeAt(o + 8))) || + T((l = this.input.charCodeAt(o + 8))) || (l > 55295 && l < 56320) )) ); @@ -25519,35 +25519,35 @@ Defaulting to 2020, but this will stop working in the future.`)), return !1; ae.lastIndex = this.pos; var l = ae.exec(this.input), - h = this.pos + l[0].length; - if (M.test(this.input.slice(this.pos, h))) return !1; + f = this.pos + l[0].length; + if (L.test(this.input.slice(this.pos, f))) return !1; if (n) { - var m = h + 5, + var m = f + 5, E; if ( - this.input.slice(h, m) !== 'using' || + this.input.slice(f, m) !== 'using' || m === this.input.length || - v((E = this.input.charCodeAt(m))) || + T((E = this.input.charCodeAt(m))) || (E > 55295 && E < 56320) ) return !1; ae.lastIndex = m; - var R = ae.exec(this.input); - if (R && M.test(this.input.slice(m, m + R[0].length))) return !1; + var O = ae.exec(this.input); + if (O && L.test(this.input.slice(m, m + O[0].length))) return !1; } if (o) { - var Y = h + 2, + var Y = f + 2, Q; if ( - this.input.slice(h, Y) === 'of' && + this.input.slice(f, Y) === 'of' && (Y === this.input.length || - (!v((Q = this.input.charCodeAt(Y))) && + (!T((Q = this.input.charCodeAt(Y))) && !(Q > 55295 && Q < 56320))) ) return !1; } - var ye = this.input.charCodeAt(h); - return f(ye, !0) || ye === 92; + var Te = this.input.charCodeAt(f); + return h(Te, !0) || Te === 92; }), (te.isAwaitUsing = function (n) { return this.isUsingKeyword(!0, n); @@ -25556,13 +25556,13 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.isUsingKeyword(!1, n); }), (te.parseStatement = function (n, o, l) { - var h = this.type, + var f = this.type, m = this.startNode(), E; - switch ((this.isLet(n) && ((h = c._var), (E = 'let')), h)) { + switch ((this.isLet(n) && ((f = c._var), (E = 'let')), f)) { case c._break: case c._continue: - return this.parseBreakContinueStatement(m, h.keyword); + return this.parseBreakContinueStatement(m, f.keyword); case c._debugger: return this.parseDebuggerStatement(m); case c._do: @@ -25606,10 +25606,10 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.parseEmptyStatement(m); case c._export: case c._import: - if (this.options.ecmaVersion > 10 && h === c._import) { + if (this.options.ecmaVersion > 10 && f === c._import) { ae.lastIndex = this.pos; - var R = ae.exec(this.input), - Y = this.pos + R[0].length, + var O = ae.exec(this.input), + Y = this.pos + O[0].length, Q = this.input.charCodeAt(Y); if (Q === 40 || Q === 46) return this.parseExpressionStatement( @@ -25629,7 +25629,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.start, "'import' and 'export' may appear only with 'sourceType: module'" )), - h === c._import ? this.parseImport(m) : this.parseExport(m, l) + f === c._import ? this.parseImport(m) : this.parseExport(m, l) ); default: if (this.isAsyncFunction()) @@ -25638,12 +25638,12 @@ Defaulting to 2020, but this will stop working in the future.`)), this.next(), this.parseFunctionStatement(m, !0, !n) ); - var ye = this.isAwaitUsing(!1) + var Te = this.isAwaitUsing(!1) ? 'await using' : this.isUsing(!1) ? 'using' : null; - if (ye) + if (Te) return ( o && this.options.sourceType === 'script' && @@ -25651,7 +25651,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.start, 'Using declaration cannot appear in the top level when source type is `script`' ), - ye === 'await using' && + Te === 'await using' && (this.canAwait || this.raise( this.start, @@ -25659,13 +25659,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ), this.next()), this.next(), - this.parseVar(m, !1, ye), + this.parseVar(m, !1, Te), this.semicolon(), this.finishNode(m, 'VariableDeclaration') ); var xe = this.value, Ze = this.parseExpression(); - return h === c.name && + return f === c.name && Ze.type === 'Identifier' && this.eat(c.colon) ? this.parseLabeledStatement(m, xe, Ze, n) @@ -25680,8 +25680,8 @@ Defaulting to 2020, but this will stop working in the future.`)), : this.type !== c.name ? this.unexpected() : ((n.label = this.parseIdent()), this.semicolon()); - for (var h = 0; h < this.labels.length; ++h) { - var m = this.labels[h]; + for (var f = 0; f < this.labels.length; ++f) { + var m = this.labels[f]; if ( (n.label == null || m.name === n.label.name) && ((m.kind != null && (l || m.kind === 'loop')) || (n.label && l)) @@ -25689,7 +25689,7 @@ Defaulting to 2020, but this will stop working in the future.`)), break; } return ( - h === this.labels.length && this.raise(n.start, 'Unsyntactic ' + o), + f === this.labels.length && this.raise(n.start, 'Unsyntactic ' + o), this.finishNode(n, l ? 'BreakStatement' : 'ContinueStatement') ); }), @@ -25729,17 +25729,17 @@ Defaulting to 2020, but this will stop working in the future.`)), return o > -1 && this.unexpected(o), this.parseFor(n, null); var l = this.isLet(); if (this.type === c._var || this.type === c._const || l) { - var h = this.startNode(), + var f = this.startNode(), m = l ? 'let' : this.value; return ( this.next(), - this.parseVar(h, !0, m), - this.finishNode(h, 'VariableDeclaration'), - this.parseForAfterInit(n, h, o) + this.parseVar(f, !0, m), + this.finishNode(f, 'VariableDeclaration'), + this.parseForAfterInit(n, f, o) ); } var E = this.isContextual('let'), - R = !1, + O = !1, Y = this.isUsing(!0) ? 'using' : this.isAwaitUsing(!0) @@ -25755,7 +25755,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.parseForAfterInit(n, Q, o) ); } - var ye = this.containsEsc, + var Te = this.containsEsc, xe = new Xt(), Ze = this.start, Lt = @@ -25763,19 +25763,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ? this.parseExprSubscripts(xe, 'await') : this.parseExpression(!0, xe); return this.type === c._in || - (R = this.options.ecmaVersion >= 6 && this.isContextual('of')) + (O = this.options.ecmaVersion >= 6 && this.isContextual('of')) ? (o > -1 ? (this.type === c._in && this.unexpected(o), (n.await = !0)) - : R && + : O && this.options.ecmaVersion >= 8 && (Lt.start === Ze && - !ye && + !Te && Lt.type === 'Identifier' && Lt.name === 'async' ? this.unexpected() : this.options.ecmaVersion >= 9 && (n.await = !1)), E && - R && + O && this.raise( Lt.start, "The left-hand side of a for-of loop may not start with 'let'." @@ -25833,12 +25833,12 @@ Defaulting to 2020, but this will stop working in the future.`)), this.enterScope(0); for (var o, l = !1; this.type !== c.braceR; ) if (this.type === c._case || this.type === c._default) { - var h = this.type === c._case; + var f = this.type === c._case; o && this.finishNode(o, 'SwitchCase'), n.cases.push((o = this.startNode())), (o.consequent = []), this.next(), - h + f ? (o.test = this.parseExpression()) : (l && this.raiseRecoverable( @@ -25862,7 +25862,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (te.parseThrowStatement = function (n) { return ( this.next(), - M.test(this.input.slice(this.lastTokEnd, this.start)) && + L.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, 'Illegal newline after throw'), (n.argument = this.parseExpression()), this.semicolon(), @@ -25875,7 +25875,7 @@ Defaulting to 2020, but this will stop working in the future.`)), o = n.type === 'Identifier'; return ( this.enterScope(o ? Ie : 0), - this.checkLValPattern(n, o ? bn : Tt), + this.checkLValPattern(n, o ? bn : yt), this.expect(c.parenR), n ); @@ -25936,10 +25936,10 @@ Defaulting to 2020, but this will stop working in the future.`)), (te.parseEmptyStatement = function (n) { return this.next(), this.finishNode(n, 'EmptyStatement'); }), - (te.parseLabeledStatement = function (n, o, l, h) { + (te.parseLabeledStatement = function (n, o, l, f) { for (var m = 0, E = this.labels; m < E.length; m += 1) { - var R = E[m]; - R.name === o && + var O = E[m]; + O.name === o && this.raise(l.start, "Label '" + o + "' is already declared"); } for ( @@ -25952,15 +25952,15 @@ Defaulting to 2020, but this will stop working in the future.`)), Q >= 0; Q-- ) { - var ye = this.labels[Q]; - if (ye.statementStart === n.start) - (ye.statementStart = this.start), (ye.kind = Y); + var Te = this.labels[Q]; + if (Te.statementStart === n.start) + (Te.statementStart = this.start), (Te.kind = Y); else break; } return ( this.labels.push({name: o, kind: Y, statementStart: this.start}), (n.body = this.parseStatement( - h ? (h.indexOf('label') === -1 ? h + 'label' : h) : 'label' + f ? (f.indexOf('label') === -1 ? f + 'label' : f) : 'label' )), this.labels.pop(), (n.label = l), @@ -25984,8 +25984,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.type !== c.braceR; ) { - var h = this.parseStatement(null); - o.body.push(h); + var f = this.parseStatement(null); + o.body.push(f); } return ( l && (this.strict = !1), @@ -26033,21 +26033,21 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(n, l ? 'ForInStatement' : 'ForOfStatement') ); }), - (te.parseVar = function (n, o, l, h) { + (te.parseVar = function (n, o, l, f) { for (n.declarations = [], n.kind = l; ; ) { var m = this.startNode(); if ( (this.parseVarId(m, l), this.eat(c.eq) ? (m.init = this.parseMaybeAssign(o)) - : !h && + : !f && l === 'const' && !( this.type === c._in || (this.options.ecmaVersion >= 6 && this.isContextual('of')) ) ? this.unexpected() - : !h && + : !f && (l === 'using' || l === 'await using') && this.options.ecmaVersion >= 17 && this.type !== c._in && @@ -26056,7 +26056,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.lastTokEnd, 'Missing initializer in ' + l + ' declaration' ) - : !h && + : !f && m.id.type !== 'Identifier' && !(o && (this.type === c._in || this.isContextual('of'))) ? this.raise( @@ -26076,18 +26076,18 @@ Defaulting to 2020, but this will stop working in the future.`)), o === 'using' || o === 'await using' ? this.parseIdent() : this.parseBindingAtom()), - this.checkLValPattern(n.id, o === 'var' ? bt : Tt, !1); + this.checkLValPattern(n.id, o === 'var' ? bt : yt, !1); }); var Mn = 1, xs = 2, Ds = 4; - (te.parseFunction = function (n, o, l, h, m) { + (te.parseFunction = function (n, o, l, f, m) { this.initFunction(n), (this.options.ecmaVersion >= 9 || - (this.options.ecmaVersion >= 6 && !h)) && + (this.options.ecmaVersion >= 6 && !f)) && (this.type === c.star && o & xs && this.unexpected(), (n.generator = this.eat(c.star))), - this.options.ecmaVersion >= 8 && (n.async = !!h), + this.options.ecmaVersion >= 8 && (n.async = !!f), o & Mn && ((n.id = o & Ds && this.type !== c.name ? null : this.parseIdent()), n.id && @@ -26097,11 +26097,11 @@ Defaulting to 2020, but this will stop working in the future.`)), this.strict || n.generator || n.async ? this.treatFunctionsAsVar ? bt - : Tt + : yt : vt )); var E = this.yieldPos, - R = this.awaitPos, + O = this.awaitPos, Y = this.awaitIdentPos; return ( (this.yieldPos = 0), @@ -26112,7 +26112,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.parseFunctionParams(n), this.parseFunctionBody(n, l, !1, m), (this.yieldPos = E), - (this.awaitPos = R), + (this.awaitPos = O), (this.awaitIdentPos = Y), this.finishNode( n, @@ -26133,26 +26133,26 @@ Defaulting to 2020, but this will stop working in the future.`)), this.next(); var l = this.strict; (this.strict = !0), this.parseClassId(n, o), this.parseClassSuper(n); - var h = this.enterClassBody(), + var f = this.enterClassBody(), m = this.startNode(), E = !1; for (m.body = [], this.expect(c.braceL); this.type !== c.braceR; ) { - var R = this.parseClassElement(n.superClass !== null); - R && - (m.body.push(R), - R.type === 'MethodDefinition' && R.kind === 'constructor' + var O = this.parseClassElement(n.superClass !== null); + O && + (m.body.push(O), + O.type === 'MethodDefinition' && O.kind === 'constructor' ? (E && this.raiseRecoverable( - R.start, + O.start, 'Duplicate constructor in the same class' ), (E = !0)) - : R.key && - R.key.type === 'PrivateIdentifier' && - bi(h, R) && + : O.key && + O.key.type === 'PrivateIdentifier' && + bi(f, O) && this.raiseRecoverable( - R.key.start, - "Identifier '#" + R.key.name + "' has already been declared" + O.key.start, + "Identifier '#" + O.key.name + "' has already been declared" )); } return ( @@ -26167,55 +26167,55 @@ Defaulting to 2020, but this will stop working in the future.`)), if (this.eat(c.semi)) return null; var o = this.options.ecmaVersion, l = this.startNode(), - h = '', + f = '', m = !1, E = !1, - R = 'method', + O = 'method', Y = !1; if (this.eatContextual('static')) { if (o >= 13 && this.eat(c.braceL)) return this.parseClassStaticBlock(l), l; this.isClassElementNameStart() || this.type === c.star ? (Y = !0) - : (h = 'static'); + : (f = 'static'); } if ( ((l.static = Y), - !h && + !f && o >= 8 && this.eatContextual('async') && ((this.isClassElementNameStart() || this.type === c.star) && !this.canInsertSemicolon() ? (E = !0) - : (h = 'async')), - !h && (o >= 9 || !E) && this.eat(c.star) && (m = !0), - !h && !E && !m) + : (f = 'async')), + !f && (o >= 9 || !E) && this.eat(c.star) && (m = !0), + !f && !E && !m) ) { var Q = this.value; (this.eatContextual('get') || this.eatContextual('set')) && - (this.isClassElementNameStart() ? (R = Q) : (h = Q)); + (this.isClassElementNameStart() ? (O = Q) : (f = Q)); } if ( - (h + (f ? ((l.computed = !1), (l.key = this.startNodeAt( this.lastTokStart, this.lastTokStartLoc )), - (l.key.name = h), + (l.key.name = f), this.finishNode(l.key, 'Identifier')) : this.parseClassElementName(l), - o < 13 || this.type === c.parenL || R !== 'method' || m || E) + o < 13 || this.type === c.parenL || O !== 'method' || m || E) ) { - var ye = !l.static && es(l, 'constructor'), - xe = ye && n; - ye && - R !== 'method' && + var Te = !l.static && es(l, 'constructor'), + xe = Te && n; + Te && + O !== 'method' && this.raise( l.key.start, "Constructor can't have get/set modifier" ), - (l.kind = ye ? 'constructor' : R), + (l.kind = Te ? 'constructor' : O), this.parseClassMethod(l, m, E, xe); } else this.parseClassField(l); return l; @@ -26241,7 +26241,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (n.key = this.parsePrivateIdent())) : this.parsePropertyName(n); }), - (te.parseClassMethod = function (n, o, l, h) { + (te.parseClassMethod = function (n, o, l, f) { var m = n.key; n.kind === 'constructor' ? (o && this.raise(m.start, "Constructor can't be a generator"), @@ -26252,7 +26252,7 @@ Defaulting to 2020, but this will stop working in the future.`)), m.start, 'Classes may not have a static property named prototype' ); - var E = (n.value = this.parseMethod(o, l, h)); + var E = (n.value = this.parseMethod(o, l, f)); return ( n.kind === 'get' && E.params.length !== 0 && @@ -26315,7 +26315,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (te.parseClassId = function (n, o) { this.type === c.name ? ((n.id = this.parseIdent()), - o && this.checkLValSimple(n.id, Tt, !1)) + o && this.checkLValSimple(n.id, yt, !1)) : (o === !0 && this.unexpected(), (n.id = null)); }), (te.parseClassSuper = function (n) { @@ -26333,49 +26333,49 @@ Defaulting to 2020, but this will stop working in the future.`)), l = n.used; if (this.options.checkPrivateFields) for ( - var h = this.privateNameStack.length, - m = h === 0 ? null : this.privateNameStack[h - 1], + var f = this.privateNameStack.length, + m = f === 0 ? null : this.privateNameStack[f - 1], E = 0; E < l.length; ++E ) { - var R = l[E]; - mt(o, R.name) || + var O = l[E]; + mt(o, O.name) || (m - ? m.used.push(R) + ? m.used.push(O) : this.raiseRecoverable( - R.start, + O.start, "Private field '#" + - R.name + + O.name + "' must be declared in an enclosing class" )); } }); function bi(n, o) { var l = o.key.name, - h = n[l], + f = n[l], m = 'true'; return ( o.type === 'MethodDefinition' && (o.kind === 'get' || o.kind === 'set') && (m = (o.static ? 's' : 'i') + o.kind), - (h === 'iget' && m === 'iset') || - (h === 'iset' && m === 'iget') || - (h === 'sget' && m === 'sset') || - (h === 'sset' && m === 'sget') + (f === 'iget' && m === 'iset') || + (f === 'iset' && m === 'iget') || + (f === 'sget' && m === 'sset') || + (f === 'sset' && m === 'sget') ? ((n[l] = 'true'), !1) - : h + : f ? !0 : ((n[l] = m), !1) ); } function es(n, o) { var l = n.computed, - h = n.key; + f = n.key; return ( !l && - ((h.type === 'Identifier' && h.name === o) || - (h.type === 'Literal' && h.value === o)) + ((f.type === 'Identifier' && f.name === o) || + (f.type === 'Literal' && f.value === o)) ); } (te.parseExportAllDeclaration = function (n, o) { @@ -26422,8 +26422,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 16 && (n.attributes = this.parseWithClause()); else { - for (var l = 0, h = n.specifiers; l < h.length; l += 1) { - var m = h[l]; + for (var l = 0, f = n.specifiers; l < f.length; l += 1) { + var m = f[l]; this.checkUnreserved(m.local), this.checkLocalExport(m.local), m.local.type === 'Literal' && @@ -26455,8 +26455,8 @@ Defaulting to 2020, but this will stop working in the future.`)), var l = this.startNode(); return this.parseClass(l, 'nullableID'); } else { - var h = this.parseMaybeAssign(); - return this.semicolon(), h; + var f = this.parseMaybeAssign(); + return this.semicolon(), f; } }), (te.checkExport = function (n, o, l) { @@ -26471,13 +26471,13 @@ Defaulting to 2020, but this will stop working in the future.`)), var l = o.type; if (l === 'Identifier') this.checkExport(n, o, o.start); else if (l === 'ObjectPattern') - for (var h = 0, m = o.properties; h < m.length; h += 1) { - var E = m[h]; + for (var f = 0, m = o.properties; f < m.length; f += 1) { + var E = m[f]; this.checkPatternExport(n, E); } else if (l === 'ArrayPattern') - for (var R = 0, Y = o.elements; R < Y.length; R += 1) { - var Q = Y[R]; + for (var O = 0, Y = o.elements; O < Y.length; O += 1) { + var Q = Y[O]; Q && this.checkPatternExport(n, Q); } else @@ -26489,8 +26489,8 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (te.checkVariableExport = function (n, o) { if (n) - for (var l = 0, h = o; l < h.length; l += 1) { - var m = h[l]; + for (var l = 0, f = o; l < f.length; l += 1) { + var m = f[l]; this.checkPatternExport(n, m.id); } }), @@ -26550,7 +26550,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.eatContextual('as') ? (n.local = this.parseIdent()) : (this.checkUnreserved(n.imported), (n.local = n.imported)), - this.checkLValSimple(n.local, Tt), + this.checkLValSimple(n.local, yt), this.finishNode(n, 'ImportSpecifier') ); }), @@ -26558,7 +26558,7 @@ Defaulting to 2020, but this will stop working in the future.`)), var n = this.startNode(); return ( (n.local = this.parseIdent()), - this.checkLValSimple(n.local, Tt), + this.checkLValSimple(n.local, yt), this.finishNode(n, 'ImportDefaultSpecifier') ); }), @@ -26568,7 +26568,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.next(), this.expectContextual('as'), (n.local = this.parseIdent()), - this.checkLValSimple(n.local, Tt), + this.checkLValSimple(n.local, yt), this.finishNode(n, 'ImportNamespaceSpecifier') ); }), @@ -26598,15 +26598,15 @@ Defaulting to 2020, but this will stop working in the future.`)), if (l) l = !1; else if ((this.expect(c.comma), this.afterTrailingComma(c.braceR))) break; - var h = this.parseImportAttribute(), - m = h.key.type === 'Identifier' ? h.key.name : h.key.value; + var f = this.parseImportAttribute(), + m = f.key.type === 'Identifier' ? f.key.name : f.key.value; mt(o, m) && this.raiseRecoverable( - h.key.start, + f.key.start, "Duplicate attribute key '" + m + "'" ), (o[m] = !0), - n.push(h); + n.push(f); } return n; }), @@ -26669,8 +26669,8 @@ Defaulting to 2020, but this will stop working in the future.`)), break; case 'ObjectExpression': (n.type = 'ObjectPattern'), l && this.checkPatternErrors(l, !0); - for (var h = 0, m = n.properties; h < m.length; h += 1) { - var E = m[h]; + for (var f = 0, m = n.properties; f < m.length; f += 1) { + var E = m[f]; this.toAssignable(E, o), E.type === 'RestElement' && (E.argument.type === 'ArrayPattern' || @@ -26728,8 +26728,8 @@ Defaulting to 2020, but this will stop working in the future.`)), return n; }), (Nt.toAssignableList = function (n, o) { - for (var l = n.length, h = 0; h < l; h++) { - var m = n[h]; + for (var l = n.length, f = 0; f < l; f++) { + var m = n[f]; m && this.toAssignable(m, o); } if (l) { @@ -26777,7 +26777,7 @@ Defaulting to 2020, but this will stop working in the future.`)), } return this.parseIdent(); }), - (Nt.parseBindingList = function (n, o, l, h) { + (Nt.parseBindingList = function (n, o, l, f) { for (var m = [], E = !0; !this.eat(n); ) if ( (E ? (E = !1) : this.expect(c.comma), o && this.type === c.comma) @@ -26786,9 +26786,9 @@ Defaulting to 2020, but this will stop working in the future.`)), else { if (l && this.afterTrailingComma(n)) break; if (this.type === c.ellipsis) { - var R = this.parseRestBinding(); - this.parseBindingListItem(R), - m.push(R), + var O = this.parseRestBinding(); + this.parseBindingListItem(O), + m.push(O), this.type === c.comma && this.raiseRecoverable( this.start, @@ -26796,7 +26796,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ), this.expect(n); break; - } else m.push(this.parseAssignableListItem(h)); + } else m.push(this.parseAssignableListItem(f)); } return m; }), @@ -26813,28 +26813,28 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion < 6 || !this.eat(c.eq)) ) return l; - var h = this.startNodeAt(n, o); + var f = this.startNodeAt(n, o); return ( - (h.left = l), - (h.right = this.parseMaybeAssign()), - this.finishNode(h, 'AssignmentPattern') + (f.left = l), + (f.right = this.parseMaybeAssign()), + this.finishNode(f, 'AssignmentPattern') ); }), (Nt.checkLValSimple = function (n, o, l) { o === void 0 && (o = pt); - var h = o !== pt; + var f = o !== pt; switch (n.type) { case 'Identifier': this.strict && this.reservedWordsStrictBind.test(n.name) && this.raiseRecoverable( n.start, - (h ? 'Binding ' : 'Assigning to ') + + (f ? 'Binding ' : 'Assigning to ') + n.name + ' in strict mode' ), - h && - (o === Tt && + f && + (o === yt && n.name === 'let' && this.raiseRecoverable( n.start, @@ -26853,11 +26853,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ); break; case 'MemberExpression': - h && this.raiseRecoverable(n.start, 'Binding member expression'); + f && this.raiseRecoverable(n.start, 'Binding member expression'); break; case 'ParenthesizedExpression': return ( - h && + f && this.raiseRecoverable( n.start, 'Binding parenthesized expression' @@ -26865,20 +26865,20 @@ Defaulting to 2020, but this will stop working in the future.`)), this.checkLValSimple(n.expression, o, l) ); default: - this.raise(n.start, (h ? 'Binding' : 'Assigning to') + ' rvalue'); + this.raise(n.start, (f ? 'Binding' : 'Assigning to') + ' rvalue'); } }), (Nt.checkLValPattern = function (n, o, l) { switch ((o === void 0 && (o = pt), n.type)) { case 'ObjectPattern': - for (var h = 0, m = n.properties; h < m.length; h += 1) { - var E = m[h]; + for (var f = 0, m = n.properties; f < m.length; f += 1) { + var E = m[f]; this.checkLValInnerPattern(E, o, l); } break; case 'ArrayPattern': - for (var R = 0, Y = n.elements; R < Y.length; R += 1) { - var Q = Y[R]; + for (var O = 0, Y = n.elements; O < Y.length; O += 1) { + var Q = Y[O]; Q && this.checkLValInnerPattern(Q, o, l); } break; @@ -26901,10 +26901,10 @@ Defaulting to 2020, but this will stop working in the future.`)), this.checkLValPattern(n, o, l); } }); - var Rt = function (o, l, h, m, E) { + var Rt = function (o, l, f, m, E) { (this.token = o), (this.isExpr = !!l), - (this.preserveSpace = !!h), + (this.preserveSpace = !!f), (this.override = m), (this.generator = !!E); }, @@ -26936,7 +26936,7 @@ Defaulting to 2020, but this will stop working in the future.`)), : n === c.colon && (o === Ue.b_stat || o === Ue.b_expr) ? !o.isExpr : n === c._return || (n === c.name && this.exprAllowed) - ? M.test(this.input.slice(this.lastTokEnd, this.start)) + ? L.test(this.input.slice(this.lastTokEnd, this.start)) : n === c._else || n === c.semi || n === c.eof || @@ -27001,7 +27001,7 @@ Defaulting to 2020, but this will stop working in the future.`)), !(n === c.semi && this.curContext() !== Ue.p_stat) && !( n === c._return && - M.test(this.input.slice(this.lastTokEnd, this.start)) + L.test(this.input.slice(this.lastTokEnd, this.start)) ) && !( (n === c.colon || n === c.braceL) && @@ -27048,14 +27048,14 @@ Defaulting to 2020, but this will stop working in the future.`)), (n.computed || n.method || n.shorthand) ) ) { - var h = n.key, + var f = n.key, m; - switch (h.type) { + switch (f.type) { case 'Identifier': - m = h.name; + m = f.name; break; case 'Literal': - m = String(h.value); + m = String(f.value); break; default: return; @@ -27066,32 +27066,32 @@ Defaulting to 2020, but this will stop working in the future.`)), E === 'init' && (o.proto && (l - ? l.doubleProto < 0 && (l.doubleProto = h.start) + ? l.doubleProto < 0 && (l.doubleProto = f.start) : this.raiseRecoverable( - h.start, + f.start, 'Redefinition of __proto__ property' )), (o.proto = !0)); return; } m = '$' + m; - var R = o[m]; - if (R) { + var O = o[m]; + if (O) { var Y; E === 'init' - ? (Y = (this.strict && R.init) || R.get || R.set) - : (Y = R.init || R[E]), - Y && this.raiseRecoverable(h.start, 'Redefinition of property'); - } else R = o[m] = {init: !1, get: !1, set: !1}; - R[E] = !0; + ? (Y = (this.strict && O.init) || O.get || O.set) + : (Y = O.init || O[E]), + Y && this.raiseRecoverable(f.start, 'Redefinition of property'); + } else O = o[m] = {init: !1, get: !1, set: !1}; + O[E] = !0; } }), (de.parseExpression = function (n, o) { var l = this.start, - h = this.startLoc, + f = this.startLoc, m = this.parseMaybeAssign(n, o); if (this.type === c.comma) { - var E = this.startNodeAt(l, h); + var E = this.startNodeAt(l, f); for (E.expressions = [m]; this.eat(c.comma); ) E.expressions.push(this.parseMaybeAssign(n, o)); return this.finishNode(E, 'SequenceExpression'); @@ -27103,53 +27103,53 @@ Defaulting to 2020, but this will stop working in the future.`)), if (this.inGenerator) return this.parseYield(n); this.exprAllowed = !1; } - var h = !1, + var f = !1, m = -1, E = -1, - R = -1; + O = -1; o ? ((m = o.parenthesizedAssign), (E = o.trailingComma), - (R = o.doubleProto), + (O = o.doubleProto), (o.parenthesizedAssign = o.trailingComma = -1)) - : ((o = new Xt()), (h = !0)); + : ((o = new Xt()), (f = !0)); var Y = this.start, Q = this.startLoc; (this.type === c.parenL || this.type === c.name) && ((this.potentialArrowAt = this.start), (this.potentialArrowInForAwait = n === 'await')); - var ye = this.parseMaybeConditional(n, o); - if ((l && (ye = l.call(this, ye, Y, Q)), this.type.isAssign)) { + var Te = this.parseMaybeConditional(n, o); + if ((l && (Te = l.call(this, Te, Y, Q)), this.type.isAssign)) { var xe = this.startNodeAt(Y, Q); return ( (xe.operator = this.value), - this.type === c.eq && (ye = this.toAssignable(ye, !1, o)), - h || + this.type === c.eq && (Te = this.toAssignable(Te, !1, o)), + f || (o.parenthesizedAssign = o.trailingComma = o.doubleProto = -1), - o.shorthandAssign >= ye.start && (o.shorthandAssign = -1), + o.shorthandAssign >= Te.start && (o.shorthandAssign = -1), this.type === c.eq - ? this.checkLValPattern(ye) - : this.checkLValSimple(ye), - (xe.left = ye), + ? this.checkLValPattern(Te) + : this.checkLValSimple(Te), + (xe.left = Te), this.next(), (xe.right = this.parseMaybeAssign(n)), - R > -1 && (o.doubleProto = R), + O > -1 && (o.doubleProto = O), this.finishNode(xe, 'AssignmentExpression') ); - } else h && this.checkExpressionErrors(o, !0); + } else f && this.checkExpressionErrors(o, !0); return ( m > -1 && (o.parenthesizedAssign = m), E > -1 && (o.trailingComma = E), - ye + Te ); }), (de.parseMaybeConditional = function (n, o) { var l = this.start, - h = this.startLoc, + f = this.startLoc, m = this.parseExprOps(n, o); if (this.checkExpressionErrors(o)) return m; if (this.eat(c.question)) { - var E = this.startNodeAt(l, h); + var E = this.startNodeAt(l, f); return ( (E.test = m), (E.consequent = this.parseMaybeAssign()), @@ -27162,71 +27162,71 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (de.parseExprOps = function (n, o) { var l = this.start, - h = this.startLoc, + f = this.startLoc, m = this.parseMaybeUnary(o, !1, !1, n); return this.checkExpressionErrors(o) || (m.start === l && m.type === 'ArrowFunctionExpression') ? m - : this.parseExprOp(m, l, h, -1, n); + : this.parseExprOp(m, l, f, -1, n); }), - (de.parseExprOp = function (n, o, l, h, m) { + (de.parseExprOp = function (n, o, l, f, m) { var E = this.type.binop; - if (E != null && (!m || this.type !== c._in) && E > h) { - var R = this.type === c.logicalOR || this.type === c.logicalAND, + if (E != null && (!m || this.type !== c._in) && E > f) { + var O = this.type === c.logicalOR || this.type === c.logicalAND, Y = this.type === c.coalesce; Y && (E = c.logicalAND.binop); var Q = this.value; this.next(); - var ye = this.start, + var Te = this.start, xe = this.startLoc, Ze = this.parseExprOp( this.parseMaybeUnary(null, !1, !1, m), - ye, + Te, xe, E, m ), - Lt = this.buildBinary(o, l, n, Ze, Q, R || Y); + Lt = this.buildBinary(o, l, n, Ze, Q, O || Y); return ( - ((R && this.type === c.coalesce) || + ((O && this.type === c.coalesce) || (Y && (this.type === c.logicalOR || this.type === c.logicalAND))) && this.raiseRecoverable( this.start, 'Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses' ), - this.parseExprOp(Lt, o, l, h, m) + this.parseExprOp(Lt, o, l, f, m) ); } return n; }), - (de.buildBinary = function (n, o, l, h, m, E) { - h.type === 'PrivateIdentifier' && + (de.buildBinary = function (n, o, l, f, m, E) { + f.type === 'PrivateIdentifier' && this.raise( - h.start, + f.start, 'Private identifier can only be left side of binary expression' ); - var R = this.startNodeAt(n, o); + var O = this.startNodeAt(n, o); return ( - (R.left = l), - (R.operator = m), - (R.right = h), - this.finishNode(R, E ? 'LogicalExpression' : 'BinaryExpression') + (O.left = l), + (O.operator = m), + (O.right = f), + this.finishNode(O, E ? 'LogicalExpression' : 'BinaryExpression') ); }), - (de.parseMaybeUnary = function (n, o, l, h) { + (de.parseMaybeUnary = function (n, o, l, f) { var m = this.start, E = this.startLoc, - R; + O; if (this.isContextual('await') && this.canAwait) - (R = this.parseAwait(h)), (o = !0); + (O = this.parseAwait(f)), (o = !0); else if (this.type.prefix) { var Y = this.startNode(), Q = this.type === c.incDec; (Y.operator = this.value), (Y.prefix = !0), this.next(), - (Y.argument = this.parseMaybeUnary(null, !0, Q, h)), + (Y.argument = this.parseMaybeUnary(null, !0, Q, f)), this.checkExpressionErrors(n, !0), Q ? this.checkLValSimple(Y.argument) @@ -27241,30 +27241,30 @@ Defaulting to 2020, but this will stop working in the future.`)), 'Private fields can not be deleted' ) : (o = !0), - (R = this.finishNode( + (O = this.finishNode( Y, Q ? 'UpdateExpression' : 'UnaryExpression' )); } else if (!o && this.type === c.privateId) - (h || this.privateNameStack.length === 0) && + (f || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), - (R = this.parsePrivateIdent()), + (O = this.parsePrivateIdent()), this.type !== c._in && this.unexpected(); else { if ( - ((R = this.parseExprSubscripts(n, h)), + ((O = this.parseExprSubscripts(n, f)), this.checkExpressionErrors(n)) ) - return R; + return O; for (; this.type.postfix && !this.canInsertSemicolon(); ) { - var ye = this.startNodeAt(m, E); - (ye.operator = this.value), - (ye.prefix = !1), - (ye.argument = R), - this.checkLValSimple(R), + var Te = this.startNodeAt(m, E); + (Te.operator = this.value), + (Te.prefix = !1), + (Te.argument = O), + this.checkLValSimple(O), this.next(), - (R = this.finishNode(ye, 'UpdateExpression')); + (O = this.finishNode(Te, 'UpdateExpression')); } } if (!l && this.eat(c.starstar)) @@ -27273,12 +27273,12 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.buildBinary( m, E, - R, - this.parseMaybeUnary(null, !1, !1, h), + O, + this.parseMaybeUnary(null, !1, !1, f), '**', !1 ); - else return R; + else return O; }); function Ms(n) { return ( @@ -27296,14 +27296,14 @@ Defaulting to 2020, but this will stop working in the future.`)), } (de.parseExprSubscripts = function (n, o) { var l = this.start, - h = this.startLoc, + f = this.startLoc, m = this.parseExprAtom(n, o); if ( m.type === 'ArrowFunctionExpression' && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ')' ) return m; - var E = this.parseSubscripts(m, l, h, !1, o); + var E = this.parseSubscripts(m, l, f, !1, o); return ( n && E.type === 'MemberExpression' && @@ -27313,7 +27313,7 @@ Defaulting to 2020, but this will stop working in the future.`)), E ); }), - (de.parseSubscripts = function (n, o, l, h, m) { + (de.parseSubscripts = function (n, o, l, f, m) { for ( var E = this.options.ecmaVersion >= 8 && @@ -27323,16 +27323,16 @@ Defaulting to 2020, but this will stop working in the future.`)), !this.canInsertSemicolon() && n.end - n.start === 5 && this.potentialArrowAt === n.start, - R = !1; + O = !1; ; ) { - var Y = this.parseSubscript(n, o, l, h, E, R, m); + var Y = this.parseSubscript(n, o, l, f, E, O, m); if ( - (Y.optional && (R = !0), + (Y.optional && (O = !0), Y === n || Y.type === 'ArrowFunctionExpression') ) { - if (R) { + if (O) { var Q = this.startNodeAt(o, l); (Q.expression = Y), (Y = this.finishNode(Q, 'ChainExpression')); } @@ -27344,27 +27344,27 @@ Defaulting to 2020, but this will stop working in the future.`)), (de.shouldParseAsyncArrow = function () { return !this.canInsertSemicolon() && this.eat(c.arrow); }), - (de.parseSubscriptAsyncArrow = function (n, o, l, h) { - return this.parseArrowExpression(this.startNodeAt(n, o), l, !0, h); + (de.parseSubscriptAsyncArrow = function (n, o, l, f) { + return this.parseArrowExpression(this.startNodeAt(n, o), l, !0, f); }), - (de.parseSubscript = function (n, o, l, h, m, E, R) { + (de.parseSubscript = function (n, o, l, f, m, E, O) { var Y = this.options.ecmaVersion >= 11, Q = Y && this.eat(c.questionDot); - h && + f && Q && this.raise( this.lastTokStart, 'Optional chaining cannot appear in the callee of new expressions' ); - var ye = this.eat(c.bracketL); + var Te = this.eat(c.bracketL); if ( - ye || + Te || (Q && this.type !== c.parenL && this.type !== c.backQuote) || this.eat(c.dot) ) { var xe = this.startNodeAt(o, l); (xe.object = n), - ye + Te ? ((xe.property = this.parseExpression()), this.expect(c.bracketR)) : this.type === c.privateId && n.type !== 'Super' @@ -27372,10 +27372,10 @@ Defaulting to 2020, but this will stop working in the future.`)), : (xe.property = this.parseIdent( this.options.allowReserved !== 'never' )), - (xe.computed = !!ye), + (xe.computed = !!Te), Y && (xe.optional = Q), (n = this.finishNode(xe, 'MemberExpression')); - } else if (!h && this.eat(c.parenL)) { + } else if (!f && this.eat(c.parenL)) { var Ze = new Xt(), Lt = this.yieldPos, Ri = this.awaitPos, @@ -27399,7 +27399,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.yieldPos = Lt), (this.awaitPos = Ri), (this.awaitIdentPos = Ys), - this.parseSubscriptAsyncArrow(o, l, gr, R) + this.parseSubscriptAsyncArrow(o, l, gr, O) ); this.checkExpressionErrors(Ze, !0), (this.yieldPos = Lt || this.yieldPos), @@ -27425,36 +27425,36 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (de.parseExprAtom = function (n, o, l) { this.type === c.slash && this.readRegexp(); - var h, + var f, m = this.potentialArrowAt === this.start; switch (this.type) { case c._super: return ( this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), - (h = this.startNode()), + (f = this.startNode()), this.next(), this.type === c.parenL && !this.allowDirectSuper && this.raise( - h.start, + f.start, 'super() call outside constructor of a subclass' ), this.type !== c.dot && this.type !== c.bracketL && this.type !== c.parenL && this.unexpected(), - this.finishNode(h, 'Super') + this.finishNode(f, 'Super') ); case c._this: return ( - (h = this.startNode()), + (f = this.startNode()), this.next(), - this.finishNode(h, 'ThisExpression') + this.finishNode(f, 'ThisExpression') ); case c.name: var E = this.start, - R = this.startLoc, + O = this.startLoc, Y = this.containsEsc, Q = this.parseIdent(!1); if ( @@ -27466,12 +27466,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ) return ( this.overrideContext(Ue.f_expr), - this.parseFunction(this.startNodeAt(E, R), 0, !1, !0, o) + this.parseFunction(this.startNodeAt(E, O), 0, !1, !0, o) ); if (m && !this.canInsertSemicolon()) { if (this.eat(c.arrow)) return this.parseArrowExpression( - this.startNodeAt(E, R), + this.startNodeAt(E, O), [Q], !1, o @@ -27490,7 +27490,7 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.canInsertSemicolon() || !this.eat(c.arrow)) && this.unexpected(), this.parseArrowExpression( - this.startNodeAt(E, R), + this.startNodeAt(E, O), [Q], !0, o @@ -27499,11 +27499,11 @@ Defaulting to 2020, but this will stop working in the future.`)), } return Q; case c.regexp: - var ye = this.value; + var Te = this.value; return ( - (h = this.parseLiteral(ye.value)), - (h.regex = {pattern: ye.pattern, flags: ye.flags}), - h + (f = this.parseLiteral(Te.value)), + (f.regex = {pattern: Te.pattern, flags: Te.flags}), + f ); case c.num: case c.string: @@ -27512,12 +27512,12 @@ Defaulting to 2020, but this will stop working in the future.`)), case c._true: case c._false: return ( - (h = this.startNode()), - (h.value = + (f = this.startNode()), + (f.value = this.type === c._null ? null : this.type === c._true), - (h.raw = this.type.keyword), + (f.raw = this.type.keyword), this.next(), - this.finishNode(h, 'Literal') + this.finishNode(f, 'Literal') ); case c.parenL: var xe = this.start, @@ -27532,16 +27532,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ); case c.bracketL: return ( - (h = this.startNode()), + (f = this.startNode()), this.next(), - (h.elements = this.parseExprList(c.bracketR, !0, !0, n)), - this.finishNode(h, 'ArrayExpression') + (f.elements = this.parseExprList(c.bracketR, !0, !0, n)), + this.finishNode(f, 'ArrayExpression') ); case c.braceL: return this.overrideContext(Ue.b_expr), this.parseObj(!1, n); case c._function: return ( - (h = this.startNode()), this.next(), this.parseFunction(h, 0) + (f = this.startNode()), this.next(), this.parseFunction(f, 0) ); case c._class: return this.parseClass(this.startNode(), !1); @@ -27655,15 +27655,15 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (de.parseParenAndDistinguishExpression = function (n, o) { var l = this.start, - h = this.startLoc, + f = this.startLoc, m, E = this.options.ecmaVersion >= 8; if (this.options.ecmaVersion >= 6) { this.next(); - var R = this.start, + var O = this.start, Y = this.startLoc, Q = [], - ye = !0, + Te = !0, xe = !1, Ze = new Xt(), Lt = this.yieldPos, @@ -27671,7 +27671,7 @@ Defaulting to 2020, but this will stop working in the future.`)), Ys; for (this.yieldPos = 0, this.awaitPos = 0; this.type !== c.parenR; ) if ( - (ye ? (ye = !1) : this.expect(c.comma), + (Te ? (Te = !1) : this.expect(c.comma), E && this.afterTrailingComma(c.parenR, !0)) ) { xe = !0; @@ -27697,7 +27697,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.checkYieldAwaitInDefaultParams(), (this.yieldPos = Lt), (this.awaitPos = Ri), - this.parseParenArrowList(l, h, Q, o) + this.parseParenArrowList(l, f, Q, o) ); (!Q.length || xe) && this.unexpected(this.lastTokStart), Ys && this.unexpected(Ys), @@ -27705,13 +27705,13 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.yieldPos = Lt || this.yieldPos), (this.awaitPos = Ri || this.awaitPos), Q.length > 1 - ? ((m = this.startNodeAt(R, Y)), + ? ((m = this.startNodeAt(O, Y)), (m.expressions = Q), this.finishNodeAt(m, 'SequenceExpression', gr, Js)) : (m = Q[0]); } else m = this.parseParenExpression(); if (this.options.preserveParens) { - var Qs = this.startNodeAt(l, h); + var Qs = this.startNodeAt(l, f); return ( (Qs.expression = m), this.finishNode(Qs, 'ParenthesizedExpression') @@ -27721,8 +27721,8 @@ Defaulting to 2020, but this will stop working in the future.`)), (de.parseParenItem = function (n) { return n; }), - (de.parseParenArrowList = function (n, o, l, h) { - return this.parseArrowExpression(this.startNodeAt(n, o), l, !1, h); + (de.parseParenArrowList = function (n, o, l, f) { + return this.parseArrowExpression(this.startNodeAt(n, o), l, !1, f); }); var Ci = []; (de.parseNew = function () { @@ -27757,12 +27757,12 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(n, 'MetaProperty') ); } - var h = this.start, + var f = this.start, m = this.startLoc; return ( (n.callee = this.parseSubscripts( this.parseExprAtom(null, !1, !0), - h, + f, m, !0, !1 @@ -27814,14 +27814,14 @@ Defaulting to 2020, but this will stop working in the future.`)), o === void 0 && (o = !1); var l = this.startNode(); this.next(), (l.expressions = []); - var h = this.parseTemplateElement({isTagged: o}); - for (l.quasis = [h]; !h.tail; ) + var f = this.parseTemplateElement({isTagged: o}); + for (l.quasis = [f]; !f.tail; ) this.type === c.eof && this.raise(this.pos, 'Unterminated template literal'), this.expect(c.dollarBraceL), l.expressions.push(this.parseExpression()), this.expect(c.braceR), - l.quasis.push((h = this.parseTemplateElement({isTagged: o}))); + l.quasis.push((f = this.parseTemplateElement({isTagged: o}))); return this.next(), this.finishNode(l, 'TemplateLiteral'); }), (de.isAsyncProp = function (n) { @@ -27835,15 +27835,15 @@ Defaulting to 2020, but this will stop working in the future.`)), this.type === c.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === c.star)) && - !M.test(this.input.slice(this.lastTokEnd, this.start)) + !L.test(this.input.slice(this.lastTokEnd, this.start)) ); }), (de.parseObj = function (n, o) { var l = this.startNode(), - h = !0, + f = !0, m = {}; for (l.properties = [], this.next(); !this.eat(c.braceR); ) { - if (h) h = !1; + if (f) f = !1; else if ( (this.expect(c.comma), this.options.ecmaVersion >= 5 && @@ -27857,10 +27857,10 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (de.parseProperty = function (n, o) { var l = this.startNode(), - h, + f, m, E, - R; + O; if (this.options.ecmaVersion >= 9 && this.eat(c.ellipsis)) return n ? ((l.argument = this.parseIdent(!1)), @@ -27879,21 +27879,21 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 6 && ((l.method = !1), (l.shorthand = !1), - (n || o) && ((E = this.start), (R = this.startLoc)), - n || (h = this.eat(c.star))); + (n || o) && ((E = this.start), (O = this.startLoc)), + n || (f = this.eat(c.star))); var Y = this.containsEsc; return ( this.parsePropertyName(l), !n && !Y && this.options.ecmaVersion >= 8 && - !h && + !f && this.isAsyncProp(l) ? ((m = !0), - (h = this.options.ecmaVersion >= 9 && this.eat(c.star)), + (f = this.options.ecmaVersion >= 9 && this.eat(c.star)), this.parsePropertyName(l)) : (m = !1), - this.parsePropertyValue(l, n, h, m, E, R, o, Y), + this.parsePropertyValue(l, n, f, m, E, O, o, Y), this.finishNode(l, 'Property') ); }), @@ -27904,11 +27904,11 @@ Defaulting to 2020, but this will stop working in the future.`)), (n.kind = o); var l = n.kind === 'get' ? 0 : 1; if (n.value.params.length !== l) { - var h = n.value.start; + var f = n.value.start; n.kind === 'get' - ? this.raiseRecoverable(h, 'getter should have no params') + ? this.raiseRecoverable(f, 'getter should have no params') : this.raiseRecoverable( - h, + f, 'setter should have exactly one param' ); } else @@ -27919,17 +27919,17 @@ Defaulting to 2020, but this will stop working in the future.`)), 'Setter cannot use rest params' ); }), - (de.parsePropertyValue = function (n, o, l, h, m, E, R, Y) { - (l || h) && this.type === c.colon && this.unexpected(), + (de.parsePropertyValue = function (n, o, l, f, m, E, O, Y) { + (l || f) && this.type === c.colon && this.unexpected(), this.eat(c.colon) ? ((n.value = o ? this.parseMaybeDefault(this.start, this.startLoc) - : this.parseMaybeAssign(!1, R)), + : this.parseMaybeAssign(!1, O)), (n.kind = 'init')) : this.options.ecmaVersion >= 6 && this.type === c.parenL ? (o && this.unexpected(), (n.method = !0), - (n.value = this.parseMethod(l, h)), + (n.value = this.parseMethod(l, f)), (n.kind = 'init')) : !o && !Y && @@ -27940,11 +27940,11 @@ Defaulting to 2020, but this will stop working in the future.`)), this.type !== c.comma && this.type !== c.braceR && this.type !== c.eq - ? ((l || h) && this.unexpected(), this.parseGetterSetter(n)) + ? ((l || f) && this.unexpected(), this.parseGetterSetter(n)) : this.options.ecmaVersion >= 6 && !n.computed && n.key.type === 'Identifier' - ? ((l || h) && this.unexpected(), + ? ((l || f) && this.unexpected(), this.checkUnreserved(n.key), n.key.name === 'await' && !this.awaitIdentPos && @@ -27955,8 +27955,8 @@ Defaulting to 2020, but this will stop working in the future.`)), E, this.copyNode(n.key) )) - : this.type === c.eq && R - ? (R.shorthandAssign < 0 && (R.shorthandAssign = this.start), + : this.type === c.eq && O + ? (O.shorthandAssign < 0 && (O.shorthandAssign = this.start), (n.value = this.parseMaybeDefault( m, E, @@ -27989,36 +27989,36 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 8 && (n.async = !1); }), (de.parseMethod = function (n, o, l) { - var h = this.startNode(), + var f = this.startNode(), m = this.yieldPos, E = this.awaitPos, - R = this.awaitIdentPos; + O = this.awaitIdentPos; return ( - this.initFunction(h), - this.options.ecmaVersion >= 6 && (h.generator = n), - this.options.ecmaVersion >= 8 && (h.async = !!o), + this.initFunction(f), + this.options.ecmaVersion >= 6 && (f.generator = n), + this.options.ecmaVersion >= 8 && (f.async = !!o), (this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0), - this.enterScope(ut(o, h.generator) | Ee | (l ? Le : 0)), + this.enterScope(ut(o, f.generator) | Ee | (l ? Le : 0)), this.expect(c.parenL), - (h.params = this.parseBindingList( + (f.params = this.parseBindingList( c.parenR, !1, this.options.ecmaVersion >= 8 )), this.checkYieldAwaitInDefaultParams(), - this.parseFunctionBody(h, !1, !0, !1), + this.parseFunctionBody(f, !1, !0, !1), (this.yieldPos = m), (this.awaitPos = E), - (this.awaitIdentPos = R), - this.finishNode(h, 'FunctionExpression') + (this.awaitIdentPos = O), + this.finishNode(f, 'FunctionExpression') ); }), - (de.parseArrowExpression = function (n, o, l, h) { + (de.parseArrowExpression = function (n, o, l, f) { var m = this.yieldPos, E = this.awaitPos, - R = this.awaitIdentPos; + O = this.awaitIdentPos; return ( this.enterScope(ut(l, !1) | he), this.initFunction(n), @@ -28027,19 +28027,19 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.awaitPos = 0), (this.awaitIdentPos = 0), (n.params = this.toAssignableList(o, !0)), - this.parseFunctionBody(n, !0, !1, h), + this.parseFunctionBody(n, !0, !1, f), (this.yieldPos = m), (this.awaitPos = E), - (this.awaitIdentPos = R), + (this.awaitIdentPos = O), this.finishNode(n, 'ArrowFunctionExpression') ); }), - (de.parseFunctionBody = function (n, o, l, h) { + (de.parseFunctionBody = function (n, o, l, f) { var m = o && this.type !== c.braceL, E = this.strict, - R = !1; + O = !1; if (m) - (n.body = this.parseMaybeAssign(h)), + (n.body = this.parseMaybeAssign(f)), (n.expression = !0), this.checkParams(n, !1); else { @@ -28047,8 +28047,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 7 && !this.isSimpleParamList(n.params); (!E || Y) && - ((R = this.strictDirective(this.end)), - R && + ((O = this.strictDirective(this.end)), + O && Y && this.raiseRecoverable( n.start, @@ -28056,13 +28056,13 @@ Defaulting to 2020, but this will stop working in the future.`)), )); var Q = this.labels; (this.labels = []), - R && (this.strict = !0), + O && (this.strict = !0), this.checkParams( n, - !E && !R && !o && !l && this.isSimpleParamList(n.params) + !E && !O && !o && !l && this.isSimpleParamList(n.params) ), this.strict && n.id && this.checkLValSimple(n.id, Dn), - (n.body = this.parseBlock(!1, void 0, R && !E)), + (n.body = this.parseBlock(!1, void 0, O && !E)), (n.expression = !1), this.adaptDirectivePrologue(n.body.body), (this.labels = Q); @@ -28071,85 +28071,85 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (de.isSimpleParamList = function (n) { for (var o = 0, l = n; o < l.length; o += 1) { - var h = l[o]; - if (h.type !== 'Identifier') return !1; + var f = l[o]; + if (f.type !== 'Identifier') return !1; } return !0; }), (de.checkParams = function (n, o) { for ( - var l = Object.create(null), h = 0, m = n.params; - h < m.length; - h += 1 + var l = Object.create(null), f = 0, m = n.params; + f < m.length; + f += 1 ) { - var E = m[h]; + var E = m[f]; this.checkLValInnerPattern(E, bt, o ? null : l); } }), - (de.parseExprList = function (n, o, l, h) { + (de.parseExprList = function (n, o, l, f) { for (var m = [], E = !0; !this.eat(n); ) { if (E) E = !1; else if ((this.expect(c.comma), o && this.afterTrailingComma(n))) break; - var R = void 0; + var O = void 0; l && this.type === c.comma - ? (R = null) + ? (O = null) : this.type === c.ellipsis - ? ((R = this.parseSpread(h)), - h && + ? ((O = this.parseSpread(f)), + f && this.type === c.comma && - h.trailingComma < 0 && - (h.trailingComma = this.start)) - : (R = this.parseMaybeAssign(!1, h)), - m.push(R); + f.trailingComma < 0 && + (f.trailingComma = this.start)) + : (O = this.parseMaybeAssign(!1, f)), + m.push(O); } return m; }), (de.checkUnreserved = function (n) { var o = n.start, l = n.end, - h = n.name; + f = n.name; if ( (this.inGenerator && - h === 'yield' && + f === 'yield' && this.raiseRecoverable( o, "Cannot use 'yield' as identifier inside a generator" ), this.inAsync && - h === 'await' && + f === 'await' && this.raiseRecoverable( o, "Cannot use 'await' as identifier inside an async function" ), !(this.currentThisScope().flags & Ke) && - h === 'arguments' && + f === 'arguments' && this.raiseRecoverable( o, "Cannot use 'arguments' in class field initializer" ), this.inClassStaticBlock && - (h === 'arguments' || h === 'await') && + (f === 'arguments' || f === 'await') && this.raise( o, - 'Cannot use ' + h + ' in class static initialization block' + 'Cannot use ' + f + ' in class static initialization block' ), - this.keywords.test(h) && - this.raise(o, "Unexpected keyword '" + h + "'"), + this.keywords.test(f) && + this.raise(o, "Unexpected keyword '" + f + "'"), !( this.options.ecmaVersion < 6 && this.input.slice(o, l).indexOf('\\') !== -1 )) ) { var m = this.strict ? this.reservedWordsStrict : this.reservedWords; - m.test(h) && + m.test(f) && (!this.inAsync && - h === 'await' && + f === 'await' && this.raiseRecoverable( o, "Cannot use keyword 'await' outside an async function" ), - this.raiseRecoverable(o, "The keyword '" + h + "' is reserved")); + this.raiseRecoverable(o, "The keyword '" + f + "' is reserved")); } }), (de.parseIdent = function (n) { @@ -28231,8 +28231,8 @@ Defaulting to 2020, but this will stop working in the future.`)), var l = $t(this.input, n); (o += ' (' + l.line + ':' + l.column + ')'), this.sourceFile && (o += ' in ' + this.sourceFile); - var h = new SyntaxError(o); - throw ((h.pos = n), (h.loc = l), (h.raisedAt = this.pos), h); + var f = new SyntaxError(o); + throw ((f.pos = n), (f.loc = l), (f.raisedAt = this.pos), f); }), (ts.raiseRecoverable = ts.raise), (ts.curPosition = function () { @@ -28253,27 +28253,27 @@ Defaulting to 2020, but this will stop working in the future.`)), this.scopeStack.pop(); }), (rn.treatFunctionsAsVarInScope = function (n) { - return n.flags & J || (!this.inModule && n.flags & W); + return n.flags & J || (!this.inModule && n.flags & G); }), (rn.declareName = function (n, o, l) { - var h = !1; - if (o === Tt) { + var f = !1; + if (o === yt) { var m = this.currentScope(); - (h = + (f = m.lexical.indexOf(n) > -1 || m.functions.indexOf(n) > -1 || m.var.indexOf(n) > -1), m.lexical.push(n), - this.inModule && m.flags & W && delete this.undefinedExports[n]; + this.inModule && m.flags & G && delete this.undefinedExports[n]; } else if (o === bn) { var E = this.currentScope(); E.lexical.push(n); } else if (o === vt) { - var R = this.currentScope(); + var O = this.currentScope(); this.treatFunctionsAsVar - ? (h = R.lexical.indexOf(n) > -1) - : (h = R.lexical.indexOf(n) > -1 || R.var.indexOf(n) > -1), - R.functions.push(n); + ? (f = O.lexical.indexOf(n) > -1) + : (f = O.lexical.indexOf(n) > -1 || O.var.indexOf(n) > -1), + O.functions.push(n); } else for (var Y = this.scopeStack.length - 1; Y >= 0; --Y) { var Q = this.scopeStack[Y]; @@ -28283,17 +28283,17 @@ Defaulting to 2020, but this will stop working in the future.`)), (!this.treatFunctionsAsVarInScope(Q) && Q.functions.indexOf(n) > -1) ) { - h = !0; + f = !0; break; } if ( (Q.var.push(n), - this.inModule && Q.flags & W && delete this.undefinedExports[n], + this.inModule && Q.flags & G && delete this.undefinedExports[n], Q.flags & Ke) ) break; } - h && + f && this.raiseRecoverable( l, "Identifier '" + n + "' has already been declared" @@ -28319,11 +28319,11 @@ Defaulting to 2020, but this will stop working in the future.`)), if (o.flags & (Ke | We | Xe) && !(o.flags & he)) return o; } }); - var Fn = function (o, l, h) { + var Fn = function (o, l, f) { (this.type = ''), (this.start = l), (this.end = 0), - o.options.locations && (this.loc = new wt(o, h)), + o.options.locations && (this.loc = new wt(o, f)), o.options.directSourceFile && (this.sourceFile = o.options.directSourceFile), o.options.ranges && (this.range = [l, 0]); @@ -28335,11 +28335,11 @@ Defaulting to 2020, but this will stop working in the future.`)), (Bn.startNodeAt = function (n, o) { return new Fn(this, n, o); }); - function Fs(n, o, l, h) { + function Fs(n, o, l, f) { return ( (n.type = o), (n.end = l), - this.options.locations && (n.loc.end = h), + this.options.locations && (n.loc.end = f), this.options.ranges && (n.range[1] = l), n ); @@ -28347,8 +28347,8 @@ Defaulting to 2020, but this will stop working in the future.`)), (Bn.finishNode = function (n, o) { return Fs.call(this, n, o, this.lastTokEnd, this.lastTokEndLoc); }), - (Bn.finishNodeAt = function (n, o, l, h) { - return Fs.call(this, n, o, l, h); + (Bn.finishNodeAt = function (n, o, l, f) { + return Fs.call(this, n, o, l, f); }), (Bn.copyNode = function (n) { var o = new Fn(this, n.start, this.startLoc); @@ -28398,8 +28398,8 @@ Defaulting to 2020, but this will stop working in the future.`)), (o.nonBinary.sc = o.nonBinary.Script), (o.nonBinary.scx = o.nonBinary.Script_Extensions); } - for (var Ni = 0, Tr = [9, 10, 11, 12, 13, 14]; Ni < Tr.length; Ni += 1) { - var Ko = Tr[Ni]; + for (var Ni = 0, yr = [9, 10, 11, 12, 13, 14]; Ni < yr.length; Ni += 1) { + var Ko = yr[Ni]; qo(Ko); } var le = Ge.prototype, @@ -28408,8 +28408,8 @@ Defaulting to 2020, but this will stop working in the future.`)), }; (Xs.prototype.separatedFrom = function (o) { for (var l = this; l; l = l.parent) - for (var h = o; h; h = h.parent) - if (l.base === h.base && l !== h) return !0; + for (var f = o; f; f = f.parent) + if (l.base === f.base && l !== f) return !0; return !1; }), (Xs.prototype.sibling = function () { @@ -28441,12 +28441,12 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.backReferenceNames = []), (this.branchID = null); }; - (on.prototype.reset = function (o, l, h) { - var m = h.indexOf('v') !== -1, - E = h.indexOf('u') !== -1; + (on.prototype.reset = function (o, l, f) { + var m = f.indexOf('v') !== -1, + E = f.indexOf('u') !== -1; (this.start = o | 0), (this.source = l + ''), - (this.flags = h), + (this.flags = f), m && this.parser.options.ecmaVersion >= 15 ? ((this.switchU = !0), (this.switchV = !0), (this.switchN = !0)) : ((this.switchU = E && this.parser.options.ecmaVersion >= 6), @@ -28461,28 +28461,28 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (on.prototype.at = function (o, l) { l === void 0 && (l = !1); - var h = this.source, - m = h.length; + var f = this.source, + m = f.length; if (o >= m) return -1; - var E = h.charCodeAt(o); + var E = f.charCodeAt(o); if (!(l || this.switchU) || E <= 55295 || E >= 57344 || o + 1 >= m) return E; - var R = h.charCodeAt(o + 1); - return R >= 56320 && R <= 57343 ? (E << 10) + R - 56613888 : E; + var O = f.charCodeAt(o + 1); + return O >= 56320 && O <= 57343 ? (E << 10) + O - 56613888 : E; }), (on.prototype.nextIndex = function (o, l) { l === void 0 && (l = !1); - var h = this.source, - m = h.length; + var f = this.source, + m = f.length; if (o >= m) return m; - var E = h.charCodeAt(o), - R; + var E = f.charCodeAt(o), + O; return !(l || this.switchU) || E <= 55295 || E >= 57344 || o + 1 >= m || - (R = h.charCodeAt(o + 1)) < 56320 || - R > 57343 + (O = f.charCodeAt(o + 1)) < 56320 || + O > 57343 ? o + 1 : o + 2; }), @@ -28505,30 +28505,30 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (on.prototype.eatChars = function (o, l) { l === void 0 && (l = !1); - for (var h = this.pos, m = 0, E = o; m < E.length; m += 1) { - var R = E[m], - Y = this.at(h, l); - if (Y === -1 || Y !== R) return !1; - h = this.nextIndex(h, l); + for (var f = this.pos, m = 0, E = o; m < E.length; m += 1) { + var O = E[m], + Y = this.at(f, l); + if (Y === -1 || Y !== O) return !1; + f = this.nextIndex(f, l); } - return (this.pos = h), !0; + return (this.pos = f), !0; }), (le.validateRegExpFlags = function (n) { for ( - var o = n.validFlags, l = n.flags, h = !1, m = !1, E = 0; + var o = n.validFlags, l = n.flags, f = !1, m = !1, E = 0; E < l.length; E++ ) { - var R = l.charAt(E); - o.indexOf(R) === -1 && + var O = l.charAt(E); + o.indexOf(O) === -1 && this.raise(n.start, 'Invalid regular expression flag'), - l.indexOf(R, E + 1) > -1 && + l.indexOf(O, E + 1) > -1 && this.raise(n.start, 'Duplicate regular expression flag'), - R === 'u' && (h = !0), - R === 'v' && (m = !0); + O === 'u' && (f = !0), + O === 'v' && (m = !0); } this.options.ecmaVersion >= 15 && - h && + f && m && this.raise(n.start, 'Invalid regular expression flag'); }); @@ -28560,8 +28560,8 @@ Defaulting to 2020, but this will stop working in the future.`)), n.maxBackReference > n.numCapturingParens && n.raise('Invalid escape'); for (var o = 0, l = n.backReferenceNames; o < l.length; o += 1) { - var h = l[o]; - n.groupNames[h] || n.raise('Invalid named capture referenced'); + var f = l[o]; + n.groupNames[f] || n.raise('Invalid named capture referenced'); } }), (le.regexp_disjunction = function (n) { @@ -28636,11 +28636,11 @@ Defaulting to 2020, but this will stop working in the future.`)), (le.regexp_eatBracedQuantifier = function (n, o) { var l = n.pos; if (n.eat(123)) { - var h = 0, + var f = 0, m = -1; if ( this.regexp_eatDecimalDigits(n) && - ((h = n.lastIntValue), + ((f = n.lastIntValue), n.eat(44) && this.regexp_eatDecimalDigits(n) && (m = n.lastIntValue), @@ -28648,7 +28648,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ) return ( m !== -1 && - m < h && + m < f && !o && n.raise('numbers out of order in {} quantifier'), !0 @@ -28681,22 +28681,22 @@ Defaulting to 2020, but this will stop working in the future.`)), if (n.eat(63)) { if (this.options.ecmaVersion >= 16) { var l = this.regexp_eatModifiers(n), - h = n.eat(45); - if (l || h) { + f = n.eat(45); + if (l || f) { for (var m = 0; m < l.length; m++) { var E = l.charAt(m); l.indexOf(E, m + 1) > -1 && n.raise('Duplicate regular expression modifiers'); } - if (h) { - var R = this.regexp_eatModifiers(n); + if (f) { + var O = this.regexp_eatModifiers(n); !l && - !R && + !O && n.current() === 58 && n.raise('Invalid regular expression modifiers'); - for (var Y = 0; Y < R.length; Y++) { - var Q = R.charAt(Y); - (R.indexOf(Q, Y + 1) > -1 || l.indexOf(Q) > -1) && + for (var Y = 0; Y < O.length; Y++) { + var Q = O.charAt(Y); + (O.indexOf(Q, Y + 1) > -1 || l.indexOf(Q) > -1) && n.raise('Duplicate regular expression modifiers'); } } @@ -28753,9 +28753,9 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (le.regexp_eatSyntaxCharacter = function (n) { var o = n.current(); - return yr(o) ? ((n.lastIntValue = o), n.advance(), !0) : !1; + return Tr(o) ? ((n.lastIntValue = o), n.advance(), !0) : !1; }); - function yr(n) { + function Tr(n) { return ( n === 36 || (n >= 40 && n <= 43) || @@ -28766,7 +28766,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ); } (le.regexp_eatPatternCharacters = function (n) { - for (var o = n.pos, l = 0; (l = n.current()) !== -1 && !yr(l); ) + for (var o = n.pos, l = 0; (l = n.current()) !== -1 && !Tr(l); ) n.advance(); return n.pos !== o; }), @@ -28790,8 +28790,8 @@ Defaulting to 2020, but this will stop working in the future.`)), l = n.groupNames[n.lastStringValue]; if (l) if (o) - for (var h = 0, m = l; h < m.length; h += 1) { - var E = m[h]; + for (var f = 0, m = l; f < m.length; f += 1) { + var E = m[f]; E.separatedFrom(n.branchID) || n.raise('Duplicate capture group name'); } @@ -28825,32 +28825,32 @@ Defaulting to 2020, but this will stop working in the future.`)), (le.regexp_eatRegExpIdentifierStart = function (n) { var o = n.pos, l = this.options.ecmaVersion >= 11, - h = n.current(l); + f = n.current(l); return ( n.advance(l), - h === 92 && + f === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(n, l) && - (h = n.lastIntValue), - Wo(h) ? ((n.lastIntValue = h), !0) : ((n.pos = o), !1) + (f = n.lastIntValue), + Wo(f) ? ((n.lastIntValue = f), !0) : ((n.pos = o), !1) ); }); function Wo(n) { - return f(n, !0) || n === 36 || n === 95; + return h(n, !0) || n === 36 || n === 95; } le.regexp_eatRegExpIdentifierPart = function (n) { var o = n.pos, l = this.options.ecmaVersion >= 11, - h = n.current(l); + f = n.current(l); return ( n.advance(l), - h === 92 && + f === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(n, l) && - (h = n.lastIntValue), - Go(h) ? ((n.lastIntValue = h), !0) : ((n.pos = o), !1) + (f = n.lastIntValue), + Go(f) ? ((n.lastIntValue = f), !0) : ((n.pos = o), !1) ); }; function Go(n) { - return v(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205; + return T(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205; } (le.regexp_eatAtomEscape = function (n) { return this.regexp_eatBackReference(n) || @@ -28930,21 +28930,21 @@ Defaulting to 2020, but this will stop working in the future.`)), le.regexp_eatRegExpUnicodeEscapeSequence = function (n, o) { o === void 0 && (o = !1); var l = n.pos, - h = o || n.switchU; + f = o || n.switchU; if (n.eat(117)) { if (this.regexp_eatFixedHexDigits(n, 4)) { var m = n.lastIntValue; - if (h && m >= 55296 && m <= 56319) { + if (f && m >= 55296 && m <= 56319) { var E = n.pos; if ( n.eat(92) && n.eat(117) && this.regexp_eatFixedHexDigits(n, 4) ) { - var R = n.lastIntValue; - if (R >= 56320 && R <= 57343) + var O = n.lastIntValue; + if (O >= 56320 && O <= 57343) return ( - (n.lastIntValue = (m - 55296) * 1024 + (R - 56320) + 65536), + (n.lastIntValue = (m - 55296) * 1024 + (O - 56320) + 65536), !0 ); } @@ -28953,18 +28953,18 @@ Defaulting to 2020, but this will stop working in the future.`)), return !0; } if ( - h && + f && n.eat(123) && this.regexp_eatHexDigits(n) && n.eat(125) && - yf(n.lastIntValue) + vf(n.lastIntValue) ) return !0; - h && n.raise('Invalid unicode escape'), (n.pos = l); + f && n.raise('Invalid unicode escape'), (n.pos = l); } return !1; }; - function yf(n) { + function vf(n) { return n >= 0 && n <= 1114111; } (le.regexp_eatIdentityEscape = function (n) { @@ -28994,7 +28994,7 @@ Defaulting to 2020, but this will stop working in the future.`)), an = 2; le.regexp_eatCharacterClassEscape = function (n) { var o = n.current(); - if (kf(o)) return (n.lastIntValue = -1), n.advance(), Vn; + if (xf(o)) return (n.lastIntValue = -1), n.advance(), Vn; var l = !1; if ( n.switchU && @@ -29002,18 +29002,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ((l = o === 80) || o === 112) ) { (n.lastIntValue = -1), n.advance(); - var h; + var f; if ( n.eat(123) && - (h = this.regexp_eatUnicodePropertyValueExpression(n)) && + (f = this.regexp_eatUnicodePropertyValueExpression(n)) && n.eat(125) ) - return l && h === an && n.raise('Invalid property name'), h; + return l && f === an && n.raise('Invalid property name'), f; n.raise('Invalid property name'); } return Rc; }; - function kf(n) { + function xf(n) { return ( n === 100 || n === 68 || @@ -29028,8 +29028,8 @@ Defaulting to 2020, but this will stop working in the future.`)), if (this.regexp_eatUnicodePropertyName(n) && n.eat(61)) { var l = n.lastStringValue; if (this.regexp_eatUnicodePropertyValue(n)) { - var h = n.lastStringValue; - return this.regexp_validateUnicodePropertyNameAndValue(n, l, h), Vn; + var f = n.lastStringValue; + return this.regexp_validateUnicodePropertyNameAndValue(n, l, f), Vn; } } if (((n.pos = o), this.regexp_eatLoneUnicodePropertyNameOrValue(n))) { @@ -29061,11 +29061,11 @@ Defaulting to 2020, but this will stop working in the future.`)), } le.regexp_eatUnicodePropertyValue = function (n) { var o = 0; - for (n.lastStringValue = ''; vf((o = n.current())); ) + for (n.lastStringValue = ''; gf((o = n.current())); ) (n.lastStringValue += nt(o)), n.advance(); return n.lastStringValue !== ''; }; - function vf(n) { + function gf(n) { return Lc(n) || vr(n); } (le.regexp_eatLoneUnicodePropertyNameOrValue = function (n) { @@ -29118,8 +29118,8 @@ Defaulting to 2020, but this will stop working in the future.`)), } n.pos = o; } - var h = n.current(); - return h !== 93 ? ((n.lastIntValue = h), n.advance(), !0) : !1; + var f = n.current(); + return f !== 93 ? ((n.lastIntValue = f), n.advance(), !0) : !1; }), (le.regexp_eatClassEscape = function (n) { var o = n.pos; @@ -29140,7 +29140,7 @@ Defaulting to 2020, but this will stop working in the future.`)), if (!this.regexp_eatClassSetRange(n)) if ((l = this.regexp_eatClassSetOperand(n))) { l === an && (o = an); - for (var h = n.pos; n.eatChars([38, 38]); ) { + for (var f = n.pos; n.eatChars([38, 38]); ) { if ( n.current() !== 38 && (l = this.regexp_eatClassSetOperand(n)) @@ -29150,11 +29150,11 @@ Defaulting to 2020, but this will stop working in the future.`)), } n.raise('Invalid character in character class'); } - if (h !== n.pos) return o; + if (f !== n.pos) return o; for (; n.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(n) || n.raise('Invalid character in character class'); - if (h !== n.pos) return o; + if (f !== n.pos) return o; } else n.raise('Invalid character in character class'); for (;;) if (!this.regexp_eatClassSetRange(n)) { @@ -29167,11 +29167,11 @@ Defaulting to 2020, but this will stop working in the future.`)), if (this.regexp_eatClassSetCharacter(n)) { var l = n.lastIntValue; if (n.eat(45) && this.regexp_eatClassSetCharacter(n)) { - var h = n.lastIntValue; + var f = n.lastIntValue; return ( l !== -1 && - h !== -1 && - l > h && + f !== -1 && + l > f && n.raise('Range out of order in character class'), !0 ); @@ -29190,13 +29190,13 @@ Defaulting to 2020, but this will stop working in the future.`)), var o = n.pos; if (n.eat(91)) { var l = n.eat(94), - h = this.regexp_classContents(n); + f = this.regexp_classContents(n); if (n.eat(93)) return ( l && - h === an && + f === an && n.raise('Negated character class may contain strings'), - h + f ); n.pos = o; } @@ -29237,11 +29237,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ? ((n.lastIntValue = 8), !0) : ((n.pos = o), !1); var l = n.current(); - return l < 0 || (l === n.lookahead() && xf(l)) || gf(l) + return l < 0 || (l === n.lookahead() && _f(l)) || bf(l) ? !1 : (n.advance(), (n.lastIntValue = l), !0); }); - function xf(n) { + function _f(n) { return ( n === 33 || (n >= 35 && n <= 38) || @@ -29253,7 +29253,7 @@ Defaulting to 2020, but this will stop working in the future.`)), n === 126 ); } - function gf(n) { + function bf(n) { return ( n === 40 || n === 41 || @@ -29265,9 +29265,9 @@ Defaulting to 2020, but this will stop working in the future.`)), } le.regexp_eatClassSetReservedPunctuator = function (n) { var o = n.current(); - return _f(o) ? ((n.lastIntValue = o), n.advance(), !0) : !1; + return Cf(o) ? ((n.lastIntValue = o), n.advance(), !0) : !1; }; - function _f(n) { + function Cf(n) { return ( n === 33 || n === 35 || @@ -29349,7 +29349,7 @@ Defaulting to 2020, but this will stop working in the future.`)), le.regexp_eatFixedHexDigits = function (n, o) { var l = n.pos; n.lastIntValue = 0; - for (var h = 0; h < o; ++h) { + for (var f = 0; f < o; ++f) { var m = n.current(); if (!Oc(m)) return (n.pos = l), !1; (n.lastIntValue = 16 * n.lastIntValue + Dc(m)), n.advance(); @@ -29406,7 +29406,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.readToken(this.fullCharCodeAtPos()); }), (Ae.readToken = function (n) { - return f(n, this.options.ecmaVersion >= 6) || n === 92 + return h(n, this.options.ecmaVersion >= 6) || n === 92 ? this.readWord() : this.getTokenFromCode(n); }), @@ -29426,11 +29426,11 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.locations) ) for ( - var h = void 0, m = o; - (h = ie(this.input, m, this.pos)) > -1; + var f = void 0, m = o; + (f = ie(this.input, m, this.pos)) > -1; ) - ++this.curLine, (m = this.lineStart = h); + ++this.curLine, (m = this.lineStart = f); this.options.onComment && this.options.onComment( !0, @@ -29445,11 +29445,11 @@ Defaulting to 2020, but this will stop working in the future.`)), for ( var o = this.pos, l = this.options.onComment && this.curPosition(), - h = this.input.charCodeAt((this.pos += n)); - this.pos < this.input.length && !X(h); + f = this.input.charCodeAt((this.pos += n)); + this.pos < this.input.length && !X(f); ) - h = this.input.charCodeAt(++this.pos); + f = this.input.charCodeAt(++this.pos); this.options.onComment && this.options.onComment( !1, @@ -29524,15 +29524,15 @@ Defaulting to 2020, but this will stop working in the future.`)), (Ae.readToken_mult_modulo_exp = function (n) { var o = this.input.charCodeAt(this.pos + 1), l = 1, - h = n === 42 ? c.star : c.modulo; + f = n === 42 ? c.star : c.modulo; return ( this.options.ecmaVersion >= 7 && n === 42 && o === 42 && (++l, - (h = c.starstar), + (f = c.starstar), (o = this.input.charCodeAt(this.pos + 2))), - o === 61 ? this.finishOp(c.assign, l + 1) : this.finishOp(h, l) + o === 61 ? this.finishOp(c.assign, l + 1) : this.finishOp(f, l) ); }), (Ae.readToken_pipe_amp = function (n) { @@ -29561,7 +29561,7 @@ Defaulting to 2020, but this will stop working in the future.`)), !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || - M.test(this.input.slice(this.lastTokEnd, this.pos))) + L.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(c.incDec, 2) : o === 61 @@ -29606,8 +29606,8 @@ Defaulting to 2020, but this will stop working in the future.`)), } if (o === 63) { if (n >= 12) { - var h = this.input.charCodeAt(this.pos + 2); - if (h === 61) return this.finishOp(c.assign, 3); + var f = this.input.charCodeAt(this.pos + 2); + if (f === 61) return this.finishOp(c.assign, 3); } return this.finishOp(c.coalesce, 2); } @@ -29619,7 +29619,7 @@ Defaulting to 2020, but this will stop working in the future.`)), o = 35; if ( n >= 13 && - (++this.pos, (o = this.fullCharCodeAtPos()), f(o, !0) || o === 92) + (++this.pos, (o = this.fullCharCodeAtPos()), h(o, !0) || o === 92) ) return this.finishToken(c.privateId, this.readWord1()); this.raise(this.pos, "Unexpected character '" + nt(o) + "'"); @@ -29705,49 +29705,49 @@ Defaulting to 2020, but this will stop working in the future.`)), for (var n, o, l = this.pos; ; ) { this.pos >= this.input.length && this.raise(l, 'Unterminated regular expression'); - var h = this.input.charAt(this.pos); + var f = this.input.charAt(this.pos); if ( - (M.test(h) && this.raise(l, 'Unterminated regular expression'), n) + (L.test(f) && this.raise(l, 'Unterminated regular expression'), n) ) n = !1; else { - if (h === '[') o = !0; - else if (h === ']' && o) o = !1; - else if (h === '/' && !o) break; - n = h === '\\'; + if (f === '[') o = !0; + else if (f === ']' && o) o = !1; + else if (f === '/' && !o) break; + n = f === '\\'; } ++this.pos; } var m = this.input.slice(l, this.pos); ++this.pos; var E = this.pos, - R = this.readWord1(); + O = this.readWord1(); this.containsEsc && this.unexpected(E); var Y = this.regexpState || (this.regexpState = new on(this)); - Y.reset(l, m, R), + Y.reset(l, m, O), this.validateRegExpFlags(Y), this.validateRegExpPattern(Y); var Q = null; try { - Q = new RegExp(m, R); + Q = new RegExp(m, O); } catch {} - return this.finishToken(c.regexp, {pattern: m, flags: R, value: Q}); + return this.finishToken(c.regexp, {pattern: m, flags: O, value: Q}); }), (Ae.readInt = function (n, o, l) { for ( - var h = this.options.ecmaVersion >= 12 && o === void 0, + var f = this.options.ecmaVersion >= 12 && o === void 0, m = l && this.input.charCodeAt(this.pos) === 48, E = this.pos, - R = 0, + O = 0, Y = 0, Q = 0, - ye = o ?? 1 / 0; - Q < ye; + Te = o ?? 1 / 0; + Q < Te; ++Q, ++this.pos ) { var xe = this.input.charCodeAt(this.pos), Ze = void 0; - if (h && xe === 95) { + if (f && xe === 95) { m && this.raiseRecoverable( this.pos, @@ -29777,19 +29777,19 @@ Defaulting to 2020, but this will stop working in the future.`)), Ze >= n) ) break; - (Y = xe), (R = R * n + Ze); + (Y = xe), (O = O * n + Ze); } return ( - h && + f && Y === 95 && this.raiseRecoverable( this.pos - 1, 'Numeric separator is not allowed at the last of digits' ), - this.pos === E || (o != null && this.pos - E !== o) ? null : R + this.pos === E || (o != null && this.pos - E !== o) ? null : O ); }); - function bf(n, o) { + function wf(n, o) { return o ? parseInt(n, 8) : parseFloat(n.replace(/_/g, '')); } function Fc(n) { @@ -29805,7 +29805,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? ((l = Fc(this.input.slice(o, this.pos))), ++this.pos) - : f(this.fullCharCodeAtPos()) && + : h(this.fullCharCodeAtPos()) && this.raise(this.pos, 'Identifier directly after number'), this.finishToken(c.num, l) ); @@ -29817,30 +29817,30 @@ Defaulting to 2020, but this will stop working in the future.`)), this.raise(o, 'Invalid number'); var l = this.pos - o >= 2 && this.input.charCodeAt(o) === 48; l && this.strict && this.raise(o, 'Invalid number'); - var h = this.input.charCodeAt(this.pos); - if (!l && !n && this.options.ecmaVersion >= 11 && h === 110) { + var f = this.input.charCodeAt(this.pos); + if (!l && !n && this.options.ecmaVersion >= 11 && f === 110) { var m = Fc(this.input.slice(o, this.pos)); return ( ++this.pos, - f(this.fullCharCodeAtPos()) && + h(this.fullCharCodeAtPos()) && this.raise(this.pos, 'Identifier directly after number'), this.finishToken(c.num, m) ); } l && /[89]/.test(this.input.slice(o, this.pos)) && (l = !1), - h === 46 && + f === 46 && !l && (++this.pos, this.readInt(10), - (h = this.input.charCodeAt(this.pos))), - (h === 69 || h === 101) && + (f = this.input.charCodeAt(this.pos))), + (f === 69 || f === 101) && !l && - ((h = this.input.charCodeAt(++this.pos)), - (h === 43 || h === 45) && ++this.pos, + ((f = this.input.charCodeAt(++this.pos)), + (f === 43 || f === 45) && ++this.pos, this.readInt(10) === null && this.raise(o, 'Invalid number')), - f(this.fullCharCodeAtPos()) && + h(this.fullCharCodeAtPos()) && this.raise(this.pos, 'Identifier directly after number'); - var E = bf(this.input.slice(o, this.pos), l); + var E = wf(this.input.slice(o, this.pos), l); return this.finishToken(c.num, E); }), (Ae.readCodePoint = function () { @@ -29862,19 +29862,19 @@ Defaulting to 2020, but this will stop working in the future.`)), for (var o = '', l = ++this.pos; ; ) { this.pos >= this.input.length && this.raise(this.start, 'Unterminated string constant'); - var h = this.input.charCodeAt(this.pos); - if (h === n) break; - h === 92 + var f = this.input.charCodeAt(this.pos); + if (f === n) break; + f === 92 ? ((o += this.input.slice(l, this.pos)), (o += this.readEscapedChar(!1)), (l = this.pos)) - : h === 8232 || h === 8233 + : f === 8232 || f === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, 'Unterminated string constant'), ++this.pos, this.options.locations && (this.curLine++, (this.lineStart = this.pos))) - : (X(h) && this.raise(this.start, 'Unterminated string constant'), + : (X(f) && this.raise(this.start, 'Unterminated string constant'), ++this.pos); } return ( @@ -30007,16 +30007,16 @@ Defaulting to 2020, but this will stop working in the future.`)), } default: if (o >= 48 && o <= 55) { - var h = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], - m = parseInt(h, 8); + var f = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], + m = parseInt(f, 8); return ( - m > 255 && ((h = h.slice(0, -1)), (m = parseInt(h, 8))), - (this.pos += h.length - 1), + m > 255 && ((f = f.slice(0, -1)), (m = parseInt(f, 8))), + (this.pos += f.length - 1), (o = this.input.charCodeAt(this.pos)), - (h !== '0' || o === 56 || o === 57) && + (f !== '0' || o === 56 || o === 57) && (this.strict || n) && this.invalidStringToken( - this.pos - 1 - h.length, + this.pos - 1 - f.length, n ? 'Octal literal in template string' : 'Octal literal in strict mode' @@ -30043,12 +30043,12 @@ Defaulting to 2020, but this will stop working in the future.`)), (Ae.readWord1 = function () { this.containsEsc = !1; for ( - var n = '', o = !0, l = this.pos, h = this.options.ecmaVersion >= 6; + var n = '', o = !0, l = this.pos, f = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) { var m = this.fullCharCodeAtPos(); - if (v(m, h)) this.pos += m <= 65535 ? 1 : 2; + if (T(m, f)) this.pos += m <= 65535 ? 1 : 2; else if (m === 92) { (this.containsEsc = !0), (n += this.input.slice(l, this.pos)); var E = this.pos; @@ -30058,10 +30058,10 @@ Defaulting to 2020, but this will stop working in the future.`)), 'Expecting Unicode escape sequence \\uXXXX' ), ++this.pos; - var R = this.readCodePoint(); - (o ? f : v)(R, h) || + var O = this.readCodePoint(); + (o ? h : T)(O, f) || this.invalidStringToken(E, 'Invalid Unicode escape'), - (n += nt(R)), + (n += nt(O)), (l = this.pos); } else break; o = !1; @@ -30082,26 +30082,26 @@ Defaulting to 2020, but this will stop working in the future.`)), SourceLocation: wt, getLineInfo: $t, Node: Fn, - TokenType: x, + TokenType: g, tokTypes: c, keywordTypes: U, TokContext: Rt, tokContexts: Ue, - isIdentifierChar: v, - isIdentifierStart: f, + isIdentifierChar: T, + isIdentifierStart: h, Token: xr, isNewLine: X, - lineBreak: M, - lineBreakG: z, + lineBreak: L, + lineBreakG: W, nonASCIIwhitespace: pe, }; - function Cf(n, o) { + function Sf(n, o) { return Ge.parse(n, o); } - function wf(n, o, l) { + function If(n, o, l) { return Ge.parseExpressionAt(n, o, l); } - function Sf(n, o) { + function Ef(n, o) { return Ge.tokenizer(n, o); } (e.Node = Fn), @@ -30110,21 +30110,21 @@ Defaulting to 2020, but this will stop working in the future.`)), (e.SourceLocation = wt), (e.TokContext = Rt), (e.Token = xr), - (e.TokenType = x), + (e.TokenType = g), (e.defaultOptions = Pt), (e.getLineInfo = $t), - (e.isIdentifierChar = v), - (e.isIdentifierStart = f), + (e.isIdentifierChar = T), + (e.isIdentifierStart = h), (e.isNewLine = X), (e.keywordTypes = U), - (e.lineBreak = M), - (e.lineBreakG = z), + (e.lineBreak = L), + (e.lineBreakG = W), (e.nonASCIIwhitespace = pe), - (e.parse = Cf), - (e.parseExpressionAt = wf), + (e.parse = Sf), + (e.parseExpressionAt = If), (e.tokContexts = Ue), (e.tokTypes = c), - (e.tokenizer = Sf), + (e.tokenizer = Ef), (e.version = Vc); }); }); @@ -30143,10 +30143,10 @@ Defaulting to 2020, but this will stop working in the future.`)), return p.name === s; } function r() {} - var a = function (f, v) { + var a = function (h, T) { if ( - (v === void 0 && (v = {}), - (this.toks = this.constructor.BaseParser.tokenizer(f, v)), + (T === void 0 && (T = {}), + (this.toks = this.constructor.BaseParser.tokenizer(h, T)), (this.options = this.toks.options), (this.input = this.toks.input), (this.tok = this.last = {type: t.tokTypes.eof, start: 0, end: 0}), @@ -30154,8 +30154,8 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.tok.validateRegExpPattern = r), this.options.locations) ) { - var x = this.toks.curPosition(); - this.tok.loc = new t.SourceLocation(this.toks, x, x); + var g = this.toks.curPosition(); + this.tok.loc = new t.SourceLocation(this.toks, g, g); } (this.ahead = []), (this.context = []), @@ -30178,52 +30178,52 @@ Defaulting to 2020, but this will stop working in the future.`)), ? [this.tok.start, this.tok.loc.start] : this.tok.start; }), - (a.prototype.startNodeAt = function (f) { + (a.prototype.startNodeAt = function (h) { return this.options.locations - ? new t.Node(this.toks, f[0], f[1]) - : new t.Node(this.toks, f); + ? new t.Node(this.toks, h[0], h[1]) + : new t.Node(this.toks, h); }), - (a.prototype.finishNode = function (f, v) { + (a.prototype.finishNode = function (h, T) { return ( - (f.type = v), - (f.end = this.last.end), - this.options.locations && (f.loc.end = this.last.loc.end), - this.options.ranges && (f.range[1] = this.last.end), - f + (h.type = T), + (h.end = this.last.end), + this.options.locations && (h.loc.end = this.last.loc.end), + this.options.ranges && (h.range[1] = this.last.end), + h ); }), - (a.prototype.dummyNode = function (f) { - var v = this.startNode(); + (a.prototype.dummyNode = function (h) { + var T = this.startNode(); return ( - (v.type = f), - (v.end = v.start), - this.options.locations && (v.loc.end = v.loc.start), - this.options.ranges && (v.range[1] = v.start), + (T.type = h), + (T.end = T.start), + this.options.locations && (T.loc.end = T.loc.start), + this.options.ranges && (T.range[1] = T.start), (this.last = { type: t.tokTypes.name, - start: v.start, - end: v.start, - loc: v.loc, + start: T.start, + end: T.start, + loc: T.loc, }), - v + T ); }), (a.prototype.dummyIdent = function () { - var f = this.dummyNode('Identifier'); - return (f.name = s), f; + var h = this.dummyNode('Identifier'); + return (h.name = s), h; }), (a.prototype.dummyString = function () { - var f = this.dummyNode('Literal'); - return (f.value = f.raw = s), f; + var h = this.dummyNode('Literal'); + return (h.value = h.raw = s), h; }), - (a.prototype.eat = function (f) { - return this.tok.type === f ? (this.next(), !0) : !1; + (a.prototype.eat = function (h) { + return this.tok.type === h ? (this.next(), !0) : !1; }), - (a.prototype.isContextual = function (f) { - return this.tok.type === t.tokTypes.name && this.tok.value === f; + (a.prototype.isContextual = function (h) { + return this.tok.type === t.tokTypes.name && this.tok.value === h; }), - (a.prototype.eatContextual = function (f) { - return this.tok.value === f && this.eat(t.tokTypes.name); + (a.prototype.eatContextual = function (h) { + return this.tok.value === h && this.eat(t.tokTypes.name); }), (a.prototype.canInsertSemicolon = function () { return ( @@ -30235,11 +30235,11 @@ Defaulting to 2020, but this will stop working in the future.`)), (a.prototype.semicolon = function () { return this.eat(t.tokTypes.semi); }), - (a.prototype.expect = function (f) { - if (this.eat(f)) return !0; - for (var v = 1; v <= 2; v++) - if (this.lookAhead(v).type === f) { - for (var x = 0; x < v; x++) this.next(); + (a.prototype.expect = function (h) { + if (this.eat(h)) return !0; + for (var T = 1; T <= 2; T++) + if (this.lookAhead(T).type === h) { + for (var g = 0; g < T; g++) this.next(); return !0; } }), @@ -30249,53 +30249,53 @@ Defaulting to 2020, but this will stop working in the future.`)), (a.prototype.popCx = function () { this.curIndent = this.context.pop(); }), - (a.prototype.lineEnd = function (f) { + (a.prototype.lineEnd = function (h) { for ( ; - f < this.input.length && !t.isNewLine(this.input.charCodeAt(f)); + h < this.input.length && !t.isNewLine(this.input.charCodeAt(h)); ) - ++f; - return f; + ++h; + return h; }), - (a.prototype.indentationAfter = function (f) { - for (var v = 0; ; ++f) { - var x = this.input.charCodeAt(f); - if (x === 32) ++v; - else if (x === 9) v += this.options.tabSize; - else return v; + (a.prototype.indentationAfter = function (h) { + for (var T = 0; ; ++h) { + var g = this.input.charCodeAt(h); + if (g === 32) ++T; + else if (g === 9) T += this.options.tabSize; + else return T; } }), - (a.prototype.closes = function (f, v, x, w) { - return this.tok.type === f || this.tok.type === t.tokTypes.eof + (a.prototype.closes = function (h, T, g, w) { + return this.tok.type === h || this.tok.type === t.tokTypes.eof ? !0 - : x !== this.curLineStart && - this.curIndent < v && + : g !== this.curLineStart && + this.curIndent < T && this.tokenStartsLine() && (!w || this.nextLineStart >= this.input.length || - this.indentationAfter(this.nextLineStart) < v); + this.indentationAfter(this.nextLineStart) < T); }), (a.prototype.tokenStartsLine = function () { - for (var f = this.tok.start - 1; f >= this.curLineStart; --f) { - var v = this.input.charCodeAt(f); - if (v !== 9 && v !== 32) return !1; + for (var h = this.tok.start - 1; h >= this.curLineStart; --h) { + var T = this.input.charCodeAt(h); + if (T !== 9 && T !== 32) return !1; } return !0; }), - (a.prototype.extend = function (f, v) { - this[f] = v(this[f]); + (a.prototype.extend = function (h, T) { + this[h] = T(this[h]); }), (a.prototype.parse = function () { return this.next(), this.parseTopLevel(); }), (a.extend = function () { - for (var f = [], v = arguments.length; v--; ) f[v] = arguments[v]; - for (var x = this, w = 0; w < f.length; w++) x = f[w](x); - return x; + for (var h = [], T = arguments.length; T--; ) h[T] = arguments[T]; + for (var g = this, w = 0; w < h.length; w++) g = h[w](g); + return g; }), - (a.parse = function (f, v) { - return new this(f, v).parse(); + (a.parse = function (h, T) { + return new this(h, T).parse(); }), (a.BaseParser = t.Parser); var u = a.prototype; @@ -30330,71 +30330,71 @@ Defaulting to 2020, but this will stop working in the future.`)), } catch (S) { if (!(S instanceof SyntaxError)) throw S; var p = S.message, - f = S.raisedAt, - v = !0; + h = S.raisedAt, + T = !0; if (/unterminated/i.test(p)) - if (((f = this.lineEnd(S.pos + 1)), /string/.test(p))) - v = { + if (((h = this.lineEnd(S.pos + 1)), /string/.test(p))) + T = { start: S.pos, - end: f, + end: h, type: t.tokTypes.string, - value: this.input.slice(S.pos + 1, f), + value: this.input.slice(S.pos + 1, h), }; else if (/regular expr/i.test(p)) { - var x = this.input.slice(S.pos, f); + var g = this.input.slice(S.pos, h); try { - x = new RegExp(x); + g = new RegExp(g); } catch {} - v = {start: S.pos, end: f, type: t.tokTypes.regexp, value: x}; + T = {start: S.pos, end: h, type: t.tokTypes.regexp, value: g}; } else /template/.test(p) - ? (v = { + ? (T = { start: S.pos, - end: f, + end: h, type: t.tokTypes.template, - value: this.input.slice(S.pos, f), + value: this.input.slice(S.pos, h), }) - : (v = !1); + : (T = !1); else if ( /invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test( p ) ) - for (; f < this.input.length && !d(this.input.charCodeAt(f)); ) - ++f; + for (; h < this.input.length && !d(this.input.charCodeAt(h)); ) + ++h; else if (/character escape|expected hexadecimal/i.test(p)) - for (; f < this.input.length; ) { - var w = this.input.charCodeAt(f++); + for (; h < this.input.length; ) { + var w = this.input.charCodeAt(h++); if (w === 34 || w === 39 || t.isNewLine(w)) break; } - else if (/unexpected character/i.test(p)) f++, (v = !1); - else if (/regular expression/i.test(p)) v = !0; + else if (/unexpected character/i.test(p)) h++, (T = !1); + else if (/regular expression/i.test(p)) T = !0; else throw S; if ( - (this.resetTo(f), - v === !0 && - (v = {start: f, end: f, type: t.tokTypes.name, value: s}), - v) + (this.resetTo(h), + T === !0 && + (T = {start: h, end: h, type: t.tokTypes.name, value: s}), + T) ) return ( this.options.locations && - (v.loc = new t.SourceLocation( + (T.loc = new t.SourceLocation( this.toks, - t.getLineInfo(this.input, v.start), - t.getLineInfo(this.input, v.end) + t.getLineInfo(this.input, T.start), + t.getLineInfo(this.input, T.end) )), - v + T ); } }), (u.resetTo = function (p) { (this.toks.pos = p), (this.toks.containsEsc = !1); - var f = this.input.charAt(p - 1); + var h = this.input.charAt(p - 1); if ( ((this.toks.exprAllowed = - !f || - /[[{(,;:?/*=+\-~!|&%^<>]/.test(f) || - (/[enwfd]/.test(f) && + !h || + /[[{(,;:?/*=+\-~!|&%^<>]/.test(h) || + (/[enwfd]/.test(h) && /\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test( this.input.slice(p - 10, p) ))), @@ -30402,9 +30402,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ) { (this.toks.curLine = 1), (this.toks.lineStart = t.lineBreakG.lastIndex = 0); - for (var v; (v = t.lineBreakG.exec(this.input)) && v.index < p; ) + for (var T; (T = t.lineBreakG.exec(this.input)) && T.index < p; ) ++this.toks.curLine, - (this.toks.lineStart = v.index + v[0].length); + (this.toks.lineStart = T.index + T[0].length); } }), (u.lookAhead = function (p) { @@ -30430,40 +30430,40 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (y.parseStatement = function () { var p = this.tok.type, - f = this.startNode(), - v; + h = this.startNode(), + T; switch ( - (this.toks.isLet() && ((p = t.tokTypes._var), (v = 'let')), p) + (this.toks.isLet() && ((p = t.tokTypes._var), (T = 'let')), p) ) { case t.tokTypes._break: case t.tokTypes._continue: this.next(); - var x = p === t.tokTypes._break; + var g = p === t.tokTypes._break; return ( this.semicolon() || this.canInsertSemicolon() - ? (f.label = null) - : ((f.label = + ? (h.label = null) + : ((h.label = this.tok.type === t.tokTypes.name ? this.parseIdent() : null), this.semicolon()), - this.finishNode(f, x ? 'BreakStatement' : 'ContinueStatement') + this.finishNode(h, g ? 'BreakStatement' : 'ContinueStatement') ); case t.tokTypes._debugger: return ( this.next(), this.semicolon(), - this.finishNode(f, 'DebuggerStatement') + this.finishNode(h, 'DebuggerStatement') ); case t.tokTypes._do: return ( this.next(), - (f.body = this.parseStatement()), - (f.test = this.eat(t.tokTypes._while) + (h.body = this.parseStatement()), + (h.test = this.eat(t.tokTypes._while) ? this.parseParenExpression() : this.dummyIdent()), this.semicolon(), - this.finishNode(f, 'DoWhileStatement') + this.finishNode(h, 'DoWhileStatement') ); case t.tokTypes._for: this.next(); @@ -30474,7 +30474,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.expect(t.tokTypes.parenL), this.tok.type === t.tokTypes.semi) ) - return this.parseFor(f, null); + return this.parseFor(h, null); var S = this.toks.isLet(), A = this.toks.isAwaitUsing(!0), U = !A && this.toks.isUsing(!0); @@ -30485,7 +30485,7 @@ Defaulting to 2020, but this will stop working in the future.`)), U || A ) { - var D = S + var M = S ? 'let' : U ? 'using' @@ -30495,67 +30495,67 @@ Defaulting to 2020, but this will stop working in the future.`)), c = this.startNode(); return ( U || A - ? (A && this.next(), this.parseVar(c, !0, D)) - : (c = this.parseVar(c, !0, D)), + ? (A && this.next(), this.parseVar(c, !0, M)) + : (c = this.parseVar(c, !0, M)), c.declarations.length === 1 && (this.tok.type === t.tokTypes._in || this.isContextual('of')) ? (this.options.ecmaVersion >= 9 && this.tok.type !== t.tokTypes._in && - (f.await = w), - this.parseForIn(f, c)) - : this.parseFor(f, c) + (h.await = w), + this.parseForIn(h, c)) + : this.parseFor(h, c) ); } - var M = this.parseExpression(!0); + var L = this.parseExpression(!0); return this.tok.type === t.tokTypes._in || this.isContextual('of') ? (this.options.ecmaVersion >= 9 && this.tok.type !== t.tokTypes._in && - (f.await = w), - this.parseForIn(f, this.toAssignable(M))) - : this.parseFor(f, M); + (h.await = w), + this.parseForIn(h, this.toAssignable(L))) + : this.parseFor(h, L); case t.tokTypes._function: - return this.next(), this.parseFunction(f, !0); + return this.next(), this.parseFunction(h, !0); case t.tokTypes._if: return ( this.next(), - (f.test = this.parseParenExpression()), - (f.consequent = this.parseStatement()), - (f.alternate = this.eat(t.tokTypes._else) + (h.test = this.parseParenExpression()), + (h.consequent = this.parseStatement()), + (h.alternate = this.eat(t.tokTypes._else) ? this.parseStatement() : null), - this.finishNode(f, 'IfStatement') + this.finishNode(h, 'IfStatement') ); case t.tokTypes._return: return ( this.next(), this.eat(t.tokTypes.semi) || this.canInsertSemicolon() - ? (f.argument = null) - : ((f.argument = this.parseExpression()), this.semicolon()), - this.finishNode(f, 'ReturnStatement') + ? (h.argument = null) + : ((h.argument = this.parseExpression()), this.semicolon()), + this.finishNode(h, 'ReturnStatement') ); case t.tokTypes._switch: - var z = this.curIndent, + var W = this.curIndent, X = this.curLineStart; this.next(), - (f.discriminant = this.parseParenExpression()), - (f.cases = []), + (h.discriminant = this.parseParenExpression()), + (h.cases = []), this.pushCx(), this.expect(t.tokTypes.braceL); - for (var ie; !this.closes(t.tokTypes.braceR, z, X, !0); ) + for (var ie; !this.closes(t.tokTypes.braceR, W, X, !0); ) if ( this.tok.type === t.tokTypes._case || this.tok.type === t.tokTypes._default ) { var pe = this.tok.type === t.tokTypes._case; ie && this.finishNode(ie, 'SwitchCase'), - f.cases.push((ie = this.startNode())), + h.cases.push((ie = this.startNode())), (ie.consequent = []), this.next(), pe ? (ie.test = this.parseExpression()) : (ie.test = null), this.expect(t.tokTypes.colon); } else ie || - (f.cases.push((ie = this.startNode())), + (h.cases.push((ie = this.startNode())), (ie.consequent = []), (ie.test = null)), ie.consequent.push(this.parseStatement()); @@ -30563,20 +30563,20 @@ Defaulting to 2020, but this will stop working in the future.`)), ie && this.finishNode(ie, 'SwitchCase'), this.popCx(), this.eat(t.tokTypes.braceR), - this.finishNode(f, 'SwitchStatement') + this.finishNode(h, 'SwitchStatement') ); case t.tokTypes._throw: return ( this.next(), - (f.argument = this.parseExpression()), + (h.argument = this.parseExpression()), this.semicolon(), - this.finishNode(f, 'ThrowStatement') + this.finishNode(h, 'ThrowStatement') ); case t.tokTypes._try: if ( (this.next(), - (f.block = this.parseBlock()), - (f.handler = null), + (h.block = this.parseBlock()), + (h.handler = null), this.tok.type === t.tokTypes._catch) ) { var ae = this.startNode(); @@ -30586,37 +30586,37 @@ Defaulting to 2020, but this will stop working in the future.`)), this.expect(t.tokTypes.parenR)) : (ae.param = null), (ae.body = this.parseBlock()), - (f.handler = this.finishNode(ae, 'CatchClause')); + (h.handler = this.finishNode(ae, 'CatchClause')); } return ( - (f.finalizer = this.eat(t.tokTypes._finally) + (h.finalizer = this.eat(t.tokTypes._finally) ? this.parseBlock() : null), - !f.handler && !f.finalizer - ? f.block - : this.finishNode(f, 'TryStatement') + !h.handler && !h.finalizer + ? h.block + : this.finishNode(h, 'TryStatement') ); case t.tokTypes._var: case t.tokTypes._const: - return this.parseVar(f, !1, v || this.tok.value); + return this.parseVar(h, !1, T || this.tok.value); case t.tokTypes._while: return ( this.next(), - (f.test = this.parseParenExpression()), - (f.body = this.parseStatement()), - this.finishNode(f, 'WhileStatement') + (h.test = this.parseParenExpression()), + (h.body = this.parseStatement()), + this.finishNode(h, 'WhileStatement') ); case t.tokTypes._with: return ( this.next(), - (f.object = this.parseParenExpression()), - (f.body = this.parseStatement()), - this.finishNode(f, 'WithStatement') + (h.object = this.parseParenExpression()), + (h.body = this.parseStatement()), + this.finishNode(h, 'WithStatement') ); case t.tokTypes.braceL: return this.parseBlock(); case t.tokTypes.semi: - return this.next(), this.finishNode(f, 'EmptyStatement'); + return this.next(), this.finishNode(h, 'EmptyStatement'); case t.tokTypes._class: return this.parseClass(!0); case t.tokTypes._import: @@ -30624,9 +30624,9 @@ Defaulting to 2020, but this will stop working in the future.`)), var He = this.lookAhead(1).type; if (He === t.tokTypes.parenL || He === t.tokTypes.dot) return ( - (f.expression = this.parseExpression()), + (h.expression = this.parseExpression()), this.semicolon(), - this.finishNode(f, 'ExpressionStatement') + this.finishNode(h, 'ExpressionStatement') ); } return this.parseImport(); @@ -30634,33 +30634,33 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.parseExport(); default: if (this.toks.isAsyncFunction()) - return this.next(), this.next(), this.parseFunction(f, !0, !0); - if (this.toks.isUsing(!1)) return this.parseVar(f, !1, 'using'); + return this.next(), this.next(), this.parseFunction(h, !0, !0); + if (this.toks.isUsing(!1)) return this.parseVar(h, !1, 'using'); if (this.toks.isAwaitUsing(!1)) - return this.next(), this.parseVar(f, !1, 'await using'); + return this.next(), this.parseVar(h, !1, 'await using'); var qe = this.parseExpression(); return i(qe) ? (this.next(), this.tok.type === t.tokTypes.eof - ? this.finishNode(f, 'EmptyStatement') + ? this.finishNode(h, 'EmptyStatement') : this.parseStatement()) : p === t.tokTypes.name && qe.type === 'Identifier' && this.eat(t.tokTypes.colon) - ? ((f.body = this.parseStatement()), - (f.label = qe), - this.finishNode(f, 'LabeledStatement')) - : ((f.expression = qe), + ? ((h.body = this.parseStatement()), + (h.label = qe), + this.finishNode(h, 'LabeledStatement')) + : ((h.expression = qe), this.semicolon(), - this.finishNode(f, 'ExpressionStatement')); + this.finishNode(h, 'ExpressionStatement')); } }), (y.parseBlock = function () { var p = this.startNode(); this.pushCx(), this.expect(t.tokTypes.braceL); - var f = this.curIndent, - v = this.curLineStart; - for (p.body = []; !this.closes(t.tokTypes.braceR, f, v, !0); ) + var h = this.curIndent, + T = this.curLineStart; + for (p.body = []; !this.closes(t.tokTypes.braceR, h, T, !0); ) p.body.push(this.parseStatement()); return ( this.popCx(), @@ -30668,9 +30668,9 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'BlockStatement') ); }), - (y.parseFor = function (p, f) { + (y.parseFor = function (p, h) { return ( - (p.init = f), + (p.init = h), (p.test = p.update = null), this.eat(t.tokTypes.semi) && this.tok.type !== t.tokTypes.semi && @@ -30684,33 +30684,33 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'ForStatement') ); }), - (y.parseForIn = function (p, f) { - var v = + (y.parseForIn = function (p, h) { + var T = this.tok.type === t.tokTypes._in ? 'ForInStatement' : 'ForOfStatement'; return ( this.next(), - (p.left = f), + (p.left = h), (p.right = this.parseExpression()), this.popCx(), this.expect(t.tokTypes.parenR), (p.body = this.parseStatement()), - this.finishNode(p, v) + this.finishNode(p, T) ); }), - (y.parseVar = function (p, f, v) { - (p.kind = v), this.next(), (p.declarations = []); + (y.parseVar = function (p, h, T) { + (p.kind = T), this.next(), (p.declarations = []); do { - var x = this.startNode(); - (x.id = + var g = this.startNode(); + (g.id = this.options.ecmaVersion >= 6 ? this.toAssignable(this.parseExprAtom(), !0) : this.parseIdent()), - (x.init = this.eat(t.tokTypes.eq) - ? this.parseMaybeAssign(f) + (g.init = this.eat(t.tokTypes.eq) + ? this.parseMaybeAssign(h) : null), - p.declarations.push(this.finishNode(x, 'VariableDeclarator')); + p.declarations.push(this.finishNode(g, 'VariableDeclarator')); } while (this.eat(t.tokTypes.comma)); if (!p.declarations.length) { var w = this.startNode(); @@ -30718,34 +30718,34 @@ Defaulting to 2020, but this will stop working in the future.`)), p.declarations.push(this.finishNode(w, 'VariableDeclarator')); } return ( - f || this.semicolon(), this.finishNode(p, 'VariableDeclaration') + h || this.semicolon(), this.finishNode(p, 'VariableDeclaration') ); }), (y.parseClass = function (p) { - var f = this.startNode(); + var h = this.startNode(); this.next(), this.tok.type === t.tokTypes.name - ? (f.id = this.parseIdent()) + ? (h.id = this.parseIdent()) : p === !0 - ? (f.id = this.dummyIdent()) - : (f.id = null), - (f.superClass = this.eat(t.tokTypes._extends) + ? (h.id = this.dummyIdent()) + : (h.id = null), + (h.superClass = this.eat(t.tokTypes._extends) ? this.parseExpression() : null), - (f.body = this.startNode()), - (f.body.body = []), + (h.body = this.startNode()), + (h.body.body = []), this.pushCx(); - var v = this.curIndent + 1, - x = this.curLineStart; + var T = this.curIndent + 1, + g = this.curLineStart; for ( this.eat(t.tokTypes.braceL), - this.curIndent + 1 < v && - ((v = this.curIndent), (x = this.curLineStart)); - !this.closes(t.tokTypes.braceR, v, x); + this.curIndent + 1 < T && + ((T = this.curIndent), (g = this.curLineStart)); + !this.closes(t.tokTypes.braceR, T, g); ) { var w = this.parseClassElement(); - w && f.body.body.push(w); + w && h.body.body.push(w); } return ( this.popCx(), @@ -30754,51 +30754,51 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.locations && (this.last.loc.end = this.tok.loc.start)), this.semicolon(), - this.finishNode(f.body, 'ClassBody'), - this.finishNode(f, p ? 'ClassDeclaration' : 'ClassExpression') + this.finishNode(h.body, 'ClassBody'), + this.finishNode(h, p ? 'ClassDeclaration' : 'ClassExpression') ); }), (y.parseClassElement = function () { if (this.eat(t.tokTypes.semi)) return null; var p = this.options, - f = p.ecmaVersion, - v = p.locations, - x = this.curIndent, + h = p.ecmaVersion, + T = p.locations, + g = this.curIndent, w = this.curLineStart, S = this.startNode(), A = '', U = !1, - D = !1, + M = !1, c = 'method', - M = !1; + L = !1; if (this.eatContextual('static')) { - if (f >= 13 && this.eat(t.tokTypes.braceL)) + if (h >= 13 && this.eat(t.tokTypes.braceL)) return this.parseClassStaticBlock(S), S; this.isClassElementNameStart() || this.toks.type === t.tokTypes.star - ? (M = !0) + ? (L = !0) : (A = 'static'); } if ( - ((S.static = M), + ((S.static = L), !A && - f >= 8 && + h >= 8 && this.eatContextual('async') && ((this.isClassElementNameStart() || this.toks.type === t.tokTypes.star) && !this.canInsertSemicolon() - ? (D = !0) + ? (M = !0) : (A = 'async')), !A) ) { U = this.eat(t.tokTypes.star); - var z = this.toks.value; + var W = this.toks.value; (this.eatContextual('get') || this.eatContextual('set')) && - (this.isClassElementNameStart() ? (c = z) : (A = z)); + (this.isClassElementNameStart() ? (c = W) : (A = W)); } if (A) (S.computed = !1), (S.key = this.startNodeAt( - v + T ? [this.toks.lastTokStart, this.toks.lastTokStartLoc] : this.toks.lastTokStart )), @@ -30811,28 +30811,28 @@ Defaulting to 2020, but this will stop working in the future.`)), null ); if ( - f < 13 || + h < 13 || this.toks.type === t.tokTypes.parenL || c !== 'method' || U || - D + M ) { var X = !S.computed && !S.static && !U && - !D && + !M && c === 'method' && ((S.key.type === 'Identifier' && S.key.name === 'constructor') || (S.key.type === 'Literal' && S.key.value === 'constructor')); (S.kind = X ? 'constructor' : c), - (S.value = this.parseMethod(U, D)), + (S.value = this.parseMethod(U, M)), this.finishNode(S, 'MethodDefinition'); } else { if (this.eat(t.tokTypes.eq)) if ( this.curLineStart !== w && - this.curIndent <= x && + this.curIndent <= g && this.tokenStartsLine() ) S.value = null; @@ -30851,11 +30851,11 @@ Defaulting to 2020, but this will stop working in the future.`)), return S; }), (y.parseClassStaticBlock = function (p) { - var f = this.curIndent, - v = this.curLineStart; + var h = this.curIndent, + T = this.curLineStart; for ( p.body = [], this.pushCx(); - !this.closes(t.tokTypes.braceR, f, v, !0); + !this.closes(t.tokTypes.braceR, h, T, !0); ) p.body.push(this.parseStatement()); @@ -30873,28 +30873,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ? ((p.computed = !1), (p.key = this.parsePrivateIdent())) : this.parsePropertyName(p); }), - (y.parseFunction = function (p, f, v) { - var x = this.inAsync, + (y.parseFunction = function (p, h, T) { + var g = this.inAsync, w = this.inGenerator, S = this.inFunction; return ( this.initFunction(p), this.options.ecmaVersion >= 6 && (p.generator = this.eat(t.tokTypes.star)), - this.options.ecmaVersion >= 8 && (p.async = !!v), + this.options.ecmaVersion >= 8 && (p.async = !!T), this.tok.type === t.tokTypes.name ? (p.id = this.parseIdent()) - : f === !0 && (p.id = this.dummyIdent()), + : h === !0 && (p.id = this.dummyIdent()), (this.inAsync = p.async), (this.inGenerator = p.generator), (this.inFunction = !0), (p.params = this.parseFunctionParams()), (p.body = this.parseBlock()), this.toks.adaptDirectivePrologue(p.body.body), - (this.inAsync = x), + (this.inAsync = g), (this.inGenerator = w), (this.inFunction = S), - this.finishNode(p, f ? 'FunctionDeclaration' : 'FunctionExpression') + this.finishNode(p, h ? 'FunctionDeclaration' : 'FunctionExpression') ); }), (y.parseExport = function () { @@ -30914,15 +30914,15 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'ExportAllDeclaration') ); if (this.eat(t.tokTypes._default)) { - var f; + var h; if ( this.tok.type === t.tokTypes._function || - (f = this.toks.isAsyncFunction()) + (h = this.toks.isAsyncFunction()) ) { - var v = this.startNode(); + var T = this.startNode(); this.next(), - f && this.next(), - (p.declaration = this.parseFunction(v, 'nullableID', f)); + h && this.next(), + (p.declaration = this.parseFunction(T, 'nullableID', h)); } else this.tok.type === t.tokTypes._class ? (p.declaration = this.parseClass('nullableID')) @@ -30952,12 +30952,12 @@ Defaulting to 2020, but this will stop working in the future.`)), if ((this.next(), this.tok.type === t.tokTypes.string)) (p.specifiers = []), (p.source = this.parseExprAtom()); else { - var f; + var h; this.tok.type === t.tokTypes.name && this.tok.value !== 'from' && - ((f = this.startNode()), - (f.local = this.parseIdent()), - this.finishNode(f, 'ImportDefaultSpecifier'), + ((h = this.startNode()), + (h.local = this.parseIdent()), + this.finishNode(h, 'ImportDefaultSpecifier'), this.eat(t.tokTypes.comma)), (p.specifiers = this.parseImportSpecifiers()), (p.source = @@ -30965,7 +30965,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.tok.type === t.tokTypes.string ? this.parseExprAtom() : this.dummyString()), - f && p.specifiers.unshift(f); + h && p.specifiers.unshift(h); } return ( this.options.ecmaVersion >= 16 && @@ -30977,15 +30977,15 @@ Defaulting to 2020, but this will stop working in the future.`)), (y.parseImportSpecifiers = function () { var p = []; if (this.tok.type === t.tokTypes.star) { - var f = this.startNode(); + var h = this.startNode(); this.next(), - (f.local = this.eatContextual('as') + (h.local = this.eatContextual('as') ? this.parseIdent() : this.dummyIdent()), - p.push(this.finishNode(f, 'ImportNamespaceSpecifier')); + p.push(this.finishNode(h, 'ImportNamespaceSpecifier')); } else { - var v = this.curIndent, - x = this.curLineStart, + var T = this.curIndent, + g = this.curLineStart, w = this.nextLineStart; for ( this.pushCx(), @@ -30993,8 +30993,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.curLineStart > w && (w = this.curLineStart); !this.closes( t.tokTypes.braceR, - v + (this.curLineStart <= w ? 1 : 0), - x + T + (this.curLineStart <= w ? 1 : 0), + g ); ) { @@ -31024,17 +31024,17 @@ Defaulting to 2020, but this will stop working in the future.`)), (y.parseWithClause = function () { var p = []; if (!this.eat(t.tokTypes._with)) return p; - var f = this.curIndent, - v = this.curLineStart, - x = this.nextLineStart; + var h = this.curIndent, + T = this.curLineStart, + g = this.nextLineStart; for ( this.pushCx(), this.eat(t.tokTypes.braceL), - this.curLineStart > x && (x = this.curLineStart); + this.curLineStart > g && (g = this.curLineStart); !this.closes( t.tokTypes.braceR, - f + (this.curLineStart <= x ? 1 : 0), - v + h + (this.curLineStart <= g ? 1 : 0), + T ); ) { @@ -31062,17 +31062,17 @@ Defaulting to 2020, but this will stop working in the future.`)), }), (y.parseExportSpecifierList = function () { var p = [], - f = this.curIndent, - v = this.curLineStart, - x = this.nextLineStart; + h = this.curIndent, + T = this.curLineStart, + g = this.nextLineStart; for ( this.pushCx(), this.eat(t.tokTypes.braceL), - this.curLineStart > x && (x = this.curLineStart); + this.curLineStart > g && (g = this.curLineStart); !this.closes( t.tokTypes.braceR, - f + (this.curLineStart <= x ? 1 : 0), - v + h + (this.curLineStart <= g ? 1 : 0), + T ) && !this.isContextual('from'); ) { @@ -31093,8 +31093,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ? this.parseExprAtom() : this.parseIdent(); }); - var g = a.prototype; - (g.checkLVal = function (p) { + var x = a.prototype; + (x.checkLVal = function (p) { if (!p) return p; switch (p.type) { case 'Identifier': @@ -31106,76 +31106,76 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.dummyIdent(); } }), - (g.parseExpression = function (p) { - var f = this.storeCurrentPos(), - v = this.parseMaybeAssign(p); + (x.parseExpression = function (p) { + var h = this.storeCurrentPos(), + T = this.parseMaybeAssign(p); if (this.tok.type === t.tokTypes.comma) { - var x = this.startNodeAt(f); - for (x.expressions = [v]; this.eat(t.tokTypes.comma); ) - x.expressions.push(this.parseMaybeAssign(p)); - return this.finishNode(x, 'SequenceExpression'); + var g = this.startNodeAt(h); + for (g.expressions = [T]; this.eat(t.tokTypes.comma); ) + g.expressions.push(this.parseMaybeAssign(p)); + return this.finishNode(g, 'SequenceExpression'); } - return v; + return T; }), - (g.parseParenExpression = function () { + (x.parseParenExpression = function () { this.pushCx(), this.expect(t.tokTypes.parenL); var p = this.parseExpression(); return this.popCx(), this.expect(t.tokTypes.parenR), p; }), - (g.parseMaybeAssign = function (p) { + (x.parseMaybeAssign = function (p) { if (this.inGenerator && this.toks.isContextual('yield')) { - var f = this.startNode(); + var h = this.startNode(); return ( this.next(), this.semicolon() || this.canInsertSemicolon() || (this.tok.type !== t.tokTypes.star && !this.tok.type.startsExpr) - ? ((f.delegate = !1), (f.argument = null)) - : ((f.delegate = this.eat(t.tokTypes.star)), - (f.argument = this.parseMaybeAssign())), - this.finishNode(f, 'YieldExpression') + ? ((h.delegate = !1), (h.argument = null)) + : ((h.delegate = this.eat(t.tokTypes.star)), + (h.argument = this.parseMaybeAssign())), + this.finishNode(h, 'YieldExpression') ); } - var v = this.storeCurrentPos(), - x = this.parseMaybeConditional(p); + var T = this.storeCurrentPos(), + g = this.parseMaybeConditional(p); if (this.tok.type.isAssign) { - var w = this.startNodeAt(v); + var w = this.startNodeAt(T); return ( (w.operator = this.tok.value), (w.left = this.tok.type === t.tokTypes.eq - ? this.toAssignable(x) - : this.checkLVal(x)), + ? this.toAssignable(g) + : this.checkLVal(g)), this.next(), (w.right = this.parseMaybeAssign(p)), this.finishNode(w, 'AssignmentExpression') ); } - return x; + return g; }), - (g.parseMaybeConditional = function (p) { - var f = this.storeCurrentPos(), - v = this.parseExprOps(p); + (x.parseMaybeConditional = function (p) { + var h = this.storeCurrentPos(), + T = this.parseExprOps(p); if (this.eat(t.tokTypes.question)) { - var x = this.startNodeAt(f); + var g = this.startNodeAt(h); return ( - (x.test = v), - (x.consequent = this.parseMaybeAssign()), - (x.alternate = this.expect(t.tokTypes.colon) + (g.test = T), + (g.consequent = this.parseMaybeAssign()), + (g.alternate = this.expect(t.tokTypes.colon) ? this.parseMaybeAssign(p) : this.dummyIdent()), - this.finishNode(x, 'ConditionalExpression') + this.finishNode(g, 'ConditionalExpression') ); } - return v; + return T; }), - (g.parseExprOps = function (p) { - var f = this.storeCurrentPos(), - v = this.curIndent, - x = this.curLineStart; - return this.parseExprOp(this.parseMaybeUnary(!1), f, -1, p, v, x); + (x.parseExprOps = function (p) { + var h = this.storeCurrentPos(), + T = this.curIndent, + g = this.curLineStart; + return this.parseExprOp(this.parseMaybeUnary(!1), h, -1, p, T, g); }), - (g.parseExprOp = function (p, f, v, x, w, S) { + (x.parseExprOp = function (p, h, T, g, w, S) { if ( this.curLineStart !== S && this.curIndent < w && @@ -31183,8 +31183,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ) return p; var A = this.tok.type.binop; - if (A != null && (!x || this.tok.type !== t.tokTypes._in) && A > v) { - var U = this.startNodeAt(f); + if (A != null && (!g || this.tok.type !== t.tokTypes._in) && A > T) { + var U = this.startNodeAt(h); if ( ((U.left = p), (U.operator = this.tok.value), @@ -31195,12 +31195,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ) U.right = this.dummyIdent(); else { - var D = this.storeCurrentPos(); + var M = this.storeCurrentPos(); U.right = this.parseExprOp( this.parseMaybeUnary(!1), - D, + M, A, - x, + g, w, S ); @@ -31212,14 +31212,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ? 'LogicalExpression' : 'BinaryExpression' ), - this.parseExprOp(U, f, v, x, w, S) + this.parseExprOp(U, h, T, g, w, S) ); } return p; }), - (g.parseMaybeUnary = function (p) { - var f = this.storeCurrentPos(), - v; + (x.parseMaybeUnary = function (p) { + var h = this.storeCurrentPos(), + T; if ( this.options.ecmaVersion >= 8 && this.toks.isContextual('await') && @@ -31227,52 +31227,52 @@ Defaulting to 2020, but this will stop working in the future.`)), (this.toks.inModule && this.options.ecmaVersion >= 13) || (!this.inFunction && this.options.allowAwaitOutsideFunction)) ) - (v = this.parseAwait()), (p = !0); + (T = this.parseAwait()), (p = !0); else if (this.tok.type.prefix) { - var x = this.startNode(), + var g = this.startNode(), w = this.tok.type === t.tokTypes.incDec; w || (p = !0), - (x.operator = this.tok.value), - (x.prefix = !0), + (g.operator = this.tok.value), + (g.prefix = !0), this.next(), - (x.argument = this.parseMaybeUnary(!0)), - w && (x.argument = this.checkLVal(x.argument)), - (v = this.finishNode( - x, + (g.argument = this.parseMaybeUnary(!0)), + w && (g.argument = this.checkLVal(g.argument)), + (T = this.finishNode( + g, w ? 'UpdateExpression' : 'UnaryExpression' )); } else if (this.tok.type === t.tokTypes.ellipsis) { var S = this.startNode(); this.next(), (S.argument = this.parseMaybeUnary(p)), - (v = this.finishNode(S, 'SpreadElement')); + (T = this.finishNode(S, 'SpreadElement')); } else if (!p && this.tok.type === t.tokTypes.privateId) - v = this.parsePrivateIdent(); + T = this.parsePrivateIdent(); else for ( - v = this.parseExprSubscripts(); + T = this.parseExprSubscripts(); this.tok.type.postfix && !this.canInsertSemicolon(); ) { - var A = this.startNodeAt(f); + var A = this.startNodeAt(h); (A.operator = this.tok.value), (A.prefix = !1), - (A.argument = this.checkLVal(v)), + (A.argument = this.checkLVal(T)), this.next(), - (v = this.finishNode(A, 'UpdateExpression')); + (T = this.finishNode(A, 'UpdateExpression')); } if (!p && this.eat(t.tokTypes.starstar)) { - var U = this.startNodeAt(f); + var U = this.startNodeAt(h); return ( (U.operator = '**'), - (U.left = v), + (U.left = T), (U.right = this.parseMaybeUnary(!1)), this.finishNode(U, 'BinaryExpression') ); } - return v; + return T; }), - (g.parseExprSubscripts = function () { + (x.parseExprSubscripts = function () { var p = this.storeCurrentPos(); return this.parseSubscripts( this.parseExprAtom(), @@ -31282,95 +31282,95 @@ Defaulting to 2020, but this will stop working in the future.`)), this.curLineStart ); }), - (g.parseSubscripts = function (p, f, v, x, w) { + (x.parseSubscripts = function (p, h, T, g, w) { for (var S = this.options.ecmaVersion >= 11, A = !1; ; ) { if ( this.curLineStart !== w && - this.curIndent <= x && + this.curIndent <= g && this.tokenStartsLine() ) - if (this.tok.type === t.tokTypes.dot && this.curIndent === x) --x; + if (this.tok.type === t.tokTypes.dot && this.curIndent === g) --g; else break; var U = p.type === 'Identifier' && p.name === 'async' && !this.canInsertSemicolon(), - D = S && this.eat(t.tokTypes.questionDot); + M = S && this.eat(t.tokTypes.questionDot); if ( - (D && (A = !0), - (D && + (M && (A = !0), + (M && this.tok.type !== t.tokTypes.parenL && this.tok.type !== t.tokTypes.bracketL && this.tok.type !== t.tokTypes.backQuote) || this.eat(t.tokTypes.dot)) ) { - var c = this.startNodeAt(f); + var c = this.startNodeAt(h); (c.object = p), this.curLineStart !== w && - this.curIndent <= x && + this.curIndent <= g && this.tokenStartsLine() ? (c.property = this.dummyIdent()) : (c.property = this.parsePropertyAccessor() || this.dummyIdent()), (c.computed = !1), - S && (c.optional = D), + S && (c.optional = M), (p = this.finishNode(c, 'MemberExpression')); } else if (this.tok.type === t.tokTypes.bracketL) { this.pushCx(), this.next(); - var M = this.startNodeAt(f); - (M.object = p), - (M.property = this.parseExpression()), - (M.computed = !0), - S && (M.optional = D), + var L = this.startNodeAt(h); + (L.object = p), + (L.property = this.parseExpression()), + (L.computed = !0), + S && (L.optional = M), this.popCx(), this.expect(t.tokTypes.bracketR), - (p = this.finishNode(M, 'MemberExpression')); - } else if (!v && this.tok.type === t.tokTypes.parenL) { - var z = this.parseExprList(t.tokTypes.parenR); + (p = this.finishNode(L, 'MemberExpression')); + } else if (!T && this.tok.type === t.tokTypes.parenL) { + var W = this.parseExprList(t.tokTypes.parenR); if (U && this.eat(t.tokTypes.arrow)) - return this.parseArrowExpression(this.startNodeAt(f), z, !0); - var X = this.startNodeAt(f); + return this.parseArrowExpression(this.startNodeAt(h), W, !0); + var X = this.startNodeAt(h); (X.callee = p), - (X.arguments = z), - S && (X.optional = D), + (X.arguments = W), + S && (X.optional = M), (p = this.finishNode(X, 'CallExpression')); } else if (this.tok.type === t.tokTypes.backQuote) { - var ie = this.startNodeAt(f); + var ie = this.startNodeAt(h); (ie.tag = p), (ie.quasi = this.parseTemplate()), (p = this.finishNode(ie, 'TaggedTemplateExpression')); } else break; } if (A) { - var pe = this.startNodeAt(f); + var pe = this.startNodeAt(h); (pe.expression = p), (p = this.finishNode(pe, 'ChainExpression')); } return p; }), - (g.parseExprAtom = function () { + (x.parseExprAtom = function () { var p; switch (this.tok.type) { case t.tokTypes._this: case t.tokTypes._super: - var f = + var h = this.tok.type === t.tokTypes._this ? 'ThisExpression' : 'Super'; - return (p = this.startNode()), this.next(), this.finishNode(p, f); + return (p = this.startNode()), this.next(), this.finishNode(p, h); case t.tokTypes.name: - var v = this.storeCurrentPos(), - x = this.parseIdent(), + var T = this.storeCurrentPos(), + g = this.parseIdent(), w = !1; - if (x.name === 'async' && !this.canInsertSemicolon()) { + if (g.name === 'async' && !this.canInsertSemicolon()) { if (this.eat(t.tokTypes._function)) return ( this.toks.overrideContext(t.tokContexts.f_expr), - this.parseFunction(this.startNodeAt(v), !1, !0) + this.parseFunction(this.startNodeAt(T), !1, !0) ); this.tok.type === t.tokTypes.name && - ((x = this.parseIdent()), (w = !0)); + ((g = this.parseIdent()), (w = !0)); } return this.eat(t.tokTypes.arrow) - ? this.parseArrowExpression(this.startNodeAt(v), [x], w) - : x; + ? this.parseArrowExpression(this.startNodeAt(T), [g], w) + : g; case t.tokTypes.regexp: p = this.startNode(); var S = this.tok.value; @@ -31416,10 +31416,10 @@ Defaulting to 2020, but this will stop working in the future.`)), if ( (this.expect(t.tokTypes.parenR), this.eat(t.tokTypes.arrow)) ) { - var D = U.expressions || [U]; + var M = U.expressions || [U]; return ( - D.length && i(D[D.length - 1]) && D.pop(), - this.parseArrowExpression(this.startNodeAt(A), D) + M.length && i(M[M.length - 1]) && M.pop(), + this.parseArrowExpression(this.startNodeAt(A), M) ); } if (this.options.preserveParens) { @@ -31456,41 +31456,41 @@ Defaulting to 2020, but this will stop working in the future.`)), return this.dummyIdent(); } }), - (g.parseExprImport = function () { + (x.parseExprImport = function () { var p = this.startNode(), - f = this.parseIdent(!0); + h = this.parseIdent(!0); switch (this.tok.type) { case t.tokTypes.parenL: return this.parseDynamicImport(p); case t.tokTypes.dot: - return (p.meta = f), this.parseImportMeta(p); + return (p.meta = h), this.parseImportMeta(p); default: return (p.name = 'import'), this.finishNode(p, 'Identifier'); } }), - (g.parseDynamicImport = function (p) { - var f = this.parseExprList(t.tokTypes.parenR); + (x.parseDynamicImport = function (p) { + var h = this.parseExprList(t.tokTypes.parenR); return ( - (p.source = f[0] || this.dummyString()), - (p.options = f[1] || null), + (p.source = h[0] || this.dummyString()), + (p.options = h[1] || null), this.finishNode(p, 'ImportExpression') ); }), - (g.parseImportMeta = function (p) { + (x.parseImportMeta = function (p) { return ( this.next(), (p.property = this.parseIdent(!0)), this.finishNode(p, 'MetaProperty') ); }), - (g.parseNew = function () { + (x.parseNew = function () { var p = this.startNode(), - f = this.curIndent, - v = this.curLineStart, - x = this.parseIdent(!0); + h = this.curIndent, + T = this.curLineStart, + g = this.parseIdent(!0); if (this.options.ecmaVersion >= 6 && this.eat(t.tokTypes.dot)) return ( - (p.meta = x), + (p.meta = g), (p.property = this.parseIdent(!0)), this.finishNode(p, 'MetaProperty') ); @@ -31500,8 +31500,8 @@ Defaulting to 2020, but this will stop working in the future.`)), this.parseExprAtom(), w, !0, - f, - v + h, + T )), this.tok.type === t.tokTypes.parenL ? (p.arguments = this.parseExprList(t.tokTypes.parenR)) @@ -31509,7 +31509,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'NewExpression') ); }), - (g.parseTemplateElement = function () { + (x.parseTemplateElement = function () { var p = this.startNode(); return ( this.tok.type === t.tokTypes.invalidTemplate @@ -31527,38 +31527,38 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'TemplateElement') ); }), - (g.parseTemplate = function () { + (x.parseTemplate = function () { var p = this.startNode(); this.next(), (p.expressions = []); - var f = this.parseTemplateElement(); - for (p.quasis = [f]; !f.tail; ) + var h = this.parseTemplateElement(); + for (p.quasis = [h]; !h.tail; ) this.next(), p.expressions.push(this.parseExpression()), this.expect(t.tokTypes.braceR) - ? (f = this.parseTemplateElement()) - : ((f = this.startNode()), - (f.value = {cooked: '', raw: ''}), - (f.tail = !0), - this.finishNode(f, 'TemplateElement')), - p.quasis.push(f); + ? (h = this.parseTemplateElement()) + : ((h = this.startNode()), + (h.value = {cooked: '', raw: ''}), + (h.tail = !0), + this.finishNode(h, 'TemplateElement')), + p.quasis.push(h); return ( this.expect(t.tokTypes.backQuote), this.finishNode(p, 'TemplateLiteral') ); }), - (g.parseObj = function () { + (x.parseObj = function () { var p = this.startNode(); (p.properties = []), this.pushCx(); - var f = this.curIndent + 1, - v = this.curLineStart; + var h = this.curIndent + 1, + T = this.curLineStart; for ( this.eat(t.tokTypes.braceL), - this.curIndent + 1 < f && - ((f = this.curIndent), (v = this.curLineStart)); - !this.closes(t.tokTypes.braceR, f, v); + this.curIndent + 1 < h && + ((h = this.curIndent), (T = this.curLineStart)); + !this.closes(t.tokTypes.braceR, h, T); ) { - var x = this.startNode(), + var g = this.startNode(), w = void 0, S = void 0, A = void 0; @@ -31566,65 +31566,65 @@ Defaulting to 2020, but this will stop working in the future.`)), this.options.ecmaVersion >= 9 && this.eat(t.tokTypes.ellipsis) ) { - (x.argument = this.parseMaybeAssign()), - p.properties.push(this.finishNode(x, 'SpreadElement')), + (g.argument = this.parseMaybeAssign()), + p.properties.push(this.finishNode(g, 'SpreadElement')), this.eat(t.tokTypes.comma); continue; } if ( (this.options.ecmaVersion >= 6 && ((A = this.storeCurrentPos()), - (x.method = !1), - (x.shorthand = !1), + (g.method = !1), + (g.shorthand = !1), (w = this.eat(t.tokTypes.star))), - this.parsePropertyName(x), - this.toks.isAsyncProp(x) + this.parsePropertyName(g), + this.toks.isAsyncProp(g) ? ((S = !0), (w = this.options.ecmaVersion >= 9 && this.eat(t.tokTypes.star)), - this.parsePropertyName(x)) + this.parsePropertyName(g)) : (S = !1), - i(x.key)) + i(g.key)) ) { i(this.parseMaybeAssign()) && this.next(), this.eat(t.tokTypes.comma); continue; } if (this.eat(t.tokTypes.colon)) - (x.kind = 'init'), (x.value = this.parseMaybeAssign()); + (g.kind = 'init'), (g.value = this.parseMaybeAssign()); else if ( this.options.ecmaVersion >= 6 && (this.tok.type === t.tokTypes.parenL || this.tok.type === t.tokTypes.braceL) ) - (x.kind = 'init'), - (x.method = !0), - (x.value = this.parseMethod(w, S)); + (g.kind = 'init'), + (g.method = !0), + (g.value = this.parseMethod(w, S)); else if ( this.options.ecmaVersion >= 5 && - x.key.type === 'Identifier' && - !x.computed && - (x.key.name === 'get' || x.key.name === 'set') && + g.key.type === 'Identifier' && + !g.computed && + (g.key.name === 'get' || g.key.name === 'set') && this.tok.type !== t.tokTypes.comma && this.tok.type !== t.tokTypes.braceR && this.tok.type !== t.tokTypes.eq ) - (x.kind = x.key.name), - this.parsePropertyName(x), - (x.value = this.parseMethod(!1)); + (g.kind = g.key.name), + this.parsePropertyName(g), + (g.value = this.parseMethod(!1)); else { - if (((x.kind = 'init'), this.options.ecmaVersion >= 6)) + if (((g.kind = 'init'), this.options.ecmaVersion >= 6)) if (this.eat(t.tokTypes.eq)) { var U = this.startNodeAt(A); (U.operator = '='), - (U.left = x.key), + (U.left = g.key), (U.right = this.parseMaybeAssign()), - (x.value = this.finishNode(U, 'AssignmentExpression')); - } else x.value = x.key; - else x.value = this.dummyIdent(); - x.shorthand = !0; + (g.value = this.finishNode(U, 'AssignmentExpression')); + } else g.value = g.key; + else g.value = this.dummyIdent(); + g.shorthand = !0; } - p.properties.push(this.finishNode(x, 'Property')), + p.properties.push(this.finishNode(g, 'Property')), this.eat(t.tokTypes.comma); } return ( @@ -31636,7 +31636,7 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'ObjectExpression') ); }), - (g.parsePropertyName = function (p) { + (x.parsePropertyName = function (p) { if (this.options.ecmaVersion >= 6) if (this.eat(t.tokTypes.bracketL)) { (p.computed = !0), @@ -31644,30 +31644,30 @@ Defaulting to 2020, but this will stop working in the future.`)), this.expect(t.tokTypes.bracketR); return; } else p.computed = !1; - var f = + var h = this.tok.type === t.tokTypes.num || this.tok.type === t.tokTypes.string ? this.parseExprAtom() : this.parseIdent(); - p.key = f || this.dummyIdent(); + p.key = h || this.dummyIdent(); }), - (g.parsePropertyAccessor = function () { + (x.parsePropertyAccessor = function () { if (this.tok.type === t.tokTypes.name || this.tok.type.keyword) return this.parseIdent(); if (this.tok.type === t.tokTypes.privateId) return this.parsePrivateIdent(); }), - (g.parseIdent = function () { + (x.parseIdent = function () { var p = this.tok.type === t.tokTypes.name ? this.tok.value : this.tok.type.keyword; if (!p) return this.dummyIdent(); this.tok.type.keyword && (this.toks.type = t.tokTypes.name); - var f = this.startNode(); - return this.next(), (f.name = p), this.finishNode(f, 'Identifier'); + var h = this.startNode(); + return this.next(), (h.name = p), this.finishNode(h, 'Identifier'); }), - (g.parsePrivateIdent = function () { + (x.parsePrivateIdent = function () { var p = this.startNode(); return ( (p.name = this.tok.value), @@ -31675,111 +31675,111 @@ Defaulting to 2020, but this will stop working in the future.`)), this.finishNode(p, 'PrivateIdentifier') ); }), - (g.initFunction = function (p) { + (x.initFunction = function (p) { (p.id = null), (p.params = []), this.options.ecmaVersion >= 6 && ((p.generator = !1), (p.expression = !1)), this.options.ecmaVersion >= 8 && (p.async = !1); }), - (g.toAssignable = function (p, f) { + (x.toAssignable = function (p, h) { if ( !( !p || p.type === 'Identifier' || - (p.type === 'MemberExpression' && !f) + (p.type === 'MemberExpression' && !h) ) ) if (p.type === 'ParenthesizedExpression') - this.toAssignable(p.expression, f); + this.toAssignable(p.expression, h); else { if (this.options.ecmaVersion < 6) return this.dummyIdent(); if (p.type === 'ObjectExpression') { p.type = 'ObjectPattern'; - for (var v = 0, x = p.properties; v < x.length; v += 1) { - var w = x[v]; - this.toAssignable(w, f); + for (var T = 0, g = p.properties; T < g.length; T += 1) { + var w = g[T]; + this.toAssignable(w, h); } } else if (p.type === 'ArrayExpression') - (p.type = 'ArrayPattern'), this.toAssignableList(p.elements, f); - else if (p.type === 'Property') this.toAssignable(p.value, f); + (p.type = 'ArrayPattern'), this.toAssignableList(p.elements, h); + else if (p.type === 'Property') this.toAssignable(p.value, h); else if (p.type === 'SpreadElement') - (p.type = 'RestElement'), this.toAssignable(p.argument, f); + (p.type = 'RestElement'), this.toAssignable(p.argument, h); else if (p.type === 'AssignmentExpression') (p.type = 'AssignmentPattern'), delete p.operator; else return this.dummyIdent(); } return p; }), - (g.toAssignableList = function (p, f) { - for (var v = 0, x = p; v < x.length; v += 1) { - var w = x[v]; - this.toAssignable(w, f); + (x.toAssignableList = function (p, h) { + for (var T = 0, g = p; T < g.length; T += 1) { + var w = g[T]; + this.toAssignable(w, h); } return p; }), - (g.parseFunctionParams = function (p) { + (x.parseFunctionParams = function (p) { return ( (p = this.parseExprList(t.tokTypes.parenR)), this.toAssignableList(p, !0) ); }), - (g.parseMethod = function (p, f) { - var v = this.startNode(), - x = this.inAsync, + (x.parseMethod = function (p, h) { + var T = this.startNode(), + g = this.inAsync, w = this.inGenerator, S = this.inFunction; return ( - this.initFunction(v), - this.options.ecmaVersion >= 6 && (v.generator = !!p), - this.options.ecmaVersion >= 8 && (v.async = !!f), - (this.inAsync = v.async), - (this.inGenerator = v.generator), + this.initFunction(T), + this.options.ecmaVersion >= 6 && (T.generator = !!p), + this.options.ecmaVersion >= 8 && (T.async = !!h), + (this.inAsync = T.async), + (this.inGenerator = T.generator), (this.inFunction = !0), - (v.params = this.parseFunctionParams()), - (v.body = this.parseBlock()), - this.toks.adaptDirectivePrologue(v.body.body), - (this.inAsync = x), + (T.params = this.parseFunctionParams()), + (T.body = this.parseBlock()), + this.toks.adaptDirectivePrologue(T.body.body), + (this.inAsync = g), (this.inGenerator = w), (this.inFunction = S), - this.finishNode(v, 'FunctionExpression') + this.finishNode(T, 'FunctionExpression') ); }), - (g.parseArrowExpression = function (p, f, v) { - var x = this.inAsync, + (x.parseArrowExpression = function (p, h, T) { + var g = this.inAsync, w = this.inGenerator, S = this.inFunction; return ( this.initFunction(p), - this.options.ecmaVersion >= 8 && (p.async = !!v), + this.options.ecmaVersion >= 8 && (p.async = !!T), (this.inAsync = p.async), (this.inGenerator = !1), (this.inFunction = !0), - (p.params = this.toAssignableList(f, !0)), + (p.params = this.toAssignableList(h, !0)), (p.expression = this.tok.type !== t.tokTypes.braceL), p.expression ? (p.body = this.parseMaybeAssign()) : ((p.body = this.parseBlock()), this.toks.adaptDirectivePrologue(p.body.body)), - (this.inAsync = x), + (this.inAsync = g), (this.inGenerator = w), (this.inFunction = S), this.finishNode(p, 'ArrowFunctionExpression') ); }), - (g.parseExprList = function (p, f) { + (x.parseExprList = function (p, h) { this.pushCx(); - var v = this.curIndent, - x = this.curLineStart, + var T = this.curIndent, + g = this.curLineStart, w = []; - for (this.next(); !this.closes(p, v + 1, x); ) { + for (this.next(); !this.closes(p, T + 1, g); ) { if (this.eat(t.tokTypes.comma)) { - w.push(f ? null : this.dummyIdent()); + w.push(h ? null : this.dummyIdent()); continue; } var S = this.parseMaybeAssign(); if (i(S)) { - if (this.closes(p, v, x)) break; + if (this.closes(p, T, g)) break; this.next(); } else w.push(S); this.eat(t.tokTypes.comma); @@ -31793,7 +31793,7 @@ Defaulting to 2020, but this will stop working in the future.`)), w ); }), - (g.parseAwait = function () { + (x.parseAwait = function () { var p = this.startNode(); return ( this.next(), @@ -31802,19 +31802,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ); }), (t.defaultOptions.tabSize = 4); - function L(p, f) { - return a.parse(p, f); + function R(p, h) { + return a.parse(p, h); } - (e.LooseParser = a), (e.isDummy = i), (e.parse = L); + (e.LooseParser = a), (e.isDummy = i), (e.parse = R); }); }); var Vo = Li(), - qg = Jc(), + Ug = Jc(), dr = e1(), - Kg = uf(), - Ug = df(), + Hg = uf(), + Tf = df(), Os = null; - function Tf() { + function kf() { return new Proxy( {}, { @@ -31830,7 +31830,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ); } var Nc = {}; - function Hg(e, t, s) { + function mf(e, t, s) { var i = dr.registerServerReference(e, t, s), r = t + '#' + s; return (Nc[r] = e), i; @@ -31839,7 +31839,7 @@ Defaulting to 2020, but this will stop working in the future.`)), if (e.indexOf('use client') === -1 && e.indexOf('use server') === -1) return null; try { - var t = Ug.parse(e, {ecmaVersion: '2024', sourceType: 'source'}).body; + var t = Tf.parse(e, {ecmaVersion: '2024', sourceType: 'source'}).body; } catch { return null; } @@ -31851,7 +31851,101 @@ Defaulting to 2020, but this will stop working in the future.`)), } return null; } - function Gg(e, t) { + function Gg(e) { + if (e.indexOf('use server') === -1) return e; + var t; + try { + t = Tf.parse(e, {ecmaVersion: '2024', sourceType: 'source'}); + } catch { + return e; + } + var s = [], + i = 0; + function r(T, g) { + if (!(!T || typeof T != 'object')) { + var w = + T.type === 'FunctionDeclaration' || + T.type === 'FunctionExpression' || + T.type === 'ArrowFunctionExpression'; + if (w && g > 0 && T.body && T.body.type === 'BlockStatement') + for (var S = T.body.body, A = 0; A < S.length; A++) { + var U = S[A]; + if (U.type !== 'ExpressionStatement') break; + if (U.directive === 'use server') { + s.push({ + funcStart: T.start, + funcEnd: T.end, + dStart: U.start, + dEnd: U.end, + name: T.id ? T.id.name : 'action' + i, + isDecl: T.type === 'FunctionDeclaration', + }), + i++; + return; + } + if (!U.directive) break; + } + var M = w ? g + 1 : g; + for (var c in T) + if (!(c === 'start' || c === 'end' || c === 'type')) { + var L = T[c]; + if (Array.isArray(L)) + for (var W = 0; W < L.length; W++) + L[W] && typeof L[W].type == 'string' && r(L[W], M); + else L && typeof L.type == 'string' && r(L, M); + } + } + } + if ( + (t.body.forEach(function (T) { + r(T, 0); + }), + s.length === 0) + ) + return e; + s.sort(function (T, g) { + return g.funcStart - T.funcStart; + }); + for (var a = e, u = 0; u < s.length; u++) { + for ( + var d = s[u], y = d.dEnd, x = a.charAt(y); + y < a.length && + (x === ' ' || + x === + ` +` || + x === '\r' || + x === ' '); + + ) + y++, (x = a.charAt(y)); + a = a.slice(0, d.dStart) + a.slice(y); + var R = y - d.dStart, + p = d.funcEnd - R, + h = a.slice(d.funcStart, p); + d.isDecl + ? (a = + a.slice(0, d.funcStart) + + 'var ' + + d.name + + ' = __rsa(' + + h + + ", '" + + d.name + + "');" + + a.slice(p)) + : (a = + a.slice(0, d.funcStart) + + '__rsa(' + + h + + ", '" + + d.name + + "')" + + a.slice(p)); + } + return a; + } + function zg(e, t) { if (!t.startsWith('.')) return t; var s = e.split('/'); s.pop(); @@ -31865,87 +31959,92 @@ Defaulting to 2020, but this will stop working in the future.`)), } return s.join('/'); } - function zg(e) { + function Xg(e) { Nc = {}; - var t = {react: Vo, 'react/jsx-runtime': qg}, + var t = {react: Vo, 'react/jsx-runtime': Ug}, s = {}, i = null; if ( - (Object.keys(e).forEach(function (f) { + (Object.keys(e).forEach(function (h) { if (!i) try { - s[f] = Kg.transform(e[f], { + s[h] = Hg.transform(e[h], { transforms: ['jsx', 'imports'], jsxRuntime: 'automatic', production: !0, }).code; - } catch (v) { - i = f + ': ' + (v.message || String(v)); + } catch (T) { + i = h + ': ' + (T.message || String(T)); } }), i) ) return {type: 'error', error: i}; - function r(f, v) { - if (t[v]) return v; - if (v.startsWith('.')) { - var x = Gg(f, v); - if (t[x] || s[x]) return x; + function r(h, T) { + if (t[T]) return T; + if (T.startsWith('.')) { + var g = zg(h, T); + if (t[g] || s[g]) return g; for (var w = ['.js', '.jsx', '.ts', '.tsx'], S = 0; S < w.length; S++) { - var A = x + w[S]; + var A = g + w[S]; if (t[A] || s[A]) return A; } } - return v; + return T; } var a = {}, u = {}; - function d(f) { - if (t[f]) return t[f]; - if (!s[f]) throw new Error('Module "' + f + '" not found'); - if (a[f]) return a[f].exports; - var v = Wg(e[f]); - if (v === 'use client') - return (t[f] = dr.createClientModuleProxy(f)), (u[f] = !0), t[f]; - var x = {exports: {}}; - a[f] = x; - var w = function (D) { - if (D.endsWith('.css')) return {}; - var c = r(f, D); - return t[c] ? t[c] : d(c); - }; + function d(h) { + if (t[h]) return t[h]; + if (!s[h]) throw new Error('Module "' + h + '" not found'); + if (a[h]) return a[h].exports; + var T = Wg(e[h]); + if (T === 'use client') + return (t[h] = dr.createClientModuleProxy(h)), (u[h] = !0), t[h]; + var g = {exports: {}}; + a[h] = g; + var w = function (c) { + if (c.endsWith('.css')) return {}; + var L = r(h, c); + return t[L] ? t[L] : d(L); + }, + S = s[h]; if ( - (new Function('module', 'exports', 'require', 'React', s[f])( - x, - x.exports, + (T !== 'use server' && (S = Gg(S)), + new Function('module', 'exports', 'require', 'React', '__rsa', S)( + g, + g.exports, w, - Vo + Vo, + function (c, L) { + return mf(c, h, L); + } ), - (t[f] = x.exports), - v === 'use server') + (t[h] = g.exports), + T === 'use server') ) - for (var S = Object.keys(x.exports), A = 0; A < S.length; A++) { - var U = S[A]; - typeof x.exports[U] == 'function' && Hg(x.exports[U], f, U); + for (var A = Object.keys(g.exports), U = 0; U < A.length; U++) { + var M = A[U]; + typeof g.exports[M] == 'function' && mf(g.exports[M], h, M); } - return delete a[f], x.exports; + return delete a[h], g.exports; } var y = {exports: {}}; - Object.keys(s).forEach(function (f) { - d(f), - (f === '/src/App.js' || f === './App.js' || f === './src/App.js') && - (y.exports = t[f]); + Object.keys(s).forEach(function (h) { + d(h), + (h === '/src/App.js' || h === './App.js' || h === './src/App.js') && + (y.exports = t[h]); }), (Os = {module: y.exports}); - var g = {}; - function L(f) { - if (!g[f]) { - g[f] = !0; - var v = s[f]; - if (v) + var x = {}; + function R(h) { + if (!x[h]) { + x[h] = !0; + var T = s[h]; + if (T) for ( - var x = /require\(["']([^"']+)["']\)/g, w; - (w = x.exec(v)) !== null; + var g = /require\(["']([^"']+)["']\)/g, w; + (w = g.exec(T)) !== null; ) { var S = w[1]; @@ -31957,30 +32056,36 @@ Defaulting to 2020, but this will stop working in the future.`)), S.endsWith('.css') ) ) { - var A = r(f, S); - s[A] && L(A); + var A = r(h, S); + s[A] && R(A); } } } } - Object.keys(u).forEach(function (f) { - L(f); + Object.keys(u).forEach(function (h) { + R(h); }); var p = {}; return ( - Object.keys(g).forEach(function (f) { - p[f] = s[f]; + Object.keys(x).forEach(function (h) { + p[h] = s[h]; }), {type: 'deployed', compiledClients: p, clientEntries: u} ); } - function Xg() { + function Yg() { if (!Os) throw new Error('No code deployed'); var e = Os.module.default || Os.module, t = Vo.createElement(e); - return dr.renderToReadableStream(t, Tf(), {onError: console.error}); + return dr.renderToReadableStream(t, kf(), { + onError: function (s) { + var i = s && s.message ? s.message : String(s), + r = s && s.stack ? s.stack : ''; + return console.error('[RSC Server Error]', i, r), i; + }, + }); } - function Yg(e, t) { + function Jg(e, t) { if (!Os) throw new Error('No code deployed'); var s = Nc[e]; if (!s) throw new Error('Action "' + e + '" not found'); @@ -31996,12 +32101,19 @@ Defaulting to 2020, but this will stop working in the future.`)), var d = Os.module.default || Os.module; return dr.renderToReadableStream( {root: Vo.createElement(d), returnValue: u}, - Tf() + kf(), + { + onError: function (y) { + var x = y && y.message ? y.message : String(y), + R = y && y.stack ? y.stack : ''; + return console.error('[RSC Server Error]', x, R), x; + }, + } ); }); }); } - function mf(e, t) { + function yf(e, t) { var s = t.getReader(); function i() { return s.read().then(function (r) { @@ -32026,7 +32138,7 @@ Defaulting to 2020, but this will stop working in the future.`)), var t = e.data; if (t.type === 'deploy') try { - var s = zg(t.files); + var s = Xg(t.files); s && s.type === 'error' ? self.postMessage({type: 'rsc-error', error: s.error}) : s && self.postMessage({type: 'deploy-result', result: s}); @@ -32035,10 +32147,10 @@ Defaulting to 2020, but this will stop working in the future.`)), } else if (t.type === 'render') try { - var i = Xg(); + var i = Yg(); Promise.resolve(i) .then(function (r) { - mf(t.requestId, r); + yf(t.requestId, r); }) .catch(function (r) { self.postMessage({ @@ -32056,9 +32168,9 @@ Defaulting to 2020, but this will stop working in the future.`)), } else if (t.type === 'callAction') try { - Yg(t.actionId, t.encodedArgs) + Jg(t.actionId, t.encodedArgs) .then(function (r) { - mf(t.requestId, r); + yf(t.requestId, r); }) .catch(function (r) { self.postMessage({